Lines 28-70javascript
28input:-webkit-autofill:hover,
29input:-webkit-autofill:focus,
30input:-webkit-autofill:active {
31 -webkit-background-clip: text;
32 -webkit-text-fill-color: #334155 !important; /* slate-700 */
33 transition: background-color 5000s ease-in-out 0s;
34 box-shadow: inset 0 0 20px 20px #ffffff;
37.dark input:-webkit-autofill,
38.dark input:-webkit-autofill:hover,
39.dark input:-webkit-autofill:focus,
40.dark input:-webkit-autofill:active {
41 -webkit-text-fill-color: #e2e8f0 !important; /* slate-200 */
42 -webkit-box-shadow: 0 0 0px 1000px #1e293b inset !important; /* slate-800 */
45/* Hide the datalist arrow in Chrome */
46input::-webkit-calendar-picker-indicator {
47 display: none !important;
49`,xe=["icons.svg","icons-filled.svg"];function et(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 tt(e,t){try{let n=await fetch(`${v}/assets/${e}`);if(!n.ok)throw new Error(`HTTP ${n.status}`);let o=Buffer.from(await n.arrayBuffer());return $.default.mkdirSync(t,{recursive:!0}),$.default.writeFileSync(E.default.join(t,e),o),!0}catch(n){return console.warn(`
50\u26A0 Could not download ${e} (${n.message}). Download it manually from ${v}/assets/${e} into ${t}.`),!1}}var B={componentsAlias:"src/app/components",styles:"src/styles.scss",tailwind:"src/tailwind.css"};async function Se(e={}){let t=e.yes?{...B}:await(0,ke.default)([{type:"text",name:"componentsAlias",message:"Configure the import alias for components:",initial:B.componentsAlias},{type:"text",name:"styles",message:"Where is your global CSS file?",initial:B.styles},{type:"text",name:"tailwind",message:"Path to your Tailwind CSS entry file:",initial:B.tailwind}]);if(!t.componentsAlias){console ...
51${u}`,"utf8")}else $.default.writeFileSync(l,`${m}
52`,"utf8"),console.warn(`
53\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(`
54\u26A0 Could not update global styles (${u.message}). Add "${m}" 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.
55\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(`
56\u26A0 No angular.json found \u2014 is this an Angular workspace? Continuing anyway.`)}catch(u){console.warn(`
57\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 xe)await tt(u,p);n.succeed('Project initialized! Add your first component with "npx base-ui-cli add button".')}var K=g(require("prompts")),j=g(require("fs")),C=g(require("path")),te=g(require("ora")),Ie=require("child_process");var ee=g(require("fs")),ve=g(require("path"));function T(){let e=ve.default.resolve(process.cwd(),"base-ui.json");if(!ee.default.existsSync(e))return console.error('base-ui.json ...
58Remember 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 · L48 HighChild Process
Package source references child process execution.
dist/index.jsView on unpkg · L56 59\u2714 Added ${d.length} ${d.length===1?"component":"components"}: ${d.join(", ")}`),d.length&&await Ce()}var Re=g(require("ora"));var lt=
60${i} (${c.length}) \u2014 ${l}
61`);for(let p of je){let u=c.filter(w=>(w.category||"component")===p).map(w=>w.name).sort();u.length&&(console.log(` ${lt[p]||p} (${u.length})`),n(u),console.log(""))}let y=new Set(je),m=c.filter(p=>p.category&&!y.has(p.category)).map(p=>p.name).sort();m.length&&(console.log(` Other (${m.length})`),n(m),console.log(""))};o("free","Free components","npx base-ui-cli add <name>"),o("pro","Pro components",`require a license (${v}/pricing)`)}var Ne=g(require("path")),Te=g(require("ora"));var ne=g(require("fs")),oe=g(require("path")),_e=require("diff");function z(e){return e.files.some(t=>t.status! ...
62`);for(let y of c)o.push(l(`${i} ${y}`))}return o.join(`
63`)}async function Oe(e){let t=T();if(!t){process.exitCode=1;return}let n=Ne.default.resolve(process.cwd(),t.aliases.components),o=_(),s=
64\u2716 ${d.name}: ${d.error}`);continue}if(!z(d)){u.push(d.name);continue}m=!0,Fe(d)&&(p=!0),console.log(`
65${d.name}${d.tier==="pro"?" (pro)":""}`);for(let h of d.files)h.status!=="unchanged"&&(console.log(` ${h.path} \u2014 ${Ae(h.
66`).map(x=>` ${x}`).join(`
67`)))}u.length&&console.log(`
68\u2714 Up to date: ${u.join(", ")}`),m&&(console.log(`
69Run "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 U=g(
Long lines were clipped for display.