Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add shared icons package and compile scripts to core/models (#2464)

Leendert de Borst3026c030c9f2
diff --git a/core/models/README.md b/core/models/README.md
index 8a7323b90..b094e0377 100644
--- a/core/models/README.md
+++ b/core/models/README.md
@@ -12,18 +12,15 @@ TypeScript models are consumed as the `@aliasvault/models` package:
- **Mobile App**: linked as source through `@aliasvault/models` (a `file:` dependency; `metro.config.js` watches `core/`)
### 2. Native Code Generation (Transformed)
-Automatically generates platform-specific models and icon assets from TypeScript sources:
+Automatically generates platform-specific models from TypeScript sources:
| Source | Generated Output | Language |
|-----------------------------|-----------------------------------------------------------------------|---------------|
| `src/vault/FieldKey.ts` | `apps/mobile-app/ios/VaultModels/FieldKey.swift` | Swift |
| `src/vault/FieldKey.ts` | `apps/mobile-app/android/.../vaultstore/models/FieldKey.kt` | Kotlin |
-| `src/icons/ItemTypeIcons.ts`| `apps/mobile-app/ios/VaultModels/ItemTypeIcons.swift` | Swift |
-| `src/icons/ItemTypeIcons.ts`| `apps/mobile-app/android/.../vaultstore/models/ItemTypeIcons.kt` | Kotlin |
-| `src/icons/ItemTypeIcons.ts`| `apps/mobile-app/components/items/ItemTypeIconComponents.tsx` | React Native |
-| `src/icons/AppIcons.ts` | `apps/mobile-app/ios/VaultModels/AppIcons.swift` | Swift |
-| `src/icons/AppIcons.ts` | `apps/mobile-app/android/.../vaultstore/models/AppIcons.kt` | Kotlin |
-| `src/icons/AppIcons.ts` | `apps/mobile-app/components/items/AppIconComponents.tsx` | React Native |
+
+Icons (UI, item type and built-in logos) are generated from the SVG files in `src/icons/svg` by
+`scripts/generate-icons.cjs`; see [src/icons/README.md](src/icons/README.md) for more details.
### 3. Registry and Vocabulary Generators
diff --git a/core/models/build.sh b/core/models/build.sh
index 821e6c083..37c244435 100755
--- a/core/models/build.sh
+++ b/core/models/build.sh
@@ -23,9 +23,12 @@ node scripts/generate-vault-table-registry.cjs
npm run test
echo ""
-echo "- Generating platform-specific models (Swift, Kotlin, React Native)..."
+echo "- Generating platform-specific models (Swift, Kotlin)..."
node scripts/generate-field-keys.cjs
+echo "- Generating icon catalogs (TS, C#, Swift, Kotlin, React Native)..."
+node scripts/generate-icons.cjs
+
echo "- Generating password-generator defaults (Rust)..."
node scripts/generate-password-defaults.cjs
diff --git a/core/models/package.json b/core/models/package.json
index 572ab4461..cb445bc1c 100644
--- a/core/models/package.json
+++ b/core/models/package.json
@@ -17,7 +17,8 @@
"clean": "rm -rf dist",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
- "test": "vitest run --passWithNoTests"
+ "test": "vitest run --passWithNoTests",
+ "icons:generate": "node scripts/generate-icons.cjs"
},
"files": [
"dist"
diff --git a/core/models/scripts/generate-field-keys.cjs b/core/models/scripts/generate-field-keys.cjs
index af7544b98..de64e04ed 100755
--- a/core/models/scripts/generate-field-keys.cjs
+++ b/core/models/scripts/generate-field-keys.cjs
@@ -1,6 +1,6 @@
#!/usr/bin/env node
/**
- * Generates FieldKey, FieldType, ItemType constants and the icon catalogs (ItemTypeIcons, AppIcons) for Swift, Kotlin and React Native from TypeScript source.
+ * Generates FieldKey, FieldType and ItemType constants for Swift and Kotlin from TypeScript source.
* All type definitions are dynamically extracted from the TypeScript source files.
*/
@@ -18,40 +18,6 @@ const KOTLIN_OUTPUT = path.join(REPO_ROOT, 'apps/mobile-app/android/app/src/main
const KOTLIN_FIELD_TYPE_OUTPUT = path.join(REPO_ROOT, 'apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/models/FieldType.kt');
const KOTLIN_ITEM_TYPE_OUTPUT = path.join(REPO_ROOT, 'apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/models/ItemType.kt');
-/**
- * The SVG icon catalogs.
- */
-const ICON_CATALOGS = [
- {
- constName: 'ItemTypeIconSvgs',
- className: 'ItemTypeIcons',
- sourceFile: 'core/models/src/icons/ItemTypeIcons.ts',
- description: ['Centralized SVG icon definitions for item types.', 'Single source of truth for all item type icons across platforms.'],
- rnMapName: 'iconComponents',
- rnKeyTypeName: 'IconKey',
- lookup: false,
- outputs: {
- swift: path.join(REPO_ROOT, 'apps/mobile-app/ios/VaultModels/ItemTypeIcons.swift'),
- kotlin: path.join(REPO_ROOT, 'apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/models/ItemTypeIcons.kt'),
- rn: path.join(REPO_ROOT, 'apps/mobile-app/components/items/ItemTypeIconComponents.tsx'),
- },
- },
- {
- constName: 'AppIconSvgs',
- className: 'AppIcons',
- sourceFile: 'core/models/src/icons/AppIcons.ts',
- description: ['The catalog of built-in icons a user can pick for an item, keyed by the Source a builtin logo row stores.', 'Single source of truth for all built-in icons across platforms.'],
- rnMapName: 'appIconComponents',
- rnKeyTypeName: 'AppIconKey',
- lookup: true,
- outputs: {
- swift: path.join(REPO_ROOT, 'apps/mobile-app/ios/VaultModels/AppIcons.swift'),
- kotlin: path.join(REPO_ROOT, 'apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/models/AppIcons.kt'),
- rn: path.join(REPO_ROOT, 'apps/mobile-app/components/items/AppIconComponents.tsx'),
- },
- },
-];
-
/**
* Parse the TypeScript FieldKey.ts file and extract constants
*/
@@ -390,312 +356,6 @@ function ensureDir(filePath) {
}
}
-// ==================== ICON GENERATION ====================
-
-/**
- * Parse an SVG catalog constant (a `{ Name: `<svg...>` }` object) from TypeScript source
- */
-function parseIconSvgs(tsContent, constName) {
- const icons = {};
-
- // Find the catalog constant
- const startMatch = tsContent.match(new RegExp(`export const ${constName}\\s*=\\s*\\{`));
- if (!startMatch) {
- console.warn(`Warning: Could not find ${constName} in source`);
- return icons;
- }
-
- const startIdx = startMatch.index + startMatch[0].length;
-
- // Find the closing brace by counting braces
- let braceCount = 1;
- let endIdx = startIdx;
- while (braceCount > 0 && endIdx < tsContent.length) {
- if (tsContent[endIdx] === '{') braceCount++;
- if (tsContent[endIdx] === '}') braceCount--;
- endIdx++;
- }
-
- const body = tsContent.slice(startIdx, endIdx - 1);
-
- // Match each icon: IconName: `<svg...>`,
- // Use a state machine to handle template literals with backticks
- const lines = body.split(/\r?\n/);
- let currentIconName = null;
- let currentSvg = '';
- let inTemplateLiteral = false;
-
- for (const line of lines) {
- const trimmed = line.trim();
-
- // Skip JSDoc comments
- if (trimmed.startsWith('/**') || trimmed.startsWith('*')) {
- continue;
- }
-
- // Check for icon name start: IconName: `
- const iconStartMatch = trimmed.match(/^(\w+):\s*`(.*)$/);
- if (iconStartMatch && !inTemplateLiteral) {
- currentIconName = iconStartMatch[1];
- const rest = iconStartMatch[2];
-
- // Check if it ends on the same line
- if (rest.endsWith('`,') || rest.endsWith('`')) {
- icons[currentIconName] = rest.replace(/`,?$/, '');
- currentIconName = null;
- } else {
- currentSvg = rest + '\n';
- inTemplateLiteral = true;
- }
- continue;
- }
-
- // Continue collecting SVG content
- if (inTemplateLiteral && currentIconName) {
- // Check if this line ends the template literal
- if (trimmed.endsWith('`,') || trimmed === '`,' || trimmed === '`') {
- currentSvg += line.replace(/\s*`,?$/, '');
- icons[currentIconName] = currentSvg.trim();
- currentIconName = null;
- currentSvg = '';
- inTemplateLiteral = false;
- } else {
- currentSvg += line + '\n';
- }
- }
- }
-
- return icons;
-}
-
-
-/**
- * Generate a Swift struct for an icon catalog
- */
-function generateSwiftIcons(icons, catalog) {
- const header = `// <auto-generated />
-// This file is auto-generated from ${catalog.sourceFile}
-// Do not edit this file directly. Run 'npm run generate:models' to regenerate.
-// swiftlint:disable line_length
-
-import Foundation
-
-${catalog.description.map(line => `/// ${line}`).join('\n')}
-public struct ${catalog.className} {
-`;
-
- const iconFields = Object.entries(icons)
- .map(([name, svg]) => {
- const swiftName = name.charAt(0).toLowerCase() + name.slice(1);
- // Use triple-quoted string for multiline SVG
- return ` /// ${name} icon SVG.
- public static let ${swiftName} = """
-${svg}
-"""`;
- })
- .join('\n\n');
-
- const lookup = catalog.lookup ? `
-
- /// The SVG for an icon key, or nil when the key is unknown to this client.
- public static func svg(for key: String) -> String? {
- switch key {
-${Object.keys(icons).map(name => ` case "${name}": return ${name.charAt(0).toLowerCase() + name.slice(1)}`).join('\n')}
- default: return nil
- }
- }` : '';
-
- const footer = `
-}
-`;
-
- return header + iconFields + lookup + footer;
-}
-
-/**
- * Parse SVG string and convert to React Native SVG component JSX.
- * Handles circle, rect, path, and text elements.
- */
-function svgToReactNative(svgString, componentName) {
- // Extract elements from SVG
- const circleRegex = /<circle\s+([^>]+)\/>/g;
- const rectRegex = /<rect\s+([^>]+)\/>/g;
- const pathRegex = /<path\s+([^>]+)\/>/g;
- const textRegex = /<text\s+([^>]+)>([^<]+)<\/text>/g;
-
- const elements = [];
-
- // Parse circles
- let match;
- while ((match = circleRegex.exec(svgString)) !== null) {
- const attrs = parseAttributes(match[1]);
- const props = Object.entries(attrs)
- .map(([key, value]) => {
- const rnKey = toReactNativeAttr(key);
- return `${rnKey}="${value}"`;
- })
- .join(' ');
- elements.push({ index: match.index, element: `<Circle ${props} />` });
- }
-
- // Parse rects
- while ((match = rectRegex.exec(svgString)) !== null) {
- const attrs = parseAttributes(match[1]);
- const props = Object.entries(attrs)
- .map(([key, value]) => {
- const rnKey = toReactNativeAttr(key);
- return `${rnKey}="${value}"`;
- })
- .join(' ');
- elements.push({ index: match.index, element: `<Rect ${props} />` });
- }
-
- // Parse paths
- while ((match = pathRegex.exec(svgString)) !== null) {
- const attrs = parseAttributes(match[1]);
- const props = Object.entries(attrs)
- .map(([key, value]) => {
- const rnKey = toReactNativeAttr(key);
- return `${rnKey}="${value}"`;
- })
- .join(' ');
- elements.push({ index: match.index, element: `<Path ${props} />` });
- }
-
- // Parse text elements
- while ((match = textRegex.exec(svgString)) !== null) {
- const attrs = parseAttributes(match[1]);
- const textContent = match[2];
- const props = Object.entries(attrs)
- .map(([key, value]) => {
- const rnKey = toReactNativeAttr(key);
- return `${rnKey}="${value}"`;
- })
- .join(' ');
- elements.push({ index: match.index, element: `<SvgText ${props}>${textContent}</SvgText>` });
- }
-
- // Sort elements by their original position in the SVG
- elements.sort((a, b) => a.index - b.index);
-
- const elementLines = elements.map(e => ` ${e.element}`).join('\n');
-
- return `export const ${componentName}Icon = ({ width = 32, height = 32 }: { width?: number; height?: number }): React.ReactElement => (
- <Svg width={width} height={height} viewBox="0 0 32 32" fill="none">
-${elementLines}
- </Svg>
-);`;
-}
-
-/**
- * Parse HTML/SVG attributes into an object.
- */
-function parseAttributes(attrString) {
- const attrs = {};
- const attrRegex = /(\w+(?:-\w+)*)="([^"]+)"/g;
- let match;
- while ((match = attrRegex.exec(attrString)) !== null) {
- attrs[match[1]] = match[2];
- }
- return attrs;
-}
-
-/**
- * Convert SVG attribute names to React Native SVG attribute names.
- */
-function toReactNativeAttr(attr) {
- const mapping = {
- 'stroke-width': 'strokeWidth',
- 'stroke-linecap': 'strokeLinecap',
- 'stroke-linejoin': 'strokeLinejoin',
- 'fill-rule': 'fillRule',
- 'clip-rule': 'clipRule',
- 'text-anchor': 'textAnchor',
- 'font-size': 'fontSize',
- 'font-weight': 'fontWeight',
- 'font-family': 'fontFamily',
- };
- return mapping[attr] || attr;
-}
-
-/**
- * Generate React Native SVG components from icons.
- */
-function generateReactNativeIcons(icons, catalog) {
- const header = `// <auto-generated />
-// This file is auto-generated from ${catalog.sourceFile}
-// Do not edit this file directly. Run 'npm run generate:models' to regenerate.
-
-import React from 'react';
-import Svg, { Circle, Path, Rect, Text as SvgText } from 'react-native-svg';
-
-`;
-
- const components = Object.entries(icons)
- .map(([name, svg]) => svgToReactNative(svg, name))
- .join('\n\n');
-
- const iconMap = `
-/**
- * Map of icon key to React Native SVG component.
- */
-export const ${catalog.rnMapName} = {
-${Object.keys(icons).map(name => ` ${name}: ${name}Icon,`).join('\n')}
-};
-
-export type ${catalog.rnKeyTypeName} = keyof typeof ${catalog.rnMapName};
-`;
-
- return header + components + iconMap;
-}
-
-/**
- * Generate a Kotlin object for an icon catalog
- */
-function generateKotlinIcons(icons, catalog) {
- const header = `// <auto-generated />
-// This file is auto-generated from ${catalog.sourceFile}
-// Do not edit this file directly. Run 'npm run generate:models' to regenerate.
-@file:Suppress("MaxLineLength")
-
-package net.aliasvault.app.vaultstore.models
-
-/**
-${catalog.description.map(line => ` * ${line}`).join('\n')}
- */
-object ${catalog.className} {
-`;
-
- const iconFields = Object.entries(icons)
- .map(([name, svg]) => {
- const kotlinName = name.replace(/([A-Z])/g, '_$1').toUpperCase().replace(/^_/, '');
- // Use trimIndent for multiline string
- return ` /**
- * ${name} icon SVG.
- */
- val ${kotlinName} = """
-${svg}
- """.trimIndent()`;
- })
- .join('\n\n');
-
- const lookup = catalog.lookup ? `
-
- /**
- * The SVG for an icon key, or null when the key is unknown to this client.
- */
- fun svgFor(key: String): String? = when (key) {
-${Object.keys(icons).map(name => ` "${name}" -> ${name.replace(/([A-Z])/g, '_$1').toUpperCase().replace(/^_/, '')}`).join('\n')}
- else -> null
- }` : '';
-
- const footer = `
-}
-`;
-
- return header + iconFields + lookup + footer;
-}
-
/**
* Main execution
*/
@@ -769,32 +429,6 @@ function main() {
fs.writeFileSync(KOTLIN_ITEM_TYPE_OUTPUT, kotlinItemTypeContent, 'utf8');
console.log(`Generated: ${KOTLIN_ITEM_TYPE_OUTPUT}`);
- // ==================== ICON GENERATION ====================
-
- for (const catalog of ICON_CATALOGS) {
- const source = path.join(REPO_ROOT, catalog.sourceFile);
- if (!fs.existsSync(source)) {
- throw new Error(`Icons source file not found: ${source}`);
- }
-
- const iconSvgs = parseIconSvgs(fs.readFileSync(source, 'utf8'), catalog.constName);
- if (Object.keys(iconSvgs).length === 0) {
- throw new Error(`No icon SVGs found in ${catalog.sourceFile}`);
- }
- console.log(`Parsed ${Object.keys(iconSvgs).length} ${catalog.className} SVGs: ${Object.keys(iconSvgs).join(', ')}`);
-
- const generated = [
- [catalog.outputs.swift, generateSwiftIcons(iconSvgs, catalog)],
- [catalog.outputs.kotlin, generateKotlinIcons(iconSvgs, catalog)],
- [catalog.outputs.rn, generateReactNativeIcons(iconSvgs, catalog)],
- ];
- for (const [output, content] of generated) {
- ensureDir(output);
- fs.writeFileSync(output, content, 'utf8');
- console.log(`Generated: ${output}`);
- }
- }
-
console.log('\nCode generation complete!');
}
diff --git a/core/models/scripts/generate-icons.cjs b/core/models/scripts/generate-icons.cjs
new file mode 100644
index 000000000..55933b8f6
--- /dev/null
+++ b/core/models/scripts/generate-icons.cjs
@@ -0,0 +1,390 @@
+#!/usr/bin/env node
+/**
+ * Generates the icon catalogs for every platform from the SVG sources in core/models/src/icons/svg.
+ */
+
+const fs = require('fs');
+const path = require('path');
+const { readIconFolder, serializeIconSvg, serializeIconBody, toCamelCase } = require('./lib/svg-icons.cjs');
+
+const REPO_ROOT = path.join(__dirname, '../../..');
+const ICONS_DIR = path.join(REPO_ROOT, 'core/models/src/icons');
+const SOURCES_FILE = path.join(ICONS_DIR, 'sources.json');
+
+const GENERATED_HEADER = 'This file is auto-generated from core/models/src/icons/svg by core/models/scripts/generate-icons.cjs.';
+const REGENERATE_HINT = "Do not edit this file directly. Run 'node core/models/scripts/generate-icons.cjs' to regenerate.";
+const TS_HEADER = `/*\n * <auto-generated />\n * ${GENERATED_HEADER}\n * ${REGENERATE_HINT}\n */`;
+
+/**
+ * The item type and built-in logo catalogs, rendered as full SVG strings on every platform.
+ */
+const SVG_CATALOGS = [
+ {
+ key: 'item',
+ constName: 'ItemTypeIconSvgs',
+ className: 'ItemTypeIcons',
+ keyTypeName: 'ItemTypeIconKey',
+ description: ['Centralized SVG icon definitions for item types.', 'Single source of truth for all item type icons across platforms.'],
+ rnMapName: 'itemTypeIconComponents',
+ rnKeyTypeName: 'ItemTypeIconComponentKey',
+ lookup: false,
+ outputs: {
+ ts: path.join(ICONS_DIR, 'ItemTypeIcons.ts'),
+ swift: path.join(REPO_ROOT, 'apps/mobile-app/ios/VaultModels/ItemTypeIcons.swift'),
+ kotlin: path.join(REPO_ROOT, 'apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/models/ItemTypeIcons.kt'),
+ rn: path.join(REPO_ROOT, 'apps/mobile-app/components/items/ItemTypeIconComponents.tsx'),
+ },
+ },
+ {
+ key: 'builtin-logo',
+ constName: 'BuiltinLogoSvgs',
+ className: 'BuiltinLogos',
+ keyTypeName: 'BuiltinLogoKey',
+ description: ['The built-in logos a user can pick for an item, keyed by the Source a builtin logo row stores.', 'Single source of truth for all built-in logos across platforms.'],
+ rnMapName: 'builtinLogoComponents',
+ rnKeyTypeName: 'BuiltinLogoComponentKey',
+ lookup: true,
+ outputs: {
+ ts: path.join(ICONS_DIR, 'BuiltinLogos.ts'),
+ swift: path.join(REPO_ROOT, 'apps/mobile-app/ios/VaultModels/BuiltinLogos.swift'),
+ kotlin: path.join(REPO_ROOT, 'apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/models/BuiltinLogos.kt'),
+ rn: path.join(REPO_ROOT, 'apps/mobile-app/components/items/BuiltinLogoComponents.tsx'),
+ },
+ },
+];
+
+const UI_TS_OUTPUT = path.join(ICONS_DIR, 'UiIcons.ts');
+const UI_CSHARP_OUTPUT = path.join(REPO_ROOT, 'apps/server/AliasVault.Admin/Main/Components/Icons/UiIcons.cs');
+
+/**
+ * Load one catalog in the order of sources.json, failing when a source file and its provenance entry don't line up.
+ */
+function loadCatalog(key, sources) {
+ const icons = readIconFolder(path.join(ICONS_DIR, 'svg', key));
+ const listed = Object.keys(sources[key] ?? {});
+ const missingSource = Object.keys(icons).filter((name) => !listed.includes(name));
+ const missingFile = listed.filter((name) => !(name in icons));
+ if (missingSource.length || missingFile.length) {
+ throw new Error(`Icon catalog "${key}" is out of sync with sources.json. Without a sources.json entry: ${missingSource.join(', ') || '-'}. Without an svg file: ${missingFile.join(', ') || '-'}.`);
+ }
+ for (const name of listed) {
+ if (!sources[key][name].source) {
+ throw new Error(`sources.json: ${key}/${name} has no "source"`);
+ }
+ }
+ return Object.fromEntries(listed.map((name) => [name, icons[name]]));
+}
+
+/**
+ * Quote a string for a single-quoted TypeScript literal.
+ */
+function tsString(value) {
+ return `'${value.replace(/\\/g, '\\\\').replace(/'/g, "\\'")}'`;
+}
+
+/**
+ * Format an attribute map as a TypeScript object literal with camelCase keys.
+ */
+function tsAttributes(attrs) {
+ const entries = Object.entries(attrs).map(([name, value]) => {
+ const prop = toCamelCase(name);
+ return `${/^[a-zA-Z_$][\w$]*$/.test(prop) ? prop : tsString(prop)}: ${tsString(value)}`;
+ });
+ return `{ ${entries.join(', ')} }`;
+}
+
+/**
+ * Generate core/models/src/icons/UiIcons.ts.
+ */
+function generateUiTypeScript(icons) {
+ const entries = Object.entries(icons).map(([name, icon]) => {
+ const { viewBox, ...attrs } = icon.attrs;
+ const nodes = icon.nodes.map(([tag, nodeAttrs]) => `[${tsString(tag)}, ${tsAttributes(nodeAttrs)}]`).join(', ');
+ return ` ${tsString(name)}: { viewBox: ${tsString(viewBox)}, attrs: ${tsAttributes(attrs)}, nodes: [${nodes}] },`;
+ });
+
+ return `${TS_HEADER}
+
+/**
+ * A shape element of a UI icon.
+ */
+export type UiIconTag = 'path' | 'circle' | 'rect' | 'line' | 'polyline' | 'polygon' | 'ellipse';
+
+/**
+ * A shape of a UI icon with its attributes, keyed by React prop name (camelCase).
+ */
+export type UiIconNode = readonly [tag: UiIconTag, attrs: Readonly<Record<string, string>>];
+
+/**
+ * A UI icon: the root <svg> attributes (camelCase) and its shapes.
+ */
+export type UiIconDefinition = {
+ readonly viewBox: string;
+ readonly attrs: Readonly<Record<string, string>>;
+ readonly nodes: readonly UiIconNode[];
+};
+
+/**
+ * The UI icons shared by all apps, keyed by name.
+ */
+export const UiIcons = {
+${entries.join('\n')}
+} as const satisfies Record<string, UiIconDefinition>;
+
+export type UiIconName = keyof typeof UiIcons;
+`;
+}
+
+/**
+ * Generate the TypeScript string catalog for item type icons or built-in logos.
+ */
+function generateSvgCatalogTypeScript(icons, catalog) {
+ const entries = Object.entries(icons).map(([name, icon]) => ` ${tsString(name)}: \`${serializeIconSvg(icon, { xmlns: true })}\`,`).join('\n\n');
+ const helpers = catalog.lookup
+ ? `
+/**
+ * Get the SVG string for a built-in logo key, or null when the key is unknown to this client
+ * (a newer version may have added it). Callers fall back to their placeholder icon.
+ */
+export function getBuiltinLogoSvg(key: string): string | null {
+ return Object.prototype.hasOwnProperty.call(${catalog.constName}, key) ? ${catalog.constName}[key as ${catalog.keyTypeName}] : null;
+}
+
+/**
+ * Get all built-in logo keys, in the order they are offered to the user.
+ */
+export function getAllBuiltinLogoKeys(): ${catalog.keyTypeName}[] {
+ return Object.keys(${catalog.constName}) as ${catalog.keyTypeName}[];
+}
+`
+ : `
+/**
+ * Get SVG string for an item type icon.
+ */
+export function getItemTypeIconSvg(key: ${catalog.keyTypeName}): string {
+ return ${catalog.constName}[key];
+}
+
+/**
+ * Get all item type icon keys.
+ */
+export function getAllItemTypeIconKeys(): ${catalog.keyTypeName}[] {
+ return Object.keys(${catalog.constName}) as ${catalog.keyTypeName}[];
+}
+`;
+
+ return `${TS_HEADER}
+
+/**
+${catalog.description.map((line) => ` * ${line}`).join('\n')}
+ */
+export const ${catalog.constName} = {
+${entries}
+} as const;
+
+export type ${catalog.keyTypeName} = keyof typeof ${catalog.constName};
+${helpers}`;
+}
+
+/**
+ * Generate a Swift struct for an item type icon or built-in logo catalog.
+ */
+function generateSwiftIcons(icons, catalog) {
+ const fields = Object.entries(icons).map(([name, icon]) => ` /// ${name} icon SVG.
+ public static let ${toCamelCase(name)} = """
+${serializeIconSvg(icon, { xmlns: true })}
+"""`).join('\n\n');
+
+ const lookup = catalog.lookup ? `
+
+ /// The SVG for an icon key, or nil when the key is unknown to this client.
+ public static func svg(for key: String) -> String? {
+ switch key {
+${Object.keys(icons).map((name) => ` case "${name}": return ${toCamelCase(name)}`).join('\n')}
+ default: return nil
+ }
+ }` : '';
+
+ return `// <auto-generated />
+// ${GENERATED_HEADER}
+// ${REGENERATE_HINT}
+// swiftlint:disable line_length
+
+import Foundation
+
+${catalog.description.map((line) => `/// ${line}`).join('\n')}
+public struct ${catalog.className} {
+${fields}${lookup}
+}
+`;
+}
+
+/**
+ * Generate a Kotlin object for an item type icon or built-in logo catalog.
+ */
+function generateKotlinIcons(icons, catalog) {
+ const constantName = (name) => name.replace(/-/g, '_').toUpperCase();
+ const fields = Object.entries(icons).map(([name, icon]) => ` /**
+ * ${name} icon SVG.
+ */
+ val ${constantName(name)} = """
+${serializeIconSvg(icon, { xmlns: true })}
+ """.trimIndent()`).join('\n\n');
+
+ const lookup = catalog.lookup ? `
+
+ /**
+ * The SVG for an icon key, or null when the key is unknown to this client.
+ */
+ fun svgFor(key: String): String? = when (key) {
+${Object.keys(icons).map((name) => ` "${name}" -> ${constantName(name)}`).join('\n')}
+ else -> null
+ }` : '';
+
+ return `// <auto-generated />
+// ${GENERATED_HEADER}
+// ${REGENERATE_HINT}
+@file:Suppress("MaxLineLength")
+
+package net.aliasvault.app.vaultstore.models
+
+/**
+${catalog.description.map((line) => ` * ${line}`).join('\n')}
+ */
+object ${catalog.className} {
+${fields}${lookup}
+}
+`;
+}
+
+/**
+ * The react-native-svg component for each shape element.
+ */
+const RN_COMPONENTS = { path: 'Path', circle: 'Circle', rect: 'Rect', line: 'Line', polyline: 'Polyline', polygon: 'Polygon', ellipse: 'Ellipse' };
+
+/**
+ * Generate react-native-svg components for an item type icon or built-in logo catalog.
+ */
+function generateReactNativeIcons(icons, catalog) {
+ const used = new Set();
+ const components = Object.entries(icons).map(([name, icon]) => {
+ const { viewBox, ...rootAttrs } = icon.attrs;
+ const rootProps = Object.entries(rootAttrs).map(([attr, value]) => ` ${toCamelCase(attr)}="${value}"`).join('');
+ const children = icon.nodes.map(([tag, attrs]) => {
+ used.add(RN_COMPONENTS[tag]);
+ return ` <${RN_COMPONENTS[tag]} ${Object.entries(attrs).map(([attr, value]) => `${toCamelCase(attr)}="${value}"`).join(' ')} />`;
+ }).join('\n');
+ return `export const ${toPascalCase(name)}Icon = ({ width = 32, height = 32 }: { width?: number; height?: number }): React.ReactElement => (
+ <Svg width={width} height={height} viewBox="${viewBox}"${rootProps}>
+${children}
+ </Svg>
+);`;
+ }).join('\n\n');
+
+ const imports = [...used].sort().join(', ');
+ return `// <auto-generated />
+// ${GENERATED_HEADER}
+// ${REGENERATE_HINT}
+
+import React from 'react';
+import Svg, { ${imports} } from 'react-native-svg';
+
+${components}
+
+/**
+ * Map of icon key to React Native SVG component.
+ */
+export const ${catalog.rnMapName} = {
+${Object.keys(icons).map((name) => ` ${tsString(name)}: ${toPascalCase(name)}Icon,`).join('\n')}
+};
+
+export type ${catalog.rnKeyTypeName} = keyof typeof ${catalog.rnMapName};
+`;
+}
+
+/**
+ * Convert a kebab-case icon name to a PascalCase member name.
+ */
+function toPascalCase(name) {
+ return name.split('-').map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join('');
+}
+
+/**
+ * Quote a string for a C# verbatim string literal.
+ */
+function csString(value) {
+ return `@"${value.replace(/"/g, '""')}"`;
+}
+
+/**
+ * Generate the C# UI icon catalog for the admin portal.
+ */
+function generateUiCSharp(icons) {
+ const members = Object.entries(icons).map(([name, icon]) => {
+ const { viewBox, ...attrs } = icon.attrs;
+ const attrList = Object.entries(attrs).map(([attr, value]) => `{ "${attr}", "${value}" }`).join(', ');
+ return ` /// <summary>Gets the "${name}" icon.</summary>
+ public static UiIconDefinition ${toPascalCase(name)} { get; } = new("${viewBox}", new Dictionary<string, object> { ${attrList} }, ${csString(serializeIconBody(icon))});`;
+ }).join('\n\n');
+
+ return `// <auto-generated />
+// ${GENERATED_HEADER}
+// ${REGENERATE_HINT}
+
+namespace AliasVault.Admin.Main.Components.Icons;
+
+using System.Collections.Generic;
+
+/// <summary>
+/// A UI icon: its viewBox, root svg attributes and inner shape markup.
+/// </summary>
+/// <param name="ViewBox">The svg viewBox.</param>
+/// <param name="Attributes">The root svg attributes (fill, stroke and so on).</param>
+/// <param name="Body">The inner shape markup.</param>
+public sealed record UiIconDefinition(string ViewBox, IReadOnlyDictionary<string, object> Attributes, string Body);
+
+/// <summary>
+/// The UI icons shared by all apps.
+/// </summary>
+public static class UiIcons
+{
+${members}
+}
+`;
+}
+
+/**
+ * Write a generated file when its content differs.
+ */
+function emit(file, content) {
+ const current = fs.existsSync(file) ? fs.readFileSync(file, 'utf8') : null;
+ if (current === content) {
+ return;
+ }
+ fs.mkdirSync(path.dirname(file), { recursive: true });
+ fs.writeFileSync(file, content, 'utf8');
+ console.log(`Generated: ${path.relative(REPO_ROOT, file)}`);
+}
+
+/**
+ * Main execution.
+ */
+function main() {
+ const sources = JSON.parse(fs.readFileSync(SOURCES_FILE, 'utf8'));
+
+ const uiIcons = loadCatalog('ui', sources);
+ emit(UI_TS_OUTPUT, generateUiTypeScript(uiIcons));
+ emit(UI_CSHARP_OUTPUT, generateUiCSharp(uiIcons));
+
+ for (const catalog of SVG_CATALOGS) {
+ const icons = loadCatalog(catalog.key, sources);
+ emit(catalog.outputs.ts, generateSvgCatalogTypeScript(icons, catalog));
+ emit(catalog.outputs.swift, generateSwiftIcons(icons, catalog));
+ emit(catalog.outputs.kotlin, generateKotlinIcons(icons, catalog));
+ emit(catalog.outputs.rn, generateReactNativeIcons(icons, catalog));
+ }
+
+ console.log(`Icons: ${Object.keys(uiIcons).length} ui, ${Object.keys(sources.item).length} item, ${Object.keys(sources['builtin-logo']).length} built-in logo.`);
+}
+
+main();
diff --git a/core/models/scripts/lib/svg-icons.cjs b/core/models/scripts/lib/svg-icons.cjs
new file mode 100644
index 000000000..7802ec6b3
--- /dev/null
+++ b/core/models/scripts/lib/svg-icons.cjs
@@ -0,0 +1,108 @@
+/**
+ * Reads the icon SVG sources in core/models/src/icons/svg and serializes them back to SVG markup.
+ */
+
+const fs = require('fs');
+const path = require('path');
+
+/** The child elements an icon may contain. */
+const SHAPE_TAGS = ['path', 'circle', 'rect', 'line', 'polyline', 'polygon', 'ellipse'];
+
+/** Root attributes that only matter when viewing the file on its own; generated output drops them. */
+const DROPPED_ROOT_ATTRS = ['xmlns', 'width', 'height', 'class', 'aria-hidden', 'data-slot'];
+
+/**
+ * Parse `name="value"` pairs, keeping their order.
+ */
+function parseAttributes(source, file) {
+ const attrs = {};
+ const rest = source.replace(/([\w:-]+)="([^"]*)"/g, (_, name, value) => {
+ attrs[name] = value;
+ return '';
+ });
+ if (rest.trim() !== '') {
+ throw new Error(`${file}: unsupported attribute syntax "${rest.trim()}"`);
+ }
+ return attrs;
+}
+
+/**
+ * Parse one icon file into its root attributes and shape nodes.
+ */
+function parseIconSvg(text, file) {
+ const source = text.replace(/<!--[\s\S]*?-->/g, '').trim();
+ const rootMatch = source.match(/^<svg\b([^>]*)>([\s\S]*)<\/svg>$/);
+ if (!rootMatch) {
+ throw new Error(`${file}: expected a single <svg> root element`);
+ }
+
+ const rootAttrs = parseAttributes(rootMatch[1], file);
+ for (const name of DROPPED_ROOT_ATTRS) {
+ delete rootAttrs[name];
+ }
+ if (!rootAttrs.viewBox) {
+ throw new Error(`${file}: the <svg> root needs a viewBox`);
+ }
+
+ const nodes = [];
+ const body = rootMatch[2].replace(/<(\w+)\b([^>]*?)\s*\/>|<(\w+)\b([^>]*?)>\s*<\/\3>/g, (_, tagA, attrsA, tagB, attrsB) => {
+ const tag = tagA || tagB;
+ if (!SHAPE_TAGS.includes(tag)) {
+ throw new Error(`${file}: <${tag}> is not supported, use only ${SHAPE_TAGS.join(', ')}`);
+ }
+ nodes.push([tag, parseAttributes(attrsA ?? attrsB ?? '', file)]);
+ return '';
+ });
+ if (body.trim() !== '') {
+ throw new Error(`${file}: unsupported content "${body.trim().slice(0, 60)}"`);
+ }
+ if (nodes.length === 0) {
+ throw new Error(`${file}: the icon has no shapes`);
+ }
+
+ return { attrs: rootAttrs, nodes };
+}
+
+/**
+ * Read every `<name>.svg` in a folder, sorted by name.
+ */
+function readIconFolder(folder) {
+ const icons = {};
+ for (const file of fs.readdirSync(folder).filter((f) => f.endsWith('.svg')).sort()) {
+ icons[path.basename(file, '.svg')] = parseIconSvg(fs.readFileSync(path.join(folder, file), 'utf8'), path.join(folder, file));
+ }
+ return icons;
+}
+
+/**
+ * Serialize attributes as ` name="value"` pairs.
+ */
+function attributeString(attrs) {
+ return Object.entries(attrs).map(([name, value]) => ` ${name}="${value}"`).join('');
+}
+
+/**
+ * Serialize an icon back to SVG markup.
+ */
+function serializeIconSvg(icon, { xmlns = false, indent = ' ', newline = '\n' } = {}) {
+ const rootAttrs = { viewBox: icon.attrs.viewBox, ...icon.attrs };
+ const root = `<svg${attributeString(rootAttrs)}${xmlns ? ' xmlns="http://www.w3.org/2000/svg"' : ''}>`;
+ const children = icon.nodes.map(([tag, attrs]) => `${indent}<${tag}${attributeString(attrs)}/>`);
+ return [root, ...children, '</svg>'].join(newline);
+}
+
+/**
+ * Serialize only the shape nodes, as the inner markup of an <svg> element.
+ */
+function serializeIconBody(icon) {
+ return icon.nodes.map(([tag, attrs]) => `<${tag}${attributeString(attrs)}/>`).join('');
+}
+
+/**
+ * Convert a kebab-case SVG attribute name to its camelCase React prop name.
+ */
+function toCamelCase(name) {
+ return name.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
+}
+
+module.exports = { SHAPE_TAGS, parseIconSvg, readIconFolder, serializeIconSvg, serializeIconBody, toCamelCase };
diff --git a/core/models/src/icons/AppIcons.ts b/core/models/src/icons/AppIcons.ts
deleted file mode 100644
index c8a528b35..000000000
--- a/core/models/src/icons/AppIcons.ts
+++ /dev/null
@@ -1,87 +0,0 @@
-/**
- * The catalog of built-in icons a user can pick for an item.
- */
-
-/**
- * SVG icon definitions for each built-in icon key.
- * All icons use a 32x32 viewBox for consistency with ItemTypeIconSvgs.
- */
-export const AppIconSvgs = {
- Shopping: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path d="M4 5H7L9.5 19H24L27 9H10" stroke="#f49541" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
- <circle cx="11" cy="25" r="2.5" fill="#d68338"/>
- <circle cx="22" cy="25" r="2.5" fill="#d68338"/>
-</svg>`,
-
- Bank: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path d="M16 4L29 11H3L16 4Z" fill="#f49541"/>
- <rect x="6" y="13" width="3" height="11" fill="#f49541"/>
- <rect x="14.5" y="13" width="3" height="11" fill="#f49541"/>
- <rect x="23" y="13" width="3" height="11" fill="#f49541"/>
- <rect x="3" y="25" width="26" height="3" rx="1" fill="#d68338"/>
-</svg>`,
-
- Mail: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
- <rect x="3" y="7" width="26" height="18" rx="3" fill="#f49541"/>
- <path d="M4 10L16 18L28 10" stroke="#ffe096" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
-</svg>`,
-
- Social: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
- <circle cx="12" cy="11" r="5" fill="#f49541"/>
- <path d="M3 27C3 21.5 7 18 12 18C17 18 21 21.5 21 27H3Z" fill="#f49541"/>
- <circle cx="23" cy="12" r="4" fill="#d68338"/>
- <path d="M20 27C20 22 23 19.5 26 19.5C28.5 19.5 30 22 30 27H20Z" fill="#d68338"/>
-</svg>`,
-
- Work: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path d="M12 8V6C12 5 12.9 4 14 4H18C19.1 4 20 5 20 6V8" stroke="#d68338" stroke-width="2.5" stroke-linecap="round"/>
- <rect x="3" y="8" width="26" height="18" rx="3" fill="#f49541"/>
- <rect x="3" y="15" width="26" height="2.5" fill="#d68338"/>
- <rect x="13.5" y="14" width="5" height="5" rx="1" fill="#ffe096"/>
-</svg>`,
-
- Game: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
- <rect x="2" y="9" width="28" height="15" rx="7.5" fill="#f49541"/>
- <rect x="7" y="14" width="6" height="2" rx="1" fill="#ffe096"/>
- <rect x="9" y="12" width="2" height="6" rx="1" fill="#ffe096"/>
- <circle cx="21" cy="14.5" r="1.8" fill="#d68338"/>
- <circle cx="24.5" cy="18" r="1.8" fill="#d68338"/>
-</svg>`,
-
- Media: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
- <rect x="3" y="5" width="26" height="22" rx="4" fill="#f49541"/>
- <path d="M13 11.5L21 16L13 20.5V11.5Z" fill="#ffe096"/>
-</svg>`,
-
- Travel: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path d="M15 3C16.1 3 17 3.9 17 5V12.5L29 19V22L17 18.5V24L20 26.5V29L15 27.5L10 29V26.5L13 24V18.5L1 22V19L13 12.5V5C13 3.9 13.9 3 15 3Z" fill="#f49541"/>
-</svg>`,
-
- Health: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path d="M16 27C16 27 3 19.5 3 11.5C3 7.4 6.1 4.5 9.8 4.5C12.2 4.5 14.5 5.9 16 8C17.5 5.9 19.8 4.5 22.2 4.5C25.9 4.5 29 7.4 29 11.5C29 19.5 16 27 16 27Z" fill="#f49541"/>
- <path d="M14.5 11H17.5V14H20.5V17H17.5V20H14.5V17H11.5V14H14.5V11Z" fill="#ffe096"/>
-</svg>`,
-
- Dev: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
- <rect x="2" y="5" width="28" height="22" rx="4" fill="#f49541"/>
- <path d="M12 12L8 16.5L12 21" stroke="#ffe096" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
- <path d="M20 12L24 16.5L20 21" stroke="#ffe096" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
-</svg>`,
-} as const;
-
-export type AppIconKey = keyof typeof AppIconSvgs;
-
-/**
- * Get the SVG string for a built-in icon key, or null when the key is unknown to this client
- * (a newer version may have added it). Callers fall back to their placeholder icon.
- */
-export function getAppIconSvg(key: string): string | null {
- return Object.prototype.hasOwnProperty.call(AppIconSvgs, key) ? AppIconSvgs[key as AppIconKey] : null;
-}
-
-/**
- * Get all built-in icon keys, in the order they are offered to the user.
- */
-export function getAllAppIconKeys(): AppIconKey[] {
- return Object.keys(AppIconSvgs) as AppIconKey[];
-}
diff --git a/core/models/src/icons/BuiltinLogos.ts b/core/models/src/icons/BuiltinLogos.ts
new file mode 100644
index 000000000..794b8d102
--- /dev/null
+++ b/core/models/src/icons/BuiltinLogos.ts
@@ -0,0 +1,92 @@
+/*
+ * <auto-generated />
+ * This file is auto-generated from core/models/src/icons/svg by core/models/scripts/generate-icons.cjs.
+ * Do not edit this file directly. Run 'node core/models/scripts/generate-icons.cjs' to regenerate.
+ */
+
+/**
+ * The built-in logos a user can pick for an item, keyed by the Source a builtin logo row stores.
+ * Single source of truth for all built-in logos across platforms.
+ */
+export const BuiltinLogoSvgs = {
+ 'shopping': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M11 12.5V9C11 6.24 13.24 4 16 4C18.76 4 21 6.24 21 9V12.5" stroke="#d68338" stroke-width="2.5" stroke-linecap="round"/>
+ <path d="M6.3 10H25.7L27.2 26.2C27.31 27.37 26.39 28.4 25.21 28.4H6.79C5.61 28.4 4.69 27.37 4.8 26.2L6.3 10Z" fill="#f49541"/>
+ <circle cx="11" cy="14" r="1.5" fill="#ffe096"/>
+ <circle cx="21" cy="14" r="1.5" fill="#ffe096"/>
+</svg>`,
+
+ 'bank': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M16 4L29 11H3L16 4Z" fill="#f49541"/>
+ <rect x="6" y="13" width="3" height="11" fill="#f49541"/>
+ <rect x="14.5" y="13" width="3" height="11" fill="#f49541"/>
+ <rect x="23" y="13" width="3" height="11" fill="#f49541"/>
+ <rect x="3" y="25" width="26" height="3" rx="1" fill="#d68338"/>
+</svg>`,
+
+ 'mail': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="3" y="7" width="26" height="18" rx="3" fill="#f49541"/>
+ <path d="M4 10L16 18L28 10" stroke="#ffe096" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>`,
+
+ 'social': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <circle cx="22" cy="11" r="4" fill="#d68338"/>
+ <path d="M18 27C18 21.5 20.5 18.5 23.5 18.5C26.5 18.5 29.5 21 29.5 27H18Z" fill="#d68338"/>
+ <circle cx="12" cy="11" r="5" fill="#f49541"/>
+ <path d="M2.5 27C2.5 21.5 6.5 18 12 18C17.5 18 21.5 21.5 21.5 27H2.5Z" fill="#f49541"/>
+</svg>`,
+
+ 'work': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M12 8V6C12 5 12.9 4 14 4H18C19.1 4 20 5 20 6V8" stroke="#d68338" stroke-width="2.5" stroke-linecap="round"/>
+ <rect x="3" y="8" width="26" height="18" rx="3" fill="#f49541"/>
+ <rect x="3" y="15" width="26" height="2.5" fill="#d68338"/>
+ <rect x="13.5" y="14" width="5" height="5" rx="1" fill="#ffe096"/>
+</svg>`,
+
+ 'game': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="2" y="7" width="28" height="18" rx="9" fill="#f49541"/>
+ <rect x="7" y="15" width="7" height="2.2" rx="1.1" fill="#ffe096"/>
+ <rect x="9.4" y="12.6" width="2.2" height="7" rx="1.1" fill="#ffe096"/>
+ <circle cx="21" cy="14" r="1.9" fill="#ffe096"/>
+ <circle cx="24.5" cy="18" r="1.9" fill="#ffe096"/>
+</svg>`,
+
+ 'media': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="3" y="5" width="26" height="22" rx="4" fill="#f49541"/>
+ <path d="M13 11.5L21 16L13 20.5V11.5Z" fill="#ffe096"/>
+</svg>`,
+
+ 'travel': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M14 12.4L2 19V22L14 18.5V12.4ZM18 12.4L30 19V22L18 18.5V12.4Z" fill="#d68338"/>
+ <path d="M14 23.5L11 26V28.5L16 27L21 28.5V26L18 23.5H14Z" fill="#d68338"/>
+ <path d="M16 3C17.1 3 18 3.9 18 5V24C18 25.5 17.1 27 16 27C14.9 27 14 25.5 14 24V5C14 3.9 14.9 3 16 3Z" fill="#f49541"/>
+</svg>`,
+
+ 'health': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M16 27C16 27 3 19.5 3 11.5C3 7.4 6.1 4.5 9.8 4.5C12.2 4.5 14.5 5.9 16 8C17.5 5.9 19.8 4.5 22.2 4.5C25.9 4.5 29 7.4 29 11.5C29 19.5 16 27 16 27Z" fill="#f49541"/>
+ <path d="M14.5 11H17.5V14H20.5V17H17.5V20H14.5V17H11.5V14H14.5V11Z" fill="#ffe096"/>
+</svg>`,
+
+ 'dev': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="2" y="5" width="28" height="22" rx="4" fill="#f49541"/>
+ <path d="M12 12L8 16.5L12 21" stroke="#ffe096" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
+ <path d="M20 12L24 16.5L20 21" stroke="#ffe096" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>`,
+} as const;
+
+export type BuiltinLogoKey = keyof typeof BuiltinLogoSvgs;
+
+/**
+ * Get the SVG string for a built-in logo key, or null when the key is unknown to this client
+ * (a newer version may have added it). Callers fall back to their placeholder icon.
+ */
+export function getBuiltinLogoSvg(key: string): string | null {
+ return Object.prototype.hasOwnProperty.call(BuiltinLogoSvgs, key) ? BuiltinLogoSvgs[key as BuiltinLogoKey] : null;
+}
+
+/**
+ * Get all built-in logo keys, in the order they are offered to the user.
+ */
+export function getAllBuiltinLogoKeys(): BuiltinLogoKey[] {
+ return Object.keys(BuiltinLogoSvgs) as BuiltinLogoKey[];
+}
diff --git a/core/models/src/icons/ItemTypeIcons.ts b/core/models/src/icons/ItemTypeIcons.ts
index 3723d3ded..085170482 100644
--- a/core/models/src/icons/ItemTypeIcons.ts
+++ b/core/models/src/icons/ItemTypeIcons.ts
@@ -1,29 +1,15 @@
-/**
- * Centralized icon definitions for item types.
- * This is the single source of truth for all item type icons across platforms.
- *
- * Generated platform-specific files:
- * - Swift (iOS): apps/mobile-app/ios/VaultModels/ItemTypeIcons.swift
- * - Kotlin (Android): apps/mobile-app/android/.../vaultstore/models/ItemTypeIcons.kt
- * - TypeScript: distributed via build.sh to browser-extension and mobile-app
- *
- * Color scheme used in icons:
- * - Primary orange: #f49541
- * - Dark orange: #d68338
- * - Light yellow: #ffe096
- * - Lighter yellow: #fbcb74
+/*
+ * <auto-generated />
+ * This file is auto-generated from core/models/src/icons/svg by core/models/scripts/generate-icons.cjs.
+ * Do not edit this file directly. Run 'node core/models/scripts/generate-icons.cjs' to regenerate.
*/
/**
- * SVG icon definitions for each item type and card brand.
- * All icons use a 32x32 viewBox for consistency.
+ * Centralized SVG icon definitions for item types.
+ * Single source of truth for all item type icons across platforms.
*/
export const ItemTypeIconSvgs = {
- /**
- * Placeholder key icon for Login/Alias items without a logo.
- * Traditional key design with outline style.
- */
- Placeholder: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ 'placeholder': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="10" cy="10" r="6.5" fill="none" stroke="#f49541" stroke-width="2.5"/>
<circle cx="10" cy="10" r="2.5" fill="none" stroke="#f49541" stroke-width="2"/>
<path d="M15 15L27 27" stroke="#f49541" stroke-width="2.5" stroke-linecap="round"/>
@@ -31,11 +17,7 @@ export const ItemTypeIconSvgs = {
<path d="M24 24L28 20" stroke="#f49541" stroke-width="2.5" stroke-linecap="round"/>
</svg>`,
- /**
- * Note/document icon with folded corner.
- * Used for Note item type.
- */
- Note: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ 'note': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8 4C6.9 4 6 4.9 6 6V26C6 27.1 6.9 28 8 28H24C25.1 28 26 27.1 26 26V11L19 4H8Z" fill="#f49541"/>
<path d="M19 4V11H26L19 4Z" fill="#d68338"/>
<rect x="10" y="14" width="12" height="1.5" rx="0.75" fill="#ffe096"/>
@@ -43,52 +25,34 @@ export const ItemTypeIconSvgs = {
<rect x="10" y="22" width="8" height="1.5" rx="0.75" fill="#ffe096"/>
</svg>`,
- /**
- * Generic credit card icon.
- * Used when card brand cannot be detected.
- */
- CreditCard: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ 'credit-card': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2" y="6" width="28" height="20" rx="3" fill="#f49541"/>
<rect x="2" y="11" width="28" height="4" fill="#d68338"/>
<rect x="5" y="18" width="8" height="2" rx="1" fill="#ffe096"/>
<rect x="5" y="22" width="5" height="1.5" rx="0.75" fill="#fbcb74"/>
</svg>`,
- /**
- * Visa card icon with brand styling.
- */
- Visa: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ 'visa': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2" y="6" width="28" height="20" rx="3" fill="#f49541"/>
- <path d="M13.5 13L11.5 19H10L8.5 14.5C8.5 14.5 8.35 14 8 14C7.65 14 7 13.8 7 13.8L7.05 13.5H9.5C9.85 13.5 10.15 13.75 10.2 14.1L10.8 17L12.5 13.5H13.5V13ZM15 19H14L15 13H16L15 19ZM20 13.5C20 13.5 19.4 13.3 18.7 13.3C17.35 13.3 16.4 14 16.4 15C16.4 15.8 17.1 16.2 17.65 16.5C18.2 16.8 18.4 17 18.4 17.2C18.4 17.5 18.05 17.7 17.6 17.7C17 17.7 16.5 17.5 16.5 17.5L16.3 18.7C16.3 18.7 16.9 19 17.7 19C19.2 19 20.1 18.2 20.1 17.1C20.1 15.7 18.4 15.6 18.4 15C18.4 14.7 18.7 14.5 19.15 14.5C19.6 14.5 20.1 14.7 20.1 14.7L20.3 13.5H20V13.5ZM24 19L23.1 13.5H22C21.7 13.5 21.45 13.7 21.35 13.95L19 19H20.5L20.8 18H22.7L22.9 19H24ZM21.2 17L22 14.5L22.45 17H21.2Z" fill="#ffe096"/>
+ <path d="M7 13L9 19L11 13M13.2 13V19M18.6 13.7C18.1 13.2 17.4 13 16.7 13C15.7 13 15 13.6 15 14.4C15 16.2 18.8 15.8 18.8 17.6C18.8 18.4 18 19 17 19C16.2 19 15.4 18.7 14.9 18.2M20.5 19L22.75 13L25 19M21.3 17H24.2" stroke="#ffe096" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
</svg>`,
- /**
- * Mastercard icon with overlapping circles.
- */
- Mastercard: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ 'mastercard': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2" y="6" width="28" height="20" rx="3" fill="#f49541"/>
- <circle cx="13" cy="16" r="5" fill="#d68338"/>
- <circle cx="19" cy="16" r="5" fill="#ffe096"/>
- <path d="M16 12.5C17.1 13.4 17.8 14.6 17.8 16C17.8 17.4 17.1 18.6 16 19.5C14.9 18.6 14.2 17.4 14.2 16C14.2 14.6 14.9 13.4 16 12.5Z" fill="#fbcb74"/>
+ <path d="M16 11.75C17.35 12.76 18.2 14.28 18.2 16C18.2 17.72 17.35 19.24 16 20.25C14.65 19.24 13.8 17.72 13.8 16C13.8 14.28 14.65 12.76 16 11.75Z" fill="#fbcb74"/>
+ <circle cx="12.5" cy="16" r="5" stroke="#ffe096" stroke-width="1.6"/>
+ <circle cx="19.5" cy="16" r="5" stroke="#ffe096" stroke-width="1.6"/>
</svg>`,
- /**
- * American Express card icon.
- */
- Amex: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ 'amex': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2" y="6" width="28" height="20" rx="3" fill="#f49541"/>
- <text x="16" y="18" text-anchor="middle" fill="#ffe096" font-size="8" font-weight="bold" font-family="Arial, sans-serif">AMEX</text>
+ <path d="M7 19L8.8 13L10.6 19M7.6 17H10M12 19V13L13.8 16.5L15.6 13V19M20.4 13H17.4V19H20.4M17.4 16H19.8M22 13L25.2 19M25.2 13L22 19" stroke="#ffe096" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>`,
- /**
- * Discover card icon with orange circle logo.
- */
- Discover: `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ 'discover': `<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2" y="6" width="28" height="20" rx="3" fill="#f49541"/>
- <circle cx="20" cy="16" r="4" fill="#ffe096"/>
- <path d="M7 14H8.5C9.3 14 10 14.7 10 15.5C10 16.3 9.3 17 8.5 17H7V14Z" fill="#ffe096"/>
- <rect x="11" y="14" width="1.5" height="3" fill="#ffe096"/>
- <path d="M14 15C14 14.4 14.4 14 15 14C15.3 14 15.5 14.1 15.7 14.3L16.5 13.5C16.1 13.2 15.6 13 15 13C13.9 13 13 13.9 13 15C13 16.1 13.9 17 15 17C15.6 17 16.1 16.8 16.5 16.5L15.7 15.7C15.5 15.9 15.3 16 15 16C14.4 16 14 15.6 14 15Z" fill="#ffe096"/>
+ <path d="M6 13.5V18.5H7.2C8.6 18.5 9.5 17.5 9.5 16C9.5 14.5 8.6 13.5 7.2 13.5H6ZM11.4 13.5V18.5M15.5 14C15.1 13.7 14.6 13.5 14.1 13.5C13.4 13.5 12.9 13.9 12.9 14.5C12.9 15.8 15.7 15.4 15.7 16.9C15.7 17.5 15.1 18.5 14.1 18.5C13.6 18.5 13.1 18.3 12.7 18" stroke="#ffe096" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
+ <circle cx="22" cy="16" r="4" fill="#ffe096"/>
</svg>`,
} as const;
@@ -102,8 +66,8 @@ export function getItemTypeIconSvg(key: ItemTypeIconKey): string {
}
/**
- * Get all available icon keys.
+ * Get all item type icon keys.
*/
-export function getAllIconKeys(): ItemTypeIconKey[] {
+export function getAllItemTypeIconKeys(): ItemTypeIconKey[] {
return Object.keys(ItemTypeIconSvgs) as ItemTypeIconKey[];
}
diff --git a/core/models/src/icons/README.md b/core/models/src/icons/README.md
new file mode 100644
index 000000000..5e822cc8d
--- /dev/null
+++ b/core/models/src/icons/README.md
@@ -0,0 +1,16 @@
+# Icons
+
+All icons of the AliasVault apps, one source of truth for every platform.
+
+- `svg/ui/`: UI icons, drawn in `currentColor` so they take the text color.
+- `svg/item/`: item type icons (placeholder, note, card brands).
+- `svg/builtin-logo/`: built-in logos a user can pick for an item. The PascalCase form of the file name (`shopping.svg` is `Shopping`) is stored in the vault, never rename one.
+- `sources.json`: where each icon comes from. Every icon needs an entry.
+
+Run `node core/models/scripts/generate-icons.cjs` after editing an icon to make it push to all platforms.
+
+## Sources
+
+See `sources.json` for the full list of the source of each icon.
+
+Licenses that apply: heroicons, Feather, Lucide and Zondicons are MIT or ISC licensed, Material Symbols is Apache 2.0.
diff --git a/core/models/src/icons/UiIcons.ts b/core/models/src/icons/UiIcons.ts
new file mode 100644
index 000000000..c534b54ff
--- /dev/null
+++ b/core/models/src/icons/UiIcons.ts
@@ -0,0 +1,112 @@
+/*
+ * <auto-generated />
+ * This file is auto-generated from core/models/src/icons/svg by core/models/scripts/generate-icons.cjs.
+ * Do not edit this file directly. Run 'node core/models/scripts/generate-icons.cjs' to regenerate.
+ */
+
+/**
+ * A shape element of a UI icon.
+ */
+export type UiIconTag = 'path' | 'circle' | 'rect' | 'line' | 'polyline' | 'polygon' | 'ellipse';
+
+/**
+ * A shape of a UI icon with its attributes, keyed by React prop name (camelCase).
+ */
+export type UiIconNode = readonly [tag: UiIconTag, attrs: Readonly<Record<string, string>>];
+
+/**
+ * A UI icon: the root <svg> attributes (camelCase) and its shapes.
+ */
+export type UiIconDefinition = {
+ readonly viewBox: string;
+ readonly attrs: Readonly<Record<string, string>>;
+ readonly nodes: readonly UiIconNode[];
+};
+
+/**
+ * The UI icons shared by all apps, keyed by name.
+ */
+export const UiIcons = {
+ 'archive': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4' }]] },
+ 'arrow-circle-down': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M15 13l-3 3m0 0l-3-3m3 3V8m0 13a9 9 0 110-18 9 9 0 010 18z' }]] },
+ 'arrow-left': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M10 19l-7-7m0 0l7-7m-7 7h18' }]] },
+ 'arrow-narrow-down': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M16 17l-4 4m0 0l-4-4m4 4V3' }]] },
+ 'arrow-narrow-up': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M8 7l4-4m0 0l4 4m-4-4v18' }]] },
+ 'arrow-right': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M14 5l7 7m0 0l-7 7m7-7H3' }]] },
+ 'arrows-expand': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4' }]] },
+ 'backspace': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M12 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2M3 12l6.414 6.414a2 2 0 001.414.586H19a2 2 0 002-2V7a2 2 0 00-2-2h-8.172a2 2 0 00-1.414.586L3 12z' }]] },
+ 'chart-bar': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z' }]] },
+ 'check': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M5 13l4 4L19 7' }]] },
+ 'check-circle': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z' }]] },
+ 'chevron-down': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M19 9l-7 7-7-7' }]] },
+ 'chevron-left': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M15 19l-7-7 7-7' }]] },
+ 'chevron-right': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M9 5l7 7-7 7' }]] },
+ 'clipboard': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2' }]] },
+ 'clipboard-list': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01' }]] },
+ 'clock': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z' }]] },
+ 'cloud-upload': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12' }]] },
+ 'cog': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z' }], ['path', { d: 'M15 12a3 3 0 11-6 0 3 3 0 016 0z' }]] },
+ 'collection': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10' }]] },
+ 'color-swatch': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01' }]] },
+ 'credit-card': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z' }]] },
+ 'database': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4' }]] },
+ 'desktop-computer': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z' }]] },
+ 'device-mobile': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z' }]] },
+ 'document-duplicate': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2' }]] },
+ 'document-text': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z' }]] },
+ 'dots-vertical-narrow': { viewBox: '0 0 12 24', attrs: { fill: 'currentColor' }, nodes: [['circle', { cx: '6', cy: '5', r: '2' }], ['circle', { cx: '6', cy: '12', r: '2' }], ['circle', { cx: '6', cy: '19', r: '2' }]] },
+ 'download': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4' }]] },
+ 'duplicate': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z' }]] },
+ 'exclamation': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z' }]] },
+ 'external-link': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14' }]] },
+ 'eye': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M15 12a3 3 0 11-6 0 3 3 0 016 0z' }], ['path', { d: 'M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z' }]] },
+ 'eye-off': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21' }]] },
+ 'folder': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z' }]] },
+ 'folder-check': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z' }], ['path', { d: 'M9 14l2 2 4-4' }]] },
+ 'folder-filled': { viewBox: '0 0 24 24', attrs: { fill: 'currentColor' }, nodes: [['path', { d: 'M10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2z' }]] },
+ 'globe-alt': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9' }]] },
+ 'grip-vertical': { viewBox: '0 0 20 20', attrs: { fill: 'currentColor' }, nodes: [['path', { d: 'M7 4a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm0 6a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm-1.5 7.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM16 4a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm-1.5 7.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM16 16a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z' }]] },
+ 'hashtag': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M7 20l4-16m2 16l4-16M6 9h14M4 15h14' }]] },
+ 'home': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6' }]] },
+ 'information-circle': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z' }]] },
+ 'key': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z' }]] },
+ 'keyboard': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M5 7h14a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2V9a2 2 0 012-2zM7 11h.01M11 11h.01M15 11h.01M8 15h8' }]] },
+ 'lock-closed': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z' }]] },
+ 'logout': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1' }]] },
+ 'mail': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z' }]] },
+ 'menu': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M4 6h16M4 12h16M4 18h16' }]] },
+ 'menu-alt-3': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M4 6h16M4 12h16m-7 6h7' }]] },
+ 'moon': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z' }]] },
+ 'paper-clip': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13' }]] },
+ 'pencil': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z' }]] },
+ 'pencil-alt': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z' }]] },
+ 'pin-material': { viewBox: '0 -960 960 960', attrs: { fill: 'currentColor' }, nodes: [['path', { d: 'M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm100-200h46v-240h-36l-70 50 24 36 36-26v180Zm124 0h156v-40h-94l-2-2q21-20 34.5-34t21.5-22q18-18 27-36t9-38q0-29-22-48.5T458-600q-26 0-47 15t-29 39l40 16q5-13 14.5-20.5T458-558q15 0 24.5 8t9.5 20q0 11-4 20.5T470-486l-32 32-54 54v40Zm296 0q36 0 58-20t22-52q0-18-10-32t-28-22v-2q14-8 22-20.5t8-29.5q0-27-21-44.5T678-600q-25 0-46.5 14.5T604-550l40 16q4-12 13-19t21-7q13 0 21.5 7.5T708-534q0 14-10 22t-26 8h-18v40h20q20 0 31 8t11 22q0 13-11 22.5t-25 9.5q-17 0-26-7.5T638-436l-40 16q7 29 28.5 44.5T680-360ZM160-240h640v-480H160v480Zm0 0v-480 480Z' }]] },
+ 'plus': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M12 4v16m8-8H4' }]] },
+ 'plus-sm': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M12 6v6m0 0v6m0-6h6m-6 0H6' }]] },
+ 'qrcode': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z' }]] },
+ 'question-mark-circle': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z' }]] },
+ 'refresh': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15' }]] },
+ 'reply': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6' }]] },
+ 'search': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' }]] },
+ 'shield-check': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z' }]] },
+ 'shield-exclamation': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M20.618 5.984A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016zM12 9v2m0 4h.01' }]] },
+ 'sort-descending': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M3 4h13M3 8h9m-9 4h9m5-4v12m0 0l-4-4m4 4l4-4' }]] },
+ 'spinner': { viewBox: '0 0 24 24', attrs: { fill: 'none' }, nodes: [['circle', { opacity: '0.25', cx: '12', cy: '12', r: '10', stroke: 'currentColor', strokeWidth: '4' }], ['path', { opacity: '0.75', fill: 'currentColor', d: 'M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z' }]] },
+ 'spinner-flowbite': { viewBox: '0 0 100 101', attrs: { fill: 'none' }, nodes: [['path', { fill: 'currentColor', d: 'M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z' }], ['path', { fill: 'currentFill', d: 'M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z' }]] },
+ 'square-check': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['rect', { x: '3', y: '3', width: '18', height: '18', rx: '2', ry: '2' }], ['polyline', { points: '7 12 10 15 17 8' }]] },
+ 'square-feather': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['rect', { x: '3', y: '3', width: '18', height: '18', rx: '2', ry: '2' }]] },
+ 'status-offline': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M18.364 5.636a9 9 0 010 12.728m0 0l-2.829-2.829m2.829 2.829L21 21M15.536 8.464a5 5 0 010 7.072m0 0l-2.829-2.829m-4.243 2.829a4.978 4.978 0 01-1.414-2.83m-1.414 5.658a9 9 0 01-2.167-9.238m7.824 2.167a1 1 0 111.414 1.414m-1.414-1.414L3 3m8.293 8.293l1.414 1.414' }]] },
+ 'sun': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z' }]] },
+ 'switch-horizontal': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4' }]] },
+ 'translate': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129' }]] },
+ 'trash': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16' }]] },
+ 'upload': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12' }]] },
+ 'user': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z' }]] },
+ 'user-group': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z' }]] },
+ 'users': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z' }]] },
+ 'view-grid-add': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M17 14v6m-3-3h6M6 10h2a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2zm10 0h2a2 2 0 002-2V6a2 2 0 00-2-2h-2a2 2 0 00-2 2v2a2 2 0 002 2zM6 20h2a2 2 0 002-2v-2a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2z' }]] },
+ 'x': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M6 18L18 6M6 6l12 12' }]] },
+ 'x-circle': { viewBox: '0 0 24 24', attrs: { fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, nodes: [['path', { d: 'M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z' }]] },
+} as const satisfies Record<string, UiIconDefinition>;
+
+export type UiIconName = keyof typeof UiIcons;
diff --git a/core/models/src/icons/index.ts b/core/models/src/icons/index.ts
index 52671bc6c..56398891f 100644
--- a/core/models/src/icons/index.ts
+++ b/core/models/src/icons/index.ts
@@ -1,12 +1,11 @@
/**
- * Icon definitions for item types.
- * Re-exports all icon-related modules.
+ * The icon catalogs shared by all apps, generated from the SVG sources in ./svg (see README.md).
*/
export {
ItemTypeIconSvgs,
getItemTypeIconSvg,
- getAllIconKeys,
+ getAllItemTypeIconKeys,
} from './ItemTypeIcons';
export type {
@@ -14,11 +13,33 @@ export type {
} from './ItemTypeIcons';
export {
- AppIconSvgs,
- getAppIconSvg,
- getAllAppIconKeys,
-} from './AppIcons';
+ BuiltinLogoSvgs,
+ getBuiltinLogoSvg,
+ getAllBuiltinLogoKeys,
+} from './BuiltinLogos';
export type {
- AppIconKey,
-} from './AppIcons';
+ BuiltinLogoKey,
+} from './BuiltinLogos';
+
+export {
+ UiIcons,
+} from './UiIcons';
+
+export type {
+ UiIconDefinition,
+ UiIconName,
+ UiIconNode,
+ UiIconTag,
+} from './UiIcons';
+
+export {
+ createUiIconElement,
+ uiIconSvg,
+} from './render';
+
+export type {
+ SvgDocument,
+ SvgElementLike,
+ UiIconAttributes,
+} from './render';
diff --git a/core/models/src/icons/render.ts b/core/models/src/icons/render.ts
new file mode 100644
index 000000000..6b998468a
--- /dev/null
+++ b/core/models/src/icons/render.ts
@@ -0,0 +1,82 @@
+import { UiIcons, type UiIconName } from './UiIcons';
+
+const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
+
+/**
+ * Extra root attributes for a rendered icon, keyed by SVG attribute name (class, width, stroke-width, ...).
+ */
+export type UiIconAttributes = Readonly<Record<string, string | number>>;
+
+/**
+ * The parts of a DOM Document needed to build an icon element, so this module does not depend on the DOM typings.
+ */
+export type SvgDocument = {
+ createElementNS(namespace: string, tag: string): SvgElementLike;
+};
+
+/**
+ * The parts of a DOM Element needed to build an icon element.
+ */
+export type SvgElementLike = {
+ setAttribute(name: string, value: string): void;
+ appendChild(child: SvgElementLike): unknown;
+};
+
+/**
+ * Convert a camelCase prop name to its SVG attribute name (strokeWidth becomes stroke-width).
+ */
+function toAttributeName(name: string): string {
+ return name.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`);
+}
+
+/**
+ * Escape a value for use inside a double-quoted attribute.
+ */
+function escapeAttribute(value: string | number): string {
+ return String(value).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/</g, '&lt;');
+}
+
+/**
+ * The root attributes of an icon merged with the caller's, as SVG attribute names.
+ */
+function rootAttributes(name: UiIconName, attrs: UiIconAttributes): [string, string | number][] {
+ const icon = UiIcons[name];
+ const merged: Record<string, string | number> = { viewBox: icon.viewBox };
+ if (!('aria-label' in attrs)) {
+ merged['aria-hidden'] = 'true';
+ }
+ for (const [key, value] of Object.entries(icon.attrs)) {
+ merged[toAttributeName(key)] = value;
+ }
+ return Object.entries({ ...merged, ...attrs });
+}
+
+/**
+ * Render a UI icon as SVG markup, for code that builds HTML strings (content scripts).
+ */
+export function uiIconSvg(name: UiIconName, attrs: UiIconAttributes = {}): string {
+ const root = rootAttributes(name, attrs).map(([key, value]) => ` ${key}="${escapeAttribute(value)}"`).join('');
+ const body = UiIcons[name].nodes.map(([tag, nodeAttrs]) => {
+ const props = Object.entries(nodeAttrs).map(([key, value]) => ` ${toAttributeName(key)}="${escapeAttribute(value)}"`).join('');
+ return `<${tag}${props}/>`;
+ }).join('');
+ return `<svg xmlns="${SVG_NAMESPACE}"${root}>${body}</svg>`;
+}
+
+/**
+ * Build a UI icon as a DOM element, for code that creates elements directly (content scripts).
+ */
+export function createUiIconElement<T = SvgElementLike>(doc: SvgDocument, name: UiIconName, attrs: UiIconAttributes = {}): T {
+ const svg = doc.createElementNS(SVG_NAMESPACE, 'svg');
+ for (const [key, value] of rootAttributes(name, attrs)) {
+ svg.setAttribute(key, String(value));
+ }
+ for (const [tag, nodeAttrs] of UiIcons[name].nodes) {
+ const node = doc.createElementNS(SVG_NAMESPACE, tag);
+ for (const [key, value] of Object.entries(nodeAttrs)) {
+ node.setAttribute(toAttributeName(key), value);
+ }
+ svg.appendChild(node);
+ }
+ return svg as unknown as T;
+}
diff --git a/core/models/src/icons/sources.json b/core/models/src/icons/sources.json
new file mode 100644
index 000000000..d7c453bec
--- /dev/null
+++ b/core/models/src/icons/sources.json
@@ -0,0 +1,380 @@
+{
+ "ui": {
+ "archive": {
+ "source": "[email protected]",
+ "icon": "outline/archive"
+ },
+ "arrow-circle-down": {
+ "source": "[email protected]",
+ "icon": "outline/arrow-circle-down"
+ },
+ "arrow-left": {
+ "source": "[email protected]",
+ "icon": "outline/arrow-left"
+ },
+ "arrow-narrow-down": {
+ "source": "[email protected]",
+ "icon": "outline/arrow-narrow-down"
+ },
+ "arrow-narrow-up": {
+ "source": "[email protected]",
+ "icon": "outline/arrow-narrow-up"
+ },
+ "arrow-right": {
+ "source": "[email protected]",
+ "icon": "outline/arrow-right"
+ },
+ "arrows-expand": {
+ "source": "[email protected]",
+ "icon": "outline/arrows-expand"
+ },
+ "backspace": {
+ "source": "[email protected]",
+ "icon": "outline/backspace"
+ },
+ "chart-bar": {
+ "source": "[email protected]",
+ "icon": "outline/chart-bar"
+ },
+ "check": {
+ "source": "[email protected]",
+ "icon": "outline/check"
+ },
+ "check-circle": {
+ "source": "[email protected]",
+ "icon": "outline/check-circle"
+ },
+ "chevron-down": {
+ "source": "[email protected]",
+ "icon": "outline/chevron-down"
+ },
+ "chevron-left": {
+ "source": "[email protected]",
+ "icon": "outline/chevron-left"
+ },
+ "chevron-right": {
+ "source": "[email protected]",
+ "icon": "outline/chevron-right"
+ },
+ "clipboard": {
+ "source": "[email protected]",
+ "icon": "outline/clipboard"
+ },
+ "clipboard-list": {
+ "source": "[email protected]",
+ "icon": "outline/clipboard-list"
+ },
+ "clock": {
+ "source": "[email protected]",
+ "icon": "outline/clock"
+ },
+ "cloud-upload": {
+ "source": "[email protected]",
+ "icon": "outline/cloud-upload"
+ },
+ "cog": {
+ "source": "[email protected]",
+ "icon": "outline/cog"
+ },
+ "collection": {
+ "source": "[email protected]",
+ "icon": "outline/collection"
+ },
+ "color-swatch": {
+ "source": "[email protected]",
+ "icon": "outline/color-swatch"
+ },
+ "credit-card": {
+ "source": "[email protected]",
+ "icon": "outline/credit-card"
+ },
+ "database": {
+ "source": "[email protected]",
+ "icon": "outline/database"
+ },
+ "desktop-computer": {
+ "source": "[email protected]",
+ "icon": "outline/desktop-computer"
+ },
+ "device-mobile": {
+ "source": "[email protected]",
+ "icon": "outline/device-mobile"
+ },
+ "document-duplicate": {
+ "source": "[email protected]",
+ "icon": "outline/document-duplicate"
+ },
+ "document-text": {
+ "source": "[email protected]",
+ "icon": "outline/document-text"
+ },
+ "dots-vertical-narrow": {
+ "source": "custom",
+ "note": "Three vertical dots on a 12x24 grid, for narrow overflow menu buttons."
+ },
+ "download": {
+ "source": "[email protected]",
+ "icon": "outline/download"
+ },
+ "duplicate": {
+ "source": "[email protected]",
+ "icon": "outline/duplicate"
+ },
+ "exclamation": {
+ "source": "[email protected]",
+ "icon": "outline/exclamation"
+ },
+ "external-link": {
+ "source": "[email protected]",
+ "icon": "outline/external-link"
+ },
+ "eye": {
+ "source": "[email protected]",
+ "icon": "outline/eye"
+ },
+ "eye-off": {
+ "source": "[email protected]",
+ "icon": "outline/eye-off"
+ },
+ "folder": {
+ "source": "[email protected]",
+ "icon": "outline/folder"
+ },
+ "folder-check": {
+ "source": "custom",
+ "note": "heroicons v1 outline folder with a check mark added."
+ },
+ "folder-filled": {
+ "source": "custom",
+ "note": "Filled folder, the Material Icons folder outline redrawn with arcs."
+ },
+ "globe-alt": {
+ "source": "[email protected]",
+ "icon": "outline/globe-alt"
+ },
+ "grip-vertical": {
+ "source": "custom",
+ "note": "Drag handle of six dots on a 20x20 grid."
+ },
+ "hashtag": {
+ "source": "[email protected]",
+ "icon": "outline/hashtag"
+ },
+ "home": {
+ "source": "[email protected]",
+ "icon": "outline/home"
+ },
+ "information-circle": {
+ "source": "[email protected]",
+ "icon": "outline/information-circle"
+ },
+ "key": {
+ "source": "[email protected]",
+ "icon": "outline/key"
+ },
+ "keyboard": {
+ "source": "custom",
+ "note": "Keyboard outline in the heroicons v1 outline style."
+ },
+ "lock-closed": {
+ "source": "[email protected]",
+ "icon": "outline/lock-closed"
+ },
+ "logout": {
+ "source": "[email protected]",
+ "icon": "outline/logout"
+ },
+ "mail": {
+ "source": "[email protected]",
+ "icon": "outline/mail"
+ },
+ "menu": {
+ "source": "[email protected]",
+ "icon": "outline/menu"
+ },
+ "menu-alt-3": {
+ "source": "[email protected]",
+ "icon": "outline/menu-alt-3"
+ },
+ "moon": {
+ "source": "[email protected]",
+ "icon": "outline/moon"
+ },
+ "paper-clip": {
+ "source": "[email protected]",
+ "icon": "outline/paper-clip"
+ },
+ "pencil": {
+ "source": "[email protected]",
+ "icon": "outline/pencil"
+ },
+ "pencil-alt": {
+ "source": "[email protected]",
+ "icon": "outline/pencil-alt"
+ },
+ "pin-material": {
+ "source": "material-symbols",
+ "icon": "pin/materialsymbolsoutlined/pin_24px"
+ },
+ "plus": {
+ "source": "[email protected]",
+ "icon": "outline/plus"
+ },
+ "plus-sm": {
+ "source": "[email protected]",
+ "icon": "outline/plus-sm"
+ },
+ "qrcode": {
+ "source": "[email protected]",
+ "icon": "outline/qrcode"
+ },
+ "question-mark-circle": {
+ "source": "[email protected]",
+ "icon": "outline/question-mark-circle"
+ },
+ "refresh": {
+ "source": "[email protected]",
+ "icon": "outline/refresh"
+ },
+ "reply": {
+ "source": "[email protected]",
+ "icon": "outline/reply"
+ },
+ "search": {
+ "source": "[email protected]",
+ "icon": "outline/search"
+ },
+ "shield-check": {
+ "source": "[email protected]",
+ "icon": "outline/shield-check"
+ },
+ "shield-exclamation": {
+ "source": "[email protected]",
+ "icon": "outline/shield-exclamation"
+ },
+ "sort-descending": {
+ "source": "[email protected]",
+ "icon": "outline/sort-descending"
+ },
+ "spinner": {
+ "source": "custom",
+ "note": "Loading spinner from the Tailwind CSS docs (animate-spin example); spin it with the animate-spin class."
+ },
+ "spinner-flowbite": {
+ "source": "custom",
+ "note": "Loading spinner from the Flowbite docs; the track takes the text color, the arc the fill-* class (currentFill)."
+ },
+ "square-check": {
+ "source": "custom",
+ "note": "feather square with a check mark added, the checked state of square-feather."
+ },
+ "square-feather": {
+ "source": "[email protected]",
+ "icon": "square"
+ },
+ "status-offline": {
+ "source": "[email protected]",
+ "icon": "outline/status-offline"
+ },
+ "sun": {
+ "source": "[email protected]",
+ "icon": "outline/sun"
+ },
+ "switch-horizontal": {
+ "source": "[email protected]",
+ "icon": "outline/switch-horizontal"
+ },
+ "translate": {
+ "source": "[email protected]",
+ "icon": "outline/translate"
+ },
+ "trash": {
+ "source": "[email protected]",
+ "icon": "outline/trash"
+ },
+ "upload": {
+ "source": "[email protected]",
+ "icon": "outline/upload"
+ },
+ "user": {
+ "source": "[email protected]",
+ "icon": "outline/user"
+ },
+ "user-group": {
+ "source": "[email protected]",
+ "icon": "outline/user-group"
+ },
+ "users": {
+ "source": "[email protected]",
+ "icon": "outline/users"
+ },
+ "view-grid-add": {
+ "source": "[email protected]",
+ "icon": "outline/view-grid-add"
+ },
+ "x": {
+ "source": "[email protected]",
+ "icon": "outline/x"
+ },
+ "x-circle": {
+ "source": "[email protected]",
+ "icon": "outline/x-circle"
+ }
+ },
+ "item": {
+ "placeholder": {
+ "source": "custom",
+ "note": "Shown for login and alias items without a logo."
+ },
+ "note": {
+ "source": "custom"
+ },
+ "credit-card": {
+ "source": "custom"
+ },
+ "visa": {
+ "source": "custom"
+ },
+ "mastercard": {
+ "source": "custom"
+ },
+ "amex": {
+ "source": "custom"
+ },
+ "discover": {
+ "source": "custom"
+ }
+ },
+ "builtin-logo": {
+ "shopping": {
+ "source": "custom"
+ },
+ "bank": {
+ "source": "custom"
+ },
+ "mail": {
+ "source": "custom"
+ },
+ "social": {
+ "source": "custom"
+ },
+ "work": {
+ "source": "custom"
+ },
+ "game": {
+ "source": "custom"
+ },
+ "media": {
+ "source": "custom"
+ },
+ "travel": {
+ "source": "custom"
+ },
+ "health": {
+ "source": "custom"
+ },
+ "dev": {
+ "source": "custom"
+ }
+ }
+}
diff --git a/core/models/src/icons/svg/builtin-logo/bank.svg b/core/models/src/icons/svg/builtin-logo/bank.svg
new file mode 100644
index 000000000..74e1bede0
--- /dev/null
+++ b/core/models/src/icons/svg/builtin-logo/bank.svg
@@ -0,0 +1,7 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M16 4L29 11H3L16 4Z" fill="#f49541"/>
+ <rect x="6" y="13" width="3" height="11" fill="#f49541"/>
+ <rect x="14.5" y="13" width="3" height="11" fill="#f49541"/>
+ <rect x="23" y="13" width="3" height="11" fill="#f49541"/>
+ <rect x="3" y="25" width="26" height="3" rx="1" fill="#d68338"/>
+</svg>
diff --git a/core/models/src/icons/svg/builtin-logo/dev.svg b/core/models/src/icons/svg/builtin-logo/dev.svg
new file mode 100644
index 000000000..ab0b0a21d
--- /dev/null
+++ b/core/models/src/icons/svg/builtin-logo/dev.svg
@@ -0,0 +1,5 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="2" y="5" width="28" height="22" rx="4" fill="#f49541"/>
+ <path d="M12 12L8 16.5L12 21" stroke="#ffe096" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
+ <path d="M20 12L24 16.5L20 21" stroke="#ffe096" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>
diff --git a/core/models/src/icons/svg/builtin-logo/game.svg b/core/models/src/icons/svg/builtin-logo/game.svg
new file mode 100644
index 000000000..1348b3f38
--- /dev/null
+++ b/core/models/src/icons/svg/builtin-logo/game.svg
@@ -0,0 +1,7 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="2" y="7" width="28" height="18" rx="9" fill="#f49541"/>
+ <rect x="7" y="15" width="7" height="2.2" rx="1.1" fill="#ffe096"/>
+ <rect x="9.4" y="12.6" width="2.2" height="7" rx="1.1" fill="#ffe096"/>
+ <circle cx="21" cy="14" r="1.9" fill="#ffe096"/>
+ <circle cx="24.5" cy="18" r="1.9" fill="#ffe096"/>
+</svg>
diff --git a/core/models/src/icons/svg/builtin-logo/health.svg b/core/models/src/icons/svg/builtin-logo/health.svg
new file mode 100644
index 000000000..51aae61c7
--- /dev/null
+++ b/core/models/src/icons/svg/builtin-logo/health.svg
@@ -0,0 +1,4 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M16 27C16 27 3 19.5 3 11.5C3 7.4 6.1 4.5 9.8 4.5C12.2 4.5 14.5 5.9 16 8C17.5 5.9 19.8 4.5 22.2 4.5C25.9 4.5 29 7.4 29 11.5C29 19.5 16 27 16 27Z" fill="#f49541"/>
+ <path d="M14.5 11H17.5V14H20.5V17H17.5V20H14.5V17H11.5V14H14.5V11Z" fill="#ffe096"/>
+</svg>
diff --git a/core/models/src/icons/svg/builtin-logo/mail.svg b/core/models/src/icons/svg/builtin-logo/mail.svg
new file mode 100644
index 000000000..fbb55b7fd
--- /dev/null
+++ b/core/models/src/icons/svg/builtin-logo/mail.svg
@@ -0,0 +1,4 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="3" y="7" width="26" height="18" rx="3" fill="#f49541"/>
+ <path d="M4 10L16 18L28 10" stroke="#ffe096" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>
diff --git a/core/models/src/icons/svg/builtin-logo/media.svg b/core/models/src/icons/svg/builtin-logo/media.svg
new file mode 100644
index 000000000..db58b3f71
--- /dev/null
+++ b/core/models/src/icons/svg/builtin-logo/media.svg
@@ -0,0 +1,4 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="3" y="5" width="26" height="22" rx="4" fill="#f49541"/>
+ <path d="M13 11.5L21 16L13 20.5V11.5Z" fill="#ffe096"/>
+</svg>
diff --git a/core/models/src/icons/svg/builtin-logo/shopping.svg b/core/models/src/icons/svg/builtin-logo/shopping.svg
new file mode 100644
index 000000000..6c8b7334a
--- /dev/null
+++ b/core/models/src/icons/svg/builtin-logo/shopping.svg
@@ -0,0 +1,6 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M11 12.5V9C11 6.24 13.24 4 16 4C18.76 4 21 6.24 21 9V12.5" stroke="#d68338" stroke-width="2.5" stroke-linecap="round"/>
+ <path d="M6.3 10H25.7L27.2 26.2C27.31 27.37 26.39 28.4 25.21 28.4H6.79C5.61 28.4 4.69 27.37 4.8 26.2L6.3 10Z" fill="#f49541"/>
+ <circle cx="11" cy="14" r="1.5" fill="#ffe096"/>
+ <circle cx="21" cy="14" r="1.5" fill="#ffe096"/>
+</svg>
diff --git a/core/models/src/icons/svg/builtin-logo/social.svg b/core/models/src/icons/svg/builtin-logo/social.svg
new file mode 100644
index 000000000..c726c7b24
--- /dev/null
+++ b/core/models/src/icons/svg/builtin-logo/social.svg
@@ -0,0 +1,6 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <circle cx="22" cy="11" r="4" fill="#d68338"/>
+ <path d="M18 27C18 21.5 20.5 18.5 23.5 18.5C26.5 18.5 29.5 21 29.5 27H18Z" fill="#d68338"/>
+ <circle cx="12" cy="11" r="5" fill="#f49541"/>
+ <path d="M2.5 27C2.5 21.5 6.5 18 12 18C17.5 18 21.5 21.5 21.5 27H2.5Z" fill="#f49541"/>
+</svg>
diff --git a/core/models/src/icons/svg/builtin-logo/travel.svg b/core/models/src/icons/svg/builtin-logo/travel.svg
new file mode 100644
index 000000000..ce3445c92
--- /dev/null
+++ b/core/models/src/icons/svg/builtin-logo/travel.svg
@@ -0,0 +1,5 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M14 12.4L2 19V22L14 18.5V12.4ZM18 12.4L30 19V22L18 18.5V12.4Z" fill="#d68338"/>
+ <path d="M14 23.5L11 26V28.5L16 27L21 28.5V26L18 23.5H14Z" fill="#d68338"/>
+ <path d="M16 3C17.1 3 18 3.9 18 5V24C18 25.5 17.1 27 16 27C14.9 27 14 25.5 14 24V5C14 3.9 14.9 3 16 3Z" fill="#f49541"/>
+</svg>
diff --git a/core/models/src/icons/svg/builtin-logo/work.svg b/core/models/src/icons/svg/builtin-logo/work.svg
new file mode 100644
index 000000000..202e10743
--- /dev/null
+++ b/core/models/src/icons/svg/builtin-logo/work.svg
@@ -0,0 +1,6 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M12 8V6C12 5 12.9 4 14 4H18C19.1 4 20 5 20 6V8" stroke="#d68338" stroke-width="2.5" stroke-linecap="round"/>
+ <rect x="3" y="8" width="26" height="18" rx="3" fill="#f49541"/>
+ <rect x="3" y="15" width="26" height="2.5" fill="#d68338"/>
+ <rect x="13.5" y="14" width="5" height="5" rx="1" fill="#ffe096"/>
+</svg>
diff --git a/core/models/src/icons/svg/item/amex.svg b/core/models/src/icons/svg/item/amex.svg
new file mode 100644
index 000000000..878bf93c9
--- /dev/null
+++ b/core/models/src/icons/svg/item/amex.svg
@@ -0,0 +1,4 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="2" y="6" width="28" height="20" rx="3" fill="#f49541"/>
+ <path d="M7 19L8.8 13L10.6 19M7.6 17H10M12 19V13L13.8 16.5L15.6 13V19M20.4 13H17.4V19H20.4M17.4 16H19.8M22 13L25.2 19M25.2 13L22 19" stroke="#ffe096" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>
diff --git a/core/models/src/icons/svg/item/credit-card.svg b/core/models/src/icons/svg/item/credit-card.svg
new file mode 100644
index 000000000..d72272ca9
--- /dev/null
+++ b/core/models/src/icons/svg/item/credit-card.svg
@@ -0,0 +1,6 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="2" y="6" width="28" height="20" rx="3" fill="#f49541"/>
+ <rect x="2" y="11" width="28" height="4" fill="#d68338"/>
+ <rect x="5" y="18" width="8" height="2" rx="1" fill="#ffe096"/>
+ <rect x="5" y="22" width="5" height="1.5" rx="0.75" fill="#fbcb74"/>
+</svg>
diff --git a/core/models/src/icons/svg/item/discover.svg b/core/models/src/icons/svg/item/discover.svg
new file mode 100644
index 000000000..20d039928
--- /dev/null
+++ b/core/models/src/icons/svg/item/discover.svg
@@ -0,0 +1,5 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="2" y="6" width="28" height="20" rx="3" fill="#f49541"/>
+ <path d="M6 13.5V18.5H7.2C8.6 18.5 9.5 17.5 9.5 16C9.5 14.5 8.6 13.5 7.2 13.5H6ZM11.4 13.5V18.5M15.5 14C15.1 13.7 14.6 13.5 14.1 13.5C13.4 13.5 12.9 13.9 12.9 14.5C12.9 15.8 15.7 15.4 15.7 16.9C15.7 17.5 15.1 18.5 14.1 18.5C13.6 18.5 13.1 18.3 12.7 18" stroke="#ffe096" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
+ <circle cx="22" cy="16" r="4" fill="#ffe096"/>
+</svg>
diff --git a/core/models/src/icons/svg/item/mastercard.svg b/core/models/src/icons/svg/item/mastercard.svg
new file mode 100644
index 000000000..a48a80f30
--- /dev/null
+++ b/core/models/src/icons/svg/item/mastercard.svg
@@ -0,0 +1,6 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="2" y="6" width="28" height="20" rx="3" fill="#f49541"/>
+ <path d="M16 11.75C17.35 12.76 18.2 14.28 18.2 16C18.2 17.72 17.35 19.24 16 20.25C14.65 19.24 13.8 17.72 13.8 16C13.8 14.28 14.65 12.76 16 11.75Z" fill="#fbcb74"/>
+ <circle cx="12.5" cy="16" r="5" stroke="#ffe096" stroke-width="1.6"/>
+ <circle cx="19.5" cy="16" r="5" stroke="#ffe096" stroke-width="1.6"/>
+</svg>
diff --git a/core/models/src/icons/svg/item/note.svg b/core/models/src/icons/svg/item/note.svg
new file mode 100644
index 000000000..d488d2076
--- /dev/null
+++ b/core/models/src/icons/svg/item/note.svg
@@ -0,0 +1,7 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M8 4C6.9 4 6 4.9 6 6V26C6 27.1 6.9 28 8 28H24C25.1 28 26 27.1 26 26V11L19 4H8Z" fill="#f49541"/>
+ <path d="M19 4V11H26L19 4Z" fill="#d68338"/>
+ <rect x="10" y="14" width="12" height="1.5" rx="0.75" fill="#ffe096"/>
+ <rect x="10" y="18" width="10" height="1.5" rx="0.75" fill="#ffe096"/>
+ <rect x="10" y="22" width="8" height="1.5" rx="0.75" fill="#ffe096"/>
+</svg>
diff --git a/core/models/src/icons/svg/item/placeholder.svg b/core/models/src/icons/svg/item/placeholder.svg
new file mode 100644
index 000000000..5736a673c
--- /dev/null
+++ b/core/models/src/icons/svg/item/placeholder.svg
@@ -0,0 +1,7 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <circle cx="10" cy="10" r="6.5" fill="none" stroke="#f49541" stroke-width="2.5"/>
+ <circle cx="10" cy="10" r="2.5" fill="none" stroke="#f49541" stroke-width="2"/>
+ <path d="M15 15L27 27" stroke="#f49541" stroke-width="2.5" stroke-linecap="round"/>
+ <path d="M19 19L23 15" stroke="#f49541" stroke-width="2.5" stroke-linecap="round"/>
+ <path d="M24 24L28 20" stroke="#f49541" stroke-width="2.5" stroke-linecap="round"/>
+</svg>
diff --git a/core/models/src/icons/svg/item/visa.svg b/core/models/src/icons/svg/item/visa.svg
new file mode 100644
index 000000000..b48eb65d0
--- /dev/null
+++ b/core/models/src/icons/svg/item/visa.svg
@@ -0,0 +1,4 @@
+<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="2" y="6" width="28" height="20" rx="3" fill="#f49541"/>
+ <path d="M7 13L9 19L11 13M13.2 13V19M18.6 13.7C18.1 13.2 17.4 13 16.7 13C15.7 13 15 13.6 15 14.4C15 16.2 18.8 15.8 18.8 17.6C18.8 18.4 18 19 17 19C16.2 19 15.4 18.7 14.9 18.2M20.5 19L22.75 13L25 19M21.3 17H24.2" stroke="#ffe096" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/archive.svg b/core/models/src/icons/svg/ui/archive.svg
new file mode 100644
index 000000000..caa3665cb
--- /dev/null
+++ b/core/models/src/icons/svg/ui/archive.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/arrow-circle-down.svg b/core/models/src/icons/svg/ui/arrow-circle-down.svg
new file mode 100644
index 000000000..3ea145046
--- /dev/null
+++ b/core/models/src/icons/svg/ui/arrow-circle-down.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M15 13l-3 3m0 0l-3-3m3 3V8m0 13a9 9 0 110-18 9 9 0 010 18z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/arrow-left.svg b/core/models/src/icons/svg/ui/arrow-left.svg
new file mode 100644
index 000000000..921273a2b
--- /dev/null
+++ b/core/models/src/icons/svg/ui/arrow-left.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M10 19l-7-7m0 0l7-7m-7 7h18"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/arrow-narrow-down.svg b/core/models/src/icons/svg/ui/arrow-narrow-down.svg
new file mode 100644
index 000000000..be568d633
--- /dev/null
+++ b/core/models/src/icons/svg/ui/arrow-narrow-down.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M16 17l-4 4m0 0l-4-4m4 4V3"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/arrow-narrow-up.svg b/core/models/src/icons/svg/ui/arrow-narrow-up.svg
new file mode 100644
index 000000000..0e6fbbd4e
--- /dev/null
+++ b/core/models/src/icons/svg/ui/arrow-narrow-up.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M8 7l4-4m0 0l4 4m-4-4v18"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/arrow-right.svg b/core/models/src/icons/svg/ui/arrow-right.svg
new file mode 100644
index 000000000..0aac7e1c5
--- /dev/null
+++ b/core/models/src/icons/svg/ui/arrow-right.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M14 5l7 7m0 0l-7 7m7-7H3"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/arrows-expand.svg b/core/models/src/icons/svg/ui/arrows-expand.svg
new file mode 100644
index 000000000..465289ce7
--- /dev/null
+++ b/core/models/src/icons/svg/ui/arrows-expand.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/backspace.svg b/core/models/src/icons/svg/ui/backspace.svg
new file mode 100644
index 000000000..3f456b317
--- /dev/null
+++ b/core/models/src/icons/svg/ui/backspace.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2M3 12l6.414 6.414a2 2 0 001.414.586H19a2 2 0 002-2V7a2 2 0 00-2-2h-8.172a2 2 0 00-1.414.586L3 12z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/chart-bar.svg b/core/models/src/icons/svg/ui/chart-bar.svg
new file mode 100644
index 000000000..4134649d1
--- /dev/null
+++ b/core/models/src/icons/svg/ui/chart-bar.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/check-circle.svg b/core/models/src/icons/svg/ui/check-circle.svg
new file mode 100644
index 000000000..c0bcf3e62
--- /dev/null
+++ b/core/models/src/icons/svg/ui/check-circle.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/check.svg b/core/models/src/icons/svg/ui/check.svg
new file mode 100644
index 000000000..79f644d1a
--- /dev/null
+++ b/core/models/src/icons/svg/ui/check.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M5 13l4 4L19 7"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/chevron-down.svg b/core/models/src/icons/svg/ui/chevron-down.svg
new file mode 100644
index 000000000..c8ab8fb43
--- /dev/null
+++ b/core/models/src/icons/svg/ui/chevron-down.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M19 9l-7 7-7-7"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/chevron-left.svg b/core/models/src/icons/svg/ui/chevron-left.svg
new file mode 100644
index 000000000..6078c52f5
--- /dev/null
+++ b/core/models/src/icons/svg/ui/chevron-left.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M15 19l-7-7 7-7"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/chevron-right.svg b/core/models/src/icons/svg/ui/chevron-right.svg
new file mode 100644
index 000000000..138c32423
--- /dev/null
+++ b/core/models/src/icons/svg/ui/chevron-right.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M9 5l7 7-7 7"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/clipboard-list.svg b/core/models/src/icons/svg/ui/clipboard-list.svg
new file mode 100644
index 000000000..fe570bd8e
--- /dev/null
+++ b/core/models/src/icons/svg/ui/clipboard-list.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/clipboard.svg b/core/models/src/icons/svg/ui/clipboard.svg
new file mode 100644
index 000000000..23d61fae8
--- /dev/null
+++ b/core/models/src/icons/svg/ui/clipboard.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/clock.svg b/core/models/src/icons/svg/ui/clock.svg
new file mode 100644
index 000000000..97dda26a2
--- /dev/null
+++ b/core/models/src/icons/svg/ui/clock.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/cloud-upload.svg b/core/models/src/icons/svg/ui/cloud-upload.svg
new file mode 100644
index 000000000..b38ef650e
--- /dev/null
+++ b/core/models/src/icons/svg/ui/cloud-upload.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/cog.svg b/core/models/src/icons/svg/ui/cog.svg
new file mode 100644
index 000000000..17f843e9c
--- /dev/null
+++ b/core/models/src/icons/svg/ui/cog.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/>
+ <path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/collection.svg b/core/models/src/icons/svg/ui/collection.svg
new file mode 100644
index 000000000..1d7e78727
--- /dev/null
+++ b/core/models/src/icons/svg/ui/collection.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/color-swatch.svg b/core/models/src/icons/svg/ui/color-swatch.svg
new file mode 100644
index 000000000..bc4b6167f
--- /dev/null
+++ b/core/models/src/icons/svg/ui/color-swatch.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/credit-card.svg b/core/models/src/icons/svg/ui/credit-card.svg
new file mode 100644
index 000000000..ceddca1f9
--- /dev/null
+++ b/core/models/src/icons/svg/ui/credit-card.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/database.svg b/core/models/src/icons/svg/ui/database.svg
new file mode 100644
index 000000000..2cc024770
--- /dev/null
+++ b/core/models/src/icons/svg/ui/database.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/desktop-computer.svg b/core/models/src/icons/svg/ui/desktop-computer.svg
new file mode 100644
index 000000000..21de3c2fb
--- /dev/null
+++ b/core/models/src/icons/svg/ui/desktop-computer.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/device-mobile.svg b/core/models/src/icons/svg/ui/device-mobile.svg
new file mode 100644
index 000000000..66c598e69
--- /dev/null
+++ b/core/models/src/icons/svg/ui/device-mobile.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/document-duplicate.svg b/core/models/src/icons/svg/ui/document-duplicate.svg
new file mode 100644
index 000000000..4b08471c5
--- /dev/null
+++ b/core/models/src/icons/svg/ui/document-duplicate.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/document-text.svg b/core/models/src/icons/svg/ui/document-text.svg
new file mode 100644
index 000000000..270e171d6
--- /dev/null
+++ b/core/models/src/icons/svg/ui/document-text.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/dots-vertical-narrow.svg b/core/models/src/icons/svg/ui/dots-vertical-narrow.svg
new file mode 100644
index 000000000..acae7783e
--- /dev/null
+++ b/core/models/src/icons/svg/ui/dots-vertical-narrow.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 24" fill="currentColor">
+ <circle cx="6" cy="5" r="2"/>
+ <circle cx="6" cy="12" r="2"/>
+ <circle cx="6" cy="19" r="2"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/download.svg b/core/models/src/icons/svg/ui/download.svg
new file mode 100644
index 000000000..db426caa7
--- /dev/null
+++ b/core/models/src/icons/svg/ui/download.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/duplicate.svg b/core/models/src/icons/svg/ui/duplicate.svg
new file mode 100644
index 000000000..4af808b51
--- /dev/null
+++ b/core/models/src/icons/svg/ui/duplicate.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/exclamation.svg b/core/models/src/icons/svg/ui/exclamation.svg
new file mode 100644
index 000000000..7fa337bd9
--- /dev/null
+++ b/core/models/src/icons/svg/ui/exclamation.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/external-link.svg b/core/models/src/icons/svg/ui/external-link.svg
new file mode 100644
index 000000000..d32b1a41e
--- /dev/null
+++ b/core/models/src/icons/svg/ui/external-link.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/eye-off.svg b/core/models/src/icons/svg/ui/eye-off.svg
new file mode 100644
index 000000000..66068bb2e
--- /dev/null
+++ b/core/models/src/icons/svg/ui/eye-off.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/eye.svg b/core/models/src/icons/svg/ui/eye.svg
new file mode 100644
index 000000000..9ab666a43
--- /dev/null
+++ b/core/models/src/icons/svg/ui/eye.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
+ <path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/folder-check.svg b/core/models/src/icons/svg/ui/folder-check.svg
new file mode 100644
index 000000000..7f3b377b8
--- /dev/null
+++ b/core/models/src/icons/svg/ui/folder-check.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"/>
+ <path d="M9 14l2 2 4-4"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/folder-filled.svg b/core/models/src/icons/svg/ui/folder-filled.svg
new file mode 100644
index 000000000..b1f7c301c
--- /dev/null
+++ b/core/models/src/icons/svg/ui/folder-filled.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
+ <path d="M10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/folder.svg b/core/models/src/icons/svg/ui/folder.svg
new file mode 100644
index 000000000..a0ed873da
--- /dev/null
+++ b/core/models/src/icons/svg/ui/folder.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/globe-alt.svg b/core/models/src/icons/svg/ui/globe-alt.svg
new file mode 100644
index 000000000..62c49d687
--- /dev/null
+++ b/core/models/src/icons/svg/ui/globe-alt.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/grip-vertical.svg b/core/models/src/icons/svg/ui/grip-vertical.svg
new file mode 100644
index 000000000..361ae1b06
--- /dev/null
+++ b/core/models/src/icons/svg/ui/grip-vertical.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
+ <path d="M7 4a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm0 6a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm-1.5 7.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM16 4a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm-1.5 7.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM16 16a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/hashtag.svg b/core/models/src/icons/svg/ui/hashtag.svg
new file mode 100644
index 000000000..f1ca9fd54
--- /dev/null
+++ b/core/models/src/icons/svg/ui/hashtag.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M7 20l4-16m2 16l4-16M6 9h14M4 15h14"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/home.svg b/core/models/src/icons/svg/ui/home.svg
new file mode 100644
index 000000000..bdfe4a97f
--- /dev/null
+++ b/core/models/src/icons/svg/ui/home.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/information-circle.svg b/core/models/src/icons/svg/ui/information-circle.svg
new file mode 100644
index 000000000..e00be0fd4
--- /dev/null
+++ b/core/models/src/icons/svg/ui/information-circle.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/key.svg b/core/models/src/icons/svg/ui/key.svg
new file mode 100644
index 000000000..735851330
--- /dev/null
+++ b/core/models/src/icons/svg/ui/key.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/keyboard.svg b/core/models/src/icons/svg/ui/keyboard.svg
new file mode 100644
index 000000000..2e41f4203
--- /dev/null
+++ b/core/models/src/icons/svg/ui/keyboard.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M5 7h14a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2V9a2 2 0 012-2zM7 11h.01M11 11h.01M15 11h.01M8 15h8"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/lock-closed.svg b/core/models/src/icons/svg/ui/lock-closed.svg
new file mode 100644
index 000000000..b177213fb
--- /dev/null
+++ b/core/models/src/icons/svg/ui/lock-closed.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/logout.svg b/core/models/src/icons/svg/ui/logout.svg
new file mode 100644
index 000000000..cef06d237
--- /dev/null
+++ b/core/models/src/icons/svg/ui/logout.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/mail.svg b/core/models/src/icons/svg/ui/mail.svg
new file mode 100644
index 000000000..7f82383c2
--- /dev/null
+++ b/core/models/src/icons/svg/ui/mail.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/menu-alt-3.svg b/core/models/src/icons/svg/ui/menu-alt-3.svg
new file mode 100644
index 000000000..d2651f0ea
--- /dev/null
+++ b/core/models/src/icons/svg/ui/menu-alt-3.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M4 6h16M4 12h16m-7 6h7"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/menu.svg b/core/models/src/icons/svg/ui/menu.svg
new file mode 100644
index 000000000..58f5a31b7
--- /dev/null
+++ b/core/models/src/icons/svg/ui/menu.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M4 6h16M4 12h16M4 18h16"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/moon.svg b/core/models/src/icons/svg/ui/moon.svg
new file mode 100644
index 000000000..e50194d5a
--- /dev/null
+++ b/core/models/src/icons/svg/ui/moon.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/paper-clip.svg b/core/models/src/icons/svg/ui/paper-clip.svg
new file mode 100644
index 000000000..6df19bb81
--- /dev/null
+++ b/core/models/src/icons/svg/ui/paper-clip.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/pencil-alt.svg b/core/models/src/icons/svg/ui/pencil-alt.svg
new file mode 100644
index 000000000..61d83155e
--- /dev/null
+++ b/core/models/src/icons/svg/ui/pencil-alt.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/pencil.svg b/core/models/src/icons/svg/ui/pencil.svg
new file mode 100644
index 000000000..ef9f64943
--- /dev/null
+++ b/core/models/src/icons/svg/ui/pencil.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/pin-material.svg b/core/models/src/icons/svg/ui/pin-material.svg
new file mode 100644
index 000000000..6c93324db
--- /dev/null
+++ b/core/models/src/icons/svg/ui/pin-material.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="currentColor">
+ <path d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm100-200h46v-240h-36l-70 50 24 36 36-26v180Zm124 0h156v-40h-94l-2-2q21-20 34.5-34t21.5-22q18-18 27-36t9-38q0-29-22-48.5T458-600q-26 0-47 15t-29 39l40 16q5-13 14.5-20.5T458-558q15 0 24.5 8t9.5 20q0 11-4 20.5T470-486l-32 32-54 54v40Zm296 0q36 0 58-20t22-52q0-18-10-32t-28-22v-2q14-8 22-20.5t8-29.5q0-27-21-44.5T678-600q-25 0-46.5 14.5T604-550l40 16q4-12 13-19t21-7q13 0 21.5 7.5T708-534q0 14-10 22t-26 8h-18v40h20q20 0 31 8t11 22q0 13-11 22.5t-25 9.5q-17 0-26-7.5T638-436l-40 16q7 29 28.5 44.5T680-360ZM160-240h640v-480H160v480Zm0 0v-480 480Z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/plus-sm.svg b/core/models/src/icons/svg/ui/plus-sm.svg
new file mode 100644
index 000000000..0002ae65d
--- /dev/null
+++ b/core/models/src/icons/svg/ui/plus-sm.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 6v6m0 0v6m0-6h6m-6 0H6"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/plus.svg b/core/models/src/icons/svg/ui/plus.svg
new file mode 100644
index 000000000..6e9d9050a
--- /dev/null
+++ b/core/models/src/icons/svg/ui/plus.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 4v16m8-8H4"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/qrcode.svg b/core/models/src/icons/svg/ui/qrcode.svg
new file mode 100644
index 000000000..9ac97b79f
--- /dev/null
+++ b/core/models/src/icons/svg/ui/qrcode.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/question-mark-circle.svg b/core/models/src/icons/svg/ui/question-mark-circle.svg
new file mode 100644
index 000000000..14048c86f
--- /dev/null
+++ b/core/models/src/icons/svg/ui/question-mark-circle.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/refresh.svg b/core/models/src/icons/svg/ui/refresh.svg
new file mode 100644
index 000000000..cbc279113
--- /dev/null
+++ b/core/models/src/icons/svg/ui/refresh.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/reply.svg b/core/models/src/icons/svg/ui/reply.svg
new file mode 100644
index 000000000..fb7bcf67d
--- /dev/null
+++ b/core/models/src/icons/svg/ui/reply.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/search.svg b/core/models/src/icons/svg/ui/search.svg
new file mode 100644
index 000000000..bddbeec02
--- /dev/null
+++ b/core/models/src/icons/svg/ui/search.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/shield-check.svg b/core/models/src/icons/svg/ui/shield-check.svg
new file mode 100644
index 000000000..93aeecf19
--- /dev/null
+++ b/core/models/src/icons/svg/ui/shield-check.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/shield-exclamation.svg b/core/models/src/icons/svg/ui/shield-exclamation.svg
new file mode 100644
index 000000000..8d3518bb6
--- /dev/null
+++ b/core/models/src/icons/svg/ui/shield-exclamation.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M20.618 5.984A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016zM12 9v2m0 4h.01"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/sort-descending.svg b/core/models/src/icons/svg/ui/sort-descending.svg
new file mode 100644
index 000000000..9a9599024
--- /dev/null
+++ b/core/models/src/icons/svg/ui/sort-descending.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M3 4h13M3 8h9m-9 4h9m5-4v12m0 0l-4-4m4 4l4-4"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/spinner-flowbite.svg b/core/models/src/icons/svg/ui/spinner-flowbite.svg
new file mode 100644
index 000000000..2b207d26d
--- /dev/null
+++ b/core/models/src/icons/svg/ui/spinner-flowbite.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 101" fill="none">
+ <path fill="currentColor" d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"/>
+ <path fill="currentFill" d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/spinner.svg b/core/models/src/icons/svg/ui/spinner.svg
new file mode 100644
index 000000000..b085a7c78
--- /dev/null
+++ b/core/models/src/icons/svg/ui/spinner.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
+ <circle opacity="0.25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"/>
+ <path opacity="0.75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/square-check.svg b/core/models/src/icons/svg/ui/square-check.svg
new file mode 100644
index 000000000..579f7e9c8
--- /dev/null
+++ b/core/models/src/icons/svg/ui/square-check.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2"/>
+ <polyline points="7 12 10 15 17 8"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/square-feather.svg b/core/models/src/icons/svg/ui/square-feather.svg
new file mode 100644
index 000000000..c47552451
--- /dev/null
+++ b/core/models/src/icons/svg/ui/square-feather.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/status-offline.svg b/core/models/src/icons/svg/ui/status-offline.svg
new file mode 100644
index 000000000..ea6233442
--- /dev/null
+++ b/core/models/src/icons/svg/ui/status-offline.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M18.364 5.636a9 9 0 010 12.728m0 0l-2.829-2.829m2.829 2.829L21 21M15.536 8.464a5 5 0 010 7.072m0 0l-2.829-2.829m-4.243 2.829a4.978 4.978 0 01-1.414-2.83m-1.414 5.658a9 9 0 01-2.167-9.238m7.824 2.167a1 1 0 111.414 1.414m-1.414-1.414L3 3m8.293 8.293l1.414 1.414"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/sun.svg b/core/models/src/icons/svg/ui/sun.svg
new file mode 100644
index 000000000..024762dd0
--- /dev/null
+++ b/core/models/src/icons/svg/ui/sun.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/switch-horizontal.svg b/core/models/src/icons/svg/ui/switch-horizontal.svg
new file mode 100644
index 000000000..8e1e77c0a
--- /dev/null
+++ b/core/models/src/icons/svg/ui/switch-horizontal.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/translate.svg b/core/models/src/icons/svg/ui/translate.svg
new file mode 100644
index 000000000..41993c2c8
--- /dev/null
+++ b/core/models/src/icons/svg/ui/translate.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/trash.svg b/core/models/src/icons/svg/ui/trash.svg
new file mode 100644
index 000000000..f1093df97
--- /dev/null
+++ b/core/models/src/icons/svg/ui/trash.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/upload.svg b/core/models/src/icons/svg/ui/upload.svg
new file mode 100644
index 000000000..a23cf3366
--- /dev/null
+++ b/core/models/src/icons/svg/ui/upload.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/user-group.svg b/core/models/src/icons/svg/ui/user-group.svg
new file mode 100644
index 000000000..a912398b1
--- /dev/null
+++ b/core/models/src/icons/svg/ui/user-group.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/user.svg b/core/models/src/icons/svg/ui/user.svg
new file mode 100644
index 000000000..f0efa3709
--- /dev/null
+++ b/core/models/src/icons/svg/ui/user.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/users.svg b/core/models/src/icons/svg/ui/users.svg
new file mode 100644
index 000000000..585b7215b
--- /dev/null
+++ b/core/models/src/icons/svg/ui/users.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/view-grid-add.svg b/core/models/src/icons/svg/ui/view-grid-add.svg
new file mode 100644
index 000000000..19a5a26e8
--- /dev/null
+++ b/core/models/src/icons/svg/ui/view-grid-add.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M17 14v6m-3-3h6M6 10h2a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2zm10 0h2a2 2 0 002-2V6a2 2 0 00-2-2h-2a2 2 0 00-2 2v2a2 2 0 002 2zM6 20h2a2 2 0 002-2v-2a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/x-circle.svg b/core/models/src/icons/svg/ui/x-circle.svg
new file mode 100644
index 000000000..53e5f3dc6
--- /dev/null
+++ b/core/models/src/icons/svg/ui/x-circle.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"/>
+</svg>
diff --git a/core/models/src/icons/svg/ui/x.svg b/core/models/src/icons/svg/ui/x.svg
new file mode 100644
index 000000000..8eb7ffa02
--- /dev/null
+++ b/core/models/src/icons/svg/ui/x.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M6 18L18 6M6 6l12 12"/>
+</svg>
diff --git a/core/models/src/vault/Item.ts b/core/models/src/vault/Item.ts
index ab39a6f44..567c402d0 100644
--- a/core/models/src/vault/Item.ts
+++ b/core/models/src/vault/Item.ts
@@ -40,7 +40,7 @@ export type Item = {
export const LogoKinds = {
/** Fetched automatically from the item's URL; Source is the domain it came from. */
Favicon: 'favicon',
- /** Picked from the built-in catalog; Source is the AppIconKey and there are no image bytes. */
+ /** Picked from the built-in catalog; Source is the BuiltinLogoKey and there are no image bytes. */
Builtin: 'builtin',
/** Uploaded by the user; Source is the sha256 of the image, which is what makes it reusable. */
Custom: 'custom',