@vvedantb/ui 0.63.0 → 0.63.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/app/src/settings/SettingsPage.tsx +1 -1
- package/app/src/settings/SettingsSection.tsx +1 -1
- package/app/src/settings/ThemeModePicker.tsx +10 -2
- package/dist/app/src/settings/SettingsPage.js +1 -1
- package/dist/app/src/settings/SettingsSection.js +1 -1
- package/dist/app/src/settings/ThemeModePicker.js +11 -5
- package/dist/shell/src/PageHeaderBar.js +391 -175
- package/dist/shell/src/PageWrapper.js +159 -103
- package/dist/shell/src/SidebarChrome.js +1 -1
- package/dist/shell/src/SidebarPanel.js +1 -1
- package/dist/shell/src/SidebarResize.js +2 -2
- package/dist/shell/src/SidebarUpgradeCard.js +1 -1
- package/dist/shell/src/app-shell-classes.js +1 -1
- package/dist/src/ai-elements/activity-question.js +2 -2
- package/dist/src/ai-elements/message.js +2 -2
- package/dist/src/ai-elements/model-picker-content.js +1 -1
- package/dist/src/ai-elements/model-picker.js +1 -1
- package/dist/src/ai-elements/prompt-input.js +1 -1
- package/dist/src/generative-ui/content.js +3 -3
- package/dist/src/generative-ui/layout.js +1 -1
- package/dist/src/kibo/kanban.js +1 -1
- package/dist/src/kibo/list.js +1 -1
- package/dist/src/kibo/video-player.js +0 -1
- package/dist/src/marketing/ProductHeroOrbit.js +26 -32
- package/dist/src/marketing/createLandingKit.js +1 -1
- package/dist/src/marketing/landing.js +1 -1
- package/dist/src/ui/_menu-classes.alt.js +1 -1
- package/dist/src/ui/_menu-classes.js +1 -1
- package/dist/src/ui/bulk-action-bar.js +1 -1
- package/dist/src/ui/calendar.js +1 -1
- package/dist/src/ui/card.js +1 -1
- package/dist/src/ui/clear-input.js +33 -46
- package/dist/src/ui/clearInputDissolve.js +2 -57
- package/dist/src/ui/command.js +3 -3
- package/dist/src/ui/count-pop.js +1 -1
- package/dist/src/ui/dialog.js +1 -1
- package/dist/src/ui/media-preview.js +1 -1
- package/dist/src/ui/progress.js +1 -1
- package/dist/src/ui/radix-select.js +1 -1
- package/dist/src/ui/select.js +1 -1
- package/dist/src/ui/table.js +1 -1
- package/dist/tokens/src/css/clear-input.css +4 -19
- package/package.json +1 -1
- package/shell/src/PageHeaderBar.tsx +162 -21
- package/shell/src/PageWrapper.tsx +116 -33
- package/shell/src/SidebarChrome.tsx +1 -1
- package/shell/src/SidebarPanel.tsx +1 -1
- package/shell/src/SidebarResize.tsx +2 -2
- package/shell/src/SidebarUpgradeCard.tsx +1 -1
- package/shell/src/app-shell-classes.ts +1 -1
- package/src/ai-elements/activity-question.tsx +2 -2
- package/src/ai-elements/message.tsx +3 -3
- package/src/ai-elements/model-picker-content.tsx +1 -1
- package/src/ai-elements/model-picker.tsx +1 -1
- package/src/ai-elements/prompt-input.tsx +1 -1
- package/src/generative-ui/content.tsx +3 -3
- package/src/generative-ui/layout.tsx +1 -1
- package/src/kibo/kanban.tsx +1 -1
- package/src/kibo/list.tsx +1 -1
- package/src/kibo/video-player.tsx +0 -2
- package/src/marketing/ProductHeroOrbit.tsx +3 -4
- package/src/marketing/createLandingKit.tsx +1 -1
- package/src/marketing/landing.tsx +1 -1
- package/src/ui/_menu-classes.alt.ts +1 -1
- package/src/ui/_menu-classes.ts +1 -1
- package/src/ui/bulk-action-bar.tsx +1 -1
- package/src/ui/calendar.tsx +1 -1
- package/src/ui/card.tsx +1 -1
- package/src/ui/clear-input.tsx +1 -5
- package/src/ui/clearInputDissolve.ts +2 -85
- package/src/ui/command.tsx +3 -3
- package/src/ui/count-pop.tsx +1 -1
- package/src/ui/dialog.tsx +1 -1
- package/src/ui/media-preview.tsx +1 -1
- package/src/ui/progress.tsx +1 -1
- package/src/ui/radix-select.tsx +1 -1
- package/src/ui/select.tsx +1 -1
- package/src/ui/table.tsx +1 -1
- package/tokens/examples/tokens-moved/Fixture.tsx +1 -1
- package/tokens/src/css/clear-input.css +4 -19
package/dist/src/ui/calendar.js
CHANGED
|
@@ -159,7 +159,7 @@ function Calendar({
|
|
|
159
159
|
// selected tone never depends on the order Tailwind emits rules in.
|
|
160
160
|
// the today dot is `bg-current`: foreground, or primary-foreground
|
|
161
161
|
// when selected
|
|
162
|
-
"not-group-data-selected/day:enabled:hover:bg-surface-tertiary/50", "group-data-today/day:font-
|
|
162
|
+
"not-group-data-selected/day:enabled:hover:bg-surface-tertiary/50", "group-data-today/day:font-medium group-data-today/day:not-group-data-selected/day:text-foreground group-data-today/day:after:absolute group-data-today/day:after:bottom-1 group-data-today/day:after:left-1/2 group-data-today/day:after:size-1 group-data-today/day:after:-translate-x-1/2 group-data-today/day:after:rounded-full group-data-today/day:after:bg-current", "group-data-outside/day:not-group-data-selected/day:text-muted-foreground",
|
|
163
163
|
// spelled out (not built from pickerSelectedClass) so Tailwind's
|
|
164
164
|
// scanner sees it
|
|
165
165
|
"group-data-selected/day:bg-primary group-data-selected/day:text-primary-foreground", defaultClassNames.day_button),
|
package/dist/src/ui/card.js
CHANGED
|
@@ -103,7 +103,7 @@ const CardTitle = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
103
103
|
className = $[1];
|
|
104
104
|
props = $[2];
|
|
105
105
|
}
|
|
106
|
-
const t1 = useCardClass("title", "font-
|
|
106
|
+
const t1 = useCardClass("title", "font-medium leading-none tracking-[-0.02em]", className);
|
|
107
107
|
let t2;
|
|
108
108
|
if ($[3] !== props || $[4] !== ref || $[5] !== t1) {
|
|
109
109
|
t2 = /*#__PURE__*/_jsx("div", {
|
|
@@ -274,7 +274,7 @@ const PlainClearInput = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
274
274
|
return t13;
|
|
275
275
|
});
|
|
276
276
|
const DissolveClearInput = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
277
|
-
const $ = _c(
|
|
277
|
+
const $ = _c(72);
|
|
278
278
|
let className;
|
|
279
279
|
let classes;
|
|
280
280
|
let leading;
|
|
@@ -324,7 +324,6 @@ const DissolveClearInput = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
324
324
|
const inputRef = React.useRef(null);
|
|
325
325
|
const mirrorRef = React.useRef(null);
|
|
326
326
|
const placeholderRef = React.useRef(null);
|
|
327
|
-
const glowRef = React.useRef(null);
|
|
328
327
|
const clearingRef = React.useRef(false);
|
|
329
328
|
const [clearing, setClearing] = React.useState(false);
|
|
330
329
|
let t3;
|
|
@@ -386,8 +385,7 @@ const DissolveClearInput = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
386
385
|
const input = inputRef.current;
|
|
387
386
|
const mirror_0 = mirrorRef.current;
|
|
388
387
|
const placeholderLayer = placeholderRef.current;
|
|
389
|
-
|
|
390
|
-
if (!wrap_0 || !input || !mirror_0 || !placeholderLayer || !glow || clearingRef.current || value.length === 0) {
|
|
388
|
+
if (!wrap_0 || !input || !mirror_0 || !placeholderLayer || clearingRef.current || value.length === 0) {
|
|
391
389
|
return;
|
|
392
390
|
}
|
|
393
391
|
clearingRef.current = true;
|
|
@@ -396,8 +394,7 @@ const DissolveClearInput = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
396
394
|
wrap: wrap_0,
|
|
397
395
|
input,
|
|
398
396
|
mirror: mirror_0,
|
|
399
|
-
placeholderLayer
|
|
400
|
-
glow
|
|
397
|
+
placeholderLayer
|
|
401
398
|
}, () => {
|
|
402
399
|
onChange("");
|
|
403
400
|
}, () => {
|
|
@@ -516,33 +513,23 @@ const DissolveClearInput = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
516
513
|
t18 = $[53];
|
|
517
514
|
}
|
|
518
515
|
let t19;
|
|
519
|
-
if ($[54]
|
|
520
|
-
t19 = /*#__PURE__*/
|
|
521
|
-
ref: glowRef,
|
|
522
|
-
className: "t-clear-glow"
|
|
523
|
-
});
|
|
524
|
-
$[54] = t19;
|
|
525
|
-
} else {
|
|
526
|
-
t19 = $[54];
|
|
527
|
-
}
|
|
528
|
-
let t20;
|
|
529
|
-
if ($[55] !== t11 || $[56] !== t12 || $[57] !== t13 || $[58] !== t18) {
|
|
530
|
-
t20 = /*#__PURE__*/_jsxs("div", {
|
|
516
|
+
if ($[54] !== t11 || $[55] !== t12 || $[56] !== t13 || $[57] !== t18) {
|
|
517
|
+
t19 = /*#__PURE__*/_jsxs("div", {
|
|
531
518
|
className: t11,
|
|
532
519
|
"aria-hidden": t12,
|
|
533
|
-
children: [t13, t18
|
|
520
|
+
children: [t13, t18]
|
|
534
521
|
});
|
|
535
|
-
$[
|
|
536
|
-
$[
|
|
537
|
-
$[
|
|
538
|
-
$[
|
|
539
|
-
$[
|
|
522
|
+
$[54] = t11;
|
|
523
|
+
$[55] = t12;
|
|
524
|
+
$[56] = t13;
|
|
525
|
+
$[57] = t18;
|
|
526
|
+
$[58] = t19;
|
|
540
527
|
} else {
|
|
541
|
-
|
|
528
|
+
t19 = $[58];
|
|
542
529
|
}
|
|
543
|
-
let
|
|
544
|
-
if ($[
|
|
545
|
-
|
|
530
|
+
let t20;
|
|
531
|
+
if ($[59] !== classes || $[60] !== clearLabel || $[61] !== clearing || $[62] !== handleClear || $[63] !== value.length) {
|
|
532
|
+
t20 = value.length > 0 && !clearing ? /*#__PURE__*/_jsx("button", {
|
|
546
533
|
type: "button",
|
|
547
534
|
className: classes?.button ? `t-clear-btn ${classes.button}` : `t-clear-btn ${buttonClasses}`,
|
|
548
535
|
"aria-label": clearLabel,
|
|
@@ -554,32 +541,32 @@ const DissolveClearInput = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
554
541
|
stroke: 1.75
|
|
555
542
|
})
|
|
556
543
|
}) : null;
|
|
557
|
-
$[
|
|
558
|
-
$[
|
|
559
|
-
$[
|
|
560
|
-
$[
|
|
561
|
-
$[
|
|
562
|
-
$[
|
|
544
|
+
$[59] = classes;
|
|
545
|
+
$[60] = clearLabel;
|
|
546
|
+
$[61] = clearing;
|
|
547
|
+
$[62] = handleClear;
|
|
548
|
+
$[63] = value.length;
|
|
549
|
+
$[64] = t20;
|
|
563
550
|
} else {
|
|
564
|
-
|
|
551
|
+
t20 = $[64];
|
|
565
552
|
}
|
|
566
|
-
let
|
|
567
|
-
if ($[
|
|
568
|
-
|
|
553
|
+
let t21;
|
|
554
|
+
if ($[65] !== t14 || $[66] !== t15 || $[67] !== t16 || $[68] !== t17 || $[69] !== t19 || $[70] !== t20) {
|
|
555
|
+
t21 = /*#__PURE__*/_jsxs("div", {
|
|
569
556
|
ref: t14,
|
|
570
557
|
className: t15,
|
|
571
|
-
children: [t16, t17,
|
|
558
|
+
children: [t16, t17, t19, t20]
|
|
572
559
|
});
|
|
573
|
-
$[
|
|
574
|
-
$[
|
|
575
|
-
$[
|
|
576
|
-
$[
|
|
560
|
+
$[65] = t14;
|
|
561
|
+
$[66] = t15;
|
|
562
|
+
$[67] = t16;
|
|
563
|
+
$[68] = t17;
|
|
564
|
+
$[69] = t19;
|
|
577
565
|
$[70] = t20;
|
|
578
566
|
$[71] = t21;
|
|
579
|
-
$[72] = t22;
|
|
580
567
|
} else {
|
|
581
|
-
|
|
568
|
+
t21 = $[71];
|
|
582
569
|
}
|
|
583
|
-
return
|
|
570
|
+
return t21;
|
|
584
571
|
});
|
|
585
572
|
export { ClearInput };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/** transitions.dev input clear with dissolve — see 13-input-clear-dissolve.md */
|
|
2
2
|
|
|
3
|
-
import { readDocumentAppearance } from "../hooks/use-document-appearance.js";
|
|
4
|
-
|
|
5
3
|
// Times come back in ms. CSS minifiers rewrite `1000ms` as `1s`, so a value
|
|
6
4
|
// in seconds is converted rather than read as 1.
|
|
7
5
|
export function readCssNumber(root, name, fallback) {
|
|
@@ -47,45 +45,6 @@ export function readCssEase(root, name) {
|
|
|
47
45
|
return ((ay * sample + by) * sample + cy) * sample;
|
|
48
46
|
};
|
|
49
47
|
}
|
|
50
|
-
function measureCanvas() {
|
|
51
|
-
const canvas = document.createElement("canvas");
|
|
52
|
-
return canvas.getContext("2d");
|
|
53
|
-
}
|
|
54
|
-
let sharedMeasureCanvas = null;
|
|
55
|
-
function getMeasureCanvas() {
|
|
56
|
-
if (sharedMeasureCanvas === null) {
|
|
57
|
-
sharedMeasureCanvas = measureCanvas();
|
|
58
|
-
}
|
|
59
|
-
return sharedMeasureCanvas;
|
|
60
|
-
}
|
|
61
|
-
function buildGlowBackground(wrap, input, text, root) {
|
|
62
|
-
const canvas = getMeasureCanvas();
|
|
63
|
-
if (canvas === null) {
|
|
64
|
-
return "";
|
|
65
|
-
}
|
|
66
|
-
canvas.font = getComputedStyle(input).font;
|
|
67
|
-
const dark = readDocumentAppearance() === "dark";
|
|
68
|
-
const rgb = dark ? "255,255,255" : "0,0,0";
|
|
69
|
-
const width = wrap.clientWidth || 280;
|
|
70
|
-
const padLeft = parseFloat(getComputedStyle(input).paddingLeft) || 12;
|
|
71
|
-
const spread = readCssNumber(root, "--glow-spread", 1.5);
|
|
72
|
-
const layers = [];
|
|
73
|
-
let x = 0;
|
|
74
|
-
for (const segment of text.split(/(\s+)/)) {
|
|
75
|
-
const segmentWidth = canvas.measureText(segment).width;
|
|
76
|
-
if (segment.trim()) {
|
|
77
|
-
const centerX = padLeft + x + segmentWidth / 2;
|
|
78
|
-
const halfWidth = Math.max(segmentWidth * 0.45, 8) * spread;
|
|
79
|
-
const streaks = [[0, 0.8, 7, 0.22], [halfWidth * 0.45, 0.55, 8, 0.18], [-halfWidth * 0.4, 0.65, 6, 0.16], [halfWidth * 0.15, 0.9, 5, 0.14]];
|
|
80
|
-
for (const [dx, rwm, rh, alpha] of streaks) {
|
|
81
|
-
const leftPercent = ((centerX + dx) / width * 100).toFixed(2);
|
|
82
|
-
layers.push(`radial-gradient(ellipse ${Math.max(halfWidth * rwm, 2).toFixed(1)}px ${rh}px at ${leftPercent}% 100%, rgba(${rgb},${alpha}), transparent)`);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
x += segmentWidth;
|
|
86
|
-
}
|
|
87
|
-
return layers.join(", ");
|
|
88
|
-
}
|
|
89
48
|
function resetLayerStyles(mirror, placeholderLayer) {
|
|
90
49
|
mirror.style.cssText = "";
|
|
91
50
|
placeholderLayer.style.cssText = "";
|
|
@@ -95,8 +54,7 @@ export function runClearInputDissolve(elements, onValueClear, onDone) {
|
|
|
95
54
|
wrap,
|
|
96
55
|
input,
|
|
97
56
|
mirror,
|
|
98
|
-
placeholderLayer
|
|
99
|
-
glow
|
|
57
|
+
placeholderLayer
|
|
100
58
|
} = elements;
|
|
101
59
|
const root = document.documentElement;
|
|
102
60
|
const text = input.value;
|
|
@@ -105,21 +63,16 @@ export function runClearInputDissolve(elements, onValueClear, onDone) {
|
|
|
105
63
|
}
|
|
106
64
|
const keepFocus = document.activeElement === input;
|
|
107
65
|
mirror.textContent = text.replace(/ /g, "\u00a0");
|
|
108
|
-
const total = readCssNumber(root, "--clear-dur",
|
|
66
|
+
const total = readCssNumber(root, "--clear-dur", 400);
|
|
109
67
|
const outDur = readCssNumber(root, "--clear-out-dur", 400);
|
|
110
68
|
const inDur = readCssNumber(root, "--clear-in-dur", 400);
|
|
111
69
|
const outFly = readCssNumber(root, "--clear-out-fly", 12);
|
|
112
70
|
const inFly = readCssNumber(root, "--clear-in-fly", 12);
|
|
113
|
-
const delay = readCssNumber(root, "--glow-delay", 50);
|
|
114
|
-
const peakAt = readCssNumber(root, "--glow-peak-at", 0.15);
|
|
115
|
-
const glowOpacity = readCssNumber(root, "--glow-opacity", 0.85);
|
|
116
71
|
const easeOut = readCssEase(root, "--clear-out-ease");
|
|
117
72
|
const easeIn = readCssEase(root, "--clear-in-ease");
|
|
118
73
|
onValueClear();
|
|
119
74
|
wrap.classList.remove("has-value");
|
|
120
75
|
wrap.classList.add("is-clearing");
|
|
121
|
-
glow.style.background = buildGlowBackground(wrap, input, mirror.textContent, root);
|
|
122
|
-
glow.style.opacity = "0";
|
|
123
76
|
placeholderLayer.style.transform = `translateY(-${inFly}px)`;
|
|
124
77
|
placeholderLayer.style.opacity = "0.9";
|
|
125
78
|
placeholderLayer.style.filter = "none";
|
|
@@ -133,12 +86,6 @@ export function runClearInputDissolve(elements, onValueClear, onDone) {
|
|
|
133
86
|
const inProgress = easeIn(Math.min(1, elapsed / inDur));
|
|
134
87
|
placeholderLayer.style.transform = `translateY(${(-inFly + inProgress * inFly).toFixed(1)}px)`;
|
|
135
88
|
placeholderLayer.style.opacity = (0.9 + inProgress * 0.1).toFixed(3);
|
|
136
|
-
let glowStrength = 0;
|
|
137
|
-
if (elapsed > delay) {
|
|
138
|
-
const glowProgress = Math.min(1, (elapsed - delay) / Math.max(1, total - delay));
|
|
139
|
-
glowStrength = glowProgress < peakAt ? glowProgress / peakAt : 1 - (glowProgress - peakAt) / (1 - peakAt);
|
|
140
|
-
}
|
|
141
|
-
glow.style.opacity = (glowStrength * glowOpacity).toFixed(3);
|
|
142
89
|
if (elapsed < total) {
|
|
143
90
|
requestAnimationFrame(tick);
|
|
144
91
|
return;
|
|
@@ -146,8 +93,6 @@ export function runClearInputDissolve(elements, onValueClear, onDone) {
|
|
|
146
93
|
wrap.classList.remove("is-clearing");
|
|
147
94
|
resetLayerStyles(mirror, placeholderLayer);
|
|
148
95
|
mirror.textContent = "";
|
|
149
|
-
glow.style.opacity = "0";
|
|
150
|
-
glow.style.background = "";
|
|
151
96
|
onDone();
|
|
152
97
|
if (keepFocus) {
|
|
153
98
|
requestAnimationFrame(() => {
|
package/dist/src/ui/command.js
CHANGED
|
@@ -56,7 +56,7 @@ Command.displayName = CommandPrimitive.displayName;
|
|
|
56
56
|
|
|
57
57
|
// The list is pinned rather than `max-h`: a palette that resizes on every
|
|
58
58
|
// keystroke shifts the whole dialog under the cursor.
|
|
59
|
-
const commandDialogPinnedClass = "[&_[cmdk-list]]:h-80 [&_[cmdk-list]]:max-h-[60dvh] [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-
|
|
59
|
+
const commandDialogPinnedClass = "[&_[cmdk-list]]:h-80 [&_[cmdk-list]]:max-h-[60dvh] [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-widest [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-1.5 [&_[cmdk-input-wrapper]_svg]:h-4 [&_[cmdk-input-wrapper]_svg]:w-4 [&_[cmdk-input]]:h-11 [&_[cmdk-item]]:rounded-menu-item [&_[cmdk-item]]:px-2.5 [&_[cmdk-item]]:py-2 [&_[cmdk-item]_svg]:h-4 [&_[cmdk-item]_svg]:w-4";
|
|
60
60
|
|
|
61
61
|
// Keyboard surface: the palette opens and closes in the same frame. Override
|
|
62
62
|
// the `t-modal` timing variables on the content element (do not fork the CSS).
|
|
@@ -71,7 +71,7 @@ const commandDialogInstantClass = "[--modal-open-dur:0ms] [--modal-close-dur:1ms
|
|
|
71
71
|
const commandOverlayInstantClass = "[animation:none!important]";
|
|
72
72
|
|
|
73
73
|
// The list sizes itself and items keep the caller's styling.
|
|
74
|
-
const commandDialogAutoClass = "[&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-
|
|
74
|
+
const commandDialogAutoClass = "[&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-widest [&_[cmdk-group-heading]]:text-muted [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-1.5 [&_[cmdk-input-wrapper]_svg]:h-4 [&_[cmdk-input-wrapper]_svg]:w-4 [&_[cmdk-input]]:h-11 [&_[cmdk-item]_svg]:h-4 [&_[cmdk-item]_svg]:w-4"; // check-tokens-allow: text-muted
|
|
75
75
|
|
|
76
76
|
function CommandDialog(t0) {
|
|
77
77
|
const $ = _c(26);
|
|
@@ -365,7 +365,7 @@ const CommandGroup = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
365
365
|
}
|
|
366
366
|
const group = useUiConfig("Command")?.classes?.group;
|
|
367
367
|
const merge = useCn();
|
|
368
|
-
const t1 = group ?? "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-
|
|
368
|
+
const t1 = group ?? "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-widest [&_[cmdk-group-heading]]:text-muted-foreground";
|
|
369
369
|
let t2;
|
|
370
370
|
if ($[3] !== className || $[4] !== merge || $[5] !== t1) {
|
|
371
371
|
t2 = merge(t1, className);
|
package/dist/src/ui/count-pop.js
CHANGED
|
@@ -124,7 +124,7 @@ export function UnreadDot(t0) {
|
|
|
124
124
|
* Shape and placement of a count badge hung off a tile's bottom-right corner.
|
|
125
125
|
* Put the tile in a `relative` box; add one tone class (e.g. a live colour).
|
|
126
126
|
*/
|
|
127
|
-
export const CORNER_BADGE_CLASS = "absolute -bottom-0.5 -right-0.5 flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-[10px] font-
|
|
127
|
+
export const CORNER_BADGE_CLASS = "absolute -bottom-0.5 -right-0.5 flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-[10px] font-medium leading-none";
|
|
128
128
|
|
|
129
129
|
/** An unread count on a tile's corner: `CountPop` in the primary tone, "99+" above 99. */
|
|
130
130
|
export function UnreadCornerBadge(t0) {
|
package/dist/src/ui/dialog.js
CHANGED
|
@@ -591,7 +591,7 @@ const DialogTitle = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
591
591
|
}
|
|
592
592
|
const title = useUiConfig("Dialog")?.classes?.title;
|
|
593
593
|
const merge = useCn();
|
|
594
|
-
const t1 = title ?? "text-lg font-
|
|
594
|
+
const t1 = title ?? "text-lg font-medium tracking-normal text-foreground text-balance";
|
|
595
595
|
let t2;
|
|
596
596
|
if ($[3] !== className || $[4] !== merge || $[5] !== t1) {
|
|
597
597
|
t2 = merge(t1, className);
|
|
@@ -51,7 +51,7 @@ export function ImageGalleryPreview(t0) {
|
|
|
51
51
|
loading: "lazy",
|
|
52
52
|
className: cn("h-full w-full object-cover transition-opacity hover:opacity-90", count === 3 && index === 0 ? "min-h-full" : "aspect-4/3")
|
|
53
53
|
}), overflow > 0 && index === tiles.length - 1 ? /*#__PURE__*/_jsxs("span", {
|
|
54
|
-
className: "absolute inset-0 flex items-center justify-center bg-black/60 text-xl font-
|
|
54
|
+
className: "absolute inset-0 flex items-center justify-center bg-black/60 text-xl font-medium text-white",
|
|
55
55
|
children: ["+", overflow]
|
|
56
56
|
}) : null]
|
|
57
57
|
}, index))
|
package/dist/src/ui/progress.js
CHANGED
|
@@ -36,7 +36,7 @@ const Progress = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
36
36
|
} else {
|
|
37
37
|
t2 = $[7];
|
|
38
38
|
}
|
|
39
|
-
const t3 = classes?.indicator ?? "h-full w-full flex-1 rounded-full bg-primary transition-transform duration-
|
|
39
|
+
const t3 = classes?.indicator ?? "h-full w-full flex-1 rounded-full bg-primary transition-transform duration-200 ease-smooth";
|
|
40
40
|
const t4 = `translateX(-${100 - (value ?? 0)}%)`;
|
|
41
41
|
let t5;
|
|
42
42
|
if ($[8] !== t4) {
|
|
@@ -261,7 +261,7 @@ function SelectLabel(t0) {
|
|
|
261
261
|
}
|
|
262
262
|
let t1;
|
|
263
263
|
if ($[3] !== className) {
|
|
264
|
-
t1 = cn("text-muted-foreground px-2.5 py-1.5 text-xs font-
|
|
264
|
+
t1 = cn("text-muted-foreground px-2.5 py-1.5 text-xs font-medium uppercase tracking-widest", className);
|
|
265
265
|
$[3] = className;
|
|
266
266
|
$[4] = t1;
|
|
267
267
|
} else {
|
package/dist/src/ui/select.js
CHANGED
|
@@ -345,7 +345,7 @@ const SelectLabel = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
345
345
|
}
|
|
346
346
|
const label = useUiConfig("Select")?.classes?.label;
|
|
347
347
|
const merge = useCn();
|
|
348
|
-
const t1 = label ?? "px-2.5 py-1.5 text-xs font-
|
|
348
|
+
const t1 = label ?? "px-2.5 py-1.5 text-xs font-medium uppercase tracking-widest text-muted-foreground";
|
|
349
349
|
let t2;
|
|
350
350
|
if ($[3] !== className || $[4] !== merge || $[5] !== t1) {
|
|
351
351
|
t2 = merge(t1, className);
|
package/dist/src/ui/table.js
CHANGED
|
@@ -218,7 +218,7 @@ const TableHead = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
218
218
|
className = $[1];
|
|
219
219
|
props = $[2];
|
|
220
220
|
}
|
|
221
|
-
const t1 = useTableClass("head", "h-11 px-4 text-left align-middle text-xs font-
|
|
221
|
+
const t1 = useTableClass("head", "h-11 px-4 text-left align-middle text-xs font-medium uppercase tracking-widest text-muted-foreground [&:has([role=checkbox])]:pr-0", className);
|
|
222
222
|
let t2;
|
|
223
223
|
if ($[3] !== props || $[4] !== ref || $[5] !== t1) {
|
|
224
224
|
t2 = /*#__PURE__*/_jsx("th", {
|
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @vvedantb/ui/tokens/css/clear-input.css: layers for @vvedantb/ui
|
|
3
|
-
* ClearInput (`.t-clear`, clip, mirror
|
|
3
|
+
* ClearInput (`.t-clear`, clip, mirror and placeholder), the transitions.dev
|
|
4
4
|
* input clear with dissolve. tokens.css imports it.
|
|
5
5
|
*
|
|
6
6
|
* clearInputDissolve reads the variables below from `html`. Set any of them
|
|
7
7
|
* on the app `:root` to change the timing (numbers in ms or px):
|
|
8
8
|
* --clear-dur, --clear-out-dur, --clear-in-dur, --clear-out-fly,
|
|
9
|
-
* --clear-in-fly, --clear-out-ease, --clear-in-ease
|
|
10
|
-
* --glow-peak-at, --glow-opacity, --glow-spread
|
|
9
|
+
* --clear-in-fly, --clear-out-ease, --clear-in-ease
|
|
11
10
|
*/
|
|
12
11
|
|
|
13
12
|
@layer base {
|
|
14
13
|
:root {
|
|
15
|
-
--clear-dur:
|
|
14
|
+
--clear-dur: 400ms;
|
|
16
15
|
--clear-out-dur: 400ms;
|
|
17
16
|
--clear-in-dur: 400ms;
|
|
18
17
|
--clear-out-fly: 12px;
|
|
19
18
|
--clear-in-fly: 12px;
|
|
20
19
|
--clear-out-ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
21
20
|
--clear-in-ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
22
|
-
--glow-delay: 50ms;
|
|
23
|
-
--glow-peak-at: 0.15;
|
|
24
|
-
--glow-opacity: 0.85;
|
|
25
|
-
--glow-spread: 1.5;
|
|
26
21
|
}
|
|
27
22
|
}
|
|
28
23
|
|
|
@@ -38,8 +33,7 @@
|
|
|
38
33
|
}
|
|
39
34
|
.t-clear-clip,
|
|
40
35
|
.t-clear-mirror,
|
|
41
|
-
.t-clear-placeholder
|
|
42
|
-
.t-clear-glow {
|
|
36
|
+
.t-clear-placeholder {
|
|
43
37
|
position: absolute;
|
|
44
38
|
inset: 0;
|
|
45
39
|
pointer-events: none;
|
|
@@ -70,13 +64,4 @@
|
|
|
70
64
|
.t-clear.is-clearing > input {
|
|
71
65
|
-webkit-text-fill-color: transparent;
|
|
72
66
|
}
|
|
73
|
-
.t-clear-glow {
|
|
74
|
-
opacity: 0;
|
|
75
|
-
z-index: 3;
|
|
76
|
-
mix-blend-mode: multiply;
|
|
77
|
-
}
|
|
78
|
-
.dark .t-clear-glow,
|
|
79
|
-
[data-theme="dark"] .t-clear-glow {
|
|
80
|
-
mix-blend-mode: screen;
|
|
81
|
-
}
|
|
82
67
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vvedantb/ui",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Shared React 19 UI for web apps: one main JavaScript entry (primitives, shell pieces, app helpers including the Convex and Clerk provider, VITE env parsing and ensure-user, artifact viewers over the @vvedantb/server artifacts core, native tokens), third-party brand logos (also @vvedantb/ui/logos), motion-driven animated SVG icons (@vvedantb/ui/icons/animated), a client entry without @vvedantb/server, convex or Clerk for Chrome extensions, design-token CSS, shared Tailwind v4 CSS, a Tailwind preset and packaged Instrument Sans fonts.",
|
|
6
6
|
"type": "module",
|