@minmaps-dev/material-icon-set 0.2.0-rc.1 → 0.2.0-rc.2
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/dist/generated/registry.js +18 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +8 -6
- package/package.json +1 -1
|
@@ -590,6 +590,18 @@ export const registry = [
|
|
|
590
590
|
"group": "amenity",
|
|
591
591
|
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" viewBox=\"0 -960 960 960\"><path d=\"M200-204v54q0 12.75-8.62 21.37Q182.75-120 170-120h-20q-12.75 0-21.37-8.63Q120-137.25 120-150v-324l85-256q5-14 16.5-22t26.5-8h464q15 0 26.5 8t16.5 22l85 256v324q0 12.75-8.62 21.37Q822.75-120 810-120h-21q-13 0-21-8.63-8-8.62-8-21.37v-54H200Zm3-330h554l-55-166H258l-55 166Zm-23 60v210-210Zm105.76 160q23.24 0 38.74-15.75Q340-345.5 340-368q0-23.33-15.75-39.67Q308.5-424 286-424q-23.33 0-39.67 16.26Q230-391.47 230-368.24q0 23.24 16.26 38.74 16.27 15.5 39.5 15.5ZM675-314q23.33 0 39.67-15.75Q731-345.5 731-368q0-23.33-16.26-39.67Q698.47-424 675.24-424q-23.24 0-38.74 16.26-15.5 16.27-15.5 39.5 0 23.24 15.75 38.74Q652.5-314 675-314Zm-495 50h600v-210H180v210Z\"/></svg>"
|
|
592
592
|
},
|
|
593
|
+
{
|
|
594
|
+
"name": "directions_run",
|
|
595
|
+
"keywords": [
|
|
596
|
+
"fire exit",
|
|
597
|
+
"emergency exit",
|
|
598
|
+
"evacuation",
|
|
599
|
+
"escape",
|
|
600
|
+
"running man"
|
|
601
|
+
],
|
|
602
|
+
"group": "amenity",
|
|
603
|
+
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" viewBox=\"0 -960 960 960\"><path d=\"M535-40v-239l-108-99-42 188-265-55 11-56 199 40 73-369-100 47v134h-60v-175l164-69q32-14 45.5-17.5T480-714q20 0 35.5 8.5T542-680l42 67q26 42 71 73t105 31v60q-67 0-119.5-31T543-573l-39 158 91 84v291h-60Zm5-714q-30 0-51.5-21.5T467-827q0-30 21.5-51.5T540-900q30 0 51.5 21.5T613-827q0 30-21.5 51.5T540-754Z\"/></svg>"
|
|
604
|
+
},
|
|
593
605
|
{
|
|
594
606
|
"name": "directions_subway",
|
|
595
607
|
"keywords": [
|
|
@@ -1167,7 +1179,12 @@ export const registry = [
|
|
|
1167
1179
|
"keywords": [
|
|
1168
1180
|
"water",
|
|
1169
1181
|
"drink",
|
|
1170
|
-
"fountain"
|
|
1182
|
+
"fountain",
|
|
1183
|
+
"vending",
|
|
1184
|
+
"vending machine",
|
|
1185
|
+
"refreshments",
|
|
1186
|
+
"beverages",
|
|
1187
|
+
"soda"
|
|
1171
1188
|
],
|
|
1172
1189
|
"group": "amenity",
|
|
1173
1190
|
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" viewBox=\"0 -960 960 960\"><path d=\"M262-80q-23 0-40.5-15T202-133l-82-747h720l-82 747q-2 23-19.5 38T698-80H262Zm-48-500 47.96 440H698l48-440H214Zm-7-60h546l20-180H187l20 180Zm272.83 387Q460-253 446-266.53T432-299q0-24 12.5-53t35.5-59q23 30 35.5 59t12.5 53q0 18.94-14.17 32.47-14.16 13.53-34 13.53Zm.17 60q45.47 0 76.74-31Q588-255 588-299q0-47-28.5-100T480-500q-51 48-79.5 101T372-299q0 44 31.26 75 31.27 31 76.74 31Zm-266 53h532-532Z\"/></svg>"
|
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,10 @@ export type { IconEntry, IconGroup };
|
|
|
4
4
|
/** The full curated icon registry ({ name, keywords, svg, group }[]), sorted by name. */
|
|
5
5
|
export { registry };
|
|
6
6
|
/**
|
|
7
|
-
* Icons offered to a given picker. `'amenity'`
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Icons offered to a given picker. One-way overlap: `'amenity'` is a SUPERSET —
|
|
8
|
+
* it returns every icon (amenity + shared + connector), because an amenity may
|
|
9
|
+
* legitimately reuse a connector glyph. `'connector'` stays scoped to connector +
|
|
10
|
+
* shared (`both`) icons so amenity-only icons don't clutter the path-type picker.
|
|
10
11
|
*/
|
|
11
12
|
export declare function iconsForGroup(group: IconGroup): IconEntry[];
|
|
12
13
|
/** Just the icon names — handy for the CMS picker / validation. */
|
package/dist/index.js
CHANGED
|
@@ -2,14 +2,16 @@ import { registry } from './generated/registry.js';
|
|
|
2
2
|
/** The full curated icon registry ({ name, keywords, svg, group }[]), sorted by name. */
|
|
3
3
|
export { registry };
|
|
4
4
|
/**
|
|
5
|
-
* Icons offered to a given picker. `'amenity'`
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Icons offered to a given picker. One-way overlap: `'amenity'` is a SUPERSET —
|
|
6
|
+
* it returns every icon (amenity + shared + connector), because an amenity may
|
|
7
|
+
* legitimately reuse a connector glyph. `'connector'` stays scoped to connector +
|
|
8
|
+
* shared (`both`) icons so amenity-only icons don't clutter the path-type picker.
|
|
8
9
|
*/
|
|
9
10
|
export function iconsForGroup(group) {
|
|
10
|
-
if (group === '
|
|
11
|
-
return registry;
|
|
12
|
-
|
|
11
|
+
if (group === 'connector') {
|
|
12
|
+
return registry.filter((e) => e.group === 'connector' || e.group === 'both');
|
|
13
|
+
}
|
|
14
|
+
return registry; // 'amenity' and 'both' see the full set
|
|
13
15
|
}
|
|
14
16
|
/** Just the icon names — handy for the CMS picker / validation. */
|
|
15
17
|
export const iconNames = registry.map((e) => e.name);
|
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.2",
|
|
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",
|