Repository navigation
docs(spec): define theme-aware component adaptations - #6123
imdreamrunner wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
aba7807 to
b7df64c
Compare
b7df64c to
9a2f061
Compare
b9ac7be to
40db4da
Compare
9a2f061 to
02ad5e4
Compare
|
Heads-up: this PR and #6091 both add Both branches add the file (neither modifies an existing one), and their shared base They are two different specs sharing one id, not a duplicate:
Verified next free id: Since #6091 was opened a day earlier, the tidiest fix is for this PR to take the next id before merge: the Flagging only; I have not touched either branch. |
7aae75a to
bd6ac78
Compare
02ad5e4 to
eb67cdb
Compare
cad7c4b to
5f40dab
Compare
eb67cdb to
b22bf71
Compare
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Thanks for writing this up. If this becomes current, every migrated component and its consumers inherit a second shared adaptation contract for choices AST-012 leaves product-owned. Please keep structural surface selection at product callsites through the existing direct props rather than adding ComponentAdaptations<T> or a shared resolver.
|
I like the unification direction and connection to the theme API. One concern: using complex objects and lists here will make the props more difficult to memoize and results in more context for garbage collection over time. Might be worse for components that could appear repeatedly. It's possible to workaround but makes me wonder if the simpler "presentation" API with just a string might be better to start. |
Summary
adaptations={{default, rules}}for one component-owned policy valuedefaultthe explicit SSR and hydration valuepopover | bottom-sheetfor Selector andnative | popover | bottom-sheetfor DateInput/DateTimeInputpresentationandnativePickerprops as compatibility syntaxKey boundaries
below: 'md'edgeValidation
node scripts/check-knowledge.mjsSpec approval is intentionally left to the owner.