Skip to content

Commit

Permalink
feat: add override and variant exports from ui-react to utils (#1104)
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 committed Oct 7, 2023
1 parent 7c00e4c commit 85ecd5e
Show file tree
Hide file tree
Showing 18 changed files with 2,198 additions and 791 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`react-studio-template-renderer-helper transpile fails to transpile with

exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES3 1`] = `
"import * as React from \\"react\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
import { EscapeHatchProps } from \\"./utils\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
Expand All @@ -31,7 +31,7 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES5 1`] = `
"import * as React from \\"react\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
import { EscapeHatchProps } from \\"./utils\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
Expand All @@ -48,7 +48,7 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2015 1`] = `
"import * as React from \\"react\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
import { EscapeHatchProps } from \\"./utils\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
Expand All @@ -65,7 +65,7 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2016 1`] = `
"import * as React from \\"react\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
import { EscapeHatchProps } from \\"./utils\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
Expand All @@ -82,7 +82,7 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2017 1`] = `
"import * as React from \\"react\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
import { EscapeHatchProps } from \\"./utils\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
Expand All @@ -99,7 +99,7 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2018 1`] = `
"import * as React from \\"react\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
import { EscapeHatchProps } from \\"./utils\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
Expand All @@ -116,7 +116,7 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2019 1`] = `
"import * as React from \\"react\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
import { EscapeHatchProps } from \\"./utils\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
Expand All @@ -133,7 +133,7 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2020 1`] = `
"import * as React from \\"react\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
import { EscapeHatchProps } from \\"./utils\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
Expand All @@ -150,7 +150,7 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2021 1`] = `
"import * as React from \\"react\\";
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
import { EscapeHatchProps } from \\"./utils\\";
import { CustomButtonProps } from \\"./CustomButton\\";
import { ViewTestProps } from \\"./ViewTest\\";
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
Expand Down

0 comments on commit 85ecd5e

Please sign in to comment.