diff --git a/.changeset/orange-boxes-suffer.md b/.changeset/orange-boxes-suffer.md new file mode 100644 index 0000000000..680bd64b07 --- /dev/null +++ b/.changeset/orange-boxes-suffer.md @@ -0,0 +1,5 @@ +--- +'@penumbra-zone/ui': minor +--- + +Update @penumbra-zone/ui exports diff --git a/packages/ui/package.json b/packages/ui/package.json index 27f11effdd..a49b7842d6 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -48,17 +48,9 @@ "types": "./dist/components/ui/*.d.ts", "default": "./dist/components/ui/*.js" }, - "./theme": { - "types": "./dist/src/PenumbraUIProvider/theme.d.ts", - "default": "./dist/src/PenumbraUIProvider/theme.js" - }, - "./lib/toast/*": { - "types": "./dist/lib/toast/*.d.ts", - "default": "./dist/lib/toast/*.js" - }, - "./utils/*": { - "types": "./dist/src/utils/*.d.ts", - "default": "./dist/src/utils/*.js" + "./utils/typography": { + "types": "./dist/src/utils/typography.d.ts", + "default": "./dist/src/utils/typography.js" }, "./*": { "types": "./dist/src/*/index.d.ts", diff --git a/packages/ui/src/PenumbraUIProvider/index.tsx b/packages/ui/src/PenumbraUIProvider/index.tsx index c742d87dbe..3ec9eea6ff 100644 --- a/packages/ui/src/PenumbraUIProvider/index.tsx +++ b/packages/ui/src/PenumbraUIProvider/index.tsx @@ -20,3 +20,5 @@ export const PenumbraUIProvider = ({ children }: PropsWithChildren) => ( ); + +export { theme } from './theme'; diff --git a/packages/ui/vite.config.ts b/packages/ui/vite.config.ts index db0b6db30a..e08e57165b 100644 --- a/packages/ui/vite.config.ts +++ b/packages/ui/vite.config.ts @@ -26,11 +26,6 @@ const getAllUIComponents = (): Record => { ); }; -const getAllLibToastComponents = (): Record => { - const source = resolve(__dirname, 'lib', 'toast'); - return getRecursiveTsxFiles(source, 'lib/toast'); -}; - const getDeprecatedUIComponents = (): Record => { const source = resolve(__dirname, 'components/ui'); return getRecursiveTsxFiles(source, 'components/ui'); @@ -59,8 +54,7 @@ const getAllEntries = (): Record => { return { tailwindconfig: resolve('../tailwind-config'), 'src/tailwindConfig': join(__dirname, 'src', 'tailwindConfig.ts'), - 'src/PenumbraUIProvider/theme': join(__dirname, 'src', 'PenumbraUIProvider', 'theme.ts'), - ...getAllLibToastComponents(), + 'src/utils/typography': join(__dirname, 'src', 'utils', 'typography.ts'), ...getDeprecatedUIComponents(), ...getAllUIComponents(), };