@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.
- package/dist/components/accordion.js +1 -1
- package/dist/components/ascii-field.js +2 -1
- package/dist/components/bottom-nav.js +4 -4
- package/dist/components/button.js +1 -1
- package/dist/components/chart.d.ts +11 -0
- package/dist/components/chart.js +12 -0
- package/dist/components/collapsible.js +1 -1
- package/dist/components/command.js +3 -3
- package/dist/components/conversation.js +10 -3
- package/dist/components/copy-button.js +7 -5
- package/dist/components/graph.js +24 -7
- package/dist/components/illustration.js +50 -3
- package/dist/components/input-group.d.ts +2 -2
- package/dist/components/input-group.js +6 -4
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/layout.d.ts +2 -1
- package/dist/components/layout.js +55 -11
- package/dist/components/lightbox.js +22 -4
- package/dist/components/menubar.js +60 -13
- package/dist/components/message.js +3 -2
- package/dist/components/navigation-menu.js +4 -2
- package/dist/components/number-field.js +26 -12
- package/dist/components/pagination.js +1 -1
- package/dist/components/prompt-input.js +14 -6
- package/dist/components/radio-group.js +7 -2
- package/dist/components/reasoning.js +1 -1
- package/dist/components/response.d.ts +3 -2
- package/dist/components/response.js +22 -10
- package/dist/components/sidebar.js +37 -18
- package/dist/components/site-header.js +6 -1
- package/dist/components/skeleton.d.ts +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/sortable.js +61 -37
- package/dist/components/table.d.ts +1 -1
- package/dist/components/table.js +55 -2
- package/dist/components/tabs.js +8 -4
- package/dist/components/tags-input.js +1 -1
- package/dist/components/theme.d.ts +1 -1
- package/dist/components/theme.js +21 -3
- package/dist/components/time-field.d.ts +2 -1
- package/dist/components/time-field.js +13 -3
- package/dist/components/toggle-group.js +1 -0
- package/dist/components/tool-call.js +6 -1
- package/dist/components/toolbar.d.ts +1 -1
- package/dist/components/toolbar.js +5 -2
- package/dist/components/tooltip.d.ts +4 -2
- package/dist/components/tooltip.js +10 -4
- package/dist/components/tour.js +35 -10
- package/dist/components/tree.js +29 -6
- package/dist/components/video-player.js +61 -5
- package/dist/lib/glide.d.ts +5 -4
- package/dist/lib/glide.js +5 -4
- package/dist/lib/table-fit.d.ts +3 -2
- package/dist/lib/table-fit.js +29 -19
- package/dist/styles/expressive.css +40 -21
- package/dist/styles/index.css +8 -0
- package/dist/styles/material.css +40 -20
- package/dist/styles/parts/ai.css +2 -1
- package/dist/styles/parts/controls.css +24 -20
- package/dist/styles/parts/data.css +33 -5
- package/dist/styles/parts/feedback.css +43 -13
- package/dist/styles/parts/navigation.css +42 -9
- package/dist/styles/parts/overlays.css +93 -6
- package/dist/styles/parts/pdf.css +13 -7
- package/dist/styles/tokens.css +16 -1
- 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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
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
|
|
package/dist/styles/tokens.css
CHANGED
|
@@ -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
|
}
|