Lines 27-69javascript
27input:-webkit-autofill:hover,
28input:-webkit-autofill:focus,
29input:-webkit-autofill:active {
30 -webkit-background-clip: text;
31 -webkit-text-fill-color: #334155 !important; /* slate-700 */
32 transition: background-color 5000s ease-in-out 0s;
33 box-shadow: inset 0 0 20px 20px #ffffff;
36.dark input:-webkit-autofill,
37.dark input:-webkit-autofill:hover,
38.dark input:-webkit-autofill:focus,
39.dark input:-webkit-autofill:active {
40 -webkit-text-fill-color: #e2e8f0 !important; /* slate-200 */
41 -webkit-box-shadow: 0 0 0px 1000px #1e293b inset !important; /* slate-800 */
44/* Hide the datalist arrow in Chrome */
45input::-webkit-calendar-picker-indicator {
46 display: none !important;
48`,fe=["icons.svg","icons-filled.svg"];function Ye(e){let t=e?.projects||{},n=Object.keys(t);if(!n.length)return null;let o=n.find(s=>t[s].projectType==="application"&&t[s].architect?.build)||n.find(s=>t[s].architect?.build)||n[0];return{name:o,project:t[o]}}async function ze(e,t){try{let n=await fetch(`${C}/assets/${e}`);if(!n.ok)throw new Error(`HTTP ${n.status}`);let o=Buffer.from(await n.arrayBuffer());return S.default.mkdirSync(t,{recursive:!0}),S.default.writeFileSync(E.default.join(t,e),o),!0}catch(n){return console.warn(`
49\u26A0 Could not download ${e} (${n.message}). Download it manually from ${C}/assets/${e} into ${t}.`),!1}}var U={componentsAlias:"src/app/components",styles:"src/styles.scss",tailwind:"src/tailwind.css"};async function de(e={}){let t=e.yes?{...U}:await(0,ue.default)([{type:"text",name:"componentsAlias",message:"Configure the import alias for components:",initial:U.componentsAlias},{type:"text",name:"styles",message:"Where is your global CSS file?",initial:U.styles},{type:"text",name:"tailwind",message:"Path to your Tailwind CSS entry file:",initial:U.tailwind}]);if(!t.componentsAlias){console ...
50${u}`,"utf8")}else S.default.writeFileSync(c,`${d}
51`,"utf8"),console.warn(`
52\u26A0 ${t.styles} did not exist \u2014 created it. Make sure it is listed in the "styles" array of angular.json.`)}catch(u){console.warn(`
53\u26A0 Could not update global styles (${u.message}). Add "${d}" to ${t.styles} manually and create base-ui.css next to it.`)}n.text="Setting up icon sprites...";let p=E.default.resolve(process.cwd(),"src/assets");try{let u=E.default.
54\u26A0 Could not find build options in angular.json \u2014 serve the icon sprites at /assets/icons.svg and /assets/icons-filled.svg yourself.`)}else console.warn(`
55\u26A0 No angular.json found \u2014 is this an Angular workspace? Continuing anyway.`)}catch(u){console.warn(`
56\u26A0 Could not update angular.json (${u.message}). Make sure the icon sprites are served at /assets/icons.svg and /assets/icons-filled.svg.`)}n.text="Downloading icon sprites...";for(let u of fe)await ze(u,p);n.succeed('Project initialized! Add your first component with "npx base-ui-cli add button".')}var H=h(require("prompts")),j=h(require("fs")),v=h(require("path")),X=h(require("ora")),we=require("child_process");var Q=h(require("fs")),ge=h(require("path"));function N(){let e=ge.default.resolve(process.cwd(),"base-ui.json");if(!Q.default.existsSync(e))return console.error('base-ui.json not ...
57Remember to install: ${r==="npm"?"npm install":`${r} add`} ${k.join(" ")}`)}console.log(`
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/index.jsView on unpkg · L47 HighChild Process
Package source references child process execution.
dist/index.jsView on unpkg · L55 58\u2714 Added ${m.length} ${m.length===1?"component":"components"}: ${m.join(", ")}`),m.length&&await ye()}var xe=h(require("ora"));var Qe=
59${l} (${a.length}) \u2014 ${c}
60`);for(let p of ke){let u=a.filter(w=>(w.category||"component")===p).map(w=>w.name).sort();u.length&&(console.log(` ${Qe[p]||p} (${u.length})`),n(u),console.log(""))}let y=new Set(ke),d=a.filter(p=>p.category&&!y.has(p.category)).map(p=>p.name).sort();d.length&&(console.log(` Other (${d.length})`),n(d),console.log(""))};o("free","Free components","npx base-ui-cli add <name>"),o("pro","Pro components",`require a license (${C}/pricing)`)}var Ee=h(require("path")),Ie=h(require("ora"));var ee=h(require("fs")),te=h(require("path")),Se=require("diff");function K(e){return e.files.some(t=>t.status! ...
61`);for(let y of a)o.push(c(`${l} ${y}`))}return o.join(`
62`)}async function je(e){let t=N();if(!t){process.exitCode=1;return}let n=Ee.default.resolve(process.cwd(),t.aliases.components),o=F(),s=
63\u2716 ${m.name}: ${m.error}`);continue}if(!K(m)){u.push(m.name);continue}d=!0,ve(m)&&(p=!0),console.log(`
64${m.name}${m.tier==="pro"?" (pro)":""}`);for(let g of m.files)g.status!=="unchanged"&&(console.log(` ${g.path} \u2014 ${Ce(g.
65`).map(b=>` ${b}`).join(`
66`)))}u.length&&console.log(`
67\u2714 Up to date: ${u.join(", ")}`),d&&(console.log(`
68Run "npx base-ui-cli update${e.length?" "+e.join(" "):""}" to apply upstream changes.`),p&&console.log("Some files were edited both locally and upstream \u2014 update will ask how to resolve each one.")),w.length&&(process.exitCode=1)}var T=h(
Long lines were clipped for display.