@sanity/ui 5.0.0-alpha.23 → 5.0.0-alpha.24

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 (281) hide show
  1. package/dist/index.d.ts +15 -7
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +76 -59
  4. package/dist/index.js.map +1 -1
  5. package/dist/styles.css +1 -1
  6. package/docs/components/button.dsds.yaml +24 -12
  7. package/docs/components/code.dsds.yaml +2 -0
  8. package/docs/components/eyebrow.dsds.yaml +3 -22
  9. package/docs/components/icon-button.dsds.yaml +9 -2
  10. package/docs/components/popover.dsds.yaml +8 -2
  11. package/docs/foundations/typography-guidelines.dsds.yaml +4 -4
  12. package/docs/icons/icon-access-denied.dsds.yaml +40 -0
  13. package/docs/icons/icon-activity.dsds.yaml +40 -0
  14. package/docs/icons/icon-add-circle.dsds.yaml +14 -0
  15. package/docs/icons/icon-add-comment.dsds.yaml +34 -0
  16. package/docs/icons/icon-add-document.dsds.yaml +34 -0
  17. package/docs/icons/icon-add-user.dsds.yaml +30 -0
  18. package/docs/icons/icon-add.dsds.yaml +57 -0
  19. package/docs/icons/icon-api.dsds.yaml +17 -0
  20. package/docs/icons/icon-archive.dsds.yaml +44 -0
  21. package/docs/icons/icon-arrow-down.dsds.yaml +38 -0
  22. package/docs/icons/icon-arrow-left.dsds.yaml +32 -0
  23. package/docs/icons/icon-arrow-right.dsds.yaml +32 -0
  24. package/docs/icons/icon-arrow-top-right.dsds.yaml +32 -0
  25. package/docs/icons/icon-arrow-up.dsds.yaml +44 -0
  26. package/docs/icons/icon-asterisk.dsds.yaml +18 -0
  27. package/docs/icons/icon-bar-chart.dsds.yaml +40 -0
  28. package/docs/icons/icon-basket.dsds.yaml +14 -0
  29. package/docs/icons/icon-bell.dsds.yaml +30 -0
  30. package/docs/icons/icon-bill.dsds.yaml +40 -0
  31. package/docs/icons/icon-binary-document.dsds.yaml +30 -0
  32. package/docs/icons/icon-block-content.dsds.yaml +30 -0
  33. package/docs/icons/icon-block-element.dsds.yaml +32 -0
  34. package/docs/icons/icon-blockquote.dsds.yaml +32 -0
  35. package/docs/icons/icon-bold.dsds.yaml +28 -0
  36. package/docs/icons/icon-bolt.dsds.yaml +18 -0
  37. package/docs/icons/icon-book.dsds.yaml +34 -0
  38. package/docs/icons/icon-bookmark-filled.dsds.yaml +14 -0
  39. package/docs/icons/icon-bookmark.dsds.yaml +14 -0
  40. package/docs/icons/icon-bottle.dsds.yaml +18 -0
  41. package/docs/icons/icon-bug.dsds.yaml +28 -0
  42. package/docs/icons/icon-bulb-filled.dsds.yaml +14 -0
  43. package/docs/icons/icon-bulb-outline.dsds.yaml +30 -0
  44. package/docs/icons/icon-calendar.dsds.yaml +36 -0
  45. package/docs/icons/icon-case.dsds.yaml +18 -0
  46. package/docs/icons/icon-chart-upward.dsds.yaml +40 -0
  47. package/docs/icons/icon-checkmark-circle.dsds.yaml +40 -0
  48. package/docs/icons/icon-checkmark.dsds.yaml +36 -0
  49. package/docs/icons/icon-chevron-down.dsds.yaml +46 -0
  50. package/docs/icons/icon-chevron-left.dsds.yaml +42 -0
  51. package/docs/icons/icon-chevron-right.dsds.yaml +42 -0
  52. package/docs/icons/icon-chevron-up.dsds.yaml +44 -0
  53. package/docs/icons/icon-circle.dsds.yaml +28 -0
  54. package/docs/icons/icon-clipboard-image.dsds.yaml +30 -0
  55. package/docs/icons/icon-clipboard.dsds.yaml +34 -0
  56. package/docs/icons/icon-clock.dsds.yaml +39 -0
  57. package/docs/icons/icon-close-circle.dsds.yaml +18 -0
  58. package/docs/icons/icon-close.dsds.yaml +51 -0
  59. package/docs/icons/icon-code-block.dsds.yaml +38 -0
  60. package/docs/icons/icon-code.dsds.yaml +40 -0
  61. package/docs/icons/icon-cog.dsds.yaml +38 -0
  62. package/docs/icons/icon-collapse.dsds.yaml +40 -0
  63. package/docs/icons/icon-color-wheel.dsds.yaml +30 -0
  64. package/docs/icons/icon-comment.dsds.yaml +38 -0
  65. package/docs/icons/icon-component.dsds.yaml +18 -0
  66. package/docs/icons/icon-compose-sparkles.dsds.yaml +36 -0
  67. package/docs/icons/icon-compose.dsds.yaml +38 -0
  68. package/docs/icons/icon-confetti.dsds.yaml +18 -0
  69. package/docs/icons/icon-controls.dsds.yaml +36 -0
  70. package/docs/icons/icon-copy.dsds.yaml +31 -0
  71. package/docs/icons/icon-credit-card.dsds.yaml +18 -0
  72. package/docs/icons/icon-crop.dsds.yaml +32 -0
  73. package/docs/icons/icon-cube.dsds.yaml +36 -0
  74. package/docs/icons/icon-dashboard.dsds.yaml +34 -0
  75. package/docs/icons/icon-database.dsds.yaml +40 -0
  76. package/docs/icons/icon-desktop.dsds.yaml +31 -0
  77. package/docs/icons/icon-diamond.dsds.yaml +18 -0
  78. package/docs/icons/icon-document-pdf.dsds.yaml +34 -0
  79. package/docs/icons/icon-document-remove.dsds.yaml +30 -0
  80. package/docs/icons/icon-document-sheet.dsds.yaml +34 -0
  81. package/docs/icons/icon-document-text.dsds.yaml +30 -0
  82. package/docs/icons/icon-document-video.dsds.yaml +30 -0
  83. package/docs/icons/icon-document-word.dsds.yaml +34 -0
  84. package/docs/icons/icon-document-zip.dsds.yaml +30 -0
  85. package/docs/icons/icon-document.dsds.yaml +52 -0
  86. package/docs/icons/icon-documents.dsds.yaml +30 -0
  87. package/docs/icons/icon-dot.dsds.yaml +32 -0
  88. package/docs/icons/icon-double-chevron-down.dsds.yaml +38 -0
  89. package/docs/icons/icon-double-chevron-left.dsds.yaml +34 -0
  90. package/docs/icons/icon-double-chevron-right.dsds.yaml +34 -0
  91. package/docs/icons/icon-double-chevron-up.dsds.yaml +36 -0
  92. package/docs/icons/icon-double-quote.dsds.yaml +14 -0
  93. package/docs/icons/icon-download.dsds.yaml +40 -0
  94. package/docs/icons/icon-drag-handle.dsds.yaml +28 -0
  95. package/docs/icons/icon-drop.dsds.yaml +30 -0
  96. package/docs/icons/icon-earth-americas.dsds.yaml +34 -0
  97. package/docs/icons/icon-earth-globe.dsds.yaml +34 -0
  98. package/docs/icons/icon-edit.dsds.yaml +34 -0
  99. package/docs/icons/icon-ellipsis-horizontal.dsds.yaml +32 -0
  100. package/docs/icons/icon-ellipsis-vertical.dsds.yaml +14 -0
  101. package/docs/icons/icon-empty.dsds.yaml +28 -0
  102. package/docs/icons/icon-enter-right.dsds.yaml +18 -0
  103. package/docs/icons/icon-enter.dsds.yaml +18 -0
  104. package/docs/icons/icon-envelope.dsds.yaml +34 -0
  105. package/docs/icons/icon-equal.dsds.yaml +14 -0
  106. package/docs/icons/icon-error-filled.dsds.yaml +14 -0
  107. package/docs/icons/icon-error-outline.dsds.yaml +38 -0
  108. package/docs/icons/icon-error-screen.dsds.yaml +14 -0
  109. package/docs/icons/icon-expand.dsds.yaml +36 -0
  110. package/docs/icons/icon-eye-closed.dsds.yaml +38 -0
  111. package/docs/icons/icon-eye-open.dsds.yaml +38 -0
  112. package/docs/icons/icon-face-happy.dsds.yaml +14 -0
  113. package/docs/icons/icon-face-indifferent.dsds.yaml +14 -0
  114. package/docs/icons/icon-face-sad.dsds.yaml +14 -0
  115. package/docs/icons/icon-feedback.dsds.yaml +30 -0
  116. package/docs/icons/icon-filter.dsds.yaml +38 -0
  117. package/docs/icons/icon-folder.dsds.yaml +36 -0
  118. package/docs/icons/icon-generate.dsds.yaml +18 -0
  119. package/docs/icons/icon-github.dsds.yaml +14 -0
  120. package/docs/icons/icon-groq.dsds.yaml +31 -0
  121. package/docs/icons/icon-hash.dsds.yaml +18 -0
  122. package/docs/icons/icon-heart-filled.dsds.yaml +18 -0
  123. package/docs/icons/icon-heart.dsds.yaml +18 -0
  124. package/docs/icons/icon-help-circle.dsds.yaml +38 -0
  125. package/docs/icons/icon-highlight.dsds.yaml +18 -0
  126. package/docs/icons/icon-home.dsds.yaml +28 -0
  127. package/docs/icons/icon-ice-cream.dsds.yaml +18 -0
  128. package/docs/icons/icon-image-remove.dsds.yaml +32 -0
  129. package/docs/icons/icon-image.dsds.yaml +36 -0
  130. package/docs/icons/icon-images.dsds.yaml +34 -0
  131. package/docs/icons/icon-inbox.dsds.yaml +14 -0
  132. package/docs/icons/icon-info-filled.dsds.yaml +14 -0
  133. package/docs/icons/icon-info-outline.dsds.yaml +38 -0
  134. package/docs/icons/icon-inline-element.dsds.yaml +32 -0
  135. package/docs/icons/icon-inline.dsds.yaml +18 -0
  136. package/docs/icons/icon-insert-above.dsds.yaml +32 -0
  137. package/docs/icons/icon-insert-below.dsds.yaml +32 -0
  138. package/docs/icons/icon-italic.dsds.yaml +28 -0
  139. package/docs/icons/icon-joystick.dsds.yaml +18 -0
  140. package/docs/icons/icon-json.dsds.yaml +36 -0
  141. package/docs/icons/icon-launch.dsds.yaml +34 -0
  142. package/docs/icons/icon-leave.dsds.yaml +35 -0
  143. package/docs/icons/icon-lemon.dsds.yaml +18 -0
  144. package/docs/icons/icon-link-removed.dsds.yaml +30 -0
  145. package/docs/icons/icon-link.dsds.yaml +36 -0
  146. package/docs/icons/icon-linkedin.dsds.yaml +14 -0
  147. package/docs/icons/icon-list.dsds.yaml +14 -0
  148. package/docs/icons/icon-lock.dsds.yaml +39 -0
  149. package/docs/icons/icon-logo-js.dsds.yaml +18 -0
  150. package/docs/icons/icon-logo-ts.dsds.yaml +18 -0
  151. package/docs/icons/icon-marker-removed.dsds.yaml +14 -0
  152. package/docs/icons/icon-marker.dsds.yaml +14 -0
  153. package/docs/icons/icon-master-detail.dsds.yaml +28 -0
  154. package/docs/icons/icon-menu.dsds.yaml +40 -0
  155. package/docs/icons/icon-microphone-slash.dsds.yaml +14 -0
  156. package/docs/icons/icon-microphone.dsds.yaml +14 -0
  157. package/docs/icons/icon-mobile-device.dsds.yaml +32 -0
  158. package/docs/icons/icon-moon.dsds.yaml +30 -0
  159. package/docs/icons/icon-number.dsds.yaml +30 -0
  160. package/docs/icons/icon-ok-hand.dsds.yaml +18 -0
  161. package/docs/icons/icon-olist.dsds.yaml +36 -0
  162. package/docs/icons/icon-overage.dsds.yaml +42 -0
  163. package/docs/icons/icon-package.dsds.yaml +34 -0
  164. package/docs/icons/icon-panel-left.dsds.yaml +38 -0
  165. package/docs/icons/icon-panel-right.dsds.yaml +40 -0
  166. package/docs/icons/icon-pause.dsds.yaml +32 -0
  167. package/docs/icons/icon-pin-filled.dsds.yaml +28 -0
  168. package/docs/icons/icon-pin-removed.dsds.yaml +14 -0
  169. package/docs/icons/icon-pin.dsds.yaml +32 -0
  170. package/docs/icons/icon-play.dsds.yaml +32 -0
  171. package/docs/icons/icon-plug.dsds.yaml +35 -0
  172. package/docs/icons/icon-presentation.dsds.yaml +18 -0
  173. package/docs/icons/icon-progress50.dsds.yaml +14 -0
  174. package/docs/icons/icon-progress75.dsds.yaml +14 -0
  175. package/docs/icons/icon-projects.dsds.yaml +14 -0
  176. package/docs/icons/icon-publish.dsds.yaml +38 -0
  177. package/docs/icons/icon-read-only.dsds.yaml +36 -0
  178. package/docs/icons/icon-redo.dsds.yaml +38 -0
  179. package/docs/icons/icon-refresh.dsds.yaml +38 -0
  180. package/docs/icons/icon-remove-circle.dsds.yaml +14 -0
  181. package/docs/icons/icon-remove.dsds.yaml +30 -0
  182. package/docs/icons/icon-reset.dsds.yaml +40 -0
  183. package/docs/icons/icon-restore.dsds.yaml +45 -0
  184. package/docs/icons/icon-retrieve.dsds.yaml +14 -0
  185. package/docs/icons/icon-retry.dsds.yaml +14 -0
  186. package/docs/icons/icon-revert.dsds.yaml +14 -0
  187. package/docs/icons/icon-robot.dsds.yaml +17 -0
  188. package/docs/icons/icon-rocket.dsds.yaml +34 -0
  189. package/docs/icons/icon-schema.dsds.yaml +36 -0
  190. package/docs/icons/icon-search.dsds.yaml +34 -0
  191. package/docs/icons/icon-select.dsds.yaml +38 -0
  192. package/docs/icons/icon-share.dsds.yaml +36 -0
  193. package/docs/icons/icon-sort.dsds.yaml +40 -0
  194. package/docs/icons/icon-sparkle.dsds.yaml +26 -0
  195. package/docs/icons/icon-sparkles.dsds.yaml +34 -0
  196. package/docs/icons/icon-spinner.dsds.yaml +38 -0
  197. package/docs/icons/icon-split-horizontal.dsds.yaml +32 -0
  198. package/docs/icons/icon-split-vertical.dsds.yaml +30 -0
  199. package/docs/icons/icon-square.dsds.yaml +18 -0
  200. package/docs/icons/icon-stack-compact.dsds.yaml +30 -0
  201. package/docs/icons/icon-stack.dsds.yaml +44 -0
  202. package/docs/icons/icon-star-filled.dsds.yaml +48 -0
  203. package/docs/icons/icon-star.dsds.yaml +51 -0
  204. package/docs/icons/icon-stop.dsds.yaml +32 -0
  205. package/docs/icons/icon-strikethrough.dsds.yaml +28 -0
  206. package/docs/icons/icon-string.dsds.yaml +38 -0
  207. package/docs/icons/icon-sun.dsds.yaml +30 -0
  208. package/docs/icons/icon-sync.dsds.yaml +36 -0
  209. package/docs/icons/icon-tablet-device.dsds.yaml +30 -0
  210. package/docs/icons/icon-tag.dsds.yaml +32 -0
  211. package/docs/icons/icon-tags.dsds.yaml +36 -0
  212. package/docs/icons/icon-target.dsds.yaml +14 -0
  213. package/docs/icons/icon-task.dsds.yaml +30 -0
  214. package/docs/icons/icon-terminal.dsds.yaml +30 -0
  215. package/docs/icons/icon-text.dsds.yaml +32 -0
  216. package/docs/icons/icon-th-large.dsds.yaml +34 -0
  217. package/docs/icons/icon-th-list.dsds.yaml +30 -0
  218. package/docs/icons/icon-thumbs-down.dsds.yaml +27 -0
  219. package/docs/icons/icon-thumbs-up.dsds.yaml +30 -0
  220. package/docs/icons/icon-tiers.dsds.yaml +18 -0
  221. package/docs/icons/icon-timeline.dsds.yaml +32 -0
  222. package/docs/icons/icon-toggle-arrow-right.dsds.yaml +39 -0
  223. package/docs/icons/icon-token.dsds.yaml +30 -0
  224. package/docs/icons/icon-transfer.dsds.yaml +32 -0
  225. package/docs/icons/icon-translate.dsds.yaml +32 -0
  226. package/docs/icons/icon-trash.dsds.yaml +34 -0
  227. package/docs/icons/icon-trend-upward.dsds.yaml +42 -0
  228. package/docs/icons/icon-triangle-outline.dsds.yaml +18 -0
  229. package/docs/icons/icon-trolley.dsds.yaml +18 -0
  230. package/docs/icons/icon-truncate.dsds.yaml +18 -0
  231. package/docs/icons/icon-twitter.dsds.yaml +18 -0
  232. package/docs/icons/icon-ulist.dsds.yaml +36 -0
  233. package/docs/icons/icon-unarchive.dsds.yaml +32 -0
  234. package/docs/icons/icon-underline.dsds.yaml +28 -0
  235. package/docs/icons/icon-undo.dsds.yaml +34 -0
  236. package/docs/icons/icon-unknown.dsds.yaml +36 -0
  237. package/docs/icons/icon-unlink.dsds.yaml +32 -0
  238. package/docs/icons/icon-unlock.dsds.yaml +41 -0
  239. package/docs/icons/icon-unpublish.dsds.yaml +38 -0
  240. package/docs/icons/icon-upload.dsds.yaml +40 -0
  241. package/docs/icons/icon-user.dsds.yaml +34 -0
  242. package/docs/icons/icon-users.dsds.yaml +34 -0
  243. package/docs/icons/icon-versions.dsds.yaml +14 -0
  244. package/docs/icons/icon-video.dsds.yaml +32 -0
  245. package/docs/icons/icon-warning-filled.dsds.yaml +14 -0
  246. package/docs/icons/icon-warning-outline.dsds.yaml +38 -0
  247. package/docs/icons/icon-wrench.dsds.yaml +18 -0
  248. package/docs/icons.dsds.yaml +767 -2512
  249. package/docs/index.dsds.yaml +76 -85
  250. package/docs/overview/component-reference.dsds.yaml +0 -2
  251. package/docs/overview/installation.dsds.yaml +20 -4
  252. package/docs/patterns/forms.dsds.yaml +6 -0
  253. package/docs/patterns/layouts.dsds.yaml +1 -1
  254. package/docs/patterns/loading-states.dsds.yaml +1 -1
  255. package/docs/tokens/dtcg/README.md +5 -3
  256. package/docs/tokens/dtcg/css/color.css +1 -1
  257. package/docs/tokens/dtcg/css/index.css +0 -1
  258. package/docs/tokens/dtcg/css/typography.css +23 -25
  259. package/docs/tokens/dtcg/json/color.tokens.json +2 -2
  260. package/docs/tokens/dtcg/json/typography.tokens.json +45 -45
  261. package/docs/tokens/typography.dsds.yaml +25 -25
  262. package/package.json +2 -2
  263. package/src/components/button/Button.tsx +14 -3
  264. package/src/components/button/button.css +23 -25
  265. package/src/components/button/button.props.ts +4 -0
  266. package/src/components/code/code.props.ts +3 -2
  267. package/src/components/eyebrow/Eyebrow.tsx +8 -3
  268. package/src/components/eyebrow/eyebrow.props.ts +10 -2
  269. package/src/components/heading/Heading.tsx +1 -1
  270. package/src/components/heading/heading.props.ts +4 -3
  271. package/src/components/popover/Popover.tsx +4 -3
  272. package/src/components/popover/popover.css +5 -3
  273. package/src/components/popover/popover.props.ts +9 -0
  274. package/src/components/text/text.props.ts +6 -1
  275. package/src/css/classes/system/typography.css +6 -6
  276. package/src/css/tokens/semantic.css +7 -7
  277. package/src/props/typography.ts +1 -5
  278. package/src/version.ts +2 -2
  279. package/docs/overview/designer-contribution-model.dsds.yaml +0 -77
  280. package/docs/overview/developer-contribution-model.dsds.yaml +0 -362
  281. package/docs/overview/resources.dsds.yaml +0 -34
@@ -275,241 +275,232 @@ shared:
275
275
  refs:
276
276
  - href: ./components/avatar.dsds.yaml
277
277
  rel: file
278
- role: Avatar (component)
278
+ role: Avatar
279
279
  - href: ./components/avatar-counter.dsds.yaml
280
280
  rel: file
281
- role: AvatarCounter (component)
281
+ role: AvatarCounter
282
282
  - href: ./components/avatar-stack.dsds.yaml
283
283
  rel: file
284
- role: AvatarStack (component)
284
+ role: AvatarStack
285
285
  - href: ./components/badge.dsds.yaml
286
286
  rel: file
287
- role: Badge (component)
287
+ role: Badge
288
288
  - href: ./components/box.dsds.yaml
289
289
  rel: file
290
- role: Box (component)
290
+ role: Box
291
291
  - href: ./components/button.dsds.yaml
292
292
  rel: file
293
- role: Button (component)
293
+ role: Button
294
294
  - href: ./components/card.dsds.yaml
295
295
  rel: file
296
- role: Card (component)
296
+ role: Card
297
297
  - href: ./components/checkbox.dsds.yaml
298
298
  rel: file
299
- role: Checkbox (component)
299
+ role: Checkbox
300
300
  - href: ./components/code.dsds.yaml
301
301
  rel: file
302
- role: Code (component)
302
+ role: Code
303
303
  - href: ./components/container.dsds.yaml
304
304
  rel: file
305
- role: Container (component)
305
+ role: Container
306
306
  - href: ./components/dialog.dsds.yaml
307
307
  rel: file
308
- role: Dialog (component)
308
+ role: Dialog
309
309
  - href: ./components/divider.dsds.yaml
310
310
  rel: file
311
- role: Divider (component)
311
+ role: Divider
312
312
  - href: ./components/eyebrow.dsds.yaml
313
313
  rel: file
314
- role: Eyebrow (component)
314
+ role: Eyebrow
315
315
  - href: ./components/flex.dsds.yaml
316
316
  rel: file
317
- role: Flex (component)
317
+ role: Flex
318
318
  - href: ./components/grid.dsds.yaml
319
319
  rel: file
320
- role: Grid (component)
320
+ role: Grid
321
321
  - href: ./components/h-stack.dsds.yaml
322
322
  rel: file
323
- role: HStack (component)
323
+ role: HStack
324
324
  - href: ./components/heading.dsds.yaml
325
325
  rel: file
326
- role: Heading (component)
326
+ role: Heading
327
327
  - href: ./components/hotkeys.dsds.yaml
328
328
  rel: file
329
- role: Hotkeys (component)
329
+ role: Hotkeys
330
330
  - href: ./components/icon-button.dsds.yaml
331
331
  rel: file
332
- role: IconButton (component)
332
+ role: IconButton
333
333
  - href: ./components/icon.dsds.yaml
334
334
  rel: file
335
- role: Icon (component)
335
+ role: Icon
336
336
  - href: ./components/indicator-stack.dsds.yaml
337
337
  rel: file
338
- role: IndicatorStack (component)
338
+ role: IndicatorStack
339
339
  - href: ./components/indicator.dsds.yaml
340
340
  rel: file
341
- role: Indicator (component)
341
+ role: Indicator
342
342
  - href: ./components/inline.dsds.yaml
343
343
  rel: file
344
- role: Inline (component)
344
+ role: Inline
345
345
  - href: ./components/kbd.dsds.yaml
346
346
  rel: file
347
- role: KBD (component)
347
+ role: KBD
348
348
  - href: ./components/link.dsds.yaml
349
349
  rel: file
350
- role: Link (component)
350
+ role: Link
351
351
  - href: ./components/list-button-item.dsds.yaml
352
352
  rel: file
353
- role: List.ButtonItem (component)
353
+ role: List.ButtonItem
354
354
  - href: ./components/list-item-image.dsds.yaml
355
355
  rel: file
356
- role: List.ItemImage (component)
356
+ role: List.ItemImage
357
357
  - href: ./components/list-item-text.dsds.yaml
358
358
  rel: file
359
- role: List.ItemText (component)
359
+ role: List.ItemText
360
360
  - href: ./components/list-item.dsds.yaml
361
361
  rel: file
362
- role: List.Item (component)
362
+ role: List.Item
363
363
  - href: ./components/list.dsds.yaml
364
364
  rel: file
365
- role: List (component)
365
+ role: List
366
366
  - href: ./components/popover.dsds.yaml
367
367
  rel: file
368
- role: Popover (component)
368
+ role: Popover
369
369
  - href: ./components/press-area.dsds.yaml
370
370
  rel: file
371
- role: PressArea (component)
371
+ role: PressArea
372
372
  - href: ./components/radio.dsds.yaml
373
373
  rel: file
374
- role: Radio (component)
374
+ role: Radio
375
375
  - href: ./components/select.dsds.yaml
376
376
  rel: file
377
- role: Select (component)
377
+ role: Select
378
378
  - href: ./components/skip-to-content.dsds.yaml
379
379
  rel: file
380
- role: SkipToContent (component)
380
+ role: SkipToContent
381
381
  - href: ./components/spinner.dsds.yaml
382
382
  rel: file
383
- role: Spinner (component)
383
+ role: Spinner
384
384
  - href: ./components/switch.dsds.yaml
385
385
  rel: file
386
- role: Switch (component)
386
+ role: Switch
387
387
  - href: ./components/tabs.dsds.yaml
388
388
  rel: file
389
- role: Tabs (component family)
389
+ role: Tabs
390
390
  - href: ./components/tab.dsds.yaml
391
391
  rel: file
392
- role: Tabs.Tab (component)
392
+ role: Tabs.Tab
393
393
  - href: ./components/tabs-list.dsds.yaml
394
394
  rel: file
395
- role: Tabs.List (component)
395
+ role: Tabs.List
396
396
  - href: ./components/tabs-panel.dsds.yaml
397
397
  rel: file
398
- role: Tabs.Panel (component)
398
+ role: Tabs.Panel
399
399
  - href: ./components/text.dsds.yaml
400
400
  rel: file
401
- role: Text (component)
401
+ role: Text
402
402
  - href: ./components/text-area.dsds.yaml
403
403
  rel: file
404
- role: TextArea (component)
404
+ role: TextArea
405
405
  - href: ./components/text-input.dsds.yaml
406
406
  rel: file
407
- role: TextInput (component)
407
+ role: TextInput
408
408
  - href: ./components/tooltip-group.dsds.yaml
409
409
  rel: file
410
- role: TooltipGroup (component)
410
+ role: TooltipGroup
411
411
  - href: ./components/tooltip.dsds.yaml
412
412
  rel: file
413
- role: Tooltip (component)
413
+ role: Tooltip
414
414
  - href: ./components/v-stack.dsds.yaml
415
415
  rel: file
416
- role: VStack (component)
416
+ role: VStack
417
417
  - href: ./components/visually-hidden.dsds.yaml
418
418
  rel: file
419
- role: VisuallyHidden (component)
419
+ role: VisuallyHidden
420
420
  - href: ./foundations/accessibility-guidelines.dsds.yaml
421
421
  rel: file
422
- role: Accessibility guidelines (sanity.foundation)
422
+ role: Accessibility guidelines
423
423
  - href: ./foundations/color-guidelines.dsds.yaml
424
424
  rel: file
425
- role: Color guidelines (sanity.foundation)
425
+ role: Color guidelines
426
426
  - href: ./foundations/content-guidelines.dsds.yaml
427
427
  rel: file
428
- role: Content guidelines (sanity.foundation)
428
+ role: Content guidelines
429
429
  - href: ./foundations/semantics.dsds.yaml
430
430
  rel: file
431
- role: Semantics (sanity.foundation)
431
+ role: Semantics
432
432
  - href: ./foundations/spacing-guidelines.dsds.yaml
433
433
  rel: file
434
- role: Spacing guidelines (sanity.foundation)
434
+ role: Spacing guidelines
435
435
  - href: ./foundations/typography-guidelines.dsds.yaml
436
436
  rel: file
437
- role: Typography guidelines (sanity.foundation)
437
+ role: Typography guidelines
438
438
  - href: ./overview/component-reference.dsds.yaml
439
439
  rel: file
440
- role: Component reference (sanity.guide)
441
- - href: ./overview/designer-contribution-model.dsds.yaml
442
- rel: file
443
- role: Sanity Design System's design contribution model (sanity.guide)
444
- - href: ./overview/developer-contribution-model.dsds.yaml
445
- rel: file
446
- role: Developer contribution model (sanity.guide)
440
+ role: Component reference
447
441
  - href: ./overview/api-essentials.dsds.yaml
448
442
  rel: file
449
- role: API essentials (sanity.guide)
443
+ role: API essentials
450
444
  - href: ./overview/installation.dsds.yaml
451
445
  rel: file
452
- role: Installation (sanity.guide)
446
+ role: Installation
453
447
  - href: ./overview/quick-start.dsds.yaml
454
448
  rel: file
455
- role: Quick start (sanity.guide)
449
+ role: Quick start
456
450
  - href: ./patterns/confirmation-dialogs.dsds.yaml
457
451
  rel: file
458
- role: Confirmation & action dialogs (sanity.pattern)
452
+ role: Confirmation & action dialogs
459
453
  - href: ./patterns/error-messaging.dsds.yaml
460
454
  rel: file
461
- role: Error messaging (sanity.pattern)
455
+ role: Error messaging
462
456
  - href: ./patterns/forms.dsds.yaml
463
457
  rel: file
464
- role: Forms and form copy (sanity.pattern)
458
+ role: Forms and form copy
465
459
  - href: ./patterns/layouts.dsds.yaml
466
460
  rel: file
467
- role: Layout guidelines (sanity.pattern)
461
+ role: Layout guidelines
468
462
  - href: ./patterns/loading-states.dsds.yaml
469
463
  rel: file
470
- role: Loading states (sanity.pattern)
464
+ role: Loading states
471
465
  - href: ./patterns/messaging.dsds.yaml
472
466
  rel: file
473
- role: Messaging (sanity.pattern)
467
+ role: Messaging
474
468
  - href: ./patterns/navigation.dsds.yaml
475
469
  rel: file
476
- role: Sidebar navigation pattern (sanity.pattern)
470
+ role: Sidebar navigation pattern
477
471
  - href: ./patterns/responsive.dsds.yaml
478
472
  rel: file
479
- role: Responsive (sanity.pattern)
473
+ role: Responsive
480
474
  - href: ./tokens/color.dsds.yaml
481
475
  rel: file
482
- role: Color palette (entry)
476
+ role: Color palette
483
477
  - href: ./tokens/container-widths.dsds.yaml
484
478
  rel: file
485
- role: Container widths (entry)
479
+ role: Container widths
486
480
  - href: ./tokens/content.dsds.yaml
487
481
  rel: file
488
- role: Content tokens (demo) (entry)
482
+ role: Content tokens (demo)
489
483
  - href: ./tokens/font-family.dsds.yaml
490
484
  rel: file
491
- role: Font families (entry)
485
+ role: Font families
492
486
  - href: ./tokens/font-weight.dsds.yaml
493
487
  rel: file
494
- role: Font weights (entry)
488
+ role: Font weights
495
489
  - href: ./tokens/radius.dsds.yaml
496
490
  rel: file
497
- role: Radius scale (entry)
491
+ role: Radius scale
498
492
  - href: ./tokens/semantic.dsds.yaml
499
493
  rel: file
500
- role: Semantic tokens (entry)
494
+ role: Semantic tokens
501
495
  - href: ./tokens/shadow.dsds.yaml
502
496
  rel: file
503
- role: Shadow scale (entry)
497
+ role: Shadow scale
504
498
  - href: ./tokens/space.dsds.yaml
505
499
  rel: file
506
- role: Space scale (entry)
500
+ role: Space scale
507
501
  - href: ./tokens/typography.dsds.yaml
508
502
  rel: file
509
- role: Typography styles (entry)
510
- - href: ./overview/resources.dsds.yaml
511
- rel: file
512
- role: Resources (sanity.guide)
503
+ role: Typography styles
513
504
  - href: ./icons.dsds.yaml
514
505
  rel: file
515
506
  role: Sanity icon library (@sanity/icons)
@@ -152,11 +152,9 @@ sections:
152
152
  - to: dialog
153
153
  rel: relates-to
154
154
  role: beta
155
- note: Shipped as `Modal` in 5.0.0-alpha.5, renamed to `Dialog` in 5.0.0-alpha.7. No `Modal` alias.
156
155
  - to: popover
157
156
  rel: relates-to
158
157
  role: beta
159
- note: Ships in v5 — exported from the root barrel and present in 5.0.0-alpha.10.
160
158
  - title: Discovery
161
159
  body: Provides a way to find relevant content. No components confirmed in the source taxonomy yet.
162
160
  - title: Navigation
@@ -118,10 +118,23 @@ sections:
118
118
  - title: 'New project: install React 19.2 first'
119
119
  description: |-
120
120
  Start with React 19.2:
121
- ```shell npm install react@^19.2 react-dom@^19.2 ``` Then add Sanity UI (pin the `alpha` tag — `@sanity/ui`'s `latest` npm tag is the pre-v5 line):
122
- ```shell npm install @sanity/ui@alpha ```
121
+
122
+ ```shell
123
+ npm install react@^19.2 react-dom@^19.2
124
+ ```
125
+
126
+ Then add Sanity UI (pin the `alpha` tag — `@sanity/ui`'s `latest` npm tag is the pre-v5 line):
127
+
128
+ ```shell
129
+ npm install @sanity/ui@alpha
130
+ ```
131
+
123
132
  `@sanity/ui` depends on `@sanity/icons` and `react-refractor` directly — both install on their own. Add `@sanity/icons` to your own `package.json` if your app code imports icons directly. That keeps it from being a hidden transitive dependency:
124
- ```shell npm install @sanity/icons ```
133
+
134
+ ```shell
135
+ npm install @sanity/icons
136
+ ```
137
+
125
138
  Sanity UI 5 has no `styled-components` dependency and no theme provider. Skip both.
126
139
  - title: 'Existing project with React 18: add npm overrides'
127
140
  description: |-
@@ -234,5 +247,8 @@ sections:
234
247
  - title: Package version note
235
248
  body: |-
236
249
  These docs track the current `@sanity/ui` v5 alpha line. The package is pre-1.0 and still changing. The docs may describe components or props that your installed copy does not yet export. To list what your copy ships:
237
- ```shell node -e "console.log(Object.keys(require('@sanity/ui')))" ```
250
+ ```shell
251
+ node -e "console.log(Object.keys(require('@sanity/ui')))"
252
+ ```
253
+
238
254
  When a doc and your installed package disagree, the package wins. Treat the docs as forward-looking.
@@ -98,6 +98,12 @@ sections:
98
98
  - id: no-mixed-controlled-uncontrolled
99
99
  level: must-not
100
100
  statement: Don't set both `checked` and `defaultChecked` on the same Checkbox, Radio or Switch. Choose one pattern — controlled or uncontrolled — per instance; mixing them produces inconsistent behaviour.
101
+ - id: no-pressed-for-form-values
102
+ level: must-not
103
+ statement: Don't use Button's `pressed` prop to toggle one or more values in a form. Use Checkbox or Radio instead.
104
+ alternatives:
105
+ - to: checkbox
106
+ - to: radio
101
107
  - kind: guidelines
102
108
  for: all
103
109
  title: Accessibility
@@ -82,7 +82,7 @@ sections:
82
82
  statement: Use `level="primary"`/`level="secondary"`/`level="tertiary"` on the Button component to express action hierarchy, with only one primary action per action area.
83
83
  tags: [development]
84
84
  - level: must
85
- statement: Use `loading={true}` only for processes that consistently take longer than 200ms, keep the button disabled and its label unchanged while loading, and show a confirmation message on completion for processes over three seconds.
85
+ statement: Use `loading={true}` only for processes that consistently take longer than 200ms. Show a confirmation message on completion for processes over three seconds.
86
86
  tags: [interaction]
87
87
  - level: must
88
88
  statement: 'Require explicit confirmation before executing a destructive action — a confirmation dialog stating what will happen, with a cancel option, whose confirm button repeats the destructive action''s name (for example, "Delete 3 items") and uses `level="primary" tone="critical"` — confirming is the dialog''s most important action, so it is not demoted for being destructive.'
@@ -27,7 +27,7 @@ sections:
27
27
  - level: must
28
28
  statement: Show a skeleton or "Loading…" on initial load once the wait passes about 200ms and no content is available yet. Below that, show nothing — an indicator that flashes and vanishes reads as noise. Hold empty-state copy until the load fails or returns nothing.
29
29
  - level: must
30
- statement: For a pending action on a Button, such as a form mid-submit, set `loading={true}`. It shows progress and disables the button, so a second click does nothing. Keep the button's label unchanged while it loads.
30
+ statement: For a pending action on a Button, such as a form mid-submit, set `loading={true}`. The button keeps its size.
31
31
  - level: should
32
32
  statement: On in-place refresh when content is already shown, keep the content visible and show progress — not a full-screen message.
33
33
  - level: should
@@ -9,11 +9,13 @@ The files are a copy of `dist/json` and `dist/css` from [sanity-labs/design-toke
9
9
  | Field | Value |
10
10
  | ------- | -------------------------------- |
11
11
  | Package | `@sanity-labs/design-tokens` |
12
- | Version | `0.0.2-alpha.6` |
12
+ | Version | `0.0.2-alpha.11` |
13
13
  | Commit | Not recorded in the npm package |
14
- | Copied | 2026-10-05, from the npm package |
14
+ | Copied | 2026-11-13, from the npm package |
15
15
 
16
- Sanity UI 5 alpha.14 depends on this version. Keep the copy on the version Sanity UI pins.
16
+ This is the highest version published on npm, and the version `packages/ui/package.json` pins. Keep the copy on the version Sanity UI pins.
17
+
18
+ `shadow.tokens.json` and `shadow.css` are not in `0.0.2-alpha.11`. They are still the copies from `0.0.2-alpha.6`, and they are kept because the shadow docs depend on them.
17
19
 
18
20
  ## The semantic file
19
21
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  :root {
6
- --black: #0d0e12;
6
+ --black: #13141b;
7
7
  --blue-100: #e5edff;
8
8
  --blue-200: #dbe5ff;
9
9
  --blue-300: #a8bfff;
@@ -8,6 +8,5 @@
8
8
  @import './fontFamily.css';
9
9
  @import './fontWeight.css';
10
10
  @import './radius.css';
11
- @import './shadow.css';
12
11
  @import './space.css';
13
12
  @import './typography.css';
@@ -10,13 +10,13 @@
10
10
  400 13px/1.5 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
11
11
  Liberation Sans, sans-serif;
12
12
  --body-2:
13
- 400 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
13
+ 400 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
14
14
  Liberation Sans, sans-serif;
15
15
  --body-3:
16
- 400 18.75px/1.5 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
16
+ 400 18px/1.5 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
17
17
  Liberation Sans, sans-serif;
18
18
  --body-4:
19
- 400 21.5px/1.5 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
19
+ 400 21px/1.5 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
20
20
  Liberation Sans, sans-serif;
21
21
  --code-0:
22
22
  400 10px/1.5 ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
@@ -25,11 +25,27 @@
25
25
  --code-2:
26
26
  400 16px/1.5 ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
27
27
  --code-3:
28
- 400 18.75px/1.5 ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono,
29
- monospace;
28
+ 400 19px/1.5 ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
30
29
  --code-4:
31
- 400 21.5px/1.5 ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono,
32
- monospace;
30
+ 400 22px/1.5 ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
31
+ --eyebrow-0:
32
+ 400 8.1px/1.15 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
33
+ Liberation Sans, sans-serif;
34
+ --eyebrow-1:
35
+ 400 9.5px/1.15 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
36
+ Liberation Sans, sans-serif;
37
+ --eyebrow-2:
38
+ 400 10.8px/1.15 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
39
+ Liberation Sans, sans-serif;
40
+ --eyebrow-3:
41
+ 400 12.25px/1.15 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
42
+ Liberation Sans, sans-serif;
43
+ --eyebrow-4:
44
+ 400 13.6px/1.15 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
45
+ Liberation Sans, sans-serif;
46
+ --eyebrow-5:
47
+ 400 15px/1.15 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
48
+ Liberation Sans, sans-serif;
33
49
  --heading-0:
34
50
  400 13px/1.25 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
35
51
  Liberation Sans, sans-serif;
@@ -48,22 +64,4 @@
48
64
  --heading-5:
49
65
  400 38px/1.25 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
50
66
  Liberation Sans, sans-serif;
51
- --label-0:
52
- 400 8.1px/1.25 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
53
- Liberation Sans, sans-serif;
54
- --label-1:
55
- 400 9.5px/1.25 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
56
- Liberation Sans, sans-serif;
57
- --label-2:
58
- 400 10.8px/1.25 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
59
- Liberation Sans, sans-serif;
60
- --label-3:
61
- 400 12.25px/1.25 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
62
- Liberation Sans, sans-serif;
63
- --label-4:
64
- 400 13.6px/1.25 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
65
- Liberation Sans, sans-serif;
66
- --label-5:
67
- 400 15px/1.25 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
68
- Liberation Sans, sans-serif;
69
67
  }
@@ -4,8 +4,8 @@
4
4
  "$value": {
5
5
  "alpha": 1,
6
6
  "colorSpace": "srgb",
7
- "components": [0.050980392156862744, 0.054901960784313725, 0.07058823529411765],
8
- "hex": "#0d0e12"
7
+ "components": [0.07450980392156863, 0.0784313725490196, 0.10588235294117647],
8
+ "hex": "#13141b"
9
9
  }
10
10
  },
11
11
  "blue-100": {