@srcroot/ui 0.0.27 → 0.0.28

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @srcroot/ui
2
2
 
3
- A **shadcn-like** React UI library for building accessible, polymorphic web applications.
3
+ A UI library with polymorphic, accessible React components.
4
4
  This library provides a collection of re-usable components that you can copy and paste into your apps.
5
5
 
6
6
  ## Features
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@srcroot/ui",
3
- "version": "0.0.27",
4
- "description": "A shadcn-style CLI UI library with polymorphic, accessible React components",
3
+ "version": "0.0.28",
4
+ "description": "A UI library with polymorphic, accessible React components",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "srcroot-ui": "./dist/index.js"
@@ -1,3 +1,4 @@
1
+ 'use client'
1
2
  import * as React from "react"
2
3
  import { cn } from "@/lib/utils"
3
4
 
@@ -80,7 +81,7 @@ const CarouselContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HT
80
81
  return (
81
82
  <div ref={ref} className={cn("overflow-hidden", className)} {...props}>
82
83
  <div
83
- className="flex transition-transform duration-300 ease-in-out"
84
+ className="w-full h-full flex transition-transform duration-300 ease-in-out"
84
85
  style={{ transform: `translateX(-${context.currentIndex * 100}%)` }}
85
86
  >
86
87
  {children}
@@ -97,7 +98,7 @@ const CarouselItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLD
97
98
  ref={ref}
98
99
  role="group"
99
100
  aria-roledescription="slide"
100
- className={cn("min-w-0 shrink-0 grow-0 basis-full", className)}
101
+ className={cn("min-w-0 h-full shrink-0 grow-0 basis-full", className)}
101
102
  {...props}
102
103
  />
103
104
  )
@@ -118,7 +119,7 @@ const CarouselPrevious = React.forwardRef<
118
119
  ref={ref}
119
120
  type="button"
120
121
  className={cn(
121
- "absolute left-4 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full border bg-background shadow-md flex items-center justify-center",
122
+ "absolute left-4 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full border bg-background shadow-md flex items-center justify-center cursor-pointer",
122
123
  "hover:bg-accent disabled:opacity-50",
123
124
  className
124
125
  )}
@@ -149,7 +150,7 @@ const CarouselNext = React.forwardRef<
149
150
  ref={ref}
150
151
  type="button"
151
152
  className={cn(
152
- "absolute right-4 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full border bg-background shadow-md flex items-center justify-center",
153
+ "absolute right-4 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full border bg-background shadow-md flex items-center justify-center cursor-pointer",
153
154
  "hover:bg-accent disabled:opacity-50",
154
155
  className
155
156
  )}
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
 
3
3
  import * as React from "react"
4
- import { LuPanelLeft } from "react-icons/lu"
4
+ import { PanelLeft } from "lucide-react"
5
5
  import { cva, type VariantProps } from "class-variance-authority"
6
6
 
7
7
  import { cn } from "@/lib/utils"
@@ -168,7 +168,10 @@ const Sidebar = React.forwardRef<
168
168
  return (
169
169
  <div
170
170
  ref={ref}
171
- className="group peer hidden md:block text-sidebar-foreground"
171
+ className={cn(
172
+ "group peer hidden md:block text-sidebar-foreground",
173
+ className
174
+ )}
172
175
  data-state={state}
173
176
  data-collapsible={state === "collapsed" ? collapsible : ""}
174
177
  data-variant={variant}
@@ -233,7 +236,7 @@ const SidebarTrigger = React.forwardRef<
233
236
  }}
234
237
  {...props}
235
238
  >
236
- <LuPanelLeft />
239
+ <PanelLeft />
237
240
  <span className="sr-only">Toggle Sidebar</span>
238
241
  </Button>
239
242
  )