-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replace @fluentui/make-styles with @griffel/core
- Loading branch information
1 parent
8dfa712
commit bab5899
Showing
25 changed files
with
94 additions
and
68 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
7 changes: 7 additions & 0 deletions
7
change/@fluentui-babel-make-styles-ee9b3856-f3d4-4861-b40a-5d8804aed9a2.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": "prerelease", | ||
"comment": "fixme", | ||
"packageName": "@fluentui/babel-make-styles", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-jest-serializer-make-styles-922bd6c1-bf07-40bf-9ee2-78f5c9e44260.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": "prerelease", | ||
"comment": "fixme", | ||
"packageName": "@fluentui/jest-serializer-make-styles", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-make-styles-cdadc702-0cf1-4498-83d0-a686f679f21f.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": "prerelease", | ||
"comment": "fixme", | ||
"packageName": "@fluentui/react-make-styles", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/babel-make-styles/__fixtures__/function-mixin/mixins.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { MakeStylesStyle } from '@fluentui/make-styles'; | ||
import { GriffelStyle } from '@griffel/core'; | ||
import { tokens } from '@fluentui/react-theme'; | ||
|
||
export const createMixin = (rule: MakeStylesStyle): MakeStylesStyle => ({ | ||
export const createMixin = (rule: GriffelStyle): GriffelStyle => ({ | ||
color: tokens.colorBrandBackground, | ||
...rule, | ||
}); |
8 changes: 4 additions & 4 deletions
8
packages/babel-make-styles/__fixtures__/object-mixins/mixins.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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { MakeStylesStyle } from '@fluentui/make-styles'; | ||
import { GriffelStyle } from '@griffel/core'; | ||
import { tokens } from '@fluentui/react-theme'; | ||
|
||
export const flexStyles: MakeStylesStyle = { | ||
export const flexStyles: GriffelStyle = { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
}; | ||
|
||
export const gridStyles = (gridGap: string): MakeStylesStyle => ({ | ||
export const gridStyles = (gridGap: string): GriffelStyle => ({ | ||
display: 'grid', | ||
gridRowGap: gridGap, | ||
}); | ||
|
||
export const typography: Record<'text' | 'header', MakeStylesStyle> = { | ||
export const typography: Record<'text' | 'header', GriffelStyle> = { | ||
text: { fontWeight: tokens.fontWeightRegular }, | ||
header: { fontWeight: 'bold' }, | ||
}; |
4 changes: 2 additions & 2 deletions
4
packages/babel-make-styles/__fixtures__/shared-mixins/mixins.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { MakeStylesStyle } from '@fluentui/make-styles'; | ||
import { GriffelStyle } from '@griffel/core'; | ||
|
||
export const sharedStyles: Record<string, MakeStylesStyle> = { | ||
export const sharedStyles: Record<string, GriffelStyle> = { | ||
root: { display: 'flex' }, | ||
container: { display: 'grid' }, | ||
}; |
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
2 changes: 1 addition & 1 deletion
2
packages/react-conformance-make-styles/src/matchers/toContainClassNameLastInCalls.test.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
2 changes: 1 addition & 1 deletion
2
...t-conformance-make-styles/src/matchers/toHaveMergeClassesCalledTimesWithClassName.test.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
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
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
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 |
---|---|---|
|
@@ -1639,6 +1639,16 @@ | |
resolved "https://registry.yarnpkg.com/@fluentui/react-icons/-/react-icons-2.0.154-beta.5.tgz#6266d5fa1048bf9b3bffc461dc40e02862ac5cd3" | ||
integrity sha512-U+bdvX1BZELUEN5MK4BX7H35p92Kyt/M+26PWJG/gvc2KCgpfFTFedBXjABKEf1Jo8wIcQl8VWciKSkpzhUaQw== | ||
|
||
"@griffel/core@^1.0.6": | ||
version "1.0.6" | ||
resolved "https://registry.yarnpkg.com/@griffel/core/-/core-1.0.6.tgz#e582d19449619f7a43d861489bbce4429f929f9d" | ||
integrity sha512-yliAuog/AugYK5WDGAM8z4y+JFFkFuj0zrGXr4uTeG9wnbZaPKKAN55axBTbK5/rN1ecMSuDwdb4U3pZLyCQNQ== | ||
dependencies: | ||
"@emotion/hash" "^0.8.0" | ||
csstype "^2.6.19" | ||
rtl-css-js "^1.15.0" | ||
stylis "^4.0.13" | ||
|
||
"@gulp-sourcemaps/[email protected]": | ||
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/@gulp-sourcemaps/identity-map/-/identity-map-1.0.2.tgz#1e6fe5d8027b1f285dc0d31762f566bccd73d5a9" | ||
|
@@ -9523,10 +9533,10 @@ cssstyle@^2.3.0: | |
dependencies: | ||
cssom "~0.3.6" | ||
|
||
csstype@^2.2.0, csstype@^2.5.5, csstype@^2.5.7, csstype@^2.6.7: | ||
version "2.6.8" | ||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.8.tgz#0fb6fc2417ffd2816a418c9336da74d7f07db431" | ||
integrity sha512-msVS9qTuMT5zwAGCVm4mxfrZ18BNc6Csd0oJAtiFMZ1FAx1CCvy2+5MDmYoix63LM/6NDbNtodCiGYGmFgO0dA== | ||
csstype@^2.2.0, csstype@^2.5.5, csstype@^2.5.7, csstype@^2.6.19, csstype@^2.6.7: | ||
version "2.6.19" | ||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.19.tgz#feeb5aae89020bb389e1f63669a5ed490e391caa" | ||
integrity sha512-ZVxXaNy28/k3kJg0Fou5MiYpp88j7H9hLZp8PDC3jV0WFjfH5E9xHb56L0W59cPbKbcHXeP4qyT8PrHp8t6LcQ== | ||
|
||
csstype@^3.0.2: | ||
version "3.0.8" | ||
|
@@ -22220,10 +22230,10 @@ rsvp@^4.8.4: | |
resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734" | ||
integrity sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA== | ||
|
||
rtl-css-js@^1.1.3, rtl-css-js@^1.14.5: | ||
version "1.14.5" | ||
resolved "https://registry.yarnpkg.com/rtl-css-js/-/rtl-css-js-1.14.5.tgz#fd92685acd024e688dda899a28c5fb9270b79974" | ||
integrity sha512-+ng7LWVvPjQUdgDVviR6vKi2X4JiBtlw5rdY0UM5/Cj39c2/KDUsY/VxEzGE25m4KR5g0dvuKfrDq7DaoDooIA== | ||
rtl-css-js@^1.1.3, rtl-css-js@^1.15.0: | ||
version "1.15.0" | ||
resolved "https://registry.yarnpkg.com/rtl-css-js/-/rtl-css-js-1.15.0.tgz#680ed816e570a9ebccba9e1cd0f202c6a8bb2dc0" | ||
integrity sha512-99Cu4wNNIhrI10xxUaABHsdDqzalrSRTie4GeCmbGVuehm4oj+fIy8fTzB+16pmKe8Bv9rl+hxIBez6KxExTew== | ||
dependencies: | ||
"@babel/runtime" "^7.1.2" | ||
|
||
|
@@ -23776,15 +23786,10 @@ stylis@^3.5.4: | |
resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.5.4.tgz#f665f25f5e299cf3d64654ab949a57c768b73fbe" | ||
integrity sha512-8/3pSmthWM7lsPBKv7NXkzn2Uc9W7NotcwGNpJaa3k7WMM1XDCA4MgT5k/8BIexd5ydZdboXtU90XH9Ec4Bv/Q== | ||
|
||
stylis@^4.0.3: | ||
version "4.0.10" | ||
resolved "https://registry.yarnpkg.com/stylis/-/stylis-4.0.10.tgz#446512d1097197ab3f02fb3c258358c3f7a14240" | ||
integrity sha512-m3k+dk7QeJw660eIKRRn3xPF6uuvHs/FFzjX3HQ5ove0qYsiygoAhwn5a3IYKaZPo5LrYD0rfVmtv1gNY1uYwg== | ||
|
||
stylis@^4.0.6: | ||
version "4.0.7" | ||
resolved "https://registry.yarnpkg.com/stylis/-/stylis-4.0.7.tgz#412a90c28079417f3d27c028035095e4232d2904" | ||
integrity sha512-OFFeUXFgwnGOKvEXaSv0D0KQ5ADP0n6g3SVONx6I/85JzNZ3u50FRwB3lVIk1QO2HNdI75tbVzc4Z66Gdp9voA== | ||
stylis@^4.0.13, stylis@^4.0.3, stylis@^4.0.6: | ||
version "4.0.13" | ||
resolved "https://registry.yarnpkg.com/stylis/-/stylis-4.0.13.tgz#f5db332e376d13cc84ecfe5dace9a2a51d954c91" | ||
integrity sha512-xGPXiFVl4YED9Jh7Euv2V220mriG9u4B2TA6Ybjc1catrstKD2PpIdU3U0RKpkVBC2EhmL/F0sPCr9vrFTNRag== | ||
|
||
[email protected]: | ||
version "6.0.0" | ||
|