@react-md/material-icons 6.0.0-next.13 → 6.0.0-next.15
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/.turbo/turbo-build.log +8 -0
- package/.turbo/turbo-lint.log +4 -0
- package/CHANGELOG.md +14 -0
- package/package.json +16 -11
- package/scripts/.eslintrc.cjs +13 -0
- package/scripts/updateMaterialIcons.ts +1 -1
- package/scripts/utils/converters.ts +1 -1
- package/scripts/utils/createCoreMetadataFile.ts +5 -5
- package/scripts/utils/createDocsMetadataFile.ts +5 -2
- package/scripts/utils/createIconComponent.ts +8 -3
- package/scripts/utils/getMaterialFamilyParts.ts +1 -1
- package/scripts/utils/getMaterialMetadata.ts +3 -3
- package/scripts/utils/svg.ts +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
> @react-md/material-icons@6.0.0-next.14 build /home/mlaursen/code/react-md/packages/material-icons
|
|
3
|
+
> pnpm run run-script scripts/build.ts
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> @react-md/material-icons@6.0.0-next.14 run-script /home/mlaursen/code/react-md/packages/material-icons
|
|
7
|
+
> tsx --tsconfig scripts/tsconfig.json "scripts/build.ts"
|
|
8
|
+
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @react-md/material-icons
|
|
2
2
|
|
|
3
|
+
## 6.0.0-next.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @react-md/core@1.0.0-next.14
|
|
9
|
+
|
|
10
|
+
## 6.0.0-next.14
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
- @react-md/core@1.0.0-next.13
|
|
16
|
+
|
|
3
17
|
## 6.0.0-next.13
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-md/material-icons",
|
|
3
|
-
"version": "6.0.0-next.
|
|
3
|
+
"version": "6.0.0-next.15",
|
|
4
4
|
"description": "Material Design Icon components for react-md",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"cnbuilder": "^3.1.0",
|
|
32
|
-
"@react-md/core": "1.0.0-next.
|
|
32
|
+
"@react-md/core": "1.0.0-next.14"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@swc/core": "1.
|
|
36
|
-
"@types/lodash": "^4.17.
|
|
37
|
-
"@types/node": "^20.
|
|
38
|
-
"@types/react": "^18.
|
|
39
|
-
"glob": "^10.
|
|
35
|
+
"@swc/core": "1.5.24",
|
|
36
|
+
"@types/lodash": "^4.17.4",
|
|
37
|
+
"@types/node": "^20.14.0",
|
|
38
|
+
"@types/react": "^18.3.3",
|
|
39
|
+
"glob": "^10.4.1",
|
|
40
40
|
"lodash": "^4.17.21",
|
|
41
|
-
"prettier": "^3.
|
|
41
|
+
"prettier": "^3.3.0",
|
|
42
42
|
"pretty-ms": "^9.0.0",
|
|
43
|
-
"svgo": "^3.2
|
|
44
|
-
"tsx": "^4.
|
|
45
|
-
"typescript": "^5.4.
|
|
43
|
+
"svgo": "^3.3.2",
|
|
44
|
+
"tsx": "^4.11.2",
|
|
45
|
+
"typescript": "^5.4.5"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": ">= 18",
|
|
@@ -59,10 +59,15 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
+
"volta": {
|
|
63
|
+
"node": "20.12.2",
|
|
64
|
+
"pnpm": "8.15.7"
|
|
65
|
+
},
|
|
62
66
|
"scripts": {
|
|
63
67
|
"run-script": "tsx --tsconfig scripts/tsconfig.json",
|
|
64
68
|
"update-icons": "pnpm run run-script scripts/updateMaterialIcons.ts",
|
|
65
69
|
"typecheck": "tsc --noEmit",
|
|
70
|
+
"lint": "eslint -c scripts/.eslintrc.cjs \"scripts/**/*.ts\"",
|
|
66
71
|
"build": "pnpm run run-script scripts/build.ts",
|
|
67
72
|
"clean": "rm -rf .turbo node_modules *Icon.d.ts *Icon.js"
|
|
68
73
|
}
|
|
@@ -3,7 +3,7 @@ import { join } from "node:path";
|
|
|
3
3
|
import { GENERATED_FILE_BANNER } from "../constants.js";
|
|
4
4
|
import { printTypeUnion } from "./converters.js";
|
|
5
5
|
import { format } from "./format.js";
|
|
6
|
-
import { MaterialIconAndSymbolMetadata } from "./getMaterialMetadata.js";
|
|
6
|
+
import { type MaterialIconAndSymbolMetadata } from "./getMaterialMetadata.js";
|
|
7
7
|
|
|
8
8
|
export async function createCoreMetadataFIle(
|
|
9
9
|
metadata: MaterialIconAndSymbolMetadata,
|
|
@@ -15,16 +15,16 @@ export async function createCoreMetadataFIle(
|
|
|
15
15
|
const generatedTypes = await format(
|
|
16
16
|
`${GENERATED_FILE_BANNER}
|
|
17
17
|
|
|
18
|
-
/** @
|
|
18
|
+
/** @since 6.0.0 */
|
|
19
19
|
${printTypeUnion("MaterialIconFamily", iconFamilyTypes)}
|
|
20
20
|
|
|
21
|
-
/** @
|
|
21
|
+
/** @since 6.0.0 */
|
|
22
22
|
${printTypeUnion("MaterialIconName", [...iconNames])}
|
|
23
23
|
|
|
24
|
-
/** @
|
|
24
|
+
/** @since 6.0.0 */
|
|
25
25
|
${printTypeUnion("MaterialSymbolFamily", symbolFamilyTypes)}
|
|
26
26
|
|
|
27
|
-
/** @
|
|
27
|
+
/** @since 6.0.0 */
|
|
28
28
|
${printTypeUnion("MaterialSymbolName", [...symbolNames])}
|
|
29
29
|
|
|
30
30
|
`
|
|
@@ -3,7 +3,7 @@ import { join } from "node:path";
|
|
|
3
3
|
import { GENERATED_FILE_BANNER } from "../constants.js";
|
|
4
4
|
import { printConst, printTypeUnion } from "./converters.js";
|
|
5
5
|
import { format } from "./format.js";
|
|
6
|
-
import { MaterialIconAndSymbolMetadata } from "./getMaterialMetadata.js";
|
|
6
|
+
import { type MaterialIconAndSymbolMetadata } from "./getMaterialMetadata.js";
|
|
7
7
|
|
|
8
8
|
export async function createDocsMetadataFile(
|
|
9
9
|
metadata: MaterialIconAndSymbolMetadata,
|
|
@@ -33,7 +33,10 @@ export async function createDocsMetadataFile(
|
|
|
33
33
|
const generatedMetadata = await format(
|
|
34
34
|
`${GENERATED_FILE_BANNER}
|
|
35
35
|
|
|
36
|
-
import
|
|
36
|
+
import {
|
|
37
|
+
type MaterialIconName,
|
|
38
|
+
type MaterialSymbolName,
|
|
39
|
+
} from "@react-md/core/icon/material";
|
|
37
40
|
|
|
38
41
|
export type MaterialIconType = "icon" | "symbol";
|
|
39
42
|
export type MaterialIconAndSymbolName = MaterialIconName | MaterialSymbolName;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MaterialIconFamily } from "@react-md/core";
|
|
1
|
+
import { type MaterialIconFamily } from "@react-md/core/icon/material";
|
|
2
2
|
import lodash from "lodash";
|
|
3
3
|
import { writeFile } from "node:fs/promises";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { GENERATED_FILE_BANNER } from "../constants.js";
|
|
6
|
-
import { MaterialComponentMetadata } from "./converters.js";
|
|
6
|
+
import { type MaterialComponentMetadata } from "./converters.js";
|
|
7
7
|
import { format } from "./format.js";
|
|
8
8
|
import { getSvgIconChildren } from "./svg.js";
|
|
9
9
|
|
|
@@ -37,7 +37,12 @@ interface CreateIconComponentOptions extends MaterialComponentMetadata {
|
|
|
37
37
|
export async function createIconComponent(
|
|
38
38
|
options: CreateIconComponentOptions
|
|
39
39
|
): Promise<void> {
|
|
40
|
-
const {
|
|
40
|
+
const {
|
|
41
|
+
created,
|
|
42
|
+
materialIconsSrc,
|
|
43
|
+
iconNameFixes: _iconNameFixes,
|
|
44
|
+
...metadata
|
|
45
|
+
} = options;
|
|
41
46
|
const componentName = getMaterialIconComponentName(options);
|
|
42
47
|
const fileName = `${componentName}.tsx`;
|
|
43
48
|
if (created.has(fileName)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CategoriesByFamilyType,
|
|
3
|
-
CategoriesByFamilyTypeMap,
|
|
4
|
-
MaterialComponentMetadata,
|
|
2
|
+
type CategoriesByFamilyType,
|
|
3
|
+
type CategoriesByFamilyTypeMap,
|
|
4
|
+
type MaterialComponentMetadata,
|
|
5
5
|
categoriesMapToObject,
|
|
6
6
|
getSortedCategories,
|
|
7
7
|
} from "./converters.js";
|