@photoroom/ui 0.1.341 → 0.1.343
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownSearchField.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/DropdownSearchField/DropdownSearchField.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,GACzE,QAAQ,CAAC;IACP,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC,CAAC;AAEL,eAAO,MAAM,mBAAmB;6EAQ7B,wBAAwB;;
|
|
1
|
+
{"version":3,"file":"DropdownSearchField.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/DropdownSearchField/DropdownSearchField.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,GACzE,QAAQ,CAAC;IACP,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC,CAAC;AAEL,eAAO,MAAM,mBAAmB;6EAQ7B,wBAAwB;;CAkF1B,CAAC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export type NumberedSectionHeaderProps = Readonly<{
|
|
2
2
|
index: string;
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Plain text, or a node when the subtitle embeds inline controls (e.g. an `InlineButton`).
|
|
6
|
+
* Phrasing content only — it renders inside a `<p>`, so block elements would be re-parented.
|
|
7
|
+
*/
|
|
8
|
+
subtitle?: React.ReactNode;
|
|
5
9
|
className?: string;
|
|
6
10
|
}>;
|
|
7
11
|
export declare const NumberedSectionHeader: ({ index, title, subtitle, className, }: NumberedSectionHeaderProps) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberedSectionHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/list/SectionHeader/NumberedSectionHeader.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAAC;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"NumberedSectionHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/list/SectionHeader/NumberedSectionHeader.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAAC;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAAI,wCAKnC,0BAA0B,gCAiB5B,CAAC"}
|
package/index.mjs
CHANGED
|
@@ -30936,7 +30936,11 @@ var _W = VU, vW = UU, yW = GU, bW = qU, xW = $U, SW = tW, CW = rW, wW = aW, TW =
|
|
|
30936
30936
|
}, [r]), p = V(() => {
|
|
30937
30937
|
l.current && (a?.(), l.current.value = "", l.current.focus(), d(!0));
|
|
30938
30938
|
}, [a]), m = V((e) => {
|
|
30939
|
-
i?.(e), e.key === "Escape" && e.currentTarget.value
|
|
30939
|
+
if (i?.(e), e.key === "Escape" && e.currentTarget.value) {
|
|
30940
|
+
p(), e.stopPropagation();
|
|
30941
|
+
return;
|
|
30942
|
+
}
|
|
30943
|
+
e.key !== "ArrowDown" && e.key !== "ArrowUp" && e.key !== "Escape" && e.stopPropagation();
|
|
30940
30944
|
}, [p, i]);
|
|
30941
30945
|
return /* @__PURE__ */ n("label", {
|
|
30942
30946
|
className: W("relative cursor-pointer", "h-[calc(3.5rem-2px)] w-full p-3", "flex items-center gap-2", "bg-surface-default", "has-disabled:cursor-not-allowed has-disabled:opacity-30", e),
|
|
@@ -49665,7 +49669,7 @@ var J_e = ({ label: e, description: r, avatar: i, trailingElement: a, className:
|
|
|
49665
49669
|
c
|
|
49666
49670
|
]
|
|
49667
49671
|
}), Z_e = ({ index: e, title: r, subtitle: i, className: a }) => /* @__PURE__ */ n("div", {
|
|
49668
|
-
className: W("flex w-full flex-col gap-0.5 overflow-clip", a),
|
|
49672
|
+
className: W("flex w-full flex-col gap-0.5 overflow-x-clip", a),
|
|
49669
49673
|
children: [/* @__PURE__ */ t(w8, {
|
|
49670
49674
|
title: r,
|
|
49671
49675
|
className: "gap-1.5",
|