@minmaps-dev/material-icon-set 0.2.0-rc.3 → 0.2.0-rc.5
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/dist/generated/registry.js +27 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -34,6 +34,22 @@ Edit `src/curated.mjs` (the curated list with optional search `keywords`), then
|
|
|
34
34
|
`@material-symbols/svg-400/outlined/<name>.svg` and writes `src/generated/registry.ts`.
|
|
35
35
|
Unknown names are logged and skipped (the build won't fail).
|
|
36
36
|
|
|
37
|
+
### Custom (non-Material) icons
|
|
38
|
+
|
|
39
|
+
For an icon Material Symbols doesn't have, drop the SVG in `src/Custom/<name>.svg`
|
|
40
|
+
(file name = the curated `name`, snake_case) and add an entry with `source: 'custom'`:
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
{ name: 'vending_machine', keywords: ['vending', 'snacks'], source: 'custom' },
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Both generators resolve SVGs through `scripts/load-icon-svg.mjs`, so a custom icon
|
|
47
|
+
reaches the CMS registry **and** the Martin sprite dirs (`generate:svg`) like any
|
|
48
|
+
other. Custom SVGs are normalized on the way in: root size forced to 48×48, and
|
|
49
|
+
`fill`/`stroke="currentColor"` stripped from child elements so the glyph takes the
|
|
50
|
+
badge color. Use a single-color glyph; multi-color art will be flattened. Names
|
|
51
|
+
must not collide with a Material name already in the list (first entry wins).
|
|
52
|
+
|
|
37
53
|
```bash
|
|
38
54
|
pnpm --filter @minmaps-dev/material-icon-set build
|
|
39
55
|
```
|
|
@@ -1043,11 +1043,25 @@ export const registry = [
|
|
|
1043
1043
|
"keywords": [
|
|
1044
1044
|
"information",
|
|
1045
1045
|
"help",
|
|
1046
|
-
"info"
|
|
1046
|
+
"info",
|
|
1047
|
+
"info desk",
|
|
1048
|
+
"information desk"
|
|
1047
1049
|
],
|
|
1048
1050
|
"group": "amenity",
|
|
1049
1051
|
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" viewBox=\"0 -960 960 960\"><path d=\"M453-280h60v-240h-60v240Zm26.98-314q14.02 0 23.52-9.2T513-626q0-14.45-9.48-24.22-9.48-9.78-23.5-9.78t-23.52 9.78Q447-640.45 447-626q0 13.6 9.48 22.8 9.48 9.2 23.5 9.2Zm.29 514q-82.74 0-155.5-31.5Q252-143 197.5-197.5t-86-127.34Q80-397.68 80-480.5t31.5-155.66Q143-709 197.5-763t127.34-85.5Q397.68-880 480.5-880t155.66 31.5Q709-817 763-763t85.5 127Q880-563 880-480.27q0 82.74-31.5 155.5Q817-252 763-197.68q-54 54.31-127 86Q563-80 480.27-80Zm.23-60Q622-140 721-239.5t99-241Q820-622 721.19-721T480-820q-141 0-240.5 98.81T140-480q0 141 99.5 240.5t241 99.5Zm-.5-340Z\"/></svg>"
|
|
1050
1052
|
},
|
|
1053
|
+
{
|
|
1054
|
+
"name": "info_i",
|
|
1055
|
+
"keywords": [
|
|
1056
|
+
"information",
|
|
1057
|
+
"help",
|
|
1058
|
+
"info",
|
|
1059
|
+
"info desk",
|
|
1060
|
+
"information desk"
|
|
1061
|
+
],
|
|
1062
|
+
"group": "amenity",
|
|
1063
|
+
"svg": "<svg width=\"48\" height=\"48\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 12 12\"><defs><style> .st0 { fill: none; } </style></defs><path class=\"st0\" d=\"M0,0h12v12H0V0Z\"/><path d=\"M7.4,4.3l-2.6.3v.4c0,0,.4,0,.4,0,.3,0,.4.2.3.5l-.9,4c-.2,1,.1,1.5.9,1.5s1.4-.3,1.7-.7v-.5c-.1.2-.5.3-.7.3-.3,0-.4-.2-.4-.6l1.2-5.4ZM7.4,1.9c0,.6-.5,1.2-1.2,1.2s-1.2-.5-1.2-1.2.5-1.2,1.2-1.2,1.2.5,1.2,1.2\"/></svg>"
|
|
1064
|
+
},
|
|
1051
1065
|
{
|
|
1052
1066
|
"name": "inventory_2",
|
|
1053
1067
|
"keywords": [
|
|
@@ -2378,6 +2392,18 @@ export const registry = [
|
|
|
2378
2392
|
"group": "amenity",
|
|
2379
2393
|
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" viewBox=\"0 -960 960 960\"><path d=\"m310-60-60-45v-185h-60q-24 0-42-18t-18-42v-320h-10q-12.75 0-21.37-8.68-8.63-8.67-8.63-21.5 0-12.82 8.63-21.32 8.62-8.5 21.37-8.5h130v-90h-30q-12.75 0-21.37-8.68-8.63-8.67-8.63-21.5 0-12.82 8.63-21.32 8.62-8.5 21.37-8.5h120q12.75 0 21.38 8.68 8.62 8.67 8.62 21.5 0 12.82-8.62 21.32-8.63 8.5-21.38 8.5h-30v90h130q12.75 0 21.38 8.68 8.62 8.67 8.62 21.5 0 12.82-8.62 21.32-8.63 8.5-21.38 8.5h-10v320q0 24-18 42t-42 18h-60v230ZM190-350h180v-80h-80q-8 0-14-6t-6-14q0-8 6-14t14-6h80v-80h-80q-8 0-14-6t-6-14q0-8 6-14t14-6h80v-80H190v320ZM600-80q-24 0-42-18t-18-42v-266q0-32 8-48.5t21-30.5q19-20 25-31t6-24v-30h-10q-12.75 0-21.37-8.68-8.63-8.67-8.63-21.5 0-12.82 9-21.32t21-8.5h200q12.75 0 21.38 8.68 8.62 8.67 8.62 21.5 0 12.82-8.62 21.32-8.63 8.5-21.38 8.5h-10v30q0 12 7.5 25t26.5 33q13 14 19.5 29t6.5 47v266q0 24-18 42t-42 18H600Zm0-300h180v-26q0-18-10-32t-22-29q-15-19-21.5-35t-6.5-38v-30h-60v30q0 21-6 37t-21 35q-12 15-22.5 29.5T600-406v26Zm0 120h180v-80H600v80Zm0 120h180v-80H600v80Zm0-120h180-180Z\"/></svg>"
|
|
2380
2394
|
},
|
|
2395
|
+
{
|
|
2396
|
+
"name": "vending_machine",
|
|
2397
|
+
"keywords": [
|
|
2398
|
+
"vending",
|
|
2399
|
+
"snacks",
|
|
2400
|
+
"drinks",
|
|
2401
|
+
"soda",
|
|
2402
|
+
"machine"
|
|
2403
|
+
],
|
|
2404
|
+
"group": "amenity",
|
|
2405
|
+
"svg": "<svg width=\"48\" height=\"48\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 12 12\"><defs><style> .st0 { fill: none; } </style></defs><path class=\"st0\" d=\"M0,0h12v12H0V0Z\"/><path d=\"M9.1.9c.4,0,.7.3.7.7v8.9c0,.4-.3.7-.7.7H2.9c-.4,0-.7-.3-.7-.7V1.6c0-.4.3-.7.7-.7h6.1ZM7.4,9.4h-3.4v.7h3.4v-.7ZM8,1.9H3.3v6.5h4.8V1.9ZM9.2,6.3h-.7v.7h.7v-.7ZM9.2,5h-.7v.7h.7v-.7ZM9.2,3.6h-.7v.7h.7v-.7Z\"/></svg>"
|
|
2406
|
+
},
|
|
2381
2407
|
{
|
|
2382
2408
|
"name": "videocam",
|
|
2383
2409
|
"keywords": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minmaps-dev/material-icon-set",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.5",
|
|
4
4
|
"description": "Curated Material Symbols icon registry for the MinuteMaps CMS + Web SDK. Replaces @minmaps-dev/default-amenity-icons.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "MTS LLC",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
],
|
|
43
43
|
"scripts": {
|
|
44
44
|
"generate": "node scripts/generate-registry.mjs",
|
|
45
|
+
"generate:svg": "node scripts/generate-badged-svg.mjs",
|
|
45
46
|
"build": "npm run generate && tsc -p tsconfig.json",
|
|
46
47
|
"typecheck": "npm run generate && tsc --noEmit -p tsconfig.json"
|
|
47
48
|
}
|