@facter/ds-core 1.28.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.mjs CHANGED
@@ -2494,6 +2494,38 @@ var DataTable = Object.assign(DataTableRoot, {
2494
2494
  // Column utilities (para uso em column definitions)
2495
2495
  ColumnHeader: DataTableColumnHeader
2496
2496
  });
2497
+ function DialogMeshEffect() {
2498
+ return /* @__PURE__ */ jsxs("div", { className: "absolute inset-0 overflow-hidden rounded-t-lg pointer-events-none", children: [
2499
+ /* @__PURE__ */ jsx(
2500
+ "div",
2501
+ {
2502
+ className: "absolute inset-0",
2503
+ style: {
2504
+ background: `
2505
+ radial-gradient(ellipse at 30% -20%, hsl(var(--primary) / 0.2) 0%, transparent 60%),
2506
+ radial-gradient(ellipse at 80% -10%, hsl(var(--primary) / 0.14) 0%, transparent 55%),
2507
+ linear-gradient(to bottom, hsl(var(--primary) / 0.06), transparent 50%)
2508
+ `
2509
+ }
2510
+ }
2511
+ ),
2512
+ /* @__PURE__ */ jsx(
2513
+ "div",
2514
+ {
2515
+ className: "absolute inset-0",
2516
+ style: {
2517
+ backgroundImage: `
2518
+ linear-gradient(hsl(var(--primary) / 0.07) 1px, transparent 1px),
2519
+ linear-gradient(90deg, hsl(var(--primary) / 0.07) 1px, transparent 1px)
2520
+ `,
2521
+ backgroundSize: "28px 28px",
2522
+ mask: "linear-gradient(to bottom, black 0%, transparent 50%)",
2523
+ WebkitMask: "linear-gradient(to bottom, black 0%, transparent 50%)"
2524
+ }
2525
+ }
2526
+ )
2527
+ ] });
2528
+ }
2497
2529
  var Dialog = DialogPrimitive.Root;
2498
2530
  var DialogTrigger = DialogPrimitive.Trigger;
2499
2531
  var DialogPortal = DialogPrimitive.Portal;
@@ -2504,9 +2536,7 @@ var DialogOverlay = React10.memo(
2504
2536
  {
2505
2537
  ref,
2506
2538
  className: cn(
2507
- "fixed inset-0 z-50 bg-black/80",
2508
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
2509
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
2539
+ "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",
2510
2540
  className
2511
2541
  ),
2512
2542
  ...props
@@ -2547,16 +2577,17 @@ var dialogContentVariants = cva(
2547
2577
  }
2548
2578
  );
2549
2579
  var DialogContent = React10.memo(
2550
- React10.forwardRef(({ className, children, showCloseButton = true, size, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
2580
+ React10.forwardRef(({ className, children, showCloseButton = true, disableMeshEffect = false, size, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
2551
2581
  /* @__PURE__ */ jsx(DialogOverlay, {}),
2552
2582
  /* @__PURE__ */ jsxs(
2553
2583
  DialogPrimitive.Content,
2554
2584
  {
2555
2585
  ref,
2556
- className: cn(dialogContentVariants({ size, className })),
2586
+ className: cn(dialogContentVariants({ size, className }), "overflow-hidden"),
2557
2587
  ...props,
2558
2588
  children: [
2559
- children,
2589
+ !disableMeshEffect && /* @__PURE__ */ jsx(DialogMeshEffect, {}),
2590
+ /* @__PURE__ */ jsx("div", { className: "relative z-[1]", children }),
2560
2591
  showCloseButton && /* @__PURE__ */ jsxs(DialogPrimitive.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: [
2561
2592
  /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
2562
2593
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Fechar" })
@@ -2612,7 +2643,7 @@ var DialogDescription = React10.memo(
2612
2643
  DialogPrimitive.Description,
2613
2644
  {
2614
2645
  ref,
2615
- className: cn("text-[0.920rem] text-muted-foreground", className),
2646
+ className: cn("text-sm text-muted-foreground", className),
2616
2647
  ...props
2617
2648
  }
2618
2649
  ))