@orsetra/shared-ui 1.7.0 → 1.7.2

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.
@@ -124,7 +124,7 @@ function LayoutContent({
124
124
  />
125
125
 
126
126
  <div className="flex-1 flex flex-col min-w-0">
127
- <header className="h-14 bg-gray-50 flex-shrink-0">
127
+ <header className="h-14 bg-gray-50 border-b border-ui-border flex-shrink-0">
128
128
  <div className="h-full px-4 md:px-6 flex items-center justify-between">
129
129
  {isHidden ? (
130
130
  <Button
@@ -63,7 +63,7 @@ export function PageWithSidePanel({
63
63
  }
64
64
 
65
65
  return (
66
- <div className={cn("flex items-start", className)}>
66
+ <div className={cn("flex", className)}>
67
67
  {/* Main content column — grows to fill space left by the panel */}
68
68
  <div className="flex-1 min-w-0 flex flex-col">
69
69
 
@@ -267,7 +267,7 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
267
267
 
268
268
  return (
269
269
  <div
270
- className="h-screen sticky top-0 flex flex-col bg-gray-50 min-w-[var(--sidebar-width-icon)] transition-[width] duration-200 overflow-visible"
270
+ className="h-screen sticky top-0 flex flex-col bg-gray-50 border-r border-ui-border min-w-[var(--sidebar-width-icon)] transition-[width] duration-200 overflow-visible"
271
271
  style={{ width: isCollapsed ? "var(--sidebar-width-icon)" : "var(--sidebar-width)" }}
272
272
  >
273
273
  {/* Header */}
@@ -300,12 +300,12 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
300
300
  {/* Section label — hidden when collapsed */}
301
301
  {!isCollapsed && (
302
302
  injectedItems === undefined ? (
303
- <div className="h-10 flex items-center px-4 flex-shrink-0 gap-2 border-b border-ui-border">
303
+ <div className="h-10 flex items-center px-4 flex-shrink-0 gap-2">
304
304
  <div className="h-4 w-4 bg-gray-200 animate-pulse rounded flex-shrink-0" />
305
305
  <div className="h-2.5 w-20 bg-gray-200 animate-pulse rounded" />
306
306
  </div>
307
307
  ) : (injectedTitle || (currentMenu && sectionLabels[currentMenu])) ? (
308
- <div className="h-10 flex items-center px-4 flex-shrink-0 gap-2 border-b border-ui-border">
308
+ <div className="h-10 flex items-center px-4 flex-shrink-0 gap-2">
309
309
  {isInjecting ? (
310
310
  <button
311
311
  type="button"
@@ -8,12 +8,13 @@ import { cn } from "../../lib/utils"
8
8
  const Switch = React.forwardRef<
9
9
  React.ElementRef<typeof SwitchPrimitives.Root>,
10
10
  React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>
11
- >(({ className, ...props }, ref) => (
11
+ >(({ className, style, ...props }, ref) => (
12
12
  <SwitchPrimitives.Root
13
13
  className={cn(
14
14
  "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-carbon-blue-60 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-carbon-blue-60 data-[state=unchecked]:bg-carbon-gray-30",
15
15
  className
16
16
  )}
17
+ style={{ borderRadius: "9999px", ...style }}
17
18
  {...props}
18
19
  ref={ref}
19
20
  >
@@ -21,6 +22,7 @@ const Switch = React.forwardRef<
21
22
  className={cn(
22
23
  "pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
23
24
  )}
25
+ style={{ borderRadius: "9999px" }}
24
26
  />
25
27
  </SwitchPrimitives.Root>
26
28
  ))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",