@ynput/ayon-react-components 0.3.17 → 0.3.19

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 { CSSProperties } from 'react';
2
- import { IconType } from '../Icon';
2
+ import { IconType } from '../../Icon';
3
3
  export declare const OptionsStyled: import("styled-components").StyledComponent<"ul", any, {
4
4
  $message: string;
5
5
  $search: boolean;
@@ -24,7 +24,7 @@ export interface DropdownProps {
24
24
  onOpen?: () => void;
25
25
  onClose?: () => void;
26
26
  value: Array<string | number>;
27
- valueTemplate?: ((value?: (string | number)[]) => React.ReactNode) | 'tags';
27
+ valueTemplate?: ((value: (string | number)[], selected: (string | number)[], isOpen: boolean) => React.ReactNode) | 'tags';
28
28
  dataKey?: string;
29
29
  labelKey?: string;
30
30
  options: Array<any>;
@@ -1,5 +1,5 @@
1
1
  import { DropdownProps } from '../Dropdown';
2
- import { IconType } from '../Icon';
2
+ import { IconType } from '../../Icon';
3
3
  export interface IconTemplateProps {
4
4
  value: IconSelectProps['value'];
5
5
  valueTemplate?: boolean;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { DropdownProps } from '../Dropdown';
3
+ export interface VersionSelectProps extends Omit<DropdownProps, 'options' | 'value' | 'onChange'> {
4
+ value: string[];
5
+ versions: string[][];
6
+ onChange: (value: string[]) => void;
7
+ }
8
+ export declare const VersionSelect: FC<VersionSelectProps>;
@@ -0,0 +1 @@
1
+ export * from './VersionSelect';
@@ -1,5 +1,5 @@
1
1
  import iconSet from './icons.json';
2
- export type IconType = keyof typeof iconSet | string;
2
+ export type IconType = keyof typeof iconSet;
3
3
  export interface IconProps extends React.HTMLAttributes<HTMLSpanElement> {
4
4
  icon: IconType;
5
5
  }