@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
@@ -51,7 +51,7 @@ export function DefaultSettingsLayout({
51
51
  )}
52
52
  >
53
53
  <div className="flex items-center justify-between gap-4">
54
- <h1 className="text-balance text-lg font-semibold text-foreground">
54
+ <h1 className="text-balance text-lg font-medium text-foreground">
55
55
  {title}
56
56
  </h1>
57
57
  {headerRight ? <div className="shrink-0">{headerRight}</div> : null}
@@ -76,7 +76,7 @@ export function SettingsSection({
76
76
  <section className={cn("flex flex-col gap-2", className)}>
77
77
  <header className="flex items-start justify-between gap-4 px-4">
78
78
  <div className="min-w-0">
79
- <h3 className="text-balance text-sm font-semibold text-foreground">
79
+ <h3 className="text-balance text-sm font-medium text-foreground">
80
80
  {title}
81
81
  </h3>
82
82
  {description ? (
@@ -15,7 +15,7 @@ const SWATCHES: Record<ThemeMode, string> = {
15
15
  light: "bg-white",
16
16
  neutral: "bg-zinc-700",
17
17
  dark: "bg-zinc-900",
18
- system: "bg-linear-to-br from-white to-zinc-900",
18
+ system: "relative overflow-hidden bg-white",
19
19
  };
20
20
  const ICON_COLOURS: Record<ThemeMode, string> = {
21
21
  light: "text-amber-500",
@@ -82,7 +82,15 @@ export function ThemeModePicker({ value, onChange, modes = THEME_MODES, compact
82
82
  SWATCHES[mode],
83
83
  )}
84
84
  >
85
- <Icon size={compact ? 14 : 22} className={ICON_COLOURS[mode]} />
85
+ {mode === "system" ? (
86
+ // Hard diagonal split, white over zinc-900, with no gradient.
87
+ <span
88
+ aria-hidden
89
+ className="absolute inset-0 bg-zinc-900"
90
+ style={{ clipPath: "polygon(100% 0, 100% 100%, 0 100%)" }}
91
+ />
92
+ ) : null}
93
+ <Icon size={compact ? 14 : 22} className={cn("relative", ICON_COLOURS[mode])} />
86
94
  </div>
87
95
  {LABELS[mode]}
88
96
  </button>
@@ -26,7 +26,7 @@ export function DefaultSettingsLayout(t0) {
26
26
  let t4;
27
27
  if ($[2] !== title) {
28
28
  t4 = /*#__PURE__*/_jsx("h1", {
29
- className: "text-balance text-lg font-semibold text-foreground",
29
+ className: "text-balance text-lg font-medium text-foreground",
30
30
  children: title
31
31
  });
32
32
  $[2] = title;
@@ -48,7 +48,7 @@ export function SettingsSection(t0) {
48
48
  let t3;
49
49
  if ($[3] !== title) {
50
50
  t3 = /*#__PURE__*/_jsx("h3", {
51
- className: "text-balance text-sm font-semibold text-foreground",
51
+ className: "text-balance text-sm font-medium text-foreground",
52
52
  children: title
53
53
  });
54
54
  $[3] = title;
@@ -24,7 +24,7 @@ const SWATCHES = {
24
24
  light: "bg-white",
25
25
  neutral: "bg-zinc-700",
26
26
  dark: "bg-zinc-900",
27
- system: "bg-linear-to-br from-white to-zinc-900"
27
+ system: "relative overflow-hidden bg-white"
28
28
  };
29
29
  const ICON_COLOURS = {
30
30
  light: "text-amber-500",
@@ -82,12 +82,18 @@ export function ThemeModePicker(t0) {
82
82
  size: compact ? 8 : 10,
83
83
  strokeWidth: 3
84
84
  })
85
- }) : null, /*#__PURE__*/_jsx("div", {
85
+ }) : null, /*#__PURE__*/_jsxs("div", {
86
86
  className: cn("flex w-full items-center justify-center rounded-lg", compact ? "h-8" : "h-12 sm:h-16", SWATCHES[mode]),
87
- children: /*#__PURE__*/_jsx(Icon, {
87
+ children: [mode === "system" ? /*#__PURE__*/_jsx("span", {
88
+ "aria-hidden": true,
89
+ className: "absolute inset-0 bg-zinc-900",
90
+ style: {
91
+ clipPath: "polygon(100% 0, 100% 100%, 0 100%)"
92
+ }
93
+ }) : null, /*#__PURE__*/_jsx(Icon, {
88
94
  size: compact ? 14 : 22,
89
- className: ICON_COLOURS[mode]
90
- })
95
+ className: cn("relative", ICON_COLOURS[mode])
96
+ })]
91
97
  }), LABELS[mode]]
92
98
  })
93
99
  }, mode);