@photoroom/ui 0.1.174 → 0.1.175
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.
|
@@ -5,9 +5,11 @@ export type ColorPickerProps = Readonly<{
|
|
|
5
5
|
buttonLabel?: string;
|
|
6
6
|
color?: string;
|
|
7
7
|
className?: string;
|
|
8
|
+
/** Extra classes for the popover content -- e.g. raising z-index above a floating parent. */
|
|
9
|
+
popoverClassName?: string;
|
|
8
10
|
onChange: (newColor: string) => void;
|
|
9
11
|
onConfirm?: (newColor?: string) => void;
|
|
10
12
|
selected?: boolean;
|
|
11
13
|
} & Pick<PopoverProps, "side" | "align" | "sideOffset" | "alignOffset" | "collisionPadding">>;
|
|
12
|
-
export declare const ColorPicker: ({ label, buttonLabel, className, color, side, align, sideOffset, alignOffset, collisionPadding, onChange, onConfirm, selected, }: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const ColorPicker: ({ label, buttonLabel, className, popoverClassName, color, side, align, sideOffset, alignOffset, collisionPadding, onChange, onConfirm, selected, }: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
//# sourceMappingURL=ColorPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKlE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC;IACE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,aAAa,GAAG,kBAAkB,CAAC,CAC7F,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,oJAczB,gBAAgB,4CA0BlB,CAAC"}
|
package/index.mjs
CHANGED
|
@@ -36427,28 +36427,28 @@ var _Y = ({ color: e, onChange: t, label: n }) => {
|
|
|
36427
36427
|
})
|
|
36428
36428
|
]
|
|
36429
36429
|
});
|
|
36430
|
-
}, xY = ({ label: e, buttonLabel: t, className: n,
|
|
36430
|
+
}, xY = ({ label: e, buttonLabel: t, className: n, popoverClassName: r, color: i = "#FFFFFF", side: a = "bottom", align: o = "start", sideOffset: s, alignOffset: c, collisionPadding: l, onChange: u, onConfirm: d, selected: f }) => /* @__PURE__ */ E(JW, {
|
|
36431
36431
|
withBorder: !1,
|
|
36432
|
-
side:
|
|
36433
|
-
align:
|
|
36434
|
-
sideOffset:
|
|
36435
|
-
alignOffset:
|
|
36436
|
-
collisionPadding:
|
|
36437
|
-
className: "relative z-10 overflow-visible",
|
|
36432
|
+
side: a,
|
|
36433
|
+
align: o,
|
|
36434
|
+
sideOffset: s,
|
|
36435
|
+
alignOffset: c,
|
|
36436
|
+
collisionPadding: l,
|
|
36437
|
+
className: H("relative z-10 overflow-visible", r),
|
|
36438
36438
|
triggerElement: /* @__PURE__ */ E(Uq, {
|
|
36439
36439
|
"aria-label": e,
|
|
36440
|
-
color:
|
|
36440
|
+
color: i,
|
|
36441
36441
|
className: n,
|
|
36442
|
-
selected:
|
|
36442
|
+
selected: f
|
|
36443
36443
|
}),
|
|
36444
36444
|
children: /* @__PURE__ */ E("div", {
|
|
36445
36445
|
className: "p-4",
|
|
36446
36446
|
children: /* @__PURE__ */ E(bY, {
|
|
36447
36447
|
inputLabel: e,
|
|
36448
36448
|
buttonLabel: t,
|
|
36449
|
-
color:
|
|
36450
|
-
onChange:
|
|
36451
|
-
onConfirm:
|
|
36449
|
+
color: i,
|
|
36450
|
+
onChange: u,
|
|
36451
|
+
onConfirm: d,
|
|
36452
36452
|
className: "w-[328px]"
|
|
36453
36453
|
})
|
|
36454
36454
|
})
|