-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: only generate breakpoint mapping on breakpoint variants
- Loading branch information
1 parent
2882730
commit aee4584
Showing
10 changed files
with
131 additions
and
120 deletions.
There are no files selected for viewing
This file contains 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 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 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
33 changes: 33 additions & 0 deletions
33
packages/codegen-ui/example-schemas/componentWithBreakpoint.json
This file contains 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,33 @@ | ||
{ | ||
"id": "1234-5678-9010", | ||
"componentType": "Button", | ||
"name": "ComponentWithBreakpoint", | ||
"properties": { | ||
"children": { | ||
"value": "ComponentWithBreakpoint" | ||
} | ||
}, | ||
"variants": [ | ||
{ | ||
"variantValues": { | ||
"breakpoint": "small" | ||
}, | ||
"overrides": { | ||
"ComponentWithVariant": { | ||
"fontSize": "12px" | ||
} | ||
} | ||
}, | ||
{ | ||
"variantValues": { | ||
"breakpoint": "medium" | ||
}, | ||
"overrides": { | ||
"ComponentWithVariant": { | ||
"fontSize": "40px" | ||
} | ||
} | ||
} | ||
], | ||
"schemaVersion": "1.0" | ||
} |
Oops, something went wrong.