Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add theme & lib/toast UI exports #1887

Merged
merged 4 commits into from
Oct 31, 2024
Merged

Add theme & lib/toast UI exports #1887

merged 4 commits into from
Oct 31, 2024

Conversation

JasonMHasperhoven
Copy link
Contributor

@JasonMHasperhoven JasonMHasperhoven commented Oct 31, 2024

Currently we can't access theme and lib/toast within the dex-explorer. This should fix that.

Copy link

changeset-bot bot commented Oct 31, 2024

🦋 Changeset detected

Latest commit: 3f4a551

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@penumbra-zone/ui Minor
minifront Patch
node-status Patch
@repo/tailwind-config Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JasonMHasperhoven JasonMHasperhoven requested a review from a team October 31, 2024 14:16
@JasonMHasperhoven JasonMHasperhoven merged commit ef1a89d into main Oct 31, 2024
6 checks passed
@JasonMHasperhoven JasonMHasperhoven deleted the add-ui-exports branch October 31, 2024 14:28
Copy link
Contributor

@VanishMax VanishMax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible, I believe that the issue from this PR should be addressed

"types": "./dist/src/PenumbraUIProvider/theme.d.ts",
"default": "./dist/src/PenumbraUIProvider/theme.js"
},
"./lib/toast/*": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: this is the old toast library, it should not be exported. The v2 one is already working in the dex: https://github.com/penumbra-zone/dex-explorer/pull/118/files#diff-e1b5cf1eb29b361c28415989517c8312f1f349ab3e0cac44425ffc02290259c2R62

@@ -46,6 +48,18 @@
"types": "./dist/components/ui/*.d.ts",
"default": "./dist/components/ui/*.js"
},
"./theme": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: why is the theme needed to be exported, especially this way? We use PenumbraUIProvider in the app/app.tsx in the DEX.

suggestion: let's just export the theme object from PenumbraUIProvider/index.tsx file

@@ -33,6 +33,8 @@
"./tailwind": "./src/tailwindConfig.ts",
"./postcss.config.js": "./postcss.config.js",
"./styles/*": "./styles/*",
"./theme": "./src/PenumbraUIProvider/theme.ts",
"./utils/*": "./src/utils/*.ts",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: is there something in the v1 utils we need in the DEX?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants