forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: enforce files naming to use .styles.ts [cxe-prg files] (micros…
- Loading branch information
1 parent
09937fe
commit 5174214
Showing
95 changed files
with
376 additions
and
303 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-card-89b5306c-af55-4d03-b990-f2b07036e565.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": "chore: move makeStyles() calls to .styles.ts files", | ||
"packageName": "@fluentui/react-card", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-image-92afbcf5-895a-4a67-a8d1-44863348de3e.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": "chore: move makeStyles() calls to .styles.ts files", | ||
"packageName": "@fluentui/react-image", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-text-7a7f2c17-ac1a-481e-92c2-28e5e19a1c7a.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": "chore: move makeStyles() calls to .styles.ts files", | ||
"packageName": "@fluentui/react-text", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/react-components/react-breadcrumb/src/components/Breadcrumb/Breadcrumb.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
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
File renamed without changes.
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
...es/react-components/react-breadcrumb/src/components/BreadcrumbButton/BreadcrumbButton.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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../react-components/react-breadcrumb/src/components/BreadcrumbDivider/BreadcrumbDivider.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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/react-components/react-breadcrumb/src/components/BreadcrumbItem/BreadcrumbItem.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
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
File renamed without changes.
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-breadcrumb/src/components/BreadcrumbLink/BreadcrumbLink.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
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
File renamed without changes.
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-card/src/components/Card/Card.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
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-card/src/components/CardFooter/CardFooter.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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/react-components/react-card/src/components/CardHeader/CardHeader.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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/react-components/react-card/src/components/CardPreview/CardPreview.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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/react-components/react-drawer/src/components/Drawer/Drawer.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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/react-components/react-image/src/components/Image/Image.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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/react-components/react-text/src/components/Text/Text.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
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
File renamed without changes.
19 changes: 3 additions & 16 deletions
19
packages/react-components/react-text/src/components/presets/Body1/Body1.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
import type { FunctionComponent } from 'react'; | ||
import { makeStyles } from '@griffel/react'; | ||
import { createPreset } from '../createPreset'; | ||
import { SlotClassNames } from '@fluentui/react-utilities'; | ||
import type { TextSlots, TextPresetProps } from '../../Text/Text.types'; | ||
import { typographyStyles } from '@fluentui/react-theme'; | ||
|
||
export const body1ClassNames: SlotClassNames<TextSlots> = { | ||
root: 'fui-Body1', | ||
}; | ||
|
||
/** | ||
* Styles for the root slot | ||
*/ | ||
const useStyles = makeStyles({ | ||
root: typographyStyles.body1, | ||
}); | ||
import type { TextPresetProps } from '../../Text/Text.types'; | ||
import { body1ClassNames, useBody1Styles } from './useBody1Styles.styles'; | ||
|
||
/** | ||
* Text preset component for the Body1 typography variant | ||
*/ | ||
export const Body1: FunctionComponent<TextPresetProps> = createPreset({ | ||
useStyles, | ||
useStyles: useBody1Styles, | ||
className: body1ClassNames.root, | ||
displayName: 'Body1', | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/react-components/react-text/src/components/presets/Body1/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 +1,2 @@ | ||
export * from './Body1'; | ||
export { body1ClassNames } from './useBody1Styles.styles'; |
15 changes: 15 additions & 0 deletions
15
packages/react-components/react-text/src/components/presets/Body1/useBody1Styles.styles.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,15 @@ | ||
import { makeStyles } from '@griffel/react'; | ||
import { SlotClassNames } from '@fluentui/react-utilities'; | ||
import type { TextSlots } from '../../Text/Text.types'; | ||
import { typographyStyles } from '@fluentui/react-theme'; | ||
|
||
export const body1ClassNames: SlotClassNames<TextSlots> = { | ||
root: 'fui-Body1', | ||
}; | ||
|
||
/** | ||
* Styles for the root slot | ||
*/ | ||
export const useBody1Styles = makeStyles({ | ||
root: typographyStyles.body1, | ||
}); |
19 changes: 3 additions & 16 deletions
19
packages/react-components/react-text/src/components/presets/Body1Strong/Body1Strong.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
import type { FunctionComponent } from 'react'; | ||
import { makeStyles } from '@griffel/react'; | ||
import { createPreset } from '../createPreset'; | ||
import { SlotClassNames } from '@fluentui/react-utilities'; | ||
import type { TextSlots, TextPresetProps } from '../../Text/Text.types'; | ||
import { typographyStyles } from '@fluentui/react-theme'; | ||
|
||
export const body1StrongClassNames: SlotClassNames<TextSlots> = { | ||
root: 'fui-Body1Strong', | ||
}; | ||
|
||
/** | ||
* Styles for the root slot | ||
*/ | ||
const useStyles = makeStyles({ | ||
root: typographyStyles.body1Strong, | ||
}); | ||
import type { TextPresetProps } from '../../Text/Text.types'; | ||
import { body1StrongClassNames, useBody1StrongStyles } from './useBody1StrongStyles.styles'; | ||
|
||
/** | ||
* Text preset component for the Body1Strong typography variant | ||
*/ | ||
export const Body1Strong: FunctionComponent<TextPresetProps> = createPreset({ | ||
useStyles, | ||
useStyles: useBody1StrongStyles, | ||
className: body1StrongClassNames.root, | ||
displayName: 'Body1Strong', | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/react-components/react-text/src/components/presets/Body1Strong/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 +1,2 @@ | ||
export * from './Body1Strong'; | ||
export { body1StrongClassNames } from './useBody1StrongStyles.styles'; |
15 changes: 15 additions & 0 deletions
15
...t-components/react-text/src/components/presets/Body1Strong/useBody1StrongStyles.styles.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,15 @@ | ||
import { makeStyles } from '@griffel/react'; | ||
import { SlotClassNames } from '@fluentui/react-utilities'; | ||
import type { TextSlots } from '../../Text/Text.types'; | ||
import { typographyStyles } from '@fluentui/react-theme'; | ||
|
||
export const body1StrongClassNames: SlotClassNames<TextSlots> = { | ||
root: 'fui-Body1Strong', | ||
}; | ||
|
||
/** | ||
* Styles for the root slot | ||
*/ | ||
export const useBody1StrongStyles = makeStyles({ | ||
root: typographyStyles.body1Strong, | ||
}); |
19 changes: 3 additions & 16 deletions
19
packages/react-components/react-text/src/components/presets/Body1Stronger/Body1Stronger.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
import type { FunctionComponent } from 'react'; | ||
import { makeStyles } from '@griffel/react'; | ||
import { createPreset } from '../createPreset'; | ||
import { SlotClassNames } from '@fluentui/react-utilities'; | ||
import type { TextSlots, TextPresetProps } from '../../Text/Text.types'; | ||
import { typographyStyles } from '@fluentui/react-theme'; | ||
|
||
export const body1StrongerClassNames: SlotClassNames<TextSlots> = { | ||
root: 'fui-Body1Stronger', | ||
}; | ||
|
||
/** | ||
* Styles for the root slot | ||
*/ | ||
const useStyles = makeStyles({ | ||
root: typographyStyles.body1Stronger, | ||
}); | ||
import type { TextPresetProps } from '../../Text/Text.types'; | ||
import { body1StrongerClassNames, useBody1StrongerStyles } from './useBody1StrongerStyles.styles'; | ||
|
||
/** | ||
* Text preset component for the Body1Stronger typography variant | ||
*/ | ||
export const Body1Stronger: FunctionComponent<TextPresetProps> = createPreset({ | ||
useStyles, | ||
useStyles: useBody1StrongerStyles, | ||
className: body1StrongerClassNames.root, | ||
displayName: 'Body1Stronger', | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/react-components/react-text/src/components/presets/Body1Stronger/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 +1,2 @@ | ||
export * from './Body1Stronger'; | ||
export { body1StrongerClassNames } from './useBody1StrongerStyles.styles'; |
Oops, something went wrong.