@c-rex/ui 0.1.8 → 0.1.9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c-rex/ui",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src"
package/src/input.tsx CHANGED
@@ -27,9 +27,6 @@ interface InputProps
27
27
 
28
28
  const Input = React.forwardRef<HTMLInputElement, InputProps>(
29
29
  ({ className, type, variant, ...props }, ref) => {
30
-
31
-
32
-
33
30
  return (
34
31
  <input
35
32
  type={type}
package/src/sidebar.tsx CHANGED
@@ -22,8 +22,8 @@ import { DEVICE_OPTIONS } from "@c-rex/constants";
22
22
  const SIDEBAR_COOKIE_NAME = "sidebar_state";
23
23
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
24
24
  const SIDEBAR_WIDTH = "16rem";
25
- const SIDEBAR_WIDTH_MOBILE = "18rem";
26
- const RIGHT_SIDEBAR_WIDTH = "19rem";
25
+ const SIDEBAR_WIDTH_MOBILE = "20rem";
26
+ const RIGHT_SIDEBAR_WIDTH = "20rem";
27
27
  const SIDEBAR_WIDTH_ICON = "3rem";
28
28
 
29
29
  type SidebarContextType = {
@@ -251,7 +251,11 @@ const Sidebar = React.forwardRef<
251
251
  }
252
252
  side={side}
253
253
  >
254
- <div className="flex h-full w-full flex-col">{children}</div>
254
+ <div className={cn(
255
+ side === "right" && "pl-4",
256
+ "flex h-full w-full flex-col"
257
+ )}
258
+ >{children}</div>
255
259
  </SheetContent>
256
260
  </Sheet>
257
261
  );
@@ -460,7 +464,7 @@ const SidebarContent = React.forwardRef<
460
464
  ref={ref}
461
465
  data-sidebar="content"
462
466
  className={cn(
463
- "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
467
+ "flex min-h-0 flex-1 flex-col gap-4 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
464
468
  className,
465
469
  )}
466
470
  {...props}