@photoroom/ui 0.1.769 → 0.1.770
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/editor/ColorPicker/ColorPicker.d.ts +1 -1
- package/components/editor/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/components/editor/ColorPicker/InlineColorPicker/InlineColorPicker.d.ts +1 -1
- package/components/editor/ColorPicker/InlineColorPicker/InlineColorPicker.d.ts.map +1 -1
- package/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export type ColorPickerProps = Readonly<{
|
|
|
8
8
|
/** Extra classes for the popover content -- e.g. raising z-index above a floating parent. */
|
|
9
9
|
popoverClassName?: string;
|
|
10
10
|
onChange: (newColor: string) => void;
|
|
11
|
-
/** Fires when a drag or arrow-key change on the color area or hue slider ends. */
|
|
11
|
+
/** Fires when a drag or arrow-key change on the color area or hue slider ends, or a value is typed. */
|
|
12
12
|
onChangeEnd?: () => void;
|
|
13
13
|
onConfirm?: (newColor?: string) => void;
|
|
14
14
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,uGAAuG;IACvG,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,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,kLAgBrB,gBAAgB,gCA4BlB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type InlineColorPickerProps = Readonly<{
|
|
2
2
|
color: string;
|
|
3
3
|
onChange: (newColor: string) => void;
|
|
4
|
-
/** Fires when a drag or arrow-key change on the color area or hue slider ends. */
|
|
4
|
+
/** Fires when a drag or arrow-key change on the color area or hue slider ends, or a value is typed. */
|
|
5
5
|
onChangeEnd?: () => void;
|
|
6
6
|
onConfirm?: (newColor?: string) => void;
|
|
7
7
|
initialMode?: "hex" | "rgb" | "hsl";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineColorPicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/ColorPicker/InlineColorPicker/InlineColorPicker.tsx"],"names":[],"mappings":"AAuBA,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,
|
|
1
|
+
{"version":3,"file":"InlineColorPicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/ColorPicker/InlineColorPicker/InlineColorPicker.tsx"],"names":[],"mappings":"AAuBA,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,uGAAuG;IACvG,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,eAAO,MAAM,iBAAiB,+GAU3B,sBAAsB,gCAwExB,CAAC"}
|
package/index.mjs
CHANGED
|
@@ -38903,8 +38903,8 @@ var Qme = ({ color: e, onChange: t, label: n }) => {
|
|
|
38903
38903
|
}
|
|
38904
38904
|
], gX = ({ color: e, onChange: t, onChangeEnd: n, onConfirm: r, initialMode: i = "hex", inputLabel: a, selectLabel: o, buttonLabel: s, className: c }) => {
|
|
38905
38905
|
let [l, u] = Ne(i), d = V((e) => {
|
|
38906
|
-
t(GY(e).toHex());
|
|
38907
|
-
}, [t]), f = Me(() => GY(e).toHex(), [e]);
|
|
38906
|
+
t(GY(e).toHex()), n?.();
|
|
38907
|
+
}, [t, n]), f = Me(() => GY(e).toHex(), [e]);
|
|
38908
38908
|
return /* @__PURE__ */ R("div", {
|
|
38909
38909
|
className: W("misc-color-picker", "flex flex-col gap-3", c),
|
|
38910
38910
|
children: [
|