@photoroom/ui 0.1.645 → 0.1.647
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/components/dialog/SettingsDialog/SettingsDialog.d.ts +3 -1
- package/components/dialog/SettingsDialog/SettingsDialog.d.ts.map +1 -1
- package/components/website/ValuesBlock/ValueCard.d.ts +1 -1
- package/components/website/ValuesBlock/ValueCard.d.ts.map +1 -1
- package/index.mjs +20 -16
- package/package.json +1 -1
|
@@ -4,6 +4,8 @@ export type SettingsDialogProps = Readonly<{
|
|
|
4
4
|
defaultOpen?: boolean;
|
|
5
5
|
onOpenChange?: (open: boolean) => void;
|
|
6
6
|
trigger?: React.ReactNode;
|
|
7
|
+
/** Accessible name of the dialog; visually hidden. */
|
|
8
|
+
title: string;
|
|
7
9
|
sidePanel: React.ReactNode;
|
|
8
10
|
hideCloseButton?: boolean;
|
|
9
11
|
/** Translated accessible name for the close button; defaults to "Close". */
|
|
@@ -20,5 +22,5 @@ export type SettingsDialogProps = Readonly<{
|
|
|
20
22
|
*
|
|
21
23
|
* https://www.figma.com/design/cHgANa7dtzDDGXk7dKuAOQ/Prism?node-id=76519-18164&m=dev
|
|
22
24
|
*/
|
|
23
|
-
export declare const SettingsDialog: ({ open, defaultOpen, onOpenChange, trigger, sidePanel, hideCloseButton, closeButtonLabel, onEscapeKeyDown, onPointerDownOutside, className, testId, children, }: SettingsDialogProps) => import("react").JSX.Element;
|
|
25
|
+
export declare const SettingsDialog: ({ open, defaultOpen, onOpenChange, trigger, title, sidePanel, hideCloseButton, closeButtonLabel, onEscapeKeyDown, onPointerDownOutside, className, testId, children, }: SettingsDialogProps) => import("react").JSX.Element;
|
|
24
26
|
//# sourceMappingURL=SettingsDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/SettingsDialog/SettingsDialog.tsx"],"names":[],"mappings":"AAKA,OAA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C1B,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,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,cAAc,2KAcxB,mBAAmB,gCAmDrB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type ValueCardProps = Readonly<{
|
|
2
2
|
icon?: React.ReactNode;
|
|
3
3
|
title: string;
|
|
4
|
-
description:
|
|
4
|
+
description: React.ReactNode;
|
|
5
5
|
cardCount?: number;
|
|
6
6
|
}> & Omit<React.ComponentProps<"div">, "children">;
|
|
7
7
|
export declare const ValueCard: ({ icon, title, description, cardCount, className, ...rest }: ValueCardProps) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueCard.d.ts","sourceRoot":"","sources":["../../../../src/components/website/ValuesBlock/ValueCard.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;IACpC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"ValueCard.d.ts","sourceRoot":"","sources":["../../../../src/components/website/ValuesBlock/ValueCard.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;IACpC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,GACA,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEhD,eAAO,MAAM,SAAS,gEAOnB,cAAc,gCAsChB,CAAC"}
|
package/index.mjs
CHANGED
|
@@ -36732,10 +36732,10 @@ var WJ = ({ "aria-label": e = "Close", ...t }) => /* @__PURE__ */ I(AJ, {
|
|
|
36732
36732
|
/* @__PURE__ */ L("div", {
|
|
36733
36733
|
className: "flex flex-col gap-2 pe-8",
|
|
36734
36734
|
children: [/* @__PURE__ */ I(EJ, {
|
|
36735
|
-
className: "heading-light-500 text-content-primary",
|
|
36735
|
+
className: "heading-light-500 text-content-primary wrap-break-word",
|
|
36736
36736
|
children: i
|
|
36737
36737
|
}), a && /* @__PURE__ */ I(OJ, {
|
|
36738
|
-
className: "body-500 text-content-secondary",
|
|
36738
|
+
className: "body-500 text-content-secondary wrap-break-word",
|
|
36739
36739
|
children: a
|
|
36740
36740
|
})]
|
|
36741
36741
|
}),
|
|
@@ -37013,8 +37013,8 @@ var lY = (e) => /* @__PURE__ */ I("svg", {
|
|
|
37013
37013
|
fY.Footer = uY, fY.SelectionFooter = dY, fY.SelectionThumbnail = eY;
|
|
37014
37014
|
//#endregion
|
|
37015
37015
|
//#region src/components/dialog/SettingsDialog/SettingsDialog.tsx
|
|
37016
|
-
var pY = ({ open: e, defaultOpen: t, onOpenChange: n, trigger: r,
|
|
37017
|
-
let [
|
|
37016
|
+
var pY = ({ open: e, defaultOpen: t, onOpenChange: n, trigger: r, title: i, sidePanel: a, hideCloseButton: o = !1, closeButtonLabel: s, onEscapeKeyDown: c, onPointerDownOutside: l, className: u, testId: d, children: f }) => {
|
|
37017
|
+
let [p, m] = Fe(!1);
|
|
37018
37018
|
return /* @__PURE__ */ L(lJ, {
|
|
37019
37019
|
open: e,
|
|
37020
37020
|
defaultOpen: t,
|
|
@@ -37023,32 +37023,36 @@ var pY = ({ open: e, defaultOpen: t, onOpenChange: n, trigger: r, sidePanel: i,
|
|
|
37023
37023
|
asChild: !0,
|
|
37024
37024
|
children: r
|
|
37025
37025
|
}), /* @__PURE__ */ I(hJ, { children: /* @__PURE__ */ I(KJ, { children: /* @__PURE__ */ L(GJ, {
|
|
37026
|
-
className: U("relative flex max-w-256 overflow-hidden",
|
|
37027
|
-
"data-testid":
|
|
37028
|
-
onEscapeKeyDown:
|
|
37029
|
-
onPointerDownOutside:
|
|
37026
|
+
className: U("relative flex max-w-256 overflow-hidden", u),
|
|
37027
|
+
"data-testid": d,
|
|
37028
|
+
onEscapeKeyDown: c,
|
|
37029
|
+
onPointerDownOutside: l,
|
|
37030
37030
|
children: [
|
|
37031
|
-
/* @__PURE__ */ I(
|
|
37032
|
-
className:
|
|
37031
|
+
/* @__PURE__ */ I(EJ, {
|
|
37032
|
+
className: "sr-only",
|
|
37033
37033
|
children: i
|
|
37034
37034
|
}),
|
|
37035
|
+
/* @__PURE__ */ I("div", {
|
|
37036
|
+
className: H("bg-surface-high border-misc-divider w-70 shrink-0 overflow-y-auto border-e p-4", "max-[800px]:border-misc-border max-[800px]:rounded-500 max-[800px]:absolute max-[800px]:inset-y-3 max-[800px]:start-3 max-[800px]:z-10 max-[800px]:w-70 max-[800px]:border", !p && "max-[800px]:hidden"),
|
|
37037
|
+
children: a
|
|
37038
|
+
}),
|
|
37035
37039
|
/* @__PURE__ */ L("div", {
|
|
37036
37040
|
className: "bg-surface-low relative min-w-0 flex-1",
|
|
37037
37041
|
children: [/* @__PURE__ */ I("div", {
|
|
37038
|
-
className: H("absolute start-3 top-3 z-20 hidden max-[800px]:block",
|
|
37042
|
+
className: H("absolute start-3 top-3 z-20 hidden max-[800px]:block", p && "max-[800px]:start-76"),
|
|
37039
37043
|
children: /* @__PURE__ */ I(cY, { children: /* @__PURE__ */ I(cY.Button, {
|
|
37040
37044
|
icon: /* @__PURE__ */ I(lY, { className: "size-5" }),
|
|
37041
37045
|
tooltip: "Toggle sidebar",
|
|
37042
|
-
onClick: () =>
|
|
37046
|
+
onClick: () => m((e) => !e)
|
|
37043
37047
|
}) })
|
|
37044
37048
|
}), /* @__PURE__ */ I("div", {
|
|
37045
37049
|
className: "h-full overflow-y-auto px-10 py-16",
|
|
37046
|
-
children:
|
|
37050
|
+
children: f
|
|
37047
37051
|
})]
|
|
37048
37052
|
}),
|
|
37049
|
-
!
|
|
37053
|
+
!o && /* @__PURE__ */ I("div", {
|
|
37050
37054
|
className: "absolute inset-e-3 top-3 z-30",
|
|
37051
|
-
children: /* @__PURE__ */ I(WJ, { "aria-label":
|
|
37055
|
+
children: /* @__PURE__ */ I(WJ, { "aria-label": s })
|
|
37052
37056
|
})
|
|
37053
37057
|
]
|
|
37054
37058
|
}) }) })]
|
|
@@ -61427,7 +61431,7 @@ var kDe = ({ title: e, logos: t, className: n, ...r }) => {
|
|
|
61427
61431
|
children: [/* @__PURE__ */ I("h3", {
|
|
61428
61432
|
className: H("component-700 text-content-primary text-balance", o && "sm:max-w-[560px] lg:max-w-none"),
|
|
61429
61433
|
children: t
|
|
61430
|
-
}), /* @__PURE__ */ I("
|
|
61434
|
+
}), /* @__PURE__ */ I("div", {
|
|
61431
61435
|
className: H("body-light-600 text-content-secondary text-pretty", o && "sm:max-w-[560px] lg:max-w-none"),
|
|
61432
61436
|
children: n
|
|
61433
61437
|
})]
|