-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Add theme package
#72305
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
Merged
Merged
Add theme package
#72305
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
0358d86
Add `theme` package
mirka 0010125
Remove ts extensions
mirka 22f281c
Handle CSS modules
mirka 4741fc1
Update package lock
mirka 0568c63
Allow public documentation
mirka 24da932
Merge branch 'trunk' into theme-package
mirka 97b0dfd
Add content to readme
mirka 71d1f63
Lock private APIs
mirka fe9e740
Fix missing React error in test file
mirka d377c0c
Remove test for now (requires jest 30)
mirka d0d0242
Remove Storybook for now (punt to follow-up)
mirka 91c4376
Remove build scripts to bin
mirka c144b61
Merge branch 'trunk' into theme-package
mirka a1c0e40
Move to prebuild folder
mirka 67abb89
Lint all prebuild files
mirka 54a4cb0
Move `design-tokens.ts` file to prebuild folder
mirka e4519e5
Fixup
mirka c43da33
Prebuild as part of root build process
mirka a89b0de
Try resolving floating point differences
mirka 2f6f56b
Update readme
mirka 97aa621
Remove layers from stylesheet
mirka a1c7b23
Merge branch 'trunk' into theme-package
mirka 98ab6ed
Reduce color ramp tests
mirka 2dfcd14
Move prebuild files into src (fixes types)
mirka 815798b
Allow theme package to participate in private APIs
mirka ddfa586
Output combined stylesheet
mirka 6aa7e5c
Rename prebuild to prebuilt
mirka cd1192c
Merge branch 'trunk' into theme-package
mirka d86bdeb
Merge branch 'trunk' into theme-package
mirka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Lock private APIs
- Loading branch information
commit 71d1f63ed35d7f1e8f37b6e76d346124a1489ac1
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| export { ThemeProvider } from './theme-provider'; | ||
| export { useThemeProviderStyles } from './use-theme-provider-styles'; | ||
| // Private APIs. | ||
| export { privateApis } from './private-apis'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| /** | ||
| * WordPress dependencies | ||
| */ | ||
| import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis'; | ||
|
|
||
| export const { lock, unlock } = | ||
| __dangerousOptInToUnstableAPIsOnlyForCoreModules( | ||
| 'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', | ||
| '@wordpress/theme' | ||
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| /** | ||
| * Internal dependencies | ||
| */ | ||
| import { lock } from './lock-unlock'; | ||
| import { ThemeProvider } from './theme-provider'; | ||
| import { useThemeProviderStyles } from './use-theme-provider-styles'; | ||
|
|
||
| export const privateApis = {}; | ||
| lock( privateApis, { | ||
| ThemeProvider, | ||
| useThemeProviderStyles, | ||
| } ); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All React APIs are private for the time being.