@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.
@@ -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
+
@@ -0,0 +1,4 @@
1
+
2
+ > @react-md/material-icons@6.0.0-next.14 lint /home/mlaursen/code/react-md/packages/material-icons
3
+ > eslint -c scripts/.eslintrc.cjs "scripts/**/*.ts"
4
+
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.13",
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.12"
32
+ "@react-md/core": "1.0.0-next.14"
33
33
  },
34
34
  "devDependencies": {
35
- "@swc/core": "1.4.12",
36
- "@types/lodash": "^4.17.0",
37
- "@types/node": "^20.12.5",
38
- "@types/react": "^18.2.74",
39
- "glob": "^10.3.12",
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.2.5",
41
+ "prettier": "^3.3.0",
42
42
  "pretty-ms": "^9.0.0",
43
- "svgo": "^3.2.0",
44
- "tsx": "^4.7.2",
45
- "typescript": "^5.4.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
  }
@@ -0,0 +1,13 @@
1
+ module.exports = {
2
+ root: true,
3
+ extends: ["@mlaursen/eslint-config"],
4
+ parserOptions: {
5
+ project: "./tsconfig.json",
6
+ tsconfigRootDir: __dirname,
7
+ ecmaVersion: 2018,
8
+ sourceType: "module",
9
+ },
10
+ rules: {
11
+ "no-console": 0,
12
+ },
13
+ };
@@ -1,4 +1,4 @@
1
- import { wait } from "@react-md/core";
1
+ import { wait } from "@react-md/core/utils/wait";
2
2
  import { glob } from "glob";
3
3
  import lodash from "lodash";
4
4
  import { execSync } from "node:child_process";
@@ -1,4 +1,4 @@
1
- import { type MaterialIconFamily } from "@react-md/core";
1
+ import { type MaterialIconFamily } from "@react-md/core/icon/material";
2
2
 
3
3
  export interface MaterialComponentMetadata {
4
4
  host: string;
@@ -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
- /** @remarks \\@since 6.0.0 */
18
+ /** @since 6.0.0 */
19
19
  ${printTypeUnion("MaterialIconFamily", iconFamilyTypes)}
20
20
 
21
- /** @remarks \\@since 6.0.0 */
21
+ /** @since 6.0.0 */
22
22
  ${printTypeUnion("MaterialIconName", [...iconNames])}
23
23
 
24
- /** @remarks \\@since 6.0.0 */
24
+ /** @since 6.0.0 */
25
25
  ${printTypeUnion("MaterialSymbolFamily", symbolFamilyTypes)}
26
26
 
27
- /** @remarks \\@since 6.0.0 */
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 type { MaterialIconName, MaterialSymbolName } from "@react-md/core";
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 { created, materialIconsSrc, iconNameFixes, ...metadata } = options;
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,4 +1,4 @@
1
- import { type MaterialIconFamily } from "@react-md/core";
1
+ import { type MaterialIconFamily } from "@react-md/core/icon/material";
2
2
  import { type MaterialIconType } from "./converters.js";
3
3
 
4
4
  export interface MaterialFamilyParts {
@@ -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";
@@ -1,6 +1,6 @@
1
1
  import lodash from "lodash";
2
2
  import { optimize } from "svgo";
3
- import { MaterialComponentMetadata } from "./converters.js";
3
+ import { type MaterialComponentMetadata } from "./converters.js";
4
4
 
5
5
  const END_SVG = "</svg>";
6
6