@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.
Files changed (80) hide show
  1. package/app/src/settings/SettingsPage.tsx +1 -1
  2. package/app/src/settings/SettingsSection.tsx +1 -1
  3. package/app/src/settings/ThemeModePicker.tsx +10 -2
  4. package/dist/app/src/settings/SettingsPage.js +1 -1
  5. package/dist/app/src/settings/SettingsSection.js +1 -1
  6. package/dist/app/src/settings/ThemeModePicker.js +11 -5
  7. package/dist/shell/src/PageHeaderBar.js +391 -175
  8. package/dist/shell/src/PageWrapper.js +159 -103
  9. package/dist/shell/src/SidebarChrome.js +1 -1
  10. package/dist/shell/src/SidebarPanel.js +1 -1
  11. package/dist/shell/src/SidebarResize.js +2 -2
  12. package/dist/shell/src/SidebarUpgradeCard.js +1 -1
  13. package/dist/shell/src/app-shell-classes.js +1 -1
  14. package/dist/src/ai-elements/activity-question.js +2 -2
  15. package/dist/src/ai-elements/message.js +2 -2
  16. package/dist/src/ai-elements/model-picker-content.js +1 -1
  17. package/dist/src/ai-elements/model-picker.js +1 -1
  18. package/dist/src/ai-elements/prompt-input.js +1 -1
  19. package/dist/src/generative-ui/content.js +3 -3
  20. package/dist/src/generative-ui/layout.js +1 -1
  21. package/dist/src/kibo/kanban.js +1 -1
  22. package/dist/src/kibo/list.js +1 -1
  23. package/dist/src/kibo/video-player.js +0 -1
  24. package/dist/src/marketing/ProductHeroOrbit.js +26 -32
  25. package/dist/src/marketing/createLandingKit.js +1 -1
  26. package/dist/src/marketing/landing.js +1 -1
  27. package/dist/src/ui/_menu-classes.alt.js +1 -1
  28. package/dist/src/ui/_menu-classes.js +1 -1
  29. package/dist/src/ui/bulk-action-bar.js +1 -1
  30. package/dist/src/ui/calendar.js +1 -1
  31. package/dist/src/ui/card.js +1 -1
  32. package/dist/src/ui/clear-input.js +33 -46
  33. package/dist/src/ui/clearInputDissolve.js +2 -57
  34. package/dist/src/ui/command.js +3 -3
  35. package/dist/src/ui/count-pop.js +1 -1
  36. package/dist/src/ui/dialog.js +1 -1
  37. package/dist/src/ui/media-preview.js +1 -1
  38. package/dist/src/ui/progress.js +1 -1
  39. package/dist/src/ui/radix-select.js +1 -1
  40. package/dist/src/ui/select.js +1 -1
  41. package/dist/src/ui/table.js +1 -1
  42. package/dist/tokens/src/css/clear-input.css +4 -19
  43. package/package.json +1 -1
  44. package/shell/src/PageHeaderBar.tsx +162 -21
  45. package/shell/src/PageWrapper.tsx +116 -33
  46. package/shell/src/SidebarChrome.tsx +1 -1
  47. package/shell/src/SidebarPanel.tsx +1 -1
  48. package/shell/src/SidebarResize.tsx +2 -2
  49. package/shell/src/SidebarUpgradeCard.tsx +1 -1
  50. package/shell/src/app-shell-classes.ts +1 -1
  51. package/src/ai-elements/activity-question.tsx +2 -2
  52. package/src/ai-elements/message.tsx +3 -3
  53. package/src/ai-elements/model-picker-content.tsx +1 -1
  54. package/src/ai-elements/model-picker.tsx +1 -1
  55. package/src/ai-elements/prompt-input.tsx +1 -1
  56. package/src/generative-ui/content.tsx +3 -3
  57. package/src/generative-ui/layout.tsx +1 -1
  58. package/src/kibo/kanban.tsx +1 -1
  59. package/src/kibo/list.tsx +1 -1
  60. package/src/kibo/video-player.tsx +0 -2
  61. package/src/marketing/ProductHeroOrbit.tsx +3 -4
  62. package/src/marketing/createLandingKit.tsx +1 -1
  63. package/src/marketing/landing.tsx +1 -1
  64. package/src/ui/_menu-classes.alt.ts +1 -1
  65. package/src/ui/_menu-classes.ts +1 -1
  66. package/src/ui/bulk-action-bar.tsx +1 -1
  67. package/src/ui/calendar.tsx +1 -1
  68. package/src/ui/card.tsx +1 -1
  69. package/src/ui/clear-input.tsx +1 -5
  70. package/src/ui/clearInputDissolve.ts +2 -85
  71. package/src/ui/command.tsx +3 -3
  72. package/src/ui/count-pop.tsx +1 -1
  73. package/src/ui/dialog.tsx +1 -1
  74. package/src/ui/media-preview.tsx +1 -1
  75. package/src/ui/progress.tsx +1 -1
  76. package/src/ui/radix-select.tsx +1 -1
  77. package/src/ui/select.tsx +1 -1
  78. package/src/ui/table.tsx +1 -1
  79. package/tokens/examples/tokens-moved/Fixture.tsx +1 -1
  80. 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(67);
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
- showBack: t3,
163
+ contentMaxWidth: t3,
164
+ titleScale: t4,
165
+ showBack: t5,
27
166
  onBack,
28
- animated: t4,
29
- titleLayout: t5,
30
- headerColumns: t6,
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 showBack = t3 === undefined ? false : t3;
37
- const animated = t4 === undefined ? false : t4;
38
- const titleLayout = t5 === undefined ? "stacked" : t5;
39
- const headerColumns = t6 === undefined ? "two" : t6;
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 t10;
52
- let t7;
53
- let t8;
54
- let t9;
55
- if ($[0] !== animated || $[1] !== comfortable || $[2] !== description || $[3] !== headerCenter || $[4] !== headerRight || $[5] !== headerRightInPage || $[6] !== headerRightInTopBar || $[7] !== hideOnMobile || $[8] !== inline || $[9] !== insetHeader || $[10] !== isStringTitle || $[11] !== onBack || $[12] !== renderMobileActions || $[13] !== showBack || $[14] !== threeCol || $[15] !== title || $[16] !== titleAfter || $[17] !== titleAfterInline) {
56
- const titleClass = cn("min-w-0 text-foreground", inline ? "text-base font-semibold tracking-[-0.02em] sm:text-lg md:text-xl" : "text-xl font-semibold leading-tight tracking-tight", animated && "animate-in fade-in slide-in-from-left-1 duration-300", isStringTitle ? inline ? "hidden whitespace-nowrap text-balance lg:block" : "hidden text-balance whitespace-nowrap md:block" : "overflow-hidden");
57
- if ($[22] !== headerRight || $[23] !== headerRightInTopBar || $[24] !== renderMobileActions) {
58
- t10 = headerRightInTopBar && renderMobileActions ? renderMobileActions(headerRight) : null;
59
- $[22] = headerRight;
60
- $[23] = headerRightInTopBar;
61
- $[24] = renderMobileActions;
62
- $[25] = t10;
63
- } else {
64
- t10 = $[25];
65
- }
66
- const t11 = animated && "motion-base";
67
- const t12 = comfortable ? "px-4 py-6 sm:px-6" : "p-3 sm:px-4";
68
- const t13 = hideOnMobile && "hidden md:block";
69
- if ($[26] !== t11 || $[27] !== t12 || $[28] !== t13) {
70
- t9 = cn("relative", t11, t12, t13);
71
- $[26] = t11;
72
- $[27] = t12;
73
- $[28] = t13;
74
- $[29] = t9;
75
- } else {
76
- t9 = $[29];
77
- }
78
- const t14 = 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";
79
- const t15 = comfortable && "mx-auto w-full max-w-5xl";
80
- const t16 = insetHeader && "px-4";
81
- if ($[30] !== t14 || $[31] !== t15 || $[32] !== t16) {
82
- t7 = cn("relative grid items-center gap-2 sm:gap-3", t14, t15, t16);
83
- $[30] = t14;
84
- $[31] = t15;
85
- $[32] = t16;
86
- $[33] = t7;
87
- } else {
88
- t7 = $[33];
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] = headerRight;
124
- $[5] = headerRightInPage;
125
- $[6] = headerRightInTopBar;
126
- $[7] = hideOnMobile;
127
- $[8] = inline;
128
- $[9] = insetHeader;
129
- $[10] = isStringTitle;
130
- $[11] = onBack;
131
- $[12] = renderMobileActions;
132
- $[13] = showBack;
133
- $[14] = threeCol;
134
- $[15] = title;
135
- $[16] = titleAfter;
136
- $[17] = titleAfterInline;
137
- $[18] = t10;
138
- $[19] = t7;
139
- $[20] = t8;
140
- $[21] = t9;
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
- t10 = $[18];
143
- t7 = $[19];
144
- t8 = $[20];
145
- t9 = $[21];
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 t11;
148
- if ($[34] !== animated || $[35] !== headerCenter) {
149
- t11 = headerCenter ? /*#__PURE__*/_jsx("div", {
150
- className: cn("hidden min-w-0 justify-center md:flex", animated && "animate-in fade-in duration-300"),
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
- $[34] = animated;
157
- $[35] = headerCenter;
158
- $[36] = t11;
351
+ $[43] = cssSlotMotion;
352
+ $[44] = headerCenter;
353
+ $[45] = headerMotion;
354
+ $[46] = t18;
159
355
  } else {
160
- t11 = $[36];
356
+ t18 = $[46];
161
357
  }
162
- let t12;
163
- if ($[37] !== animated || $[38] !== headerRight || $[39] !== headerRightInPage) {
164
- t12 = headerRightInPage ? /*#__PURE__*/_jsx("div", {
165
- 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", animated && "animate-in fade-in slide-in-from-right-1 duration-300"),
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
- $[37] = animated;
169
- $[38] = headerRight;
170
- $[39] = headerRightInPage;
171
- $[40] = t12;
366
+ $[47] = cssSlotMotion;
367
+ $[48] = headerMotion;
368
+ $[49] = headerRight;
369
+ $[50] = headerRightInPage;
370
+ $[51] = t19;
172
371
  } else {
173
- t12 = $[40];
372
+ t19 = $[51];
174
373
  }
175
- let t13;
176
- if ($[41] !== t11 || $[42] !== t12 || $[43] !== t7 || $[44] !== t8) {
177
- t13 = /*#__PURE__*/_jsxs("div", {
178
- className: t7,
179
- children: [t8, t11, t12]
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
- $[41] = t11;
182
- $[42] = t12;
183
- $[43] = t7;
184
- $[44] = t8;
185
- $[45] = t13;
380
+ $[52] = t13;
381
+ $[53] = t14;
382
+ $[54] = t18;
383
+ $[55] = t19;
384
+ $[56] = t20;
186
385
  } else {
187
- t13 = $[45];
386
+ t20 = $[56];
188
387
  }
189
- let t14;
190
- if ($[46] !== titleAfter || $[47] !== titleAfterOwnRow) {
191
- t14 = titleAfterOwnRow ? /*#__PURE__*/_jsx("div", {
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
- $[46] = titleAfter;
196
- $[47] = titleAfterOwnRow;
197
- $[48] = t14;
394
+ $[57] = titleAfter;
395
+ $[58] = titleAfterOwnRow;
396
+ $[59] = t21;
198
397
  } else {
199
- t14 = $[48];
398
+ t21 = $[59];
200
399
  }
201
- let t15;
202
- if ($[49] !== animated || $[50] !== headerCenter) {
203
- t15 = headerCenter ? /*#__PURE__*/_jsx("div", {
204
- className: cn("mt-2 md:hidden", animated && "animate-in fade-in duration-300"),
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
- $[49] = animated;
208
- $[50] = headerCenter;
209
- $[51] = t15;
408
+ $[60] = cssSlotMotion;
409
+ $[61] = headerCenter;
410
+ $[62] = headerMotion;
411
+ $[63] = t22;
210
412
  } else {
211
- t15 = $[51];
413
+ t22 = $[63];
212
414
  }
213
- let t16;
214
- if ($[52] !== comfortable || $[53] !== hasTabs || $[54] !== hasToolbar || $[55] !== tabs || $[56] !== toolbar) {
215
- t16 = hasToolbar || hasTabs ? /*#__PURE__*/_jsxs("div", {
216
- className: cn("mt-3 space-y-3", comfortable && "mx-auto w-full max-w-5xl"),
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
- $[52] = comfortable;
226
- $[53] = hasTabs;
227
- $[54] = hasToolbar;
228
- $[55] = tabs;
229
- $[56] = toolbar;
230
- $[57] = t16;
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
- t16 = $[57];
435
+ t23 = $[70];
233
436
  }
234
- let t17;
235
- if ($[58] !== t13 || $[59] !== t14 || $[60] !== t15 || $[61] !== t16 || $[62] !== t9) {
236
- t17 = /*#__PURE__*/_jsxs("div", {
237
- className: t9,
238
- children: [t13, t14, t15, t16]
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
- $[58] = t13;
241
- $[59] = t14;
242
- $[60] = t15;
243
- $[61] = t16;
244
- $[62] = t9;
245
- $[63] = t17;
443
+ $[71] = t15;
444
+ $[72] = t20;
445
+ $[73] = t21;
446
+ $[74] = t22;
447
+ $[75] = t23;
448
+ $[76] = t24;
246
449
  } else {
247
- t17 = $[63];
450
+ t24 = $[76];
248
451
  }
249
- let t18;
250
- if ($[64] !== t10 || $[65] !== t17) {
251
- t18 = /*#__PURE__*/_jsxs(_Fragment, {
252
- children: [t10, t17]
452
+ let t25;
453
+ if ($[77] !== t16 || $[78] !== t24) {
454
+ t25 = /*#__PURE__*/_jsxs(_Fragment, {
455
+ children: [t16, t24]
253
456
  });
254
- $[64] = t10;
255
- $[65] = t17;
256
- $[66] = t18;
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
- t18 = $[66];
474
+ t26 = $[82];
259
475
  }
260
- return t18;
476
+ return t26;
261
477
  }
262
478
  function _temp() {
263
479
  return window.history.back();