@crystal-ui/core 2.1.0 → 2.3.0

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 (38) hide show
  1. package/assets/crystal-theme.css +15 -0
  2. package/assets/crystal.css +652 -12
  3. package/assets/crystal.js +10 -0
  4. package/assets/motion.css +3 -3
  5. package/assets/motion.js +17 -2
  6. package/assets/tokens.js +1 -1
  7. package/docs/accessibility.md +19 -3
  8. package/docs/adoption.md +3 -1
  9. package/docs/catalogue.md +467 -53
  10. package/docs/components.md +36 -9
  11. package/docs/materials.md +12 -4
  12. package/docs/motion-components.md +11 -8
  13. package/docs/motion.md +10 -4
  14. package/docs/tokens.md +3 -2
  15. package/engines.js +13 -2
  16. package/exports/crystal-tokens.kt +2 -1
  17. package/exports/crystal-tokens.swift +2 -1
  18. package/exports/crystal-tokens.ts +2 -1
  19. package/package.json +2 -1
  20. package/tokens/catalogue/01-layout.json +45 -0
  21. package/tokens/catalogue/02-navigation.json +88 -6
  22. package/tokens/catalogue/03-actions.json +42 -2
  23. package/tokens/catalogue/04-inputs.json +359 -5
  24. package/tokens/catalogue/05-data-display.json +185 -21
  25. package/tokens/catalogue/06-feedback.json +75 -6
  26. package/tokens/catalogue/07-overlays.json +52 -5
  27. package/tokens/catalogue/08-typography.json +54 -0
  28. package/tokens/catalogue/09-utility.json +79 -0
  29. package/tokens/catalogue/10-charts.json +89 -1
  30. package/tokens/catalogue/11-media.json +33 -0
  31. package/tokens/catalogue/12-commerce.json +133 -1
  32. package/tokens/catalogue/13-screens.json +77 -0
  33. package/tokens/catalogue/14-blocks.json +101 -0
  34. package/tokens/catalogue.json +1656 -48
  35. package/tokens/crystal.json +3 -2
  36. package/tokens/crystal.tokens.json +7 -2
  37. package/tokens/motion-recipes.json +124 -96
  38. package/tokens/surfaces.json +177 -0
@@ -13,6 +13,11 @@
13
13
  "narrow"
14
14
  ],
15
15
  "material": "Plastic foundation, Frost chrome, Resin actions",
16
+ "surface": [
17
+ "plastic",
18
+ "frost",
19
+ "control"
20
+ ],
16
21
  "geometry": "Panel radius throughout; safe areas respected.",
17
22
  "semantics": "Landmarks in place: banner, navigation, main, contentinfo. One main.",
18
23
  "crystal": "Region materials and elevation ordering",
@@ -32,6 +37,9 @@
32
37
  "empty"
33
38
  ],
34
39
  "material": "Inherits from its tiles",
40
+ "surface": [
41
+ "none"
42
+ ],
35
43
  "geometry": "Gap from the scale.",
36
44
  "semantics": "A labelled list of figures.",
37
45
  "crystal": "Reflow behaviour",
@@ -51,6 +59,9 @@
51
59
  "error"
52
60
  ],
53
61
  "material": "Haze panel on the surrounding material",
62
+ "surface": [
63
+ "haze"
64
+ ],
54
65
  "geometry": "Content radius; spacing from the scale.",
55
66
  "semantics": "The chart carries a table equivalent; controls are real controls.",
56
67
  "crystal": "Panel material, control geometry",
@@ -72,6 +83,10 @@
72
83
  "error"
73
84
  ],
74
85
  "material": "Table surface with Frost overlays",
86
+ "surface": [
87
+ "table",
88
+ "frost"
89
+ ],
75
90
  "geometry": "Toolbar controls are pills; the table keeps its own surface.",
76
91
  "semantics": "Selection count is announced; bulk actions describe what they will affect.",
77
92
  "crystal": "Surfaces, selection treatment, the motion of entering bulk mode",
@@ -93,6 +108,10 @@
93
108
  "error"
94
109
  ],
95
110
  "material": "Haze sections in a Frost panel",
111
+ "surface": [
112
+ "frost",
113
+ "haze"
114
+ ],
96
115
  "geometry": "Content radius; spacing from the scale.",
97
116
  "semantics": "Errors summarise at the top and link to their fields; submission state is announced.",
98
117
  "crystal": "Section materials, field recipes, the submit transition",
@@ -112,6 +131,9 @@
112
131
  "saved"
113
132
  ],
114
133
  "material": "Haze groups",
134
+ "surface": [
135
+ "haze"
136
+ ],
115
137
  "geometry": "Content radius; spacing from the scale.",
116
138
  "semantics": "Each group is a labelled region; unsaved changes are announced before navigation.",
117
139
  "crystal": "Group material, the save transition",
@@ -131,6 +153,10 @@
131
153
  "locked"
132
154
  ],
133
155
  "material": "Haze card on the Plastic foundation",
156
+ "surface": [
157
+ "plastic",
158
+ "haze"
159
+ ],
134
160
  "geometry": "Content radius; spacing from the scale.",
135
161
  "semantics": "Real form semantics with autocomplete tokens; failures never reveal which factor was wrong.",
136
162
  "crystal": "Card material, field recipes",
@@ -150,6 +176,9 @@
150
176
  "saving"
151
177
  ],
152
178
  "material": "Haze content fill on the surrounding material",
179
+ "surface": [
180
+ "haze"
181
+ ],
153
182
  "geometry": "Content radius; spacing from the scale.",
154
183
  "semantics": "Destructive actions confirm and say what they remove.",
155
184
  "crystal": "Material, avatar geometry",
@@ -169,10 +198,17 @@
169
198
  "live"
170
199
  ],
171
200
  "material": "Haze rows",
201
+ "surface": [
202
+ "haze"
203
+ ],
172
204
  "geometry": "Content radius; spacing from the scale.",
173
205
  "semantics": "Live updates are announced politely and never steal focus.",
174
206
  "crystal": "Row material, the insert motion",
175
207
  "product": "The event model",
208
+ "motion": [
209
+ "list-in",
210
+ "list-out"
211
+ ],
176
212
  "parity": [
177
213
  "antd:Timeline",
178
214
  "mantine:Timeline"
@@ -189,10 +225,20 @@
189
225
  "focus-visible"
190
226
  ],
191
227
  "material": "Frost panel with Haze rows",
228
+ "surface": [
229
+ "frost",
230
+ "haze"
231
+ ],
192
232
  "geometry": "Panel radius; rows reach 44px.",
193
233
  "semantics": "Unread count is announced; marking read is undoable.",
194
234
  "crystal": "Panel and row materials, the read transition",
195
235
  "product": "The notification model",
236
+ "motion": [
237
+ "toast-in",
238
+ "toast-out",
239
+ "list-in",
240
+ "list-out"
241
+ ],
196
242
  "parity": [
197
243
  "antd:Notification"
198
244
  ]
@@ -209,6 +255,10 @@
209
255
  "full-screen"
210
256
  ],
211
257
  "material": "Resin transport over the media; Haze metadata",
258
+ "surface": [
259
+ "resin",
260
+ "haze"
261
+ ],
212
262
  "geometry": "Transport is a pill; controls reach 44px.",
213
263
  "semantics": "Real media elements; captions and their state announced; transport reachable by keyboard.",
214
264
  "crystal": "Transport material, the show and hide motion",
@@ -228,10 +278,18 @@
228
278
  "focus-visible"
229
279
  ],
230
280
  "material": "Haze rows",
281
+ "surface": [
282
+ "haze"
283
+ ],
231
284
  "geometry": "Content radius; spacing from the scale.",
232
285
  "semantics": "Reorder works by keyboard; the now-playing row is aria-current.",
233
286
  "crystal": "Row material, the drag lift and settle",
234
287
  "product": "The queue model",
288
+ "motion": [
289
+ "list-in",
290
+ "list-out",
291
+ "reorder"
292
+ ],
235
293
  "parity": [
236
294
  "react-aria:GridList"
237
295
  ]
@@ -247,6 +305,9 @@
247
305
  "filtering"
248
306
  ],
249
307
  "material": "Inherits from its cards and panels",
308
+ "surface": [
309
+ "none"
310
+ ],
250
311
  "geometry": "Grid gap from the scale; reflows by container width.",
251
312
  "semantics": "Result count is announced on filter change; the grid is a labelled list.",
252
313
  "crystal": "Card and panel materials, the filter transition",
@@ -265,6 +326,9 @@
265
326
  "adding"
266
327
  ],
267
328
  "material": "Inherits from its parts",
329
+ "surface": [
330
+ "none"
331
+ ],
268
332
  "geometry": "Content radius; spacing from the scale.",
269
333
  "semantics": "Variant changes update price and stock together, and say so.",
270
334
  "crystal": "Composition of materials, the add-to-cart transition",
@@ -284,6 +348,10 @@
284
348
  "error"
285
349
  ],
286
350
  "material": "Haze sections in a Frost panel",
351
+ "surface": [
352
+ "frost",
353
+ "haze"
354
+ ],
287
355
  "geometry": "Content radius; spacing from the scale.",
288
356
  "semantics": "Each step is a labelled region; errors summarise and link; raw card data never touches this component.",
289
357
  "crystal": "Section materials, step transitions",
@@ -304,10 +372,18 @@
304
372
  "empty"
305
373
  ],
306
374
  "material": "Frost drawer with Haze rows",
375
+ "surface": [
376
+ "frost",
377
+ "haze"
378
+ ],
307
379
  "geometry": "Drawer keeps panel radius on its inner edge.",
308
380
  "semantics": "Opening moves focus in and returns it on close; total changes are announced.",
309
381
  "crystal": "Drawer material, the enter and exit recipes",
310
382
  "product": "The cart model",
383
+ "motion": [
384
+ "drawer-in",
385
+ "drawer-out"
386
+ ],
311
387
  "parity": [
312
388
  "antd:Drawer"
313
389
  ]
@@ -322,6 +398,9 @@
322
398
  "focus-visible"
323
399
  ],
324
400
  "material": "Haze content fill on the surrounding material",
401
+ "surface": [
402
+ "haze"
403
+ ],
325
404
  "geometry": "Content radius; spacing from the scale.",
326
405
  "semantics": "The recommended plan is stated in words, not only styled.",
327
406
  "crystal": "Card materials, emphasis treatment",
@@ -341,10 +420,18 @@
341
420
  "skipped"
342
421
  ],
343
422
  "material": "Frost panel over a Mirage scrim",
423
+ "surface": [
424
+ "frost",
425
+ "mirage"
426
+ ],
344
427
  "geometry": "Panel radius; the highlight follows the target radius.",
345
428
  "semantics": "Escapable at every step; progress announced; focus moves with the step.",
346
429
  "crystal": "Panel and scrim materials, step motion, focus management",
347
430
  "product": "The steps and their copy",
431
+ "motion": [
432
+ "page-in",
433
+ "page-out"
434
+ ],
348
435
  "parity": [
349
436
  "antd:Tour"
350
437
  ]
@@ -361,10 +448,20 @@
361
448
  "focus-visible"
362
449
  ],
363
450
  "material": "Frost overlay with Haze rows",
451
+ "surface": [
452
+ "frost",
453
+ "haze"
454
+ ],
364
455
  "geometry": "Overlay keeps panel radius; rows reach 44px.",
365
456
  "semantics": "A combobox: results are announced by count, and arrow keys move without losing the typed value.",
366
457
  "crystal": "Overlay material, the open motion, row treatment",
367
458
  "product": "The search backend and ranking",
459
+ "motion": [
460
+ "menu-in",
461
+ "menu-out",
462
+ "list-in",
463
+ "list-out"
464
+ ],
368
465
  "parity": [
369
466
  "mantine:Spotlight",
370
467
  "primereact:autocomplete"
@@ -382,6 +479,10 @@
382
479
  "saved"
383
480
  ],
384
481
  "material": "Haze surface in a Frost frame",
482
+ "surface": [
483
+ "frost",
484
+ "haze"
485
+ ],
385
486
  "geometry": "Toolbar controls are pills; the surface keeps the content radius.",
386
487
  "semantics": "The toolbar is a real toolbar with one tab stop; formatting state is announced.",
387
488
  "crystal": "Surface and toolbar materials, the save transition",