@ai-matrx/icons 0.1.11 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,35 @@
1
+ "use client";
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/domain.ts
22
+ var domain_exports = {};
23
+ __export(domain_exports, {
24
+ AGENT_ICON: () => AGENT_ICON,
25
+ AGENT_ICON_NAME: () => AGENT_ICON_NAME,
26
+ INTELLIGENCE_ICON: () => INTELLIGENCE_ICON,
27
+ INTELLIGENCE_ICON_NAME: () => INTELLIGENCE_ICON_NAME
28
+ });
29
+ module.exports = __toCommonJS(domain_exports);
30
+ var import_lucide_react = require("lucide-react");
31
+ var INTELLIGENCE_ICON = import_lucide_react.BrainCircuit;
32
+ var INTELLIGENCE_ICON_NAME = "BrainCircuit";
33
+ var AGENT_ICON = import_lucide_react.Webhook;
34
+ var AGENT_ICON_NAME = "Webhook";
35
+ //# sourceMappingURL=domain.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/domain.ts"],"sourcesContent":["// @ai-matrx/icons/domain (moved from matrx-frontend components/icons/domain-icons.ts, P16)\n//\n// OFFICIAL DOMAIN ICONS — one icon per platform Domain, owned here and nowhere\n// else. A person learns \"this icon means Intelligence\" only if it never means\n// anything else.\n//\n// INTELLIGENCE_ICON — lucide BrainCircuit. RESERVED for Intelligence and\n// Mandates (Arman, 2026-09-26). Importing BrainCircuit anywhere else is a\n// violation: `pnpm check:reserved-icons` fails on a new one.\n// AGENT_ICON — lucide Webhook. The official Agents icon (nav, holders, cards).\n//\n// String-keyed icon registries (shell nav `iconName`, menu registries) use the\n// *_ICON_NAME constants so the name is spelled in one place.\n\nimport { BrainCircuit, Webhook, type LucideIcon } from \"lucide-react\";\n\n/** Intelligence / Mandates — reserved; never for generic \"AI\". */\nexport const INTELLIGENCE_ICON: LucideIcon = BrainCircuit;\nexport const INTELLIGENCE_ICON_NAME = \"BrainCircuit\" as const;\n\n/** Agents. */\nexport const AGENT_ICON: LucideIcon = Webhook;\nexport const AGENT_ICON_NAME = \"Webhook\" as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcA,0BAAuD;AAGhD,IAAM,oBAAgC;AACtC,IAAM,yBAAyB;AAG/B,IAAM,aAAyB;AAC/B,IAAM,kBAAkB;","names":[]}
@@ -0,0 +1,10 @@
1
+ import { LucideIcon } from 'lucide-react';
2
+
3
+ /** Intelligence / Mandates — reserved; never for generic "AI". */
4
+ declare const INTELLIGENCE_ICON: LucideIcon;
5
+ declare const INTELLIGENCE_ICON_NAME: "BrainCircuit";
6
+ /** Agents. */
7
+ declare const AGENT_ICON: LucideIcon;
8
+ declare const AGENT_ICON_NAME: "Webhook";
9
+
10
+ export { AGENT_ICON, AGENT_ICON_NAME, INTELLIGENCE_ICON, INTELLIGENCE_ICON_NAME };
@@ -0,0 +1,10 @@
1
+ import { LucideIcon } from 'lucide-react';
2
+
3
+ /** Intelligence / Mandates — reserved; never for generic "AI". */
4
+ declare const INTELLIGENCE_ICON: LucideIcon;
5
+ declare const INTELLIGENCE_ICON_NAME: "BrainCircuit";
6
+ /** Agents. */
7
+ declare const AGENT_ICON: LucideIcon;
8
+ declare const AGENT_ICON_NAME: "Webhook";
9
+
10
+ export { AGENT_ICON, AGENT_ICON_NAME, INTELLIGENCE_ICON, INTELLIGENCE_ICON_NAME };
package/dist/domain.js ADDED
@@ -0,0 +1,15 @@
1
+ "use client";
2
+
3
+ // src/domain.ts
4
+ import { BrainCircuit, Webhook } from "lucide-react";
5
+ var INTELLIGENCE_ICON = BrainCircuit;
6
+ var INTELLIGENCE_ICON_NAME = "BrainCircuit";
7
+ var AGENT_ICON = Webhook;
8
+ var AGENT_ICON_NAME = "Webhook";
9
+ export {
10
+ AGENT_ICON,
11
+ AGENT_ICON_NAME,
12
+ INTELLIGENCE_ICON,
13
+ INTELLIGENCE_ICON_NAME
14
+ };
15
+ //# sourceMappingURL=domain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/domain.ts"],"sourcesContent":["// @ai-matrx/icons/domain (moved from matrx-frontend components/icons/domain-icons.ts, P16)\n//\n// OFFICIAL DOMAIN ICONS — one icon per platform Domain, owned here and nowhere\n// else. A person learns \"this icon means Intelligence\" only if it never means\n// anything else.\n//\n// INTELLIGENCE_ICON — lucide BrainCircuit. RESERVED for Intelligence and\n// Mandates (Arman, 2026-09-26). Importing BrainCircuit anywhere else is a\n// violation: `pnpm check:reserved-icons` fails on a new one.\n// AGENT_ICON — lucide Webhook. The official Agents icon (nav, holders, cards).\n//\n// String-keyed icon registries (shell nav `iconName`, menu registries) use the\n// *_ICON_NAME constants so the name is spelled in one place.\n\nimport { BrainCircuit, Webhook, type LucideIcon } from \"lucide-react\";\n\n/** Intelligence / Mandates — reserved; never for generic \"AI\". */\nexport const INTELLIGENCE_ICON: LucideIcon = BrainCircuit;\nexport const INTELLIGENCE_ICON_NAME = \"BrainCircuit\" as const;\n\n/** Agents. */\nexport const AGENT_ICON: LucideIcon = Webhook;\nexport const AGENT_ICON_NAME = \"Webhook\" as const;\n"],"mappings":";;;AAcA,SAAS,cAAc,eAAgC;AAGhD,IAAM,oBAAgC;AACtC,IAAM,yBAAyB;AAG/B,IAAM,aAAyB;AAC/B,IAAM,kBAAkB;","names":[]}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
1
+ import * as react from 'react';
2
+ import react__default from 'react';
3
3
 
4
4
  /**
5
5
  * Props every icon component in this registry accepts. Structural on purpose:
@@ -10,7 +10,7 @@ import React__default from 'react';
10
10
  interface IconRenderProps {
11
11
  className?: string;
12
12
  size?: string | number;
13
- style?: React.CSSProperties;
13
+ style?: react.CSSProperties;
14
14
  color?: string;
15
15
  strokeWidth?: string | number;
16
16
  }
@@ -18,7 +18,7 @@ interface IconRenderProps {
18
18
  * The one component shape this registry stores and renders. Lucide icons are
19
19
  * assignable as-is; lazily loaded react-icons components are cast on entry.
20
20
  */
21
- type IconComponentType = React.ComponentType<IconRenderProps>;
21
+ type IconComponentType = react.ComponentType<IconRenderProps>;
22
22
 
23
23
  declare const staticLucideIconMap: Record<string, IconComponentType>;
24
24
  /**
@@ -124,7 +124,7 @@ interface IconResolverProps {
124
124
  className?: string | undefined;
125
125
  size?: number | undefined;
126
126
  fallbackIcon?: string | undefined;
127
- style?: React__default.CSSProperties | undefined;
127
+ style?: react__default.CSSProperties | undefined;
128
128
  }
129
129
  /**
130
130
  * IconResolver - A unified component for resolving and rendering icons by name
@@ -132,7 +132,7 @@ interface IconResolverProps {
132
132
  * Supports all lucide-react icons, curated custom icons (optional react-icons peer),
133
133
  * and registered `svg:…` public assets.
134
134
  */
135
- declare const IconResolver: React__default.FC<IconResolverProps>;
135
+ declare const IconResolver: react__default.FC<IconResolverProps>;
136
136
 
137
137
  /**
138
138
  * Synchronous utility function for getting icon components directly
@@ -148,7 +148,7 @@ declare const getIconComponent: (iconName: string | null | undefined, fallbackIc
148
148
  * Renders an icon element directly with optional props
149
149
  * This is the preferred method for rendering icons in JSX
150
150
  */
151
- declare const renderIcon: (iconName: string | null | undefined, props?: IconRenderProps, fallbackIcon?: string) => React__default.JSX.Element;
151
+ declare const renderIcon: (iconName: string | null | undefined, props?: IconRenderProps, fallbackIcon?: string) => react__default.JSX.Element;
152
152
  /**
153
153
  * Utility to detect if a string is a hex color code
154
154
  */
@@ -159,7 +159,7 @@ declare const getTextColorClass: (color?: string) => string | null;
159
159
  * Note: This is synchronous and only works with statically imported icons
160
160
  * For dynamic icons, use the DynamicIcon component instead
161
161
  */
162
- declare const getIconWithColorAndSize: (iconName: string | null, color?: string, size?: number) => React__default.JSX.Element;
162
+ declare const getIconWithColorAndSize: (iconName: string | null, color?: string, size?: number) => react__default.JSX.Element;
163
163
  /**
164
164
  * Simple Icon component for direct usage with color and size support
165
165
  * Uses IconResolver internally to support both static and dynamic icons
@@ -173,6 +173,6 @@ interface DynamicIconProps {
173
173
  className?: string | undefined;
174
174
  fallbackIcon?: string | undefined;
175
175
  }
176
- declare const DynamicIcon: React__default.FC<DynamicIconProps>;
176
+ declare const DynamicIcon: react__default.FC<DynamicIconProps>;
177
177
 
178
178
  export { DynamicIcon, type DynamicIconProps, type IconComponentType, type IconRenderProps, IconResolver, type IconResolverProps, collectLucideIconNameCandidates, extendStaticIcons, extractLucideJsxIconName, getCuratedIconIdsForPicker, getIconComponent, getIconWithColorAndSize, getTextColorClass, isCustomIconName, isHexColor, isIconRegisteredSync, isLucideModuleIconExport, isRegisteredOrLucideIconName, isSvgIconValue, kebabCaseToLucidePascalCase, listCustomIconNames, listSvgIconValues, loadCustomIcon, parseSvgIconPath, registerSvgIcons, renderIcon, staticLucideIconMap };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
1
+ import * as react from 'react';
2
+ import react__default from 'react';
3
3
 
4
4
  /**
5
5
  * Props every icon component in this registry accepts. Structural on purpose:
@@ -10,7 +10,7 @@ import React__default from 'react';
10
10
  interface IconRenderProps {
11
11
  className?: string;
12
12
  size?: string | number;
13
- style?: React.CSSProperties;
13
+ style?: react.CSSProperties;
14
14
  color?: string;
15
15
  strokeWidth?: string | number;
16
16
  }
@@ -18,7 +18,7 @@ interface IconRenderProps {
18
18
  * The one component shape this registry stores and renders. Lucide icons are
19
19
  * assignable as-is; lazily loaded react-icons components are cast on entry.
20
20
  */
21
- type IconComponentType = React.ComponentType<IconRenderProps>;
21
+ type IconComponentType = react.ComponentType<IconRenderProps>;
22
22
 
23
23
  declare const staticLucideIconMap: Record<string, IconComponentType>;
24
24
  /**
@@ -124,7 +124,7 @@ interface IconResolverProps {
124
124
  className?: string | undefined;
125
125
  size?: number | undefined;
126
126
  fallbackIcon?: string | undefined;
127
- style?: React__default.CSSProperties | undefined;
127
+ style?: react__default.CSSProperties | undefined;
128
128
  }
129
129
  /**
130
130
  * IconResolver - A unified component for resolving and rendering icons by name
@@ -132,7 +132,7 @@ interface IconResolverProps {
132
132
  * Supports all lucide-react icons, curated custom icons (optional react-icons peer),
133
133
  * and registered `svg:…` public assets.
134
134
  */
135
- declare const IconResolver: React__default.FC<IconResolverProps>;
135
+ declare const IconResolver: react__default.FC<IconResolverProps>;
136
136
 
137
137
  /**
138
138
  * Synchronous utility function for getting icon components directly
@@ -148,7 +148,7 @@ declare const getIconComponent: (iconName: string | null | undefined, fallbackIc
148
148
  * Renders an icon element directly with optional props
149
149
  * This is the preferred method for rendering icons in JSX
150
150
  */
151
- declare const renderIcon: (iconName: string | null | undefined, props?: IconRenderProps, fallbackIcon?: string) => React__default.JSX.Element;
151
+ declare const renderIcon: (iconName: string | null | undefined, props?: IconRenderProps, fallbackIcon?: string) => react__default.JSX.Element;
152
152
  /**
153
153
  * Utility to detect if a string is a hex color code
154
154
  */
@@ -159,7 +159,7 @@ declare const getTextColorClass: (color?: string) => string | null;
159
159
  * Note: This is synchronous and only works with statically imported icons
160
160
  * For dynamic icons, use the DynamicIcon component instead
161
161
  */
162
- declare const getIconWithColorAndSize: (iconName: string | null, color?: string, size?: number) => React__default.JSX.Element;
162
+ declare const getIconWithColorAndSize: (iconName: string | null, color?: string, size?: number) => react__default.JSX.Element;
163
163
  /**
164
164
  * Simple Icon component for direct usage with color and size support
165
165
  * Uses IconResolver internally to support both static and dynamic icons
@@ -173,6 +173,6 @@ interface DynamicIconProps {
173
173
  className?: string | undefined;
174
174
  fallbackIcon?: string | undefined;
175
175
  }
176
- declare const DynamicIcon: React__default.FC<DynamicIconProps>;
176
+ declare const DynamicIcon: react__default.FC<DynamicIconProps>;
177
177
 
178
178
  export { DynamicIcon, type DynamicIconProps, type IconComponentType, type IconRenderProps, IconResolver, type IconResolverProps, collectLucideIconNameCandidates, extendStaticIcons, extractLucideJsxIconName, getCuratedIconIdsForPicker, getIconComponent, getIconWithColorAndSize, getTextColorClass, isCustomIconName, isHexColor, isIconRegisteredSync, isLucideModuleIconExport, isRegisteredOrLucideIconName, isSvgIconValue, kebabCaseToLucidePascalCase, listCustomIconNames, listSvgIconValues, loadCustomIcon, parseSvgIconPath, registerSvgIcons, renderIcon, staticLucideIconMap };