@photoroom/ui 0.1.699 → 0.1.700
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.
|
@@ -15,11 +15,16 @@ export type StandardDialogProps = Readonly<{
|
|
|
15
15
|
onPointerDownOutside?: DialogPrimitive.ContentProps["onPointerDownOutside"];
|
|
16
16
|
/** Overrides which element takes focus on open; `event.preventDefault()` then focus the target. */
|
|
17
17
|
onOpenAutoFocus?: DialogPrimitive.ContentProps["onOpenAutoFocus"];
|
|
18
|
+
/**
|
|
19
|
+
* Runs as the dialog hands focus back on close. Without a `trigger`, nothing gets focus back, so
|
|
20
|
+
* a dialog opened programmatically (e.g. from a menu item) focuses its opener here.
|
|
21
|
+
*/
|
|
22
|
+
onCloseAutoFocus?: DialogPrimitive.ContentProps["onCloseAutoFocus"];
|
|
18
23
|
className?: string;
|
|
19
24
|
testId?: string;
|
|
20
25
|
children?: React.ReactNode;
|
|
21
26
|
}>;
|
|
22
|
-
export declare function StandardDialog({ open, defaultOpen, onOpenChange, trigger, title, subtitle, footer, hideCloseButton, closeButtonLabel, onEscapeKeyDown, onPointerDownOutside, onOpenAutoFocus, className, testId, children, }: StandardDialogProps): import("react").JSX.Element;
|
|
27
|
+
export declare function StandardDialog({ open, defaultOpen, onOpenChange, trigger, title, subtitle, footer, hideCloseButton, closeButtonLabel, onEscapeKeyDown, onPointerDownOutside, onOpenAutoFocus, onCloseAutoFocus, className, testId, children, }: StandardDialogProps): import("react").JSX.Element;
|
|
23
28
|
export declare namespace StandardDialog {
|
|
24
29
|
export { StandardDialogFooter as Footer };
|
|
25
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/StandardDialog/StandardDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAClE,oBAAoB,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC;IAC5E,mGAAmG;IACnG,eAAe,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC,CAAC;uCAQ4B,EAC7B,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,MAAM,EACN,eAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,MAAM,EACN,QAAQ,GACT,EAAE,mBAAmB;;
|
|
1
|
+
{"version":3,"file":"StandardDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/StandardDialog/StandardDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM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
className: "flex flex-1 items-center justify-end gap-2",
|
|
37008
37008
|
children: e
|
|
37009
37009
|
})]
|
|
37010
|
-
}), QJ = ({ open: e, defaultOpen: t, onOpenChange: n, trigger: r, title: i, subtitle: a, footer: o, hideCloseButton: s = !1, closeButtonLabel: c, onEscapeKeyDown: l, onPointerDownOutside: u, onOpenAutoFocus: d,
|
|
37010
|
+
}), QJ = ({ open: e, defaultOpen: t, onOpenChange: n, trigger: r, title: i, subtitle: a, footer: o, hideCloseButton: s = !1, closeButtonLabel: c, onEscapeKeyDown: l, onPointerDownOutside: u, onOpenAutoFocus: d, onCloseAutoFocus: f, className: p, testId: m, children: h }) => /* @__PURE__ */ L(fJ, {
|
|
37011
37011
|
open: e,
|
|
37012
37012
|
defaultOpen: t,
|
|
37013
37013
|
onOpenChange: n,
|
|
@@ -37015,11 +37015,12 @@ var qJ = ({ "aria-label": e = "Close", ...t }) => /* @__PURE__ */ I(NJ, {
|
|
|
37015
37015
|
asChild: !0,
|
|
37016
37016
|
children: r
|
|
37017
37017
|
}), /* @__PURE__ */ I(vJ, { children: /* @__PURE__ */ I(YJ, { children: /* @__PURE__ */ L(JJ, {
|
|
37018
|
-
className: U("flex h-fit max-h-full w-full max-w-120 flex-col gap-6 p-6",
|
|
37019
|
-
"data-testid":
|
|
37018
|
+
className: U("flex h-fit max-h-full w-full max-w-120 flex-col gap-6 p-6", p),
|
|
37019
|
+
"data-testid": m,
|
|
37020
37020
|
onEscapeKeyDown: l,
|
|
37021
37021
|
onPointerDownOutside: u,
|
|
37022
37022
|
onOpenAutoFocus: d,
|
|
37023
|
+
onCloseAutoFocus: f,
|
|
37023
37024
|
children: [
|
|
37024
37025
|
/* @__PURE__ */ L("div", {
|
|
37025
37026
|
className: "flex flex-col gap-2 pe-8",
|
|
@@ -37031,9 +37032,9 @@ var qJ = ({ "aria-label": e = "Close", ...t }) => /* @__PURE__ */ I(NJ, {
|
|
|
37031
37032
|
children: a
|
|
37032
37033
|
})]
|
|
37033
37034
|
}),
|
|
37034
|
-
|
|
37035
|
+
h && /* @__PURE__ */ I("div", {
|
|
37035
37036
|
className: "-m-2 flex min-h-0 flex-col gap-6 overflow-y-auto p-2",
|
|
37036
|
-
children:
|
|
37037
|
+
children: h
|
|
37037
37038
|
}),
|
|
37038
37039
|
o,
|
|
37039
37040
|
!s && /* @__PURE__ */ I("div", {
|