@cyclone-ui/cli 0.6.53 → 0.6.55
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/{add-DPokT1hK.mjs → add-BHg4MlSp.mjs} +1 -1
- package/dist/{add-DQKGLPOn.mjs → add-BIlw7zF-.mjs} +1 -1
- package/dist/{add-GNCHFUro.mjs → add-B_-KHrG_.mjs} +1 -1
- package/dist/add.mjs +1 -1
- package/dist/{analyze-a11y-CwK4OcO4.mjs → analyze-a11y-BkTBiCcN.mjs} +1 -1
- package/dist/{analyze-a11y-fkKCjytG.mjs → analyze-a11y-DdGFv2mD.mjs} +1 -1
- package/dist/{analyze-a11y-4bu4ibam.mjs → analyze-a11y-maE17Idr.mjs} +1 -1
- package/dist/analyze-a11y.mjs +1 -1
- package/dist/bin.mjs +7 -7
- package/dist/{build-XUcFaQ2E.mjs → build-Bb-7dkti.mjs} +1 -1
- package/dist/{build-ougIYOoq.mjs → build-Bfn76Qe5.mjs} +1 -1
- package/dist/{build-DMAGgGOa.mjs → build-DpAzw66b.mjs} +1 -1
- package/dist/{build-tokens-Bn7Fr8qV.mjs → build-tokens-5ucTXnKw.mjs} +1 -1
- package/dist/{build-tokens-DMQ-OOwq.mjs → build-tokens-CzrV9b7h.mjs} +1 -1
- package/dist/{build-tokens-BNrRpdIz.mjs → build-tokens-DntVTo_u.mjs} +1 -1
- package/dist/build-tokens.mjs +1 -1
- package/dist/build.mjs +1 -1
- package/dist/{changelog-DDdBCdUG.mjs → changelog-7025TH6V.mjs} +1 -1
- package/dist/{changelog-D_A3KrEF.mjs → changelog-B31tnJcL.mjs} +1 -1
- package/dist/{changelog-C2MF6VPU.mjs → changelog-CFOcSfxw.mjs} +1 -1
- package/dist/changelog.mjs +15 -1
- package/dist/{command-C5h8HOLC.mjs → command-CMcWz3iV.mjs} +1 -1
- package/dist/{command-Cdm3lmkg.mjs → command-OoJoXj_K.mjs} +1 -1
- package/dist/{command-rTDu6fvo.mjs → command-vr1ABPf9.mjs} +1 -1
- package/dist/completions-bash-config.mjs +1 -1
- package/dist/completions-bash-script.mjs +1 -1
- package/dist/completions-fish-config.mjs +1 -1
- package/dist/completions-fish-script.mjs +1 -1
- package/dist/completions-powershell-config.mjs +1 -1
- package/dist/completions-powershell-script.mjs +1 -1
- package/dist/completions-zsh-config.mjs +1 -1
- package/dist/completions-zsh-script.mjs +1 -1
- package/dist/{config-CFvyIlOB.mjs → config-5y5X30dW.mjs} +1 -1
- package/dist/{config-DJAPaFh1.mjs → config-BGTWLMya.mjs} +1 -1
- package/dist/{config-CLmy4COo.mjs → config-BvT89u3w.mjs} +1 -1
- package/dist/{config-DRWa9x5s.mjs → config-C0e72hJa.mjs} +1 -1
- package/dist/{config-Bk0Q1SFX.mjs → config-Ce7KS8QZ.mjs} +1 -1
- package/dist/{config-DL-I6jsz.mjs → config-D_TyS1bm.mjs} +1 -1
- package/dist/{config-DJ0az5L-.mjs → config-DdQWmOZc.mjs} +1 -1
- package/dist/{config-Cccbrx4C.mjs → config-DsaK7YKw.mjs} +1 -1
- package/dist/{config-Y9S7A52e.mjs → config-FZnzsDvH.mjs} +1 -1
- package/dist/{config-WvLCfTFt.mjs → config-LFf-tKnD.mjs} +1 -1
- package/dist/{config-09XkZ6B0.mjs → config-QijvdV0z.mjs} +1 -1
- package/dist/{config-BRyXcAE-.mjs → config-d2hOBQQg.mjs} +1 -1
- package/dist/{console-CbTVEXGv.mjs → console-D7d3icNI.mjs} +1 -1
- package/dist/{console-DM5JkrS2.mjs → console-DJf8zd5t.mjs} +1 -1
- package/dist/{console-wORCSoyV.mjs → console-XFQPL5XU.mjs} +1 -1
- package/dist/{design-system-DuEKr2bt.mjs → design-system-BAQckeDr.mjs} +1 -1
- package/dist/{design-system-wjtk7fSU.mjs → design-system-eDws99LA.mjs} +1 -1
- package/dist/{diff-C2ySCXXb.mjs → diff-BFLYtio2.mjs} +1 -1
- package/dist/{diff-DO0iRl1F.mjs → diff-Be-1S7tI.mjs} +1 -1
- package/dist/{diff-2-foR9Ik.mjs → diff-C6Ye4FxN.mjs} +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/{docs-O-yX9iA6.mjs → docs-CbZEekoe.mjs} +1 -1
- package/dist/{docs-vshJD9tB.mjs → docs-Cn0nYmf_.mjs} +1 -1
- package/dist/{docs-CZxxzPEe.mjs → docs-Qn4y5HCF.mjs} +1 -1
- package/dist/docs.mjs +1 -1
- package/dist/{guidelines-TYmEulhF.mjs → guidelines-CAZKqwvP.mjs} +1 -1
- package/dist/{guidelines-VpYBuvZz.mjs → guidelines-CTt2haTC.mjs} +1 -1
- package/dist/{guidelines-DSjxaPA_.mjs → guidelines-DrsYsEd-.mjs} +1 -1
- package/dist/guidelines.mjs +1 -1
- package/dist/help.mjs +1 -1
- package/dist/{info-D5wcXVLl.mjs → info-B7Uf6EvS.mjs} +1 -1
- package/dist/{info-Y9P1Qfwj.mjs → info-PwMhqgS0.mjs} +1 -1
- package/dist/{info-BEUljuGg.mjs → info-Qsr4ToHn.mjs} +1 -1
- package/dist/info.mjs +1 -1
- package/dist/{init-Dt-UWDXe.mjs → init-BSjJgOC0.mjs} +1 -1
- package/dist/{init-dA7lQGhy.mjs → init-BU9RoR3a.mjs} +1 -1
- package/dist/{init-D_Wsc0yQ.mjs → init-CFVt4AJ1.mjs} +1 -1
- package/dist/init.mjs +1 -1
- package/dist/{list-components-DkcAigdR.mjs → list-components-CcEDKjn2.mjs} +1 -1
- package/dist/{list-components-c9kM44ju.mjs → list-components-DkQjOSjH.mjs} +1 -1
- package/dist/{list-components-CZK-6NSr.mjs → list-components-DqjK3B61.mjs} +1 -1
- package/dist/list-components.mjs +1 -1
- package/dist/{list-fonts-BNMIoEaa.mjs → list-fonts-8k7nmbVM.mjs} +1 -1
- package/dist/{list-fonts-BR0-AjNf.mjs → list-fonts-BJ8lKa4Z.mjs} +1 -1
- package/dist/{list-fonts-B5J95_Ba.mjs → list-fonts-CBhEqZ9v.mjs} +1 -1
- package/dist/list-fonts.mjs +1 -1
- package/dist/{list-icons-ChVLOcml.mjs → list-icons-CEvXIVMo.mjs} +1 -1
- package/dist/{list-icons-DdC8yZPn.mjs → list-icons-DSwEhpg-.mjs} +1 -1
- package/dist/{list-icons-Cg1qNurD.mjs → list-icons-v83sEHFP.mjs} +1 -1
- package/dist/list-icons.mjs +1 -1
- package/dist/{list-tokens-BjoSu7G5.mjs → list-tokens-DLuDxNKH.mjs} +1 -1
- package/dist/{list-tokens-D5yzRgs9.mjs → list-tokens-DrdHvBjO.mjs} +1 -1
- package/dist/{list-tokens-DLass9AT.mjs → list-tokens-PAERjvfM.mjs} +1 -1
- package/dist/list-tokens.mjs +1 -1
- package/dist/{mcp-C7ETqSFf.mjs → mcp-C7lEKFm0.mjs} +1 -1
- package/dist/{mcp-CeoyPsZ-.mjs → mcp-COMCWQFw.mjs} +1 -1
- package/dist/{mcp-MrmalXQe.mjs → mcp-CqC2pbZI.mjs} +1 -1
- package/dist/mcp.mjs +1 -1
- package/dist/{plan-CCbHFiDw.mjs → plan-BGNxbeNc.mjs} +1 -1
- package/dist/{plan-CdztEvXY.mjs → plan-CUJuJA8v.mjs} +1 -1
- package/dist/{plan-CzqObsPD.mjs → plan-G_s6g6Gi.mjs} +1 -1
- package/dist/plan.mjs +1 -1
- package/dist/{prompts-BteGXpT9.mjs → prompts-CRbra4-g.mjs} +1 -1
- package/dist/{prompts-CpFV4ExT.mjs → prompts-E6mdyuqG.mjs} +1 -1
- package/dist/{prompts-DO2vKqwQ.mjs → prompts-c1C-9GiB.mjs} +1 -1
- package/dist/{registry-BOpKKYb5.mjs → registry-BuHiT5a-.mjs} +1 -1
- package/dist/{registry-C2yKcV3W.mjs → registry-CQsy7IOa.mjs} +1 -1
- package/dist/{registry-COg9wr04.mjs → registry-Vx12Gns_.mjs} +1 -1
- package/dist/registry-validate.mjs +1 -1
- package/dist/{script-DO5UWWVs.mjs → script-BC8VBrnc.mjs} +1 -1
- package/dist/{script-BZOhweOt.mjs → script-Bpo8D-7t.mjs} +1 -1
- package/dist/{script-e5z5X74L.mjs → script-C9h5eih9.mjs} +1 -1
- package/dist/{script-y8sLyN5y.mjs → script-CPsr30ue.mjs} +1 -1
- package/dist/{script-DBo0qda0.mjs → script-CnG3Hu_5.mjs} +1 -1
- package/dist/{script-DZi-qeUQ.mjs → script-Cunsvgi5.mjs} +1 -1
- package/dist/{script-DN7KctDu.mjs → script-CvvlvYkN.mjs} +1 -1
- package/dist/{script-Dx2zuz-i.mjs → script-DJvDKDS8.mjs} +1 -1
- package/dist/{script-BpTCmjuQ.mjs → script-Daj-ueWK.mjs} +1 -1
- package/dist/{script-QHGQfCdZ.mjs → script-DyUad0EY.mjs} +1 -1
- package/dist/{script-DmyDuaPL.mjs → script-ZaJvAaiA.mjs} +1 -1
- package/dist/{script-BLPGisOM.mjs → script-xafDCf9m.mjs} +1 -1
- package/dist/{search-CTA99XdO.mjs → search-7xuxJA50.mjs} +1 -1
- package/dist/{search-DoT6MAjd.mjs → search-BJ3fyFr4.mjs} +1 -1
- package/dist/{search-B1MK43lF.mjs → search-IA3JQIiU.mjs} +1 -1
- package/dist/{search-components-Bxy0jgHS.mjs → search-components-BCkqdy1-.mjs} +1 -1
- package/dist/{search-components-DbHu9GBB.mjs → search-components-BMAloga1.mjs} +1 -1
- package/dist/{search-components-B6JSK94l.mjs → search-components-BXgP78vp.mjs} +1 -1
- package/dist/search-components.mjs +1 -1
- package/dist/{search-fonts-CKEdfAi9.mjs → search-fonts-DGnqubm8.mjs} +1 -1
- package/dist/{search-fonts-TC-8l8G4.mjs → search-fonts-QPQgaO-Y.mjs} +1 -1
- package/dist/{search-fonts-BX1QdBB9.mjs → search-fonts-usruS31s.mjs} +1 -1
- package/dist/search-fonts.mjs +1 -1
- package/dist/{search-icons-BiG8cdjC.mjs → search-icons-DD9MV7vH.mjs} +1 -1
- package/dist/{search-icons-BwoiZ8j8.mjs → search-icons-DK2NRIng.mjs} +1 -1
- package/dist/{search-icons-B-wO5470.mjs → search-icons-DRaD2VnN.mjs} +1 -1
- package/dist/search-icons.mjs +1 -1
- package/dist/{search-tokens-QkiTxb_5.mjs → search-tokens-Bgl8cvcq.mjs} +1 -1
- package/dist/{search-tokens-eJHP6C_G.mjs → search-tokens-CuCZfWCX.mjs} +1 -1
- package/dist/{search-tokens-iI0vNZl5.mjs → search-tokens-DT_dj-3J.mjs} +1 -1
- package/dist/search-tokens.mjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/{update-DxRHO6Im.mjs → update-BAYdLiLl.mjs} +1 -1
- package/dist/{update-BlgGIbe-.mjs → update-BMlBcO6_.mjs} +1 -1
- package/dist/{update-Vx4Pk3We.mjs → update-Bv7YovpS.mjs} +1 -1
- package/dist/{update-BREoMkLE.mjs → update-C9kmvk3J.mjs} +1 -1
- package/dist/{update-_gLLOSf1.mjs → update-DiBj5erK.mjs} +1 -1
- package/dist/{update-Be5yFsYf.mjs → update-ZGuLQgxn.mjs} +1 -1
- package/dist/{update-components-BSjhmws1.mjs → update-components-BdaYV2WD.mjs} +1 -1
- package/dist/{update-components-Bb2xmjPU.mjs → update-components-Cy36tKme.mjs} +1 -1
- package/dist/{update-components-NTu-zT4g.mjs → update-components-DY5Yilm0.mjs} +1 -1
- package/dist/update-components.mjs +1 -1
- package/dist/update.mjs +1 -1
- package/dist/{validate-DU8E0APJ.mjs → validate-BRuJqQrv.mjs} +1 -1
- package/dist/{validate-oPToQA_k.mjs → validate-CSCwiUjU.mjs} +1 -1
- package/dist/{validate-DGIzkWaJ.mjs → validate-DQyk6Vk8.mjs} +1 -1
- package/dist/{view-ByXk2cR8.mjs → view-6AjEhnFt.mjs} +1 -1
- package/dist/{view-SYO8SdSj.mjs → view-AoviS8NF.mjs} +1 -1
- package/dist/{view-0lOz2c8T.mjs → view-DiCNQxV0.mjs} +1 -1
- package/dist/view.mjs +1 -1
- package/package.json +4 -4
package/dist/list-components.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./prompts-
|
|
1
|
+
import{a as e}from"./prompts-E6mdyuqG.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-XFQPL5XU.mjs";import{t as b}from"./list-components-DkQjOSjH.mjs";import{t as x}from"./update-C9kmvk3J.mjs";import{t as S}from"./design-system-eDws99LA.mjs";import{listComponents as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.54`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`List Components`).length+2))/2),0))+h(g.banner.command.primary(`List Components`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`List Components`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Return every design-system component record. Large output - prefer search-components for normal use.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=y()){let t={...u()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return a(`quiet`)||(await w(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():l(`list-components`,[`list-components`],[],E)}export{D as handler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DJf8zd5t.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.fonts?a.tags.fonts(n(` Fonts `)):a.tags.default(n(` Fonts `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-fonts`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Fonts command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-fonts`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-XFQPL5XU.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.fonts?a.tags.fonts(n(` Fonts `)):a.tags.default(n(` Fonts `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-fonts`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Fonts command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-fonts`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-D7d3icNI.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.fonts?a.tags.fonts(n(` Fonts `)):a.tags.default(n(` Fonts `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-fonts`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Fonts command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-fonts`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
package/dist/list-fonts.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./prompts-
|
|
1
|
+
import{a as e}from"./prompts-E6mdyuqG.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-XFQPL5XU.mjs";import{t as b}from"./list-fonts-BJ8lKa4Z.mjs";import{t as x}from"./update-C9kmvk3J.mjs";import{t as S}from"./design-system-eDws99LA.mjs";import{listFonts as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.54`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`List Fonts`).length+2))/2),0))+h(g.banner.command.primary(`List Fonts`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`List Fonts`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Return every design-system font record.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=y()){let t={...u()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return a(`quiet`)||(await w(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():l(`list-fonts`,[`list-fonts`],[],E)}export{D as handler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-D7d3icNI.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.icons?a.tags.icons(n(` Icons `)):a.tags.default(n(` Icons `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-icons`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Icons command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-icons`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DJf8zd5t.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.icons?a.tags.icons(n(` Icons `)):a.tags.default(n(` Icons `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-icons`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Icons command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-icons`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-XFQPL5XU.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.icons?a.tags.icons(n(` Icons `)):a.tags.default(n(` Icons `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-icons`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Icons command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-icons`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
package/dist/list-icons.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./prompts-
|
|
1
|
+
import{a as e}from"./prompts-E6mdyuqG.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-XFQPL5XU.mjs";import{t as b}from"./list-icons-v83sEHFP.mjs";import{t as x}from"./update-C9kmvk3J.mjs";import{t as S}from"./design-system-eDws99LA.mjs";import{listIcons as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.54`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`List Icons`).length+2))/2),0))+h(g.banner.command.primary(`List Icons`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`List Icons`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Return every design-system icon record. Large output - prefer search-icons for normal use.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=y()){let t={...u()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return a(`quiet`)||(await w(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():l(`list-icons`,[`list-icons`],[],E)}export{D as handler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DJf8zd5t.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.tokens?a.tags.tokens(n(` Tokens `)):a.tags.default(n(` Tokens `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-tokens`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Tokens command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-tokens`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-XFQPL5XU.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.tokens?a.tags.tokens(n(` Tokens `)):a.tags.default(n(` Tokens `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-tokens`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Tokens command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-tokens`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-D7d3icNI.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.tokens?a.tags.tokens(n(` Tokens `)):a.tags.default(n(` Tokens `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-tokens`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Tokens command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-tokens`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
package/dist/list-tokens.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./prompts-
|
|
1
|
+
import{a as e}from"./prompts-E6mdyuqG.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-XFQPL5XU.mjs";import{t as b}from"./list-tokens-DrdHvBjO.mjs";import{t as x}from"./update-C9kmvk3J.mjs";import{t as S}from"./design-system-eDws99LA.mjs";import{listTokens as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.54`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`List Tokens`).length+2))/2),0))+h(g.banner.command.primary(`List Tokens`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`List Tokens`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Return every design token (name, value, type, description, CSS variable). Large output - prefer search-tokens for normal use.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=y()){let t={...u()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return a(`quiet`)||(await w(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():l(`list-tokens`,[`list-tokens`],[],E)}export{D as handler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DJf8zd5t.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.ai?a.tags.ai(n(` AI `)):a.tags.default(n(` AI `))} ${a.tags.utility?a.tags.utility(n(` Utility `)):a.tags.default(n(` Utility `))} ${a.tags.mcp?a.tags.mcp(n(` MCP `)):a.tags.default(n(` MCP `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`mcp`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--include-self`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Whether to expose the MCP command itself as a tool in the generated server (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the MCP Server command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/mcp`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-D7d3icNI.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.ai?a.tags.ai(n(` AI `)):a.tags.default(n(` AI `))} ${a.tags.utility?a.tags.utility(n(` Utility `)):a.tags.default(n(` Utility `))} ${a.tags.mcp?a.tags.mcp(n(` MCP `)):a.tags.default(n(` MCP `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`mcp`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--include-self`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Whether to expose the MCP command itself as a tool in the generated server (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the MCP Server command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/mcp`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-XFQPL5XU.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.ai?a.tags.ai(n(` AI `)):a.tags.default(n(` AI `))} ${a.tags.utility?a.tags.utility(n(` Utility `)):a.tags.default(n(` Utility `))} ${a.tags.mcp?a.tags.mcp(n(` MCP `)):a.tags.default(n(` MCP `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`mcp`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--include-self`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Whether to expose the MCP command itself as a tool in the generated server (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the MCP Server command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/mcp`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
package/dist/mcp.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./mcp-
|
|
1
|
+
import{t as e}from"./mcp-CqC2pbZI.mjs";import{I as t,U as n,V as r,z as i}from"./console-XFQPL5XU.mjs";import{defineMetadata as a,defineOptions as o}from"@shell-shock/core";import{McpServer as s}from"@modelcontextprotocol/server";import{StdioServerTransport as c}from"@modelcontextprotocol/server/stdio";import{z as l}from"zod/v4";const u=[{id:`add`,name:`add`,path:`add`,segments:[`add`],title:`Add`,description:`Adds a new component to the project. Do not change installed or added Cyclone UI component files unless the user specifically instructs you to do so.
|
|
2
2
|
Options: --cwd (string), --overwrite (boolean), --all (boolean), --path (string), --dry-run (boolean), --diff (boolean), --view (boolean), --silent (boolean), --registry (string), --rsc (boolean)
|
|
3
3
|
Args: components:string[]`,toolName:`add`,options:[{name:`cwd`,title:`Current Working Directory`,description:`The working directory.`,type:`string`,required:!1,variadic:!1},{name:`overwrite`,title:`Overwrite`,description:`Overwrite existing files.`,type:`boolean`,required:!1,variadic:!1},{name:`all`,title:`All`,description:`Add every available component.`,type:`boolean`,required:!1,variadic:!1},{name:`path`,title:`Path`,description:`Override the configured component output path.`,type:`string`,required:!1,variadic:!1},{name:`dryRun`,title:`Dry Run`,description:`Preview changes without writing files.`,type:`boolean`,required:!1,variadic:!1},{name:`diff`,title:`Diff`,description:`Show the changes as a diff without writing files.`,type:`boolean`,required:!1,variadic:!1},{name:`view`,title:`View`,description:`Show resolved file contents without writing files.`,type:`boolean`,required:!1,variadic:!1},{name:`silent`,title:`Silent`,description:`Mute non-essential output.`,type:`boolean`,required:!1,variadic:!1},{name:`registry`,title:`Registry`,description:`Override the configured registry URL.`,type:`string`,required:!1,variadic:!1},{name:`rsc`,title:`React Server Components`,description:`Override React Server Component support for this installation.`,type:`boolean`,required:!1,variadic:!1}],args:[{name:`components`,title:`Components`,description:"Component names to add; `email` adds every React Email component.",type:`string`,required:!1,variadic:!0}]},{id:`analyze-a11y`,name:`analyze-a11y`,path:`analyze-a11y`,segments:[`analyze-a11y`],title:`Analyze Accessibility`,description:`Analyze a React/JSX source string (or file) for likely accessibility issues and hard-coded colors, suggesting the nearest design tokens for each color.
|
|
4
4
|
Options: --code (string), --file (string), --component-name (string), --context (string), --pattern-analysis (boolean)`,toolName:`analyze-a11y`,options:[{name:`code`,title:`Code`,description:`Source code of a React component or JSX snippet to analyze.`,type:`string`,required:!1,variadic:!1},{name:`file`,title:`File`,description:`Path to a source file to analyze (alternative to --code).`,type:`string`,required:!1,variadic:!1},{name:`componentName`,title:`Component Name`,description:`Optional label for the component under review.`,type:`string`,required:!1,variadic:!1},{name:`context`,title:`Context`,description:`Optional usage context (for example "in a form" or "modal").`,type:`string`,required:!1,variadic:!1},{name:`patternAnalysis`,title:`Pattern Analysis`,description:`Run regex-based heuristics (unlabeled buttons, missing alt, …).`,type:`boolean`,required:!1,variadic:!1}],args:[]},{id:`build`,name:`build`,path:`build`,segments:[`build`],title:`Build`,description:`Generate design tokens and build the resulting Tamagui config.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-XFQPL5XU.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`plan`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--components <components...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for components.`),align:`left`,border:`none`}],[{value:a.body.primary(`--fonts <fonts...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for fonts.`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--icons <icons...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for icons.`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term for each list (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--tokens <tokens...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for design tokens.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Plan command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/plan`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DJf8zd5t.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`plan`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--components <components...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for components.`),align:`left`,border:`none`}],[{value:a.body.primary(`--fonts <fonts...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for fonts.`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--icons <icons...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for icons.`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term for each list (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--tokens <tokens...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for design tokens.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Plan command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/plan`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-
|
|
1
|
+
import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-D7d3icNI.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`plan`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--components <components...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for components.`),align:`left`,border:`none`}],[{value:a.body.primary(`--fonts <fonts...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for fonts.`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--icons <icons...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for icons.`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term for each list (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--tokens <tokens...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for design tokens.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Plan command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/plan`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
|
package/dist/plan.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./prompts-
|
|
1
|
+
import{a as e}from"./prompts-E6mdyuqG.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-XFQPL5XU.mjs";import{t as b}from"./plan-BGNxbeNc.mjs";import{t as x}from"./update-C9kmvk3J.mjs";import{t as S}from"./design-system-eDws99LA.mjs";import{isSearchError as C,plan as w}from"@razorwind/shell-shock/runtime";async function T(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.54`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`Plan`).length+2))/2),0))+h(g.banner.command.primary(`Plan`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`Plan`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Search tokens, icons, components and fonts in one call to plan what to build. Provide terms for at least one list.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function E(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function D(e){let t=w(S,{tokens:e.tokens,icons:e.icons,components:e.components,fonts:e.fonts,limit:e.limit});E(t),C(t)&&(process.exitCode=1)}async function O(e=y()){let t={...u(),tokens:[],icons:[],components:[],fonts:[],limit:2};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`)t.tokens??=[],/^--?(tokens)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.tokens.push(...r.replace(/^--?(tokens)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.tokens.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`icons=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`icons`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`icons=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`icons`)t.icons??=[],/^--?(icons)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.icons.push(...r.replace(/^--?(icons)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.icons.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`components=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`components`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`components=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`components`)t.components??=[],/^--?(components)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.components.push(...r.replace(/^--?(components)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.components.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`fonts=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fonts`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`fonts=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fonts`)t.fonts??=[],/^--?(fonts)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.fonts.push(...r.replace(/^--?(fonts)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.fonts.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(r.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(t.limit=e)}else if(e.length>n+1){let r=Number(e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(r)||(t.limit=r)}}}return a(`quiet`)||(await T(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),o||t.limit&&Number.isNaN(t.limit)&&[].push(`Invalid numeric value provided for the "limit" option`),t.help?b():l(`plan`,[`plan`],[t],D)}export{O as handler};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as e,H as t,L as n,M as r,N as i,R as a,T as o,Y as s,a as c,b as l,c as u,g as d,j as f,k as p,n as m,r as h,t as g,w as _,x as v,y}from"./console-
|
|
1
|
+
import{F as e,H as t,L as n,M as r,N as i,R as a,T as o,Y as s,a as c,b as l,c as u,g as d,j as f,k as p,n as m,r as h,t as g,w as _,x as v,y}from"./console-D7d3icNI.mjs";import b from"node:events";import{createInterface as x,emitKeypressEvents as S}from"node:readline";const C=[`▄█████ ▄▄ ▄▄ ▄▄▄▄ ▄▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ██ ██ ██ `,`██ ▀███▀ ██▀▀▀ ██ ██▀██ ███▄██ ██▄▄ ██ ██ ██ `,`▀█████ █ ▀████ ██▄▄▄ ▀███▀ ██ ▀██ ██▄▄▄ ▀████▀ ██ `];async function w(o=500){if(t().get(`is-banner-displayed`)||n(`no-banner`)||n(`hide-banner`)||i)return;t().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.54`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-33,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...C.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${C.join(`
|
|
2
2
|
`)}\n`;y(s,Math.max(f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+g(_.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),y(g(_.banner.description.primary(`🌀 Tamagui based design components used by Storm Software. Like shadcn/ui, the components are copied into other repositories via the Cyclone CLI.`)),Math.max(60>f().columns/2?f().columns-6:f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+_.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(f().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),p(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-32,0)))+` `+g(_.banner.footer.primary(`https://cyclone-ui.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),p(``),r&&!a()&&await e(o)}function T(e){return e}var E=class extends b{config;#e;#t;#n=!1;#r=!1;#i=!1;input=process.stdin;output=process.stdout;message=``;description=``;errorMessage=null;defaultErrorMessage=`An invalid value was provided`;isSubmitted=!1;isCancelled=!1;isInitial=!0;consoleOutput=``;consoleStatus=``;displayValue=``;validate=()=>!0;parse=e=>e;format=e=>String(e);mask=T;maskCompleted=this.mask;cursor=0;cursorHidden=!1;constructor(e){super(),this.config=e,e.input&&(this.input=e.input),e.output&&(this.output=e.output),e.defaultErrorMessage&&(this.defaultErrorMessage=e.defaultErrorMessage),e.description&&(this.description=e.description),e.validate&&(this.validate=e.validate),e.parse&&(this.parse=e.parse.bind(this)),e.format&&(this.format=e.format.bind(this)),e.maskCompleted&&(this.maskCompleted=e.maskCompleted),e.mask&&(this.mask=e.mask),e.timeout!==void 0&&!Number.isNaN(e.timeout)&&setTimeout(()=>{this.isCompleted||this.cancel()},e.timeout),this.message=e.message,this.#e=x({input:this.input,escapeCodeTimeout:50}),S(this.input,this.#e),this.input.isTTY&&this.input.setRawMode(!0),this.input.on(`keypress`,this.keypress.bind(this))}[Symbol.dispose](){this.close()}get value(){return this.#t||this.initialValue}get isError(){return!!this.errorMessage}get isSelect(){return!1}get isCompleted(){return this.isCancelled||this.isSubmitted}get isPlaceholder(){return this.displayValue===this.format(this.initialValue)&&!this.#r||!this.#n}get status(){return this.isSubmitted?``:` \n ${d(this.isError?_.prompt.description.error(y(this.errorMessage,`3/4`).join(`
|
|
3
3
|
`)):this.isCancelled?_.prompt.description.cancelled(y(`Input was cancelled by user`,`3/4`).join(`
|
|
4
4
|
`)):this.description?_.prompt.description.active(y(this.description,`3/4`).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as e,H as t,L as n,M as r,N as i,R as a,T as o,Y as s,a as c,b as l,c as u,g as d,j as f,k as p,n as m,r as h,t as g,w as _,x as v,y}from"./console-
|
|
1
|
+
import{F as e,H as t,L as n,M as r,N as i,R as a,T as o,Y as s,a as c,b as l,c as u,g as d,j as f,k as p,n as m,r as h,t as g,w as _,x as v,y}from"./console-XFQPL5XU.mjs";import b from"node:events";import{createInterface as x,emitKeypressEvents as S}from"node:readline";const C=[`▄█████ ▄▄ ▄▄ ▄▄▄▄ ▄▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ██ ██ ██ `,`██ ▀███▀ ██▀▀▀ ██ ██▀██ ███▄██ ██▄▄ ██ ██ ██ `,`▀█████ █ ▀████ ██▄▄▄ ▀███▀ ██ ▀██ ██▄▄▄ ▀████▀ ██ `];async function w(o=500){if(t().get(`is-banner-displayed`)||n(`no-banner`)||n(`hide-banner`)||i)return;t().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.54`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-33,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...C.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${C.join(`
|
|
2
2
|
`)}\n`;y(s,Math.max(f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+g(_.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),y(g(_.banner.description.primary(`🌀 Tamagui based design components used by Storm Software. Like shadcn/ui, the components are copied into other repositories via the Cyclone CLI.`)),Math.max(60>f().columns/2?f().columns-6:f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+_.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(f().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),p(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-32,0)))+` `+g(_.banner.footer.primary(`https://cyclone-ui.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),p(``),r&&!a()&&await e(o)}function T(e){return e}var E=class extends b{config;#e;#t;#n=!1;#r=!1;#i=!1;input=process.stdin;output=process.stdout;message=``;description=``;errorMessage=null;defaultErrorMessage=`An invalid value was provided`;isSubmitted=!1;isCancelled=!1;isInitial=!0;consoleOutput=``;consoleStatus=``;displayValue=``;validate=()=>!0;parse=e=>e;format=e=>String(e);mask=T;maskCompleted=this.mask;cursor=0;cursorHidden=!1;constructor(e){super(),this.config=e,e.input&&(this.input=e.input),e.output&&(this.output=e.output),e.defaultErrorMessage&&(this.defaultErrorMessage=e.defaultErrorMessage),e.description&&(this.description=e.description),e.validate&&(this.validate=e.validate),e.parse&&(this.parse=e.parse.bind(this)),e.format&&(this.format=e.format.bind(this)),e.maskCompleted&&(this.maskCompleted=e.maskCompleted),e.mask&&(this.mask=e.mask),e.timeout!==void 0&&!Number.isNaN(e.timeout)&&setTimeout(()=>{this.isCompleted||this.cancel()},e.timeout),this.message=e.message,this.#e=x({input:this.input,escapeCodeTimeout:50}),S(this.input,this.#e),this.input.isTTY&&this.input.setRawMode(!0),this.input.on(`keypress`,this.keypress.bind(this))}[Symbol.dispose](){this.close()}get value(){return this.#t||this.initialValue}get isError(){return!!this.errorMessage}get isSelect(){return!1}get isCompleted(){return this.isCancelled||this.isSubmitted}get isPlaceholder(){return this.displayValue===this.format(this.initialValue)&&!this.#r||!this.#n}get status(){return this.isSubmitted?``:` \n ${d(this.isError?_.prompt.description.error(y(this.errorMessage,`3/4`).join(`
|
|
3
3
|
`)):this.isCancelled?_.prompt.description.cancelled(y(`Input was cancelled by user`,`3/4`).join(`
|
|
4
4
|
`)):this.description?_.prompt.description.active(y(this.description,`3/4`).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as e,H as t,L as n,M as r,N as i,R as a,T as o,Y as s,a as c,b as l,c as u,g as d,j as f,k as p,n as m,r as h,t as g,w as _,x as v,y}from"./console-
|
|
1
|
+
import{F as e,H as t,L as n,M as r,N as i,R as a,T as o,Y as s,a as c,b as l,c as u,g as d,j as f,k as p,n as m,r as h,t as g,w as _,x as v,y}from"./console-DJf8zd5t.mjs";import b from"node:events";import{createInterface as x,emitKeypressEvents as S}from"node:readline";const C=[`▄█████ ▄▄ ▄▄ ▄▄▄▄ ▄▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ██ ██ ██ `,`██ ▀███▀ ██▀▀▀ ██ ██▀██ ███▄██ ██▄▄ ██ ██ ██ `,`▀█████ █ ▀████ ██▄▄▄ ▀███▀ ██ ▀██ ██▄▄▄ ▀████▀ ██ `];async function w(o=500){if(t().get(`is-banner-displayed`)||n(`no-banner`)||n(`hide-banner`)||i)return;t().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.54`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-33,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...C.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${C.join(`
|
|
2
2
|
`)}\n`;y(s,Math.max(f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+g(_.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),y(g(_.banner.description.primary(`🌀 Tamagui based design components used by Storm Software. Like shadcn/ui, the components are copied into other repositories via the Cyclone CLI.`)),Math.max(60>f().columns/2?f().columns-6:f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+_.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(f().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),p(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-32,0)))+` `+g(_.banner.footer.primary(`https://cyclone-ui.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),p(``),r&&!a()&&await e(o)}function T(e){return e}var E=class extends b{config;#e;#t;#n=!1;#r=!1;#i=!1;input=process.stdin;output=process.stdout;message=``;description=``;errorMessage=null;defaultErrorMessage=`An invalid value was provided`;isSubmitted=!1;isCancelled=!1;isInitial=!0;consoleOutput=``;consoleStatus=``;displayValue=``;validate=()=>!0;parse=e=>e;format=e=>String(e);mask=T;maskCompleted=this.mask;cursor=0;cursorHidden=!1;constructor(e){super(),this.config=e,e.input&&(this.input=e.input),e.output&&(this.output=e.output),e.defaultErrorMessage&&(this.defaultErrorMessage=e.defaultErrorMessage),e.description&&(this.description=e.description),e.validate&&(this.validate=e.validate),e.parse&&(this.parse=e.parse.bind(this)),e.format&&(this.format=e.format.bind(this)),e.maskCompleted&&(this.maskCompleted=e.maskCompleted),e.mask&&(this.mask=e.mask),e.timeout!==void 0&&!Number.isNaN(e.timeout)&&setTimeout(()=>{this.isCompleted||this.cancel()},e.timeout),this.message=e.message,this.#e=x({input:this.input,escapeCodeTimeout:50}),S(this.input,this.#e),this.input.isTTY&&this.input.setRawMode(!0),this.input.on(`keypress`,this.keypress.bind(this))}[Symbol.dispose](){this.close()}get value(){return this.#t||this.initialValue}get isError(){return!!this.errorMessage}get isSelect(){return!1}get isCompleted(){return this.isCancelled||this.isSubmitted}get isPlaceholder(){return this.displayValue===this.format(this.initialValue)&&!this.#r||!this.#n}get status(){return this.isSubmitted?``:` \n ${d(this.isError?_.prompt.description.error(y(this.errorMessage,`3/4`).join(`
|
|
3
3
|
`)):this.isCancelled?_.prompt.description.cancelled(y(`Input was cancelled by user`,`3/4`).join(`
|
|
4
4
|
`)):this.description?_.prompt.description.active(y(this.description,`3/4`).join(`
|