@cueplusplus/ui 0.19.0 → 0.20.1
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/CHANGELOG.md +58 -0
- package/dist/brand/index.d.ts +3 -1
- package/dist/brand/particle-logo.d.ts +50 -0
- package/dist/brand/particle-logo.js +445 -0
- package/dist/brand/text-scramble.d.ts +42 -0
- package/dist/brand/text-scramble.js +160 -0
- package/dist/chat/delegation-card.js +2 -1
- package/dist/chat/message.js +12 -13
- package/dist/color/color-area.js +2 -1
- package/dist/forms/_chassis.d.ts +1 -1
- package/dist/forms/_chassis.js +2 -2
- package/dist/forms/env-var-input.js +2 -1
- package/dist/forms/file-upload.js +2 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5 -1
- package/dist/instruments/data-table.js +3 -2
- package/dist/instruments/table.js +1 -1
- package/dist/layout/index.d.ts +2 -1
- package/dist/layout/index.js +2 -1
- package/dist/layout/reveal.d.ts +44 -0
- package/dist/layout/reveal.js +112 -0
- package/dist/lib/cn.js +23 -5
- package/dist/lib/particle-field-shaders.js +236 -0
- package/dist/lib/particle-field.js +210 -0
- package/dist/midi/spectrum-visualizer.js +2 -1
- package/dist/primitives/chip.js +4 -3
- package/dist/styles.css +12 -0
- package/dist/system/_style-field-chassis.js +14 -1
- package/dist/system/frame-clock.d.ts +33 -0
- package/dist/system/frame-clock.js +56 -0
- package/dist/system/index.d.ts +2 -1
- package/dist/system/index.js +2 -1
- package/dist/system/still.js +14 -1
- package/dist/system/theme-registry.d.ts +1 -1
- package/dist/system/theme-registry.js +1 -1
- package/manifest/components/autocomplete.json +1 -0
- package/manifest/components/bento.json +4 -4
- package/manifest/components/color-area.json +10 -0
- package/manifest/components/color-field.json +3 -0
- package/manifest/components/color-picker.json +3 -0
- package/manifest/components/combobox.json +1 -0
- package/manifest/components/composer.json +3 -0
- package/manifest/components/data-table-pagination.json +3 -0
- package/manifest/components/data-table-toolbar.json +3 -0
- package/manifest/components/date-field.json +3 -0
- package/manifest/components/date-picker.json +3 -0
- package/manifest/components/date-range-picker.json +3 -0
- package/manifest/components/delegation-card.json +6 -0
- package/manifest/components/env-var-input.json +3 -0
- package/manifest/components/file-upload.json +5 -0
- package/manifest/components/font-scope.json +3 -2
- package/manifest/components/grid.json +2 -2
- package/manifest/components/input-group.json +3 -0
- package/manifest/components/input.json +3 -0
- package/manifest/components/ledger.json +1 -1
- package/manifest/components/markdown-text.json +1 -1
- package/manifest/components/message.json +8 -0
- package/manifest/components/multi-select.json +1 -0
- package/manifest/components/musical-time-input.json +3 -0
- package/manifest/components/number-field.json +3 -0
- package/manifest/components/otp-field.json +3 -0
- package/manifest/components/particle-logo.json +140 -0
- package/manifest/components/password-input.json +3 -0
- package/manifest/components/preview.json +3 -2
- package/manifest/components/reveal.json +108 -0
- package/manifest/components/scrub-input.json +3 -0
- package/manifest/components/search-input.json +3 -0
- package/manifest/components/select.json +3 -0
- package/manifest/components/spectrum-visualizer.json +10 -0
- package/manifest/components/stack.json +1 -1
- package/manifest/components/table.json +1 -1
- package/manifest/components/tags-input.json +1 -0
- package/manifest/components/text-scramble.json +90 -0
- package/manifest/components/textarea.json +3 -0
- package/manifest/components/theme-provider.json +3 -2
- package/manifest/components/time-field.json +3 -0
- package/manifest/manifest.json +118 -42
- package/manifest/tokens.json +4 -2
- package/package.json +6 -4
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../lib/cn.js";
|
|
3
|
+
import { usePrefersReducedMotion } from "../instruments/_motion.js";
|
|
4
|
+
import { useStillHeld } from "../system/still.js";
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/brand/text-scramble.tsx
|
|
8
|
+
/** The matrix effect's glyphs, cueplusplus.com's `MATRIX_GLYPHS`. */
|
|
9
|
+
const MATRIX_GLYPHS = "ABCDEFGHJKLMNPQRSTUVWXYZ0123456789#%&*<>/=+";
|
|
10
|
+
/** The flap effect's glyphs, cueplusplus.com's `FLAP_GLYPHS`. */
|
|
11
|
+
const FLAP_GLYPHS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
12
|
+
/** How long a phrase holds once it has fully revealed, before the next begins. */
|
|
13
|
+
const HOLD_MS = 1800;
|
|
14
|
+
/** Under reduced motion, how long each whole phrase is shown. */
|
|
15
|
+
const REDUCED_MS = 2600;
|
|
16
|
+
/**
|
|
17
|
+
* A line that cycles through phrases, scrambling each one in — cueplusplus.com's
|
|
18
|
+
* "what we do" cycler, ported verbatim (`what-we-do.tsx`; spec
|
|
19
|
+
* 2026-10-04-cue-site-verbatim §4.2).
|
|
20
|
+
*
|
|
21
|
+
* Each frame, every character not yet locked shows a random glyph from the
|
|
22
|
+
* effect's set; spaces are never scrambled; characters lock left to right. A
|
|
23
|
+
* phrase holds for 1.8s once it has revealed, so a long phrase and a slow effect
|
|
24
|
+
* still finish before the next begins: the next starts after
|
|
25
|
+
* `length × revealEvery × speed + 1800ms`.
|
|
26
|
+
*
|
|
27
|
+
* **Reduced motion** shows each phrase whole, one every 2.6s, as the site does.
|
|
28
|
+
* **Held still** (a gallery thumbnail, under a still `StillProvider`) shows the
|
|
29
|
+
* first phrase and schedules nothing, which is this library's departure from the
|
|
30
|
+
* source: a thumbnail costs nothing at rest. The text is written straight into
|
|
31
|
+
* the DOM node, as the source does, so thirty-five frames a second never
|
|
32
|
+
* re-render React.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* <TextScramble phrases={["we build software", "we design stages"]} label="We build software and design stages." />
|
|
36
|
+
*/
|
|
37
|
+
const TextScramble = React.forwardRef(function TextScramble({ phrases, label, effect = "matrix", className, ...props }, ref) {
|
|
38
|
+
const text = React.useRef(null);
|
|
39
|
+
const held = useStillHeld();
|
|
40
|
+
const reduced = usePrefersReducedMotion();
|
|
41
|
+
const key = phrases.join("\0");
|
|
42
|
+
React.useEffect(() => {
|
|
43
|
+
const element = text.current;
|
|
44
|
+
if (element === null || phrases.length === 0) return;
|
|
45
|
+
if (held) {
|
|
46
|
+
element.textContent = phrases[0];
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const glyphs = effect === "flap" ? FLAP_GLYPHS : MATRIX_GLYPHS;
|
|
50
|
+
const speed = effect === "flap" ? 55 : 28;
|
|
51
|
+
const revealEvery = effect === "flap" ? 2 : 1;
|
|
52
|
+
const shape = (s) => effect === "flap" ? s.toUpperCase() : s;
|
|
53
|
+
let i = 0;
|
|
54
|
+
let scrambleTimer;
|
|
55
|
+
let cycleTimer;
|
|
56
|
+
let current = phrases[0];
|
|
57
|
+
let started = false;
|
|
58
|
+
let running = false;
|
|
59
|
+
let visible = true;
|
|
60
|
+
const clear = () => {
|
|
61
|
+
if (scrambleTimer !== void 0) clearInterval(scrambleTimer);
|
|
62
|
+
if (cycleTimer !== void 0) clearTimeout(cycleTimer);
|
|
63
|
+
scrambleTimer = void 0;
|
|
64
|
+
cycleTimer = void 0;
|
|
65
|
+
};
|
|
66
|
+
const scramble = (phrase) => {
|
|
67
|
+
if (scrambleTimer !== void 0) clearInterval(scrambleTimer);
|
|
68
|
+
if (reduced) {
|
|
69
|
+
element.textContent = phrase;
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
let frame = 0;
|
|
73
|
+
const length = phrase.length;
|
|
74
|
+
scrambleTimer = setInterval(() => {
|
|
75
|
+
const settled = Math.floor(frame / revealEvery);
|
|
76
|
+
let out = "";
|
|
77
|
+
for (let k = 0; k < length; k++) {
|
|
78
|
+
const ch = phrase[k];
|
|
79
|
+
if (ch === " " || k < settled) out += ch;
|
|
80
|
+
else out += glyphs[Math.floor(Math.random() * glyphs.length)];
|
|
81
|
+
}
|
|
82
|
+
element.textContent = out;
|
|
83
|
+
frame++;
|
|
84
|
+
if (settled >= length) {
|
|
85
|
+
if (scrambleTimer !== void 0) clearInterval(scrambleTimer);
|
|
86
|
+
scrambleTimer = void 0;
|
|
87
|
+
element.textContent = phrase;
|
|
88
|
+
}
|
|
89
|
+
}, speed);
|
|
90
|
+
};
|
|
91
|
+
const tick = () => {
|
|
92
|
+
const phrase = shape(phrases[i % phrases.length]);
|
|
93
|
+
current = phrase;
|
|
94
|
+
scramble(phrase);
|
|
95
|
+
i++;
|
|
96
|
+
const revealMs = reduced ? 0 : phrase.length * revealEvery * speed;
|
|
97
|
+
cycleTimer = setTimeout(tick, revealMs + (reduced ? REDUCED_MS : HOLD_MS));
|
|
98
|
+
};
|
|
99
|
+
const begin = () => {
|
|
100
|
+
started = true;
|
|
101
|
+
running = true;
|
|
102
|
+
if (reduced) {
|
|
103
|
+
element.textContent = phrases[0];
|
|
104
|
+
i = 1;
|
|
105
|
+
cycleTimer = setTimeout(tick, REDUCED_MS);
|
|
106
|
+
} else tick();
|
|
107
|
+
};
|
|
108
|
+
const pause = () => {
|
|
109
|
+
if (!running) return;
|
|
110
|
+
running = false;
|
|
111
|
+
clear();
|
|
112
|
+
element.textContent = current;
|
|
113
|
+
};
|
|
114
|
+
const resume = () => {
|
|
115
|
+
if (running || !visible || document.hidden) return;
|
|
116
|
+
if (!started) {
|
|
117
|
+
begin();
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
running = true;
|
|
121
|
+
cycleTimer = setTimeout(tick, reduced ? REDUCED_MS : HOLD_MS);
|
|
122
|
+
};
|
|
123
|
+
const observer = typeof IntersectionObserver === "undefined" ? null : new IntersectionObserver(([entry]) => {
|
|
124
|
+
visible = entry?.isIntersecting ?? true;
|
|
125
|
+
if (visible) resume();
|
|
126
|
+
else pause();
|
|
127
|
+
});
|
|
128
|
+
observer?.observe(element);
|
|
129
|
+
const onVisibility = () => document.hidden ? pause() : resume();
|
|
130
|
+
document.addEventListener("visibilitychange", onVisibility);
|
|
131
|
+
resume();
|
|
132
|
+
return () => {
|
|
133
|
+
clear();
|
|
134
|
+
observer?.disconnect();
|
|
135
|
+
document.removeEventListener("visibilitychange", onVisibility);
|
|
136
|
+
};
|
|
137
|
+
}, [
|
|
138
|
+
key,
|
|
139
|
+
effect,
|
|
140
|
+
held,
|
|
141
|
+
reduced
|
|
142
|
+
]);
|
|
143
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
144
|
+
ref,
|
|
145
|
+
"data-slot": "text-scramble",
|
|
146
|
+
className: cn(className),
|
|
147
|
+
...props,
|
|
148
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
149
|
+
className: "sr-only",
|
|
150
|
+
children: label
|
|
151
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
152
|
+
ref: text,
|
|
153
|
+
"data-slot": "text-scramble-text",
|
|
154
|
+
"aria-hidden": "true",
|
|
155
|
+
children: phrases[0]
|
|
156
|
+
})]
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
//#endregion
|
|
160
|
+
export { TextScramble };
|
|
@@ -3,6 +3,7 @@ import { cn } from "../lib/cn.js";
|
|
|
3
3
|
import { agentColor } from "./agent-color.js";
|
|
4
4
|
import { CheckGlyph } from "./_glyphs.js";
|
|
5
5
|
import { FOCUS_RING_OFFSET_2 } from "../system/_focus-ring.js";
|
|
6
|
+
import { FIELD_RADIUS } from "../system/_style-field-chassis.js";
|
|
6
7
|
import { Spinner } from "../primitives/spinner.js";
|
|
7
8
|
import * as React from "react";
|
|
8
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -53,7 +54,7 @@ const DelegationCard = React.forwardRef(function DelegationCard({ className, age
|
|
|
53
54
|
"data-direction": direction,
|
|
54
55
|
"data-state": open ? "open" : "closed",
|
|
55
56
|
"data-status": status,
|
|
56
|
-
className: cn(
|
|
57
|
+
className: cn(`flex min-w-0 flex-col gap-(--cue-space-2) ${FIELD_RADIUS} border border-border px-(--cue-space-3) py-(--cue-space-2)`, className),
|
|
57
58
|
style: {
|
|
58
59
|
"--agent-color": color,
|
|
59
60
|
...style
|
package/dist/chat/message.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
2
|
import { AGENT_ROOT_COLOR, agentColor } from "./agent-color.js";
|
|
3
|
+
import { FIELD_RADIUS, FIELD_RADIUS_BL, FIELD_RADIUS_BR } from "../system/_style-field-chassis.js";
|
|
3
4
|
import { LABEL_FACE } from "../system/_style-label-face.js";
|
|
4
5
|
import { LABEL_CASE } from "../system/_style-label-case.js";
|
|
5
6
|
import { LABEL_TRACKING } from "../system/_style-label-tracking.js";
|
|
@@ -12,21 +13,19 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
12
13
|
*
|
|
13
14
|
* The tight corner is the tail, and it points at whoever is speaking: bottom
|
|
14
15
|
* right for the right-aligned user turn, bottom left for the agent's. Written
|
|
15
|
-
* as the overlay rung with one corner overridden to the
|
|
16
|
-
* than a `[border-radius: …]`
|
|
17
|
-
* directly — a `--radius-*` reader
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* covers every corner, not just the four edges), so the four-value shorthand
|
|
24
|
-
* upstream Tailwind has no plain form for is two ordinary utility classes.
|
|
16
|
+
* as the overlay rung with one corner overridden to the **field's** corner
|
|
17
|
+
* (`FIELD_RADIUS_BR`/`_BL`, 2026-10-04), rather than a `[border-radius: …]`
|
|
18
|
+
* arbitrary value reading `var(--radius-*)` directly — a `--radius-*` reader
|
|
19
|
+
* bypasses the bridge every other radius in this system resolves through, and
|
|
20
|
+
* would not tighten with `--cue-radius-scale`. The field's corner is the
|
|
21
|
+
* control's under every set that names no `style-field-radius`, so the tail is
|
|
22
|
+
* what it always was there; under a set whose controls are pills (Prism,
|
|
23
|
+
* Ledger) it stays a tail instead of swelling into a 9999px curve.
|
|
25
24
|
*/
|
|
26
25
|
const ROLE_RADII = {
|
|
27
|
-
user:
|
|
28
|
-
agent:
|
|
29
|
-
system:
|
|
26
|
+
user: `rounded-overlay ${FIELD_RADIUS_BR}`,
|
|
27
|
+
agent: `rounded-overlay ${FIELD_RADIUS_BL}`,
|
|
28
|
+
system: FIELD_RADIUS
|
|
30
29
|
};
|
|
31
30
|
/**
|
|
32
31
|
* Fill per role.
|
package/dist/color/color-area.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { FIELD_RADIUS } from "../system/_style-field-chassis.js";
|
|
2
3
|
import { ariaClassName } from "../lib/aria-class.js";
|
|
3
4
|
import { colorThumbClasses } from "./_thumb.js";
|
|
4
5
|
import { toAriaColor } from "./_value.js";
|
|
@@ -26,7 +27,7 @@ import { ColorArea, ColorThumb } from "react-aria-components";
|
|
|
26
27
|
function ColorArea$1({ className, thumbClassName, value, defaultValue, ...areaProps }) {
|
|
27
28
|
return /* @__PURE__ */ jsx(ColorArea, {
|
|
28
29
|
"data-slot": "color-area",
|
|
29
|
-
className: ariaClassName(
|
|
30
|
+
className: ariaClassName(`relative h-[9rem] w-full touch-none ${FIELD_RADIUS} border border-border outline-none data-[disabled]:opacity-40`, className),
|
|
30
31
|
value: toAriaColor(value),
|
|
31
32
|
defaultValue: toAriaColor(defaultValue),
|
|
32
33
|
...areaProps,
|
package/dist/forms/_chassis.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ import { FormControlSize } from "./_chassis-size.js";
|
|
|
110
110
|
* own `shadow-` utility replaces it through `twMerge`, as it would have
|
|
111
111
|
* replaced nothing before.
|
|
112
112
|
*/
|
|
113
|
-
declare const controlSurface = "w-full rounded-control border-transparent border-(length:--cue-paint-stroke-width) bg-[linear-gradient(var(--cue-sunken),var(--cue-sunken)),linear-gradient(var(--cue-paint-stroke-angle),var(--cue-paint-stroke-from,var(--cue-border)),var(--cue-paint-stroke-to,var(--cue-border)))] bg-origin-border [background-clip:padding-box,border-box] shadow-[shadow:0_calc(2px*var(--cue-paint-shadow-scale))_calc(4px*var(--cue-paint-shadow-scale))_var(--cue-paint-rest-shade,transparent)] font-[family-name:var(--cue-style-input-face,var(--cue-font-mono))] font-[number:var(--cue-style-body-weight,inherit)] text-fg placeholder:text-fg-subtle outline-none hover:border-[color:var(--cue-style-field-hover-edge,transparent)] focus:border-[color:var(--cue-style-focus-edge,var(--cue-border-strong))] focus-visible:outline-solid focus-visible:outline-[length:var(--cue-style-focus-width,var(--cue-focus-ring))] focus-visible:outline-(--cue-focus) focus-visible:outline-offset-[var(--cue-style-field-focus-offset,-1px)] disabled:opacity-[var(--cue-style-disabled-opacity,0.4)] data-[disabled]:opacity-[var(--cue-style-disabled-opacity,0.4)] disabled:bg-[linear-gradient(var(--cue-style-disabled-fill,var(--cue-sunken)),var(--cue-style-disabled-fill,var(--cue-sunken))),linear-gradient(var(--cue-paint-stroke-angle),var(--cue-paint-stroke-from,var(--cue-border)),var(--cue-paint-stroke-to,var(--cue-border)))] data-[disabled]:bg-[linear-gradient(var(--cue-style-disabled-fill,var(--cue-sunken)),var(--cue-style-disabled-fill,var(--cue-sunken))),linear-gradient(var(--cue-paint-stroke-angle),var(--cue-paint-stroke-from,var(--cue-border)),var(--cue-paint-stroke-to,var(--cue-border)))] data-[invalid]:border-danger data-[invalid]:focus-visible:outline-danger";
|
|
113
|
+
declare const controlSurface = "w-full rounded-[var(--cue-style-field-radius,calc(var(--cue-style-control-radius,var(--cue-radius-control))*var(--cue-radius-scale)))] border-transparent border-(length:--cue-paint-stroke-width) bg-[linear-gradient(var(--cue-sunken),var(--cue-sunken)),linear-gradient(var(--cue-paint-stroke-angle),var(--cue-paint-stroke-from,var(--cue-border)),var(--cue-paint-stroke-to,var(--cue-border)))] bg-origin-border [background-clip:padding-box,border-box] shadow-[shadow:0_calc(2px*var(--cue-paint-shadow-scale))_calc(4px*var(--cue-paint-shadow-scale))_var(--cue-paint-rest-shade,transparent)] font-[family-name:var(--cue-style-input-face,var(--cue-font-mono))] font-[number:var(--cue-style-body-weight,inherit)] text-fg placeholder:text-fg-subtle outline-none hover:border-[color:var(--cue-style-field-hover-edge,transparent)] focus:border-[color:var(--cue-style-focus-edge,var(--cue-border-strong))] focus-visible:outline-solid focus-visible:outline-[length:var(--cue-style-focus-width,var(--cue-focus-ring))] focus-visible:outline-(--cue-focus) focus-visible:outline-offset-[var(--cue-style-field-focus-offset,-1px)] disabled:opacity-[var(--cue-style-disabled-opacity,0.4)] data-[disabled]:opacity-[var(--cue-style-disabled-opacity,0.4)] disabled:bg-[linear-gradient(var(--cue-style-disabled-fill,var(--cue-sunken)),var(--cue-style-disabled-fill,var(--cue-sunken))),linear-gradient(var(--cue-paint-stroke-angle),var(--cue-paint-stroke-from,var(--cue-border)),var(--cue-paint-stroke-to,var(--cue-border)))] data-[disabled]:bg-[linear-gradient(var(--cue-style-disabled-fill,var(--cue-sunken)),var(--cue-style-disabled-fill,var(--cue-sunken))),linear-gradient(var(--cue-paint-stroke-angle),var(--cue-paint-stroke-from,var(--cue-border)),var(--cue-paint-stroke-to,var(--cue-border)))] data-[invalid]:border-danger data-[invalid]:focus-visible:outline-danger";
|
|
114
114
|
/**
|
|
115
115
|
* The full recessed-control recipe, one variant per rung of the control ladder.
|
|
116
116
|
*
|
package/dist/forms/_chassis.js
CHANGED
|
@@ -5,7 +5,7 @@ import { FOCUS_RING_FIELD, FOCUS_RING_GROUP_FIELD } from "../system/_focus-ring-
|
|
|
5
5
|
import { CONTROL_STEP_SIZE_BODY, CONTROL_STEP_SIZE_SM } from "../system/_style-control-step.js";
|
|
6
6
|
import { STROKE_SUNKEN } from "../system/_paint-stroke-sunken.js";
|
|
7
7
|
import { BODY_WEIGHT } from "../system/_style-body-weight.js";
|
|
8
|
-
import { FIELD_HOVER_EDGE, FIELD_PAD_LG, FIELD_PAD_MD, FIELD_PAD_SM, INVALID_EDGE } from "../system/_style-field-chassis.js";
|
|
8
|
+
import { FIELD_HOVER_EDGE, FIELD_PAD_LG, FIELD_PAD_MD, FIELD_PAD_SM, FIELD_RADIUS, INVALID_EDGE } from "../system/_style-field-chassis.js";
|
|
9
9
|
import { INPUT_FACE } from "../system/_style-input-face.js";
|
|
10
10
|
//#region src/forms/_chassis.ts
|
|
11
11
|
/**
|
|
@@ -117,7 +117,7 @@ import { INPUT_FACE } from "../system/_style-input-face.js";
|
|
|
117
117
|
* own `shadow-` utility replaces it through `twMerge`, as it would have
|
|
118
118
|
* replaced nothing before.
|
|
119
119
|
*/
|
|
120
|
-
const controlSurface = `w-full
|
|
120
|
+
const controlSurface = `w-full ${FIELD_RADIUS} ${STROKE_SUNKEN} ${REST_SHADE_CLASS} ${INPUT_FACE} ${BODY_WEIGHT} text-fg placeholder:text-fg-subtle outline-none ${FIELD_HOVER_EDGE} focus:border-[color:var(--cue-style-focus-edge,var(--cue-border-strong))] ${FOCUS_RING_FIELD} ${DISABLED_OPACITY} ${DATA_DISABLED_OPACITY} ${FIELD_DISABLED_FILL} ${INVALID_EDGE} data-[invalid]:focus-visible:outline-danger`;
|
|
121
121
|
/**
|
|
122
122
|
* The full recessed-control recipe, one variant per rung of the control ladder.
|
|
123
123
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../lib/cn.js";
|
|
3
3
|
import { FOCUS_RING } from "../system/_focus-ring.js";
|
|
4
|
+
import { FIELD_RADIUS } from "../system/_style-field-chassis.js";
|
|
4
5
|
import { Input } from "./input.js";
|
|
5
6
|
import { CrossGlyph, VariableGlyph } from "./_glyphs.js";
|
|
6
7
|
import { PasswordInput } from "./password-input.js";
|
|
@@ -90,7 +91,7 @@ const EnvVarInput = React.forwardRef(function EnvVarInput({ className, value: va
|
|
|
90
91
|
...elementProps,
|
|
91
92
|
children: variable === null ? secret ? /* @__PURE__ */ jsx(PasswordInput, { ...controlProps }) : /* @__PURE__ */ jsx(Input, { ...controlProps }) : /* @__PURE__ */ jsxs("div", {
|
|
92
93
|
"data-slot": "env-var-pill",
|
|
93
|
-
className: cn(
|
|
94
|
+
className: cn(`flex w-full items-center gap-(--cue-space-2) ${FIELD_RADIUS} border border-warn/35 bg-warn/10 font-mono text-warn`, PILL_SIZES[size], disabled === true && "opacity-40"),
|
|
94
95
|
children: [
|
|
95
96
|
/* @__PURE__ */ jsx(VariableGlyph, {
|
|
96
97
|
"aria-hidden": "true",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../lib/cn.js";
|
|
3
3
|
import { FOCUS_RING } from "../system/_focus-ring.js";
|
|
4
|
+
import { FIELD_RADIUS } from "../system/_style-field-chassis.js";
|
|
4
5
|
import { CrossGlyph } from "./_glyphs.js";
|
|
5
6
|
import * as React from "react";
|
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -144,7 +145,7 @@ const FileUpload = React.forwardRef(function FileUpload({ className, zoneClassNa
|
|
|
144
145
|
setDragging(false);
|
|
145
146
|
intake(event.dataTransfer?.files ?? null);
|
|
146
147
|
},
|
|
147
|
-
className: cn(`flex w-full cursor-pointer flex-col items-center justify-center gap-(--cue-space-1)
|
|
148
|
+
className: cn(`flex w-full cursor-pointer flex-col items-center justify-center gap-(--cue-space-1) ${FIELD_RADIUS} border border-dashed border-border bg-sunken px-(--cue-space-4) py-(--cue-space-5) font-mono text-(length:--cue-text-ui) text-fg-muted outline-none transition-colors duration-150 hover:border-border-strong hover:text-fg ${FOCUS_RING} disabled:pointer-events-none disabled:opacity-40 data-[dragging=true]:border-accent data-[dragging=true]:bg-accent-soft data-[dragging=true]:text-fg motion-reduce:transition-none`, zoneClassName),
|
|
148
149
|
children: [/* @__PURE__ */ jsx("span", { children: label }), hint === void 0 ? null : /* @__PURE__ */ jsx("span", {
|
|
149
150
|
className: "text-(length:--cue-text-label) text-fg-subtle",
|
|
150
151
|
children: hint
|
package/dist/index.d.ts
CHANGED
|
@@ -75,8 +75,10 @@ import { Plussie, PlussieExpression, PlussieProps } from "./brand/plussie.js";
|
|
|
75
75
|
import { GlossObject, GlossObjectProps } from "./brand/gloss-object.js";
|
|
76
76
|
import { Halftone, HalftoneProps } from "./brand/halftone.js";
|
|
77
77
|
import { Motif, MotifProps, MotifVariant } from "./brand/motif.js";
|
|
78
|
+
import { ParticleLogo, ParticleLogoProps } from "./brand/particle-logo.js";
|
|
78
79
|
import { ParticleMark, ParticleMarkProps } from "./brand/particle-mark.js";
|
|
79
80
|
import { Ribbon, RibbonProps } from "./brand/ribbon.js";
|
|
81
|
+
import { TextScramble, TextScrambleProps } from "./brand/text-scramble.js";
|
|
80
82
|
import "./brand/index.js";
|
|
81
83
|
import { AudienceIcon, CatalogueIcon, ChannelBetaIcon, ChannelReleasedIcon, CliToolIcon, FolderIcon, McpServerIcon, SkillIcon, StackIcon, StacksMatrixIcon } from "./icons/containers.js";
|
|
82
84
|
import "./icons/index.js";
|
|
@@ -103,6 +105,7 @@ import { Accordion, AccordionHeaderProps, AccordionItemProps, AccordionPanelProp
|
|
|
103
105
|
import { SpaceStep, Stack, StackAlign, StackJustify, StackProps } from "./layout/stack.js";
|
|
104
106
|
import { Bento, BentoColumns, BentoMinHeight, BentoRootProps, BentoRowSpan, BentoRows, BentoSpan, BentoTileProps } from "./layout/bento.js";
|
|
105
107
|
import { Breadcrumb, BreadcrumbItem, BreadcrumbProps } from "./layout/breadcrumb.js";
|
|
108
|
+
import { Reveal, RevealProps } from "./layout/reveal.js";
|
|
106
109
|
import { Card, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardRootProps, CardTitleProps } from "./layout/card.js";
|
|
107
110
|
import { Collapsible, CollapsiblePanelProps, CollapsibleRootProps, CollapsibleTriggerProps, Disclosure, DisclosureProps } from "./layout/collapsible.js";
|
|
108
111
|
import { DescriptionList, DescriptionListDetailProps, DescriptionListLayout, DescriptionListRootProps, DescriptionListTermProps } from "./layout/description-list.js";
|
|
@@ -146,6 +149,7 @@ import { useDensities, useFonts, useThemes } from "./system/theme-registry.js";
|
|
|
146
149
|
import { ControlSize, useControlHeight, useDensity } from "./system/use-density.js";
|
|
147
150
|
import { useTheme } from "./system/use-theme.js";
|
|
148
151
|
import { StillProvider, StillProviderProps, useStill } from "./system/still.js";
|
|
152
|
+
import { FrameClockOptions, useFrameClock } from "./system/frame-clock.js";
|
|
149
153
|
import { FontScope, FontScopeProps } from "./system/font-scope.js";
|
|
150
154
|
import { DEFAULT_PAINT, DEFAULT_STYLE_SET, DensityEntry, DensityLevel, FontEntry, FontName, Mode, PAINTS, Paint, STYLE_SETS, StyleSet, ThemeManifest, ThemeName } from "./system/index.js";
|
|
151
|
-
export { AGENT_COLOR_PROPERTY, AGENT_HUES, AGENT_ROOT_COLOR, Accordion, type AccordionHeaderProps, type AccordionItemProps, type AccordionPanelProps, type AccordionRootProps, type AccordionTriggerProps, type AgentColorOptions, AgentPile, type AgentPileEntry, type AgentPileProps, type AgentPileSize, AlertDialog, type AlertDialogActionProps, type AlertDialogCancelProps, type AlertDialogContentProps, type AlertDialogDescriptionProps, type AlertDialogFooterProps, type AlertDialogRootProps, type AlertDialogTitleProps, type AlertDialogTriggerProps, AnnouncementBar, type AnnouncementBarAction, type AnnouncementBarProps, AppBar, type AppBarActionsProps, type AppBarBrandProps, type AppBarLinkProps, type AppBarNavProps, type AppBarRegister, type AppBarRootProps, type AppBarSeparatorProps, AppShell, type AppShellAsideProps, type AppShellBarProps, type AppShellBodyProps, type AppShellContentProps, type AppShellNavTriggerProps, type AppShellRootProps, type AppShellScrollerProps, type AppShellSidebarProps, AppWindowFrame, type AppWindowFrameProps, type AskAnswer, AskBox, type AskBoxProps, type AskDanger, type AskKind, type AskOption, AudienceIcon, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Band, type BandProps, type BandSeparation, type BandWidth, type BarOverflow, Bento, type BentoColumns, type BentoMinHeight, type BentoRootProps, type BentoRowSpan, type BentoRows, type BentoSpan, type BentoTileProps, type BrandAssetProps, type BrandSize, type BrandTone, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonProps, Card, type CardContentProps, type CardDescriptionProps, type CardFooterProps, type CardHeaderProps, type CardRootProps, type CardTitleProps, CatalogueIcon, ChannelBetaIcon, ChannelReleasedIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, CliToolIcon, CodeBlock, type CodeBlockProps, Collapsible, type CollapsiblePanelProps, type CollapsibleRootProps, type CollapsibleTriggerProps, Combobox, type ComboboxOption, type ComboboxProps, CommandPalette, type CommandPaletteItem, type CommandPaletteProps, Composer, type ComposerProps, type ComposerSubmitKey, Container, type ContainerProps, type ContainerWidth, ContextMenu, type ContextMenuContentProps, type ContextMenuRootProps, type ContextMenuTriggerProps, type ControlSize, type ControlVariantProps, CopyButton, type CopyButtonProps, CueLogotype, type CueLogotypeProps, CueMark, type CueMarkProps, CuePortalFrame, type CuePortalFrameProps, DEFAULT_PAINT, DEFAULT_STORAGE_KEY, DEFAULT_STYLE_SET, DataRow, type DataRowDisclosure, type DataRowRootProps, type DataRowSlotProps, DataTree, type DataTreeItem, type DataTreeProps, type DataTreeRowState, DelegationCard, type DelegationCardProps, type DelegationDirection, type DelegationStatus, Density, type DensityEntry, type DensityLevel, type DensityProps, DescriptionList, type DescriptionListDetailProps, type DescriptionListLayout, type DescriptionListRootProps, type DescriptionListTermProps, Dialog, type DialogCloseProps, type DialogContentProps, type DialogDescriptionProps, type DialogFooterProps, type DialogRootProps, type DialogTitleProps, type DialogTriggerProps, Disclosure, type DisclosureProps, Drawer, type DrawerCloseProps, type DrawerContentProps, type DrawerDescriptionProps, type DrawerFooterProps, type DrawerRootProps, type DrawerSwipeDirection, type DrawerTitleProps, type DrawerTriggerProps, DropdownMenu, type DropdownMenuCheckboxItemProps, type DropdownMenuContentProps, type DropdownMenuGroupProps, type DropdownMenuItemProps, type DropdownMenuLabelProps, type DropdownMenuRootProps, type DropdownMenuSeparatorProps, type DropdownMenuTriggerProps, EmptyState, type EmptyStateProps, EnvVarInput, type EnvVarInputProps, Eyebrow, type EyebrowProps, Field, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorProps, type FieldIssue, FieldLabel, type FieldLabelProps, type FieldProps, type FilePartition, type FilePartitionOptions, type FileRejectReason, type FileRejection, FileUpload, type FileUploadProps, FolderIcon, type FontEntry, type FontFamilies, type FontName, FontScope, type FontScopeProps, Footer, type FooterProps, type FormControlSize, Frames, type FramesHeight, type FramesItemProps, type FramesLayout, type FramesRootProps, GlossObject, type GlossObjectProps, Grid, type GridColumns, type GridProps, GroupBar, type GroupBarItem, type GroupBarProps, type GroupBarTone, Halftone, type HalftoneProps, Hero, type HeroProps, HoverCard, type HoverCardContentProps, type HoverCardRootProps, type HoverCardTriggerProps, IconButton, type IconButtonProps, InfoTip, type InfoTipProps, Input, InputGroup, type InputGroupProps, type InputProps, Inspector, type InspectorFooterProps, type InspectorRootProps, type InspectorRowProps, type InspectorSectionProps, Item, type ItemProps, Kbd, type KbdProps, Keyword, type KeywordProps, Ledger, type LedgerEmptyProps, type LedgerGroupProps, type LedgerRootProps, type LedgerTierProps, Link, type LinkProps, LogoStrip, type LogoStripProps, McpServerIcon, Menubar, type MenubarContentProps, type MenubarMenuProps, type MenubarRootProps, type MenubarTriggerProps, Message, MessageList, type MessageListProps, type MessageProps, type MessageRole, Meter, type MeterProps, type MeterProvenance, type MeterTone, type Mode, Motif, type MotifProps, type MotifVariant, MultiSelect, type MultiSelectProps, NavigationMenu, type NavigationMenuContentProps, type NavigationMenuItemProps, type NavigationMenuLinkProps, type NavigationMenuListProps, type NavigationMenuRootProps, type NavigationMenuTriggerProps, type NavigationMenuViewportProps, NumberField, type NumberFieldProps, OTPField, type OTPFieldProps, OVERLAY_SIDE_OFFSET, PAINTS, PageShell, type PageShellProps, type PageWidth, Pagination, type PaginationEntry, type PaginationProps, type Paint, Panel, PanelHeader, type PanelHeaderProps, type PanelProps, ParticleMark, type ParticleMarkProps, PasswordInput, type PasswordInputProps, type PersistedPreferences, Plussie, type PlussieExpression, type PlussieProps, Popover, type PopoverCloseProps, type PopoverContentProps, type PopoverDescriptionProps, type PopoverRootProps, type PopoverTitleProps, type PopoverTriggerProps, type PrepaintDefaults, type PrepaintOptions, Preview, type PreviewAxis, type PreviewGround, type PreviewPresentation, type PreviewProps, type PreviewResizeOptions, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, type RatingSize, type ResolvedMode, Ribbon, type RibbonProps, Row, type RowProps, STYLE_SETS, ScrollArea, type ScrollAreaOrientation, type ScrollAreaProps, type ScrollEdges, ScrollableTabsList, type ScrollableTabsListProps, ScrubInput, type ScrubInputProps, SeamCell, type SeamCellProps, SeamGrid, type SeamGridProps, type SeamGround, SeamList, type SeamListProps, SearchInput, type SearchInputProps, SectionHeader, type SectionHeaderProps, SegmentedControl, type SegmentedControlItem, type SegmentedControlProps, type SegmentedControlSize, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Sheet, type SheetCloseProps, type SheetContentProps, type SheetDescriptionProps, type SheetFooterProps, type SheetRootProps, type SheetTitleProps, type SheetTriggerProps, Sidebar, type SidebarItemProps, type SidebarRailProps, type SidebarRootProps, type SidebarSectionProps, Skeleton, type SkeletonProps, SkillIcon, Slider, type SliderProps, type SpaceStep, Sparkline, type SparklineProps, Spinner, type SpinnerProps, Stack, type StackAlign, StackIcon, type StackJustify, type StackProps, StacksMatrixIcon, Stat, StatBand, type StatBandProps, type StatBandStat, type StatProps, type StatTone, StatusBar, type StatusBarGroupProps, type StatusBarItemProps, type StatusBarProminence, type StatusBarProps, type StatusBarTone, StatusDot, type StatusDotProps, type StatusTone, Stepper, type StepperProps, type StepperState, type StepperStep, StillProvider, type StillProviderProps, type StyleSet, Switch, type SwitchProps, TAB_FADE_PX, TREE_GUIDE_GLYPHS, Table, type TableCaptionProps, type TableCellProps, type TableGroupRowProps, type TableHeadProps, type TableRootProps, type TableRowProps, TableScrollRegion, type TableScrollRegionProps, type TableSectionProps, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, type TabsTabProps, TagsInput, type TagsInputProps, TerminalFrame, type TerminalFrameLine, type TerminalFrameProps, type TerminalLine, type TerminalLineTone, type TerminalScript, type TerminalStep, Textarea, type TextareaProps, type ThemeContextValue, type ThemeManifest, type ThemeName, ThemeProvider, type ThemeProviderProps, type ThemeRegistry, Timeline, type TimelineContentProps, type TimelineItemProps, type TimelineMarkerProps, type TimelineRootProps, TitleBar, type TitleBarProps, Toast, type ToastManager, type ToastOptions, type ToastProviderProps, type ToastTone, type ToastViewportProps, Toggle, ToggleGroup, type ToggleGroupProps, type ToggleProps, type TokenOverrides, Toolbar, type ToolbarButtonProps, type ToolbarGroupProps, type ToolbarRootProps, type ToolbarSeparatorProps, Tooltip, type TooltipContentProps, type TooltipProviderProps, type TooltipRootProps, type TooltipTriggerProps, Tree, type TreeGuide, type TreeItem, type TreeProps, type TreeRow, type TreeVisibility, TreeVisibilityToggle, type TreeVisibilityToggleProps, TwoStepButton, type TwoStepButtonProps, type TwoStepTone, type UploadFile, type UploadStatus, UsageChart, type UsageChartPoint, type UsageChartProps, type UsageChartTone, activateRowFromClick, activateRowFromKeyDown, agentColor, agentColorStyle, bareControlClasses, buttonVariants, chipVariants, computeScrollEdges, controlClasses, controlGroupFocusClasses, controlSurface, controlVariants, edgeFadeMask, envReference, flattenTree, isSafeTokenValue, itemVariants, linkVariants, menuItemClasses, menuLabelClasses, menuPopupClasses, menuSeparatorClasses, overlayDescriptionClasses, overlayFooterClasses, overlayModalTransitionClasses, overlayPopupTransitionClasses, overlayPositionerClasses, overlaySurfaceClasses, overlayTextClasses, overlayTitleClasses, paginationRange, parseEnvReference, partitionFiles, prepaintScript, rowVariants, scrimClasses, useControlHeight, useCuePortalProps, useDensities, useDensity, useFonts, useSidebar, useStill, useTheme, useThemes, useToast };
|
|
155
|
+
export { AGENT_COLOR_PROPERTY, AGENT_HUES, AGENT_ROOT_COLOR, Accordion, type AccordionHeaderProps, type AccordionItemProps, type AccordionPanelProps, type AccordionRootProps, type AccordionTriggerProps, type AgentColorOptions, AgentPile, type AgentPileEntry, type AgentPileProps, type AgentPileSize, AlertDialog, type AlertDialogActionProps, type AlertDialogCancelProps, type AlertDialogContentProps, type AlertDialogDescriptionProps, type AlertDialogFooterProps, type AlertDialogRootProps, type AlertDialogTitleProps, type AlertDialogTriggerProps, AnnouncementBar, type AnnouncementBarAction, type AnnouncementBarProps, AppBar, type AppBarActionsProps, type AppBarBrandProps, type AppBarLinkProps, type AppBarNavProps, type AppBarRegister, type AppBarRootProps, type AppBarSeparatorProps, AppShell, type AppShellAsideProps, type AppShellBarProps, type AppShellBodyProps, type AppShellContentProps, type AppShellNavTriggerProps, type AppShellRootProps, type AppShellScrollerProps, type AppShellSidebarProps, AppWindowFrame, type AppWindowFrameProps, type AskAnswer, AskBox, type AskBoxProps, type AskDanger, type AskKind, type AskOption, AudienceIcon, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Band, type BandProps, type BandSeparation, type BandWidth, type BarOverflow, Bento, type BentoColumns, type BentoMinHeight, type BentoRootProps, type BentoRowSpan, type BentoRows, type BentoSpan, type BentoTileProps, type BrandAssetProps, type BrandSize, type BrandTone, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonProps, Card, type CardContentProps, type CardDescriptionProps, type CardFooterProps, type CardHeaderProps, type CardRootProps, type CardTitleProps, CatalogueIcon, ChannelBetaIcon, ChannelReleasedIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, CliToolIcon, CodeBlock, type CodeBlockProps, Collapsible, type CollapsiblePanelProps, type CollapsibleRootProps, type CollapsibleTriggerProps, Combobox, type ComboboxOption, type ComboboxProps, CommandPalette, type CommandPaletteItem, type CommandPaletteProps, Composer, type ComposerProps, type ComposerSubmitKey, Container, type ContainerProps, type ContainerWidth, ContextMenu, type ContextMenuContentProps, type ContextMenuRootProps, type ContextMenuTriggerProps, type ControlSize, type ControlVariantProps, CopyButton, type CopyButtonProps, CueLogotype, type CueLogotypeProps, CueMark, type CueMarkProps, CuePortalFrame, type CuePortalFrameProps, DEFAULT_PAINT, DEFAULT_STORAGE_KEY, DEFAULT_STYLE_SET, DataRow, type DataRowDisclosure, type DataRowRootProps, type DataRowSlotProps, DataTree, type DataTreeItem, type DataTreeProps, type DataTreeRowState, DelegationCard, type DelegationCardProps, type DelegationDirection, type DelegationStatus, Density, type DensityEntry, type DensityLevel, type DensityProps, DescriptionList, type DescriptionListDetailProps, type DescriptionListLayout, type DescriptionListRootProps, type DescriptionListTermProps, Dialog, type DialogCloseProps, type DialogContentProps, type DialogDescriptionProps, type DialogFooterProps, type DialogRootProps, type DialogTitleProps, type DialogTriggerProps, Disclosure, type DisclosureProps, Drawer, type DrawerCloseProps, type DrawerContentProps, type DrawerDescriptionProps, type DrawerFooterProps, type DrawerRootProps, type DrawerSwipeDirection, type DrawerTitleProps, type DrawerTriggerProps, DropdownMenu, type DropdownMenuCheckboxItemProps, type DropdownMenuContentProps, type DropdownMenuGroupProps, type DropdownMenuItemProps, type DropdownMenuLabelProps, type DropdownMenuRootProps, type DropdownMenuSeparatorProps, type DropdownMenuTriggerProps, EmptyState, type EmptyStateProps, EnvVarInput, type EnvVarInputProps, Eyebrow, type EyebrowProps, Field, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorProps, type FieldIssue, FieldLabel, type FieldLabelProps, type FieldProps, type FilePartition, type FilePartitionOptions, type FileRejectReason, type FileRejection, FileUpload, type FileUploadProps, FolderIcon, type FontEntry, type FontFamilies, type FontName, FontScope, type FontScopeProps, Footer, type FooterProps, type FormControlSize, type FrameClockOptions, Frames, type FramesHeight, type FramesItemProps, type FramesLayout, type FramesRootProps, GlossObject, type GlossObjectProps, Grid, type GridColumns, type GridProps, GroupBar, type GroupBarItem, type GroupBarProps, type GroupBarTone, Halftone, type HalftoneProps, Hero, type HeroProps, HoverCard, type HoverCardContentProps, type HoverCardRootProps, type HoverCardTriggerProps, IconButton, type IconButtonProps, InfoTip, type InfoTipProps, Input, InputGroup, type InputGroupProps, type InputProps, Inspector, type InspectorFooterProps, type InspectorRootProps, type InspectorRowProps, type InspectorSectionProps, Item, type ItemProps, Kbd, type KbdProps, Keyword, type KeywordProps, Ledger, type LedgerEmptyProps, type LedgerGroupProps, type LedgerRootProps, type LedgerTierProps, Link, type LinkProps, LogoStrip, type LogoStripProps, McpServerIcon, Menubar, type MenubarContentProps, type MenubarMenuProps, type MenubarRootProps, type MenubarTriggerProps, Message, MessageList, type MessageListProps, type MessageProps, type MessageRole, Meter, type MeterProps, type MeterProvenance, type MeterTone, type Mode, Motif, type MotifProps, type MotifVariant, MultiSelect, type MultiSelectProps, NavigationMenu, type NavigationMenuContentProps, type NavigationMenuItemProps, type NavigationMenuLinkProps, type NavigationMenuListProps, type NavigationMenuRootProps, type NavigationMenuTriggerProps, type NavigationMenuViewportProps, NumberField, type NumberFieldProps, OTPField, type OTPFieldProps, OVERLAY_SIDE_OFFSET, PAINTS, PageShell, type PageShellProps, type PageWidth, Pagination, type PaginationEntry, type PaginationProps, type Paint, Panel, PanelHeader, type PanelHeaderProps, type PanelProps, ParticleLogo, type ParticleLogoProps, ParticleMark, type ParticleMarkProps, PasswordInput, type PasswordInputProps, type PersistedPreferences, Plussie, type PlussieExpression, type PlussieProps, Popover, type PopoverCloseProps, type PopoverContentProps, type PopoverDescriptionProps, type PopoverRootProps, type PopoverTitleProps, type PopoverTriggerProps, type PrepaintDefaults, type PrepaintOptions, Preview, type PreviewAxis, type PreviewGround, type PreviewPresentation, type PreviewProps, type PreviewResizeOptions, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, type RatingSize, type ResolvedMode, Reveal, type RevealProps, Ribbon, type RibbonProps, Row, type RowProps, STYLE_SETS, ScrollArea, type ScrollAreaOrientation, type ScrollAreaProps, type ScrollEdges, ScrollableTabsList, type ScrollableTabsListProps, ScrubInput, type ScrubInputProps, SeamCell, type SeamCellProps, SeamGrid, type SeamGridProps, type SeamGround, SeamList, type SeamListProps, SearchInput, type SearchInputProps, SectionHeader, type SectionHeaderProps, SegmentedControl, type SegmentedControlItem, type SegmentedControlProps, type SegmentedControlSize, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Sheet, type SheetCloseProps, type SheetContentProps, type SheetDescriptionProps, type SheetFooterProps, type SheetRootProps, type SheetTitleProps, type SheetTriggerProps, Sidebar, type SidebarItemProps, type SidebarRailProps, type SidebarRootProps, type SidebarSectionProps, Skeleton, type SkeletonProps, SkillIcon, Slider, type SliderProps, type SpaceStep, Sparkline, type SparklineProps, Spinner, type SpinnerProps, Stack, type StackAlign, StackIcon, type StackJustify, type StackProps, StacksMatrixIcon, Stat, StatBand, type StatBandProps, type StatBandStat, type StatProps, type StatTone, StatusBar, type StatusBarGroupProps, type StatusBarItemProps, type StatusBarProminence, type StatusBarProps, type StatusBarTone, StatusDot, type StatusDotProps, type StatusTone, Stepper, type StepperProps, type StepperState, type StepperStep, StillProvider, type StillProviderProps, type StyleSet, Switch, type SwitchProps, TAB_FADE_PX, TREE_GUIDE_GLYPHS, Table, type TableCaptionProps, type TableCellProps, type TableGroupRowProps, type TableHeadProps, type TableRootProps, type TableRowProps, TableScrollRegion, type TableScrollRegionProps, type TableSectionProps, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, type TabsTabProps, TagsInput, type TagsInputProps, TerminalFrame, type TerminalFrameLine, type TerminalFrameProps, type TerminalLine, type TerminalLineTone, type TerminalScript, type TerminalStep, TextScramble, type TextScrambleProps, Textarea, type TextareaProps, type ThemeContextValue, type ThemeManifest, type ThemeName, ThemeProvider, type ThemeProviderProps, type ThemeRegistry, Timeline, type TimelineContentProps, type TimelineItemProps, type TimelineMarkerProps, type TimelineRootProps, TitleBar, type TitleBarProps, Toast, type ToastManager, type ToastOptions, type ToastProviderProps, type ToastTone, type ToastViewportProps, Toggle, ToggleGroup, type ToggleGroupProps, type ToggleProps, type TokenOverrides, Toolbar, type ToolbarButtonProps, type ToolbarGroupProps, type ToolbarRootProps, type ToolbarSeparatorProps, Tooltip, type TooltipContentProps, type TooltipProviderProps, type TooltipRootProps, type TooltipTriggerProps, Tree, type TreeGuide, type TreeItem, type TreeProps, type TreeRow, type TreeVisibility, TreeVisibilityToggle, type TreeVisibilityToggleProps, TwoStepButton, type TwoStepButtonProps, type TwoStepTone, type UploadFile, type UploadStatus, UsageChart, type UsageChartPoint, type UsageChartProps, type UsageChartTone, activateRowFromClick, activateRowFromKeyDown, agentColor, agentColorStyle, bareControlClasses, buttonVariants, chipVariants, computeScrollEdges, controlClasses, controlGroupFocusClasses, controlSurface, controlVariants, edgeFadeMask, envReference, flattenTree, isSafeTokenValue, itemVariants, linkVariants, menuItemClasses, menuLabelClasses, menuPopupClasses, menuSeparatorClasses, overlayDescriptionClasses, overlayFooterClasses, overlayModalTransitionClasses, overlayPopupTransitionClasses, overlayPositionerClasses, overlaySurfaceClasses, overlayTextClasses, overlayTitleClasses, paginationRange, parseEnvReference, partitionFiles, prepaintScript, rowVariants, scrimClasses, useControlHeight, useCuePortalProps, useDensities, useDensity, useFonts, useFrameClock, useSidebar, useStill, useTheme, useThemes, useToast };
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,8 @@ import { StillProvider, useStill } from "./system/still.js";
|
|
|
7
7
|
import { ParticleMark } from "./brand/particle-mark.js";
|
|
8
8
|
import { Ribbon } from "./brand/ribbon.js";
|
|
9
9
|
import { Motif } from "./brand/motif.js";
|
|
10
|
+
import { ParticleLogo } from "./brand/particle-logo.js";
|
|
11
|
+
import { TextScramble } from "./brand/text-scramble.js";
|
|
10
12
|
import { AGENT_COLOR_PROPERTY, AGENT_HUES, AGENT_ROOT_COLOR, agentColor, agentColorStyle } from "./chat/agent-color.js";
|
|
11
13
|
import { AgentPile } from "./chat/agent-pile.js";
|
|
12
14
|
import { Checkbox, CheckboxGroup } from "./forms/checkbox.js";
|
|
@@ -103,6 +105,7 @@ import { Accordion } from "./layout/accordion.js";
|
|
|
103
105
|
import { Stack } from "./layout/stack.js";
|
|
104
106
|
import { Bento } from "./layout/bento.js";
|
|
105
107
|
import { Breadcrumb } from "./layout/breadcrumb.js";
|
|
108
|
+
import { Reveal } from "./layout/reveal.js";
|
|
106
109
|
import { Card } from "./layout/card.js";
|
|
107
110
|
import { Collapsible, Disclosure } from "./layout/collapsible.js";
|
|
108
111
|
import { DescriptionList } from "./layout/description-list.js";
|
|
@@ -131,6 +134,7 @@ import { Kbd } from "./primitives/kbd.js";
|
|
|
131
134
|
import { Skeleton } from "./primitives/skeleton.js";
|
|
132
135
|
import { useControlHeight, useDensity } from "./system/use-density.js";
|
|
133
136
|
import { useTheme } from "./system/use-theme.js";
|
|
137
|
+
import { useFrameClock } from "./system/frame-clock.js";
|
|
134
138
|
import { FontScope } from "./system/font-scope.js";
|
|
135
139
|
import { DEFAULT_PAINT, DEFAULT_STYLE_SET, PAINTS, STYLE_SETS } from "./system/index.js";
|
|
136
|
-
export { AGENT_COLOR_PROPERTY, AGENT_HUES, AGENT_ROOT_COLOR, Accordion, AgentPile, AlertDialog, AnnouncementBar, AppBar, AppShell, AppWindowFrame, AskBox, AudienceIcon, Autocomplete, Avatar, AvatarGroup, Band, Bento, Breadcrumb, Button, ButtonGroup, Card, CatalogueIcon, ChannelBetaIcon, ChannelReleasedIcon, Checkbox, CheckboxGroup, Chip, CliToolIcon, CodeBlock, Collapsible, Combobox, CommandPalette, Composer, Container, ContextMenu, CopyButton, CueLogotype, CueMark, CuePortalFrame, DEFAULT_PAINT, DEFAULT_STORAGE_KEY, DEFAULT_STYLE_SET, DataRow, DataTree, DelegationCard, Density, DescriptionList, Dialog, Disclosure, Drawer, DropdownMenu, EmptyState, EnvVarInput, Eyebrow, Field, FieldDescription, FieldError, FieldLabel, FileUpload, FolderIcon, FontScope, Footer, Frames, GlossObject, Grid, GroupBar, Halftone, Hero, HoverCard, IconButton, InfoTip, Input, InputGroup, Inspector, Item, Kbd, Keyword, Ledger, Link, LogoStrip, McpServerIcon, Menubar, Message, MessageList, Meter, Motif, MultiSelect, NavigationMenu, NumberField, OTPField, OVERLAY_SIDE_OFFSET, PAINTS, PageShell, Pagination, Panel, PanelHeader, ParticleMark, PasswordInput, Plussie, Popover, Preview, Progress, Radio, RadioGroup, Rating, Ribbon, Row, STYLE_SETS, ScrollArea, ScrollableTabsList, ScrubInput, SeamCell, SeamGrid, SeamList, SearchInput, SectionHeader, SegmentedControl, Select, Separator, Sheet, Sidebar, Skeleton, SkillIcon, Slider, Sparkline, Spinner, Stack, StackIcon, StacksMatrixIcon, Stat, StatBand, StatusBar, StatusDot, Stepper, StillProvider, Switch, TAB_FADE_PX, TREE_GUIDE_GLYPHS, Table, TableScrollRegion, Tabs, TagsInput, TerminalFrame, Textarea, ThemeProvider, Timeline, TitleBar, Toast, Toggle, ToggleGroup, Toolbar, Tooltip, Tree, TreeVisibilityToggle, TwoStepButton, UsageChart, activateRowFromClick, activateRowFromKeyDown, agentColor, agentColorStyle, bareControlClasses, buttonVariants, chipVariants, computeScrollEdges, controlClasses, controlGroupFocusClasses, controlSurface, controlVariants, edgeFadeMask, envReference, flattenTree, isSafeTokenValue, itemVariants, linkVariants, menuItemClasses, menuLabelClasses, menuPopupClasses, menuSeparatorClasses, overlayDescriptionClasses, overlayFooterClasses, overlayModalTransitionClasses, overlayPopupTransitionClasses, overlayPositionerClasses, overlaySurfaceClasses, overlayTextClasses, overlayTitleClasses, paginationRange, parseEnvReference, partitionFiles, prepaintScript, rowVariants, scrimClasses, useControlHeight, useCuePortalProps, useDensities, useDensity, useFonts, useSidebar, useStill, useTheme, useThemes, useToast };
|
|
140
|
+
export { AGENT_COLOR_PROPERTY, AGENT_HUES, AGENT_ROOT_COLOR, Accordion, AgentPile, AlertDialog, AnnouncementBar, AppBar, AppShell, AppWindowFrame, AskBox, AudienceIcon, Autocomplete, Avatar, AvatarGroup, Band, Bento, Breadcrumb, Button, ButtonGroup, Card, CatalogueIcon, ChannelBetaIcon, ChannelReleasedIcon, Checkbox, CheckboxGroup, Chip, CliToolIcon, CodeBlock, Collapsible, Combobox, CommandPalette, Composer, Container, ContextMenu, CopyButton, CueLogotype, CueMark, CuePortalFrame, DEFAULT_PAINT, DEFAULT_STORAGE_KEY, DEFAULT_STYLE_SET, DataRow, DataTree, DelegationCard, Density, DescriptionList, Dialog, Disclosure, Drawer, DropdownMenu, EmptyState, EnvVarInput, Eyebrow, Field, FieldDescription, FieldError, FieldLabel, FileUpload, FolderIcon, FontScope, Footer, Frames, GlossObject, Grid, GroupBar, Halftone, Hero, HoverCard, IconButton, InfoTip, Input, InputGroup, Inspector, Item, Kbd, Keyword, Ledger, Link, LogoStrip, McpServerIcon, Menubar, Message, MessageList, Meter, Motif, MultiSelect, NavigationMenu, NumberField, OTPField, OVERLAY_SIDE_OFFSET, PAINTS, PageShell, Pagination, Panel, PanelHeader, ParticleLogo, ParticleMark, PasswordInput, Plussie, Popover, Preview, Progress, Radio, RadioGroup, Rating, Reveal, Ribbon, Row, STYLE_SETS, ScrollArea, ScrollableTabsList, ScrubInput, SeamCell, SeamGrid, SeamList, SearchInput, SectionHeader, SegmentedControl, Select, Separator, Sheet, Sidebar, Skeleton, SkillIcon, Slider, Sparkline, Spinner, Stack, StackIcon, StacksMatrixIcon, Stat, StatBand, StatusBar, StatusDot, Stepper, StillProvider, Switch, TAB_FADE_PX, TREE_GUIDE_GLYPHS, Table, TableScrollRegion, Tabs, TagsInput, TerminalFrame, TextScramble, Textarea, ThemeProvider, Timeline, TitleBar, Toast, Toggle, ToggleGroup, Toolbar, Tooltip, Tree, TreeVisibilityToggle, TwoStepButton, UsageChart, activateRowFromClick, activateRowFromKeyDown, agentColor, agentColorStyle, bareControlClasses, buttonVariants, chipVariants, computeScrollEdges, controlClasses, controlGroupFocusClasses, controlSurface, controlVariants, edgeFadeMask, envReference, flattenTree, isSafeTokenValue, itemVariants, linkVariants, menuItemClasses, menuLabelClasses, menuPopupClasses, menuSeparatorClasses, overlayDescriptionClasses, overlayFooterClasses, overlayModalTransitionClasses, overlayPopupTransitionClasses, overlayPositionerClasses, overlaySurfaceClasses, overlayTextClasses, overlayTitleClasses, paginationRange, parseEnvReference, partitionFiles, prepaintScript, rowVariants, scrimClasses, useControlHeight, useCuePortalProps, useDensities, useDensity, useFonts, useFrameClock, useSidebar, useStill, useTheme, useThemes, useToast };
|
|
@@ -3,6 +3,7 @@ import { cn } from "../lib/cn.js";
|
|
|
3
3
|
import { IconButton } from "../primitives/icon-button.js";
|
|
4
4
|
import { SearchInput } from "../forms/search-input.js";
|
|
5
5
|
import { ChevronLeftGlyph, ChevronRightGlyph, ChevronsLeftGlyph, ChevronsRightGlyph } from "./_glyphs.js";
|
|
6
|
+
import { CELL_PAD } from "../system/_style-cell.js";
|
|
6
7
|
import * as React from "react";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
import { columnFilteringFeature, createColumnHelper, createFilteredRowModel, createPaginatedRowModel, createSortedRowModel, filterFn_inNumberRange, filterFn_includesString, flexRender, globalFilteringFeature, rowPaginationFeature, rowSortingFeature, sortFn_alphanumeric, sortFn_basic, sortFn_datetime, sortFn_text, tableFeatures, useTable } from "@tanstack/react-table";
|
|
@@ -106,7 +107,7 @@ const DataTableToolbar = React.forwardRef(function DataTableToolbar({ className,
|
|
|
106
107
|
return /* @__PURE__ */ jsxs("div", {
|
|
107
108
|
ref,
|
|
108
109
|
"data-slot": "data-table-toolbar",
|
|
109
|
-
className: cn(
|
|
110
|
+
className: cn(`flex min-w-0 items-center gap-(--cue-space-3) py-(--cue-space-3) ${CELL_PAD}`, className),
|
|
110
111
|
...elementProps,
|
|
111
112
|
children: [
|
|
112
113
|
/* @__PURE__ */ jsx(SearchInput, {
|
|
@@ -158,7 +159,7 @@ const DataTablePagination = React.forwardRef(function DataTablePagination({ clas
|
|
|
158
159
|
return /* @__PURE__ */ jsxs("div", {
|
|
159
160
|
ref,
|
|
160
161
|
"data-slot": "data-table-pagination",
|
|
161
|
-
className: cn(
|
|
162
|
+
className: cn(`flex min-w-0 items-center gap-(--cue-space-3) py-(--cue-space-3) ${CELL_PAD} font-mono text-(length:--cue-text-label) text-fg-subtle`, className),
|
|
162
163
|
...elementProps,
|
|
163
164
|
children: [/* @__PURE__ */ jsx("span", {
|
|
164
165
|
"data-slot": "data-table-rows",
|
|
@@ -247,7 +247,7 @@ const Table = {
|
|
|
247
247
|
return /* @__PURE__ */ jsx("caption", {
|
|
248
248
|
ref,
|
|
249
249
|
"data-slot": "table-caption",
|
|
250
|
-
className: cn(`caption-bottom pt-(--cue-space-3) text-left ${BODY_SIZE_LABEL} ${HELP_INK}`, LABEL_FACE, className),
|
|
250
|
+
className: cn(`caption-bottom pt-(--cue-space-3) ${CELL_PAD} text-left ${BODY_SIZE_LABEL} ${HELP_INK}`, LABEL_FACE, className),
|
|
251
251
|
...elementProps
|
|
252
252
|
});
|
|
253
253
|
})
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Accordion, AccordionHeaderProps, AccordionItemProps, AccordionPanelProp
|
|
|
5
5
|
import { SpaceStep, Stack, StackAlign, StackJustify, StackProps } from "./stack.js";
|
|
6
6
|
import { Bento, BentoColumns, BentoMinHeight, BentoRootProps, BentoRowSpan, BentoRows, BentoSpan, BentoTileProps } from "./bento.js";
|
|
7
7
|
import { Breadcrumb, BreadcrumbItem, BreadcrumbProps } from "./breadcrumb.js";
|
|
8
|
+
import { Reveal, RevealProps } from "./reveal.js";
|
|
8
9
|
import { Card, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardRootProps, CardTitleProps } from "./card.js";
|
|
9
10
|
import { Collapsible, CollapsiblePanelProps, CollapsibleRootProps, CollapsibleTriggerProps, Disclosure, DisclosureProps } from "./collapsible.js";
|
|
10
11
|
import { DescriptionList, DescriptionListDetailProps, DescriptionListLayout, DescriptionListRootProps, DescriptionListTermProps } from "./description-list.js";
|
|
@@ -16,4 +17,4 @@ import { Pagination, PaginationEntry, PaginationProps, paginationRange } from ".
|
|
|
16
17
|
import { Preview, PreviewAxis, PreviewPresentation, PreviewProps, PreviewResizeOptions } from "./preview.js";
|
|
17
18
|
import { Stepper, StepperProps, StepperState, StepperStep } from "./stepper.js";
|
|
18
19
|
import { Timeline, TimelineContentProps, TimelineItemProps, TimelineMarkerProps, TimelineRootProps } from "./timeline.js";
|
|
19
|
-
export { Accordion, type AccordionHeaderProps, type AccordionItemProps, type AccordionPanelProps, type AccordionRootProps, type AccordionTriggerProps, Bento, type BentoColumns, type BentoMinHeight, type BentoRootProps, type BentoRowSpan, type BentoRows, type BentoSpan, type BentoTileProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Card, type CardContentProps, type CardDescriptionProps, type CardFooterProps, type CardHeaderProps, type CardRootProps, type CardTitleProps, Collapsible, type CollapsiblePanelProps, type CollapsibleRootProps, type CollapsibleTriggerProps, Container, type ContainerProps, type ContainerWidth, DescriptionList, type DescriptionListDetailProps, type DescriptionListLayout, type DescriptionListRootProps, type DescriptionListTermProps, Disclosure, type DisclosureProps, Frames, type FramesHeight, type FramesItemProps, type FramesLayout, type FramesRootProps, Grid, type GridColumns, type GridProps, Item, type ItemProps, Link, type LinkProps, Pagination, type PaginationEntry, type PaginationProps, Preview, type PreviewAxis, type PreviewGround, type PreviewPresentation, type PreviewProps, type PreviewResizeOptions, Sidebar, type SidebarItemProps, type SidebarRailProps, type SidebarRootProps, type SidebarSectionProps, type SpaceStep, Stack, type StackAlign, type StackJustify, type StackProps, Stepper, type StepperProps, type StepperState, type StepperStep, Timeline, type TimelineContentProps, type TimelineItemProps, type TimelineMarkerProps, type TimelineRootProps, itemVariants, linkVariants, paginationRange, useSidebar };
|
|
20
|
+
export { Accordion, type AccordionHeaderProps, type AccordionItemProps, type AccordionPanelProps, type AccordionRootProps, type AccordionTriggerProps, Bento, type BentoColumns, type BentoMinHeight, type BentoRootProps, type BentoRowSpan, type BentoRows, type BentoSpan, type BentoTileProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Card, type CardContentProps, type CardDescriptionProps, type CardFooterProps, type CardHeaderProps, type CardRootProps, type CardTitleProps, Collapsible, type CollapsiblePanelProps, type CollapsibleRootProps, type CollapsibleTriggerProps, Container, type ContainerProps, type ContainerWidth, DescriptionList, type DescriptionListDetailProps, type DescriptionListLayout, type DescriptionListRootProps, type DescriptionListTermProps, Disclosure, type DisclosureProps, Frames, type FramesHeight, type FramesItemProps, type FramesLayout, type FramesRootProps, Grid, type GridColumns, type GridProps, Item, type ItemProps, Link, type LinkProps, Pagination, type PaginationEntry, type PaginationProps, Preview, type PreviewAxis, type PreviewGround, type PreviewPresentation, type PreviewProps, type PreviewResizeOptions, Reveal, type RevealProps, Sidebar, type SidebarItemProps, type SidebarRailProps, type SidebarRootProps, type SidebarSectionProps, type SpaceStep, Stack, type StackAlign, type StackJustify, type StackProps, Stepper, type StepperProps, type StepperState, type StepperStep, Timeline, type TimelineContentProps, type TimelineItemProps, type TimelineMarkerProps, type TimelineRootProps, itemVariants, linkVariants, paginationRange, useSidebar };
|
package/dist/layout/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { Accordion } from "./accordion.js";
|
|
|
5
5
|
import { Stack } from "./stack.js";
|
|
6
6
|
import { Bento } from "./bento.js";
|
|
7
7
|
import { Breadcrumb } from "./breadcrumb.js";
|
|
8
|
+
import { Reveal } from "./reveal.js";
|
|
8
9
|
import { Card } from "./card.js";
|
|
9
10
|
import { Collapsible, Disclosure } from "./collapsible.js";
|
|
10
11
|
import { DescriptionList } from "./description-list.js";
|
|
@@ -15,4 +16,4 @@ import { Pagination, paginationRange } from "./pagination.js";
|
|
|
15
16
|
import { Preview } from "./preview.js";
|
|
16
17
|
import { Stepper } from "./stepper.js";
|
|
17
18
|
import { Timeline } from "./timeline.js";
|
|
18
|
-
export { Accordion, Bento, Breadcrumb, Card, Collapsible, Container, DescriptionList, Disclosure, Frames, Grid, Item, Link, Pagination, Preview, Sidebar, Stack, Stepper, Timeline, itemVariants, linkVariants, paginationRange, useSidebar };
|
|
19
|
+
export { Accordion, Bento, Breadcrumb, Card, Collapsible, Container, DescriptionList, Disclosure, Frames, Grid, Item, Link, Pagination, Preview, Reveal, Sidebar, Stack, Stepper, Timeline, itemVariants, linkVariants, paginationRange, useSidebar };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
//#region src/layout/reveal.d.ts
|
|
3
|
+
interface RevealProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
4
|
+
/** How far below its resting place the content starts, in px. Defaults to `28`, the site's services blocks. */
|
|
5
|
+
distance?: number;
|
|
6
|
+
/**
|
|
7
|
+
* How far inside the viewport the entry line sits, as an `IntersectionObserver`
|
|
8
|
+
* root margin. Defaults to `"-12% 0px"`, the site's services blocks; its
|
|
9
|
+
* beliefs use `"-15% 0px"`.
|
|
10
|
+
*/
|
|
11
|
+
rootMargin?: string;
|
|
12
|
+
/** How long the entrance takes, in ms. Defaults to `500`. */
|
|
13
|
+
duration?: number;
|
|
14
|
+
/**
|
|
15
|
+
* The delay between items, in ms. `0` (the default) moves the whole block as
|
|
16
|
+
* one. Anything else leaves the block still and moves only the descendants
|
|
17
|
+
* marked `data-reveal-item`, this many ms apart, in document order — the
|
|
18
|
+
* site's beliefs stagger their two columns 80ms apart, and nothing inside
|
|
19
|
+
* them.
|
|
20
|
+
*/
|
|
21
|
+
stagger?: number;
|
|
22
|
+
/** What rises into place: the block itself, or the items in it marked `data-reveal-item`. */
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Content that rises into place the first time it scrolls into view —
|
|
27
|
+
* cueplusplus.com's section entrance, ported (spec 2026-10-04-cue-site-verbatim
|
|
28
|
+
* §4.3): framer-motion's `whileInView` with `viewport: { once: true }`, from
|
|
29
|
+
* `opacity: 0` and `distance` px down, over `duration` ms `easeOut`.
|
|
30
|
+
*
|
|
31
|
+
* No motion library: an `IntersectionObserver` and two inline styles. It
|
|
32
|
+
* watches once and lets go. Held still, or for a reader who prefers reduced
|
|
33
|
+
* motion, the content is simply there and nothing is observed — as the site's
|
|
34
|
+
* `initial={reduce ? false : …}` does.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* <Reveal distance={22} rootMargin="-15% 0px" stagger={80}>
|
|
38
|
+
* <div data-reveal-item>Stance</div>
|
|
39
|
+
* <div data-reveal-item>Reason</div>
|
|
40
|
+
* </Reveal>
|
|
41
|
+
*/
|
|
42
|
+
declare const Reveal: React.ForwardRefExoticComponent<RevealProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { Reveal, RevealProps };
|