@vvedantb/ui 0.62.1 → 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 (88) 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/SidePanelTabs.js +7 -5
  10. package/dist/shell/src/SidebarChrome.js +1 -1
  11. package/dist/shell/src/SidebarPanel.js +1 -1
  12. package/dist/shell/src/SidebarResize.js +2 -2
  13. package/dist/shell/src/SidebarUpgradeCard.js +1 -1
  14. package/dist/shell/src/app-shell-classes.js +1 -1
  15. package/dist/src/ai-elements/activity-question.js +2 -2
  16. package/dist/src/ai-elements/message.js +2 -2
  17. package/dist/src/ai-elements/model-picker-content.js +1 -1
  18. package/dist/src/ai-elements/model-picker.js +1 -1
  19. package/dist/src/ai-elements/prompt-input.js +1 -1
  20. package/dist/src/client.js +1 -1
  21. package/dist/src/generative-ui/content.js +3 -3
  22. package/dist/src/generative-ui/layout.js +1 -1
  23. package/dist/src/index.js +1 -1
  24. package/dist/src/kibo/kanban.js +1 -1
  25. package/dist/src/kibo/list.js +1 -1
  26. package/dist/src/kibo/video-player.js +0 -1
  27. package/dist/src/marketing/ProductHeroOrbit.js +26 -32
  28. package/dist/src/marketing/createLandingKit.js +1 -1
  29. package/dist/src/marketing/landing.js +1 -1
  30. package/dist/src/motion/dock-motion.js +36 -16
  31. package/dist/src/ui/_menu-classes.alt.js +1 -1
  32. package/dist/src/ui/_menu-classes.js +1 -1
  33. package/dist/src/ui/bulk-action-bar.js +1 -1
  34. package/dist/src/ui/calendar.js +1 -1
  35. package/dist/src/ui/card.js +1 -1
  36. package/dist/src/ui/clear-input.js +33 -46
  37. package/dist/src/ui/clearInputDissolve.js +2 -57
  38. package/dist/src/ui/command.js +3 -3
  39. package/dist/src/ui/count-pop.js +1 -1
  40. package/dist/src/ui/dialog.js +1 -1
  41. package/dist/src/ui/media-preview.js +1 -1
  42. package/dist/src/ui/progress.js +1 -1
  43. package/dist/src/ui/radix-select.js +1 -1
  44. package/dist/src/ui/select.js +1 -1
  45. package/dist/src/ui/table.js +1 -1
  46. package/dist/tokens/src/css/clear-input.css +4 -19
  47. package/package.json +1 -1
  48. package/shell/src/PageHeaderBar.tsx +162 -21
  49. package/shell/src/PageWrapper.tsx +116 -33
  50. package/shell/src/SidePanelTabs.tsx +7 -5
  51. package/shell/src/SidebarChrome.tsx +1 -1
  52. package/shell/src/SidebarPanel.tsx +1 -1
  53. package/shell/src/SidebarResize.tsx +2 -2
  54. package/shell/src/SidebarUpgradeCard.tsx +1 -1
  55. package/shell/src/app-shell-classes.ts +1 -1
  56. package/src/ai-elements/activity-question.tsx +2 -2
  57. package/src/ai-elements/message.tsx +3 -3
  58. package/src/ai-elements/model-picker-content.tsx +1 -1
  59. package/src/ai-elements/model-picker.tsx +1 -1
  60. package/src/ai-elements/prompt-input.tsx +1 -1
  61. package/src/client.ts +1 -1
  62. package/src/generative-ui/content.tsx +3 -3
  63. package/src/generative-ui/layout.tsx +1 -1
  64. package/src/index.ts +1 -1
  65. package/src/kibo/kanban.tsx +1 -1
  66. package/src/kibo/list.tsx +1 -1
  67. package/src/kibo/video-player.tsx +0 -2
  68. package/src/marketing/ProductHeroOrbit.tsx +3 -4
  69. package/src/marketing/createLandingKit.tsx +1 -1
  70. package/src/marketing/landing.tsx +1 -1
  71. package/src/motion/dock-motion.ts +30 -13
  72. package/src/ui/_menu-classes.alt.ts +1 -1
  73. package/src/ui/_menu-classes.ts +1 -1
  74. package/src/ui/bulk-action-bar.tsx +1 -1
  75. package/src/ui/calendar.tsx +1 -1
  76. package/src/ui/card.tsx +1 -1
  77. package/src/ui/clear-input.tsx +1 -5
  78. package/src/ui/clearInputDissolve.ts +2 -85
  79. package/src/ui/command.tsx +3 -3
  80. package/src/ui/count-pop.tsx +1 -1
  81. package/src/ui/dialog.tsx +1 -1
  82. package/src/ui/media-preview.tsx +1 -1
  83. package/src/ui/progress.tsx +1 -1
  84. package/src/ui/radix-select.tsx +1 -1
  85. package/src/ui/select.tsx +1 -1
  86. package/src/ui/table.tsx +1 -1
  87. package/tokens/examples/tokens-moved/Fixture.tsx +1 -1
  88. 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(29);
13
- let children;
14
- let comfortable;
15
- let fillHeight;
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
- const {
23
- children: t6,
24
- fillHeight: t7,
25
- childPadding: t8,
26
- bodyScrollbar: t9,
27
- ...header
28
- } = t0;
29
- children = t6;
30
- fillHeight = t7 === undefined ? false : t7;
31
- const childPadding = t8 === undefined ? true : t8;
32
- const bodyScrollbar = t9 === undefined ? false : t9;
33
- const {
34
- comfortable: t10,
35
- animated: t11
36
- } = header;
37
- comfortable = t10 === undefined ? false : t10;
38
- const animated = t11 === undefined ? false : t11;
39
- t5 = cn("h-full min-h-0 flex-1 overflow-hidden", animated && "animate-in fade-in duration-300");
40
- t3 = "flex h-full min-h-0 flex-col overflow-hidden";
41
- t4 = /*#__PURE__*/_jsx(PageHeaderBar, {
42
- ...header
43
- });
44
- if ($[9] !== bodyScrollbar || $[10] !== fillHeight) {
45
- t2 = cn("min-h-0 flex-1", fillHeight ? "flex flex-col overflow-hidden" : cn("overflow-auto", bodyScrollbar && "scrollbar"));
46
- $[9] = bodyScrollbar;
47
- $[10] = fillHeight;
48
- $[11] = t2;
49
- } else {
50
- t2 = $[11];
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] = children;
55
- $[2] = comfortable;
56
- $[3] = fillHeight;
57
- $[4] = t1;
58
- $[5] = t2;
59
- $[6] = t3;
60
- $[7] = t4;
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
- children = $[1];
64
- comfortable = $[2];
65
- fillHeight = $[3];
66
- t1 = $[4];
67
- t2 = $[5];
68
- t3 = $[6];
69
- t4 = $[7];
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
- let t6;
73
- if ($[12] !== children || $[13] !== comfortable || $[14] !== fillHeight) {
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 t7;
86
- if ($[16] !== t1 || $[17] !== t6) {
87
- t7 = /*#__PURE__*/_jsx("div", {
88
- className: t1,
89
- children: t6
121
+ let t3;
122
+ if ($[17] !== header) {
123
+ t3 = /*#__PURE__*/_jsx(PageHeaderBar, {
124
+ ...header
90
125
  });
91
- $[16] = t1;
92
- $[17] = t6;
93
- $[18] = t7;
126
+ $[17] = header;
127
+ $[18] = t3;
94
128
  } else {
95
- t7 = $[18];
129
+ t3 = $[18];
96
130
  }
97
- let t8;
98
- if ($[19] !== t2 || $[20] !== t7) {
99
- t8 = /*#__PURE__*/_jsx("div", {
100
- className: t2,
101
- children: t7
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] = t2;
104
- $[20] = t7;
105
- $[21] = t8;
158
+ $[19] = bodyClass;
159
+ $[20] = bodyMotion;
160
+ $[21] = inner;
161
+ $[22] = scrollRef;
162
+ $[23] = t4;
106
163
  } else {
107
- t8 = $[21];
164
+ t4 = $[23];
108
165
  }
109
- let t9;
110
- if ($[22] !== t3 || $[23] !== t4 || $[24] !== t8) {
111
- t9 = /*#__PURE__*/_jsxs("div", {
112
- className: t3,
113
- children: [t4, t8]
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
- $[22] = t3;
116
- $[23] = t4;
117
- $[24] = t8;
118
- $[25] = t9;
172
+ $[24] = t3;
173
+ $[25] = t4;
174
+ $[26] = t5;
119
175
  } else {
120
- t9 = $[25];
176
+ t5 = $[26];
121
177
  }
122
- let t10;
123
- if ($[26] !== t5 || $[27] !== t9) {
124
- t10 = /*#__PURE__*/_jsx("div", {
125
- className: t5,
126
- children: t9
178
+ let t6;
179
+ if ($[27] !== t1 || $[28] !== t5) {
180
+ t6 = /*#__PURE__*/_jsx("div", {
181
+ className: t1,
182
+ children: t5
127
183
  });
128
- $[26] = t5;
129
- $[27] = t9;
130
- $[28] = t10;
184
+ $[27] = t1;
185
+ $[28] = t5;
186
+ $[29] = t6;
131
187
  } else {
132
- t10 = $[28];
188
+ t6 = $[29];
133
189
  }
134
- return t10;
190
+ return t6;
135
191
  }
@@ -1,6 +1,6 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
2
  import { useLayoutEffect, useRef } from "react";
3
- import { dockNudge, dockPopIn, dockPopOut } from "../../src/motion/dock-motion.js";
3
+ import { dockPopIn, dockPopOut, dockSwitch } from "../../src/motion/dock-motion.js";
4
4
  import { Tabs, TabsList, TabsTrigger } from "../../src/ui/tabs.js";
5
5
  import { Tooltip, TooltipContent, TooltipTrigger } from "../../src/ui/tooltip.js";
6
6
  import { cn } from "../../src/utils/cn.js";
@@ -39,8 +39,8 @@ export function popOutSidePanel(root, collapse) {
39
39
 
40
40
  /**
41
41
  * Keeps the card's arrow level with the active rail tab, and plays the card's
42
- * dock motion: pop in when the card appears, a settle when the active tab
43
- * changes. It writes the transform straight to the node (no React state), as
42
+ * dock motion: pop in when the card appears, a content slide when the active
43
+ * tab changes. It writes the transform straight to the node (no React state), as
44
44
  * the tab pill does: the first placement snaps, later moves slide. The arrow
45
45
  * hides when the active tab is scrolled out of the card's height. Measure
46
46
  * before animating: a scaled card reports a scaled rect.
@@ -67,6 +67,7 @@ function useActiveTabArrow(frameRef, cardRef, arrowRef) {
67
67
  const open = c.width > 0;
68
68
  const opened = open && !wasOpen;
69
69
  const switched = open && wasOpen && tab !== null && tab !== lastTab;
70
+ const previousTab = lastTab;
70
71
  wasOpen = open;
71
72
  if (tab) {
72
73
  lastTab = tab;
@@ -97,7 +98,7 @@ function useActiveTabArrow(frameRef, cardRef, arrowRef) {
97
98
  dockPopIn(card, tab, "right", arrow);
98
99
  } else {
99
100
  if (switched) {
100
- dockNudge(card, tab, "right");
101
+ dockSwitch(card, previousTab, tab);
101
102
  }
102
103
  }
103
104
  };
@@ -147,7 +148,8 @@ function useActiveTabArrow(frameRef, cardRef, arrowRef) {
147
148
  * edge, the content a rounded card beside it with an arrow that points at the
148
149
  * active tab; `collapsed` hides the card and the rail stays. Below `md`: a
149
150
  * column, the tab strip on top and the content edge to edge. The card pops
150
- * out of the active tab when it opens and settles on a tab switch; close it
151
+ * out of the active tab when it opens; on a tab switch its content slides in
152
+ * from the side of the new tab; close it
151
153
  * through `popOutSidePanel`.
152
154
  */
153
155
  function Frame(t0) {
@@ -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-semibold leading-tight tracking-tight text-foreground", className);
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-semibold leading-none tracking-tight text-foreground", className);
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.2,
141
- duration: 0.35,
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-semibold",
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-semibold leading-none text-accent-foreground"; // check-tokens-allow: accent
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-bold tracking-wide";
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-semibold",
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-1000";
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-semibold opacity-70",
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-semibold leading-none text-muted-foreground",
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-semibold leading-none text-muted-foreground",
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-semibold text-muted-foreground",
1329
+ className: "block truncate text-xs font-medium text-muted-foreground",
1330
1330
  children: author
1331
1331
  });
1332
1332
  $[11] = author;
@@ -31,7 +31,7 @@ export { SendQueueIcon } from "./ui/send-queue-icon.js";
31
31
  export { BulkActionBar } from "./ui/bulk-action-bar.js";
32
32
  export { CopyLinkMenuItem } from "./ui/copy-link-menu-item.js";
33
33
  export { ToggleSearch } from "./ui/toggle-search.js";
34
- export { DOCK_MOTION_EVENT, DockMotionEvent, dockMotionOff, dockNudge, dockPopIn, dockPopOut, slideNextResize, slideWith } from "./motion/dock-motion.js";
34
+ export { DOCK_MOTION_EVENT, DockMotionEvent, dockMotionOff, dockSwitch, dockPopIn, dockPopOut, slideNextResize, slideWith } from "./motion/dock-motion.js";
35
35
  export { MotionProvider } from "./motion/motion-provider.js";
36
36
  export { useReducedMotionSetting } from "./motion/reduced-motion.js";
37
37
  export { MarqueeOnHover } from "./ui/marquee-on-hover.js";
@@ -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-semibold text-foreground", t1);
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-semibold tabular-nums leading-tight", t2);
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-semibold", TONE_TEXT[tone]),
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-semibold text-foreground",
107
+ className: "text-sm font-medium text-foreground",
108
108
  children: title
109
109
  }) : null;
110
110
  $[0] = title;
package/dist/src/index.js CHANGED
@@ -27,7 +27,7 @@ export { SendQueueIcon } from "./ui/send-queue-icon.js";
27
27
  export { BulkActionBar } from "./ui/bulk-action-bar.js";
28
28
  export { CopyLinkMenuItem } from "./ui/copy-link-menu-item.js";
29
29
  export { ToggleSearch } from "./ui/toggle-search.js";
30
- export { DOCK_MOTION_EVENT, DockMotionEvent, dockMotionOff, dockNudge, dockPopIn, dockPopOut, slideNextResize, slideWith } from "./motion/dock-motion.js";
30
+ export { DOCK_MOTION_EVENT, DockMotionEvent, dockMotionOff, dockSwitch, dockPopIn, dockPopOut, slideNextResize, slideWith } from "./motion/dock-motion.js";
31
31
  export { MotionProvider } from "./motion/motion-provider.js";
32
32
  export { useReducedMotionSetting } from "./motion/reduced-motion.js";
33
33
  export { MarqueeOnHover } from "./ui/marquee-on-hover.js";
@@ -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-semibold text-sm", className);
280
+ t1 = merge("m-0 p-2 font-medium text-sm", className);
281
281
  $[3] = className;
282
282
  $[4] = merge;
283
283
  $[5] = t1;
@@ -47,7 +47,7 @@ export const SortableListHeader = props => {
47
47
  backgroundColor: props.color
48
48
  }
49
49
  }), /*#__PURE__*/_jsx("p", {
50
- className: "m-0 font-semibold text-sm",
50
+ className: "m-0 font-medium text-sm",
51
51
  children: props.name
52
52
  })]
53
53
  });
@@ -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
  };