@zeturn/watercolor-icons-heroicons-react 1.2.6 → 1.2.7

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.
@@ -1,5 +1,6 @@
1
- import { ComponentType } from 'react';
1
+ import { ComponentType, SVGProps } from 'react';
2
2
  export type HeroiconsVariant = 'outline' | 'solid' | 'mini';
3
+ type ReactIconComponent = ComponentType<SVGProps<SVGSVGElement>>;
3
4
  /**
4
5
  * Resolve a Heroicons React icon component by kebab-case name.
5
6
  * - `outline` => 24/outline
@@ -8,5 +9,6 @@ export type HeroiconsVariant = 'outline' | 'solid' | 'mini';
8
9
  *
9
10
  * Example: name="arrow-right" => ArrowRightIcon
10
11
  */
11
- export declare function getIcon(name: string, variant?: HeroiconsVariant): ComponentType<any>;
12
+ export declare function getIcon(name: string, variant?: HeroiconsVariant): ReactIconComponent;
13
+ export {};
12
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAM1C,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAY3D;;;;;;;GAOG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,gBAA4B,GACpC,aAAa,CAAC,GAAG,CAAC,CAgBpB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAMpD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAC3D,KAAK,kBAAkB,GAAG,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAA;AAahE;;;;;;;GAOG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,gBAA4B,GACpC,kBAAkB,CAgBpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeturn/watercolor-icons-heroicons-react",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "type": "module",
5
5
  "main": "dist/watercolor-icons-heroicons-react.es.js",
6
6
  "module": "dist/watercolor-icons-heroicons-react.es.js",