@facter/ds-core 1.27.0 → 1.29.0
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +39 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -711,6 +711,8 @@ declare const dialogContentVariants: (props?: ({
|
|
|
711
711
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
712
712
|
interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof dialogContentVariants> {
|
|
713
713
|
showCloseButton?: boolean;
|
|
714
|
+
/** Disable the mesh gradient + grid pattern effect (default: false) */
|
|
715
|
+
disableMeshEffect?: boolean;
|
|
714
716
|
}
|
|
715
717
|
declare const DialogContent: React$1.NamedExoticComponent<DialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
716
718
|
declare const DialogHeader: React$1.NamedExoticComponent<React$1.HTMLAttributes<HTMLDivElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -711,6 +711,8 @@ declare const dialogContentVariants: (props?: ({
|
|
|
711
711
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
712
712
|
interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof dialogContentVariants> {
|
|
713
713
|
showCloseButton?: boolean;
|
|
714
|
+
/** Disable the mesh gradient + grid pattern effect (default: false) */
|
|
715
|
+
disableMeshEffect?: boolean;
|
|
714
716
|
}
|
|
715
717
|
declare const DialogContent: React$1.NamedExoticComponent<DialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
716
718
|
declare const DialogHeader: React$1.NamedExoticComponent<React$1.HTMLAttributes<HTMLDivElement>>;
|
package/dist/index.js
CHANGED
|
@@ -2525,6 +2525,38 @@ var DataTable = Object.assign(DataTableRoot, {
|
|
|
2525
2525
|
// Column utilities (para uso em column definitions)
|
|
2526
2526
|
ColumnHeader: DataTableColumnHeader
|
|
2527
2527
|
});
|
|
2528
|
+
function DialogMeshEffect() {
|
|
2529
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute inset-0 overflow-hidden rounded-t-lg pointer-events-none", children: [
|
|
2530
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2531
|
+
"div",
|
|
2532
|
+
{
|
|
2533
|
+
className: "absolute inset-0",
|
|
2534
|
+
style: {
|
|
2535
|
+
background: `
|
|
2536
|
+
radial-gradient(ellipse at 30% -20%, hsl(var(--primary) / 0.2) 0%, transparent 60%),
|
|
2537
|
+
radial-gradient(ellipse at 80% -10%, hsl(var(--primary) / 0.14) 0%, transparent 55%),
|
|
2538
|
+
linear-gradient(to bottom, hsl(var(--primary) / 0.06), transparent 50%)
|
|
2539
|
+
`
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
),
|
|
2543
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2544
|
+
"div",
|
|
2545
|
+
{
|
|
2546
|
+
className: "absolute inset-0",
|
|
2547
|
+
style: {
|
|
2548
|
+
backgroundImage: `
|
|
2549
|
+
linear-gradient(hsl(var(--primary) / 0.07) 1px, transparent 1px),
|
|
2550
|
+
linear-gradient(90deg, hsl(var(--primary) / 0.07) 1px, transparent 1px)
|
|
2551
|
+
`,
|
|
2552
|
+
backgroundSize: "28px 28px",
|
|
2553
|
+
mask: "linear-gradient(to bottom, black 0%, transparent 50%)",
|
|
2554
|
+
WebkitMask: "linear-gradient(to bottom, black 0%, transparent 50%)"
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
)
|
|
2558
|
+
] });
|
|
2559
|
+
}
|
|
2528
2560
|
var Dialog = DialogPrimitive__namespace.Root;
|
|
2529
2561
|
var DialogTrigger = DialogPrimitive__namespace.Trigger;
|
|
2530
2562
|
var DialogPortal = DialogPrimitive__namespace.Portal;
|
|
@@ -2535,9 +2567,7 @@ var DialogOverlay = React10__namespace.memo(
|
|
|
2535
2567
|
{
|
|
2536
2568
|
ref,
|
|
2537
2569
|
className: cn(
|
|
2538
|
-
"fixed inset-0 z-50 bg-black/80",
|
|
2539
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
2540
|
-
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
2570
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
2541
2571
|
className
|
|
2542
2572
|
),
|
|
2543
2573
|
...props
|
|
@@ -2578,17 +2608,18 @@ var dialogContentVariants = classVarianceAuthority.cva(
|
|
|
2578
2608
|
}
|
|
2579
2609
|
);
|
|
2580
2610
|
var DialogContent = React10__namespace.memo(
|
|
2581
|
-
React10__namespace.forwardRef(({ className, children, showCloseButton = true, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
2611
|
+
React10__namespace.forwardRef(({ className, children, showCloseButton = true, disableMeshEffect = false, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
2582
2612
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
2583
2613
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2584
2614
|
DialogPrimitive__namespace.Content,
|
|
2585
2615
|
{
|
|
2586
2616
|
ref,
|
|
2587
|
-
className: cn(dialogContentVariants({ size, className })),
|
|
2617
|
+
className: cn(dialogContentVariants({ size, className }), "overflow-hidden"),
|
|
2588
2618
|
...props,
|
|
2589
2619
|
children: [
|
|
2590
|
-
|
|
2591
|
-
|
|
2620
|
+
!disableMeshEffect && /* @__PURE__ */ jsxRuntime.jsx(DialogMeshEffect, {}),
|
|
2621
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative z-[1]", children }),
|
|
2622
|
+
showCloseButton && /* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "absolute right-4 top-4 z-50 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
2592
2623
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" }),
|
|
2593
2624
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Fechar" })
|
|
2594
2625
|
] })
|
|
@@ -2643,7 +2674,7 @@ var DialogDescription = React10__namespace.memo(
|
|
|
2643
2674
|
DialogPrimitive__namespace.Description,
|
|
2644
2675
|
{
|
|
2645
2676
|
ref,
|
|
2646
|
-
className: cn("text-
|
|
2677
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
2647
2678
|
...props
|
|
2648
2679
|
}
|
|
2649
2680
|
))
|