@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
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { LazyMotion, domMax, m } from "motion/react";
|
|
2
3
|
import { PageHeaderBar } from "./PageHeaderBar.js";
|
|
3
4
|
import { cn } from "../../src/utils/cn.js";
|
|
5
|
+
import { motionDistance, motionDuration, motionEase } from "../../src/motion/presets.js";
|
|
4
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
7
|
/**
|
|
6
8
|
* A full-height page: a `PageHeaderBar` over a scrolling (or height-filling)
|
|
@@ -9,127 +11,181 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
9
11
|
* `usePageTitleSync(title)` in the component that renders this one.
|
|
10
12
|
*/
|
|
11
13
|
export function PageWrapper(t0) {
|
|
12
|
-
const $ = _c(
|
|
13
|
-
let
|
|
14
|
-
let
|
|
15
|
-
let
|
|
14
|
+
const $ = _c(30);
|
|
15
|
+
let bodyClass;
|
|
16
|
+
let bodyMotion;
|
|
17
|
+
let header;
|
|
18
|
+
let inner;
|
|
19
|
+
let scrollRef;
|
|
16
20
|
let t1;
|
|
17
21
|
let t2;
|
|
18
|
-
let t3;
|
|
19
|
-
let t4;
|
|
20
|
-
let t5;
|
|
21
22
|
if ($[0] !== t0) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
23
|
+
t2 = Symbol.for("react.early_return_sentinel");
|
|
24
|
+
bb0: {
|
|
25
|
+
const {
|
|
26
|
+
children,
|
|
27
|
+
fillHeight: t3,
|
|
28
|
+
childPadding: t4,
|
|
29
|
+
bodyScrollbar: t5,
|
|
30
|
+
scrollMode: t6,
|
|
31
|
+
scrollRef: t7,
|
|
32
|
+
bodyMotion: t8,
|
|
33
|
+
bodyClassName,
|
|
34
|
+
...t9
|
|
35
|
+
} = t0;
|
|
36
|
+
scrollRef = t7;
|
|
37
|
+
header = t9;
|
|
38
|
+
const fillHeight = t3 === undefined ? false : t3;
|
|
39
|
+
const childPadding = t4 === undefined ? true : t4;
|
|
40
|
+
const bodyScrollbar = t5 === undefined ? false : t5;
|
|
41
|
+
const scrollMode = t6 === undefined ? "owned" : t6;
|
|
42
|
+
bodyMotion = t8 === undefined ? false : t8;
|
|
43
|
+
const {
|
|
44
|
+
comfortable: t10,
|
|
45
|
+
contentMaxWidth: t11,
|
|
46
|
+
animated: t12
|
|
47
|
+
} = header;
|
|
48
|
+
const comfortable = t10 === undefined ? false : t10;
|
|
49
|
+
const contentMaxWidth = t11 === undefined ? false : t11;
|
|
50
|
+
const animated = t12 === undefined ? false : t12;
|
|
51
|
+
const content = comfortable || contentMaxWidth ? /*#__PURE__*/_jsx("div", {
|
|
52
|
+
className: cn("mx-auto w-full max-w-5xl", scrollMode === "owned" && fillHeight && "flex min-h-0 flex-1 flex-col"),
|
|
53
|
+
children: children
|
|
54
|
+
}) : children;
|
|
55
|
+
if (scrollMode === "unbounded") {
|
|
56
|
+
const t13 = childPadding && (comfortable ? "px-4 pb-8 pt-0 sm:px-6" : "px-3 pb-6 pt-0 sm:px-4");
|
|
57
|
+
let t14;
|
|
58
|
+
if ($[8] !== bodyClassName || $[9] !== t13) {
|
|
59
|
+
t14 = cn(t13, bodyClassName);
|
|
60
|
+
$[8] = bodyClassName;
|
|
61
|
+
$[9] = t13;
|
|
62
|
+
$[10] = t14;
|
|
63
|
+
} else {
|
|
64
|
+
t14 = $[10];
|
|
65
|
+
}
|
|
66
|
+
let t15;
|
|
67
|
+
if ($[11] !== content || $[12] !== t14) {
|
|
68
|
+
t15 = /*#__PURE__*/_jsx("div", {
|
|
69
|
+
className: t14,
|
|
70
|
+
children: content
|
|
71
|
+
});
|
|
72
|
+
$[11] = content;
|
|
73
|
+
$[12] = t14;
|
|
74
|
+
$[13] = t15;
|
|
75
|
+
} else {
|
|
76
|
+
t15 = $[13];
|
|
77
|
+
}
|
|
78
|
+
t2 = /*#__PURE__*/_jsxs("div", {
|
|
79
|
+
children: [/*#__PURE__*/_jsx(PageHeaderBar, {
|
|
80
|
+
...header
|
|
81
|
+
}), t15]
|
|
82
|
+
});
|
|
83
|
+
break bb0;
|
|
84
|
+
}
|
|
85
|
+
let t13;
|
|
86
|
+
if ($[14] !== bodyScrollbar || $[15] !== fillHeight) {
|
|
87
|
+
t13 = cn("min-h-0 flex-1", fillHeight ? "flex flex-col overflow-hidden" : cn(bodyScrollbar === "thin" ? "overflow-y-auto" : "overflow-auto", bodyScrollbar === "thin" ? "scrollbar-thin" : bodyScrollbar && "scrollbar"));
|
|
88
|
+
$[14] = bodyScrollbar;
|
|
89
|
+
$[15] = fillHeight;
|
|
90
|
+
$[16] = t13;
|
|
91
|
+
} else {
|
|
92
|
+
t13 = $[16];
|
|
93
|
+
}
|
|
94
|
+
bodyClass = t13;
|
|
95
|
+
inner = /*#__PURE__*/_jsx("div", {
|
|
96
|
+
className: cn("flex flex-col gap-4", animated && "animate-in fade-in slide-in-from-bottom-1 duration-200", childPadding && (comfortable ? "p-4 pt-0 sm:px-6" : "p-3 pt-0 sm:px-4"), fillHeight ? "min-h-0 flex-1 overflow-hidden" : "min-h-full", bodyClassName),
|
|
97
|
+
children: content
|
|
98
|
+
});
|
|
99
|
+
t1 = cn("h-full min-h-0 flex-1 overflow-hidden", animated && "animate-in fade-in duration-200");
|
|
51
100
|
}
|
|
52
|
-
t1 = cn("flex flex-col gap-4", animated && "animate-in fade-in slide-in-from-bottom-1 duration-300", childPadding && (comfortable ? "p-4 pt-0 sm:px-6" : "p-3 pt-0 sm:px-4"), fillHeight ? "min-h-0 flex-1 overflow-hidden" : "min-h-full");
|
|
53
101
|
$[0] = t0;
|
|
54
|
-
$[1] =
|
|
55
|
-
$[2] =
|
|
56
|
-
$[3] =
|
|
57
|
-
$[4] =
|
|
58
|
-
$[5] =
|
|
59
|
-
$[6] =
|
|
60
|
-
$[7] =
|
|
61
|
-
$[8] = t5;
|
|
102
|
+
$[1] = bodyClass;
|
|
103
|
+
$[2] = bodyMotion;
|
|
104
|
+
$[3] = header;
|
|
105
|
+
$[4] = inner;
|
|
106
|
+
$[5] = scrollRef;
|
|
107
|
+
$[6] = t1;
|
|
108
|
+
$[7] = t2;
|
|
62
109
|
} else {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
t5 = $[8];
|
|
110
|
+
bodyClass = $[1];
|
|
111
|
+
bodyMotion = $[2];
|
|
112
|
+
header = $[3];
|
|
113
|
+
inner = $[4];
|
|
114
|
+
scrollRef = $[5];
|
|
115
|
+
t1 = $[6];
|
|
116
|
+
t2 = $[7];
|
|
71
117
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
t6 = comfortable ? /*#__PURE__*/_jsx("div", {
|
|
75
|
-
className: cn("mx-auto w-full max-w-5xl", fillHeight && "flex min-h-0 flex-1 flex-col"),
|
|
76
|
-
children: children
|
|
77
|
-
}) : children;
|
|
78
|
-
$[12] = children;
|
|
79
|
-
$[13] = comfortable;
|
|
80
|
-
$[14] = fillHeight;
|
|
81
|
-
$[15] = t6;
|
|
82
|
-
} else {
|
|
83
|
-
t6 = $[15];
|
|
118
|
+
if (t2 !== Symbol.for("react.early_return_sentinel")) {
|
|
119
|
+
return t2;
|
|
84
120
|
}
|
|
85
|
-
let
|
|
86
|
-
if ($[
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
children: t6
|
|
121
|
+
let t3;
|
|
122
|
+
if ($[17] !== header) {
|
|
123
|
+
t3 = /*#__PURE__*/_jsx(PageHeaderBar, {
|
|
124
|
+
...header
|
|
90
125
|
});
|
|
91
|
-
$[
|
|
92
|
-
$[
|
|
93
|
-
$[18] = t7;
|
|
126
|
+
$[17] = header;
|
|
127
|
+
$[18] = t3;
|
|
94
128
|
} else {
|
|
95
|
-
|
|
129
|
+
t3 = $[18];
|
|
96
130
|
}
|
|
97
|
-
let
|
|
98
|
-
if ($[19] !==
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
children:
|
|
131
|
+
let t4;
|
|
132
|
+
if ($[19] !== bodyClass || $[20] !== bodyMotion || $[21] !== inner || $[22] !== scrollRef) {
|
|
133
|
+
t4 = bodyMotion ? /*#__PURE__*/_jsx(LazyMotion, {
|
|
134
|
+
features: domMax,
|
|
135
|
+
children: /*#__PURE__*/_jsx(m.div, {
|
|
136
|
+
ref: scrollRef,
|
|
137
|
+
className: bodyClass,
|
|
138
|
+
initial: {
|
|
139
|
+
opacity: 0,
|
|
140
|
+
y: motionDistance.pageY
|
|
141
|
+
},
|
|
142
|
+
animate: {
|
|
143
|
+
opacity: 1,
|
|
144
|
+
y: 0
|
|
145
|
+
},
|
|
146
|
+
transition: {
|
|
147
|
+
duration: motionDuration.base,
|
|
148
|
+
ease: motionEase,
|
|
149
|
+
delay: 0.12
|
|
150
|
+
},
|
|
151
|
+
children: inner
|
|
152
|
+
})
|
|
153
|
+
}) : /*#__PURE__*/_jsx("div", {
|
|
154
|
+
ref: scrollRef,
|
|
155
|
+
className: bodyClass,
|
|
156
|
+
children: inner
|
|
102
157
|
});
|
|
103
|
-
$[19] =
|
|
104
|
-
$[20] =
|
|
105
|
-
$[21] =
|
|
158
|
+
$[19] = bodyClass;
|
|
159
|
+
$[20] = bodyMotion;
|
|
160
|
+
$[21] = inner;
|
|
161
|
+
$[22] = scrollRef;
|
|
162
|
+
$[23] = t4;
|
|
106
163
|
} else {
|
|
107
|
-
|
|
164
|
+
t4 = $[23];
|
|
108
165
|
}
|
|
109
|
-
let
|
|
110
|
-
if ($[
|
|
111
|
-
|
|
112
|
-
className:
|
|
113
|
-
children: [
|
|
166
|
+
let t5;
|
|
167
|
+
if ($[24] !== t3 || $[25] !== t4) {
|
|
168
|
+
t5 = /*#__PURE__*/_jsxs("div", {
|
|
169
|
+
className: "flex h-full min-h-0 flex-col overflow-hidden",
|
|
170
|
+
children: [t3, t4]
|
|
114
171
|
});
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[25] = t9;
|
|
172
|
+
$[24] = t3;
|
|
173
|
+
$[25] = t4;
|
|
174
|
+
$[26] = t5;
|
|
119
175
|
} else {
|
|
120
|
-
|
|
176
|
+
t5 = $[26];
|
|
121
177
|
}
|
|
122
|
-
let
|
|
123
|
-
if ($[
|
|
124
|
-
|
|
125
|
-
className:
|
|
126
|
-
children:
|
|
178
|
+
let t6;
|
|
179
|
+
if ($[27] !== t1 || $[28] !== t5) {
|
|
180
|
+
t6 = /*#__PURE__*/_jsx("div", {
|
|
181
|
+
className: t1,
|
|
182
|
+
children: t5
|
|
127
183
|
});
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
184
|
+
$[27] = t1;
|
|
185
|
+
$[28] = t5;
|
|
186
|
+
$[29] = t6;
|
|
131
187
|
} else {
|
|
132
|
-
|
|
188
|
+
t6 = $[29];
|
|
133
189
|
}
|
|
134
|
-
return
|
|
190
|
+
return t6;
|
|
135
191
|
}
|
|
@@ -289,7 +289,7 @@ function MobileTitle(t0) {
|
|
|
289
289
|
}
|
|
290
290
|
let t1;
|
|
291
291
|
if ($[5] !== className) {
|
|
292
|
-
t1 = cn("pointer-events-none min-w-0 truncate text-center text-base font-
|
|
292
|
+
t1 = cn("pointer-events-none min-w-0 truncate text-center text-base font-medium leading-tight tracking-tight text-foreground", className);
|
|
293
293
|
$[5] = className;
|
|
294
294
|
$[6] = t1;
|
|
295
295
|
} else {
|
|
@@ -209,7 +209,7 @@ export function PanelTitle(t0) {
|
|
|
209
209
|
}
|
|
210
210
|
let t1;
|
|
211
211
|
if ($[3] !== className) {
|
|
212
|
-
t1 = cn("min-w-0 flex-1 truncate text-left text-base font-
|
|
212
|
+
t1 = cn("min-w-0 flex-1 truncate text-left text-base font-medium leading-none tracking-tight text-foreground", className);
|
|
213
213
|
$[3] = className;
|
|
214
214
|
$[4] = t1;
|
|
215
215
|
} else {
|
|
@@ -137,8 +137,8 @@ export function useSidebarResizeState(options) {
|
|
|
137
137
|
animRef.current?.stop();
|
|
138
138
|
animRef.current = animate(from, to, {
|
|
139
139
|
type: "spring",
|
|
140
|
-
bounce: 0
|
|
141
|
-
duration: 0.
|
|
140
|
+
bounce: 0,
|
|
141
|
+
duration: 0.25,
|
|
142
142
|
velocity,
|
|
143
143
|
onUpdate: value => setWidth(value)
|
|
144
144
|
});
|
|
@@ -55,7 +55,7 @@ export function SidebarUpgradeCard(t0) {
|
|
|
55
55
|
let t3;
|
|
56
56
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
57
57
|
t3 = /*#__PURE__*/_jsx("span", {
|
|
58
|
-
className: "min-w-0 truncate text-sm font-
|
|
58
|
+
className: "min-w-0 truncate text-sm font-medium",
|
|
59
59
|
children: "Upgrade to Pro"
|
|
60
60
|
});
|
|
61
61
|
$[7] = t3;
|
|
@@ -38,7 +38,7 @@ export const railGroupClass = "relative isolate flex flex-col items-center gap-1
|
|
|
38
38
|
export const railGroupPillClass = "t-tabs-pill rounded-lg bg-segment";
|
|
39
39
|
|
|
40
40
|
/** Count badge pinned to the bottom-right of a rail tile. */
|
|
41
|
-
export const railBadgeClass = "absolute -bottom-0.5 -right-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-accent px-1 text-[10px] font-
|
|
41
|
+
export const railBadgeClass = "absolute -bottom-0.5 -right-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-accent px-1 text-[10px] font-medium leading-none text-accent-foreground"; // check-tokens-allow: accent
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* Static section label above a group of panel nav rows. `px-4` lines the text
|
|
@@ -10,7 +10,7 @@ import { freeTextAnswer, selectedLabels } from "./activity-question-utils.js";
|
|
|
10
10
|
*/
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
const OPTION_LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
13
|
-
const CHIP_CLASS = "mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-md text-3xs font-
|
|
13
|
+
const CHIP_CLASS = "mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-md text-3xs font-medium tracking-wide";
|
|
14
14
|
function OptionRow(t0) {
|
|
15
15
|
const $ = _c(24);
|
|
16
16
|
const {
|
|
@@ -167,7 +167,7 @@ export function ActivityQuestionCard(t0) {
|
|
|
167
167
|
children: question.question
|
|
168
168
|
}), question.header ? /*#__PURE__*/_jsx(Badge, {
|
|
169
169
|
variant: "secondary",
|
|
170
|
-
className: "shrink-0 text-3xs font-
|
|
170
|
+
className: "shrink-0 text-3xs font-medium",
|
|
171
171
|
children: question.header
|
|
172
172
|
}) : null]
|
|
173
173
|
}), /*#__PURE__*/_jsxs("div", {
|
|
@@ -55,7 +55,7 @@ export const Message = t0 => {
|
|
|
55
55
|
const hasActions = actions !== undefined && actions.length > 0;
|
|
56
56
|
const t1 = classes?.root ?? "group flex w-full max-w-[95%] flex-col gap-2";
|
|
57
57
|
const t2 = from === "user" ? classes?.user ?? "is-user ml-auto justify-end" : classes?.assistant ?? "is-assistant";
|
|
58
|
-
const t3 = highlighted !== undefined && "rounded-xl transition-[background-color,box-shadow] duration-
|
|
58
|
+
const t3 = highlighted !== undefined && "rounded-xl transition-[background-color,box-shadow] duration-200";
|
|
59
59
|
const t4 = highlighted && "bg-primary/10 ring-2 ring-primary/30";
|
|
60
60
|
let t5;
|
|
61
61
|
if ($[7] !== className || $[8] !== merge || $[9] !== t1 || $[10] !== t2 || $[11] !== t3 || $[12] !== t4) {
|
|
@@ -319,7 +319,7 @@ export const MessageQuote = t0 => {
|
|
|
319
319
|
let t1;
|
|
320
320
|
if ($[6] !== author) {
|
|
321
321
|
t1 = /*#__PURE__*/_jsx("span", {
|
|
322
|
-
className: "block truncate text-xs font-
|
|
322
|
+
className: "block truncate text-xs font-medium opacity-70",
|
|
323
323
|
children: author
|
|
324
324
|
});
|
|
325
325
|
$[6] = author;
|
|
@@ -75,7 +75,7 @@ function InstanceIcon(t0) {
|
|
|
75
75
|
let t3;
|
|
76
76
|
if ($[3] !== instance.label || $[4] !== ring || $[5] !== showBadge) {
|
|
77
77
|
t3 = showBadge ? /*#__PURE__*/_jsx("span", {
|
|
78
|
-
className: "pointer-events-none absolute -right-0.5 -bottom-0.5 z-10 flex h-3 min-w-3 items-center justify-center rounded-full bg-surface-secondary px-0.5 text-[7px] font-
|
|
78
|
+
className: "pointer-events-none absolute -right-0.5 -bottom-0.5 z-10 flex h-3 min-w-3 items-center justify-center rounded-full bg-surface-secondary px-0.5 text-[7px] font-medium leading-none text-muted-foreground",
|
|
79
79
|
style: {
|
|
80
80
|
boxShadow: `0 0 0 1.5px ${ring}`
|
|
81
81
|
},
|
|
@@ -204,7 +204,7 @@ export function ModelPicker(t0) {
|
|
|
204
204
|
provider: selectedModel?.provider ?? "claude",
|
|
205
205
|
size: 14
|
|
206
206
|
}), /*#__PURE__*/_jsx("span", {
|
|
207
|
-
className: "pointer-events-none absolute -right-0.5 -bottom-0.5 z-10 flex h-3 min-w-3 items-center justify-center rounded-full bg-surface-secondary px-0.5 text-[7px] font-
|
|
207
|
+
className: "pointer-events-none absolute -right-0.5 -bottom-0.5 z-10 flex h-3 min-w-3 items-center justify-center rounded-full bg-surface-secondary px-0.5 text-[7px] font-medium leading-none text-muted-foreground",
|
|
208
208
|
style: {
|
|
209
209
|
boxShadow: `0 0 0 1.5px ${config?.badgeRing?.trigger ?? "var(--color-border)"}`
|
|
210
210
|
},
|
|
@@ -1326,7 +1326,7 @@ export const ReplyQuoteChip = t0 => {
|
|
|
1326
1326
|
let t5;
|
|
1327
1327
|
if ($[11] !== author) {
|
|
1328
1328
|
t5 = /*#__PURE__*/_jsx("span", {
|
|
1329
|
-
className: "block truncate text-xs font-
|
|
1329
|
+
className: "block truncate text-xs font-medium text-muted-foreground",
|
|
1330
1330
|
children: author
|
|
1331
1331
|
});
|
|
1332
1332
|
$[11] = author;
|
|
@@ -27,7 +27,7 @@ export function HeadingElement(t0) {
|
|
|
27
27
|
const t1 = level === "h2" ? "text-base" : "text-sm";
|
|
28
28
|
let t2;
|
|
29
29
|
if ($[0] !== t1) {
|
|
30
|
-
t2 = cn("font-
|
|
30
|
+
t2 = cn("font-medium text-foreground", t1);
|
|
31
31
|
$[0] = t1;
|
|
32
32
|
$[1] = t2;
|
|
33
33
|
} else {
|
|
@@ -100,7 +100,7 @@ export function MetricElement(t0) {
|
|
|
100
100
|
const t2 = TONE_TEXT[tone];
|
|
101
101
|
let t3;
|
|
102
102
|
if ($[2] !== t2) {
|
|
103
|
-
t3 = cn("text-lg font-
|
|
103
|
+
t3 = cn("text-lg font-medium tabular-nums leading-tight", t2);
|
|
104
104
|
$[2] = t2;
|
|
105
105
|
$[3] = t3;
|
|
106
106
|
} else {
|
|
@@ -186,7 +186,7 @@ export function CalloutElement(t0) {
|
|
|
186
186
|
let t3;
|
|
187
187
|
if ($[2] !== title || $[3] !== tone) {
|
|
188
188
|
t3 = title ? /*#__PURE__*/_jsx("span", {
|
|
189
|
-
className: cn("text-xs font-
|
|
189
|
+
className: cn("text-xs font-medium", TONE_TEXT[tone]),
|
|
190
190
|
children: title
|
|
191
191
|
}) : null;
|
|
192
192
|
$[2] = title;
|
|
@@ -104,7 +104,7 @@ export function PanelElement(t0) {
|
|
|
104
104
|
let t1;
|
|
105
105
|
if ($[0] !== title) {
|
|
106
106
|
t1 = title ? /*#__PURE__*/_jsx("p", {
|
|
107
|
-
className: "text-sm font-
|
|
107
|
+
className: "text-sm font-medium text-foreground",
|
|
108
108
|
children: title
|
|
109
109
|
}) : null;
|
|
110
110
|
$[0] = title;
|
package/dist/src/kibo/kanban.js
CHANGED
|
@@ -277,7 +277,7 @@ export const KanbanHeader = t0 => {
|
|
|
277
277
|
const merge = useCn();
|
|
278
278
|
let t1;
|
|
279
279
|
if ($[3] !== className || $[4] !== merge) {
|
|
280
|
-
t1 = merge("m-0 p-2 font-
|
|
280
|
+
t1 = merge("m-0 p-2 font-medium text-sm", className);
|
|
281
281
|
$[3] = className;
|
|
282
282
|
$[4] = merge;
|
|
283
283
|
$[5] = t1;
|
package/dist/src/kibo/list.js
CHANGED
|
@@ -27,7 +27,6 @@ const variables = {
|
|
|
27
27
|
"--media-range-thumb-background": "rgb(255 255 255 / 0.95)",
|
|
28
28
|
"--media-tooltip-background-color": "rgb(24 24 27 / 0.98)",
|
|
29
29
|
"--media-tooltip-arrow-color": "rgb(24 24 27 / 0.98)",
|
|
30
|
-
"--media-tooltip-filter": "drop-shadow(0 6px 16px rgb(0 0 0 / 0.55)) drop-shadow(0 1px 2px rgb(0 0 0 / 0.4))",
|
|
31
30
|
"--media-tooltip-distance": "10px",
|
|
32
31
|
"--media-tooltip-border-radius": "6px"
|
|
33
32
|
};
|
|
@@ -5,7 +5,7 @@ const ringClass = "absolute rounded-full border border-current/25 animate-spin m
|
|
|
5
5
|
const dotClass = "absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 rounded-full bg-current";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* The default concept visual for `ProductHero`: a
|
|
8
|
+
* The default concept visual for `ProductHero`: a core with three orbit rings, in the
|
|
9
9
|
* style of https://projectv.uk. Pass it as `visual`. A product sets `accent` instead of drawing
|
|
10
10
|
* its own visual.
|
|
11
11
|
*
|
|
@@ -13,7 +13,7 @@ const dotClass = "absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 roun
|
|
|
13
13
|
* Each ring has a fixed start angle, so the still version does not stack the dots.
|
|
14
14
|
*/
|
|
15
15
|
export function ProductHeroOrbit(t0) {
|
|
16
|
-
const $ = _c(
|
|
16
|
+
const $ = _c(15);
|
|
17
17
|
const {
|
|
18
18
|
accent,
|
|
19
19
|
children,
|
|
@@ -40,24 +40,20 @@ export function ProductHeroOrbit(t0) {
|
|
|
40
40
|
let t3;
|
|
41
41
|
let t4;
|
|
42
42
|
let t5;
|
|
43
|
-
let t6;
|
|
44
43
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45
44
|
t3 = /*#__PURE__*/_jsx("span", {
|
|
46
|
-
className: "absolute inset-[24%] rounded-full bg-current/30 blur-2xl animate-pulse [animation-duration:5s] motion-reduce:animate-none"
|
|
47
|
-
});
|
|
48
|
-
t4 = /*#__PURE__*/_jsx("span", {
|
|
49
45
|
className: cn(ringClass, "inset-[2%] border-dashed rotate-[130deg] [animation-duration:48s]"),
|
|
50
46
|
children: /*#__PURE__*/_jsx("span", {
|
|
51
47
|
className: cn(dotClass, "size-2 opacity-60")
|
|
52
48
|
})
|
|
53
49
|
});
|
|
54
|
-
|
|
50
|
+
t4 = /*#__PURE__*/_jsx("span", {
|
|
55
51
|
className: cn(ringClass, "inset-[15%] rotate-[250deg] [animation-direction:reverse] [animation-duration:30s]"),
|
|
56
52
|
children: /*#__PURE__*/_jsx("span", {
|
|
57
53
|
className: cn(dotClass, "size-2.5 opacity-80")
|
|
58
54
|
})
|
|
59
55
|
});
|
|
60
|
-
|
|
56
|
+
t5 = /*#__PURE__*/_jsx("span", {
|
|
61
57
|
className: cn(ringClass, "inset-[29%] border-current/40 rotate-[40deg] [animation-duration:16s]"),
|
|
62
58
|
children: /*#__PURE__*/_jsx("span", {
|
|
63
59
|
className: cn(dotClass, "size-3")
|
|
@@ -66,49 +62,47 @@ export function ProductHeroOrbit(t0) {
|
|
|
66
62
|
$[4] = t3;
|
|
67
63
|
$[5] = t4;
|
|
68
64
|
$[6] = t5;
|
|
69
|
-
$[7] = t6;
|
|
70
65
|
} else {
|
|
71
66
|
t3 = $[4];
|
|
72
67
|
t4 = $[5];
|
|
73
68
|
t5 = $[6];
|
|
74
|
-
t6 = $[7];
|
|
75
69
|
}
|
|
76
|
-
let
|
|
77
|
-
if ($[
|
|
78
|
-
|
|
70
|
+
let t6;
|
|
71
|
+
if ($[7] !== children) {
|
|
72
|
+
t6 = children ? /*#__PURE__*/_jsx("span", {
|
|
79
73
|
className: "flex items-center justify-center text-foreground",
|
|
80
74
|
children: children
|
|
81
75
|
}) : null;
|
|
82
|
-
$[
|
|
83
|
-
$[
|
|
76
|
+
$[7] = children;
|
|
77
|
+
$[8] = t6;
|
|
84
78
|
} else {
|
|
85
|
-
|
|
79
|
+
t6 = $[8];
|
|
86
80
|
}
|
|
87
|
-
let
|
|
88
|
-
if ($[
|
|
89
|
-
|
|
90
|
-
className: "absolute inset-[40%] flex items-center justify-center rounded-full bg-current/15 ring-1 ring-current/40
|
|
91
|
-
children:
|
|
81
|
+
let t7;
|
|
82
|
+
if ($[9] !== t6) {
|
|
83
|
+
t7 = /*#__PURE__*/_jsx("span", {
|
|
84
|
+
className: "absolute inset-[40%] flex items-center justify-center rounded-full bg-current/15 ring-1 ring-current/40",
|
|
85
|
+
children: t6
|
|
92
86
|
});
|
|
87
|
+
$[9] = t6;
|
|
93
88
|
$[10] = t7;
|
|
94
|
-
$[11] = t8;
|
|
95
89
|
} else {
|
|
96
|
-
|
|
90
|
+
t7 = $[10];
|
|
97
91
|
}
|
|
98
|
-
let
|
|
99
|
-
if ($[
|
|
100
|
-
|
|
92
|
+
let t8;
|
|
93
|
+
if ($[11] !== t1 || $[12] !== t2 || $[13] !== t7) {
|
|
94
|
+
t8 = /*#__PURE__*/_jsxs("div", {
|
|
101
95
|
"data-testid": "product-hero-orbit",
|
|
102
96
|
className: t1,
|
|
103
97
|
style: t2,
|
|
104
|
-
children: [t3, t4, t5,
|
|
98
|
+
children: [t3, t4, t5, t7]
|
|
105
99
|
});
|
|
106
|
-
$[
|
|
107
|
-
$[
|
|
100
|
+
$[11] = t1;
|
|
101
|
+
$[12] = t2;
|
|
102
|
+
$[13] = t7;
|
|
108
103
|
$[14] = t8;
|
|
109
|
-
$[15] = t9;
|
|
110
104
|
} else {
|
|
111
|
-
|
|
105
|
+
t8 = $[14];
|
|
112
106
|
}
|
|
113
|
-
return
|
|
107
|
+
return t8;
|
|
114
108
|
}
|
|
@@ -250,7 +250,7 @@ export function createLandingKit({
|
|
|
250
250
|
let t1;
|
|
251
251
|
if ($[0] !== title) {
|
|
252
252
|
t1 = /*#__PURE__*/_jsx("h2", {
|
|
253
|
-
className: "max-w-2xl text-balance font-
|
|
253
|
+
className: "max-w-2xl text-balance font-medium text-3xl leading-[1.1] tracking-[-0.03em] text-foreground sm:text-5xl",
|
|
254
254
|
children: title
|
|
255
255
|
});
|
|
256
256
|
$[0] = title;
|
|
@@ -87,7 +87,7 @@ export function LandingSectionHeading(t0) {
|
|
|
87
87
|
let t3;
|
|
88
88
|
if ($[4] !== heading) {
|
|
89
89
|
t3 = /*#__PURE__*/_jsx("h2", {
|
|
90
|
-
className: "text-balance font-
|
|
90
|
+
className: "text-balance font-medium text-3xl leading-[1.08] tracking-[-0.03em] text-foreground sm:text-5xl",
|
|
91
91
|
children: heading
|
|
92
92
|
});
|
|
93
93
|
$[4] = heading;
|
|
@@ -8,6 +8,6 @@ export const menuContentClass = ["z-50 min-w-48 overflow-hidden p-1.5 outline-hi
|
|
|
8
8
|
export const menuSubTriggerClass = "flex cursor-pointer select-none items-center gap-2 rounded-menu-item px-2.5 py-2 text-sm text-foreground outline-hidden transition-[background-color,color,transform] duration-150 ease-out active:scale-[0.99] focus:bg-default focus:text-foreground data-highlighted:bg-default data-highlighted:text-foreground data-[state=open]:bg-default data-disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0";
|
|
9
9
|
export const menuItemClass = "relative flex cursor-pointer select-none items-center gap-2 rounded-menu-item px-2.5 py-2 text-sm outline-hidden transition-[background-color,color,transform] duration-150 ease-out active:scale-[0.99] focus:bg-default focus:text-foreground data-highlighted:bg-default data-highlighted:text-foreground data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:pointer-events-none";
|
|
10
10
|
export const menuCheckboxRadioItemClass = "relative flex cursor-pointer select-none items-center rounded-menu-item py-2 pl-8 pr-2.5 text-sm outline-hidden transition-[background-color,color,transform] duration-150 ease-out active:scale-[0.99] focus:bg-default focus:text-foreground data-highlighted:bg-default data-highlighted:text-foreground data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50";
|
|
11
|
-
export const menuLabelClass = "px-2.5 py-1.5 text-xs font-
|
|
11
|
+
export const menuLabelClass = "px-2.5 py-1.5 text-xs font-medium uppercase tracking-widest text-muted-foreground";
|
|
12
12
|
export const menuSeparatorClass = "-mx-1.5 my-1 h-px bg-separator";
|
|
13
13
|
export const menuShortcutClass = "ml-auto text-xs tracking-wide text-muted-foreground/90";
|
|
@@ -22,6 +22,6 @@ export const menuContentClass = ["z-50 min-w-[12rem] overflow-hidden p-1 outline
|
|
|
22
22
|
export const menuSubTriggerClass = "flex cursor-pointer select-none items-center gap-2 rounded-menu-item px-2.5 py-1.5 max-sm:min-h-10 text-sm text-foreground outline-none transition-[background-color,color] focus:bg-default focus:text-foreground data-[highlighted]:bg-default data-[highlighted]:text-foreground data-[state=open]:bg-default data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0";
|
|
23
23
|
export const menuItemClass = "relative flex cursor-pointer select-none items-center gap-2 rounded-menu-item px-2.5 py-1.5 max-sm:min-h-10 text-sm outline-none transition-[background-color,color] focus:bg-default focus:text-foreground data-[highlighted]:bg-default data-[highlighted]:text-foreground data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:pointer-events-none";
|
|
24
24
|
export const menuCheckboxRadioItemClass = "relative flex cursor-pointer select-none items-center rounded-menu-item py-1.5 max-sm:min-h-10 pl-8 pr-2.5 text-sm outline-none transition-[background-color,color] focus:bg-default focus:text-foreground data-[highlighted]:bg-default data-[highlighted]:text-foreground data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50";
|
|
25
|
-
export const menuLabelClass = "px-2.5 py-1.5 text-xs font-
|
|
25
|
+
export const menuLabelClass = "px-2.5 py-1.5 text-xs font-medium uppercase tracking-widest text-muted-foreground";
|
|
26
26
|
export const menuSeparatorClass = "-mx-1 my-1 h-px bg-separator";
|
|
27
27
|
export const menuShortcutClass = "ml-auto text-xs tracking-wide text-muted-foreground/90";
|
|
@@ -281,7 +281,7 @@ export function BulkActionBar(t0) {
|
|
|
281
281
|
className: "flex shrink-0 items-center gap-2 pl-1 pr-0.5",
|
|
282
282
|
children: [/*#__PURE__*/_jsx(CountPop, {
|
|
283
283
|
label: String(selectedCount),
|
|
284
|
-
className: "rounded-md bg-surface-secondary px-2 py-0.5 text-xs font-
|
|
284
|
+
className: "rounded-md bg-surface-secondary px-2 py-0.5 text-xs font-medium text-foreground tabular-nums"
|
|
285
285
|
}), /*#__PURE__*/_jsx("span", {
|
|
286
286
|
className: "hidden text-sm font-medium text-muted-foreground sm:inline",
|
|
287
287
|
children: "selected"
|