@sanity/ui 5.0.0-alpha.22 → 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 (377) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +15 -7
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +76 -59
  5. package/dist/index.js.map +1 -1
  6. package/dist/styles.css +1 -1
  7. package/docs/components/avatar-counter.dsds.yaml +78 -0
  8. package/docs/components/avatar-stack.dsds.yaml +96 -0
  9. package/docs/components/avatar.dsds.yaml +115 -0
  10. package/docs/components/badge.dsds.yaml +126 -0
  11. package/docs/components/box.dsds.yaml +223 -0
  12. package/docs/components/button.dsds.yaml +296 -0
  13. package/docs/components/card.dsds.yaml +317 -0
  14. package/docs/components/checkbox.dsds.yaml +204 -0
  15. package/docs/components/code.dsds.yaml +169 -0
  16. package/docs/components/container.dsds.yaml +189 -0
  17. package/docs/components/dialog.dsds.yaml +343 -0
  18. package/docs/components/divider.dsds.yaml +93 -0
  19. package/docs/components/eyebrow.dsds.yaml +198 -0
  20. package/docs/components/flex.dsds.yaml +237 -0
  21. package/docs/components/grid.dsds.yaml +217 -0
  22. package/docs/components/h-stack.dsds.yaml +127 -0
  23. package/docs/components/heading.dsds.yaml +233 -0
  24. package/docs/components/hotkeys.dsds.yaml +60 -0
  25. package/docs/components/icon-button.dsds.yaml +227 -0
  26. package/docs/components/icon.dsds.yaml +275 -0
  27. package/docs/components/indicator-stack.dsds.yaml +98 -0
  28. package/docs/components/indicator.dsds.yaml +108 -0
  29. package/docs/components/inline.dsds.yaml +127 -0
  30. package/docs/components/kbd.dsds.yaml +59 -0
  31. package/docs/components/link.dsds.yaml +108 -0
  32. package/docs/components/list-button-item.dsds.yaml +103 -0
  33. package/docs/components/list-item-image.dsds.yaml +82 -0
  34. package/docs/components/list-item-text.dsds.yaml +80 -0
  35. package/docs/components/list-item.dsds.yaml +148 -0
  36. package/docs/components/list.dsds.yaml +162 -0
  37. package/docs/components/popover.dsds.yaml +214 -0
  38. package/docs/components/press-area.dsds.yaml +279 -0
  39. package/docs/components/radio.dsds.yaml +198 -0
  40. package/docs/components/select.dsds.yaml +214 -0
  41. package/docs/components/skip-to-content.dsds.yaml +110 -0
  42. package/docs/components/spinner.dsds.yaml +119 -0
  43. package/docs/components/switch.dsds.yaml +202 -0
  44. package/docs/components/tab.dsds.yaml +54 -0
  45. package/docs/components/tabs-list.dsds.yaml +56 -0
  46. package/docs/components/tabs-panel.dsds.yaml +54 -0
  47. package/docs/components/tabs.dsds.yaml +104 -0
  48. package/docs/components/text-area.dsds.yaml +170 -0
  49. package/docs/components/text-input.dsds.yaml +189 -0
  50. package/docs/components/text.dsds.yaml +268 -0
  51. package/docs/components/tooltip-group.dsds.yaml +90 -0
  52. package/docs/components/tooltip.dsds.yaml +216 -0
  53. package/docs/components/v-stack.dsds.yaml +155 -0
  54. package/docs/components/visually-hidden.dsds.yaml +112 -0
  55. package/docs/evals/cases.yaml +1319 -0
  56. package/docs/examples/checkbox-2.tsx +57 -0
  57. package/docs/examples/confirmation-dialogs-1.tsx +27 -0
  58. package/docs/examples/confirmation-dialogs-2.tsx +55 -0
  59. package/docs/examples/confirmation-dialogs-3.tsx +28 -0
  60. package/docs/examples/confirmation-dialogs-4.tsx +38 -0
  61. package/docs/examples/popover-1.tsx +48 -0
  62. package/docs/examples/popover-2.tsx +53 -0
  63. package/docs/foundations/accessibility-guidelines.dsds.yaml +301 -0
  64. package/docs/foundations/color-guidelines.dsds.yaml +308 -0
  65. package/docs/foundations/content-guidelines.dsds.yaml +285 -0
  66. package/docs/foundations/semantics.dsds.yaml +125 -0
  67. package/docs/foundations/spacing-guidelines.dsds.yaml +226 -0
  68. package/docs/foundations/typography-guidelines.dsds.yaml +322 -0
  69. package/docs/icons/icon-access-denied.dsds.yaml +40 -0
  70. package/docs/icons/icon-activity.dsds.yaml +40 -0
  71. package/docs/icons/icon-add-circle.dsds.yaml +14 -0
  72. package/docs/icons/icon-add-comment.dsds.yaml +34 -0
  73. package/docs/icons/icon-add-document.dsds.yaml +34 -0
  74. package/docs/icons/icon-add-user.dsds.yaml +30 -0
  75. package/docs/icons/icon-add.dsds.yaml +57 -0
  76. package/docs/icons/icon-api.dsds.yaml +17 -0
  77. package/docs/icons/icon-archive.dsds.yaml +44 -0
  78. package/docs/icons/icon-arrow-down.dsds.yaml +38 -0
  79. package/docs/icons/icon-arrow-left.dsds.yaml +32 -0
  80. package/docs/icons/icon-arrow-right.dsds.yaml +32 -0
  81. package/docs/icons/icon-arrow-top-right.dsds.yaml +32 -0
  82. package/docs/icons/icon-arrow-up.dsds.yaml +44 -0
  83. package/docs/icons/icon-asterisk.dsds.yaml +18 -0
  84. package/docs/icons/icon-bar-chart.dsds.yaml +40 -0
  85. package/docs/icons/icon-basket.dsds.yaml +14 -0
  86. package/docs/icons/icon-bell.dsds.yaml +30 -0
  87. package/docs/icons/icon-bill.dsds.yaml +40 -0
  88. package/docs/icons/icon-binary-document.dsds.yaml +30 -0
  89. package/docs/icons/icon-block-content.dsds.yaml +30 -0
  90. package/docs/icons/icon-block-element.dsds.yaml +32 -0
  91. package/docs/icons/icon-blockquote.dsds.yaml +32 -0
  92. package/docs/icons/icon-bold.dsds.yaml +28 -0
  93. package/docs/icons/icon-bolt.dsds.yaml +18 -0
  94. package/docs/icons/icon-book.dsds.yaml +34 -0
  95. package/docs/icons/icon-bookmark-filled.dsds.yaml +14 -0
  96. package/docs/icons/icon-bookmark.dsds.yaml +14 -0
  97. package/docs/icons/icon-bottle.dsds.yaml +18 -0
  98. package/docs/icons/icon-bug.dsds.yaml +28 -0
  99. package/docs/icons/icon-bulb-filled.dsds.yaml +14 -0
  100. package/docs/icons/icon-bulb-outline.dsds.yaml +30 -0
  101. package/docs/icons/icon-calendar.dsds.yaml +36 -0
  102. package/docs/icons/icon-case.dsds.yaml +18 -0
  103. package/docs/icons/icon-chart-upward.dsds.yaml +40 -0
  104. package/docs/icons/icon-checkmark-circle.dsds.yaml +40 -0
  105. package/docs/icons/icon-checkmark.dsds.yaml +36 -0
  106. package/docs/icons/icon-chevron-down.dsds.yaml +46 -0
  107. package/docs/icons/icon-chevron-left.dsds.yaml +42 -0
  108. package/docs/icons/icon-chevron-right.dsds.yaml +42 -0
  109. package/docs/icons/icon-chevron-up.dsds.yaml +44 -0
  110. package/docs/icons/icon-circle.dsds.yaml +28 -0
  111. package/docs/icons/icon-clipboard-image.dsds.yaml +30 -0
  112. package/docs/icons/icon-clipboard.dsds.yaml +34 -0
  113. package/docs/icons/icon-clock.dsds.yaml +39 -0
  114. package/docs/icons/icon-close-circle.dsds.yaml +18 -0
  115. package/docs/icons/icon-close.dsds.yaml +51 -0
  116. package/docs/icons/icon-code-block.dsds.yaml +38 -0
  117. package/docs/icons/icon-code.dsds.yaml +40 -0
  118. package/docs/icons/icon-cog.dsds.yaml +38 -0
  119. package/docs/icons/icon-collapse.dsds.yaml +40 -0
  120. package/docs/icons/icon-color-wheel.dsds.yaml +30 -0
  121. package/docs/icons/icon-comment.dsds.yaml +38 -0
  122. package/docs/icons/icon-component.dsds.yaml +18 -0
  123. package/docs/icons/icon-compose-sparkles.dsds.yaml +36 -0
  124. package/docs/icons/icon-compose.dsds.yaml +38 -0
  125. package/docs/icons/icon-confetti.dsds.yaml +18 -0
  126. package/docs/icons/icon-controls.dsds.yaml +36 -0
  127. package/docs/icons/icon-copy.dsds.yaml +31 -0
  128. package/docs/icons/icon-credit-card.dsds.yaml +18 -0
  129. package/docs/icons/icon-crop.dsds.yaml +32 -0
  130. package/docs/icons/icon-cube.dsds.yaml +36 -0
  131. package/docs/icons/icon-dashboard.dsds.yaml +34 -0
  132. package/docs/icons/icon-database.dsds.yaml +40 -0
  133. package/docs/icons/icon-desktop.dsds.yaml +31 -0
  134. package/docs/icons/icon-diamond.dsds.yaml +18 -0
  135. package/docs/icons/icon-document-pdf.dsds.yaml +34 -0
  136. package/docs/icons/icon-document-remove.dsds.yaml +30 -0
  137. package/docs/icons/icon-document-sheet.dsds.yaml +34 -0
  138. package/docs/icons/icon-document-text.dsds.yaml +30 -0
  139. package/docs/icons/icon-document-video.dsds.yaml +30 -0
  140. package/docs/icons/icon-document-word.dsds.yaml +34 -0
  141. package/docs/icons/icon-document-zip.dsds.yaml +30 -0
  142. package/docs/icons/icon-document.dsds.yaml +52 -0
  143. package/docs/icons/icon-documents.dsds.yaml +30 -0
  144. package/docs/icons/icon-dot.dsds.yaml +32 -0
  145. package/docs/icons/icon-double-chevron-down.dsds.yaml +38 -0
  146. package/docs/icons/icon-double-chevron-left.dsds.yaml +34 -0
  147. package/docs/icons/icon-double-chevron-right.dsds.yaml +34 -0
  148. package/docs/icons/icon-double-chevron-up.dsds.yaml +36 -0
  149. package/docs/icons/icon-double-quote.dsds.yaml +14 -0
  150. package/docs/icons/icon-download.dsds.yaml +40 -0
  151. package/docs/icons/icon-drag-handle.dsds.yaml +28 -0
  152. package/docs/icons/icon-drop.dsds.yaml +30 -0
  153. package/docs/icons/icon-earth-americas.dsds.yaml +34 -0
  154. package/docs/icons/icon-earth-globe.dsds.yaml +34 -0
  155. package/docs/icons/icon-edit.dsds.yaml +34 -0
  156. package/docs/icons/icon-ellipsis-horizontal.dsds.yaml +32 -0
  157. package/docs/icons/icon-ellipsis-vertical.dsds.yaml +14 -0
  158. package/docs/icons/icon-empty.dsds.yaml +28 -0
  159. package/docs/icons/icon-enter-right.dsds.yaml +18 -0
  160. package/docs/icons/icon-enter.dsds.yaml +18 -0
  161. package/docs/icons/icon-envelope.dsds.yaml +34 -0
  162. package/docs/icons/icon-equal.dsds.yaml +14 -0
  163. package/docs/icons/icon-error-filled.dsds.yaml +14 -0
  164. package/docs/icons/icon-error-outline.dsds.yaml +38 -0
  165. package/docs/icons/icon-error-screen.dsds.yaml +14 -0
  166. package/docs/icons/icon-expand.dsds.yaml +36 -0
  167. package/docs/icons/icon-eye-closed.dsds.yaml +38 -0
  168. package/docs/icons/icon-eye-open.dsds.yaml +38 -0
  169. package/docs/icons/icon-face-happy.dsds.yaml +14 -0
  170. package/docs/icons/icon-face-indifferent.dsds.yaml +14 -0
  171. package/docs/icons/icon-face-sad.dsds.yaml +14 -0
  172. package/docs/icons/icon-feedback.dsds.yaml +30 -0
  173. package/docs/icons/icon-filter.dsds.yaml +38 -0
  174. package/docs/icons/icon-folder.dsds.yaml +36 -0
  175. package/docs/icons/icon-generate.dsds.yaml +18 -0
  176. package/docs/icons/icon-github.dsds.yaml +14 -0
  177. package/docs/icons/icon-groq.dsds.yaml +31 -0
  178. package/docs/icons/icon-hash.dsds.yaml +18 -0
  179. package/docs/icons/icon-heart-filled.dsds.yaml +18 -0
  180. package/docs/icons/icon-heart.dsds.yaml +18 -0
  181. package/docs/icons/icon-help-circle.dsds.yaml +38 -0
  182. package/docs/icons/icon-highlight.dsds.yaml +18 -0
  183. package/docs/icons/icon-home.dsds.yaml +28 -0
  184. package/docs/icons/icon-ice-cream.dsds.yaml +18 -0
  185. package/docs/icons/icon-image-remove.dsds.yaml +32 -0
  186. package/docs/icons/icon-image.dsds.yaml +36 -0
  187. package/docs/icons/icon-images.dsds.yaml +34 -0
  188. package/docs/icons/icon-inbox.dsds.yaml +14 -0
  189. package/docs/icons/icon-info-filled.dsds.yaml +14 -0
  190. package/docs/icons/icon-info-outline.dsds.yaml +38 -0
  191. package/docs/icons/icon-inline-element.dsds.yaml +32 -0
  192. package/docs/icons/icon-inline.dsds.yaml +18 -0
  193. package/docs/icons/icon-insert-above.dsds.yaml +32 -0
  194. package/docs/icons/icon-insert-below.dsds.yaml +32 -0
  195. package/docs/icons/icon-italic.dsds.yaml +28 -0
  196. package/docs/icons/icon-joystick.dsds.yaml +18 -0
  197. package/docs/icons/icon-json.dsds.yaml +36 -0
  198. package/docs/icons/icon-launch.dsds.yaml +34 -0
  199. package/docs/icons/icon-leave.dsds.yaml +35 -0
  200. package/docs/icons/icon-lemon.dsds.yaml +18 -0
  201. package/docs/icons/icon-link-removed.dsds.yaml +30 -0
  202. package/docs/icons/icon-link.dsds.yaml +36 -0
  203. package/docs/icons/icon-linkedin.dsds.yaml +14 -0
  204. package/docs/icons/icon-list.dsds.yaml +14 -0
  205. package/docs/icons/icon-lock.dsds.yaml +39 -0
  206. package/docs/icons/icon-logo-js.dsds.yaml +18 -0
  207. package/docs/icons/icon-logo-ts.dsds.yaml +18 -0
  208. package/docs/icons/icon-marker-removed.dsds.yaml +14 -0
  209. package/docs/icons/icon-marker.dsds.yaml +14 -0
  210. package/docs/icons/icon-master-detail.dsds.yaml +28 -0
  211. package/docs/icons/icon-menu.dsds.yaml +40 -0
  212. package/docs/icons/icon-microphone-slash.dsds.yaml +14 -0
  213. package/docs/icons/icon-microphone.dsds.yaml +14 -0
  214. package/docs/icons/icon-mobile-device.dsds.yaml +32 -0
  215. package/docs/icons/icon-moon.dsds.yaml +30 -0
  216. package/docs/icons/icon-number.dsds.yaml +30 -0
  217. package/docs/icons/icon-ok-hand.dsds.yaml +18 -0
  218. package/docs/icons/icon-olist.dsds.yaml +36 -0
  219. package/docs/icons/icon-overage.dsds.yaml +42 -0
  220. package/docs/icons/icon-package.dsds.yaml +34 -0
  221. package/docs/icons/icon-panel-left.dsds.yaml +38 -0
  222. package/docs/icons/icon-panel-right.dsds.yaml +40 -0
  223. package/docs/icons/icon-pause.dsds.yaml +32 -0
  224. package/docs/icons/icon-pin-filled.dsds.yaml +28 -0
  225. package/docs/icons/icon-pin-removed.dsds.yaml +14 -0
  226. package/docs/icons/icon-pin.dsds.yaml +32 -0
  227. package/docs/icons/icon-play.dsds.yaml +32 -0
  228. package/docs/icons/icon-plug.dsds.yaml +35 -0
  229. package/docs/icons/icon-presentation.dsds.yaml +18 -0
  230. package/docs/icons/icon-progress50.dsds.yaml +14 -0
  231. package/docs/icons/icon-progress75.dsds.yaml +14 -0
  232. package/docs/icons/icon-projects.dsds.yaml +14 -0
  233. package/docs/icons/icon-publish.dsds.yaml +38 -0
  234. package/docs/icons/icon-read-only.dsds.yaml +36 -0
  235. package/docs/icons/icon-redo.dsds.yaml +38 -0
  236. package/docs/icons/icon-refresh.dsds.yaml +38 -0
  237. package/docs/icons/icon-remove-circle.dsds.yaml +14 -0
  238. package/docs/icons/icon-remove.dsds.yaml +30 -0
  239. package/docs/icons/icon-reset.dsds.yaml +40 -0
  240. package/docs/icons/icon-restore.dsds.yaml +45 -0
  241. package/docs/icons/icon-retrieve.dsds.yaml +14 -0
  242. package/docs/icons/icon-retry.dsds.yaml +14 -0
  243. package/docs/icons/icon-revert.dsds.yaml +14 -0
  244. package/docs/icons/icon-robot.dsds.yaml +17 -0
  245. package/docs/icons/icon-rocket.dsds.yaml +34 -0
  246. package/docs/icons/icon-schema.dsds.yaml +36 -0
  247. package/docs/icons/icon-search.dsds.yaml +34 -0
  248. package/docs/icons/icon-select.dsds.yaml +38 -0
  249. package/docs/icons/icon-share.dsds.yaml +36 -0
  250. package/docs/icons/icon-sort.dsds.yaml +40 -0
  251. package/docs/icons/icon-sparkle.dsds.yaml +26 -0
  252. package/docs/icons/icon-sparkles.dsds.yaml +34 -0
  253. package/docs/icons/icon-spinner.dsds.yaml +38 -0
  254. package/docs/icons/icon-split-horizontal.dsds.yaml +32 -0
  255. package/docs/icons/icon-split-vertical.dsds.yaml +30 -0
  256. package/docs/icons/icon-square.dsds.yaml +18 -0
  257. package/docs/icons/icon-stack-compact.dsds.yaml +30 -0
  258. package/docs/icons/icon-stack.dsds.yaml +44 -0
  259. package/docs/icons/icon-star-filled.dsds.yaml +48 -0
  260. package/docs/icons/icon-star.dsds.yaml +51 -0
  261. package/docs/icons/icon-stop.dsds.yaml +32 -0
  262. package/docs/icons/icon-strikethrough.dsds.yaml +28 -0
  263. package/docs/icons/icon-string.dsds.yaml +38 -0
  264. package/docs/icons/icon-sun.dsds.yaml +30 -0
  265. package/docs/icons/icon-sync.dsds.yaml +36 -0
  266. package/docs/icons/icon-tablet-device.dsds.yaml +30 -0
  267. package/docs/icons/icon-tag.dsds.yaml +32 -0
  268. package/docs/icons/icon-tags.dsds.yaml +36 -0
  269. package/docs/icons/icon-target.dsds.yaml +14 -0
  270. package/docs/icons/icon-task.dsds.yaml +30 -0
  271. package/docs/icons/icon-terminal.dsds.yaml +30 -0
  272. package/docs/icons/icon-text.dsds.yaml +32 -0
  273. package/docs/icons/icon-th-large.dsds.yaml +34 -0
  274. package/docs/icons/icon-th-list.dsds.yaml +30 -0
  275. package/docs/icons/icon-thumbs-down.dsds.yaml +27 -0
  276. package/docs/icons/icon-thumbs-up.dsds.yaml +30 -0
  277. package/docs/icons/icon-tiers.dsds.yaml +18 -0
  278. package/docs/icons/icon-timeline.dsds.yaml +32 -0
  279. package/docs/icons/icon-toggle-arrow-right.dsds.yaml +39 -0
  280. package/docs/icons/icon-token.dsds.yaml +30 -0
  281. package/docs/icons/icon-transfer.dsds.yaml +32 -0
  282. package/docs/icons/icon-translate.dsds.yaml +32 -0
  283. package/docs/icons/icon-trash.dsds.yaml +34 -0
  284. package/docs/icons/icon-trend-upward.dsds.yaml +42 -0
  285. package/docs/icons/icon-triangle-outline.dsds.yaml +18 -0
  286. package/docs/icons/icon-trolley.dsds.yaml +18 -0
  287. package/docs/icons/icon-truncate.dsds.yaml +18 -0
  288. package/docs/icons/icon-twitter.dsds.yaml +18 -0
  289. package/docs/icons/icon-ulist.dsds.yaml +36 -0
  290. package/docs/icons/icon-unarchive.dsds.yaml +32 -0
  291. package/docs/icons/icon-underline.dsds.yaml +28 -0
  292. package/docs/icons/icon-undo.dsds.yaml +34 -0
  293. package/docs/icons/icon-unknown.dsds.yaml +36 -0
  294. package/docs/icons/icon-unlink.dsds.yaml +32 -0
  295. package/docs/icons/icon-unlock.dsds.yaml +41 -0
  296. package/docs/icons/icon-unpublish.dsds.yaml +38 -0
  297. package/docs/icons/icon-upload.dsds.yaml +40 -0
  298. package/docs/icons/icon-user.dsds.yaml +34 -0
  299. package/docs/icons/icon-users.dsds.yaml +34 -0
  300. package/docs/icons/icon-versions.dsds.yaml +14 -0
  301. package/docs/icons/icon-video.dsds.yaml +32 -0
  302. package/docs/icons/icon-warning-filled.dsds.yaml +14 -0
  303. package/docs/icons/icon-warning-outline.dsds.yaml +38 -0
  304. package/docs/icons/icon-wrench.dsds.yaml +18 -0
  305. package/docs/icons.dsds.yaml +768 -0
  306. package/docs/index.dsds.yaml +506 -0
  307. package/docs/overview/api-essentials.dsds.yaml +221 -0
  308. package/docs/overview/component-reference.dsds.yaml +213 -0
  309. package/docs/overview/installation.dsds.yaml +254 -0
  310. package/docs/overview/quick-start.dsds.yaml +317 -0
  311. package/docs/patterns/confirmation-dialogs.dsds.yaml +140 -0
  312. package/docs/patterns/error-messaging.dsds.yaml +58 -0
  313. package/docs/patterns/forms.dsds.yaml +362 -0
  314. package/docs/patterns/layouts.dsds.yaml +403 -0
  315. package/docs/patterns/loading-states.dsds.yaml +41 -0
  316. package/docs/patterns/messaging.dsds.yaml +72 -0
  317. package/docs/patterns/navigation.dsds.yaml +153 -0
  318. package/docs/patterns/responsive.dsds.yaml +590 -0
  319. package/docs/tokens/color.dsds.yaml +1158 -0
  320. package/docs/tokens/container-widths.dsds.yaml +131 -0
  321. package/docs/tokens/content.dsds.yaml +258 -0
  322. package/docs/tokens/content.tokens.json +180 -0
  323. package/docs/tokens/dtcg/README.md +41 -0
  324. package/docs/tokens/dtcg/css/color.css +107 -0
  325. package/docs/tokens/dtcg/css/container.css +12 -0
  326. package/docs/tokens/dtcg/css/fontFamily.css +10 -0
  327. package/docs/tokens/dtcg/css/fontWeight.css +10 -0
  328. package/docs/tokens/dtcg/css/index.css +12 -0
  329. package/docs/tokens/dtcg/css/radius.css +14 -0
  330. package/docs/tokens/dtcg/css/semantic.css +42 -0
  331. package/docs/tokens/dtcg/css/shadow.css +22 -0
  332. package/docs/tokens/dtcg/css/space.css +16 -0
  333. package/docs/tokens/dtcg/css/typography.css +67 -0
  334. package/docs/tokens/dtcg/json/color.tokens.json +911 -0
  335. package/docs/tokens/dtcg/json/container.tokens.json +44 -0
  336. package/docs/tokens/dtcg/json/fontFamily.tokens.json +10 -0
  337. package/docs/tokens/dtcg/json/fontWeight.tokens.json +18 -0
  338. package/docs/tokens/dtcg/json/radius.tokens.json +58 -0
  339. package/docs/tokens/dtcg/json/semantic.tokens.json +372 -0
  340. package/docs/tokens/dtcg/json/shadow.tokens.json +599 -0
  341. package/docs/tokens/dtcg/json/space.tokens.json +72 -0
  342. package/docs/tokens/dtcg/json/typography.tokens.json +354 -0
  343. package/docs/tokens/font-family.dsds.yaml +79 -0
  344. package/docs/tokens/font-weight.dsds.yaml +103 -0
  345. package/docs/tokens/radius.dsds.yaml +153 -0
  346. package/docs/tokens/semantic.dsds.yaml +397 -0
  347. package/docs/tokens/shadow.dsds.yaml +125 -0
  348. package/docs/tokens/space.dsds.yaml +185 -0
  349. package/docs/tokens/typography.dsds.yaml +316 -0
  350. package/llms.txt +108 -0
  351. package/package.json +6 -3
  352. package/skills/sanity-ui-5/SKILL.md +158 -0
  353. package/skills/sanity-ui-5/references/component-choice.md +37 -0
  354. package/skills/sanity-ui-5/references/components.md +145 -0
  355. package/skills/sanity-ui-5/references/forms-and-accessibility.md +189 -0
  356. package/skills/sanity-ui-5/references/migrating-from-v3.md +250 -0
  357. package/skills/sanity-ui-5/references/props-and-imports.md +169 -0
  358. package/skills/sanity-ui-5/references/setup.md +177 -0
  359. package/skills/sanity-ui-5/references/silent-failures.md +33 -0
  360. package/skills/sanity-ui-5/references/taste.md +53 -0
  361. package/skills/sanity-ui-5/references/tone-and-color.md +55 -0
  362. package/src/components/button/Button.tsx +14 -3
  363. package/src/components/button/button.css +23 -25
  364. package/src/components/button/button.props.ts +4 -0
  365. package/src/components/code/code.props.ts +3 -2
  366. package/src/components/eyebrow/Eyebrow.tsx +8 -3
  367. package/src/components/eyebrow/eyebrow.props.ts +10 -2
  368. package/src/components/heading/Heading.tsx +1 -1
  369. package/src/components/heading/heading.props.ts +4 -3
  370. package/src/components/popover/Popover.tsx +4 -3
  371. package/src/components/popover/popover.css +5 -3
  372. package/src/components/popover/popover.props.ts +9 -0
  373. package/src/components/text/text.props.ts +6 -1
  374. package/src/css/classes/system/typography.css +6 -6
  375. package/src/css/tokens/semantic.css +7 -7
  376. package/src/props/typography.ts +1 -5
  377. package/src/version.ts +2 -2
@@ -0,0 +1,40 @@
1
+ kind: component
2
+ id: icon-collapse
3
+ name: CollapseIcon
4
+ description: To exit the interface out of a maximized state or mode.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Minimize
10
+ - Contract
11
+ - Fold
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/collapse.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: For exiting a full screen mode in the interface
27
+ - level: should
28
+ statement: For exiting a focus mode in the interface
29
+ - level: should-not
30
+ statement: For closing UI elements. Use CloseIcon instead.
31
+ alternatives:
32
+ - to: icon-close
33
+ - level: should-not
34
+ statement: For collapsing UI elements. Use ChevronUpIcon instead.
35
+ alternatives:
36
+ - to: icon-chevron-up
37
+ - level: should-not
38
+ statement: For hiding UI elements. Use EyeClosedIcon instead.
39
+ alternatives:
40
+ - to: icon-eye-closed
@@ -0,0 +1,30 @@
1
+ kind: component
2
+ id: icon-color-wheel
3
+ name: ColorWheelIcon
4
+ description: Color collections, palettes, or themes.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Color Picker
10
+ - Palette
11
+ - Hue
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/color-wheel.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: To reference or represent a color theme or collection of colors.
27
+ - level: should-not
28
+ statement: For targeting an individual color or coloring an individual element. Use DropIcon instead.
29
+ alternatives:
30
+ - to: icon-drop
@@ -0,0 +1,38 @@
1
+ kind: component
2
+ id: icon-comment
3
+ name: CommentIcon
4
+ description: To represent comments, discussions, or threads.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Message
10
+ - Feedback
11
+ - Discussion
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/comment.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: To demarcate comment sections
27
+ - level: should
28
+ statement: To show comments within the UI
29
+ - level: should
30
+ statement: To use as a visual indicator for the number of comments
31
+ - level: should-not
32
+ statement: For creating new comments. Use AddCommentIcon instead.
33
+ alternatives:
34
+ - to: icon-add-comment
35
+ - level: should-not
36
+ statement: For referencing or soliciting feedback. Use FeedbackIcon instead.
37
+ alternatives:
38
+ - to: icon-feedback
@@ -0,0 +1,18 @@
1
+ kind: component
2
+ id: icon-component
3
+ name: ComponentIcon
4
+ description: DECORATIVE. USE WITH DISCRETION. ONLY USE IF ANOTHER ICON DOES NOT FIT THE NEED.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Module
10
+ - Part
11
+ - Building Block
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/component.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
@@ -0,0 +1,36 @@
1
+ kind: component
2
+ id: icon-compose-sparkles
3
+ name: ComposeSparklesIcon
4
+ description: AI-powered creation of new written content.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - AI compose
10
+ refs:
11
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/compose-sparkles.svg
12
+ rel: source
13
+ $extensions:
14
+ com.sanity.ui:
15
+ iconOf: icons
16
+ described: true
17
+ sections:
18
+ - kind: guidelines
19
+ for: all
20
+ framing: when-to-use
21
+ title: When to use
22
+ items:
23
+ - level: should
24
+ statement: For creating new written content or documents with AI assistance.
25
+ - level: should-not
26
+ statement: To represent an AI-powered feature. Use SparklesIcon instead.
27
+ alternatives:
28
+ - to: icon-sparkles
29
+ - level: should-not
30
+ statement: To represent Sanity's Content Agent feature. Use SparkleIcon instead.
31
+ alternatives:
32
+ - to: icon-sparkle
33
+ - level: should-not
34
+ statement: For manual creation of new written content. Use ComposeIcon instead.
35
+ alternatives:
36
+ - to: icon-compose
@@ -0,0 +1,38 @@
1
+ kind: component
2
+ id: icon-compose
3
+ name: ComposeIcon
4
+ description: Creating new written content.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Edit
10
+ - Write
11
+ - Create Content
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/compose.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: For creating new written content or documents.
27
+ - level: should-not
28
+ statement: For AI-powered creation of new written content. Use ComposeSparklesIcon instead.
29
+ alternatives:
30
+ - to: icon-compose-sparkles
31
+ - level: should-not
32
+ statement: For editing existing written content. Use EditIcon instead.
33
+ alternatives:
34
+ - to: icon-edit
35
+ - level: should-not
36
+ statement: For creating new general content. Use AddIcon instead.
37
+ alternatives:
38
+ - to: icon-add
@@ -0,0 +1,18 @@
1
+ kind: component
2
+ id: icon-confetti
3
+ name: ConfettiIcon
4
+ description: DECORATIVE. USE WITH DISCRETION. ONLY USE IF ANOTHER ICON DOES NOT FIT THE NEED.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Celebration
10
+ - Party
11
+ - Success
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/confetti.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
@@ -0,0 +1,36 @@
1
+ kind: component
2
+ id: icon-controls
3
+ name: ControlsIcon
4
+ description: Configuration or advanced controls.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Adjustments
10
+ - Sliders
11
+ - Tuning
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/controls.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: To represent a configuration action or mode
27
+ - level: should
28
+ statement: 'To represent advanced controls/actions (ex: Advanced search)'
29
+ - level: should-not
30
+ statement: To represent general settings. Use CogIcon instead.
31
+ alternatives:
32
+ - to: icon-cog
33
+ - level: should-not
34
+ statement: To represent configuring content filters. Use FilterIcon instead.
35
+ alternatives:
36
+ - to: icon-filter
@@ -0,0 +1,31 @@
1
+ kind: component
2
+ id: icon-copy
3
+ name: CopyIcon
4
+ description: Copying or duplicating actions.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Duplicate
10
+ - Clone
11
+ refs:
12
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/copy.svg
13
+ rel: source
14
+ $extensions:
15
+ com.sanity.ui:
16
+ iconOf: icons
17
+ described: true
18
+ sections:
19
+ - kind: guidelines
20
+ for: all
21
+ framing: when-to-use
22
+ title: When to use
23
+ items:
24
+ - level: should
25
+ statement: For copying general text to clipboard
26
+ - level: should
27
+ statement: For duplicating items or cloning operations
28
+ - level: should-not
29
+ statement: For copying a link/URL to the clipboard. Use LinkIcon instead.
30
+ alternatives:
31
+ - to: icon-link
@@ -0,0 +1,18 @@
1
+ kind: component
2
+ id: icon-credit-card
3
+ name: CreditCardIcon
4
+ description: DECORATIVE. USE WITH DISCRETION. ONLY USE IF ANOTHER ICON DOES NOT FIT THE NEED.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Payment
10
+ - Card
11
+ - Transaction
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/credit-card.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
@@ -0,0 +1,32 @@
1
+ kind: component
2
+ id: icon-crop
3
+ name: CropIcon
4
+ description: Image cropping or trimming.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Trim
10
+ - Cut Image
11
+ - Adjust
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/crop.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: To represent image cropping or cropping tools
27
+ - level: should-not
28
+ statement: For image resizing
29
+ - level: should-not
30
+ statement: For broader image or video editing features. Use ControlsIcon instead.
31
+ alternatives:
32
+ - to: icon-controls
@@ -0,0 +1,36 @@
1
+ kind: component
2
+ id: icon-cube
3
+ name: CubeIcon
4
+ description: Generic data/metadata.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - 3D
10
+ - Box
11
+ - Object
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/cube.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: To represent an individual and general piece of data or metadata.
27
+ - level: should
28
+ statement: As a fallback icon for data types that are too abstract to be represented with a more specific icon.
29
+ - level: should-not
30
+ statement: To represent a collection of data or items. Use PackageIcon instead.
31
+ alternatives:
32
+ - to: icon-package
33
+ - level: should-not
34
+ statement: To represent unknown or unidentified data. Use UnknownIcon instead.
35
+ alternatives:
36
+ - to: icon-unknown
@@ -0,0 +1,34 @@
1
+ kind: component
2
+ id: icon-dashboard
3
+ name: DashboardIcon
4
+ description: Dashboard pages/screens.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Overview
10
+ - Home
11
+ - Main
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/dashboard.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: To represent pages/screens that act as a dashboard of information.
27
+ - level: should-not
28
+ statement: To represent Sanity's home page. Use HomeIcon instead.
29
+ alternatives:
30
+ - to: icon-home
31
+ - level: should-not
32
+ statement: To represent a gallery of media. Use ImagesIcon instead.
33
+ alternatives:
34
+ - to: icon-images
@@ -0,0 +1,40 @@
1
+ kind: component
2
+ id: icon-database
3
+ name: DatabaseIcon
4
+ description: Database or data storage.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Storage
10
+ - Data
11
+ - Server
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/database.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: To represent general databases or database features
27
+ - level: should
28
+ statement: Data management or storage settings
29
+ - level: should-not
30
+ statement: For GROQ-specific features or queries. Use GroqIcon instead.
31
+ alternatives:
32
+ - to: icon-groq
33
+ - level: should-not
34
+ statement: To represent a collection of data or items. Use PackageIcon instead.
35
+ alternatives:
36
+ - to: icon-package
37
+ - level: should-not
38
+ statement: To represent an individual and general piece of data or metadata. Use CubeIcon instead.
39
+ alternatives:
40
+ - to: icon-cube
@@ -0,0 +1,31 @@
1
+ kind: component
2
+ id: icon-desktop
3
+ name: DesktopIcon
4
+ description: To represent desktop devices or a person's local computer settings.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Monitor
10
+ - Screen
11
+ refs:
12
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/desktop.svg
13
+ rel: source
14
+ $extensions:
15
+ com.sanity.ui:
16
+ iconOf: icons
17
+ described: true
18
+ sections:
19
+ - kind: guidelines
20
+ for: all
21
+ framing: when-to-use
22
+ title: When to use
23
+ items:
24
+ - level: should
25
+ statement: To represent a desktop when choosing between different device types
26
+ - level: should
27
+ statement: "To represent a a computer's system settings (example: system-level light/dark mode preference)"
28
+ - level: should-not
29
+ statement: As an indicator for responsiveness. Use MobileDeviceIcon instead.
30
+ alternatives:
31
+ - to: icon-mobile-device
@@ -0,0 +1,18 @@
1
+ kind: component
2
+ id: icon-diamond
3
+ name: DiamondIcon
4
+ description: DECORATIVE. USE WITH DISCRETION. ONLY USE IF ANOTHER ICON DOES NOT FIT THE NEED.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Gem
10
+ - Premium
11
+ - Value
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/diamond.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
@@ -0,0 +1,34 @@
1
+ kind: component
2
+ id: icon-document-pdf
3
+ name: DocumentPdfIcon
4
+ description: To specifically represent PDF documents.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - PDF
10
+ - Portable Document
11
+ - PDF File
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/document-pdf.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: As an indicator for a PDF document
27
+ - level: should-not
28
+ statement: For general documents or files. Use DocumentIcon instead.
29
+ alternatives:
30
+ - to: icon-document
31
+ - level: should-not
32
+ statement: To represent text-based documents. Use DocumentTextIcon instead.
33
+ alternatives:
34
+ - to: icon-document-text
@@ -0,0 +1,30 @@
1
+ kind: component
2
+ id: icon-document-remove
3
+ name: DocumentRemoveIcon
4
+ description: Removing or deleting a document.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Delete Document
10
+ - Remove File
11
+ - Discard
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/document-remove.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: For document removal or deletion
27
+ - level: should-not
28
+ statement: For general removal. Use RemoveIcon instead.
29
+ alternatives:
30
+ - to: icon-remove
@@ -0,0 +1,34 @@
1
+ kind: component
2
+ id: icon-document-sheet
3
+ name: DocumentSheetIcon
4
+ description: Spreadsheet or tabular documents.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Spreadsheet
10
+ - Table
11
+ - Grid
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/document-sheet.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: As an indicator for spreadsheet or tabular-data files, such as Excel, CSV, or TSV
27
+ - level: should-not
28
+ statement: For general documents or files. Use DocumentIcon instead.
29
+ alternatives:
30
+ - to: icon-document
31
+ - level: should-not
32
+ statement: For representing tabular data. Use ThListIcon instead.
33
+ alternatives:
34
+ - to: icon-th-list
@@ -0,0 +1,30 @@
1
+ kind: component
2
+ id: icon-document-text
3
+ name: DocumentTextIcon
4
+ description: Text-based documents.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Text File
10
+ - Article
11
+ - Written
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/document-text.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: As an indicator for text-based files, such as .txt, .rtf, or Markdown
27
+ - level: should-not
28
+ statement: Don't use for rich text. Use BlockContentIcon instead.
29
+ alternatives:
30
+ - to: icon-block-content
@@ -0,0 +1,30 @@
1
+ kind: component
2
+ id: icon-document-video
3
+ name: DocumentVideoIcon
4
+ description: Video files.
5
+ metadata:
6
+ status:
7
+ status: stable
8
+ aliases:
9
+ - Video File
10
+ - Movie
11
+ - Recording
12
+ refs:
13
+ - href: https://github.com/sanity-io/icons/blob/main/packages/icons/src/document-video.svg
14
+ rel: source
15
+ $extensions:
16
+ com.sanity.ui:
17
+ iconOf: icons
18
+ described: true
19
+ sections:
20
+ - kind: guidelines
21
+ for: all
22
+ framing: when-to-use
23
+ title: When to use
24
+ items:
25
+ - level: should
26
+ statement: As an indicator for a video file
27
+ - level: should-not
28
+ statement: For representing video playback or video in the interface. Use VideoIcon instead.
29
+ alternatives:
30
+ - to: icon-video