@facter/ds-core 1.5.2 → 1.5.3
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 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +12 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1039,20 +1039,18 @@ interface TooltipTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
declare const TooltipTitle: React$1.ForwardRefExoticComponent<TooltipTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1041
1041
|
interface TooltipDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
1042
|
-
variant?: 'light' | 'dark';
|
|
1043
1042
|
}
|
|
1044
1043
|
declare const TooltipDescription: React$1.ForwardRefExoticComponent<TooltipDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1045
1044
|
interface TooltipActionsProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1046
1045
|
}
|
|
1047
1046
|
declare const TooltipActions: React$1.ForwardRefExoticComponent<TooltipActionsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1048
1047
|
declare const tooltipActionVariants: (props?: ({
|
|
1049
|
-
variant?: "outline" | "secondary" | "primary" |
|
|
1048
|
+
variant?: "outline" | "secondary" | "primary" | null | undefined;
|
|
1050
1049
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1051
1050
|
interface TooltipActionProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof tooltipActionVariants> {
|
|
1052
1051
|
}
|
|
1053
1052
|
declare const TooltipAction: React$1.ForwardRefExoticComponent<TooltipActionProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1054
1053
|
interface TooltipIconProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1055
|
-
variant?: 'light' | 'dark';
|
|
1056
1054
|
}
|
|
1057
1055
|
declare const TooltipIcon: React$1.ForwardRefExoticComponent<TooltipIconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1058
1056
|
interface SimpleTooltipProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -1039,20 +1039,18 @@ interface TooltipTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
declare const TooltipTitle: React$1.ForwardRefExoticComponent<TooltipTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1041
1041
|
interface TooltipDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
1042
|
-
variant?: 'light' | 'dark';
|
|
1043
1042
|
}
|
|
1044
1043
|
declare const TooltipDescription: React$1.ForwardRefExoticComponent<TooltipDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1045
1044
|
interface TooltipActionsProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1046
1045
|
}
|
|
1047
1046
|
declare const TooltipActions: React$1.ForwardRefExoticComponent<TooltipActionsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1048
1047
|
declare const tooltipActionVariants: (props?: ({
|
|
1049
|
-
variant?: "outline" | "secondary" | "primary" |
|
|
1048
|
+
variant?: "outline" | "secondary" | "primary" | null | undefined;
|
|
1050
1049
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1051
1050
|
interface TooltipActionProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof tooltipActionVariants> {
|
|
1052
1051
|
}
|
|
1053
1052
|
declare const TooltipAction: React$1.ForwardRefExoticComponent<TooltipActionProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1054
1053
|
interface TooltipIconProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1055
|
-
variant?: 'light' | 'dark';
|
|
1056
1054
|
}
|
|
1057
1055
|
declare const TooltipIcon: React$1.ForwardRefExoticComponent<TooltipIconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1058
1056
|
interface SimpleTooltipProps {
|
package/dist/index.js
CHANGED
|
@@ -3838,7 +3838,7 @@ var TooltipArrow = React49__namespace.forwardRef(({ className, variant = "light"
|
|
|
3838
3838
|
ref,
|
|
3839
3839
|
className: cn(
|
|
3840
3840
|
"z-50",
|
|
3841
|
-
variant === "dark" ? "fill-
|
|
3841
|
+
variant === "dark" ? "fill-popover" : "fill-background",
|
|
3842
3842
|
className
|
|
3843
3843
|
),
|
|
3844
3844
|
...props
|
|
@@ -3850,8 +3850,8 @@ var tooltipContentVariants = classVarianceAuthority.cva(
|
|
|
3850
3850
|
{
|
|
3851
3851
|
variants: {
|
|
3852
3852
|
variant: {
|
|
3853
|
-
light: "bg-
|
|
3854
|
-
dark: "bg-
|
|
3853
|
+
light: "bg-background text-foreground border border-border",
|
|
3854
|
+
dark: "bg-popover text-popover-foreground border border-border"
|
|
3855
3855
|
},
|
|
3856
3856
|
size: {
|
|
3857
3857
|
sm: "max-w-[200px] p-2",
|
|
@@ -3887,10 +3887,7 @@ var TooltipContent = React49__namespace.forwardRef(
|
|
|
3887
3887
|
"button",
|
|
3888
3888
|
{
|
|
3889
3889
|
onClick: onDismiss,
|
|
3890
|
-
className:
|
|
3891
|
-
"absolute top-2 right-2 p-1 rounded-full transition-colors",
|
|
3892
|
-
variant === "dark" ? "hover:bg-slate-800 text-slate-400 hover:text-white" : "hover:bg-slate-100 text-slate-400 hover:text-slate-600"
|
|
3893
|
-
),
|
|
3890
|
+
className: "absolute top-2 right-2 p-1 rounded-full transition-colors hover:bg-muted text-muted-foreground hover:text-foreground",
|
|
3894
3891
|
"aria-label": "Fechar",
|
|
3895
3892
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-3.5 w-3.5" })
|
|
3896
3893
|
}
|
|
@@ -3917,15 +3914,11 @@ var TooltipTitle = React49__namespace.forwardRef(
|
|
|
3917
3914
|
)
|
|
3918
3915
|
);
|
|
3919
3916
|
TooltipTitle.displayName = "TooltipTitle";
|
|
3920
|
-
var TooltipDescription = React49__namespace.forwardRef(({ className,
|
|
3917
|
+
var TooltipDescription = React49__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3921
3918
|
"p",
|
|
3922
3919
|
{
|
|
3923
3920
|
ref,
|
|
3924
|
-
className: cn(
|
|
3925
|
-
"text-xs leading-relaxed",
|
|
3926
|
-
variant === "dark" ? "text-slate-300" : "text-slate-500",
|
|
3927
|
-
className
|
|
3928
|
-
),
|
|
3921
|
+
className: cn("text-xs leading-relaxed text-muted-foreground", className),
|
|
3929
3922
|
...props
|
|
3930
3923
|
}
|
|
3931
3924
|
));
|
|
@@ -3942,16 +3935,13 @@ var TooltipActions = React49__namespace.forwardRef(
|
|
|
3942
3935
|
);
|
|
3943
3936
|
TooltipActions.displayName = "TooltipActions";
|
|
3944
3937
|
var tooltipActionVariants = classVarianceAuthority.cva(
|
|
3945
|
-
"inline-flex items-center justify-center text-xs font-medium rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
3938
|
+
"inline-flex items-center justify-center text-xs font-medium rounded-md 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",
|
|
3946
3939
|
{
|
|
3947
3940
|
variants: {
|
|
3948
3941
|
variant: {
|
|
3949
|
-
primary: "bg-
|
|
3950
|
-
secondary: "bg-transparent text-
|
|
3951
|
-
"
|
|
3952
|
-
"secondary-dark": "bg-transparent text-slate-300 hover:text-white hover:underline px-2 py-1.5",
|
|
3953
|
-
outline: "border border-slate-200 bg-white text-slate-900 hover:bg-slate-50 px-3 py-1.5",
|
|
3954
|
-
"outline-dark": "border border-slate-700 bg-transparent text-white hover:bg-slate-800 px-3 py-1.5"
|
|
3942
|
+
primary: "bg-primary text-primary-foreground hover:bg-primary/90 px-3 py-1.5",
|
|
3943
|
+
secondary: "bg-transparent text-muted-foreground hover:text-foreground hover:underline px-2 py-1.5",
|
|
3944
|
+
outline: "border border-border bg-background text-foreground hover:bg-muted px-3 py-1.5"
|
|
3955
3945
|
}
|
|
3956
3946
|
},
|
|
3957
3947
|
defaultVariants: {
|
|
@@ -3971,13 +3961,12 @@ var TooltipAction = React49__namespace.forwardRef(
|
|
|
3971
3961
|
);
|
|
3972
3962
|
TooltipAction.displayName = "TooltipAction";
|
|
3973
3963
|
var TooltipIcon = React49__namespace.forwardRef(
|
|
3974
|
-
({ className,
|
|
3964
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3975
3965
|
"div",
|
|
3976
3966
|
{
|
|
3977
3967
|
ref,
|
|
3978
3968
|
className: cn(
|
|
3979
|
-
"flex items-center justify-center w-10 h-10 rounded-full mb-3",
|
|
3980
|
-
variant === "dark" ? "bg-slate-800" : "bg-slate-100",
|
|
3969
|
+
"flex items-center justify-center w-10 h-10 rounded-full mb-3 bg-muted",
|
|
3981
3970
|
className
|
|
3982
3971
|
),
|
|
3983
3972
|
...props,
|