Repository navigation
feat: close 0.4.0 consumer gaps for controls, tokens, and preset-base - #82
Merged
Merged
Conversation
Controls inherit the app font when preflight is off, Button gains fullWidth, and AlertRoot can omit its icon. Restored the status lucid washes plus primary.subtle, and the required asterisk uses danger again. The design-system preset inlines @pandacss/preset-base so apps no longer install it themselves. Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Minor release for apps already on 0.3.0 (
designSystem: '@fyrst/ui', Panda 2.4). No prop was removed or renamed. This does not publish or tag a release.font-family: inherit, so with preflight off they follow the app font instead of the user-agent face. The same inherit is set on the prompt textarea, the flyout trigger, and the carousel's default prev/next buttons.ButtonfullWidth(defaultfalse) setswidth: 100%andbox-sizing: border-box.AlertRoothideIcon(defaultfalse) omits the icon slot, including a custom#icon, so the flex gap collapses.fonts.sans(Figtree, then the system sans),fonts.serif,fonts.mono, and semanticfonts.body. The package does not ship font files. Load the face in the app (root README). Preflight does not applyfonts.sanson its own.brand.pale.lucidandprimary/danger/success/warning/info.lucid.700and.lucid.900with the values from before the muted*.subtlemixes. Addedprimary.subtle,primary.subtle.light, andprimary.text.*.subtlestays the preferred muted fill; it is a grey mix, not the same wash.color: 'danger'again (solid red). It had beendanger.subtle.@pandacss/preset-baseis a dependency of@fyrst/ui, andpanda libinlines that module intodist/panda/preset.mjs. Apps ondesignSystem: '@fyrst/ui'no longer add it themselves.@pandacss/devstays a peer. A string preset name is still resolved from the app, which is why 0.3.0 apps had to install it.Breaking / visual
fullWidthandhideIcondefault tofalse.fonts.sansnow starts with Figtree. That changes paint only when the face is loaded; otherwise it falls through to the system sans.primaryandbrand.palegainedDEFAULTplus children.color: 'primary'andbrand.palestill resolve.@pandacss/preset-basedependency that existed only sodesignSystemcould resolve. Token-only configs can usepresets: [preset]. A leftover string'@pandacss/preset-base'still has to be installed in the app.Test plan
bun run lintbun run build(panda libinlines preset-base; no runtime import indist/panda/preset.mjs)bun run test(component tests and Nuxt tests, including the consumer contract and preset tokens)Buttonand the field input inherit the parent face, default vsfullWidth, alert with icon vshideIcon, required asterisk is danger red in dark and lightButton font, full width, alert icon, and required asterisk before and after
User-agent button in Arial
Button label inheriting Cascadia Mono
Alert with the default icon
Alert with hideIcon and no leftover gap
To show artifacts inline, enable in settings.