@zonsh/ui 0.4.1 → 0.5.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 (67) hide show
  1. package/dist/components/accordion.js +1 -1
  2. package/dist/components/ascii-field.js +2 -1
  3. package/dist/components/bottom-nav.js +4 -4
  4. package/dist/components/button.js +1 -1
  5. package/dist/components/chart.d.ts +11 -0
  6. package/dist/components/chart.js +12 -0
  7. package/dist/components/collapsible.js +1 -1
  8. package/dist/components/command.js +3 -3
  9. package/dist/components/conversation.js +10 -3
  10. package/dist/components/copy-button.js +7 -5
  11. package/dist/components/graph.js +24 -7
  12. package/dist/components/illustration.js +50 -3
  13. package/dist/components/input-group.d.ts +2 -2
  14. package/dist/components/input-group.js +6 -4
  15. package/dist/components/input.d.ts +1 -1
  16. package/dist/components/input.js +1 -1
  17. package/dist/components/layout.d.ts +2 -1
  18. package/dist/components/layout.js +55 -11
  19. package/dist/components/lightbox.js +22 -4
  20. package/dist/components/menubar.js +60 -13
  21. package/dist/components/message.js +3 -2
  22. package/dist/components/navigation-menu.js +4 -2
  23. package/dist/components/number-field.js +26 -12
  24. package/dist/components/pagination.js +1 -1
  25. package/dist/components/prompt-input.js +14 -6
  26. package/dist/components/radio-group.js +7 -2
  27. package/dist/components/reasoning.js +1 -1
  28. package/dist/components/response.d.ts +3 -2
  29. package/dist/components/response.js +22 -10
  30. package/dist/components/sidebar.js +37 -18
  31. package/dist/components/site-header.js +6 -1
  32. package/dist/components/skeleton.d.ts +1 -1
  33. package/dist/components/skeleton.js +1 -1
  34. package/dist/components/sortable.js +61 -37
  35. package/dist/components/table.d.ts +1 -1
  36. package/dist/components/table.js +55 -2
  37. package/dist/components/tabs.js +8 -4
  38. package/dist/components/tags-input.js +1 -1
  39. package/dist/components/theme.d.ts +1 -1
  40. package/dist/components/theme.js +21 -3
  41. package/dist/components/time-field.d.ts +2 -1
  42. package/dist/components/time-field.js +13 -3
  43. package/dist/components/toggle-group.js +1 -0
  44. package/dist/components/tool-call.js +6 -1
  45. package/dist/components/toolbar.d.ts +1 -1
  46. package/dist/components/toolbar.js +5 -2
  47. package/dist/components/tooltip.d.ts +4 -2
  48. package/dist/components/tooltip.js +10 -4
  49. package/dist/components/tour.js +35 -10
  50. package/dist/components/tree.js +29 -6
  51. package/dist/components/video-player.js +61 -5
  52. package/dist/lib/glide.d.ts +5 -4
  53. package/dist/lib/glide.js +5 -4
  54. package/dist/lib/table-fit.d.ts +3 -2
  55. package/dist/lib/table-fit.js +29 -19
  56. package/dist/styles/expressive.css +40 -21
  57. package/dist/styles/index.css +8 -0
  58. package/dist/styles/material.css +40 -20
  59. package/dist/styles/parts/ai.css +2 -1
  60. package/dist/styles/parts/controls.css +24 -20
  61. package/dist/styles/parts/data.css +33 -5
  62. package/dist/styles/parts/feedback.css +43 -13
  63. package/dist/styles/parts/navigation.css +42 -9
  64. package/dist/styles/parts/overlays.css +93 -6
  65. package/dist/styles/parts/pdf.css +13 -7
  66. package/dist/styles/tokens.css +16 -1
  67. package/package.json +1 -1
@@ -31,21 +31,27 @@
31
31
  0 1px 3px rgb(0 0 0 / 0.18);
32
32
  }
33
33
 
34
- /* Until a page or thumbnail is drawn, the paper carries the skeleton's sweep, in ink on paper. */
34
+ /* Until a page or thumbnail is drawn, the paper carries the skeleton's sweep, in ink on paper: a
35
+ half-wide highlight translated across (the page clips it), or under reduced motion a still
36
+ wash that breathes in opacity. */
35
37
  [data-slot="pdf-viewer-page"]:not([data-drawn])::before,
36
38
  [data-slot="pdf-viewer-thumbnail-page"]:not([data-drawn])::before {
37
39
  content: "";
38
40
  position: absolute;
39
- inset: 0;
41
+ inset-block: 0;
42
+ left: 0;
43
+ width: 50%;
40
44
  background-image: linear-gradient(90deg, transparent, rgb(0 0 0 / 0.05), transparent);
41
- background-repeat: no-repeat;
42
- background-size: 50% 100%;
43
- background-position: -100% 0;
44
- animation: ep-skeleton-sweep 1.6s var(--ease) infinite;
45
+ translate: -100% 0;
46
+ animation: ep-skeleton-sweep 1.6s var(--ease-move) infinite;
47
+ pointer-events: none;
45
48
 
46
49
  @media (prefers-reduced-motion: reduce) {
47
- animation: none;
50
+ width: 100%;
51
+ translate: none;
48
52
  background-image: none;
53
+ background-color: rgb(0 0 0 / 0.04);
54
+ animation: ep-fade-pulse 1.6s var(--ease-move) infinite alternate;
49
55
  }
50
56
  }
51
57
 
@@ -143,9 +143,21 @@
143
143
  --gutter: 24px;
144
144
  --section-pad: clamp(3.5rem, 7vw, 7rem);
145
145
 
146
- /* ── Motion ───────────────────────────────────────────────── */
146
+ /* ── Motion (docs/motion.md) ──────────────────────────────── */
147
+ /* Entering, leaving and colour: a strong ease-out, quick to start. */
147
148
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
149
+ /* What travels under the pointer's eye and lands softly: the gliding indicators, a height that
150
+ opens, a value that follows the pointer. A milder ease-out, so a long glide does not jump. */
151
+ --ease-glide: cubic-bezier(0.33, 1, 0.68, 1);
152
+ /* A move the interface makes from A to B on its own, and loops: ease in and out. */
153
+ --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
148
154
  --duration: 150ms;
155
+ /* Every gliding indicator, one speed. */
156
+ --duration-glide: calc(var(--duration) * 1.6);
157
+ /* Leaving is quicker than arriving. */
158
+ --duration-exit: calc(var(--duration) * 0.7);
159
+ /* Opacity and colour only: kept under reduced motion, which drops movement, not every change. */
160
+ --duration-fade: 150ms;
149
161
  --duration-reveal: 420ms;
150
162
 
151
163
  /* ── The zon mark ─────────────────────────────────────────── */
@@ -294,6 +306,9 @@
294
306
  :root,
295
307
  .theme-light {
296
308
  --duration: 0ms;
309
+ --duration-glide: 0ms;
310
+ --duration-exit: 0ms;
297
311
  --duration-reveal: 0ms;
312
+ /* --duration-fade stays: a fade is not movement, and things should not pop in and out. */
298
313
  }
299
314
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zonsh/ui",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "zon component library — Base UI primitives in the zon material.",
5
5
  "license": "MIT",
6
6
  "repository": {