@ynput/ayon-react-components 1.7.8 → 1.7.9

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/README.md CHANGED
@@ -23,9 +23,7 @@ This is an open source project. We welcome contributions.
23
23
  🙋 Need some support or want something custom? Take a look at our services.
24
24
 
25
25
  ## Get Started with Storybook
26
-
27
- Run locally: `yarn storybook`
28
-
29
- build: `yarn build-storybook`
30
-
31
- build-package: `yarn build`
26
+ After cloning the repo, you'll need to run `yarn install`. Then, you can:
27
+ - **Run locally:** `yarn storybook`
28
+ - **Build:** `yarn build-storybook`
29
+ - **Build package:** `yarn build`
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { DropdownProps, DropdownRef } from '../Dropdown';
3
+ import { IconType } from '../../Icon';
4
+ export interface EnumTemplateProps {
5
+ option: EnumDropdownOption | null | undefined;
6
+ isSelected?: boolean;
7
+ }
8
+ export type EnumDropdownOption = {
9
+ value: string;
10
+ label: string;
11
+ icon?: IconType;
12
+ color?: string;
13
+ };
14
+ export interface EnumDropdownProps extends Omit<DropdownProps, 'options' | 'valueTemplate' | 'itemTemplate' | 'ref'> {
15
+ options: EnumDropdownOption[];
16
+ colorInverse?: boolean;
17
+ }
18
+ export declare const EnumDropdown: import("react").ForwardRefExoticComponent<EnumDropdownProps & import("react").RefAttributes<DropdownRef>>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface IconStyledProps {
3
+ $color?: string;
4
+ }
5
+ export declare const StyledDefaultValueTemplate: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Dropdown").DefaultValueTemplateProps, IconStyledProps>> & string & Omit<import("react").FC<import("../Dropdown").DefaultValueTemplateProps>, keyof import("react").Component<any, {}, any>>;
6
+ export declare const Option: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IconStyledProps>> & string;
7
+ export {};
@@ -0,0 +1 @@
1
+ export * from './EnumDropdown';
@@ -3,7 +3,6 @@ import { DropdownProps, DropdownRef } from '../Dropdown';
3
3
  import { IconType } from '../../Icon';
4
4
  export interface IconTemplateProps {
5
5
  value: IconSelectProps['value'];
6
- valueTemplate?: boolean;
7
6
  isActive?: boolean;
8
7
  isSelected?: boolean;
9
8
  }