azamat-ui-kit-cli 0.3.12 → 0.3.13

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.cjs CHANGED
@@ -449,4 +449,4 @@ export function cn(...inputs: ClassValue[]) {
449
449
  ${e}`),r.sort().forEach(i=>{let n=ze[i],s=Ab(i),o=Db(i,n.category),a=n.registryDependencies?.length?` -> ${n.registryDependencies.join(", ")}`:"";console.log(` ${i} [${s}/${o}]${a}`);});console.log(`
450
450
  Status:`),console.log(" stable = safe public API"),console.log(" preview = usable but API may change"),console.log(" experimental = not ready for stable app contracts"),console.log(" internal = helper metadata"),console.log(`
451
451
  Distribution:`),console.log(" foundation = small runtime-safe primitives, hooks, and helpers"),console.log(" source-copy = copy into app source with init/add and edit locally"),console.log(" system = larger product surfaces, kits, and patterns; prefer source-copy only"),console.log(`
452
- Usage:`),console.log(` ${De("add button input data-table")}`),console.log(` ${De("add form --overwrite")}`);}var qa=Ie(et());async function Ib(t){let e=process.cwd(),r=ne__default.default.join(e,"azamat-ui.json"),i=qa.default.existsSync(r)?await qa.default.readJson(r):{},n=t??i.cssPath??i.globalCssPath??"src/index.css",s=await An({cwd:e,cssPath:n});C.success(`Azamat UI theme CSS yangilandi: ${s}`);}var Ct=Ie(et());var $b={minimal:[{source:"src/lib/utils.ts",target:"{utils}"},{source:"src/components/ui/button.tsx",target:"{ui}/button.tsx"},{source:"src/components/ui/input.tsx",target:"{ui}/input.tsx"},{source:"src/components/ui/card.tsx",target:"{ui}/card.tsx"},{source:"src/components/ui/badge.tsx",target:"{ui}/badge.tsx"}],dashboard:[{source:"src/lib/utils.ts",target:"{utils}"},{source:"src/components/ui/button.tsx",target:"{ui}/button.tsx"},{source:"src/components/ui/input.tsx",target:"{ui}/input.tsx"},{source:"src/components/ui/card.tsx",target:"{ui}/card.tsx"},{source:"src/components/ui/badge.tsx",target:"{ui}/badge.tsx"},{source:"src/components/ui/dropdown-menu.tsx",target:"{ui}/dropdown-menu.tsx"},{source:"src/components/ui/skeleton.tsx",target:"{ui}/skeleton.tsx"},{source:"src/components/ui/tabs.tsx",target:"{ui}/tabs.tsx"},{source:"src/components/feedback/page-state.tsx",target:"{components}/feedback/page-state.tsx"},{source:"src/components/display/property-grid.tsx",target:"{components}/display/property-grid.tsx"},{source:"src/components/display/smart-card.tsx",target:"{components}/display/smart-card.tsx"},{source:"src/components/display/entity-card.tsx",target:"{components}/display/entity-card.tsx"},{source:"src/components/patterns/action-system.tsx",target:"{components}/patterns/action-system.tsx"},{source:"src/components/patterns/status-system.tsx",target:"{components}/patterns/status-system.tsx"},{source:"src/components/patterns/filter-builder.tsx",target:"{components}/patterns/filter-builder.tsx"},{source:"src/components/patterns/data-view.tsx",target:"{components}/patterns/data-view.tsx"},{source:"src/components/patterns/entity-details.tsx",target:"{components}/patterns/entity-details.tsx"},{source:"src/components/patterns/resource-system.tsx",target:"{components}/patterns/resource-system.tsx"},{source:"src/components/patterns/crud-system.tsx",target:"{components}/patterns/crud-system.tsx"},{source:"src/components/form/form-actions.tsx",target:"{components}/form/form-actions.tsx"},{source:"src/components/form/form-section.tsx",target:"{components}/form/form-section.tsx"},{source:"src/components/form/smart-form-shell.tsx",target:"{components}/form/smart-form-shell.tsx"},{source:"src/components/layout/workspace-shell.tsx",target:"{components}/layout/workspace-shell.tsx"}]};function YD(t,e="@"){return e==="@"?t:t.replaceAll("@/",`${e}/`)}function JD(t,e){let r=e.paths?.components??"src/components",i=e.paths?.ui??"src/components/ui",n=e.utilsPath??"src/lib/utils.ts";return t.replaceAll("{components}",r).replaceAll("{ui}",i).replaceAll("{utils}",n)}async function Mb(t,e={}){let r=$b[t];r||(C.error(`Preset topilmadi: ${t}`),process.exit(1));let i=process.cwd(),n=ne__default.default.join(i,"azamat-ui.json");Ct.default.existsSync(n)||(C.error("azamat-ui.json topilmadi. Avval init qiling."),process.exit(1));let s=await Ct.default.readJson(n),o=In((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));for(let a of r){let c=ne__default.default.join(o,a.source),u=ne__default.default.join(i,JD(a.target,s));if(e.dryRun){C.info(`[dry-run] ${a.source} -> ${ne__default.default.relative(i,u)}`);continue}if(Ct.default.existsSync(u)&&!e.overwrite){C.warn(`${ne__default.default.relative(i,u)} allaqachon mavjud.`);continue}await Ct.default.ensureDir(ne__default.default.dirname(u)),await Ct.default.writeFile(u,YD(await Ct.default.readFile(c,"utf8"),s.alias)),C.success(`${ne__default.default.relative(i,u)} qo\u2018shildi.`);}}var _t=new kt;_t.name("azamat-ui-kit").description("Azamat UI Kit source-copy CLI").version("0.3.12");_t.command("init").description("Initialize local Azamat UI source files in your project").option("--template <template>","Project defaults: vite or next","vite").option("--skip-install","Do not install base dependencies").option("-y, --defaults","Use template defaults without interactive prompts").action(Tb);_t.command("preset").description("Add a source-copy preset to your project").argument("<name>","preset name: minimal or dashboard").option("-o, --overwrite","overwrite existing files").option("--dry-run","show files without writing").option("--skip-install","do not install package dependencies").action(Mb);_t.command("list").description("List available registry components").action(Pb);_t.command("add").description("Copy component source files into your project").argument("[components...]","components to add").option("-o, --overwrite","overwrite existing files").option("--dry-run","show files without writing").option("--skip-install","do not install package dependencies").action(kb);_t.command("theme").description("Write or update Azamat UI theme CSS in your global CSS file").argument("[cssPath]","global CSS path, default from azamat-ui.json or src/index.css").action(Ib);_t.parse();
452
+ Usage:`),console.log(` ${De("add button input data-table")}`),console.log(` ${De("add form --overwrite")}`);}var qa=Ie(et());async function Ib(t){let e=process.cwd(),r=ne__default.default.join(e,"azamat-ui.json"),i=qa.default.existsSync(r)?await qa.default.readJson(r):{},n=t??i.cssPath??i.globalCssPath??"src/index.css",s=await An({cwd:e,cssPath:n});C.success(`Azamat UI theme CSS yangilandi: ${s}`);}var Ct=Ie(et());var $b={minimal:[{source:"src/lib/utils.ts",target:"{utils}"},{source:"src/components/ui/button.tsx",target:"{ui}/button.tsx"},{source:"src/components/ui/input.tsx",target:"{ui}/input.tsx"},{source:"src/components/ui/card.tsx",target:"{ui}/card.tsx"},{source:"src/components/ui/badge.tsx",target:"{ui}/badge.tsx"}],dashboard:[{source:"src/lib/utils.ts",target:"{utils}"},{source:"src/components/ui/button.tsx",target:"{ui}/button.tsx"},{source:"src/components/ui/input.tsx",target:"{ui}/input.tsx"},{source:"src/components/ui/card.tsx",target:"{ui}/card.tsx"},{source:"src/components/ui/badge.tsx",target:"{ui}/badge.tsx"},{source:"src/components/ui/dropdown-menu.tsx",target:"{ui}/dropdown-menu.tsx"},{source:"src/components/ui/skeleton.tsx",target:"{ui}/skeleton.tsx"},{source:"src/components/ui/tabs.tsx",target:"{ui}/tabs.tsx"},{source:"src/components/feedback/page-state.tsx",target:"{components}/feedback/page-state.tsx"},{source:"src/components/display/property-grid.tsx",target:"{components}/display/property-grid.tsx"},{source:"src/components/display/smart-card.tsx",target:"{components}/display/smart-card.tsx"},{source:"src/components/display/entity-card.tsx",target:"{components}/display/entity-card.tsx"},{source:"src/components/patterns/action-system.tsx",target:"{components}/patterns/action-system.tsx"},{source:"src/components/patterns/status-system.tsx",target:"{components}/patterns/status-system.tsx"},{source:"src/components/patterns/filter-builder.tsx",target:"{components}/patterns/filter-builder.tsx"},{source:"src/components/patterns/data-view.tsx",target:"{components}/patterns/data-view.tsx"},{source:"src/components/patterns/entity-details.tsx",target:"{components}/patterns/entity-details.tsx"},{source:"src/components/patterns/resource-system.tsx",target:"{components}/patterns/resource-system.tsx"},{source:"src/components/patterns/crud-system.tsx",target:"{components}/patterns/crud-system.tsx"},{source:"src/components/form/form-actions.tsx",target:"{components}/form/form-actions.tsx"},{source:"src/components/form/form-section.tsx",target:"{components}/form/form-section.tsx"},{source:"src/components/form/smart-form-shell.tsx",target:"{components}/form/smart-form-shell.tsx"},{source:"src/components/layout/workspace-shell.tsx",target:"{components}/layout/workspace-shell.tsx"}]};function YD(t,e="@"){return e==="@"?t:t.replaceAll("@/",`${e}/`)}function JD(t,e){let r=e.paths?.components??"src/components",i=e.paths?.ui??"src/components/ui",n=e.utilsPath??"src/lib/utils.ts";return t.replaceAll("{components}",r).replaceAll("{ui}",i).replaceAll("{utils}",n)}async function Mb(t,e={}){let r=$b[t];r||(C.error(`Preset topilmadi: ${t}`),process.exit(1));let i=process.cwd(),n=ne__default.default.join(i,"azamat-ui.json");Ct.default.existsSync(n)||(C.error("azamat-ui.json topilmadi. Avval init qiling."),process.exit(1));let s=await Ct.default.readJson(n),o=In((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));for(let a of r){let c=ne__default.default.join(o,a.source),u=ne__default.default.join(i,JD(a.target,s));if(e.dryRun){C.info(`[dry-run] ${a.source} -> ${ne__default.default.relative(i,u)}`);continue}if(Ct.default.existsSync(u)&&!e.overwrite){C.warn(`${ne__default.default.relative(i,u)} allaqachon mavjud.`);continue}await Ct.default.ensureDir(ne__default.default.dirname(u)),await Ct.default.writeFile(u,YD(await Ct.default.readFile(c,"utf8"),s.alias)),C.success(`${ne__default.default.relative(i,u)} qo\u2018shildi.`);}}var _t=new kt;_t.name("azamat-ui-kit").description("Azamat UI Kit source-copy CLI").version("0.3.13");_t.command("init").description("Initialize local Azamat UI source files in your project").option("--template <template>","Project defaults: vite or next","vite").option("--skip-install","Do not install base dependencies").option("-y, --defaults","Use template defaults without interactive prompts").action(Tb);_t.command("preset").description("Add a source-copy preset to your project").argument("<name>","preset name: minimal or dashboard").option("-o, --overwrite","overwrite existing files").option("--dry-run","show files without writing").option("--skip-install","do not install package dependencies").action(Mb);_t.command("list").description("List available registry components").action(Pb);_t.command("add").description("Copy component source files into your project").argument("[components...]","components to add").option("-o, --overwrite","overwrite existing files").option("--dry-run","show files without writing").option("--skip-install","do not install package dependencies").action(kb);_t.command("theme").description("Write or update Azamat UI theme CSS in your global CSS file").argument("[cssPath]","global CSS path, default from azamat-ui.json or src/index.css").action(Ib);_t.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azamat-ui-kit-cli",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "description": "CLI for Azamat UI Kit source-copy, presets, and theme setup.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,12 +1,12 @@
1
- export * from "./app-shell"
2
- export * from "./app-header"
3
- export * from "./app-sidebar"
4
- export * from "./page-header"
5
- export * from "./section-header"
6
- export * from "./stat-card"
7
- export * from "./sidebar-nav"
8
- export * from "./breadcrumbs"
9
- export * from "./page-container"
10
- export * from "./section"
11
- export * from "./stack"
12
- export * from "./sticky-footer-bar"
1
+ export * from "./app-sidebar"
2
+ export * from "./sidebar-nav"
3
+ export * from "./breadcrumbs"
4
+ export * from "./app-shell"
5
+ export * from "./app-header"
6
+ export * from "./page-header"
7
+ export * from "./page-container"
8
+ export * from "./section-header"
9
+ export * from "./stat-card"
10
+ export * from "./section"
11
+ export * from "./stack"
12
+ export * from "./sticky-footer-bar"