@qds.dev/tools 0.11.1 → 0.13.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/lib/linter/qds-internal.d.ts +210 -0
- package/lib/linter/qds.d.ts +59 -0
- package/{lib-types/tools → lib}/linter/rule-tester.d.ts +23 -1
- package/{lib-types/tools → lib}/playground/prop-extraction.d.ts +6 -1
- package/lib/playground/prop-extraction.qwik.mjs +68 -9
- package/lib/playground/scenario-injection.qwik.mjs +41 -8
- package/lib/rolldown/as-child.d.ts +16 -0
- package/lib/rolldown/as-child.qwik.mjs +52 -91
- package/lib/rolldown/icons.d.ts +21 -0
- package/{lib-types/tools → lib}/rolldown/index.d.ts +4 -2
- package/lib/rolldown/index.qwik.mjs +3 -3
- package/lib/rolldown/inject-component-types.d.ts +2 -0
- package/lib/rolldown/inject-component-types.qwik.mjs +138 -0
- package/lib/rolldown/inline-asset.qwik.mjs +6 -6
- package/lib/rolldown/inline-css.d.ts +2 -0
- package/lib/rolldown/inline-css.qwik.mjs +1 -1
- package/lib/rolldown/qds-types.d.ts +41 -0
- package/lib/rolldown/qds.d.ts +5 -0
- package/lib/rolldown/qds.qwik.mjs +147 -0
- package/lib/rolldown/qwik-rolldown.d.ts +6 -0
- package/lib/rolldown/ui-types.d.ts +42 -0
- package/lib/rolldown/ui.d.ts +12 -0
- package/lib/rolldown/ui.qwik.mjs +445 -0
- package/lib/utils/icons/naming.unit.d.ts +1 -0
- package/{lib-types/tools → lib}/utils/icons/transform/mdx.d.ts +3 -11
- package/lib/utils/icons/transform/mdx.qwik.mjs +14 -20
- package/{lib-types/tools → lib}/utils/icons/transform/tsx.d.ts +3 -12
- package/lib/utils/icons/transform/tsx.qwik.mjs +28 -37
- package/lib/utils/index.qwik.mjs +5 -5
- package/{lib-types/tools → lib}/utils/transform-dts.d.ts +4 -3
- package/lib/utils/transform-dts.qwik.mjs +18 -23
- package/lib/utils/transform-dts.unit.d.ts +1 -0
- package/{lib-types/tools → lib}/vite/index.d.ts +2 -2
- package/lib/vite/index.qwik.mjs +2 -3
- package/lib/vite/minify-content.qwik.mjs +1 -1
- package/lib/vite/minify-content.unit.d.ts +1 -0
- package/linter/qds-internal.ts +707 -0
- package/linter/qds-internal.unit.ts +399 -0
- package/linter/qds.ts +300 -0
- package/linter/qds.unit.ts +158 -0
- package/linter/rule-tester.ts +395 -0
- package/package.json +17 -18
- package/lib/rolldown/icons.qwik.mjs +0 -112
- package/lib-types/components/src/icons-runtime.d.ts +0 -223
- package/lib-types/tools/linter/qds-internal.d.ts +0 -7
- package/lib-types/tools/rolldown/as-child.d.ts +0 -24
- package/lib-types/tools/rolldown/icons.d.ts +0 -45
- package/lib-types/tools/rolldown/inline-css.d.ts +0 -26
- package/lib-types/tools/rolldown/qwik-rolldown.d.ts +0 -9
- /package/{lib-types/tools → lib}/linter/qds-internal.unit.d.ts +0 -0
- /package/{lib-types/tools/playground/generate-metadata.d.ts → lib/linter/qds.unit.d.ts} +0 -0
- /package/{lib-types/tools/playground/generate-metadata.unit.d.ts → lib/playground/generate-metadata.d.ts} +0 -0
- /package/{lib-types/tools/playground/prop-extraction.unit.d.ts → lib/playground/generate-metadata.unit.d.ts} +0 -0
- /package/{lib-types/tools → lib}/playground/index.d.ts +0 -0
- /package/{lib-types/tools/playground/scenario-injection.unit.d.ts → lib/playground/prop-extraction.unit.d.ts} +0 -0
- /package/{lib-types/tools → lib}/playground/scenario-injection.d.ts +0 -0
- /package/{lib-types/tools/rolldown/as-child.unit.d.ts → lib/playground/scenario-injection.unit.d.ts} +0 -0
- /package/{lib-types/tools/rolldown/icons.unit.d.ts → lib/rolldown/as-child.unit.d.ts} +0 -0
- /package/{lib-types/tools/rolldown/inline-asset.unit.d.ts → lib/rolldown/icons.unit.d.ts} +0 -0
- /package/{lib-types/tools/src/generate/icon-types.unit.d.ts → lib/rolldown/inject-component-types.unit.d.ts} +0 -0
- /package/{lib-types/tools → lib}/rolldown/inline-asset.d.ts +0 -0
- /package/{lib-types/tools/utils/icons/ast/expressions.unit.d.ts → lib/rolldown/inline-asset.unit.d.ts} +0 -0
- /package/{lib-types/tools/utils/icons/ast/jsx.unit.d.ts → lib/rolldown/qds.unit.d.ts} +0 -0
- /package/{lib-types/tools/utils/icons/naming.unit.d.ts → lib/rolldown/ui.unit.d.ts} +0 -0
- /package/{lib-types/tools → lib}/src/generate/icon-types.d.ts +0 -0
- /package/{lib-types/tools → lib}/src/index.d.ts +0 -0
- /package/{lib-types/tools → lib}/src/vite.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/ast/core.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/ast/imports.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/ast/jsx-helpers.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/ast/qwik.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/fs-mock.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/fs.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/icons/ast/expressions.d.ts +0 -0
- /package/{lib-types/tools/utils/transform-dts.unit.d.ts → lib/utils/icons/ast/expressions.unit.d.ts} +0 -0
- /package/{lib-types/tools → lib}/utils/icons/ast/jsx.d.ts +0 -0
- /package/{lib-types/tools/vite/minify-content.unit.d.ts → lib/utils/icons/ast/jsx.unit.d.ts} +0 -0
- /package/{lib-types/tools → lib}/utils/icons/collections/loader.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/icons/import-resolver.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/icons/naming.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/icons/transform/shared.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/icons/types/mdx-ast.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/index.d.ts +0 -0
- /package/{lib-types/tools → lib}/utils/package-json.d.ts +0 -0
- /package/{lib-types/tools → lib}/vite/minify-content.d.ts +0 -0
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { CollectionLoader } from "../utils/icons/collections/loader.qwik.mjs";
|
|
2
|
-
import { resolveImportAliases } from "../utils/icons/import-resolver.qwik.mjs";
|
|
3
|
-
import { transformMDXFile } from "../utils/icons/transform/mdx.qwik.mjs";
|
|
4
|
-
import { transformTSXFile } from "../utils/icons/transform/tsx.qwik.mjs";
|
|
5
|
-
import { anyOf, createRegExp, exactly } from "magic-regexp";
|
|
6
|
-
import { parseSync } from "oxc-parser";
|
|
7
|
-
|
|
8
|
-
//#region rolldown/icons.ts
|
|
9
|
-
/**
|
|
10
|
-
* Rolldown plugin that transforms icon JSX elements to direct <svg /> calls
|
|
11
|
-
* @param options - Plugin configuration options
|
|
12
|
-
* @returns Rolldown-compatible plugin object
|
|
13
|
-
*/ const icons = (options = {}) => {
|
|
14
|
-
const importSources = options.importSources ?? ["@qds.dev/ui"];
|
|
15
|
-
const isDebugMode = !!options.debug;
|
|
16
|
-
const collectionNames = /* @__PURE__ */ new Map();
|
|
17
|
-
const debug = (message, ...data) => {
|
|
18
|
-
if (!isDebugMode) return;
|
|
19
|
-
console.log(`[icons] ${message}`, ...data);
|
|
20
|
-
};
|
|
21
|
-
const collectionLoader = new CollectionLoader(debug);
|
|
22
|
-
/**
|
|
23
|
-
* Parse and validate a file, returning the AST if valid
|
|
24
|
-
* @param code - Source code to parse
|
|
25
|
-
* @param id - File ID for debugging
|
|
26
|
-
* @returns AST program if valid, null if invalid
|
|
27
|
-
*/ function parseAndValidateFile(code, id) {
|
|
28
|
-
try {
|
|
29
|
-
const parsed = parseSync(id, code);
|
|
30
|
-
if (parsed.errors.length > 0) {
|
|
31
|
-
debug(`Parse errors in ${id}:`, parsed.errors.map((e) => e.message));
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
return parsed.program;
|
|
35
|
-
} catch (error) {
|
|
36
|
-
debug(`Error parsing ${id}:`, error);
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
const isTSXJSXOrMDX = createRegExp(exactly(".").and(anyOf("tsx", "jsx", "mdx")).at.lineEnd());
|
|
41
|
-
const isVirtualIconsImport = createRegExp(exactly("virtual:icons/").at.lineStart());
|
|
42
|
-
const isVirtualIconsModule = createRegExp(exactly(String.fromCharCode(0)).and("virtual:icons/"));
|
|
43
|
-
return {
|
|
44
|
-
name: "vite-plugin-qds-icons",
|
|
45
|
-
enforce: "pre",
|
|
46
|
-
configResolved() {
|
|
47
|
-
debug("Icons plugin initialized with lazy loading");
|
|
48
|
-
collectionLoader.discoverCollections();
|
|
49
|
-
debug(`Plugin ready - ${collectionLoader.getAvailableCollections().size} collections available on-demand`);
|
|
50
|
-
},
|
|
51
|
-
transform: {
|
|
52
|
-
filter: { id: isTSXJSXOrMDX },
|
|
53
|
-
handler(code, id) {
|
|
54
|
-
if (collectionLoader.getAvailableCollections().size === 0) collectionLoader.discoverCollections();
|
|
55
|
-
if (id.endsWith(".mdx")) return transformMDXFile(code, id, importSources, collectionLoader.getAvailableCollections(), collectionNames, options.packs, debug);
|
|
56
|
-
debug(`[TRANSFORM] Starting transformation for ${id}`);
|
|
57
|
-
try {
|
|
58
|
-
const ast = parseAndValidateFile(code, id);
|
|
59
|
-
if (!ast) {
|
|
60
|
-
debug(`[TRANSFORM] Failed to parse ${id}`);
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
const aliasToPack = resolveImportAliases(ast, importSources, collectionLoader.getAvailableCollections(), collectionNames, options.packs, debug);
|
|
64
|
-
if (aliasToPack.size === 0) {
|
|
65
|
-
debug(`[TRANSFORM] No icon imports found in ${id}`);
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
return transformTSXFile(code, id, ast, aliasToPack, collectionNames, collectionLoader.getAvailableCollections(), options.packs, debug);
|
|
69
|
-
} catch (error) {
|
|
70
|
-
debug(`[TRANSFORM] Error during transformation of ${id}:`, error);
|
|
71
|
-
return null;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
resolveId: {
|
|
76
|
-
filter: { id: isVirtualIconsImport },
|
|
77
|
-
handler(source) {
|
|
78
|
-
if (source.startsWith("virtual:icons/")) return `\0${source}`;
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
load: {
|
|
83
|
-
filter: { id: isVirtualIconsModule },
|
|
84
|
-
async handler(id) {
|
|
85
|
-
const virtualPath = id.slice(1);
|
|
86
|
-
const parts = virtualPath.split("/");
|
|
87
|
-
const prefix = parts[1];
|
|
88
|
-
const name = parts[2];
|
|
89
|
-
if (!prefix || !name) {
|
|
90
|
-
debug(`Invalid virtual icon path: ${virtualPath}`);
|
|
91
|
-
return null;
|
|
92
|
-
}
|
|
93
|
-
try {
|
|
94
|
-
const iconData = name.includes("-") ? await collectionLoader.loadIconDataLazy(prefix, name) : await collectionLoader.loadIconDataByLowercase(prefix, name);
|
|
95
|
-
if (!iconData) {
|
|
96
|
-
debug(`Failed to load icon data for ${prefix}:${name}`);
|
|
97
|
-
return { code: `export default '<path d="M12 2L2 7l10 5 10-5z"/><path d="M2 17l10 5 10-5M2 12l10 5 10-5"/>';\n` };
|
|
98
|
-
}
|
|
99
|
-
const code = `export default \`${iconData.body}\`;`;
|
|
100
|
-
debug(`Generated virtual module for ${prefix}:${name}`);
|
|
101
|
-
return { code };
|
|
102
|
-
} catch (error) {
|
|
103
|
-
debug(`Error loading virtual module ${virtualPath}:`, error);
|
|
104
|
-
return { code: `export default '<circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/>';\n` };
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
//#endregion
|
|
112
|
-
export { icons };
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import type * as GeneratedTypes from "../virtual-qds-icons";
|
|
2
|
-
export declare const academicons: typeof GeneratedTypes.academicons;
|
|
3
|
-
export declare const akaricons: typeof GeneratedTypes.akaricons;
|
|
4
|
-
export declare const antdesign: typeof GeneratedTypes.antdesign;
|
|
5
|
-
export declare const arcticons: typeof GeneratedTypes.arcticons;
|
|
6
|
-
export declare const basil: typeof GeneratedTypes.basil;
|
|
7
|
-
export declare const bi: typeof GeneratedTypes.bi;
|
|
8
|
-
export declare const bitcoinicons: typeof GeneratedTypes.bitcoinicons;
|
|
9
|
-
export declare const bpmn: typeof GeneratedTypes.bpmn;
|
|
10
|
-
export declare const brandico: typeof GeneratedTypes.brandico;
|
|
11
|
-
export declare const bubbles: typeof GeneratedTypes.bubbles;
|
|
12
|
-
export declare const bx: typeof GeneratedTypes.bx;
|
|
13
|
-
export declare const bxl: typeof GeneratedTypes.bxl;
|
|
14
|
-
export declare const bxs: typeof GeneratedTypes.bxs;
|
|
15
|
-
export declare const bytesize: typeof GeneratedTypes.bytesize;
|
|
16
|
-
export declare const carbon: typeof GeneratedTypes.carbon;
|
|
17
|
-
export declare const catppuccin: typeof GeneratedTypes.catppuccin;
|
|
18
|
-
export declare const cbi: typeof GeneratedTypes.cbi;
|
|
19
|
-
export declare const charm: typeof GeneratedTypes.charm;
|
|
20
|
-
export declare const ci: typeof GeneratedTypes.ci;
|
|
21
|
-
export declare const cib: typeof GeneratedTypes.cib;
|
|
22
|
-
export declare const cif: typeof GeneratedTypes.cif;
|
|
23
|
-
export declare const cil: typeof GeneratedTypes.cil;
|
|
24
|
-
export declare const circleflags: typeof GeneratedTypes.circleflags;
|
|
25
|
-
export declare const circum: typeof GeneratedTypes.circum;
|
|
26
|
-
export declare const clarity: typeof GeneratedTypes.clarity;
|
|
27
|
-
export declare const codex: typeof GeneratedTypes.codex;
|
|
28
|
-
export declare const codicon: typeof GeneratedTypes.codicon;
|
|
29
|
-
export declare const covid: typeof GeneratedTypes.covid;
|
|
30
|
-
export declare const cryptocurrency: typeof GeneratedTypes.cryptocurrency;
|
|
31
|
-
export declare const cryptocurrencycolor: typeof GeneratedTypes.cryptocurrencycolor;
|
|
32
|
-
export declare const cuida: typeof GeneratedTypes.cuida;
|
|
33
|
-
export declare const dashicons: typeof GeneratedTypes.dashicons;
|
|
34
|
-
export declare const devicon: typeof GeneratedTypes.devicon;
|
|
35
|
-
export declare const deviconline: typeof GeneratedTypes.deviconline;
|
|
36
|
-
export declare const deviconoriginal: typeof GeneratedTypes.deviconoriginal;
|
|
37
|
-
export declare const deviconplain: typeof GeneratedTypes.deviconplain;
|
|
38
|
-
export declare const dinkieicons: typeof GeneratedTypes.dinkieicons;
|
|
39
|
-
export declare const duoicons: typeof GeneratedTypes.duoicons;
|
|
40
|
-
export declare const ei: typeof GeneratedTypes.ei;
|
|
41
|
-
export declare const el: typeof GeneratedTypes.el;
|
|
42
|
-
export declare const emojione: typeof GeneratedTypes.emojione;
|
|
43
|
-
export declare const emojionemonotone: typeof GeneratedTypes.emojionemonotone;
|
|
44
|
-
export declare const emojionev1: typeof GeneratedTypes.emojionev1;
|
|
45
|
-
export declare const entypo: typeof GeneratedTypes.entypo;
|
|
46
|
-
export declare const entyposocial: typeof GeneratedTypes.entyposocial;
|
|
47
|
-
export declare const eosicons: typeof GeneratedTypes.eosicons;
|
|
48
|
-
export declare const ep: typeof GeneratedTypes.ep;
|
|
49
|
-
export declare const et: typeof GeneratedTypes.et;
|
|
50
|
-
export declare const eva: typeof GeneratedTypes.eva;
|
|
51
|
-
export declare const f7: typeof GeneratedTypes.f7;
|
|
52
|
-
export declare const fa: typeof GeneratedTypes.fa;
|
|
53
|
-
export declare const fa6brands: typeof GeneratedTypes.fa6brands;
|
|
54
|
-
export declare const fa6regular: typeof GeneratedTypes.fa6regular;
|
|
55
|
-
export declare const fa6solid: typeof GeneratedTypes.fa6solid;
|
|
56
|
-
export declare const fa7brands: typeof GeneratedTypes.fa7brands;
|
|
57
|
-
export declare const fa7regular: typeof GeneratedTypes.fa7regular;
|
|
58
|
-
export declare const fa7solid: typeof GeneratedTypes.fa7solid;
|
|
59
|
-
export declare const fabrands: typeof GeneratedTypes.fabrands;
|
|
60
|
-
export declare const fad: typeof GeneratedTypes.fad;
|
|
61
|
-
export declare const famicons: typeof GeneratedTypes.famicons;
|
|
62
|
-
export declare const faregular: typeof GeneratedTypes.faregular;
|
|
63
|
-
export declare const fasolid: typeof GeneratedTypes.fasolid;
|
|
64
|
-
export declare const fe: typeof GeneratedTypes.fe;
|
|
65
|
-
export declare const feather: typeof GeneratedTypes.feather;
|
|
66
|
-
export declare const fileicons: typeof GeneratedTypes.fileicons;
|
|
67
|
-
export declare const flag: typeof GeneratedTypes.flag;
|
|
68
|
-
export declare const flagpack: typeof GeneratedTypes.flagpack;
|
|
69
|
-
export declare const flatcoloricons: typeof GeneratedTypes.flatcoloricons;
|
|
70
|
-
export declare const flatui: typeof GeneratedTypes.flatui;
|
|
71
|
-
export declare const flowbite: typeof GeneratedTypes.flowbite;
|
|
72
|
-
export declare const fluent: typeof GeneratedTypes.fluent;
|
|
73
|
-
export declare const fluentcolor: typeof GeneratedTypes.fluentcolor;
|
|
74
|
-
export declare const fluentemoji: typeof GeneratedTypes.fluentemoji;
|
|
75
|
-
export declare const fluentemojiflat: typeof GeneratedTypes.fluentemojiflat;
|
|
76
|
-
export declare const fluentemojihighcontrast: typeof GeneratedTypes.fluentemojihighcontrast;
|
|
77
|
-
export declare const fluentmdl2: typeof GeneratedTypes.fluentmdl2;
|
|
78
|
-
export declare const fontelico: typeof GeneratedTypes.fontelico;
|
|
79
|
-
export declare const fontisto: typeof GeneratedTypes.fontisto;
|
|
80
|
-
export declare const formkit: typeof GeneratedTypes.formkit;
|
|
81
|
-
export declare const foundation: typeof GeneratedTypes.foundation;
|
|
82
|
-
export declare const fxemoji: typeof GeneratedTypes.fxemoji;
|
|
83
|
-
export declare const gala: typeof GeneratedTypes.gala;
|
|
84
|
-
export declare const gameicons: typeof GeneratedTypes.gameicons;
|
|
85
|
-
export declare const garden: typeof GeneratedTypes.garden;
|
|
86
|
-
export declare const geo: typeof GeneratedTypes.geo;
|
|
87
|
-
export declare const gg: typeof GeneratedTypes.gg;
|
|
88
|
-
export declare const gis: typeof GeneratedTypes.gis;
|
|
89
|
-
export declare const gravityui: typeof GeneratedTypes.gravityui;
|
|
90
|
-
export declare const gridicons: typeof GeneratedTypes.gridicons;
|
|
91
|
-
export declare const grommeticons: typeof GeneratedTypes.grommeticons;
|
|
92
|
-
export declare const guidance: typeof GeneratedTypes.guidance;
|
|
93
|
-
export declare const healthicons: typeof GeneratedTypes.healthicons;
|
|
94
|
-
export declare const heroicons: typeof GeneratedTypes.heroicons;
|
|
95
|
-
export declare const heroiconsoutline: typeof GeneratedTypes.heroiconsoutline;
|
|
96
|
-
export declare const heroiconssolid: typeof GeneratedTypes.heroiconssolid;
|
|
97
|
-
export declare const hugeicons: typeof GeneratedTypes.hugeicons;
|
|
98
|
-
export declare const humbleicons: typeof GeneratedTypes.humbleicons;
|
|
99
|
-
export declare const ic: typeof GeneratedTypes.ic;
|
|
100
|
-
export declare const icomoonfree: typeof GeneratedTypes.icomoonfree;
|
|
101
|
-
export declare const iconamoon: typeof GeneratedTypes.iconamoon;
|
|
102
|
-
export declare const iconoir: typeof GeneratedTypes.iconoir;
|
|
103
|
-
export declare const iconpark: typeof GeneratedTypes.iconpark;
|
|
104
|
-
export declare const iconparkoutline: typeof GeneratedTypes.iconparkoutline;
|
|
105
|
-
export declare const iconparksolid: typeof GeneratedTypes.iconparksolid;
|
|
106
|
-
export declare const iconparktwotone: typeof GeneratedTypes.iconparktwotone;
|
|
107
|
-
export declare const icons8: typeof GeneratedTypes.icons8;
|
|
108
|
-
export declare const il: typeof GeneratedTypes.il;
|
|
109
|
-
export declare const ion: typeof GeneratedTypes.ion;
|
|
110
|
-
export declare const iwwa: typeof GeneratedTypes.iwwa;
|
|
111
|
-
export declare const ix: typeof GeneratedTypes.ix;
|
|
112
|
-
export declare const jam: typeof GeneratedTypes.jam;
|
|
113
|
-
export declare const la: typeof GeneratedTypes.la;
|
|
114
|
-
export declare const letsicons: typeof GeneratedTypes.letsicons;
|
|
115
|
-
export declare const lineicons: typeof GeneratedTypes.lineicons;
|
|
116
|
-
export declare const linemd: typeof GeneratedTypes.linemd;
|
|
117
|
-
export declare const logos: typeof GeneratedTypes.logos;
|
|
118
|
-
export declare const ls: typeof GeneratedTypes.ls;
|
|
119
|
-
export declare const lsicon: typeof GeneratedTypes.lsicon;
|
|
120
|
-
export declare const lucide: typeof GeneratedTypes.lucide;
|
|
121
|
-
export declare const lucidelab: typeof GeneratedTypes.lucidelab;
|
|
122
|
-
export declare const mage: typeof GeneratedTypes.mage;
|
|
123
|
-
export declare const majesticons: typeof GeneratedTypes.majesticons;
|
|
124
|
-
export declare const maki: typeof GeneratedTypes.maki;
|
|
125
|
-
export declare const map: typeof GeneratedTypes.map;
|
|
126
|
-
export declare const marketeq: typeof GeneratedTypes.marketeq;
|
|
127
|
-
export declare const materialicontheme: typeof GeneratedTypes.materialicontheme;
|
|
128
|
-
export declare const materialsymbols: typeof GeneratedTypes.materialsymbols;
|
|
129
|
-
export declare const materialsymbolslight: typeof GeneratedTypes.materialsymbolslight;
|
|
130
|
-
export declare const mdi: typeof GeneratedTypes.mdi;
|
|
131
|
-
export declare const mdilight: typeof GeneratedTypes.mdilight;
|
|
132
|
-
export declare const medicalicon: typeof GeneratedTypes.medicalicon;
|
|
133
|
-
export declare const memory: typeof GeneratedTypes.memory;
|
|
134
|
-
export declare const meteocons: typeof GeneratedTypes.meteocons;
|
|
135
|
-
export declare const meteoricons: typeof GeneratedTypes.meteoricons;
|
|
136
|
-
export declare const mi: typeof GeneratedTypes.mi;
|
|
137
|
-
export declare const mingcute: typeof GeneratedTypes.mingcute;
|
|
138
|
-
export declare const monoicons: typeof GeneratedTypes.monoicons;
|
|
139
|
-
export declare const mynaui: typeof GeneratedTypes.mynaui;
|
|
140
|
-
export declare const nimbus: typeof GeneratedTypes.nimbus;
|
|
141
|
-
export declare const nonicons: typeof GeneratedTypes.nonicons;
|
|
142
|
-
export declare const noto: typeof GeneratedTypes.noto;
|
|
143
|
-
export declare const notov1: typeof GeneratedTypes.notov1;
|
|
144
|
-
export declare const nrk: typeof GeneratedTypes.nrk;
|
|
145
|
-
export declare const octicon: typeof GeneratedTypes.octicon;
|
|
146
|
-
export declare const oi: typeof GeneratedTypes.oi;
|
|
147
|
-
export declare const ooui: typeof GeneratedTypes.ooui;
|
|
148
|
-
export declare const openmoji: typeof GeneratedTypes.openmoji;
|
|
149
|
-
export declare const oui: typeof GeneratedTypes.oui;
|
|
150
|
-
export declare const pajamas: typeof GeneratedTypes.pajamas;
|
|
151
|
-
export declare const pepicons: typeof GeneratedTypes.pepicons;
|
|
152
|
-
export declare const pepiconspencil: typeof GeneratedTypes.pepiconspencil;
|
|
153
|
-
export declare const pepiconspop: typeof GeneratedTypes.pepiconspop;
|
|
154
|
-
export declare const pepiconsprint: typeof GeneratedTypes.pepiconsprint;
|
|
155
|
-
export declare const ph: typeof GeneratedTypes.ph;
|
|
156
|
-
export declare const picon: typeof GeneratedTypes.picon;
|
|
157
|
-
export declare const pixel: typeof GeneratedTypes.pixel;
|
|
158
|
-
export declare const pixelarticons: typeof GeneratedTypes.pixelarticons;
|
|
159
|
-
export declare const prime: typeof GeneratedTypes.prime;
|
|
160
|
-
export declare const proicons: typeof GeneratedTypes.proicons;
|
|
161
|
-
export declare const ps: typeof GeneratedTypes.ps;
|
|
162
|
-
export declare const qlementineicons: typeof GeneratedTypes.qlementineicons;
|
|
163
|
-
export declare const quill: typeof GeneratedTypes.quill;
|
|
164
|
-
export declare const radixicons: typeof GeneratedTypes.radixicons;
|
|
165
|
-
export declare const raphael: typeof GeneratedTypes.raphael;
|
|
166
|
-
export declare const ri: typeof GeneratedTypes.ri;
|
|
167
|
-
export declare const riveticons: typeof GeneratedTypes.riveticons;
|
|
168
|
-
export declare const si: typeof GeneratedTypes.si;
|
|
169
|
-
export declare const sidekickicons: typeof GeneratedTypes.sidekickicons;
|
|
170
|
-
export declare const siglyph: typeof GeneratedTypes.siglyph;
|
|
171
|
-
export declare const simpleicons: typeof GeneratedTypes.simpleicons;
|
|
172
|
-
export declare const simplelineicons: typeof GeneratedTypes.simplelineicons;
|
|
173
|
-
export declare const skillicons: typeof GeneratedTypes.skillicons;
|
|
174
|
-
export declare const solar: typeof GeneratedTypes.solar;
|
|
175
|
-
export declare const stash: typeof GeneratedTypes.stash;
|
|
176
|
-
export declare const streamline: typeof GeneratedTypes.streamline;
|
|
177
|
-
export declare const streamlineblock: typeof GeneratedTypes.streamlineblock;
|
|
178
|
-
export declare const streamlinecolor: typeof GeneratedTypes.streamlinecolor;
|
|
179
|
-
export declare const streamlinecyber: typeof GeneratedTypes.streamlinecyber;
|
|
180
|
-
export declare const streamlinecybercolor: typeof GeneratedTypes.streamlinecybercolor;
|
|
181
|
-
export declare const streamlineemojis: typeof GeneratedTypes.streamlineemojis;
|
|
182
|
-
export declare const streamlineflex: typeof GeneratedTypes.streamlineflex;
|
|
183
|
-
export declare const streamlineflexcolor: typeof GeneratedTypes.streamlineflexcolor;
|
|
184
|
-
export declare const streamlinefreehand: typeof GeneratedTypes.streamlinefreehand;
|
|
185
|
-
export declare const streamlinefreehandcolor: typeof GeneratedTypes.streamlinefreehandcolor;
|
|
186
|
-
export declare const streamlineguidance: typeof GeneratedTypes.streamlineguidance;
|
|
187
|
-
export declare const streamlinekameleoncolor: typeof GeneratedTypes.streamlinekameleoncolor;
|
|
188
|
-
export declare const streamlinelogos: typeof GeneratedTypes.streamlinelogos;
|
|
189
|
-
export declare const streamlinepixel: typeof GeneratedTypes.streamlinepixel;
|
|
190
|
-
export declare const streamlineplump: typeof GeneratedTypes.streamlineplump;
|
|
191
|
-
export declare const streamlineplumpcolor: typeof GeneratedTypes.streamlineplumpcolor;
|
|
192
|
-
export declare const streamlinesharp: typeof GeneratedTypes.streamlinesharp;
|
|
193
|
-
export declare const streamlinesharpcolor: typeof GeneratedTypes.streamlinesharpcolor;
|
|
194
|
-
export declare const streamlinestickiescolor: typeof GeneratedTypes.streamlinestickiescolor;
|
|
195
|
-
export declare const streamlineultimate: typeof GeneratedTypes.streamlineultimate;
|
|
196
|
-
export declare const streamlineultimatecolor: typeof GeneratedTypes.streamlineultimatecolor;
|
|
197
|
-
export declare const subway: typeof GeneratedTypes.subway;
|
|
198
|
-
export declare const svgspinners: typeof GeneratedTypes.svgspinners;
|
|
199
|
-
export declare const systemuicons: typeof GeneratedTypes.systemuicons;
|
|
200
|
-
export declare const tabler: typeof GeneratedTypes.tabler;
|
|
201
|
-
export declare const tdesign: typeof GeneratedTypes.tdesign;
|
|
202
|
-
export declare const teenyicons: typeof GeneratedTypes.teenyicons;
|
|
203
|
-
export declare const token: typeof GeneratedTypes.token;
|
|
204
|
-
export declare const tokenbranded: typeof GeneratedTypes.tokenbranded;
|
|
205
|
-
export declare const topcoat: typeof GeneratedTypes.topcoat;
|
|
206
|
-
export declare const twemoji: typeof GeneratedTypes.twemoji;
|
|
207
|
-
export declare const typcn: typeof GeneratedTypes.typcn;
|
|
208
|
-
export declare const uil: typeof GeneratedTypes.uil;
|
|
209
|
-
export declare const uim: typeof GeneratedTypes.uim;
|
|
210
|
-
export declare const uis: typeof GeneratedTypes.uis;
|
|
211
|
-
export declare const uit: typeof GeneratedTypes.uit;
|
|
212
|
-
export declare const uiw: typeof GeneratedTypes.uiw;
|
|
213
|
-
export declare const unjs: typeof GeneratedTypes.unjs;
|
|
214
|
-
export declare const vaadin: typeof GeneratedTypes.vaadin;
|
|
215
|
-
export declare const vs: typeof GeneratedTypes.vs;
|
|
216
|
-
export declare const vscodeicons: typeof GeneratedTypes.vscodeicons;
|
|
217
|
-
export declare const websymbol: typeof GeneratedTypes.websymbol;
|
|
218
|
-
export declare const weui: typeof GeneratedTypes.weui;
|
|
219
|
-
export declare const whh: typeof GeneratedTypes.whh;
|
|
220
|
-
export declare const wi: typeof GeneratedTypes.wi;
|
|
221
|
-
export declare const wpf: typeof GeneratedTypes.wpf;
|
|
222
|
-
export declare const zmdi: typeof GeneratedTypes.zmdi;
|
|
223
|
-
export declare const zondicons: typeof GeneratedTypes.zondicons;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export type AsChildTypes = {
|
|
2
|
-
asChild?: true;
|
|
3
|
-
};
|
|
4
|
-
export type AsChildPluginOptions = {
|
|
5
|
-
debug?: boolean;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Rolldown plugin that transforms JSX elements with asChild prop by moving child element props to the parent
|
|
9
|
-
* @param options - Plugin configuration options
|
|
10
|
-
* @returns Rolldown-compatible plugin object
|
|
11
|
-
*/
|
|
12
|
-
export declare const asChild: (options?: AsChildPluginOptions) => {
|
|
13
|
-
name: string;
|
|
14
|
-
enforce: "pre";
|
|
15
|
-
transform: {
|
|
16
|
-
filter: {
|
|
17
|
-
id: import("magic-regexp").MagicRegExp<"/\\.(?:tsx|jsx)$/", never, [], never>;
|
|
18
|
-
};
|
|
19
|
-
handler(code: string, id: string): {
|
|
20
|
-
code: string;
|
|
21
|
-
map: import("magic-string").SourceMap;
|
|
22
|
-
} | null;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export type PacksMap = Record<string, {
|
|
2
|
-
iconifyPrefix: string;
|
|
3
|
-
sanitizeIcon?: (pascal: string) => string;
|
|
4
|
-
}>;
|
|
5
|
-
export type IconsPluginOptions = {
|
|
6
|
-
debug?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* The sources to scan for imports. By default this includes QDS, you can also add your own when creating library wrappers.
|
|
9
|
-
*/
|
|
10
|
-
importSources?: string[];
|
|
11
|
-
packs?: PacksMap;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Rolldown plugin that transforms icon JSX elements to direct <svg /> calls
|
|
15
|
-
* @param options - Plugin configuration options
|
|
16
|
-
* @returns Rolldown-compatible plugin object
|
|
17
|
-
*/
|
|
18
|
-
export declare const icons: (options?: IconsPluginOptions) => {
|
|
19
|
-
name: string;
|
|
20
|
-
enforce: "pre";
|
|
21
|
-
configResolved(): void;
|
|
22
|
-
transform: {
|
|
23
|
-
filter: {
|
|
24
|
-
id: import("magic-regexp").MagicRegExp<"/\\.(?:tsx|jsx|mdx)$/", never, [], never>;
|
|
25
|
-
};
|
|
26
|
-
handler(code: string, id: string): {
|
|
27
|
-
code: string;
|
|
28
|
-
map: import("magic-string").SourceMap;
|
|
29
|
-
} | null;
|
|
30
|
-
};
|
|
31
|
-
resolveId: {
|
|
32
|
-
filter: {
|
|
33
|
-
id: import("magic-regexp").MagicRegExp<"/^virtual:icons\\//", never, [], never>;
|
|
34
|
-
};
|
|
35
|
-
handler(source: string): string | null;
|
|
36
|
-
};
|
|
37
|
-
load: {
|
|
38
|
-
filter: {
|
|
39
|
-
id: import("magic-regexp").MagicRegExp<`/${string}virtual:icons\\//`, never, [], never>;
|
|
40
|
-
};
|
|
41
|
-
handler(id: string): Promise<{
|
|
42
|
-
code: string;
|
|
43
|
-
} | null>;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Rolldown plugin to handle CSS imports with ?inline query parameter
|
|
3
|
-
* Mimics Vite's ?inline behavior by returning CSS content as a string
|
|
4
|
-
*/
|
|
5
|
-
interface PluginContext {
|
|
6
|
-
error: (msg: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function inlineCssPlugin(): {
|
|
9
|
-
name: string;
|
|
10
|
-
resolveId: {
|
|
11
|
-
filter: {
|
|
12
|
-
id: import("magic-regexp").MagicRegExp<"/\\.css(?:$|\\?(?:[^\n])+)/", never, any[], never>;
|
|
13
|
-
};
|
|
14
|
-
handler(source: string, _importer?: string, _options?: unknown): null;
|
|
15
|
-
};
|
|
16
|
-
load: {
|
|
17
|
-
filter: {
|
|
18
|
-
id: import("magic-regexp").MagicRegExp<"/\\.css(?:$|\\?(?:[^\n])+)/", never, any[], never>;
|
|
19
|
-
};
|
|
20
|
-
handler(this: PluginContext, id: string): {
|
|
21
|
-
code: string;
|
|
22
|
-
map: null;
|
|
23
|
-
} | null;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { OutputOptions } from "rolldown";
|
|
2
|
-
/**
|
|
3
|
-
* Plugin to ensure .qwik.mjs extension and correct output dir
|
|
4
|
-
* Runs after qwikRollup to override its settings
|
|
5
|
-
*/
|
|
6
|
-
export declare function qwikRolldown(): {
|
|
7
|
-
name: string;
|
|
8
|
-
outputOptions(outputOpts: OutputOptions): OutputOptions;
|
|
9
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{lib-types/tools/rolldown/as-child.unit.d.ts → lib/playground/scenario-injection.unit.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{lib-types/tools/utils/transform-dts.unit.d.ts → lib/utils/icons/ast/expressions.unit.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
/package/{lib-types/tools/vite/minify-content.unit.d.ts → lib/utils/icons/ast/jsx.unit.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|