@cssints/icons 0.6.0 → 0.7.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.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Style } from "cssints/plugin";
2
- //#region src/index.d.ts
3
2
  /** An iconify JSON collection as TypeScript sees it: `typeof import("@iconify-json/mdi/icons.json")`. */
4
3
  export interface Collection {
5
4
  icons: Record<string, unknown>;
@@ -30,5 +29,4 @@ export type Options = {
30
29
  * @param {Options} options where the icons come from
31
30
  * @returns {Icons<IconName<C>>} a function of the icon name: a style for `cn()`
32
31
  */
33
- export declare const icons: <C extends Collection = Collection>(options: Options) => Icons<IconName<C>>;
34
- //#endregion
32
+ export declare const icons: <C extends Collection = Collection>(options: Options) => Icons<IconName<C>>;
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { readFileSync, readdirSync, statSync } from "node:fs";
3
3
  import { join, resolve } from "node:path";
4
4
  import { convertParsedSVG, getIconData, iconToHTML, iconToSVG, parseSVGContent, svgToURL } from "@iconify/utils";
5
5
  import { arg, dependsOn, scope } from "cssints/plugin";
6
- //#region src/index.ts
6
+ // src/index.ts
7
7
  const box = "display:inline-block;width:1em;height:1em";
8
8
  const mask = { css: `&{${box};background-color:currentColor;mask:var(--_svg) no-repeat center/100% 100%}` };
9
9
  const image = { css: `&{${box};background:var(--_svg) no-repeat center/100% 100%}` };
@@ -114,5 +114,4 @@ const icons = (options) => {
114
114
  };
115
115
  } }).export().icon;
116
116
  };
117
- //#endregion
118
117
  export { icons };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cssints/icons",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Icons for cssints: iconify JSON collections and SVG folders as a mask style, no runtime",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "@iconify/utils": "^3.0.0"
25
25
  },
26
26
  "peerDependencies": {
27
- "cssints": "^0.6.0"
27
+ "cssints": "^0.7.0"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=22"