Skip to content

Commit

Permalink
Update ui exports (#1894)
Browse files Browse the repository at this point in the history
* Update ui exports

* Fix typo
  • Loading branch information
JasonMHasperhoven authored Nov 4, 2024
1 parent 2484bdc commit fcb025d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-boxes-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@penumbra-zone/ui': minor
---

Update @penumbra-zone/ui exports
14 changes: 3 additions & 11 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/PenumbraUIProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ export const PenumbraUIProvider = ({ children }: PropsWithChildren) => (
</MotionConfig>
</ThemeProvider>
);

export { theme } from './theme';
8 changes: 1 addition & 7 deletions packages/ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ const getAllUIComponents = (): Record<string, string> => {
);
};

const getAllLibToastComponents = (): Record<string, string> => {
const source = resolve(__dirname, 'lib', 'toast');
return getRecursiveTsxFiles(source, 'lib/toast');
};

const getDeprecatedUIComponents = (): Record<string, string> => {
const source = resolve(__dirname, 'components/ui');
return getRecursiveTsxFiles(source, 'components/ui');
Expand Down Expand Up @@ -59,8 +54,7 @@ const getAllEntries = (): Record<string, string> => {
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(),
};
Expand Down

0 comments on commit fcb025d

Please sign in to comment.