From 1d2d611bb1c756e0bfa1ea34b5e231a379168621 Mon Sep 17 00:00:00 2001 From: Brian Reed Date: Mon, 21 Oct 2024 16:00:31 -0400 Subject: [PATCH 1/3] Add some exports --- packages/ladle/lib/app/exports.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/ladle/lib/app/exports.ts b/packages/ladle/lib/app/exports.ts index d40d6385..c3676d31 100644 --- a/packages/ladle/lib/app/exports.ts +++ b/packages/ladle/lib/app/exports.ts @@ -17,6 +17,7 @@ import * as msw from "msw"; export { msw }; export type { UserConfig } from "../shared/types"; +export * as ui from "./src/ui"; export { useMDXComponents } from "@mdx-js/react"; export const Story = (props: any) => props.children; export const Meta = (props: any) => props.children; @@ -56,6 +57,8 @@ export const action = (name: string) => { }); }; +export type { GlobalAction, GlobalState }; + export type GlobalProvider = React.FC<{ globalState: GlobalState; dispatch: React.Dispatch; From 0768d243c73ca686cf96d06d73c669b200baf632 Mon Sep 17 00:00:00 2001 From: Brian Reed Date: Mon, 21 Oct 2024 16:07:34 -0400 Subject: [PATCH 2/3] add changeset --- .changeset/something-something.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/something-something.md diff --git a/.changeset/something-something.md b/.changeset/something-something.md new file mode 100644 index 00000000..ff9018fc --- /dev/null +++ b/.changeset/something-something.md @@ -0,0 +1,5 @@ +--- +"@ladle/react": patch +--- + +Adds App UI and Types to exports From 77540bc87d7094b90828bb8663ba157876d304db Mon Sep 17 00:00:00 2001 From: Brian Reed Date: Mon, 21 Oct 2024 16:10:39 -0400 Subject: [PATCH 3/3] more exports --- .changeset/something-something.md | 2 +- packages/ladle/lib/app/exports.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.changeset/something-something.md b/.changeset/something-something.md index ff9018fc..9a7f8e5f 100644 --- a/.changeset/something-something.md +++ b/.changeset/something-something.md @@ -2,4 +2,4 @@ "@ladle/react": patch --- -Adds App UI and Types to exports +Adds App UI and Icons, and types to exports. diff --git a/packages/ladle/lib/app/exports.ts b/packages/ladle/lib/app/exports.ts index c3676d31..afe38c2a 100644 --- a/packages/ladle/lib/app/exports.ts +++ b/packages/ladle/lib/app/exports.ts @@ -18,6 +18,8 @@ export { msw }; export type { UserConfig } from "../shared/types"; export * as ui from "./src/ui"; +export * as dialog from "./src/dialog"; +export * as icons from "./src/icons"; export { useMDXComponents } from "@mdx-js/react"; export const Story = (props: any) => props.children; export const Meta = (props: any) => props.children;