@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.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +80 -82
package/dist/index.d.mts
CHANGED
|
@@ -328,13 +328,15 @@ interface AuthShellProps {
|
|
|
328
328
|
children: React.ReactNode;
|
|
329
329
|
/** Optional background pattern — 'dots' | 'grid' | 'none' */
|
|
330
330
|
pattern?: 'dots' | 'grid' | 'none';
|
|
331
|
+
maxWidth?: string;
|
|
331
332
|
}
|
|
332
|
-
declare function AuthShell({ children, pattern }: AuthShellProps): react_jsx_runtime.JSX.Element;
|
|
333
|
+
declare function AuthShell({ children, pattern, maxWidth }: AuthShellProps): react_jsx_runtime.JSX.Element;
|
|
333
334
|
|
|
334
335
|
interface AuthCardProps {
|
|
335
336
|
children: React.ReactNode;
|
|
337
|
+
padding?: string;
|
|
336
338
|
}
|
|
337
|
-
declare function AuthCard({ children }: AuthCardProps): react_jsx_runtime.JSX.Element;
|
|
339
|
+
declare function AuthCard({ children, padding }: AuthCardProps): react_jsx_runtime.JSX.Element;
|
|
338
340
|
|
|
339
341
|
interface AuthLogoProps {
|
|
340
342
|
/** App name shown next to the logo mark */
|
package/dist/index.d.ts
CHANGED
|
@@ -328,13 +328,15 @@ interface AuthShellProps {
|
|
|
328
328
|
children: React.ReactNode;
|
|
329
329
|
/** Optional background pattern — 'dots' | 'grid' | 'none' */
|
|
330
330
|
pattern?: 'dots' | 'grid' | 'none';
|
|
331
|
+
maxWidth?: string;
|
|
331
332
|
}
|
|
332
|
-
declare function AuthShell({ children, pattern }: AuthShellProps): react_jsx_runtime.JSX.Element;
|
|
333
|
+
declare function AuthShell({ children, pattern, maxWidth }: AuthShellProps): react_jsx_runtime.JSX.Element;
|
|
333
334
|
|
|
334
335
|
interface AuthCardProps {
|
|
335
336
|
children: React.ReactNode;
|
|
337
|
+
padding?: string;
|
|
336
338
|
}
|
|
337
|
-
declare function AuthCard({ children }: AuthCardProps): react_jsx_runtime.JSX.Element;
|
|
339
|
+
declare function AuthCard({ children, padding }: AuthCardProps): react_jsx_runtime.JSX.Element;
|
|
338
340
|
|
|
339
341
|
interface AuthLogoProps {
|
|
340
342
|
/** App name shown next to the logo mark */
|
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-
|
|
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-
|
|
155
|
-
sm: "h-9
|
|
156
|
-
lg: "h-11
|
|
157
|
-
icon: "h-
|
|
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-
|
|
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-
|
|
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,
|
|
@@ -1568,7 +1568,7 @@ function usePagination(total, pageSize = 20) {
|
|
|
1568
1568
|
|
|
1569
1569
|
// src/components/auth/AuthShell.tsx
|
|
1570
1570
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1571
|
-
function AuthShell({ children, pattern = "dots" }) {
|
|
1571
|
+
function AuthShell({ children, pattern = "dots", maxWidth = "520px" }) {
|
|
1572
1572
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1573
1573
|
"div",
|
|
1574
1574
|
{
|
|
@@ -1612,7 +1612,7 @@ function AuthShell({ children, pattern = "dots" }) {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
}
|
|
1614
1614
|
),
|
|
1615
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { style: { position: "relative", zIndex: 1, width: "100%", maxWidth
|
|
1615
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { style: { position: "relative", zIndex: 1, width: "100%", maxWidth }, children })
|
|
1616
1616
|
]
|
|
1617
1617
|
}
|
|
1618
1618
|
);
|
|
@@ -1620,7 +1620,7 @@ function AuthShell({ children, pattern = "dots" }) {
|
|
|
1620
1620
|
|
|
1621
1621
|
// src/components/auth/AuthCard.tsx
|
|
1622
1622
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1623
|
-
function AuthCard({ children }) {
|
|
1623
|
+
function AuthCard({ children, padding = "24px 28px" }) {
|
|
1624
1624
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1625
1625
|
"div",
|
|
1626
1626
|
{
|
|
@@ -1629,7 +1629,7 @@ function AuthCard({ children }) {
|
|
|
1629
1629
|
border: "1px solid var(--border)",
|
|
1630
1630
|
borderRadius: "calc(var(--radius, 0.5rem) * 1.5)",
|
|
1631
1631
|
boxShadow: "0 4px 32px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04)",
|
|
1632
|
-
padding
|
|
1632
|
+
padding,
|
|
1633
1633
|
width: "100%"
|
|
1634
1634
|
},
|
|
1635
1635
|
children
|