@proteos/ui 0.57.0 → 0.57.1

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.cts CHANGED
@@ -2118,12 +2118,19 @@ type ModalContentProps = ModalOverlayProps & {
2118
2118
  children: DialogProps['children'];
2119
2119
  /** Visual override for the panel wrapper (affects width, padding, etc.). */
2120
2120
  modalClassName?: string;
2121
+ /** Visual override for the dialog element inside the panel — the column the
2122
+ * slots sit in. It hugs its content by default; a panel given a height of
2123
+ * its own needs `grow` here for the slots to fill it. */
2124
+ dialogClassName?: string;
2125
+ /** Accessible name for a dialog WITHOUT a `<ModalTitle>`. A titled dialog is
2126
+ * named by its title and doesn't need this. */
2127
+ 'aria-label'?: string;
2121
2128
  };
2122
2129
  /**
2123
2130
  * Portaled overlay + floating panel + dialog role. Backdrop darkens the page
2124
2131
  * with a warm ink tint; panel uses vellum bg + rule border + the float shadow.
2125
2132
  */
2126
- declare function ModalContent({ children, className, modalClassName, isDismissable, ...props }: ModalContentProps): react_jsx_runtime.JSX.Element;
2133
+ declare function ModalContent({ children, className, modalClassName, dialogClassName, isDismissable, 'aria-label': ariaLabel, ...props }: ModalContentProps): react_jsx_runtime.JSX.Element;
2127
2134
  /** Padded top block. Contains `<ModalTitle>` and optionally `<ModalDescription>`. */
2128
2135
  declare function ModalHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
2129
2136
  /** The modal's accessible name. Uses RAC `<Heading slot="title">` so the
package/dist/index.d.ts CHANGED
@@ -2118,12 +2118,19 @@ type ModalContentProps = ModalOverlayProps & {
2118
2118
  children: DialogProps['children'];
2119
2119
  /** Visual override for the panel wrapper (affects width, padding, etc.). */
2120
2120
  modalClassName?: string;
2121
+ /** Visual override for the dialog element inside the panel — the column the
2122
+ * slots sit in. It hugs its content by default; a panel given a height of
2123
+ * its own needs `grow` here for the slots to fill it. */
2124
+ dialogClassName?: string;
2125
+ /** Accessible name for a dialog WITHOUT a `<ModalTitle>`. A titled dialog is
2126
+ * named by its title and doesn't need this. */
2127
+ 'aria-label'?: string;
2121
2128
  };
2122
2129
  /**
2123
2130
  * Portaled overlay + floating panel + dialog role. Backdrop darkens the page
2124
2131
  * with a warm ink tint; panel uses vellum bg + rule border + the float shadow.
2125
2132
  */
2126
- declare function ModalContent({ children, className, modalClassName, isDismissable, ...props }: ModalContentProps): react_jsx_runtime.JSX.Element;
2133
+ declare function ModalContent({ children, className, modalClassName, dialogClassName, isDismissable, 'aria-label': ariaLabel, ...props }: ModalContentProps): react_jsx_runtime.JSX.Element;
2127
2134
  /** Padded top block. Contains `<ModalTitle>` and optionally `<ModalDescription>`. */
2128
2135
  declare function ModalHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
2129
2136
  /** The modal's accessible name. Uses RAC `<Heading slot="title">` so the
package/dist/index.js CHANGED
@@ -2524,7 +2524,9 @@ function ModalContent({
2524
2524
  children,
2525
2525
  className,
2526
2526
  modalClassName,
2527
+ dialogClassName,
2527
2528
  isDismissable = true,
2529
+ "aria-label": ariaLabel,
2528
2530
  ...props
2529
2531
  }) {
2530
2532
  return /* @__PURE__ */ jsx(
@@ -2555,7 +2557,14 @@ function ModalContent({
2555
2557
  "exiting:animate-exit-zoom",
2556
2558
  modalClassName
2557
2559
  ),
2558
- children: /* @__PURE__ */ jsx(Dialog, { className: "outline-none flex flex-col min-h-0 overflow-hidden", children })
2560
+ children: /* @__PURE__ */ jsx(
2561
+ Dialog,
2562
+ {
2563
+ className: cn("outline-none flex flex-col min-h-0 overflow-hidden", dialogClassName),
2564
+ ...ariaLabel !== void 0 ? { "aria-label": ariaLabel } : {},
2565
+ children
2566
+ }
2567
+ )
2559
2568
  }
2560
2569
  )
2561
2570
  }