@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,9 +1,145 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { IconArrowLeft } from "@tabler/icons-react";
|
|
3
|
+
import { LazyMotion, domMax, m } from "motion/react";
|
|
3
4
|
import { Button } from "../../src/ui/button.js";
|
|
4
5
|
import { useMediaQuery } from "../../src/hooks/use-media-query.js";
|
|
6
|
+
import { pageTitleClass } from "../../src/ui/page-title.js";
|
|
5
7
|
import { cn } from "../../src/utils/cn.js";
|
|
8
|
+
import { motionDuration, motionEase } from "../../src/motion/presets.js";
|
|
6
9
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
+
const slotTransition = {
|
|
11
|
+
duration: motionDuration.fast,
|
|
12
|
+
ease: motionEase
|
|
13
|
+
};
|
|
14
|
+
/** A header slot that fades and lifts in. Needs an ancestor `LazyMotion`. */
|
|
15
|
+
function Slot(t0) {
|
|
16
|
+
const $ = _c(11);
|
|
17
|
+
const {
|
|
18
|
+
enabled,
|
|
19
|
+
delay: t1,
|
|
20
|
+
className,
|
|
21
|
+
children
|
|
22
|
+
} = t0;
|
|
23
|
+
const delay = t1 === undefined ? 0 : t1;
|
|
24
|
+
if (!enabled) {
|
|
25
|
+
let t2;
|
|
26
|
+
if ($[0] !== children || $[1] !== className) {
|
|
27
|
+
t2 = /*#__PURE__*/_jsx("div", {
|
|
28
|
+
className: className,
|
|
29
|
+
children: children
|
|
30
|
+
});
|
|
31
|
+
$[0] = children;
|
|
32
|
+
$[1] = className;
|
|
33
|
+
$[2] = t2;
|
|
34
|
+
} else {
|
|
35
|
+
t2 = $[2];
|
|
36
|
+
}
|
|
37
|
+
return t2;
|
|
38
|
+
}
|
|
39
|
+
let t2;
|
|
40
|
+
let t3;
|
|
41
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42
|
+
t2 = {
|
|
43
|
+
opacity: 0,
|
|
44
|
+
y: 6
|
|
45
|
+
};
|
|
46
|
+
t3 = {
|
|
47
|
+
opacity: 1,
|
|
48
|
+
y: 0
|
|
49
|
+
};
|
|
50
|
+
$[3] = t2;
|
|
51
|
+
$[4] = t3;
|
|
52
|
+
} else {
|
|
53
|
+
t2 = $[3];
|
|
54
|
+
t3 = $[4];
|
|
55
|
+
}
|
|
56
|
+
let t4;
|
|
57
|
+
if ($[5] !== delay) {
|
|
58
|
+
t4 = {
|
|
59
|
+
...slotTransition,
|
|
60
|
+
delay
|
|
61
|
+
};
|
|
62
|
+
$[5] = delay;
|
|
63
|
+
$[6] = t4;
|
|
64
|
+
} else {
|
|
65
|
+
t4 = $[6];
|
|
66
|
+
}
|
|
67
|
+
let t5;
|
|
68
|
+
if ($[7] !== children || $[8] !== className || $[9] !== t4) {
|
|
69
|
+
t5 = /*#__PURE__*/_jsx(m.div, {
|
|
70
|
+
className: className,
|
|
71
|
+
initial: t2,
|
|
72
|
+
animate: t3,
|
|
73
|
+
transition: t4,
|
|
74
|
+
children: children
|
|
75
|
+
});
|
|
76
|
+
$[7] = children;
|
|
77
|
+
$[8] = className;
|
|
78
|
+
$[9] = t4;
|
|
79
|
+
$[10] = t5;
|
|
80
|
+
} else {
|
|
81
|
+
t5 = $[10];
|
|
82
|
+
}
|
|
83
|
+
return t5;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** The `h1` counterpart of `Slot`. */
|
|
87
|
+
function TitleSlot(t0) {
|
|
88
|
+
const $ = _c(8);
|
|
89
|
+
const {
|
|
90
|
+
enabled,
|
|
91
|
+
className,
|
|
92
|
+
children
|
|
93
|
+
} = t0;
|
|
94
|
+
if (!enabled) {
|
|
95
|
+
let t1;
|
|
96
|
+
if ($[0] !== children || $[1] !== className) {
|
|
97
|
+
t1 = /*#__PURE__*/_jsx("h1", {
|
|
98
|
+
className: className,
|
|
99
|
+
children: children
|
|
100
|
+
});
|
|
101
|
+
$[0] = children;
|
|
102
|
+
$[1] = className;
|
|
103
|
+
$[2] = t1;
|
|
104
|
+
} else {
|
|
105
|
+
t1 = $[2];
|
|
106
|
+
}
|
|
107
|
+
return t1;
|
|
108
|
+
}
|
|
109
|
+
let t1;
|
|
110
|
+
let t2;
|
|
111
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
112
|
+
t1 = {
|
|
113
|
+
opacity: 0,
|
|
114
|
+
y: 6
|
|
115
|
+
};
|
|
116
|
+
t2 = {
|
|
117
|
+
opacity: 1,
|
|
118
|
+
y: 0
|
|
119
|
+
};
|
|
120
|
+
$[3] = t1;
|
|
121
|
+
$[4] = t2;
|
|
122
|
+
} else {
|
|
123
|
+
t1 = $[3];
|
|
124
|
+
t2 = $[4];
|
|
125
|
+
}
|
|
126
|
+
let t3;
|
|
127
|
+
if ($[5] !== children || $[6] !== className) {
|
|
128
|
+
t3 = /*#__PURE__*/_jsx(m.h1, {
|
|
129
|
+
className: className,
|
|
130
|
+
initial: t1,
|
|
131
|
+
animate: t2,
|
|
132
|
+
transition: slotTransition,
|
|
133
|
+
children: children
|
|
134
|
+
});
|
|
135
|
+
$[5] = children;
|
|
136
|
+
$[6] = className;
|
|
137
|
+
$[7] = t3;
|
|
138
|
+
} else {
|
|
139
|
+
t3 = $[7];
|
|
140
|
+
}
|
|
141
|
+
return t3;
|
|
142
|
+
}
|
|
7
143
|
/**
|
|
8
144
|
* The page title row (title, actions, toolbar, tabs). Rendered above the page
|
|
9
145
|
* body by `PageWrapper`, or placed directly by a split view that wants the
|
|
@@ -12,10 +148,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
12
148
|
* through props so one implementation serves apps that differ in each.
|
|
13
149
|
*/
|
|
14
150
|
export function PageHeaderBar(t0) {
|
|
15
|
-
const $ = _c(
|
|
151
|
+
const $ = _c(83);
|
|
16
152
|
const {
|
|
17
153
|
title,
|
|
18
154
|
titleAfter,
|
|
155
|
+
leftSection,
|
|
19
156
|
headerCenter,
|
|
20
157
|
headerRight,
|
|
21
158
|
toolbar,
|
|
@@ -23,197 +160,262 @@ export function PageHeaderBar(t0) {
|
|
|
23
160
|
description,
|
|
24
161
|
insetHeader: t1,
|
|
25
162
|
comfortable: t2,
|
|
26
|
-
|
|
163
|
+
contentMaxWidth: t3,
|
|
164
|
+
titleScale: t4,
|
|
165
|
+
showBack: t5,
|
|
27
166
|
onBack,
|
|
28
|
-
animated:
|
|
29
|
-
|
|
30
|
-
|
|
167
|
+
animated: t6,
|
|
168
|
+
headerMotion: t7,
|
|
169
|
+
titleRowMinHeight: t8,
|
|
170
|
+
titleLayout: t9,
|
|
171
|
+
headerColumns: t10,
|
|
31
172
|
renderMobileActions,
|
|
32
|
-
isDesktop
|
|
173
|
+
isDesktop,
|
|
174
|
+
hideHeader: t11,
|
|
175
|
+
hideHeaderOnMobile: t12
|
|
33
176
|
} = t0;
|
|
34
177
|
const insetHeader = t1 === undefined ? false : t1;
|
|
35
178
|
const comfortable = t2 === undefined ? false : t2;
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
179
|
+
const contentMaxWidth = t3 === undefined ? false : t3;
|
|
180
|
+
const titleScale = t4 === undefined ? "auto" : t4;
|
|
181
|
+
const showBack = t5 === undefined ? false : t5;
|
|
182
|
+
const animated = t6 === undefined ? false : t6;
|
|
183
|
+
const headerMotion = t7 === undefined ? false : t7;
|
|
184
|
+
const titleRowMinHeight = t8 === undefined ? false : t8;
|
|
185
|
+
const titleLayout = t9 === undefined ? "stacked" : t9;
|
|
186
|
+
const headerColumns = t10 === undefined ? "two" : t10;
|
|
187
|
+
const hideHeader = t11 === undefined ? false : t11;
|
|
188
|
+
const hideHeaderOnMobile = t12 === undefined ? false : t12;
|
|
40
189
|
const isStringTitle = typeof title === "string";
|
|
41
190
|
const hasToolbar = toolbar != null;
|
|
42
191
|
const hasTabs = tabs != null;
|
|
43
192
|
const inline = titleLayout === "inline";
|
|
193
|
+
const maxWidth = comfortable || contentMaxWidth;
|
|
194
|
+
const responsiveTitle = inline && titleScale === "auto";
|
|
44
195
|
const threeCol = headerColumns === "three-at-md";
|
|
45
196
|
const isPhone = useMediaQuery("(max-width: 639px)");
|
|
46
197
|
const titleAfterInline = titleAfter != null && !isPhone;
|
|
47
198
|
const titleAfterOwnRow = titleAfter != null && isPhone;
|
|
48
199
|
const headerRightInTopBar = renderMobileActions != null && isStringTitle && isDesktop === false;
|
|
49
200
|
const headerRightInPage = headerRight != null && !headerRightInTopBar;
|
|
50
|
-
const hideOnMobile = renderMobileActions != null && isStringTitle && !hasToolbar && !hasTabs;
|
|
51
|
-
let
|
|
52
|
-
let
|
|
53
|
-
let
|
|
54
|
-
let
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
201
|
+
const hideOnMobile = hideHeaderOnMobile || renderMobileActions != null && isStringTitle && !hasToolbar && !hasTabs;
|
|
202
|
+
let cssSlotMotion;
|
|
203
|
+
let t13;
|
|
204
|
+
let t14;
|
|
205
|
+
let t15;
|
|
206
|
+
let t16;
|
|
207
|
+
let t17;
|
|
208
|
+
if ($[0] !== animated || $[1] !== comfortable || $[2] !== description || $[3] !== headerCenter || $[4] !== headerMotion || $[5] !== headerRight || $[6] !== headerRightInPage || $[7] !== headerRightInTopBar || $[8] !== hideHeader || $[9] !== hideOnMobile || $[10] !== inline || $[11] !== insetHeader || $[12] !== isStringTitle || $[13] !== leftSection || $[14] !== maxWidth || $[15] !== onBack || $[16] !== renderMobileActions || $[17] !== responsiveTitle || $[18] !== showBack || $[19] !== threeCol || $[20] !== title || $[21] !== titleAfter || $[22] !== titleAfterInline || $[23] !== titleRowMinHeight) {
|
|
209
|
+
t17 = Symbol.for("react.early_return_sentinel");
|
|
210
|
+
bb0: {
|
|
211
|
+
const titleClass = cn("min-w-0 text-foreground", responsiveTitle ? "text-base font-semibold tracking-[-0.02em] sm:text-lg md:text-xl" : pageTitleClass, animated && !headerMotion && "animate-in fade-in slide-in-from-left-1 duration-200", isStringTitle ? responsiveTitle ? "hidden whitespace-nowrap text-balance lg:block" : "hidden text-balance whitespace-nowrap md:block" : "overflow-hidden");
|
|
212
|
+
if (hideHeader) {
|
|
213
|
+
t17 = null;
|
|
214
|
+
break bb0;
|
|
215
|
+
}
|
|
216
|
+
cssSlotMotion = animated && !headerMotion;
|
|
217
|
+
if ($[30] !== headerRight || $[31] !== headerRightInTopBar || $[32] !== renderMobileActions) {
|
|
218
|
+
t16 = headerRightInTopBar && renderMobileActions ? renderMobileActions(headerRight) : null;
|
|
219
|
+
$[30] = headerRight;
|
|
220
|
+
$[31] = headerRightInTopBar;
|
|
221
|
+
$[32] = renderMobileActions;
|
|
222
|
+
$[33] = t16;
|
|
223
|
+
} else {
|
|
224
|
+
t16 = $[33];
|
|
225
|
+
}
|
|
226
|
+
const t18 = animated && "motion-base";
|
|
227
|
+
const t19 = comfortable ? "px-4 py-6 sm:px-6" : "p-3 sm:px-4";
|
|
228
|
+
const t20 = hideOnMobile && "hidden md:block";
|
|
229
|
+
if ($[34] !== t18 || $[35] !== t19 || $[36] !== t20) {
|
|
230
|
+
t15 = cn("relative", t18, t19, t20);
|
|
231
|
+
$[34] = t18;
|
|
232
|
+
$[35] = t19;
|
|
233
|
+
$[36] = t20;
|
|
234
|
+
$[37] = t15;
|
|
235
|
+
} else {
|
|
236
|
+
t15 = $[37];
|
|
237
|
+
}
|
|
238
|
+
const t21 = titleRowMinHeight && "min-h-10";
|
|
239
|
+
const t22 = headerRightInPage ? threeCol ? "grid-cols-[minmax(0,1fr)_minmax(0,auto)] md:grid-cols-[minmax(0,1fr)_minmax(0,1fr)_minmax(0,1fr)]" : "grid-cols-[minmax(0,1fr)_minmax(0,auto)]" : "grid-cols-1";
|
|
240
|
+
const t23 = maxWidth && "mx-auto w-full max-w-5xl";
|
|
241
|
+
const t24 = insetHeader && "px-4";
|
|
242
|
+
if ($[38] !== t21 || $[39] !== t22 || $[40] !== t23 || $[41] !== t24) {
|
|
243
|
+
t13 = cn("relative grid items-center gap-2 sm:gap-3", t21, t22, t23, t24);
|
|
244
|
+
$[38] = t21;
|
|
245
|
+
$[39] = t22;
|
|
246
|
+
$[40] = t23;
|
|
247
|
+
$[41] = t24;
|
|
248
|
+
$[42] = t13;
|
|
249
|
+
} else {
|
|
250
|
+
t13 = $[42];
|
|
251
|
+
}
|
|
252
|
+
t14 = inline ? /*#__PURE__*/_jsxs("div", {
|
|
253
|
+
className: cn("flex min-w-0 items-center gap-2 sm:gap-3", threeCol && headerRightInPage && !headerCenter && "md:col-span-2"),
|
|
254
|
+
children: [showBack ? /*#__PURE__*/_jsx(Button, {
|
|
255
|
+
size: "icon",
|
|
256
|
+
variant: "outline",
|
|
257
|
+
onClick: onBack ?? _temp,
|
|
258
|
+
"aria-label": "Go back",
|
|
259
|
+
className: "motion-press max-sm:hit-target h-9 w-9 shrink-0 hover:scale-[1.03] active:scale-[0.96]",
|
|
260
|
+
children: /*#__PURE__*/_jsx(IconArrowLeft, {
|
|
261
|
+
size: 16,
|
|
262
|
+
className: "text-muted-foreground"
|
|
263
|
+
})
|
|
264
|
+
}) : null, title ? /*#__PURE__*/_jsx(TitleSlot, {
|
|
265
|
+
enabled: headerMotion,
|
|
266
|
+
className: cn("flex-1", titleAfterInline && "sm:max-w-[calc(75%-4rem)]", titleClass),
|
|
267
|
+
children: title
|
|
268
|
+
}) : null, leftSection != null ? /*#__PURE__*/_jsx(Slot, {
|
|
269
|
+
enabled: headerMotion,
|
|
270
|
+
className: "shrink-0",
|
|
271
|
+
children: leftSection
|
|
272
|
+
}) : null, titleAfterInline ? /*#__PURE__*/_jsx("div", {
|
|
273
|
+
className: "shrink-0 sm:absolute sm:left-1/2 sm:top-1/2 sm:-translate-x-1/2 sm:-translate-y-1/2",
|
|
274
|
+
children: titleAfter
|
|
275
|
+
}) : null]
|
|
276
|
+
}) : /*#__PURE__*/_jsxs("div", {
|
|
277
|
+
className: cn("flex min-w-0 flex-col gap-1", threeCol && headerRightInPage && !headerCenter && "md:col-span-2"),
|
|
278
|
+
children: [leftSection != null ? /*#__PURE__*/_jsxs("div", {
|
|
279
|
+
className: "flex min-w-0 items-center gap-2 sm:gap-3",
|
|
280
|
+
children: [title ? /*#__PURE__*/_jsx(TitleSlot, {
|
|
281
|
+
enabled: headerMotion,
|
|
282
|
+
className: cn("flex-1", titleClass),
|
|
283
|
+
children: title
|
|
284
|
+
}) : null, /*#__PURE__*/_jsx(Slot, {
|
|
285
|
+
enabled: headerMotion,
|
|
286
|
+
className: "shrink-0",
|
|
287
|
+
children: leftSection
|
|
288
|
+
})]
|
|
289
|
+
}) : title ? /*#__PURE__*/_jsx(TitleSlot, {
|
|
290
|
+
enabled: headerMotion,
|
|
291
|
+
className: titleClass,
|
|
292
|
+
children: title
|
|
293
|
+
}) : null, description ? /*#__PURE__*/_jsx("p", {
|
|
294
|
+
className: "hidden text-sm text-muted-foreground md:block",
|
|
295
|
+
children: description
|
|
296
|
+
}) : null]
|
|
297
|
+
});
|
|
89
298
|
}
|
|
90
|
-
t8 = inline ? /*#__PURE__*/_jsxs("div", {
|
|
91
|
-
className: cn("flex min-w-0 items-center gap-2 sm:gap-3", threeCol && headerRightInPage && !headerCenter && "md:col-span-2"),
|
|
92
|
-
children: [showBack ? /*#__PURE__*/_jsx(Button, {
|
|
93
|
-
size: "icon",
|
|
94
|
-
variant: "outline",
|
|
95
|
-
onClick: onBack ?? _temp,
|
|
96
|
-
"aria-label": "Go back",
|
|
97
|
-
className: "motion-press max-sm:hit-target h-9 w-9 shrink-0 hover:scale-[1.03] active:scale-[0.96]",
|
|
98
|
-
children: /*#__PURE__*/_jsx(IconArrowLeft, {
|
|
99
|
-
size: 16,
|
|
100
|
-
className: "text-muted-foreground"
|
|
101
|
-
})
|
|
102
|
-
}) : null, title ? /*#__PURE__*/_jsx("h1", {
|
|
103
|
-
className: cn("flex-1", titleAfterInline && "sm:max-w-[calc(75%-4rem)]", titleClass),
|
|
104
|
-
children: title
|
|
105
|
-
}) : null, titleAfterInline ? /*#__PURE__*/_jsx("div", {
|
|
106
|
-
className: "shrink-0 sm:absolute sm:left-1/2 sm:top-1/2 sm:-translate-x-1/2 sm:-translate-y-1/2",
|
|
107
|
-
children: titleAfter
|
|
108
|
-
}) : null]
|
|
109
|
-
}) : /*#__PURE__*/_jsxs("div", {
|
|
110
|
-
className: "flex min-w-0 flex-col gap-1",
|
|
111
|
-
children: [title ? /*#__PURE__*/_jsx("h1", {
|
|
112
|
-
className: titleClass,
|
|
113
|
-
children: title
|
|
114
|
-
}) : null, description ? /*#__PURE__*/_jsx("p", {
|
|
115
|
-
className: "hidden text-sm text-muted-foreground md:block",
|
|
116
|
-
children: description
|
|
117
|
-
}) : null]
|
|
118
|
-
});
|
|
119
299
|
$[0] = animated;
|
|
120
300
|
$[1] = comfortable;
|
|
121
301
|
$[2] = description;
|
|
122
302
|
$[3] = headerCenter;
|
|
123
|
-
$[4] =
|
|
124
|
-
$[5] =
|
|
125
|
-
$[6] =
|
|
126
|
-
$[7] =
|
|
127
|
-
$[8] =
|
|
128
|
-
$[9] =
|
|
129
|
-
$[10] =
|
|
130
|
-
$[11] =
|
|
131
|
-
$[12] =
|
|
132
|
-
$[13] =
|
|
133
|
-
$[14] =
|
|
134
|
-
$[15] =
|
|
135
|
-
$[16] =
|
|
136
|
-
$[17] =
|
|
137
|
-
$[18] =
|
|
138
|
-
$[19] =
|
|
139
|
-
$[20] =
|
|
140
|
-
$[21] =
|
|
303
|
+
$[4] = headerMotion;
|
|
304
|
+
$[5] = headerRight;
|
|
305
|
+
$[6] = headerRightInPage;
|
|
306
|
+
$[7] = headerRightInTopBar;
|
|
307
|
+
$[8] = hideHeader;
|
|
308
|
+
$[9] = hideOnMobile;
|
|
309
|
+
$[10] = inline;
|
|
310
|
+
$[11] = insetHeader;
|
|
311
|
+
$[12] = isStringTitle;
|
|
312
|
+
$[13] = leftSection;
|
|
313
|
+
$[14] = maxWidth;
|
|
314
|
+
$[15] = onBack;
|
|
315
|
+
$[16] = renderMobileActions;
|
|
316
|
+
$[17] = responsiveTitle;
|
|
317
|
+
$[18] = showBack;
|
|
318
|
+
$[19] = threeCol;
|
|
319
|
+
$[20] = title;
|
|
320
|
+
$[21] = titleAfter;
|
|
321
|
+
$[22] = titleAfterInline;
|
|
322
|
+
$[23] = titleRowMinHeight;
|
|
323
|
+
$[24] = cssSlotMotion;
|
|
324
|
+
$[25] = t13;
|
|
325
|
+
$[26] = t14;
|
|
326
|
+
$[27] = t15;
|
|
327
|
+
$[28] = t16;
|
|
328
|
+
$[29] = t17;
|
|
141
329
|
} else {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
330
|
+
cssSlotMotion = $[24];
|
|
331
|
+
t13 = $[25];
|
|
332
|
+
t14 = $[26];
|
|
333
|
+
t15 = $[27];
|
|
334
|
+
t16 = $[28];
|
|
335
|
+
t17 = $[29];
|
|
336
|
+
}
|
|
337
|
+
if (t17 !== Symbol.for("react.early_return_sentinel")) {
|
|
338
|
+
return t17;
|
|
146
339
|
}
|
|
147
|
-
let
|
|
148
|
-
if ($[
|
|
149
|
-
|
|
150
|
-
|
|
340
|
+
let t18;
|
|
341
|
+
if ($[43] !== cssSlotMotion || $[44] !== headerCenter || $[45] !== headerMotion) {
|
|
342
|
+
t18 = headerCenter ? /*#__PURE__*/_jsx(Slot, {
|
|
343
|
+
enabled: headerMotion,
|
|
344
|
+
delay: 0.06,
|
|
345
|
+
className: cn("hidden min-w-0 justify-center md:flex", cssSlotMotion && "animate-in fade-in duration-200"),
|
|
151
346
|
children: /*#__PURE__*/_jsx("div", {
|
|
152
347
|
className: "w-full max-w-xl",
|
|
153
348
|
children: headerCenter
|
|
154
349
|
})
|
|
155
350
|
}) : null;
|
|
156
|
-
$[
|
|
157
|
-
$[
|
|
158
|
-
$[
|
|
351
|
+
$[43] = cssSlotMotion;
|
|
352
|
+
$[44] = headerCenter;
|
|
353
|
+
$[45] = headerMotion;
|
|
354
|
+
$[46] = t18;
|
|
159
355
|
} else {
|
|
160
|
-
|
|
356
|
+
t18 = $[46];
|
|
161
357
|
}
|
|
162
|
-
let
|
|
163
|
-
if ($[
|
|
164
|
-
|
|
165
|
-
|
|
358
|
+
let t19;
|
|
359
|
+
if ($[47] !== cssSlotMotion || $[48] !== headerMotion || $[49] !== headerRight || $[50] !== headerRightInPage) {
|
|
360
|
+
t19 = headerRightInPage ? /*#__PURE__*/_jsx(Slot, {
|
|
361
|
+
enabled: headerMotion,
|
|
362
|
+
delay: 0.1,
|
|
363
|
+
className: cn("flex min-h-10 max-sm:min-w-0 max-sm:flex-wrap items-center justify-end gap-1.5 sm:gap-2 justify-self-end", cssSlotMotion && "animate-in fade-in slide-in-from-right-1 duration-200"),
|
|
166
364
|
children: headerRight
|
|
167
365
|
}) : null;
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
366
|
+
$[47] = cssSlotMotion;
|
|
367
|
+
$[48] = headerMotion;
|
|
368
|
+
$[49] = headerRight;
|
|
369
|
+
$[50] = headerRightInPage;
|
|
370
|
+
$[51] = t19;
|
|
172
371
|
} else {
|
|
173
|
-
|
|
372
|
+
t19 = $[51];
|
|
174
373
|
}
|
|
175
|
-
let
|
|
176
|
-
if ($[
|
|
177
|
-
|
|
178
|
-
className:
|
|
179
|
-
children: [
|
|
374
|
+
let t20;
|
|
375
|
+
if ($[52] !== t13 || $[53] !== t14 || $[54] !== t18 || $[55] !== t19) {
|
|
376
|
+
t20 = /*#__PURE__*/_jsxs("div", {
|
|
377
|
+
className: t13,
|
|
378
|
+
children: [t14, t18, t19]
|
|
180
379
|
});
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
380
|
+
$[52] = t13;
|
|
381
|
+
$[53] = t14;
|
|
382
|
+
$[54] = t18;
|
|
383
|
+
$[55] = t19;
|
|
384
|
+
$[56] = t20;
|
|
186
385
|
} else {
|
|
187
|
-
|
|
386
|
+
t20 = $[56];
|
|
188
387
|
}
|
|
189
|
-
let
|
|
190
|
-
if ($[
|
|
191
|
-
|
|
388
|
+
let t21;
|
|
389
|
+
if ($[57] !== titleAfter || $[58] !== titleAfterOwnRow) {
|
|
390
|
+
t21 = titleAfterOwnRow ? /*#__PURE__*/_jsx("div", {
|
|
192
391
|
className: "mt-2 min-w-0 overflow-x-auto scrollbar-none",
|
|
193
392
|
children: titleAfter
|
|
194
393
|
}) : null;
|
|
195
|
-
$[
|
|
196
|
-
$[
|
|
197
|
-
$[
|
|
394
|
+
$[57] = titleAfter;
|
|
395
|
+
$[58] = titleAfterOwnRow;
|
|
396
|
+
$[59] = t21;
|
|
198
397
|
} else {
|
|
199
|
-
|
|
398
|
+
t21 = $[59];
|
|
200
399
|
}
|
|
201
|
-
let
|
|
202
|
-
if ($[
|
|
203
|
-
|
|
204
|
-
|
|
400
|
+
let t22;
|
|
401
|
+
if ($[60] !== cssSlotMotion || $[61] !== headerCenter || $[62] !== headerMotion) {
|
|
402
|
+
t22 = headerCenter ? /*#__PURE__*/_jsx(Slot, {
|
|
403
|
+
enabled: headerMotion,
|
|
404
|
+
delay: 0.06,
|
|
405
|
+
className: cn("mt-2 md:hidden", cssSlotMotion && "animate-in fade-in duration-200"),
|
|
205
406
|
children: headerCenter
|
|
206
407
|
}) : null;
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
408
|
+
$[60] = cssSlotMotion;
|
|
409
|
+
$[61] = headerCenter;
|
|
410
|
+
$[62] = headerMotion;
|
|
411
|
+
$[63] = t22;
|
|
210
412
|
} else {
|
|
211
|
-
|
|
413
|
+
t22 = $[63];
|
|
212
414
|
}
|
|
213
|
-
let
|
|
214
|
-
if ($[
|
|
215
|
-
|
|
216
|
-
className: cn("mt-3 space-y-3",
|
|
415
|
+
let t23;
|
|
416
|
+
if ($[64] !== hasTabs || $[65] !== hasToolbar || $[66] !== insetHeader || $[67] !== maxWidth || $[68] !== tabs || $[69] !== toolbar) {
|
|
417
|
+
t23 = hasToolbar || hasTabs ? /*#__PURE__*/_jsxs("div", {
|
|
418
|
+
className: cn("mt-3 space-y-3", maxWidth && "mx-auto w-full max-w-5xl", insetHeader && "px-4"),
|
|
217
419
|
children: [hasToolbar ? /*#__PURE__*/_jsx("div", {
|
|
218
420
|
className: "flex min-h-9 flex-wrap items-center gap-1.5 sm:gap-2",
|
|
219
421
|
children: toolbar
|
|
@@ -222,42 +424,56 @@ export function PageHeaderBar(t0) {
|
|
|
222
424
|
children: tabs
|
|
223
425
|
}) : null]
|
|
224
426
|
}) : null;
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
427
|
+
$[64] = hasTabs;
|
|
428
|
+
$[65] = hasToolbar;
|
|
429
|
+
$[66] = insetHeader;
|
|
430
|
+
$[67] = maxWidth;
|
|
431
|
+
$[68] = tabs;
|
|
432
|
+
$[69] = toolbar;
|
|
433
|
+
$[70] = t23;
|
|
231
434
|
} else {
|
|
232
|
-
|
|
435
|
+
t23 = $[70];
|
|
233
436
|
}
|
|
234
|
-
let
|
|
235
|
-
if ($[
|
|
236
|
-
|
|
237
|
-
className:
|
|
238
|
-
children: [
|
|
437
|
+
let t24;
|
|
438
|
+
if ($[71] !== t15 || $[72] !== t20 || $[73] !== t21 || $[74] !== t22 || $[75] !== t23) {
|
|
439
|
+
t24 = /*#__PURE__*/_jsxs("div", {
|
|
440
|
+
className: t15,
|
|
441
|
+
children: [t20, t21, t22, t23]
|
|
239
442
|
});
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
443
|
+
$[71] = t15;
|
|
444
|
+
$[72] = t20;
|
|
445
|
+
$[73] = t21;
|
|
446
|
+
$[74] = t22;
|
|
447
|
+
$[75] = t23;
|
|
448
|
+
$[76] = t24;
|
|
246
449
|
} else {
|
|
247
|
-
|
|
450
|
+
t24 = $[76];
|
|
248
451
|
}
|
|
249
|
-
let
|
|
250
|
-
if ($[
|
|
251
|
-
|
|
252
|
-
children: [
|
|
452
|
+
let t25;
|
|
453
|
+
if ($[77] !== t16 || $[78] !== t24) {
|
|
454
|
+
t25 = /*#__PURE__*/_jsxs(_Fragment, {
|
|
455
|
+
children: [t16, t24]
|
|
253
456
|
});
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
256
|
-
$[
|
|
457
|
+
$[77] = t16;
|
|
458
|
+
$[78] = t24;
|
|
459
|
+
$[79] = t25;
|
|
460
|
+
} else {
|
|
461
|
+
t25 = $[79];
|
|
462
|
+
}
|
|
463
|
+
const bar = t25;
|
|
464
|
+
let t26;
|
|
465
|
+
if ($[80] !== bar || $[81] !== headerMotion) {
|
|
466
|
+
t26 = headerMotion ? /*#__PURE__*/_jsx(LazyMotion, {
|
|
467
|
+
features: domMax,
|
|
468
|
+
children: bar
|
|
469
|
+
}) : bar;
|
|
470
|
+
$[80] = bar;
|
|
471
|
+
$[81] = headerMotion;
|
|
472
|
+
$[82] = t26;
|
|
257
473
|
} else {
|
|
258
|
-
|
|
474
|
+
t26 = $[82];
|
|
259
475
|
}
|
|
260
|
-
return
|
|
476
|
+
return t26;
|
|
261
477
|
}
|
|
262
478
|
function _temp() {
|
|
263
479
|
return window.history.back();
|