@photoroom/ui 0.1.759 → 0.1.761

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.
@@ -8,9 +8,11 @@ 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. */
12
+ onChangeEnd?: () => void;
11
13
  onConfirm?: (newColor?: string) => void;
12
14
  onOpenChange?: (open: boolean) => void;
13
15
  selected?: boolean;
14
16
  } & Pick<PopoverProps, "side" | "align" | "sideOffset" | "alignOffset" | "collisionPadding">>;
15
- export declare const ColorPicker: ({ label, buttonLabel, className, popoverClassName, color, side, align, sideOffset, alignOffset, collisionPadding, onChange, onConfirm, onOpenChange, selected, }: ColorPickerProps) => import("react").JSX.Element;
17
+ export declare const ColorPicker: ({ label, buttonLabel, className, popoverClassName, color, side, align, sideOffset, alignOffset, collisionPadding, onChange, onChangeEnd, onConfirm, onOpenChange, selected, }: ColorPickerProps) => import("react").JSX.Element;
16
18
  //# sourceMappingURL=ColorPicker.d.ts.map
@@ -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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AW,kLAgBrB,gBAAgB,gCA4BlB,CAAC"}
@@ -1,6 +1,8 @@
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. */
5
+ onChangeEnd?: () => void;
4
6
  onConfirm?: (newColor?: string) => void;
5
7
  initialMode?: "hex" | "rgb" | "hsl";
6
8
  inputLabel?: string;
@@ -8,5 +10,5 @@ export type InlineColorPickerProps = Readonly<{
8
10
  buttonLabel?: string;
9
11
  className?: string;
10
12
  }>;
11
- export declare const InlineColorPicker: ({ color, onChange, onConfirm, initialMode, inputLabel, selectLabel, buttonLabel, className, }: InlineColorPickerProps) => import("react").JSX.Element;
13
+ export declare const InlineColorPicker: ({ color, onChange, onChangeEnd, onConfirm, initialMode, inputLabel, selectLabel, buttonLabel, className, }: InlineColorPickerProps) => import("react").JSX.Element;
12
14
  //# sourceMappingURL=InlineColorPicker.d.ts.map
@@ -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,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,kGAS3B,sBAAsB,gCAmExB,CAAC"}
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,kFAAkF;IAClF,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,gCAuExB,CAAC"}