@fluentui/react-icons 2.0.169-rc.6 → 2.0.170-rc.7
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 +16 -0
- package/lib/fonts/icons/chunk-0.d.ts +3001 -0
- package/lib/fonts/icons/chunk-0.js +501 -0
- package/lib/fonts/icons/chunk-1.d.ts +3001 -0
- package/lib/fonts/icons/chunk-1.js +501 -0
- package/lib/fonts/icons/chunk-2.d.ts +3001 -0
- package/lib/fonts/icons/chunk-2.js +501 -0
- package/lib/fonts/icons/chunk-3.d.ts +3001 -0
- package/lib/fonts/icons/chunk-3.js +501 -0
- package/lib/fonts/icons/chunk-4.d.ts +3001 -0
- package/lib/fonts/icons/chunk-4.js +501 -0
- package/lib/fonts/icons/chunk-5.d.ts +3001 -0
- package/lib/fonts/icons/chunk-5.js +501 -0
- package/lib/fonts/icons/chunk-6.d.ts +3001 -0
- package/lib/fonts/icons/chunk-6.js +501 -0
- package/lib/fonts/icons/chunk-7.d.ts +2875 -0
- package/lib/fonts/icons/chunk-7.js +480 -0
- package/lib/fonts/index.d.ts +36 -0
- package/lib/fonts/index.js +35 -0
- package/lib/fonts/sizedIcons/chunk-0.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-0.js +501 -0
- package/lib/fonts/sizedIcons/chunk-1.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-1.js +501 -0
- package/lib/fonts/sizedIcons/chunk-10.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-10.js +501 -0
- package/lib/fonts/sizedIcons/chunk-11.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-11.js +501 -0
- package/lib/fonts/sizedIcons/chunk-12.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-12.js +501 -0
- package/lib/fonts/sizedIcons/chunk-13.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-13.js +501 -0
- package/lib/fonts/sizedIcons/chunk-14.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-14.js +501 -0
- package/lib/fonts/sizedIcons/chunk-15.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-15.js +501 -0
- package/lib/fonts/sizedIcons/chunk-16.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-16.js +501 -0
- package/lib/fonts/sizedIcons/chunk-17.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-17.js +501 -0
- package/lib/fonts/sizedIcons/chunk-18.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-18.js +501 -0
- package/lib/fonts/sizedIcons/chunk-19.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-19.js +501 -0
- package/lib/fonts/sizedIcons/chunk-2.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-2.js +501 -0
- package/lib/fonts/sizedIcons/chunk-20.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-20.js +501 -0
- package/lib/fonts/sizedIcons/chunk-21.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-21.js +501 -0
- package/lib/fonts/sizedIcons/chunk-22.d.ts +2299 -0
- package/lib/fonts/sizedIcons/chunk-22.js +384 -0
- package/lib/fonts/sizedIcons/chunk-3.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-3.js +501 -0
- package/lib/fonts/sizedIcons/chunk-4.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-4.js +501 -0
- package/lib/fonts/sizedIcons/chunk-5.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-5.js +501 -0
- package/lib/fonts/sizedIcons/chunk-6.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-6.js +501 -0
- package/lib/fonts/sizedIcons/chunk-7.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-7.js +501 -0
- package/lib/fonts/sizedIcons/chunk-8.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-8.js +501 -0
- package/lib/fonts/sizedIcons/chunk-9.d.ts +3001 -0
- package/lib/fonts/sizedIcons/chunk-9.js +501 -0
- package/lib/icons/chunk-0.d.ts +3000 -501
- package/lib/icons/chunk-1.d.ts +3000 -501
- package/lib/icons/chunk-2.d.ts +3000 -501
- package/lib/icons/chunk-3.d.ts +3000 -501
- package/lib/icons/chunk-4.d.ts +3000 -501
- package/lib/icons/chunk-5.d.ts +3000 -501
- package/lib/icons/chunk-6.d.ts +3000 -501
- package/lib/icons/chunk-7.d.ts +2886 -482
- package/lib/sizedIcons/chunk-0.d.ts +3000 -501
- package/lib/sizedIcons/chunk-1.d.ts +3000 -501
- package/lib/sizedIcons/chunk-10.d.ts +3000 -501
- package/lib/sizedIcons/chunk-11.d.ts +3000 -501
- package/lib/sizedIcons/chunk-12.d.ts +3000 -501
- package/lib/sizedIcons/chunk-13.d.ts +3000 -501
- package/lib/sizedIcons/chunk-14.d.ts +3000 -501
- package/lib/sizedIcons/chunk-15.d.ts +3000 -501
- package/lib/sizedIcons/chunk-16.d.ts +3000 -501
- package/lib/sizedIcons/chunk-17.d.ts +3000 -501
- package/lib/sizedIcons/chunk-18.d.ts +3000 -501
- package/lib/sizedIcons/chunk-19.d.ts +3000 -501
- package/lib/sizedIcons/chunk-2.d.ts +3000 -501
- package/lib/sizedIcons/chunk-20.d.ts +3000 -501
- package/lib/sizedIcons/chunk-21.d.ts +3000 -501
- package/lib/sizedIcons/chunk-22.d.ts +2298 -384
- package/lib/sizedIcons/chunk-3.d.ts +3000 -501
- package/lib/sizedIcons/chunk-4.d.ts +3000 -501
- package/lib/sizedIcons/chunk-5.d.ts +3000 -501
- package/lib/sizedIcons/chunk-6.d.ts +3000 -501
- package/lib/sizedIcons/chunk-7.d.ts +3000 -501
- package/lib/sizedIcons/chunk-8.d.ts +3000 -501
- package/lib/sizedIcons/chunk-9.d.ts +3000 -501
- package/lib/utils/FluentIconsProps.types.d.ts +2 -2
- package/lib/utils/bundleIcon.d.ts +6 -1
- package/lib/utils/fonts/FluentSystemIcons-Filled.json +5695 -0
- package/lib/utils/fonts/FluentSystemIcons-Filled.ttf +0 -0
- package/lib/utils/fonts/FluentSystemIcons-Filled.woff +0 -0
- package/lib/utils/fonts/FluentSystemIcons-Filled.woff2 +0 -0
- package/lib/utils/fonts/FluentSystemIcons-Regular.json +5692 -0
- package/lib/utils/fonts/FluentSystemIcons-Regular.ttf +0 -0
- package/lib/utils/fonts/FluentSystemIcons-Regular.woff +0 -0
- package/lib/utils/fonts/FluentSystemIcons-Regular.woff2 +0 -0
- package/lib/utils/fonts/FluentSystemIcons-Resizable.json +3981 -0
- package/lib/utils/fonts/FluentSystemIcons-Resizable.ttf +0 -0
- package/lib/utils/fonts/FluentSystemIcons-Resizable.woff +0 -0
- package/lib/utils/fonts/FluentSystemIcons-Resizable.woff2 +0 -0
- package/lib/utils/fonts/createFluentFontIcon.d.ts +8 -0
- package/lib/utils/fonts/createFluentFontIcon.js +103 -0
- package/lib/utils/useIconState.d.ts +2 -1
- package/lib/utils/useIconState.js +5 -2
- package/lib/utils/wrapIcon.d.ts +6 -2
- package/lib-cjs/fonts/icons/chunk-0.d.ts +3001 -0
- package/lib-cjs/fonts/icons/chunk-0.js +518 -0
- package/lib-cjs/fonts/icons/chunk-1.d.ts +3001 -0
- package/lib-cjs/fonts/icons/chunk-1.js +518 -0
- package/lib-cjs/fonts/icons/chunk-2.d.ts +3001 -0
- package/lib-cjs/fonts/icons/chunk-2.js +518 -0
- package/lib-cjs/fonts/icons/chunk-3.d.ts +3001 -0
- package/lib-cjs/fonts/icons/chunk-3.js +518 -0
- package/lib-cjs/fonts/icons/chunk-4.d.ts +3001 -0
- package/lib-cjs/fonts/icons/chunk-4.js +518 -0
- package/lib-cjs/fonts/icons/chunk-5.d.ts +3001 -0
- package/lib-cjs/fonts/icons/chunk-5.js +518 -0
- package/lib-cjs/fonts/icons/chunk-6.d.ts +3001 -0
- package/lib-cjs/fonts/icons/chunk-6.js +518 -0
- package/lib-cjs/fonts/icons/chunk-7.d.ts +2875 -0
- package/lib-cjs/fonts/icons/chunk-7.js +497 -0
- package/lib-cjs/fonts/index.d.ts +36 -0
- package/lib-cjs/fonts/index.js +92 -0
- package/lib-cjs/fonts/sizedIcons/chunk-0.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-0.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-1.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-1.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-10.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-10.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-11.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-11.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-12.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-12.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-13.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-13.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-14.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-14.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-15.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-15.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-16.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-16.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-17.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-17.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-18.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-18.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-19.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-19.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-2.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-2.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-20.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-20.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-21.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-21.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-22.d.ts +2299 -0
- package/lib-cjs/fonts/sizedIcons/chunk-22.js +399 -0
- package/lib-cjs/fonts/sizedIcons/chunk-3.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-3.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-4.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-4.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-5.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-5.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-6.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-6.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-7.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-7.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-8.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-8.js +518 -0
- package/lib-cjs/fonts/sizedIcons/chunk-9.d.ts +3001 -0
- package/lib-cjs/fonts/sizedIcons/chunk-9.js +518 -0
- package/lib-cjs/icons/chunk-0.d.ts +3000 -501
- package/lib-cjs/icons/chunk-0.js +4 -2
- package/lib-cjs/icons/chunk-1.d.ts +3000 -501
- package/lib-cjs/icons/chunk-1.js +4 -2
- package/lib-cjs/icons/chunk-2.d.ts +3000 -501
- package/lib-cjs/icons/chunk-2.js +4 -2
- package/lib-cjs/icons/chunk-3.d.ts +3000 -501
- package/lib-cjs/icons/chunk-3.js +4 -2
- package/lib-cjs/icons/chunk-4.d.ts +3000 -501
- package/lib-cjs/icons/chunk-4.js +4 -2
- package/lib-cjs/icons/chunk-5.d.ts +3000 -501
- package/lib-cjs/icons/chunk-5.js +4 -2
- package/lib-cjs/icons/chunk-6.d.ts +3000 -501
- package/lib-cjs/icons/chunk-6.js +4 -2
- package/lib-cjs/icons/chunk-7.d.ts +2886 -482
- package/lib-cjs/icons/chunk-7.js +4 -2
- package/lib-cjs/index.js +2 -2
- package/lib-cjs/sizedIcons/chunk-0.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-0.js +4 -2
- package/lib-cjs/sizedIcons/chunk-1.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-1.js +4 -2
- package/lib-cjs/sizedIcons/chunk-10.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-10.js +4 -2
- package/lib-cjs/sizedIcons/chunk-11.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-11.js +4 -2
- package/lib-cjs/sizedIcons/chunk-12.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-12.js +4 -2
- package/lib-cjs/sizedIcons/chunk-13.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-13.js +4 -2
- package/lib-cjs/sizedIcons/chunk-14.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-14.js +4 -2
- package/lib-cjs/sizedIcons/chunk-15.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-15.js +4 -2
- package/lib-cjs/sizedIcons/chunk-16.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-16.js +4 -2
- package/lib-cjs/sizedIcons/chunk-17.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-17.js +4 -2
- package/lib-cjs/sizedIcons/chunk-18.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-18.js +4 -2
- package/lib-cjs/sizedIcons/chunk-19.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-19.js +4 -2
- package/lib-cjs/sizedIcons/chunk-2.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-2.js +4 -2
- package/lib-cjs/sizedIcons/chunk-20.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-20.js +4 -2
- package/lib-cjs/sizedIcons/chunk-21.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-21.js +4 -2
- package/lib-cjs/sizedIcons/chunk-22.d.ts +2298 -384
- package/lib-cjs/sizedIcons/chunk-22.js +4 -2
- package/lib-cjs/sizedIcons/chunk-3.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-3.js +4 -2
- package/lib-cjs/sizedIcons/chunk-4.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-4.js +4 -2
- package/lib-cjs/sizedIcons/chunk-5.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-5.js +4 -2
- package/lib-cjs/sizedIcons/chunk-6.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-6.js +4 -2
- package/lib-cjs/sizedIcons/chunk-7.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-7.js +4 -2
- package/lib-cjs/sizedIcons/chunk-8.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-8.js +4 -2
- package/lib-cjs/sizedIcons/chunk-9.d.ts +3000 -501
- package/lib-cjs/sizedIcons/chunk-9.js +4 -2
- package/lib-cjs/utils/FluentIconsProps.types.d.ts +2 -2
- package/lib-cjs/utils/bundleIcon.d.ts +6 -1
- package/lib-cjs/utils/bundleIcon.js +3 -1
- package/lib-cjs/utils/fonts/FluentSystemIcons-Filled.json +5695 -0
- package/lib-cjs/utils/fonts/FluentSystemIcons-Filled.ttf +0 -0
- package/lib-cjs/utils/fonts/FluentSystemIcons-Filled.woff +0 -0
- package/lib-cjs/utils/fonts/FluentSystemIcons-Filled.woff2 +0 -0
- package/lib-cjs/utils/fonts/FluentSystemIcons-Regular.json +5692 -0
- package/lib-cjs/utils/fonts/FluentSystemIcons-Regular.ttf +0 -0
- package/lib-cjs/utils/fonts/FluentSystemIcons-Regular.woff +0 -0
- package/lib-cjs/utils/fonts/FluentSystemIcons-Regular.woff2 +0 -0
- package/lib-cjs/utils/fonts/FluentSystemIcons-Resizable.json +3981 -0
- package/lib-cjs/utils/fonts/FluentSystemIcons-Resizable.ttf +0 -0
- package/lib-cjs/utils/fonts/FluentSystemIcons-Resizable.woff +0 -0
- package/lib-cjs/utils/fonts/FluentSystemIcons-Resizable.woff2 +0 -0
- package/lib-cjs/utils/fonts/createFluentFontIcon.d.ts +8 -0
- package/lib-cjs/utils/fonts/createFluentFontIcon.js +125 -0
- package/lib-cjs/utils/useIconState.d.ts +2 -1
- package/lib-cjs/utils/useIconState.js +6 -2
- package/lib-cjs/utils/wrapIcon.d.ts +6 -2
- package/lib-cjs/utils/wrapIcon.js +3 -1
- package/package.json +39 -6
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FluentIconsProps } from '../FluentIconsProps.types';
|
|
3
|
+
export declare const enum FontFile {
|
|
4
|
+
Filled = 0,
|
|
5
|
+
Regular = 1,
|
|
6
|
+
Resizable = 2
|
|
7
|
+
}
|
|
8
|
+
export declare function createFluentFontIcon(displayName: string, codepoint: string, font: FontFile, fontSize?: number): React.FC<FluentIconsProps<React.HTMLAttributes<HTMLElement>>>;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createFluentFontIcon = void 0;
|
|
7
|
+
|
|
8
|
+
const tslib_1 = require("tslib");
|
|
9
|
+
|
|
10
|
+
const React = tslib_1.__importStar(require("react"));
|
|
11
|
+
|
|
12
|
+
const react_1 = require("@griffel/react");
|
|
13
|
+
|
|
14
|
+
const useIconState_1 = require("../useIconState");
|
|
15
|
+
|
|
16
|
+
const FluentSystemIcons_Filled_ttf_1 = tslib_1.__importDefault(require("./FluentSystemIcons-Filled.ttf"));
|
|
17
|
+
|
|
18
|
+
const FluentSystemIcons_Filled_woff_1 = tslib_1.__importDefault(require("./FluentSystemIcons-Filled.woff"));
|
|
19
|
+
|
|
20
|
+
const FluentSystemIcons_Filled_woff2_1 = tslib_1.__importDefault(require("./FluentSystemIcons-Filled.woff2"));
|
|
21
|
+
|
|
22
|
+
const FluentSystemIcons_Regular_ttf_1 = tslib_1.__importDefault(require("./FluentSystemIcons-Regular.ttf"));
|
|
23
|
+
|
|
24
|
+
const FluentSystemIcons_Regular_woff_1 = tslib_1.__importDefault(require("./FluentSystemIcons-Regular.woff"));
|
|
25
|
+
|
|
26
|
+
const FluentSystemIcons_Regular_woff2_1 = tslib_1.__importDefault(require("./FluentSystemIcons-Regular.woff2"));
|
|
27
|
+
|
|
28
|
+
const FluentSystemIcons_Resizable_ttf_1 = tslib_1.__importDefault(require("./FluentSystemIcons-Resizable.ttf"));
|
|
29
|
+
|
|
30
|
+
const FluentSystemIcons_Resizable_woff_1 = tslib_1.__importDefault(require("./FluentSystemIcons-Resizable.woff"));
|
|
31
|
+
|
|
32
|
+
const FluentSystemIcons_Resizable_woff2_1 = tslib_1.__importDefault(require("./FluentSystemIcons-Resizable.woff2"));
|
|
33
|
+
|
|
34
|
+
const FONT_FAMILY_MAP = {
|
|
35
|
+
[0
|
|
36
|
+
/* Filled */
|
|
37
|
+
]: 'FluentSystemIconsFilled',
|
|
38
|
+
[1
|
|
39
|
+
/* Regular */
|
|
40
|
+
]: 'FluentSystemIconsRegular',
|
|
41
|
+
[2
|
|
42
|
+
/* Resizable */
|
|
43
|
+
]: 'FluentSystemIcons'
|
|
44
|
+
};
|
|
45
|
+
const useStaticStyles = react_1.makeStaticStyles(`
|
|
46
|
+
@font-face {
|
|
47
|
+
font-family: ${FONT_FAMILY_MAP[0
|
|
48
|
+
/* Filled */
|
|
49
|
+
]};
|
|
50
|
+
src: url(${JSON.stringify(FluentSystemIcons_Filled_woff2_1.default)}) format("woff2"),
|
|
51
|
+
url(${JSON.stringify(FluentSystemIcons_Filled_woff_1.default)}) format("woff"),
|
|
52
|
+
url(${JSON.stringify(FluentSystemIcons_Filled_ttf_1.default)}) format("truetype");
|
|
53
|
+
}
|
|
54
|
+
@font-face {
|
|
55
|
+
font-family: ${FONT_FAMILY_MAP[1
|
|
56
|
+
/* Regular */
|
|
57
|
+
]};
|
|
58
|
+
src: url(${JSON.stringify(FluentSystemIcons_Regular_woff2_1.default)}) format("woff2"),
|
|
59
|
+
url(${JSON.stringify(FluentSystemIcons_Regular_woff_1.default)}) format("woff"),
|
|
60
|
+
url(${JSON.stringify(FluentSystemIcons_Regular_ttf_1.default)}) format("truetype");
|
|
61
|
+
}
|
|
62
|
+
@font-face {
|
|
63
|
+
font-family: ${FONT_FAMILY_MAP[2
|
|
64
|
+
/* Resizable */
|
|
65
|
+
]};
|
|
66
|
+
src: url(${JSON.stringify(FluentSystemIcons_Resizable_woff2_1.default)}) format("woff2"),
|
|
67
|
+
url(${JSON.stringify(FluentSystemIcons_Resizable_woff_1.default)}) format("woff"),
|
|
68
|
+
url(${JSON.stringify(FluentSystemIcons_Resizable_ttf_1.default)}) format("truetype");
|
|
69
|
+
}
|
|
70
|
+
`);
|
|
71
|
+
|
|
72
|
+
const useRootStyles = react_1.__styles({
|
|
73
|
+
"0": {
|
|
74
|
+
"Bahqtrf": "f9dzkbp"
|
|
75
|
+
},
|
|
76
|
+
"1": {
|
|
77
|
+
"Bahqtrf": "f1krtbx5"
|
|
78
|
+
},
|
|
79
|
+
"2": {
|
|
80
|
+
"Bahqtrf": "f1sxfq9t"
|
|
81
|
+
},
|
|
82
|
+
"root": {
|
|
83
|
+
"mc9l5x": "f14t3ns0",
|
|
84
|
+
"B80ckks": "fmd4ok8",
|
|
85
|
+
"Bg96gwp": "fne0op0",
|
|
86
|
+
"ycbfsm": "fg4l7m0"
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
"d": [".f9dzkbp{font-family:FluentSystemIconsFilled;}", ".f1krtbx5{font-family:FluentSystemIconsRegular;}", ".f1sxfq9t{font-family:FluentSystemIcons;}", ".f14t3ns0{display:inline-block;}", ".fmd4ok8{font-style:normal;}", ".fne0op0{line-height:1em;}"],
|
|
90
|
+
"t": ["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
function createFluentFontIcon(displayName, codepoint, font, fontSize) {
|
|
94
|
+
const Component = props => {
|
|
95
|
+
useStaticStyles();
|
|
96
|
+
const styles = useRootStyles();
|
|
97
|
+
props.className = react_1.mergeClasses(styles.root, styles[font], props.className);
|
|
98
|
+
|
|
99
|
+
const _a = useIconState_1.useIconState(props),
|
|
100
|
+
{
|
|
101
|
+
primaryFill
|
|
102
|
+
} = _a,
|
|
103
|
+
state = tslib_1.__rest(_a, ["primaryFill"]); // We want to keep the same API surface as the SVG icons, so translate `primaryFill` to `color`
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
if (primaryFill) {
|
|
107
|
+
state.style = Object.assign(Object.assign({}, state.style), {
|
|
108
|
+
color: primaryFill
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (fontSize) {
|
|
113
|
+
state.style = Object.assign(Object.assign({}, state.style), {
|
|
114
|
+
fontSize
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return React.createElement("i", Object.assign({}, state), codepoint);
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
Component.displayName = displayName;
|
|
122
|
+
return Component;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
exports.createFluentFontIcon = createFluentFontIcon;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FluentIconsProps } from "./FluentIconsProps.types";
|
|
2
|
-
export declare const useIconState: (props: FluentIconsProps) => FluentIconsProps
|
|
3
|
+
export declare const useIconState: <TBaseAttributes extends import("react").HTMLAttributes<HTMLElement> | import("react").SVGAttributes<SVGElement> = import("react").SVGAttributes<SVGElement>>(props: FluentIconsProps<TBaseAttributes>) => FluentIconsProps<TBaseAttributes>;
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useIconState = void 0;
|
|
7
7
|
|
|
8
|
+
const tslib_1 = require("tslib");
|
|
9
|
+
|
|
8
10
|
const react_1 = require("@griffel/react");
|
|
9
11
|
|
|
10
12
|
const useRootStyles = react_1.__styles({
|
|
@@ -22,8 +24,10 @@ const useIconState = props => {
|
|
|
22
24
|
const {
|
|
23
25
|
title,
|
|
24
26
|
primaryFill = "currentColor"
|
|
25
|
-
} = props
|
|
26
|
-
|
|
27
|
+
} = props,
|
|
28
|
+
rest = tslib_1.__rest(props, ["title", "primaryFill"]);
|
|
29
|
+
|
|
30
|
+
const state = Object.assign(Object.assign({}, rest), {
|
|
27
31
|
title: undefined,
|
|
28
32
|
fill: primaryFill
|
|
29
33
|
});
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const wrapIcon: (icon: JSX.Element, displayName?: string | undefined) => React.FC<React.SVGAttributes<SVGElement> & {
|
|
3
|
+
primaryFill?: string | undefined;
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
filled?: boolean | undefined;
|
|
6
|
+
title?: string | undefined;
|
|
7
|
+
}>;
|
|
4
8
|
export default wrapIcon;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-icons",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.170-rc.7",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"main": "lib-cjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -15,23 +15,32 @@
|
|
|
15
15
|
"clean": "find ./src -type f ! -name \"wrapIcon.tsx\" -name \"*.tsx\" -delete",
|
|
16
16
|
"cleanSvg": "rm -rf ./intermediate",
|
|
17
17
|
"copy": "node ../../importer/generate.js --source=../../assets --dest=./intermediate --extension=svg --target=react",
|
|
18
|
-
"
|
|
18
|
+
"copy:font-files": "cpy './src/utils/fonts/*.{ttf,woff,woff2,json}' ./lib/utils/fonts/. && cpy './src/utils/fonts/*.{ttf,woff,woff2,json}' ./lib-cjs/utils/fonts/.",
|
|
19
|
+
"convert:svg": "node convert.js --source=./intermediate --dest=./src",
|
|
20
|
+
"convert:fonts": "node convert-font.js --source=./src/utils/fonts --dest=./src/fonts --codepointDest=./src/utils/fonts",
|
|
21
|
+
"generate:font-regular": "node ../../importer/generateFont.js --source=intermediate --dest=src/utils/fonts --iconType=Regular --codepoints=../../fonts/FluentSystemIcons-Regular.json",
|
|
22
|
+
"generate:font-filled": "node ../../importer/generateFont.js --source=intermediate --dest=src/utils/fonts --iconType=Filled --codepoints=../../fonts/FluentSystemIcons-Filled.json",
|
|
23
|
+
"generate:font-resizable": "node ../../importer/generateFont.js --source=intermediate --dest=src/utils/fonts --iconType=Resizable",
|
|
24
|
+
"generate:font": "npm run generate:font-regular && npm run generate:font-filled && npm run generate:font-resizable",
|
|
19
25
|
"rollup": "node ./generateRollup.js",
|
|
20
26
|
"optimize": "svgo --folder=./intermediate --precision=2 --disable=removeViewBox,mergePaths",
|
|
21
27
|
"unfill": "find ./intermediate -type f -name \"*.svg\" -exec sed -i.bak 's/fill=\"none\"//g' {} \\; && find ./intermediate -type f -name \"*.bak\" -delete",
|
|
22
|
-
"build": "npm run copy && npm run optimize && npm run unfill && npm run convert && npm run cleanSvg && npm run build:esm && npm run build:cjs",
|
|
28
|
+
"build": "npm run copy && npm run generate:font && npm run optimize && npm run unfill && npm run convert:svg && npm run convert:fonts && npm run cleanSvg && npm run build:esm && npm run build:cjs && npm run copy:font-files",
|
|
23
29
|
"build:cjs": "tsc --module commonjs --outDir lib-cjs && babel lib-cjs --out-dir lib-cjs",
|
|
24
30
|
"build:esm": "tsc && babel lib --out-dir lib"
|
|
25
31
|
},
|
|
26
32
|
"devDependencies": {
|
|
27
33
|
"@babel/cli": "^7.16.0",
|
|
28
34
|
"@babel/core": "^7.16.0",
|
|
35
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
29
36
|
"@griffel/babel-preset": "^1.0.0",
|
|
30
37
|
"@griffel/react": "^1.0.0",
|
|
31
38
|
"@svgr/core": "^5.5.0",
|
|
32
39
|
"@types/react": "^17.0.2",
|
|
33
|
-
"
|
|
40
|
+
"cpy-cli": "^4.1.0",
|
|
41
|
+
"glob": "^7.2.0",
|
|
34
42
|
"lodash": "^4.17.21",
|
|
43
|
+
"mkdirp": "^1.0.4",
|
|
35
44
|
"react": "^17.0.1",
|
|
36
45
|
"renamer": "^2.0.1",
|
|
37
46
|
"svgo": "^1.3.2",
|
|
@@ -46,5 +55,29 @@
|
|
|
46
55
|
"files": [
|
|
47
56
|
"lib/",
|
|
48
57
|
"lib-cjs/"
|
|
49
|
-
]
|
|
50
|
-
|
|
58
|
+
],
|
|
59
|
+
"exports": {
|
|
60
|
+
".": {
|
|
61
|
+
"fluentIcontFont": {
|
|
62
|
+
"types": "./lib/fonts/index.d.ts",
|
|
63
|
+
"import": "./lib/fonts/index.js",
|
|
64
|
+
"require": "./lib-cjs/fonts/index.js"
|
|
65
|
+
},
|
|
66
|
+
"default": {
|
|
67
|
+
"types": "./lib/index.d.ts",
|
|
68
|
+
"import": "./lib/index.js",
|
|
69
|
+
"require": "./lib-cjs/index.js"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"./lib/fonts": {
|
|
73
|
+
"types": "./lib/fonts/index.d.ts",
|
|
74
|
+
"import": "./lib/fonts/index.js",
|
|
75
|
+
"require": "./lib-cjs/fonts/index.js"
|
|
76
|
+
},
|
|
77
|
+
"./lib/svg": {
|
|
78
|
+
"types": "./lib/index.d.ts",
|
|
79
|
+
"import": "./lib/index.js",
|
|
80
|
+
"require": "./lib-cjs/index.js"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|