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

fix(mdx): add .sx props to Themed.X styles #2250

Merged
merged 1 commit into from
Aug 1, 2022
Merged

Conversation

hasparus
Copy link
Member

@hasparus hasparus commented Jun 8, 2022

So, sx prop in Themed.X components now is an undocumented and untested feature that works in JavaScript, but not TypeScript.

While I'm still not sure if Themed.X is the best way to use Theme UI, it's quite easy to fix this discrepancy and close #1350.

πŸ“¦ Published PR as canary version: 0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0

✨ Test out this PR locally via:

npm install @theme-ui/color-modes@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/color@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/components@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/core@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/css@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/custom-properties@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/editor@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install gatsby-plugin-theme-ui@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install gatsby-theme-style-guide@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install gatsby-theme-ui-layout@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/match-media@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/mdx@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/parse-props@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-base@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-bootstrap@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-bulma@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-dark@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-deep@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-funk@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-future@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-polaris@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-roboto@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-sketchy@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-swiss@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-system@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-tailwind@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/preset-tosh@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/presets@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/prism@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/sidenav@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/style-guide@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/tailwind@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/theme-provider@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install theme-ui@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
npm install @theme-ui/typography@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
# or 
yarn add @theme-ui/color-modes@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/color@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/components@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/core@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/css@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/custom-properties@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/editor@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add gatsby-plugin-theme-ui@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add gatsby-theme-style-guide@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add gatsby-theme-ui-layout@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/match-media@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/mdx@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/parse-props@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-base@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-bootstrap@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-bulma@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-dark@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-deep@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-funk@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-future@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-polaris@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-roboto@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-sketchy@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-swiss@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-system@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-tailwind@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/preset-tosh@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/presets@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/prism@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/sidenav@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/style-guide@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/tailwind@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/theme-provider@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add theme-ui@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0
yarn add @theme-ui/typography@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0

Version

Published prerelease version: v0.15.0-develop.14

Changelog

πŸŽ‰ This release contains work from new contributors! πŸŽ‰

Thanks for all your work!

❀️ Luke Watts (@thisislawatts)

❀️ Valto (@pointlessrapunzel)

Release Notes

Drop support for React 16 + 17 (#2215)

Theme UI 0.15.0 drops support for React 16 and React 17. Your use case may still work, but we don't guarantee it.


πŸš€ Enhancement

  • @theme-ui/color-modes, @theme-ui/components, @theme-ui/core, @theme-ui/editor, gatsby-plugin-theme-ui, gatsby-theme-style-guide, gatsby-theme-ui-layout, @theme-ui/match-media, @theme-ui/mdx, @theme-ui/parse-props, @theme-ui/preset-base, @theme-ui/preset-bootstrap, @theme-ui/preset-bulma, @theme-ui/preset-dark, @theme-ui/preset-deep, @theme-ui/preset-funk, @theme-ui/preset-polaris, @theme-ui/preset-roboto, @theme-ui/preset-swiss, @theme-ui/preset-system, @theme-ui/preset-tailwind, @theme-ui/preset-tosh, @theme-ui/prism, @theme-ui/sidenav, @theme-ui/style-guide, @theme-ui/theme-provider, theme-ui

πŸ› Bug Fix

  • @theme-ui/mdx

πŸ‘¨β€πŸ’» Minor changes

  • theme-ui

🏠 Internal

Authors: 4

@hasparus hasparus requested a review from lachlanjc June 8, 2022 17:52
@vercel
Copy link

vercel bot commented Jun 8, 2022

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated
theme-ui βœ… Ready (Inspect) Visit Preview Jun 8, 2022 at 5:52PM (UTC)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 8, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5567e4c:

Sandbox Source
next-theme-ui-example Configuration
gatsby-plugin-theme-ui-example Configuration

Copy link
Member

@lachlanjc lachlanjc left a comment

Choose a reason for hiding this comment

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

Sorry I totally missed your PR here! Agreed on Themed not being great but this being an improvement.

@hasparus
Copy link
Member Author

πŸš€ PR was released in v0.15.0 πŸš€

@hasparus hasparus added released This issue/pull request has been released. and removed prerelease This change is available in a prerelease. labels Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add sx prop to Themed components
2 participants