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

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 (128) hide show
  1. package/README.md +10 -0
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles.css +1 -1
  5. package/docs/components/avatar-counter.dsds.yaml +78 -0
  6. package/docs/components/avatar-stack.dsds.yaml +96 -0
  7. package/docs/components/avatar.dsds.yaml +115 -0
  8. package/docs/components/badge.dsds.yaml +126 -0
  9. package/docs/components/box.dsds.yaml +223 -0
  10. package/docs/components/button.dsds.yaml +284 -0
  11. package/docs/components/card.dsds.yaml +317 -0
  12. package/docs/components/checkbox.dsds.yaml +204 -0
  13. package/docs/components/code.dsds.yaml +167 -0
  14. package/docs/components/container.dsds.yaml +189 -0
  15. package/docs/components/dialog.dsds.yaml +343 -0
  16. package/docs/components/divider.dsds.yaml +93 -0
  17. package/docs/components/eyebrow.dsds.yaml +217 -0
  18. package/docs/components/flex.dsds.yaml +237 -0
  19. package/docs/components/grid.dsds.yaml +217 -0
  20. package/docs/components/h-stack.dsds.yaml +127 -0
  21. package/docs/components/heading.dsds.yaml +233 -0
  22. package/docs/components/hotkeys.dsds.yaml +60 -0
  23. package/docs/components/icon-button.dsds.yaml +220 -0
  24. package/docs/components/icon.dsds.yaml +275 -0
  25. package/docs/components/indicator-stack.dsds.yaml +98 -0
  26. package/docs/components/indicator.dsds.yaml +108 -0
  27. package/docs/components/inline.dsds.yaml +127 -0
  28. package/docs/components/kbd.dsds.yaml +59 -0
  29. package/docs/components/link.dsds.yaml +108 -0
  30. package/docs/components/list-button-item.dsds.yaml +103 -0
  31. package/docs/components/list-item-image.dsds.yaml +82 -0
  32. package/docs/components/list-item-text.dsds.yaml +80 -0
  33. package/docs/components/list-item.dsds.yaml +148 -0
  34. package/docs/components/list.dsds.yaml +162 -0
  35. package/docs/components/popover.dsds.yaml +208 -0
  36. package/docs/components/press-area.dsds.yaml +279 -0
  37. package/docs/components/radio.dsds.yaml +198 -0
  38. package/docs/components/select.dsds.yaml +214 -0
  39. package/docs/components/skip-to-content.dsds.yaml +110 -0
  40. package/docs/components/spinner.dsds.yaml +119 -0
  41. package/docs/components/switch.dsds.yaml +202 -0
  42. package/docs/components/tab.dsds.yaml +54 -0
  43. package/docs/components/tabs-list.dsds.yaml +56 -0
  44. package/docs/components/tabs-panel.dsds.yaml +54 -0
  45. package/docs/components/tabs.dsds.yaml +104 -0
  46. package/docs/components/text-area.dsds.yaml +170 -0
  47. package/docs/components/text-input.dsds.yaml +189 -0
  48. package/docs/components/text.dsds.yaml +268 -0
  49. package/docs/components/tooltip-group.dsds.yaml +90 -0
  50. package/docs/components/tooltip.dsds.yaml +216 -0
  51. package/docs/components/v-stack.dsds.yaml +155 -0
  52. package/docs/components/visually-hidden.dsds.yaml +112 -0
  53. package/docs/evals/cases.yaml +1319 -0
  54. package/docs/examples/checkbox-2.tsx +57 -0
  55. package/docs/examples/confirmation-dialogs-1.tsx +27 -0
  56. package/docs/examples/confirmation-dialogs-2.tsx +55 -0
  57. package/docs/examples/confirmation-dialogs-3.tsx +28 -0
  58. package/docs/examples/confirmation-dialogs-4.tsx +38 -0
  59. package/docs/examples/popover-1.tsx +48 -0
  60. package/docs/examples/popover-2.tsx +53 -0
  61. package/docs/foundations/accessibility-guidelines.dsds.yaml +301 -0
  62. package/docs/foundations/color-guidelines.dsds.yaml +308 -0
  63. package/docs/foundations/content-guidelines.dsds.yaml +285 -0
  64. package/docs/foundations/semantics.dsds.yaml +125 -0
  65. package/docs/foundations/spacing-guidelines.dsds.yaml +226 -0
  66. package/docs/foundations/typography-guidelines.dsds.yaml +322 -0
  67. package/docs/icons.dsds.yaml +2513 -0
  68. package/docs/index.dsds.yaml +515 -0
  69. package/docs/overview/api-essentials.dsds.yaml +221 -0
  70. package/docs/overview/component-reference.dsds.yaml +215 -0
  71. package/docs/overview/designer-contribution-model.dsds.yaml +77 -0
  72. package/docs/overview/developer-contribution-model.dsds.yaml +362 -0
  73. package/docs/overview/installation.dsds.yaml +238 -0
  74. package/docs/overview/quick-start.dsds.yaml +317 -0
  75. package/docs/overview/resources.dsds.yaml +34 -0
  76. package/docs/patterns/confirmation-dialogs.dsds.yaml +140 -0
  77. package/docs/patterns/error-messaging.dsds.yaml +58 -0
  78. package/docs/patterns/forms.dsds.yaml +356 -0
  79. package/docs/patterns/layouts.dsds.yaml +403 -0
  80. package/docs/patterns/loading-states.dsds.yaml +41 -0
  81. package/docs/patterns/messaging.dsds.yaml +72 -0
  82. package/docs/patterns/navigation.dsds.yaml +153 -0
  83. package/docs/patterns/responsive.dsds.yaml +590 -0
  84. package/docs/tokens/color.dsds.yaml +1158 -0
  85. package/docs/tokens/container-widths.dsds.yaml +131 -0
  86. package/docs/tokens/content.dsds.yaml +258 -0
  87. package/docs/tokens/content.tokens.json +180 -0
  88. package/docs/tokens/dtcg/README.md +39 -0
  89. package/docs/tokens/dtcg/css/color.css +107 -0
  90. package/docs/tokens/dtcg/css/container.css +12 -0
  91. package/docs/tokens/dtcg/css/fontFamily.css +10 -0
  92. package/docs/tokens/dtcg/css/fontWeight.css +10 -0
  93. package/docs/tokens/dtcg/css/index.css +13 -0
  94. package/docs/tokens/dtcg/css/radius.css +14 -0
  95. package/docs/tokens/dtcg/css/semantic.css +42 -0
  96. package/docs/tokens/dtcg/css/shadow.css +22 -0
  97. package/docs/tokens/dtcg/css/space.css +16 -0
  98. package/docs/tokens/dtcg/css/typography.css +69 -0
  99. package/docs/tokens/dtcg/json/color.tokens.json +911 -0
  100. package/docs/tokens/dtcg/json/container.tokens.json +44 -0
  101. package/docs/tokens/dtcg/json/fontFamily.tokens.json +10 -0
  102. package/docs/tokens/dtcg/json/fontWeight.tokens.json +18 -0
  103. package/docs/tokens/dtcg/json/radius.tokens.json +58 -0
  104. package/docs/tokens/dtcg/json/semantic.tokens.json +372 -0
  105. package/docs/tokens/dtcg/json/shadow.tokens.json +599 -0
  106. package/docs/tokens/dtcg/json/space.tokens.json +72 -0
  107. package/docs/tokens/dtcg/json/typography.tokens.json +354 -0
  108. package/docs/tokens/font-family.dsds.yaml +79 -0
  109. package/docs/tokens/font-weight.dsds.yaml +103 -0
  110. package/docs/tokens/radius.dsds.yaml +153 -0
  111. package/docs/tokens/semantic.dsds.yaml +397 -0
  112. package/docs/tokens/shadow.dsds.yaml +125 -0
  113. package/docs/tokens/space.dsds.yaml +185 -0
  114. package/docs/tokens/typography.dsds.yaml +316 -0
  115. package/llms.txt +108 -0
  116. package/package.json +6 -3
  117. package/skills/sanity-ui-5/SKILL.md +158 -0
  118. package/skills/sanity-ui-5/references/component-choice.md +37 -0
  119. package/skills/sanity-ui-5/references/components.md +145 -0
  120. package/skills/sanity-ui-5/references/forms-and-accessibility.md +189 -0
  121. package/skills/sanity-ui-5/references/migrating-from-v3.md +250 -0
  122. package/skills/sanity-ui-5/references/props-and-imports.md +169 -0
  123. package/skills/sanity-ui-5/references/setup.md +177 -0
  124. package/skills/sanity-ui-5/references/silent-failures.md +33 -0
  125. package/skills/sanity-ui-5/references/taste.md +53 -0
  126. package/skills/sanity-ui-5/references/tone-and-color.md +55 -0
  127. package/src/css/classes/system/shadow.css +45 -0
  128. package/src/version.ts +2 -2
@@ -0,0 +1,44 @@
1
+ {
2
+ "container-0": {
3
+ "$type": "dimension",
4
+ "$value": {
5
+ "unit": "px",
6
+ "value": 320
7
+ }
8
+ },
9
+ "container-1": {
10
+ "$type": "dimension",
11
+ "$value": {
12
+ "unit": "px",
13
+ "value": 640
14
+ }
15
+ },
16
+ "container-2": {
17
+ "$type": "dimension",
18
+ "$value": {
19
+ "unit": "px",
20
+ "value": 960
21
+ }
22
+ },
23
+ "container-3": {
24
+ "$type": "dimension",
25
+ "$value": {
26
+ "unit": "px",
27
+ "value": 1280
28
+ }
29
+ },
30
+ "container-4": {
31
+ "$type": "dimension",
32
+ "$value": {
33
+ "unit": "px",
34
+ "value": 1600
35
+ }
36
+ },
37
+ "container-5": {
38
+ "$type": "dimension",
39
+ "$value": {
40
+ "unit": "px",
41
+ "value": 1920
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "mono": {
3
+ "$type": "fontFamily",
4
+ "$value": "ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace"
5
+ },
6
+ "sans": {
7
+ "$type": "fontFamily",
8
+ "$value": "Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Liberation Sans, sans-serif"
9
+ }
10
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "bold": {
3
+ "$type": "fontWeight",
4
+ "$value": 700
5
+ },
6
+ "medium": {
7
+ "$type": "fontWeight",
8
+ "$value": 500
9
+ },
10
+ "regular": {
11
+ "$type": "fontWeight",
12
+ "$value": 400
13
+ },
14
+ "semibold": {
15
+ "$type": "fontWeight",
16
+ "$value": 600
17
+ }
18
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "radius-0": {
3
+ "$type": "dimension",
4
+ "$value": {
5
+ "unit": "px",
6
+ "value": 0
7
+ }
8
+ },
9
+ "radius-1": {
10
+ "$type": "dimension",
11
+ "$value": {
12
+ "unit": "px",
13
+ "value": 1
14
+ }
15
+ },
16
+ "radius-2": {
17
+ "$type": "dimension",
18
+ "$value": {
19
+ "unit": "px",
20
+ "value": 3
21
+ }
22
+ },
23
+ "radius-3": {
24
+ "$type": "dimension",
25
+ "$value": {
26
+ "unit": "px",
27
+ "value": 7
28
+ }
29
+ },
30
+ "radius-4": {
31
+ "$type": "dimension",
32
+ "$value": {
33
+ "unit": "px",
34
+ "value": 11
35
+ }
36
+ },
37
+ "radius-5": {
38
+ "$type": "dimension",
39
+ "$value": {
40
+ "unit": "px",
41
+ "value": 15
42
+ }
43
+ },
44
+ "radius-6": {
45
+ "$type": "dimension",
46
+ "$value": {
47
+ "unit": "px",
48
+ "value": 19
49
+ }
50
+ },
51
+ "radius-round": {
52
+ "$type": "dimension",
53
+ "$value": {
54
+ "unit": "px",
55
+ "value": 9999
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,372 @@
1
+ {
2
+ "$description": "Generated by build-semantic.mjs from @sanity/ui 5.0.0-alpha.11 (src/css/tokens). Do not edit by hand; rerun the script. Light values are aliases into the palette; the dark value and the source CSS are in $extensions[\"com.sanity.ui\"].",
3
+ "background-high": {
4
+ "$type": "color",
5
+ "$value": "{gray-100}",
6
+ "$extensions": {
7
+ "com.sanity.ui": {
8
+ "css": "light-dark(var(--gray-100), var(--gray-900))",
9
+ "toned": "var(--tone-100)",
10
+ "modes": {
11
+ "dark": "{gray-900}"
12
+ }
13
+ }
14
+ }
15
+ },
16
+ "background-high-emphasized": {
17
+ "$type": "color",
18
+ "$value": "{gray-800}",
19
+ "$extensions": {
20
+ "com.sanity.ui": {
21
+ "css": "light-dark(var(--gray-800), var(--gray-200))",
22
+ "toned": "var(--tone-800)",
23
+ "modes": {
24
+ "dark": "{gray-200}"
25
+ }
26
+ }
27
+ }
28
+ },
29
+ "background-low": {
30
+ "$type": "color",
31
+ "$value": "{gray-50}",
32
+ "$extensions": {
33
+ "com.sanity.ui": {
34
+ "css": "light-dark(var(--gray-50), var(--gray-950))",
35
+ "toned": "var(--tone-50)",
36
+ "modes": {
37
+ "dark": "{gray-950}"
38
+ }
39
+ }
40
+ }
41
+ },
42
+ "background-low-emphasized": {
43
+ "$type": "color",
44
+ "$value": "{gray-600}",
45
+ "$extensions": {
46
+ "com.sanity.ui": {
47
+ "css": "light-dark(var(--gray-600), var(--gray-400))",
48
+ "toned": "var(--tone-600)",
49
+ "modes": {
50
+ "dark": "{gray-400}"
51
+ }
52
+ }
53
+ }
54
+ },
55
+ "separator-high": {
56
+ "$type": "color",
57
+ "$value": "{gray-400}",
58
+ "$extensions": {
59
+ "com.sanity.ui": {
60
+ "css": "light-dark(var(--gray-400), var(--gray-600))",
61
+ "toned": "var(--tone-400)",
62
+ "modes": {
63
+ "dark": "{gray-600}"
64
+ }
65
+ }
66
+ }
67
+ },
68
+ "separator-low": {
69
+ "$type": "css",
70
+ "$value": "rgb(from var(--separator-high) r g b / var(--opacity-low))",
71
+ "$extensions": {
72
+ "com.sanity.ui": {
73
+ "css": "rgb(from var(--separator-high) r g b / var(--opacity-low))",
74
+ "toned": "rgb(from var(--separator-high) r g b / var(--opacity-low))"
75
+ }
76
+ }
77
+ },
78
+ "foreground-high": {
79
+ "$type": "color",
80
+ "$value": "{gray-800}",
81
+ "$extensions": {
82
+ "com.sanity.ui": {
83
+ "css": "light-dark(var(--gray-800), var(--gray-200))",
84
+ "toned": "var(--tone-800)",
85
+ "modes": {
86
+ "dark": "{gray-200}"
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "foreground-high-emphasized": {
92
+ "$type": "color",
93
+ "$value": "{white}",
94
+ "$extensions": {
95
+ "com.sanity.ui": {
96
+ "css": "light-dark(var(--white), var(--black))",
97
+ "toned": "var(--tone-0)",
98
+ "modes": {
99
+ "dark": "{black}"
100
+ }
101
+ }
102
+ }
103
+ },
104
+ "foreground-low": {
105
+ "$type": "color",
106
+ "$value": "{gray-600}",
107
+ "$extensions": {
108
+ "com.sanity.ui": {
109
+ "css": "light-dark(var(--gray-600), var(--gray-400))",
110
+ "toned": "var(--tone-600)",
111
+ "modes": {
112
+ "dark": "{gray-400}"
113
+ }
114
+ }
115
+ }
116
+ },
117
+ "foreground-low-emphasized": {
118
+ "$type": "color",
119
+ "$value": "{gray-100}",
120
+ "$extensions": {
121
+ "com.sanity.ui": {
122
+ "css": "light-dark(var(--gray-100), var(--gray-900))",
123
+ "toned": "var(--tone-100)",
124
+ "modes": {
125
+ "dark": "{gray-900}"
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "backdrop": {
131
+ "$type": "color",
132
+ "$value": "{white}",
133
+ "$extensions": {
134
+ "com.sanity.ui": {
135
+ "css": "light-dark(var(--white), var(--black))",
136
+ "modes": {
137
+ "dark": "{black}"
138
+ }
139
+ }
140
+ }
141
+ },
142
+ "brand-background": {
143
+ "$type": "color",
144
+ "$value": {
145
+ "colorSpace": "srgb",
146
+ "hex": "#eb5228"
147
+ },
148
+ "$extensions": {
149
+ "com.sanity.ui": {
150
+ "css": "#eb5228"
151
+ }
152
+ }
153
+ },
154
+ "brand-foreground": {
155
+ "$value": "{black}",
156
+ "$extensions": {
157
+ "com.sanity.ui": {
158
+ "css": "var(--black)"
159
+ }
160
+ }
161
+ },
162
+ "placeholder-opacity": {
163
+ "$type": "number",
164
+ "$value": "{opacity-mid}",
165
+ "$extensions": {
166
+ "com.sanity.ui": {
167
+ "css": "var(--opacity-mid)"
168
+ }
169
+ }
170
+ },
171
+ "overlay-opacity": {
172
+ "$type": "number",
173
+ "$value": "{opacity-mid}",
174
+ "$extensions": {
175
+ "com.sanity.ui": {
176
+ "css": "var(--opacity-mid)"
177
+ }
178
+ }
179
+ },
180
+ "active-background-normal": {
181
+ "$type": "color",
182
+ "$value": "{blue-50}",
183
+ "$extensions": {
184
+ "com.sanity.ui": {
185
+ "css": "light-dark(var(--blue-50), var(--blue-950))",
186
+ "modes": {
187
+ "dark": "{blue-950}"
188
+ }
189
+ }
190
+ }
191
+ },
192
+ "active-foreground-normal": {
193
+ "$type": "color",
194
+ "$value": "{blue-800}",
195
+ "$extensions": {
196
+ "com.sanity.ui": {
197
+ "css": "light-dark(var(--blue-800), var(--blue-200))",
198
+ "modes": {
199
+ "dark": "{blue-200}"
200
+ }
201
+ }
202
+ }
203
+ },
204
+ "active-background-emphasized": {
205
+ "$type": "color",
206
+ "$value": "{blue-600}",
207
+ "$extensions": {
208
+ "com.sanity.ui": {
209
+ "css": "light-dark(var(--blue-600), var(--blue-400))",
210
+ "modes": {
211
+ "dark": "{blue-400}"
212
+ }
213
+ }
214
+ }
215
+ },
216
+ "active-foreground-emphasized": {
217
+ "$type": "color",
218
+ "$value": "{white}",
219
+ "$extensions": {
220
+ "com.sanity.ui": {
221
+ "css": "light-dark(var(--white), var(--black))",
222
+ "modes": {
223
+ "dark": "{black}"
224
+ }
225
+ }
226
+ }
227
+ },
228
+ "error-background-emphasized": {
229
+ "$type": "color",
230
+ "$value": "{red-600}",
231
+ "$extensions": {
232
+ "com.sanity.ui": {
233
+ "css": "light-dark(var(--red-600), var(--red-400))",
234
+ "modes": {
235
+ "dark": "{red-400}"
236
+ }
237
+ }
238
+ }
239
+ },
240
+ "error-foreground": {
241
+ "$type": "color",
242
+ "$value": "{red-800}",
243
+ "$extensions": {
244
+ "com.sanity.ui": {
245
+ "css": "light-dark(var(--red-800), var(--red-200))",
246
+ "modes": {
247
+ "dark": "{red-200}"
248
+ }
249
+ }
250
+ }
251
+ },
252
+ "error-separator": {
253
+ "$type": "color",
254
+ "$value": "{red-600}",
255
+ "$extensions": {
256
+ "com.sanity.ui": {
257
+ "css": "light-dark(var(--red-600), var(--red-400))",
258
+ "modes": {
259
+ "dark": "{red-400}"
260
+ }
261
+ }
262
+ }
263
+ },
264
+ "focus-outline": {
265
+ "$type": "css",
266
+ "$value": "2px solid var(--blue-500)",
267
+ "$extensions": {
268
+ "com.sanity.ui": {
269
+ "css": "2px solid var(--blue-500)"
270
+ }
271
+ }
272
+ },
273
+ "focus-offset": {
274
+ "$type": "dimension",
275
+ "$value": {
276
+ "value": 2,
277
+ "unit": "px"
278
+ },
279
+ "$extensions": {
280
+ "com.sanity.ui": {
281
+ "css": "2px"
282
+ }
283
+ }
284
+ },
285
+ "hover-lightness-delta": {
286
+ "$type": "number",
287
+ "$value": 0.125,
288
+ "$extensions": {
289
+ "com.sanity.ui": {
290
+ "css": "0.125"
291
+ }
292
+ }
293
+ },
294
+ "hover-transition": {
295
+ "$type": "css",
296
+ "$value": "border-color 100ms linear, background-color 100ms linear",
297
+ "$extensions": {
298
+ "com.sanity.ui": {
299
+ "css": "border-color 100ms linear, background-color 100ms linear"
300
+ }
301
+ }
302
+ },
303
+ "inert-background": {
304
+ "$type": "color",
305
+ "$value": "{gray-50}",
306
+ "$extensions": {
307
+ "com.sanity.ui": {
308
+ "css": "light-dark(var(--gray-50), var(--gray-950))",
309
+ "modes": {
310
+ "dark": "{gray-950}"
311
+ }
312
+ }
313
+ }
314
+ },
315
+ "inert-foreground": {
316
+ "$type": "color",
317
+ "$value": "{gray-400}",
318
+ "$extensions": {
319
+ "com.sanity.ui": {
320
+ "css": "light-dark(var(--gray-400), var(--gray-600))",
321
+ "modes": {
322
+ "dark": "{gray-600}"
323
+ }
324
+ }
325
+ }
326
+ },
327
+ "fade-in-transition": {
328
+ "$type": "css",
329
+ "$value": "opacity 200ms cubic-bezier(0.34, 1.2, 0.64, 1), scale 200ms cubic-bezier(0.34, 1.2, 0.64, 1), visibility 0s linear, display 200ms linear allow-discrete",
330
+ "$extensions": {
331
+ "com.sanity.ui": {
332
+ "css": "opacity 200ms cubic-bezier(0.34, 1.2, 0.64, 1), scale 200ms cubic-bezier(0.34, 1.2, 0.64, 1), visibility 0s linear, display 200ms linear allow-discrete"
333
+ }
334
+ }
335
+ },
336
+ "opacity-low": {
337
+ "$type": "number",
338
+ "$value": 0.25,
339
+ "$extensions": {
340
+ "com.sanity.ui": {
341
+ "css": "0.25"
342
+ }
343
+ }
344
+ },
345
+ "opacity-mid": {
346
+ "$type": "number",
347
+ "$value": 0.5,
348
+ "$extensions": {
349
+ "com.sanity.ui": {
350
+ "css": "0.5"
351
+ }
352
+ }
353
+ },
354
+ "opacity-high": {
355
+ "$type": "number",
356
+ "$value": 0.8,
357
+ "$extensions": {
358
+ "com.sanity.ui": {
359
+ "css": "0.8"
360
+ }
361
+ }
362
+ },
363
+ "opacity-full": {
364
+ "$type": "number",
365
+ "$value": 1,
366
+ "$extensions": {
367
+ "com.sanity.ui": {
368
+ "css": "1.0"
369
+ }
370
+ }
371
+ }
372
+ }