@webdevarif/dashui 0.1.5 → 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.mjs CHANGED
@@ -13,7 +13,7 @@ function cn(...inputs) {
13
13
  // src/components/primitives/button.tsx
14
14
  import { jsx } from "react/jsx-runtime";
15
15
  var buttonVariants = cva(
16
- "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",
16
+ "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",
17
17
  {
18
18
  variants: {
19
19
  variant: {
@@ -25,10 +25,10 @@ var buttonVariants = cva(
25
25
  link: "text-primary underline-offset-4 hover:underline"
26
26
  },
27
27
  size: {
28
- default: "h-10 px-4 py-2",
29
- sm: "h-9 rounded-md px-3",
30
- lg: "h-11 rounded-md px-8",
31
- icon: "h-10 w-10"
28
+ default: "h-[var(--form-height,40px)] px-4 py-2",
29
+ sm: "h-9 px-3",
30
+ lg: "h-11 px-8",
31
+ icon: "h-[var(--form-height,40px)] w-[var(--form-height,40px)]"
32
32
  }
33
33
  },
34
34
  defaultVariants: {
@@ -397,7 +397,7 @@ var Input = React6.forwardRef(
397
397
  {
398
398
  type,
399
399
  className: cn(
400
- "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",
400
+ "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",
401
401
  error && "border-destructive focus-visible:ring-destructive",
402
402
  className
403
403
  ),
@@ -461,7 +461,7 @@ var SelectTrigger = React9.forwardRef(({ className, children, ...props }, ref) =
461
461
  {
462
462
  ref,
463
463
  className: cn(
464
- "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",
464
+ "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",
465
465
  className
466
466
  ),
467
467
  ...props,
@@ -1442,7 +1442,7 @@ function usePagination(total, pageSize = 20) {
1442
1442
 
1443
1443
  // src/components/auth/AuthShell.tsx
1444
1444
  import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
1445
- function AuthShell({ children, pattern = "dots" }) {
1445
+ function AuthShell({ children, pattern = "dots", maxWidth = "520px" }) {
1446
1446
  return /* @__PURE__ */ jsxs18(
1447
1447
  "div",
1448
1448
  {
@@ -1486,7 +1486,7 @@ function AuthShell({ children, pattern = "dots" }) {
1486
1486
  }
1487
1487
  }
1488
1488
  ),
1489
- /* @__PURE__ */ jsx32("div", { style: { position: "relative", zIndex: 1, width: "100%", maxWidth: "440px" }, children })
1489
+ /* @__PURE__ */ jsx32("div", { style: { position: "relative", zIndex: 1, width: "100%", maxWidth }, children })
1490
1490
  ]
1491
1491
  }
1492
1492
  );
@@ -1494,7 +1494,7 @@ function AuthShell({ children, pattern = "dots" }) {
1494
1494
 
1495
1495
  // src/components/auth/AuthCard.tsx
1496
1496
  import { jsx as jsx33 } from "react/jsx-runtime";
1497
- function AuthCard({ children }) {
1497
+ function AuthCard({ children, padding = "24px 28px" }) {
1498
1498
  return /* @__PURE__ */ jsx33(
1499
1499
  "div",
1500
1500
  {
@@ -1503,7 +1503,7 @@ function AuthCard({ children }) {
1503
1503
  border: "1px solid var(--border)",
1504
1504
  borderRadius: "calc(var(--radius, 0.5rem) * 1.5)",
1505
1505
  boxShadow: "0 4px 32px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04)",
1506
- padding: "36px 40px",
1506
+ padding,
1507
1507
  width: "100%"
1508
1508
  },
1509
1509
  children