@swiftbrowser/web 0.25.0 → 0.26.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/symbols.ts +15 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swiftbrowser/web",
3
- "version": "0.25.0",
3
+ "version": "0.26.1",
4
4
  "type": "module",
5
5
  "description": "SwiftBrowser web renderer and dev server: applies render ops from a Swift/Wasm app to the DOM inside an iPhone frame.",
6
6
  "repository": {
package/src/symbols.ts CHANGED
@@ -607,6 +607,17 @@ const TRAY_FILL: IconNode = [
607
607
  ['path', { d: 'M2 13.75h5.06l2 3h5.88l2-3H22V18a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2z' }],
608
608
  ];
609
609
 
610
+ /** `circle.grid.2x2`: four dots in a square, as lucide draws none. */
611
+ const CIRCLE_GRID_2X2: IconNode = [
612
+ ['circle', { cx: '7', cy: '7', r: '3.5' }],
613
+ ['circle', { cx: '17', cy: '7', r: '3.5' }],
614
+ ['circle', { cx: '7', cy: '17', r: '3.5' }],
615
+ ['circle', { cx: '17', cy: '17', r: '3.5' }],
616
+ ];
617
+
618
+ /** `trash.slash`: lucide's trash crossed out, as its `…Off` icons are. */
619
+ const TRASH_SLASH: IconNode = [...Trash, ['path', { d: 'm2 2 20 20' }]];
620
+
610
621
  const outline = (icon: IconNode): SymbolGlyph => ({ icon, fill: 'outline' });
611
622
  const knockout = (icon: IconNode): SymbolGlyph => ({ icon, fill: 'knockout' });
612
623
  const solid = (icon: IconNode): SymbolGlyph => ({ icon, fill: 'solid' });
@@ -1011,6 +1022,10 @@ export const SF_SYMBOLS: Readonly<Record<string, SymbolGlyph>> = {
1011
1022
  'chart.line.uptrend.xyaxis': outline(TrendingUp),
1012
1023
  'square.grid.2x2': outline(LayoutGrid),
1013
1024
  'circle.grid.3x3': outline(Grid3x3),
1025
+ 'circle.grid.2x2': outline(CIRCLE_GRID_2X2),
1026
+ 'circle.grid.2x2.fill': solid(CIRCLE_GRID_2X2),
1027
+ 'app.dashed': outline(SquareDashed),
1028
+ 'trash.slash': outline(TRASH_SLASH),
1014
1029
  'fork.knife': outline(Utensils),
1015
1030
  'text.bubble': outline(MessageSquareText),
1016
1031
  'text.bubble.fill': knockout(MessageSquareText),