synthesisui 0.16.32 → 0.16.33
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/guide.js +14 -3
- package/package.json +1 -1
package/dist/guide.js
CHANGED
|
@@ -108,11 +108,22 @@ ${nextFonts.css.map((l) => ` ${l}`).join("\n")}
|
|
|
108
108
|
// install them when it actually renders icons/charts (INS-19).
|
|
109
109
|
const iconLibraries = doc.icons?.libraries ?? [];
|
|
110
110
|
const hasCharts = !!doc.charts && Object.keys(doc.charts).length > 0;
|
|
111
|
+
// One line per enabled library - the studio's choice travels to the repo.
|
|
112
|
+
const ICON_PKGS = {
|
|
113
|
+
lucide: { label: "Lucide", pkg: "lucide-react" },
|
|
114
|
+
heroicons: { label: "Heroicons", pkg: "@heroicons/react" },
|
|
115
|
+
phosphor: { label: "Phosphor", pkg: "@phosphor-icons/react" },
|
|
116
|
+
tabler: { label: "Tabler", pkg: "@tabler/icons-react" },
|
|
117
|
+
remix: { label: "Remix Icon", pkg: "@remixicon/react" },
|
|
118
|
+
hugeicons: { label: "HugeIcons", pkg: "hugeicons-react" },
|
|
119
|
+
};
|
|
111
120
|
const depLines = [
|
|
112
|
-
iconLibraries
|
|
113
|
-
|
|
121
|
+
...iconLibraries
|
|
122
|
+
.filter((l) => ICON_PKGS[l])
|
|
123
|
+
.map((l) => l === "lucide"
|
|
124
|
+
? "- **Icons - Lucide** - components reference Lucide icon names. Run `npm i lucide-react` " +
|
|
114
125
|
"(or swap in your own icon set) to render them."
|
|
115
|
-
:
|
|
126
|
+
: `- **Icons - ${ICON_PKGS[l].label}** - enabled for this system. Run \`npm i ${ICON_PKGS[l].pkg}\` when you render its icons (resolve its own icon names at use time).`),
|
|
116
127
|
hasCharts
|
|
117
128
|
? "- **Charts** - charts are themed through your series tokens, but you bring the " +
|
|
118
129
|
"renderer. Run `npm i recharts` (the gallery uses Recharts)."
|
package/package.json
CHANGED