-
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.
Merge branch 'xplat' of https://github.com/microsoft/fluentui into xp…
…lat-griffel-stylex-nested-selectors
- Loading branch information
Showing
24 changed files
with
131 additions
and
87 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
module.exports = { | ||
presets: ['@rnx-kit/babel-preset-metro-react-native'], | ||
plugins: [ | ||
'@babel/plugin-transform-nullish-coalescing-operator', // required by Chakra | ||
'@babel/plugin-transform-logical-assignment-operators', // required by Chakra | ||
'@stylexjs/babel-plugin', | ||
], | ||
plugins: ['@stylexjs/babel-plugin'], | ||
}; |
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
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-provider-511fd237-f87b-4ac9-bd19-c845dc1518c5.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": "patch", | ||
"comment": "update provider to use adapter instead of griffel", | ||
"packageName": "@fluentui/react-provider", | ||
"email": "jasonmo@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
15 changes: 14 additions & 1 deletion
15
packages/react-components/react-platform-adapter/.eslintrc.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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
{ | ||
"extends": ["plugin:@fluentui/eslint-plugin/react"], | ||
"root": true | ||
"root": true, | ||
"overrides": [ | ||
{ | ||
"files": "**/*.ts", | ||
"rules": { | ||
"@rnx-kit/no-export-all": [ | ||
"error", | ||
{ | ||
"expand": "all" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
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
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-platform-adapter/src/XPlatProvider/XPlatProvider.types.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 type { PartialTheme } from '@fluentui/react-theme'; | ||
import type { Theme, PartialTheme } from '@fluentui/react-theme'; | ||
|
||
export type XPlatProviderProps = { | ||
theme: PartialTheme; | ||
theme: Theme | PartialTheme | undefined; | ||
children: JSX.Element; | ||
}; |
2 changes: 0 additions & 2 deletions
2
packages/react-components/react-platform-adapter/src/XPlatProvider/index.ts
This file was deleted.
Oops, something went wrong.
15 changes: 12 additions & 3 deletions
15
packages/react-components/react-platform-adapter/src/index.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,3 +1,12 @@ | ||
export { XPlatProvider, suppressCssVariableInsertion, type XPlatProviderProps } from './XPlatProvider'; | ||
export { jsxPlatformAdapter } from './jsx'; | ||
export { getStylesFromClassName, makeResetStyles, makeStyles, mergeClasses, shorthands } from './styling'; | ||
export { XPlatProvider, suppressCssVariableInsertion } from './XPlatProvider/XPlatProvider'; | ||
export type { XPlatProviderProps } from './XPlatProvider/XPlatProvider.types'; | ||
export { jsxPlatformAdapter } from './jsx/jsxPlatformAdapter'; | ||
export { getStylesFromClassName } from './styling/classNameMap'; | ||
export { makeResetStyles } from './styling/makeResetStyles'; | ||
export { makeStyles } from './styling/makeStyles'; | ||
export { mergeClasses } from './styling/mergeClasses'; | ||
export { shorthands } from './styling/shorthands'; | ||
|
||
// re-export some griffel types to have fluent use the griffel adapter instead of griffel directly | ||
export { useRenderer_unstable, TextDirectionProvider } from '@griffel/react'; | ||
export { makeStyles as makeStylesCore } from '@griffel/core'; |
1 change: 0 additions & 1 deletion
1
packages/react-components/react-platform-adapter/src/jsx/index.ts
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-platform-adapter/src/jsx/jsxPlatformAdapter.native.tsx
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-components/react-platform-adapter/src/jsx/jsxPlatformAdapter.tsx
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
5 changes: 0 additions & 5 deletions
5
packages/react-components/react-platform-adapter/src/styling/index.ts
This file was deleted.
Oops, something went wrong.
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-components/react-provider/src/components/FluentProvider/useFluentProvider.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
Oops, something went wrong.