@ynput/ayon-react-components 1.7.19 → 1.8.0

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,5 +1,5 @@
1
1
  import { ChangeEvent, FocusEvent } from 'react';
2
- export interface ColorPickerPreviewProps {
2
+ export interface ColorPickerPreviewProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  onClick?: () => void;
4
4
  onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
5
5
  backgroundColor?: string;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export interface InputColorProps {
2
+ export interface InputColorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
3
3
  value: string | number[];
4
4
  onChange: (event: {
5
5
  target: {
@@ -8,7 +8,8 @@ export interface InputColorProps {
8
8
  }) => void;
9
9
  alpha?: boolean;
10
10
  format?: 'hex' | 'float' | 'uint8' | 'uint16';
11
- className?: string;
12
- style?: HTMLAttributes<HTMLDivElement>['style'];
11
+ pt?: {
12
+ preview?: HTMLAttributes<HTMLDivElement>;
13
+ };
13
14
  }
14
15
  export declare const InputColor: import("react").ForwardRefExoticComponent<InputColorProps & import("react").RefAttributes<HTMLDivElement>>;