-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for shorthands (#544)
- Loading branch information
1 parent
b4ed7ac
commit 0f2eb5e
Showing
21 changed files
with
499 additions
and
272 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@griffel-core-e0308772-28cf-4b37-a54f-cd4d2d060e74.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,7 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "feat: add support for shorthands", | ||
"packageName": "@griffel/core", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@griffel-style-types-4007bc48-23b8-40b1-82d8-1c92cbdc0ceb.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,7 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "feat: add support for shorthands", | ||
"packageName": "@griffel/style-types", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { makeStyles } from '@griffel/react'; | ||
|
||
export const useStyles = makeStyles({ | ||
root: { | ||
borderRight: `5px solid red /* @noflip */`, | ||
borderBottom: `5px solid red`, | ||
}, | ||
}); |
31 changes: 31 additions & 0 deletions
31
packages/babel-preset/__fixtures__/object-shorthands/output.ts
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,31 @@ | ||
import { __styles } from '@griffel/react'; | ||
export const useStyles = __styles( | ||
{ | ||
root: { | ||
h3c5rm: 0, | ||
vrafjx: 0, | ||
Bekrc4i: 0, | ||
u1mtju: 'fq3r367', | ||
B9xav0g: 0, | ||
oivjwe: 0, | ||
Bn0qgzm: 0, | ||
Bgfg5da: 'f171p8tk', | ||
}, | ||
}, | ||
{ | ||
d: [ | ||
[ | ||
'.fq3r367{border-right:5px solid red;}', | ||
{ | ||
p: -1, | ||
}, | ||
], | ||
[ | ||
'.f171p8tk{border-bottom:5px solid red;}', | ||
{ | ||
p: -1, | ||
}, | ||
], | ||
], | ||
}, | ||
); |
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
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
Oops, something went wrong.