7onic 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1342,7 +1342,7 @@ async function init(args) {
1342
1342
  }
1343
1343
  const tailwindVersion = config.tailwindVersion;
1344
1344
  const s = fe();
1345
- const baseDeps = ["@7onic-ui/tokens", "clsx", "tailwind-merge", "class-variance-authority"];
1345
+ const baseDeps = ["@7onic-ui/tokens", "lucide-react", "clsx", "tailwind-merge", "class-variance-authority"];
1346
1346
  s.start(`Installing dependencies (${pm})...`);
1347
1347
  try {
1348
1348
  installDeps(baseDeps, { cwd: projectRoot, pm });
@@ -12583,11 +12583,16 @@ export {
12583
12583
  }]
12584
12584
  }
12585
12585
  };
12586
- var CHART_ALIASES = {
12586
+ var COMPONENT_ALIASES = {
12587
+ // Chart aliases
12587
12588
  "bar-chart": "chart",
12588
12589
  "line-chart": "chart",
12589
12590
  "area-chart": "chart",
12590
- "pie-chart": "chart"
12591
+ "pie-chart": "chart",
12592
+ // Convenience aliases
12593
+ "radio": "radio-group",
12594
+ "nav": "navigation-menu",
12595
+ "dropdown-menu": "dropdown"
12591
12596
  };
12592
12597
  var INSTALLABLE_COMPONENTS = [
12593
12598
  "accordion",
@@ -12655,7 +12660,7 @@ async function add(args) {
12655
12660
  } else {
12656
12661
  requestedNames = [];
12657
12662
  for (const arg of componentArgs) {
12658
- const resolved = CHART_ALIASES[arg] || arg;
12663
+ const resolved = COMPONENT_ALIASES[arg] || arg;
12659
12664
  if (!registry[resolved]) {
12660
12665
  const suggestion = findSimilar(resolved, [...INSTALLABLE_COMPONENTS]);
12661
12666
  logger.error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "7onic",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CLI for adding 7onic design system components to your project",
5
5
  "bin": {
6
6
  "7onic": "./dist/index.js"