@webdevarif/dashui 0.1.7 → 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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +38 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -87,7 +87,7 @@ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
87
87
|
}
|
|
88
88
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
89
89
|
|
|
90
|
-
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> &
|
|
90
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
91
91
|
|
|
92
92
|
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
93
93
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
87
87
|
}
|
|
88
88
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
89
89
|
|
|
90
|
-
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> &
|
|
90
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
91
91
|
|
|
92
92
|
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
93
93
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
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-lg 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 px-3",
|
|
156
|
-
lg: "h-11 px-8",
|
|
157
|
-
icon: "h-
|
|
154
|
+
default: "h-10 px-4 py-2",
|
|
155
|
+
sm: "h-9 rounded-lg px-3",
|
|
156
|
+
lg: "h-11 rounded-lg px-8",
|
|
157
|
+
icon: "h-10 w-10"
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
defaultVariants: {
|
|
@@ -523,7 +523,11 @@ var Input = React6.forwardRef(
|
|
|
523
523
|
{
|
|
524
524
|
type,
|
|
525
525
|
className: cn(
|
|
526
|
-
"flex h-
|
|
526
|
+
"flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background",
|
|
527
|
+
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
528
|
+
"placeholder:text-muted-foreground",
|
|
529
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
530
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
527
531
|
error && "border-destructive focus-visible:ring-destructive",
|
|
528
532
|
className
|
|
529
533
|
),
|
|
@@ -538,16 +542,15 @@ Input.displayName = "Input";
|
|
|
538
542
|
// src/components/primitives/label.tsx
|
|
539
543
|
var React7 = __toESM(require("react"));
|
|
540
544
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
|
|
541
|
-
var import_class_variance_authority3 = require("class-variance-authority");
|
|
542
545
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
543
|
-
var labelVariants = (0, import_class_variance_authority3.cva)(
|
|
544
|
-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
545
|
-
);
|
|
546
546
|
var Label2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
547
547
|
LabelPrimitive.Root,
|
|
548
548
|
{
|
|
549
549
|
ref,
|
|
550
|
-
className: cn(
|
|
550
|
+
className: cn(
|
|
551
|
+
"block text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
552
|
+
className
|
|
553
|
+
),
|
|
551
554
|
...props
|
|
552
555
|
}
|
|
553
556
|
));
|
|
@@ -587,13 +590,17 @@ var SelectTrigger = React9.forwardRef(({ className, children, ...props }, ref) =
|
|
|
587
590
|
{
|
|
588
591
|
ref,
|
|
589
592
|
className: cn(
|
|
590
|
-
"flex h-
|
|
593
|
+
"flex h-10 w-full items-center justify-between rounded-lg border border-input bg-background px-3 py-2 text-sm",
|
|
594
|
+
"ring-offset-background placeholder:text-muted-foreground",
|
|
595
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
596
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
597
|
+
"[&>span]:line-clamp-1",
|
|
591
598
|
className
|
|
592
599
|
),
|
|
593
600
|
...props,
|
|
594
601
|
children: [
|
|
595
602
|
children,
|
|
596
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
603
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ChevronDown, { className: "h-4 w-4 opacity-50 shrink-0" }) })
|
|
597
604
|
]
|
|
598
605
|
}
|
|
599
606
|
));
|
|
@@ -602,10 +609,7 @@ var SelectScrollUpButton = React9.forwardRef(({ className, ...props }, ref) => /
|
|
|
602
609
|
SelectPrimitive.ScrollUpButton,
|
|
603
610
|
{
|
|
604
611
|
ref,
|
|
605
|
-
className: cn(
|
|
606
|
-
"flex cursor-default items-center justify-center py-1",
|
|
607
|
-
className
|
|
608
|
-
),
|
|
612
|
+
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
609
613
|
...props,
|
|
610
614
|
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ChevronUp, { className: "h-4 w-4" })
|
|
611
615
|
}
|
|
@@ -615,10 +619,7 @@ var SelectScrollDownButton = React9.forwardRef(({ className, ...props }, ref) =>
|
|
|
615
619
|
SelectPrimitive.ScrollDownButton,
|
|
616
620
|
{
|
|
617
621
|
ref,
|
|
618
|
-
className: cn(
|
|
619
|
-
"flex cursor-default items-center justify-center py-1",
|
|
620
|
-
className
|
|
621
|
-
),
|
|
622
|
+
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
622
623
|
...props,
|
|
623
624
|
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ChevronDown, { className: "h-4 w-4" })
|
|
624
625
|
}
|
|
@@ -628,8 +629,16 @@ var SelectContent = React9.forwardRef(({ className, children, position = "popper
|
|
|
628
629
|
SelectPrimitive.Content,
|
|
629
630
|
{
|
|
630
631
|
ref,
|
|
632
|
+
style: { background: "#ffffff", border: "1px solid #e5e7eb", borderRadius: 10, boxShadow: "0 8px 32px rgba(0,0,0,0.12)", zIndex: 9999, overflow: "hidden" },
|
|
631
633
|
className: cn(
|
|
632
|
-
"relative
|
|
634
|
+
"relative max-h-96 min-w-[8rem] overflow-hidden",
|
|
635
|
+
"rounded-lg border border-border bg-white text-foreground shadow-lg",
|
|
636
|
+
"dark:bg-zinc-900 dark:border-zinc-700",
|
|
637
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
638
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
639
|
+
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
640
|
+
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
641
|
+
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
633
642
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
634
643
|
className
|
|
635
644
|
),
|
|
@@ -656,7 +665,7 @@ var SelectLabel = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
656
665
|
SelectPrimitive.Label,
|
|
657
666
|
{
|
|
658
667
|
ref,
|
|
659
|
-
className: cn("py-1.5 pl-8 pr-2 text-
|
|
668
|
+
className: cn("py-1.5 pl-8 pr-2 text-xs font-semibold text-muted-foreground", className),
|
|
660
669
|
...props
|
|
661
670
|
}
|
|
662
671
|
));
|
|
@@ -666,12 +675,15 @@ var SelectItem = React9.forwardRef(({ className, children, ...props }, ref) => /
|
|
|
666
675
|
{
|
|
667
676
|
ref,
|
|
668
677
|
className: cn(
|
|
669
|
-
"relative flex w-full cursor-default select-none items-center
|
|
678
|
+
"relative flex w-full cursor-default select-none items-center",
|
|
679
|
+
"rounded-md py-2 pl-9 pr-3 text-sm outline-none",
|
|
680
|
+
"focus:bg-accent focus:text-accent-foreground",
|
|
681
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
670
682
|
className
|
|
671
683
|
),
|
|
672
684
|
...props,
|
|
673
685
|
children: [
|
|
674
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "absolute left-2 flex h-
|
|
686
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "absolute left-2.5 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.Check, { className: "h-3.5 w-3.5 text-primary", strokeWidth: 2.5 }) }) }),
|
|
675
687
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.ItemText, { children })
|
|
676
688
|
]
|
|
677
689
|
}
|
|
@@ -681,7 +693,7 @@ var SelectSeparator = React9.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
681
693
|
SelectPrimitive.Separator,
|
|
682
694
|
{
|
|
683
695
|
ref,
|
|
684
|
-
className: cn("-mx-1 my-1 h-px bg-
|
|
696
|
+
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
685
697
|
...props
|
|
686
698
|
}
|
|
687
699
|
));
|