@fluentui/react-icons 2.0.173-rc.9 → 2.0.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -88,14 +88,14 @@ ReactDOM.render(
|
|
|
88
88
|
|
|
89
89
|
Using the icon font
|
|
90
90
|
---
|
|
91
|
-
If, for performance or other reasons, you wish to use the font implementation of these icons rather than the SVG implementation, you can specify `"
|
|
91
|
+
If, for performance or other reasons, you wish to use the font implementation of these icons rather than the SVG implementation, you can specify `"fluentIconFont"` as a condition for the import, either via [Node >= 12.19.0](https://nodejs.org/dist/latest-v16.x/docs/api/packages.html#resolving-user-conditions) or [webpack >= 5.0.0](https://webpack.js.org/configuration/resolve/#resolveconditionnames).
|
|
92
92
|
|
|
93
93
|
```js
|
|
94
94
|
// webpack.config.js
|
|
95
95
|
module.exports = {
|
|
96
96
|
//...
|
|
97
97
|
resolve: {
|
|
98
|
-
conditionNames: ['
|
|
98
|
+
conditionNames: ['fluentIconFont', 'require', 'node'],
|
|
99
99
|
},
|
|
100
100
|
};
|
|
101
101
|
```
|
|
@@ -74,9 +74,11 @@ export function createFluentFontIcon(displayName, codepoint, font, fontSize) {
|
|
|
74
74
|
const Component = props => {
|
|
75
75
|
useStaticStyles();
|
|
76
76
|
const styles = useRootStyles();
|
|
77
|
-
|
|
77
|
+
const className = mergeClasses(styles.root, styles[font], props.className);
|
|
78
78
|
|
|
79
|
-
const _a = useIconState(props),
|
|
79
|
+
const _a = useIconState(Object.assign(Object.assign({}, props), {
|
|
80
|
+
className
|
|
81
|
+
})),
|
|
80
82
|
{
|
|
81
83
|
primaryFill
|
|
82
84
|
} = _a,
|
|
@@ -94,9 +94,11 @@ function createFluentFontIcon(displayName, codepoint, font, fontSize) {
|
|
|
94
94
|
const Component = props => {
|
|
95
95
|
useStaticStyles();
|
|
96
96
|
const styles = useRootStyles();
|
|
97
|
-
|
|
97
|
+
const className = react_1.mergeClasses(styles.root, styles[font], props.className);
|
|
98
98
|
|
|
99
|
-
const _a = useIconState_1.useIconState(props),
|
|
99
|
+
const _a = useIconState_1.useIconState(Object.assign(Object.assign({}, props), {
|
|
100
|
+
className
|
|
101
|
+
})),
|
|
100
102
|
{
|
|
101
103
|
primaryFill
|
|
102
104
|
} = _a,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-icons",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.174",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"main": "lib-cjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
],
|
|
59
59
|
"exports": {
|
|
60
60
|
".": {
|
|
61
|
-
"
|
|
61
|
+
"fluentIconFont": {
|
|
62
62
|
"types": "./lib/fonts/index.d.ts",
|
|
63
63
|
"import": "./lib/fonts/index.js",
|
|
64
64
|
"require": "./lib-cjs/fonts/index.js"
|