@webdevarif/dashui 0.1.6 → 0.1.7

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/dist/index.js CHANGED
@@ -139,7 +139,7 @@ function cn(...inputs) {
139
139
  // src/components/primitives/button.tsx
140
140
  var import_jsx_runtime = require("react/jsx-runtime");
141
141
  var buttonVariants = (0, import_class_variance_authority.cva)(
142
- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
142
+ "inline-flex items-center justify-center whitespace-nowrap rounded-[var(--form-radius,8px)] text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
143
143
  {
144
144
  variants: {
145
145
  variant: {
@@ -151,10 +151,10 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
151
151
  link: "text-primary underline-offset-4 hover:underline"
152
152
  },
153
153
  size: {
154
- default: "h-10 px-4 py-2",
155
- sm: "h-9 rounded-md px-3",
156
- lg: "h-11 rounded-md px-8",
157
- icon: "h-10 w-10"
154
+ default: "h-[var(--form-height,40px)] px-4 py-2",
155
+ sm: "h-9 px-3",
156
+ lg: "h-11 px-8",
157
+ icon: "h-[var(--form-height,40px)] w-[var(--form-height,40px)]"
158
158
  }
159
159
  },
160
160
  defaultVariants: {
@@ -523,7 +523,7 @@ var Input = React6.forwardRef(
523
523
  {
524
524
  type,
525
525
  className: cn(
526
- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
526
+ "flex h-[var(--form-height,40px)] w-full rounded-[var(--form-radius,8px)] border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
527
527
  error && "border-destructive focus-visible:ring-destructive",
528
528
  className
529
529
  ),
@@ -587,7 +587,7 @@ var SelectTrigger = React9.forwardRef(({ className, children, ...props }, ref) =
587
587
  {
588
588
  ref,
589
589
  className: cn(
590
- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
590
+ "flex h-[var(--form-height,40px)] w-full items-center justify-between rounded-[var(--form-radius,8px)] border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
591
591
  className
592
592
  ),
593
593
  ...props,