@ynput/ayon-react-components 0.3.0 → 0.3.1
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/dist/AssigneeSelect/AssigneeDropdownTemplate.d.ts +9 -0
- package/dist/AssigneeSelect/AssigneeField.d.ts +15 -0
- package/dist/AssigneeSelect/AssigneeSelect.d.ts +15 -0
- package/dist/AssigneeSelect/index.d.ts +3 -0
- package/dist/Button/Button.d.ts +11 -0
- package/dist/Button/index.d.ts +1 -0
- package/dist/Dropdown/Dropdown.d.ts +32 -0
- package/dist/Dropdown/index.d.ts +1 -0
- package/dist/FileUpload/FileUpload.d.ts +10 -0
- package/dist/FileUpload/index.d.ts +1 -0
- package/dist/Icon/Icon.d.ts +6 -0
- package/dist/Icon/index.d.ts +3 -0
- package/dist/IconSelect/IconSelect.d.ts +16 -0
- package/dist/IconSelect/index.d.ts +1 -0
- package/dist/Inputs/InputColor/ColorPickerPreview.d.ts +10 -0
- package/dist/Inputs/InputColor/InputColor.d.ts +14 -0
- package/dist/Inputs/InputColor/index.d.ts +1 -0
- package/dist/Inputs/InputNumber/InputNumber.d.ts +2 -0
- package/dist/Inputs/InputNumber/index.d.ts +1 -0
- package/dist/Inputs/InputPassword/InputPassword.d.ts +2 -0
- package/dist/Inputs/InputPassword/index.d.ts +1 -0
- package/dist/Inputs/InputSwitch/InputSwitch.d.ts +6 -0
- package/dist/Inputs/InputSwitch/index.d.ts +1 -0
- package/dist/Inputs/InputText/InputText.d.ts +2 -0
- package/dist/Inputs/InputText/index.d.ts +1 -0
- package/dist/Inputs/InputTextarea/InputTextarea.d.ts +2 -0
- package/dist/Inputs/InputTextarea/index.d.ts +1 -0
- package/dist/Inputs/LockedInput/LockedInput.d.ts +15 -0
- package/dist/Inputs/LockedInput/index.d.ts +1 -0
- package/dist/Inputs/styles.d.ts +2 -0
- package/dist/Layout/Divider/Divider.d.ts +2 -0
- package/dist/Layout/Divider/index.d.ts +1 -0
- package/dist/Layout/FormLayout/FormLayout.d.ts +2 -0
- package/dist/Layout/FormLayout/index.d.ts +1 -0
- package/dist/Layout/FormRow/FormRow.d.ts +5 -0
- package/dist/Layout/FormRow/index.d.ts +1 -0
- package/dist/Layout/OverflowField/OverflowField.d.ts +6 -0
- package/dist/Layout/OverflowField/index.d.ts +1 -0
- package/dist/Layout/Section/Section.d.ts +2 -0
- package/dist/Layout/Section/index.d.ts +1 -0
- package/dist/Layout/Spacer/Spacer.d.ts +2 -0
- package/dist/Layout/Spacer/index.d.ts +1 -0
- package/dist/Layout/TableRow/TableRow.d.ts +7 -0
- package/dist/Layout/TableRow/index.d.ts +1 -0
- package/dist/Layout/Toolbar/Toolbar.d.ts +2 -0
- package/dist/Layout/Toolbar/index.d.ts +1 -0
- package/dist/Overlay/Dialog/Dialog.d.ts +11 -0
- package/dist/Overlay/Dialog/index.d.ts +1 -0
- package/dist/Overlay/LoaderShade/LoaderShade.d.ts +4 -0
- package/dist/Overlay/LoaderShade/index.d.ts +1 -0
- package/dist/Panels/Panel/Panel.d.ts +3 -0
- package/dist/Panels/Panel/index.d.ts +1 -0
- package/dist/Panels/ScrollPanel/ScrollPanel.d.ts +6 -0
- package/dist/Panels/ScrollPanel/index.d.ts +1 -0
- package/dist/Panels/TablePanel/TablePanel.d.ts +7 -0
- package/dist/Panels/TablePanel/index.d.ts +1 -0
- package/dist/User/UserImage/UserImage.d.ts +7 -0
- package/dist/User/UserImage/index.d.ts +1 -0
- package/dist/User/UserImagesStacked/UserImagesStacked.d.ts +12 -0
- package/dist/User/UserImagesStacked/index.d.ts +1 -0
- package/dist/ayon-react-components.es.js +7629 -7232
- package/dist/ayon-react-components.umd.js +730 -476
- package/dist/favicon-16x16.png +0 -0
- package/dist/favicon-32x32.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/helpers/floatToInt16.d.ts +2 -0
- package/dist/helpers/floatToInt8.d.ts +2 -0
- package/dist/helpers/hexToFloat.d.ts +2 -0
- package/dist/helpers/int8ToHex.d.ts +2 -0
- package/dist/helpers/toHexColor.d.ts +2 -0
- package/dist/helpers/validateHexColor.d.ts +2 -0
- package/dist/index.d.ts +29 -0
- package/dist/preview.css +14 -0
- package/dist/storybook.css +28 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface AssigneeDropdownProps {
|
|
2
|
+
name: string;
|
|
3
|
+
fullName?: string;
|
|
4
|
+
avatarUrl?: string;
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
size?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const AssigneeDropdownTemplate: ({ name, avatarUrl, fullName, isSelected, onClick, size, }: AssigneeDropdownProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface AssigneeFieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
value: {
|
|
3
|
+
name: string;
|
|
4
|
+
fullName?: string;
|
|
5
|
+
avatarUrl?: string;
|
|
6
|
+
}[];
|
|
7
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
isMultiple?: boolean;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
emptyMessage?: string;
|
|
12
|
+
emptyIcon?: boolean;
|
|
13
|
+
size?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const AssigneeField: import("react").ForwardRefExoticComponent<AssigneeFieldProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface AssigneeSelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
2
|
+
value: string[];
|
|
3
|
+
options: {
|
|
4
|
+
name: string;
|
|
5
|
+
fullName?: string;
|
|
6
|
+
avatarUrl?: string;
|
|
7
|
+
}[];
|
|
8
|
+
editor?: boolean;
|
|
9
|
+
onChange?: (names: string[]) => void;
|
|
10
|
+
widthExpand?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
align?: 'left' | 'right';
|
|
13
|
+
isMultiple?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const AssigneeSelect: import("react").ForwardRefExoticComponent<AssigneeSelectProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { IconType } from '../Icon';
|
|
3
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
label?: string;
|
|
5
|
+
icon?: IconType;
|
|
6
|
+
tooltip?: string;
|
|
7
|
+
link?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
iconStyle?: React.CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export interface DropdownProps {
|
|
3
|
+
message?: string;
|
|
4
|
+
itemStyle?: CSSProperties;
|
|
5
|
+
valueStyle?: CSSProperties;
|
|
6
|
+
listStyle?: CSSProperties;
|
|
7
|
+
onOpen?: () => void;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
value: Array<string | number>;
|
|
10
|
+
valueTemplate?: (value?: (string | number)[]) => React.ReactNode;
|
|
11
|
+
dataKey?: string;
|
|
12
|
+
dataLabel?: string;
|
|
13
|
+
options: Array<any>;
|
|
14
|
+
itemTemplate?: (option: any, isActive: boolean, isSelected: boolean) => React.ReactNode;
|
|
15
|
+
align?: 'left' | 'right';
|
|
16
|
+
multiSelect?: boolean;
|
|
17
|
+
search?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
valueIcon?: string;
|
|
20
|
+
emptyMessage?: string;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
isChanged?: boolean;
|
|
23
|
+
isMultiple?: boolean;
|
|
24
|
+
onChange?: (v: (string | number)[]) => void;
|
|
25
|
+
maxOptionsShown?: number;
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
className?: string;
|
|
28
|
+
widthExpand?: boolean;
|
|
29
|
+
searchFields?: string[];
|
|
30
|
+
minSelected?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare const Dropdown: import("react").ForwardRefExoticComponent<DropdownProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dropdown';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface FileUploadProps extends React.HTMLAttributes<HTMLFormElement> {
|
|
2
|
+
files: File[];
|
|
3
|
+
setFiles: React.Dispatch<React.SetStateAction<File[]>>;
|
|
4
|
+
mode?: 'single' | 'multiple' | 'sequence';
|
|
5
|
+
validExtensions?: string[];
|
|
6
|
+
showMaxFiles?: number;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const FileUpload: import("react").ForwardRefExoticComponent<FileUploadProps & import("react").RefAttributes<HTMLFormElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FileUpload';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import iconSet from './icons.json';
|
|
2
|
+
export type IconType = keyof typeof iconSet;
|
|
3
|
+
export interface IconProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
icon: IconType;
|
|
5
|
+
}
|
|
6
|
+
export declare const Icon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DropdownProps } from '../Dropdown';
|
|
2
|
+
import { IconType } from '../Icon';
|
|
3
|
+
export interface IconTemplateProps {
|
|
4
|
+
value: IconSelectProps['value'];
|
|
5
|
+
valueTemplate?: boolean;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IconSelectProps extends Omit<DropdownProps, 'options' | 'valueTemplate' | 'itemTemplate' | 'search' | 'ref'> {
|
|
10
|
+
value: DropdownProps['value'];
|
|
11
|
+
onChange?: DropdownProps['onChange'];
|
|
12
|
+
featured?: IconType[];
|
|
13
|
+
featuredOnly?: boolean;
|
|
14
|
+
multiSelect?: DropdownProps['multiSelect'];
|
|
15
|
+
}
|
|
16
|
+
export declare const IconSelect: import("react").ForwardRefExoticComponent<IconSelectProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './IconSelect';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChangeEvent, FocusEvent } from 'react';
|
|
2
|
+
export interface ColorPickerPreviewProps {
|
|
3
|
+
onClick?: () => void;
|
|
4
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const ColorPickerPreview: import("react").ForwardRefExoticComponent<ColorPickerPreviewProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default ColorPickerPreview;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface InputColorProps {
|
|
3
|
+
value: string | number[];
|
|
4
|
+
onChange: (event: {
|
|
5
|
+
target: {
|
|
6
|
+
value: string | number[];
|
|
7
|
+
};
|
|
8
|
+
}) => void;
|
|
9
|
+
alpha?: boolean;
|
|
10
|
+
format?: 'hex' | 'float' | 'uint8' | 'uint16';
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: HTMLAttributes<HTMLDivElement>['style'];
|
|
13
|
+
}
|
|
14
|
+
export declare const InputColor: import("react").ForwardRefExoticComponent<InputColorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputColor';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputNumber';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputPassword';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CSSProperties, InputHTMLAttributes } from 'react';
|
|
2
|
+
export interface InputSwitchProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
switchClassName?: string;
|
|
4
|
+
switchStyle?: CSSProperties;
|
|
5
|
+
}
|
|
6
|
+
export declare const InputSwitch: import("react").ForwardRefExoticComponent<InputSwitchProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputSwitch';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputText';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputTextarea } from './InputTextarea';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IconType } from '../../Icon';
|
|
2
|
+
export interface LockedInputProps extends Omit<React.InputHTMLAttributes<HTMLDivElement>, 'onSubmit'> {
|
|
3
|
+
value: string;
|
|
4
|
+
onSubmit?: (value: string) => void;
|
|
5
|
+
onEdit?: () => void;
|
|
6
|
+
onCancel?: () => void;
|
|
7
|
+
label?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
saveLabel?: string;
|
|
10
|
+
cancelLabel?: string;
|
|
11
|
+
editIcon?: IconType;
|
|
12
|
+
fullUnlock?: boolean;
|
|
13
|
+
type?: React.HTMLInputTypeAttribute;
|
|
14
|
+
}
|
|
15
|
+
export declare const LockedInput: import("react").ForwardRefExoticComponent<LockedInputProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LockedInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Divider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormLayout';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormRow';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface OverflowFieldProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'> {
|
|
2
|
+
value?: string | number | React.ReactNode;
|
|
3
|
+
align?: 'left' | 'right';
|
|
4
|
+
onClick?: (value: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const OverflowField: import("react").ForwardRefExoticComponent<OverflowFieldProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OverflowField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Section';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Spacer';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface TableRowProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onCopy'> {
|
|
2
|
+
name?: string;
|
|
3
|
+
value?: string | number | React.ReactNode;
|
|
4
|
+
tooltip?: string;
|
|
5
|
+
onCopy?: (value: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const TableRow: import("react").ForwardRefExoticComponent<TableRowProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TableRow';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Toolbar';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface DialogProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
onHide?: () => void;
|
|
3
|
+
header?: React.ReactNode;
|
|
4
|
+
footer?: React.ReactNode;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
headerStyle?: React.CSSProperties;
|
|
7
|
+
bodyStyle?: React.CSSProperties;
|
|
8
|
+
footerStyle?: React.CSSProperties;
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const Dialog: import("react").ForwardRefExoticComponent<DialogProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dialog';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LoaderShade';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const PanelStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const Panel: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Panel';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface ScrollPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
scrollStyle?: React.CSSProperties;
|
|
5
|
+
}
|
|
6
|
+
export declare const ScrollPanel: import("react").ForwardRefExoticComponent<ScrollPanelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ScrollPanel';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface ScrollPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
scrollStyle?: React.CSSProperties;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const TablePanel: import("react").ForwardRefExoticComponent<ScrollPanelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TablePanel';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface UserImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
src?: string;
|
|
3
|
+
fullName?: string;
|
|
4
|
+
size?: number;
|
|
5
|
+
highlight?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const UserImage: import("react").ForwardRefExoticComponent<UserImageProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UserImage';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface UserImagesStackedProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
users: {
|
|
3
|
+
avatarUrl?: string;
|
|
4
|
+
fullName?: string;
|
|
5
|
+
self?: boolean;
|
|
6
|
+
}[];
|
|
7
|
+
size?: number;
|
|
8
|
+
gap?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
userStyle?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
export declare const UserImagesStacked: import("react").ForwardRefExoticComponent<UserImagesStackedProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UserImagesStacked';
|