ui-thing 0.0.3 → 0.0.4

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/CHANGELOG.md CHANGED
@@ -1,26 +1,138 @@
1
1
  # Changelog
2
2
 
3
- ## v0.0.3
4
3
 
5
- [compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.2...v0.0.3)
4
+ ## v0.0.4
6
5
 
7
- ### 🏡 Chore
8
6
 
9
- - Update readme ([88be325](https://github.com/BayBreezy/ui-thing-cli/commit/88be325))
10
- - Change package name ([bd17f8d](https://github.com/BayBreezy/ui-thing-cli/commit/bd17f8d))
11
- - Set version back to 0.0.2 ([1c7b6b2](https://github.com/BayBreezy/ui-thing-cli/commit/1c7b6b2))
7
+ ### 🚀 Enhancements
12
8
 
13
- ### ❤️ Contributors
9
+ - Update cards page ([14494ec](https://github.com/BayBreezy/ui-thing/commit/14494ec))
10
+ - Add dashboard example ([f61df16](https://github.com/BayBreezy/ui-thing/commit/f61df16))
11
+ - Start combobox ([f22ce19](https://github.com/BayBreezy/ui-thing/commit/f22ce19))
12
+ - Update command & combobox components ([40b9a97](https://github.com/BayBreezy/ui-thing/commit/40b9a97))
13
+ - Add OTP component ([577626b](https://github.com/BayBreezy/ui-thing/commit/577626b))
14
+ - Add form otp component ([d6da3f4](https://github.com/BayBreezy/ui-thing/commit/d6da3f4))
15
+ - Add pagination component ([ec9ccd5](https://github.com/BayBreezy/ui-thing/commit/ec9ccd5))
16
+ - Add toast component ([a5a4e55](https://github.com/BayBreezy/ui-thing/commit/a5a4e55))
17
+ - Add form ([af26438](https://github.com/BayBreezy/ui-thing/commit/af26438))
18
+ - Add vue-sonner ([8c5d01a](https://github.com/BayBreezy/ui-thing/commit/8c5d01a))
19
+ - Add shortcut composable ([b926345](https://github.com/BayBreezy/ui-thing/commit/b926345))
20
+ - Add vee components ([01a5228](https://github.com/BayBreezy/ui-thing/commit/01a5228))
21
+ - Start cli ([a3299e9](https://github.com/BayBreezy/ui-thing/commit/a3299e9))
22
+ - Add new commands to cli ([8ed1cb4](https://github.com/BayBreezy/ui-thing/commit/8ed1cb4))
23
+ - Update installPackages file ([45e59bb](https://github.com/BayBreezy/ui-thing/commit/45e59bb))
24
+ - Update component.js file Manually update nuxt config for vue-sonner ([3e3c952](https://github.com/BayBreezy/ui-thing/commit/3e3c952))
14
25
 
15
- - Behon Baker <behon.baker@yahoo.com>
26
+ ### 🩹 Fixes
16
27
 
17
- ## v0.0.2
28
+ - Remove command example from page ([1239d58](https://github.com/BayBreezy/ui-thing/commit/1239d58))
29
+ - Add v-model support to textarea ([78f2666](https://github.com/BayBreezy/ui-thing/commit/78f2666))
30
+ - Zoom on ios mobile ofr input size ([ff4d5e2](https://github.com/BayBreezy/ui-thing/commit/ff4d5e2))
31
+ - Add button styles utils to alert-dialog ([bd12e3a](https://github.com/BayBreezy/ui-thing/commit/bd12e3a))
32
+
33
+ ### 📖 Documentation
34
+
35
+ - Update sidebar scroll area ([3ef4c15](https://github.com/BayBreezy/ui-thing/commit/3ef4c15))
36
+ - Update next and prev components ([d0a91b6](https://github.com/BayBreezy/ui-thing/commit/d0a91b6))
37
+ - Update padding on dashboard ([b2b4e88](https://github.com/BayBreezy/ui-thing/commit/b2b4e88))
38
+ - Update credits ([e389811](https://github.com/BayBreezy/ui-thing/commit/e389811))
18
39
 
19
40
  ### 🏡 Chore
20
41
 
21
- - Add 1st changeset ([ec0083c](https://github.com/BayBreezy/ui-thing-cli/commit/ec0083c))
22
- - Add release script ([ea11cae](https://github.com/BayBreezy/ui-thing-cli/commit/ea11cae))
42
+ - Update deps ([ccdca12](https://github.com/BayBreezy/ui-thing/commit/ccdca12))
43
+ - Update card example ([e70bcba](https://github.com/BayBreezy/ui-thing/commit/e70bcba))
44
+ - Update deps ([aeab836](https://github.com/BayBreezy/ui-thing/commit/aeab836))
45
+ - Add theme switcher in nav ([15b29c4](https://github.com/BayBreezy/ui-thing/commit/15b29c4))
46
+ - Update tailwind ring color ([3fb1af8](https://github.com/BayBreezy/ui-thing/commit/3fb1af8))
47
+ - Start datatable ([47b3905](https://github.com/BayBreezy/ui-thing/commit/47b3905))
48
+ - Update datatable ([f798a8d](https://github.com/BayBreezy/ui-thing/commit/f798a8d))
49
+ - Update table and add breadcrumbs ([411eb63](https://github.com/BayBreezy/ui-thing/commit/411eb63))
50
+ - Update deps ([5408756](https://github.com/BayBreezy/ui-thing/commit/5408756))
51
+ - Add dropfile ([ee206e6](https://github.com/BayBreezy/ui-thing/commit/ee206e6))
52
+ - Add native select ([5d7da05](https://github.com/BayBreezy/ui-thing/commit/5d7da05))
53
+ - Enable takeover mode ([34a2333](https://github.com/BayBreezy/ui-thing/commit/34a2333))
54
+ - Update deps ([18943e1](https://github.com/BayBreezy/ui-thing/commit/18943e1))
55
+ - Update deps & select components ([733f9ac](https://github.com/BayBreezy/ui-thing/commit/733f9ac))
56
+ - Update deps ([fccda4d](https://github.com/BayBreezy/ui-thing/commit/fccda4d))
57
+ - Update dropdownmenu ([9684eda](https://github.com/BayBreezy/ui-thing/commit/9684eda))
58
+ - Update deps ([8fdde56](https://github.com/BayBreezy/ui-thing/commit/8fdde56))
59
+ - Update deps ([95994f5](https://github.com/BayBreezy/ui-thing/commit/95994f5))
60
+ - Update deps and format code ([ea614f3](https://github.com/BayBreezy/ui-thing/commit/ea614f3))
61
+ - Update accordion ([9a0c93a](https://github.com/BayBreezy/ui-thing/commit/9a0c93a))
62
+ - Update popover ([d5e9636](https://github.com/BayBreezy/ui-thing/commit/d5e9636))
63
+ - Remove hydration warning ([44909fe](https://github.com/BayBreezy/ui-thing/commit/44909fe))
64
+ - Update alert ([91ac054](https://github.com/BayBreezy/ui-thing/commit/91ac054))
65
+ - Change to new doc layout ([c802292](https://github.com/BayBreezy/ui-thing/commit/c802292))
66
+ - Update up to button ([513bd33](https://github.com/BayBreezy/ui-thing/commit/513bd33))
67
+ - Update calendar ([e25caa4](https://github.com/BayBreezy/ui-thing/commit/e25caa4))
68
+ - **calendar:** Update docs for calendar ([dd33f32](https://github.com/BayBreezy/ui-thing/commit/dd33f32))
69
+ - Update checkbox ([8b50395](https://github.com/BayBreezy/ui-thing/commit/8b50395))
70
+ - Update collapsible ([fae10e1](https://github.com/BayBreezy/ui-thing/commit/fae10e1))
71
+ - **command:** Update command ([8b33da8](https://github.com/BayBreezy/ui-thing/commit/8b33da8))
72
+ - Update context menu ([1703206](https://github.com/BayBreezy/ui-thing/commit/1703206))
73
+ - Update breadcrumbs ([5fe90c9](https://github.com/BayBreezy/ui-thing/commit/5fe90c9))
74
+ - Update tanstack table ([1013200](https://github.com/BayBreezy/ui-thing/commit/1013200))
75
+ - Update datepicker ([efbdc61](https://github.com/BayBreezy/ui-thing/commit/efbdc61))
76
+ - Update dialog ([1a4b8be](https://github.com/BayBreezy/ui-thing/commit/1a4b8be))
77
+ - Update dialog ([0281b55](https://github.com/BayBreezy/ui-thing/commit/0281b55))
78
+ - Update dropdown menu ([b1a4545](https://github.com/BayBreezy/ui-thing/commit/b1a4545))
79
+ - Update dropdown menu ([49bf39d](https://github.com/BayBreezy/ui-thing/commit/49bf39d))
80
+ - Add form example and zod ([4cb4443](https://github.com/BayBreezy/ui-thing/commit/4cb4443))
81
+ - Update hover card ([6f15bf8](https://github.com/BayBreezy/ui-thing/commit/6f15bf8))
82
+ - Update input & label ([9278c7c](https://github.com/BayBreezy/ui-thing/commit/9278c7c))
83
+ - Update menubar ([1b08f04](https://github.com/BayBreezy/ui-thing/commit/1b08f04))
84
+ - Update navigation menu comp ([de3413b](https://github.com/BayBreezy/ui-thing/commit/de3413b))
85
+ - Update pagination ([86260d9](https://github.com/BayBreezy/ui-thing/commit/86260d9))
86
+ - Update popover ([57e5609](https://github.com/BayBreezy/ui-thing/commit/57e5609))
87
+ - Update progress ([f12dca9](https://github.com/BayBreezy/ui-thing/commit/f12dca9))
88
+ - Update radio group and form ([55da5a5](https://github.com/BayBreezy/ui-thing/commit/55da5a5))
89
+ - Update scroll area comp ([0dfb189](https://github.com/BayBreezy/ui-thing/commit/0dfb189))
90
+ - Update select ([394f6f7](https://github.com/BayBreezy/ui-thing/commit/394f6f7))
91
+ - Update separator ([28a16ae](https://github.com/BayBreezy/ui-thing/commit/28a16ae))
92
+ - Sheet update ([8f3f54e](https://github.com/BayBreezy/ui-thing/commit/8f3f54e))
93
+ - Update skeleton ([a6ffde6](https://github.com/BayBreezy/ui-thing/commit/a6ffde6))
94
+ - Update slider ([8194b3c](https://github.com/BayBreezy/ui-thing/commit/8194b3c))
95
+ - Switch updated ([d1e6421](https://github.com/BayBreezy/ui-thing/commit/d1e6421))
96
+ - Update table comps ([261bb8e](https://github.com/BayBreezy/ui-thing/commit/261bb8e))
97
+ - Update tabs ([b834087](https://github.com/BayBreezy/ui-thing/commit/b834087))
98
+ - Update textarea ([b1f10ac](https://github.com/BayBreezy/ui-thing/commit/b1f10ac))
99
+ - Udpate toggle ([d06f147](https://github.com/BayBreezy/ui-thing/commit/d06f147))
100
+ - Update tooltip ([33cbf3a](https://github.com/BayBreezy/ui-thing/commit/33cbf3a))
101
+ - Update kbd ([0bce1c6](https://github.com/BayBreezy/ui-thing/commit/0bce1c6))
102
+ - Update otp ([e01e2b4](https://github.com/BayBreezy/ui-thing/commit/e01e2b4))
103
+ - Update dropfile ([287ce01](https://github.com/BayBreezy/ui-thing/commit/287ce01))
104
+ - Update toast ([0967ba3](https://github.com/BayBreezy/ui-thing/commit/0967ba3))
105
+ - Add form example for switch ([a905a5f](https://github.com/BayBreezy/ui-thing/commit/a905a5f))
106
+ - Add example route ([e05aa5a](https://github.com/BayBreezy/ui-thing/commit/e05aa5a))
107
+ - Update examples ([7d0ad3b](https://github.com/BayBreezy/ui-thing/commit/7d0ad3b))
108
+ - Change combobox to autocomplete ([2d9eb46](https://github.com/BayBreezy/ui-thing/commit/2d9eb46))
109
+ - Add combobox ([fa101cf](https://github.com/BayBreezy/ui-thing/commit/fa101cf))
110
+ - Add component search ([4616ce6](https://github.com/BayBreezy/ui-thing/commit/4616ce6))
111
+ - Close modal after selecting theme ([3de019c](https://github.com/BayBreezy/ui-thing/commit/3de019c))
112
+ - Add vee select ([a21ca6e](https://github.com/BayBreezy/ui-thing/commit/a21ca6e))
113
+ - Update checkbox ([7a72412](https://github.com/BayBreezy/ui-thing/commit/7a72412))
114
+ - Refactor pagination UI in TanStackTable.vue ([39e4380](https://github.com/BayBreezy/ui-thing/commit/39e4380))
115
+ - Update card page ([17dce70](https://github.com/BayBreezy/ui-thing/commit/17dce70))
116
+ - Update new versions of dependencies ([a76d496](https://github.com/BayBreezy/ui-thing/commit/a76d496))
117
+ - Update deps ([3a34b9b](https://github.com/BayBreezy/ui-thing/commit/3a34b9b))
118
+ - Update deps ([e0218a8](https://github.com/BayBreezy/ui-thing/commit/e0218a8))
119
+ - Remove auto animate from nuxt config ([c4b96f9](https://github.com/BayBreezy/ui-thing/commit/c4b96f9))
120
+ - Update add command to respect ui-thing config ([7703966](https://github.com/BayBreezy/ui-thing/commit/7703966))
121
+ - Update deps & commands & utils ([19dbcb8](https://github.com/BayBreezy/ui-thing/commit/19dbcb8))
122
+ - Update deps ([ef6465d](https://github.com/BayBreezy/ui-thing/commit/ef6465d))
123
+ - Remove unused imports & format ([c255c1d](https://github.com/BayBreezy/ui-thing/commit/c255c1d))
124
+ - Fix import paths in add.ts and config.ts ([c1dc73e](https://github.com/BayBreezy/ui-thing/commit/c1dc73e))
125
+ - Update toast comps and deps ([d5a5305](https://github.com/BayBreezy/ui-thing/commit/d5a5305))
126
+ - Update comps & docs ([f05373c](https://github.com/BayBreezy/ui-thing/commit/f05373c))
127
+ - Add cli page ([9dea6ce](https://github.com/BayBreezy/ui-thing/commit/9dea6ce))
128
+ - Update width of search in nav & add cli page ([1c3ebcd](https://github.com/BayBreezy/ui-thing/commit/1c3ebcd))
129
+ - Add seo stuff ([d2d44bc](https://github.com/BayBreezy/ui-thing/commit/d2d44bc))
130
+ - Update cli ([432607d](https://github.com/BayBreezy/ui-thing/commit/432607d))
131
+ - Update cover image in readme ([3eb2816](https://github.com/BayBreezy/ui-thing/commit/3eb2816))
132
+ - Change wording of force option question ([fe5fe6c](https://github.com/BayBreezy/ui-thing/commit/fe5fe6c))
23
133
 
24
134
  ### ❤️ Contributors
25
135
 
136
+ - BayBreezy <behon.baker@yahoo.com>
26
137
  - Behon Baker <behon.baker@yahoo.com>
138
+
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # UI Thing CLI
2
2
 
3
+ ![Cover Image](https://ui-thing.behonbaker.com/cover.png)
4
+
3
5
  ## Credits
4
6
 
5
7
  - shadcn/ui
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
@@ -7177,7 +7177,7 @@ ${" ".repeat(6+n)}^`),c));s+=`
7177
7177
  ${l.join(`
7178
7178
  `)}
7179
7179
  `}this.message=s}},ep=new Set(["Literal","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","RegExpLiteral","BigIntLiteral"]),ma=new Set(["string","number","boolean","bigint","symbol","undefined"]),Z=Xt;function tp(r){return/^[$A-Z_a-z][\w$]*$/.test(r)}var ur="__magicast_proxy";function he(r,s=new Set){if(r===void 0)return Z.identifier("undefined");if(r===null)return Z.literal(null);if(ma.has(typeof r))return Z.literal(r);if(s.has(r))throw new me("Can not serialize circular reference");if(s.add(r),r[ur])return r.$ast;if(r instanceof RegExp){let e=Z.regExpLiteral(r.source,r.flags);return delete e.extra.raw,e}return r instanceof Set?Z.newExpression(Z.identifier("Set"),[Z.arrayExpression([...r].map(e=>he(e,s)))]):r instanceof Date?Z.newExpression(Z.identifier("Date"),[Z.literal(r.toISOString())]):r instanceof Map?Z.newExpression(Z.identifier("Map"),[Z.arrayExpression([...r].map(([e,t])=>Z.arrayExpression([he(e,s),he(t,s)])))]):Array.isArray(r)?Z.arrayExpression(r.map(e=>he(e,s))):typeof r=="object"?Z.objectExpression(Object.entries(r).map(([e,t])=>Z.property("init",/^[$A-Z_a-z][\w$]*$/g.test(e)?Z.identifier(e):Z.literal(e),he(t,s)))):Z.literal(r)}function sp(r,s={}){let e=s;return e[ur]=!0,e.$ast=r,e.$type||(e.$type="object"),e}var np={enumerable:!0,configurable:!0};function je(r,s,e){let t=sp(r,s);return new Proxy({},{ownKeys(){return Object.keys(t).filter(n=>n!==ur&&!n.startsWith("$"))},getOwnPropertyDescriptor(){return np},has(n,i){return i in t},...e,get(n,i,a){if(i in t)return t[i];if(e.get)return e.get(n,i,a)},set(n,i,a,o){return i in t?(t[i]=a,!0):e.set?e.set(n,i,a,o):!1}})}var ve=Xt,Jn=new WeakMap;function rp(r,s,e){if(Jn.has(s))return Jn.get(s);let t=je(s,{get $declaration(){return r},get imported(){return s.type==="ImportDefaultSpecifier"?"default":s.type==="ImportNamespaceSpecifier"?"*":s.imported.type==="Identifier"?s.imported.name:s.imported.value},set imported(n){if(s.type!=="ImportSpecifier")throw new me("Changing import name is not yet implemented");s.imported.type==="Identifier"?s.imported.name=n:s.imported.value=n},get local(){return s.local.name},set local(n){s.local.name=n},get from(){return r.source.value},set from(n){if(n===r.source.value)return;r.specifiers=r.specifiers.filter(a=>a!==s),r.specifiers.length===0&&(e.body=e.body.filter(a=>a!==r));let i=e.body.find(a=>a.type==="ImportDeclaration"&&a.source.value===n);i?i.specifiers.push(s):e.body.unshift(ve.importDeclaration([s],ve.stringLiteral(n)))},toJSON(){return{imported:this.imported,local:this.local,from:this.from}}},{ownKeys(){return["imported","local","from","toJSON"]}});return Jn.set(s,t),t}function ip(r,s){let e=()=>{let a=[];for(let o of r.body)if(o.type==="ImportDeclaration")for(let l of o.specifiers)a.push(rp(o,l,r));return a},t=(a,o)=>{let l=e(),c=l.find(m=>m.local===a),p=o.local||a;if(c)return c.imported=o.imported,c.local=p,c.from=o.from,!0;let u=o.imported==="default"?ve.importDefaultSpecifier(ve.identifier(p)):o.imported==="*"?ve.importNamespaceSpecifier(ve.identifier(p)):ve.importSpecifier(ve.identifier(o.imported),ve.identifier(p)),f=l.find(m=>m.from===o.from)?.$declaration;return f?f.specifiers.push(u):r.body.unshift(ve.importDeclaration([u],ve.stringLiteral(o.from))),!0},n=a=>{let o=e().find(p=>p.local===a);if(!o)return!1;let l=o.$declaration,c=o.$ast;return l.specifiers=l.specifiers.filter(p=>p!==c),l.specifiers.length===0&&(r.body=r.body.filter(p=>p!==l)),!0},i=je(r,{$type:"imports",$add(a){i[a.local||a.imported]=a},get $items(){return e()},toJSON(){return e().reduce((a,o)=>(a[o.local]=o,a),{})}},{get(a,o){return e().find(l=>l.local===o)},set(a,o,l){return t(o,l)},deleteProperty(a,o){return n(o)},ownKeys(){return e().map(a=>a.local)},has(a,o){return e().some(l=>l.local===o)}});return i}function dr(r,s,e){let t=i=>s[i],n=(i,a)=>{s[i]=a};return je(r,{$type:"array",push(i){s.push(he(i))},pop(){return le(s.pop(),e)},unshift(i){s.unshift(he(i))},shift(){return le(s.shift(),e)},splice(i,a,...o){return s.splice(i,a,...o.map(c=>he(c))).map(c=>le(c,e))},find(i){return s.map(a=>le(a,e)).find(i)},findIndex(i){return s.map(a=>le(a,e)).findIndex(i)},includes(i){return s.map(a=>le(a,e)).includes(i)},toJSON(){return s.map(i=>le(i,e))}},{get(i,a){if(a==="length")return s.length;if(a===Symbol.iterator)return function*(){for(let c of s)yield le(c,e)};if(typeof a=="symbol")return;let o=+a;if(Number.isNaN(o))return;let l=t(o);if(l)return le(l,e)},set(i,a,o){if(typeof a=="symbol")return!1;let l=+a;return Number.isNaN(l)?!1:(n(l,he(o)),!0)},deleteProperty(i,a){if(typeof a=="symbol")return!1;let o=+a;return Number.isNaN(o)?!1:(s[o]=he(void 0),!0)},ownKeys(){return["length",...s.map((i,a)=>a.toString())]}})}function ap(r,s){if("elements"in r)return dr(r,r.elements,s)}function op(r,s){if(r.type!=="CallExpression")throw new me("Not a function call");function e(n){if(n.type==="Identifier")return n.name;if(n.type==="MemberExpression")return`${e(n.object)}.${e(n.property)}`;throw new me("Not implemented")}let t=dr(r,r.arguments,s);return je(r,{$type:"function-call",$callee:e(r.callee),$args:t},{})}var lp=Xt;function cp(r,s){if(!("properties"in r))return;let e=i=>{for(let a of r.properties){if("key"in a&&"name"in a.key&&a.key.name===i)return a.value;if(a.type==="ObjectProperty"&&(a.key.type==="StringLiteral"||a.key.type==="NumericLiteral"||a.key.type==="BooleanLiteral")&&a.key.value===i)return a.value.value}},t=(i,a=!1)=>{if("key"in i&&"name"in i.key)return i.key.name;if(i.type==="ObjectProperty"&&(i.key.type==="StringLiteral"||i.key.type==="NumericLiteral"||i.key.type==="BooleanLiteral"))return i.key.value.toString();if(a)throw new me(`Casting "${i.type}" is not supported`,{ast:i,code:s?.$code})},n=(i,a)=>{let o=r.properties.find(l=>t(l)===i);o?o.value=a:tp(i)?r.properties.push({type:"Property",key:{type:"Identifier",name:i},value:a}):r.properties.push({type:"ObjectProperty",key:lp.stringLiteral(i),value:a})};return je(r,{$type:"object",toJSON(){return r.properties.reduce((i,a)=>("key"in a&&"name"in a.key&&(i[a.key.name]=le(a.value,s)),i),{})}},{get(i,a){let o=e(a);if(o)return le(o,s)},set(i,a,o){return typeof a!="string"&&(a=String(a)),n(a,he(o)),!0},deleteProperty(i,a){typeof a!="string"&&(a=String(a));let o=r.properties.findIndex(l=>"key"in l&&"name"in l.key&&l.key.name===a);return o!==-1&&r.properties.splice(o,1),!0},ownKeys(){return r.properties.map(i=>t(i,!0)).filter(Boolean)}})}function pp(r,s){if(r.type!=="NewExpression")throw new me("Not a new expression");function e(n){if(n.type==="Identifier")return n.name;if(n.type==="MemberExpression")return`${e(n.object)}.${e(n.property)}`;throw new me("Not implemented")}let t=dr(r,r.arguments,s);return je(r,{$type:"new-expression",$callee:e(r.callee),$args:t},{})}function up(r){if(r.type!=="Identifier")throw new me("Not an identifier");return je(r,{$type:"identifier",$name:r.name},{})}var Xn=new WeakMap;function le(r,s){if(ma.has(typeof r))return r;if(ep.has(r.type))return r.value;if(Xn.has(r))return Xn.get(r);let e;switch(r.type){case"ObjectExpression":{e=cp(r,s);break}case"ArrayExpression":{e=ap(r,s);break}case"CallExpression":{e=op(r,s);break}case"NewExpression":{e=pp(r,s);break}case"Identifier":{e=up(r);break}case"TSAsExpression":case"TSSatisfiesExpression":{e=le(r.expression,s);break}default:throw new me(`Casting "${r.type}" is not supported`,{ast:r,code:s?.$code})}return Xn.set(r,e),e}var $t=Xt;function dp(r,s){let e=n=>{let i=n==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration";for(let a of r.body)if(a.type===i){if(n==="default")return a.declaration;if(a.declaration&&"declarations"in a.declaration){let o=a.declaration.declarations[0];if("name"in o.id&&o.id.name===n)return o.init}}},t=(n,i)=>{let a=n==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration",o=he(i);for(let l of r.body)if(l.type===a){if(n==="default"){l.declaration=o;return}if(l.declaration&&"declarations"in l.declaration){let c=l.declaration.declarations[0];if("name"in c.id&&c.id.name===n){c.init=o;return}}}r.body.push(n==="default"?$t.exportDefaultDeclaration(o):$t.exportNamedDeclaration($t.variableDeclaration("const",[$t.variableDeclarator($t.identifier(n),o)])))};return je(r,{$type:"exports"},{get(n,i){let a=e(i);if(a)return le(a,s)},set(n,i,a){return t(i,a),!0},ownKeys(){return r.body.flatMap(n=>n.type==="ExportDefaultDeclaration"?["default"]:n.type==="ExportNamedDeclaration"&&n.declaration&&"declarations"in n.declaration?n.declaration.declarations.map(i=>"name"in i.id?i.id.name:""):[]).filter(Boolean)},deleteProperty(n,i){let a=i==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration";for(let o=0;o<r.body.length;o++){let l=r.body[o];if(l.type===a){if(i==="default")return r.body.splice(o,1),!0;if(l.declaration&&"declarations"in l.declaration){let c=l.declaration.declarations[0];if("name"in c.id&&c.id.name===i)return r.body.splice(o,1),!0}}}return!1}})}function fp(r,s){let e=r.program;if(e.type!=="Program")throw new me(`Cannot proxify ${r.type} as module`);let t={$code:s,$type:"module"},n=je(e,t,{ownKeys(){return["imports","exports","generate"]}});return t.exports=dp(e,n),t.imports=ip(e),t.generate=i=>ya(n,i),n}function hp(r,s={}){let e={wrapColumn:s.wrapColumn===void 0,indent:s.tabWidth===void 0||s.useTabs===void 0,quote:s.quote===void 0,arrowParens:s.arrowParensAlways===void 0,trailingComma:s.trailingComma===void 0},t=2,n=0,i=0,a=0,o=0,l=/(?<doubleQuote>"[^"]+")|(?<singleQuote>'[^']+')|(?<singleParam>\([^),]+\)\s*=>)|(?<trailingComma>,\s*[\]}])/g,c={doubleQuote:0,singleQuote:0,singleParam:0,trailingComma:0},p=(r||"").split(`
7180
- `),u=!1;for(let f of p){let m=f.trim();if(m.length!==0){if(e.wrapColumn&&f.length>a&&(a=f.length),e.indent){let d=f.match(/^\s+/)?.[0]||"";d.length>0&&(d.length>0&&d.length<t&&(t=d.length),d[0]===" "?n++:d.length>0&&n--)}if(m.at(-1)===";"?i++:m.length>0&&i--,e.quote||e.arrowParens){let d=m.matchAll(l);for(let g of d)if(g.groups)for(let h in c)g.groups[h]&&c[h]++}e.trailingComma&&((f.startsWith("}")||f.startsWith("]"))&&(u?o++:o--),u=m.endsWith(","))}}return{wrapColumn:a,useTabs:n>0,tabWidth:t,quote:c.singleQuote>c.doubleQuote?"single":"double",arrowParensAlways:c.singleParam>0,trailingComma:o>0||c.trailingComma>0,useSemi:i>0,arrayBracketSpacing:void 0,objectCurlySpacing:void 0,...s}}function mp(r,s){let e=Dc(r,{parser:s?.parser||Xc(),...s});return fp(e,r)}function ya(r,s={}){let e=r.$ast||r,t=s.format===!1||!("$code"in r)?{}:hp(r.$code,s.format),{code:n,map:i}=Jc(e,{...s,...t});return{code:n,map:i}}async function ga(r,s={}){let e=await Yn.readFile(r,"utf8");return s.sourceFileName=s.sourceFileName??r,mp(e,s)}async function ba(r,s,e){let t="$ast"in r?r.$ast:r,{code:n,map:i}=ya(t,e);await Yn.writeFile(s,n),i&&await Yn.writeFile(s+".map",i)}var Vu=es(un(),1),$u=es(Gn(),1);function xa(r,s){if(typeof s=="object")for(let e in s)typeof r[e]=="object"&&typeof s[e]=="object"?xa(r[e],s[e]):r[e]=s[e]}function fr(r){return yp(r.exports.default)}function yp(r){return r.$type==="function-call"?r.$args[0]:r}function va(r,s,e,t){let n=fr(r);n.modules||(n.modules=[]),n.modules.includes(s)||n.modules.push(s),e&&(n[e]||(n[e]={}),xa(n[e],t))}import wp from"prompts";import gp from"kleur";import bp from"prompts";var Pa=["radix-vue","tailwind-variants"],wa=["typescript","tailwindcss-animate","nuxt-icon","nuxt-lodash","prettier-plugin-tailwindcss","prettier","@nuxtjs/tailwindcss","@nuxtjs/color-mode","@ianvs/prettier-plugin-sort-imports","@vueuse/nuxt"],Ta=["@nuxtjs/tailwindcss","@nuxtjs/color-mode","@vueuse/nuxt","nuxt-lodash","nuxt-icon"],Rs=[{title:"Zinc",value:"zinc"},{title:"Slate",value:"slate"},{title:"Stone",value:"stone"},{title:"Gray",value:"gray"},{title:"Neutral",value:"neutral"},{title:"Red",value:"red"},{title:"Rose",value:"rose"},{title:"Orange",value:"orange"},{title:"Green",value:"green"},{title:"Blue",value:"blue"},{title:"Yellow",value:"yellow"},{title:"Violet",value:"violet"}];var Sa=async()=>{let r=await bp([{name:"theme",type:"autocomplete",message:"Which theme do you want to start with?",choices:Rs},{name:"tailwindCSSLocation",type:"text",message:"Where is your tailwind.css file located?",initial:"assets/css/tailwind.css"},{name:"tailwindConfigLocation",type:"text",message:"Where is your tailwind.config file located?",initial:"tailwind.config.js"},{name:"componentsLocation",type:"text",message:"Where should your components be stored?",initial:"components/UI"},{name:"composablesLocation",type:"text",message:"Where should your composables be stored?",initial:"composables"},{name:"utilsLocation",type:"text",message:"Where should your utils be stored?",initial:"utils"},{name:"force",type:"confirm",message:"Should we ask before overwriting files?",initial:!0},{name:"useDefaultFilename",type:"confirm",message:"Would you like to use the default filename when adding components?",initial:!0},{name:"packageManager",type:"select",message:"Which package manager do you use?",choices:[{title:"NPM",value:"npm"},{title:"Yarn",value:"yarn"},{title:"PNPM",value:"pnpm"},{title:"Bun",value:"bun"}]}]);return!r||Object.keys(r).length<9?(console.log(gp.red("Incomplete configuration submitted. Exiting...")),process.exit(0)):r};var Tp=process.cwd(),hr="ui-thing.config.ts",Bs=async()=>{if(!Se.existsSync("nuxt.config.ts"))return console.log(Ca.red(`No ${Ca.bgWhite("nuxt.config.ts")} file found. Exiting...`)),process.exit(0);let r=await ga(xp(Tp,"nuxt.config.ts")),s=fr(r);return{nuxtConfig:r,defaultExport:s}},Ce=async r=>{let s=Se.existsSync(hr),e={};if(!s||r?.force){if(e=await Sa(),await Se.writeFile(hr,`export default ${JSON.stringify(e,null,2)}`),e.packageManager==="pnpm")if(Se.existsSync(".npmrc")){let{confirmCreateNpmrc:n}=await wp({type:"confirm",name:"confirmCreateNpmrc",message:"A .npmrc file already exists. Do you want to overwrite it?",initial:!1});n&&await Se.writeFile(".npmrc",`shamefully-hoist=true
7180
+ `),u=!1;for(let f of p){let m=f.trim();if(m.length!==0){if(e.wrapColumn&&f.length>a&&(a=f.length),e.indent){let d=f.match(/^\s+/)?.[0]||"";d.length>0&&(d.length>0&&d.length<t&&(t=d.length),d[0]===" "?n++:d.length>0&&n--)}if(m.at(-1)===";"?i++:m.length>0&&i--,e.quote||e.arrowParens){let d=m.matchAll(l);for(let g of d)if(g.groups)for(let h in c)g.groups[h]&&c[h]++}e.trailingComma&&((f.startsWith("}")||f.startsWith("]"))&&(u?o++:o--),u=m.endsWith(","))}}return{wrapColumn:a,useTabs:n>0,tabWidth:t,quote:c.singleQuote>c.doubleQuote?"single":"double",arrowParensAlways:c.singleParam>0,trailingComma:o>0||c.trailingComma>0,useSemi:i>0,arrayBracketSpacing:void 0,objectCurlySpacing:void 0,...s}}function mp(r,s){let e=Dc(r,{parser:s?.parser||Xc(),...s});return fp(e,r)}function ya(r,s={}){let e=r.$ast||r,t=s.format===!1||!("$code"in r)?{}:hp(r.$code,s.format),{code:n,map:i}=Jc(e,{...s,...t});return{code:n,map:i}}async function ga(r,s={}){let e=await Yn.readFile(r,"utf8");return s.sourceFileName=s.sourceFileName??r,mp(e,s)}async function ba(r,s,e){let t="$ast"in r?r.$ast:r,{code:n,map:i}=ya(t,e);await Yn.writeFile(s,n),i&&await Yn.writeFile(s+".map",i)}var Vu=es(un(),1),$u=es(Gn(),1);function xa(r,s){if(typeof s=="object")for(let e in s)typeof r[e]=="object"&&typeof s[e]=="object"?xa(r[e],s[e]):r[e]=s[e]}function fr(r){return yp(r.exports.default)}function yp(r){return r.$type==="function-call"?r.$args[0]:r}function va(r,s,e,t){let n=fr(r);n.modules||(n.modules=[]),n.modules.includes(s)||n.modules.push(s),e&&(n[e]||(n[e]={}),xa(n[e],t))}import wp from"prompts";import gp from"kleur";import bp from"prompts";var Pa=["radix-vue","tailwind-variants"],wa=["typescript","tailwindcss-animate","nuxt-icon","nuxt-lodash","prettier-plugin-tailwindcss","prettier","@nuxtjs/tailwindcss","@nuxtjs/color-mode","@ianvs/prettier-plugin-sort-imports","@vueuse/nuxt"],Ta=["@nuxtjs/tailwindcss","@nuxtjs/color-mode","@vueuse/nuxt","nuxt-lodash","nuxt-icon"],Rs=[{title:"Zinc",value:"zinc"},{title:"Slate",value:"slate"},{title:"Stone",value:"stone"},{title:"Gray",value:"gray"},{title:"Neutral",value:"neutral"},{title:"Red",value:"red"},{title:"Rose",value:"rose"},{title:"Orange",value:"orange"},{title:"Green",value:"green"},{title:"Blue",value:"blue"},{title:"Yellow",value:"yellow"},{title:"Violet",value:"violet"}];var Sa=async()=>{let r=await bp([{name:"theme",type:"autocomplete",message:"Which theme do you want to start with?",choices:Rs},{name:"tailwindCSSLocation",type:"text",message:"Where is your tailwind.css file located?",initial:"assets/css/tailwind.css"},{name:"tailwindConfigLocation",type:"text",message:"Where is your tailwind.config file located?",initial:"tailwind.config.js"},{name:"componentsLocation",type:"text",message:"Where should your components be stored?",initial:"components/UI"},{name:"composablesLocation",type:"text",message:"Where should your composables be stored?",initial:"composables"},{name:"utilsLocation",type:"text",message:"Where should your utils be stored?",initial:"utils"},{name:"force",type:"confirm",message:"Should we just replace component files if they already exist?",initial:!0},{name:"useDefaultFilename",type:"confirm",message:"Would you like to use the default filename when adding components?",initial:!0},{name:"packageManager",type:"select",message:"Which package manager do you use?",choices:[{title:"NPM",value:"npm"},{title:"Yarn",value:"yarn"},{title:"PNPM",value:"pnpm"},{title:"Bun",value:"bun"}]}]);return!r||Object.keys(r).length<9?(console.log(gp.red("Incomplete configuration submitted. Exiting...")),process.exit(0)):r};var Tp=process.cwd(),hr="ui-thing.config.ts",Bs=async()=>{if(!Se.existsSync("nuxt.config.ts"))return console.log(Ca.red(`No ${Ca.bgWhite("nuxt.config.ts")} file found. Exiting...`)),process.exit(0);let r=await ga(xp(Tp,"nuxt.config.ts")),s=fr(r);return{nuxtConfig:r,defaultExport:s}},Ce=async r=>{let s=Se.existsSync(hr),e={};if(!s||r?.force){if(e=await Sa(),await Se.writeFile(hr,`export default ${JSON.stringify(e,null,2)}`),e.packageManager==="pnpm")if(Se.existsSync(".npmrc")){let{confirmCreateNpmrc:n}=await wp({type:"confirm",name:"confirmCreateNpmrc",message:"A .npmrc file already exists. Do you want to overwrite it?",initial:!1});n&&await Se.writeFile(".npmrc",`shamefully-hoist=true
7181
7181
  strict-peer-dependencies=false
7182
7182
  `)}else await Se.writeFile(".npmrc",`shamefully-hoist=true
7183
7183
  strict-peer-dependencies=false