@ynput/ayon-react-components 0.3.20 → 0.3.22

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,4 +1,6 @@
1
- export interface AssigneeSelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
1
+ import { AssigneeFieldProps } from '.';
2
+ import { DropdownProps } from '../Dropdown';
3
+ export interface AssigneeSelectProps extends Omit<DropdownProps, 'onChange' | 'emptyMessage'> {
2
4
  value: string[];
3
5
  options: {
4
6
  name: string;
@@ -11,5 +13,11 @@ export interface AssigneeSelectProps extends Omit<React.HTMLAttributes<HTMLDivEl
11
13
  disabled?: boolean;
12
14
  align?: 'left' | 'right';
13
15
  isMultiple?: boolean;
16
+ placeholder?: string;
17
+ emptyIcon?: AssigneeFieldProps['emptyIcon'];
18
+ emptyMessage?: AssigneeFieldProps['emptyMessage'];
19
+ size?: AssigneeFieldProps['size'];
20
+ assigneeProps?: AssigneeFieldProps;
21
+ onAssigneeFieldClick?: AssigneeFieldProps['onClick'];
14
22
  }
15
23
  export declare const AssigneeSelect: import("react").ForwardRefExoticComponent<AssigneeSelectProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -7,5 +7,6 @@ export interface DefaultValueTemplateProps extends Pick<DropdownProps, 'value' |
7
7
  valueStyle?: React.CSSProperties;
8
8
  isOpen?: boolean;
9
9
  className?: string;
10
+ childrenCustom?: React.ReactNode;
10
11
  }
11
12
  export declare const DefaultValueTemplate: FC<DefaultValueTemplateProps>;
@@ -16,11 +16,12 @@ export declare const ListItemStyled: import("styled-components").StyledComponent
16
16
  export declare const DefaultItemStyled: import("styled-components").StyledComponent<"span", any, {
17
17
  $isSelected: boolean;
18
18
  }, never>;
19
- export interface DropdownProps {
19
+ export interface DropdownProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
20
20
  message?: string;
21
21
  itemStyle?: CSSProperties;
22
22
  valueStyle?: CSSProperties;
23
23
  listStyle?: CSSProperties;
24
+ buttonStyle?: CSSProperties;
24
25
  onOpen?: () => void;
25
26
  onClose?: () => void;
26
27
  value: Array<string | number>;
@@ -42,14 +43,21 @@ export interface DropdownProps {
42
43
  maxOptionsShown?: number;
43
44
  style?: CSSProperties;
44
45
  className?: string;
46
+ buttonClassName?: string;
47
+ itemClassName?: string;
48
+ valueClassName?: string;
49
+ listClassName?: string;
45
50
  widthExpand?: boolean;
46
51
  searchFields?: string[];
47
52
  minSelected?: number;
53
+ maxSelected?: number;
48
54
  dropIcon?: IconType;
49
55
  onClear?: () => void;
50
56
  editable?: boolean;
51
57
  maxHeight?: number;
52
58
  disableReorder?: boolean;
53
59
  disabledValues?: (string | number)[];
60
+ listInline?: boolean;
61
+ disableOpen?: boolean;
54
62
  }
55
63
  export declare const Dropdown: import("react").ForwardRefExoticComponent<DropdownProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,7 @@
1
+ import { DropdownProps } from '../Dropdown';
2
+ import { TagsSelectValueTemplateProps } from './TagsSelectValueTemplate';
1
3
  import { type TagsOrderType, type TagsType } from './tags';
2
- export interface TagsSelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
4
+ export interface TagsSelectProps extends Omit<DropdownProps, 'onChange'> {
3
5
  value: string[];
4
6
  options: {
5
7
  name: string;
@@ -16,5 +18,6 @@ export interface TagsSelectProps extends Omit<React.HTMLAttributes<HTMLDivElemen
16
18
  align?: 'left' | 'right';
17
19
  styleDropdown?: React.CSSProperties;
18
20
  width?: number;
21
+ valueProps?: TagsSelectValueTemplateProps;
19
22
  }
20
23
  export declare const TagsSelect: import("react").ForwardRefExoticComponent<TagsSelectProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,9 +1,8 @@
1
1
  import { FC } from 'react';
2
2
  import { DefaultValueTemplateProps } from '../Dropdown';
3
3
  import { type TagsType } from './tags';
4
- interface TagsSelectValueTemplateProps extends Omit<DefaultValueTemplateProps, 'children'> {
4
+ export interface TagsSelectValueTemplateProps extends Omit<DefaultValueTemplateProps, 'children'> {
5
5
  tags: TagsType;
6
6
  editor?: boolean;
7
7
  }
8
8
  export declare const TagsSelectValueTemplate: FC<TagsSelectValueTemplateProps>;
9
- export {};
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ export interface FileCardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ title: string;
4
+ type: string;
5
+ onRemove: () => void;
6
+ onSplit: () => void;
7
+ size: number;
8
+ length: number;
9
+ splitDisabled: boolean;
10
+ isFetching?: boolean;
11
+ }
12
+ export declare const FileCard: FC<FileCardProps>;
@@ -0,0 +1 @@
1
+ export * from './FileCard';
@@ -1,10 +1,22 @@
1
- export interface FileUploadProps extends React.HTMLAttributes<HTMLFormElement> {
2
- files: File[];
3
- setFiles: React.Dispatch<React.SetStateAction<File[]>>;
4
- mode?: 'single' | 'multiple' | 'sequence';
1
+ export interface CustomFile {
2
+ sequenceId: string | null;
3
+ sequenceNumber: number | null;
4
+ file: File;
5
+ }
6
+ type FormProps = Omit<React.HTMLAttributes<HTMLFormElement>, 'onSubmit'>;
7
+ export interface FileUploadProps extends FormProps {
8
+ files: CustomFile[];
9
+ setFiles: React.Dispatch<React.SetStateAction<CustomFile[]>>;
10
+ allowMultiple?: boolean;
11
+ allowSequence?: boolean;
5
12
  validExtensions?: string[];
6
- showMaxFiles?: number;
7
- style?: React.CSSProperties;
8
- className?: string;
13
+ confirmLabel?: string;
14
+ saveButton?: React.ReactNode;
15
+ onSubmit?: (files: CustomFile[]) => void;
16
+ isFetching?: boolean;
17
+ isSuccess?: boolean;
18
+ successMessage?: string;
19
+ isError?: boolean;
9
20
  }
10
21
  export declare const FileUpload: import("react").ForwardRefExoticComponent<FileUploadProps & import("react").RefAttributes<HTMLFormElement>>;
22
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ButtonProps } from '../Button';
3
+ import { IconType } from '../Icon';
4
+ export interface SaveButtonProps extends ButtonProps {
5
+ active?: boolean;
6
+ saving?: boolean;
7
+ icon?: IconType;
8
+ onClick?: () => void;
9
+ children?: React.ReactNode;
10
+ }
11
+ export declare const SaveButton: React.ForwardRefExoticComponent<SaveButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export * from './SaveButton';