Skip to content

Commit

Permalink
feat: refactor override and utils to strings (#1106)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Shih <jushih@amazon.com>
  • Loading branch information
Jshhhh and Justin Shih authored Oct 16, 2023
1 parent 4fb3cb7 commit 1e2b41a
Show file tree
Hide file tree
Showing 34 changed files with 3,227 additions and 1,698 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 1e2b41a

Please sign in to comment.