@ynput/ayon-react-components 0.4.6 → 0.4.7

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,12 +1,12 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
- import { IconType } from '../Icon';
2
+ import { IconProps, IconType } from '../Icon';
3
3
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  label?: string;
5
5
  icon?: IconType;
6
6
  tooltip?: string;
7
7
  link?: boolean;
8
8
  disabled?: boolean;
9
- iconStyle?: React.CSSProperties;
9
+ iconProps?: Omit<IconProps, 'icon'>;
10
10
  variant?: 'surface' | 'tonal' | 'filled' | 'nav' | 'text' | 'tertiary';
11
11
  className?: string;
12
12
  selected?: boolean;
@@ -1,3 +1,4 @@
1
+ import { IconType } from '../../Icon';
1
2
  export interface AssigneeFieldProps extends React.HTMLAttributes<HTMLDivElement> {
2
3
  value: {
3
4
  name: string;
@@ -9,7 +10,7 @@ export interface AssigneeFieldProps extends React.HTMLAttributes<HTMLDivElement>
9
10
  isMultiple?: boolean;
10
11
  placeholder?: string;
11
12
  emptyMessage?: string;
12
- emptyIcon?: boolean;
13
+ emptyIcon?: IconType | null;
13
14
  size?: number;
14
15
  }
15
16
  export declare const AssigneeField: import("react").ForwardRefExoticComponent<AssigneeFieldProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,5 @@
1
1
  import { IconType } from '../Icon';
2
+ import { User } from '../User/UserImagesStacked';
2
3
  type NotificationType = 'comment' | 'due' | 'overdue';
3
4
  export interface EntityCardProps extends React.HTMLAttributes<HTMLDivElement> {
4
5
  title?: string;
@@ -18,6 +19,7 @@ export interface EntityCardProps extends React.HTMLAttributes<HTMLDivElement> {
18
19
  isDragging?: boolean;
19
20
  isDraggable?: boolean;
20
21
  disabled?: boolean;
22
+ assignees?: User[];
21
23
  variant?: 'thumbnail' | 'basic' | 'full';
22
24
  onThumbnailKeyDown?: (e: React.KeyboardEvent<HTMLDivElement>) => void;
23
25
  onActivate?: () => void;
@@ -1,9 +1,10 @@
1
+ export interface User {
2
+ avatarUrl?: string;
3
+ fullName?: string;
4
+ self?: boolean;
5
+ }
1
6
  export interface UserImagesStackedProps extends React.HTMLAttributes<HTMLDivElement> {
2
- users: {
3
- avatarUrl?: string;
4
- fullName?: string;
5
- self?: boolean;
6
- }[];
7
+ users: User[];
7
8
  size?: number;
8
9
  gap?: number;
9
10
  max?: number;