Skip to content

Commit

Permalink
feat: refactor override and utils to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Shih committed Oct 13, 2023
1 parent 4fb3cb7 commit ea8cbd9
Show file tree
Hide file tree
Showing 34 changed files with 3,256 additions and 1,702 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ exports[`react-studio-template-renderer-helper transpile successfully transpiles
"import * as React from \\"react\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
export declare type EscapeHatchProps = {
[elementHierarchy: string]: Record<string, unknown>;
} | null;
export declare type VariantValues = {
[key: string]: string;
};
export declare type Variant = {
variantValues: VariantValues;
overrides: EscapeHatchProps;
};
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
export declare type CustomParentAndChildrenOverridesProps = {
CustomParentAndChildren?: ViewTestProps;
Expand All @@ -33,7 +42,16 @@ exports[`react-studio-template-renderer-helper transpile successfully transpiles
"import * as React from \\"react\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
export declare type EscapeHatchProps = {
[elementHierarchy: string]: Record<string, unknown>;
} | null;
export declare type VariantValues = {
[key: string]: string;
};
export declare type Variant = {
variantValues: VariantValues;
overrides: EscapeHatchProps;
};
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
export declare type CustomParentAndChildrenOverridesProps = {
CustomParentAndChildren?: ViewTestProps;
Expand All @@ -50,7 +68,16 @@ exports[`react-studio-template-renderer-helper transpile successfully transpiles
"import * as React from \\"react\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
export declare type EscapeHatchProps = {
[elementHierarchy: string]: Record<string, unknown>;
} | null;
export declare type VariantValues = {
[key: string]: string;
};
export declare type Variant = {
variantValues: VariantValues;
overrides: EscapeHatchProps;
};
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
export declare type CustomParentAndChildrenOverridesProps = {
CustomParentAndChildren?: ViewTestProps;
Expand All @@ -67,7 +94,16 @@ exports[`react-studio-template-renderer-helper transpile successfully transpiles
"import * as React from \\"react\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
export declare type EscapeHatchProps = {
[elementHierarchy: string]: Record<string, unknown>;
} | null;
export declare type VariantValues = {
[key: string]: string;
};
export declare type Variant = {
variantValues: VariantValues;
overrides: EscapeHatchProps;
};
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
export declare type CustomParentAndChildrenOverridesProps = {
CustomParentAndChildren?: ViewTestProps;
Expand All @@ -84,7 +120,16 @@ exports[`react-studio-template-renderer-helper transpile successfully transpiles
"import * as React from \\"react\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
export declare type EscapeHatchProps = {
[elementHierarchy: string]: Record<string, unknown>;
} | null;
export declare type VariantValues = {
[key: string]: string;
};
export declare type Variant = {
variantValues: VariantValues;
overrides: EscapeHatchProps;
};
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
export declare type CustomParentAndChildrenOverridesProps = {
CustomParentAndChildren?: ViewTestProps;
Expand All @@ -101,7 +146,16 @@ exports[`react-studio-template-renderer-helper transpile successfully transpiles
"import * as React from \\"react\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
export declare type EscapeHatchProps = {
[elementHierarchy: string]: Record<string, unknown>;
} | null;
export declare type VariantValues = {
[key: string]: string;
};
export declare type Variant = {
variantValues: VariantValues;
overrides: EscapeHatchProps;
};
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
export declare type CustomParentAndChildrenOverridesProps = {
CustomParentAndChildren?: ViewTestProps;
Expand All @@ -118,7 +172,16 @@ exports[`react-studio-template-renderer-helper transpile successfully transpiles
"import * as React from \\"react\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
export declare type EscapeHatchProps = {
[elementHierarchy: string]: Record<string, unknown>;
} | null;
export declare type VariantValues = {
[key: string]: string;
};
export declare type Variant = {
variantValues: VariantValues;
overrides: EscapeHatchProps;
};
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
export declare type CustomParentAndChildrenOverridesProps = {
CustomParentAndChildren?: ViewTestProps;
Expand All @@ -135,7 +198,16 @@ exports[`react-studio-template-renderer-helper transpile successfully transpiles
"import * as React from \\"react\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
export declare type EscapeHatchProps = {
[elementHierarchy: string]: Record<string, unknown>;
} | null;
export declare type VariantValues = {
[key: string]: string;
};
export declare type Variant = {
variantValues: VariantValues;
overrides: EscapeHatchProps;
};
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
export declare type CustomParentAndChildrenOverridesProps = {
CustomParentAndChildren?: ViewTestProps;
Expand All @@ -152,7 +224,16 @@ exports[`react-studio-template-renderer-helper transpile successfully transpiles
"import * as React from \\"react\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
export declare type EscapeHatchProps = {
[elementHierarchy: string]: Record<string, unknown>;
} | null;
export declare type VariantValues = {
[key: string]: string;
};
export declare type Variant = {
variantValues: VariantValues;
overrides: EscapeHatchProps;
};
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
export declare type CustomParentAndChildrenOverridesProps = {
CustomParentAndChildren?: ViewTestProps;
Expand Down
Loading

0 comments on commit ea8cbd9

Please sign in to comment.