@ai-matrx/icons 0.1.10 → 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.
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 };
package/dist/index.js CHANGED
@@ -1,8 +1,13 @@
1
1
  "use client";
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __esm = (fn, res) => function __init() {
5
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
4
+ var __esm = (fn, res, err) => function __init() {
5
+ if (err) throw err[0];
6
+ try {
7
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
8
+ } catch (e) {
9
+ throw err = [e], e;
10
+ }
6
11
  };
7
12
  var __export = (target, all) => {
8
13
  for (var name in all)