@orsetra/shared-ui 1.7.1 → 1.7.3

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
@@ -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 border-r border-ui-border">
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 border-r border-ui-border">
309
309
  {isInjecting ? (
310
310
  <button
311
311
  type="button"
@@ -334,7 +334,7 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
334
334
 
335
335
  {/* Nav */}
336
336
  <nav className={cn(
337
- "flex-1 overflow-y-auto",
337
+ "flex-1 overflow-y-auto border-r border-ui-border",
338
338
  isCollapsed ? "px-1 py-3 space-y-0.5" : "px-3 py-4 space-y-1"
339
339
  )}>
340
340
  {/* Secondary nav items — skeleton while injected but loading */}
@@ -436,7 +436,7 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
436
436
  </nav>
437
437
 
438
438
  {/* Collapse / expand toggle */}
439
- <div className={cn("flex-shrink-0 p-2", isCollapsed ? "flex justify-center" : "flex justify-end")}>
439
+ <div className={cn("flex-shrink-0 p-2 border-r border-ui-border", isCollapsed ? "flex justify-center" : "flex justify-end")}>
440
440
  <button
441
441
  type="button"
442
442
  onClick={toggleSidebar}
@@ -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.1",
3
+ "version": "1.7.3",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",