diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index 2c66bae7..00000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -pnpm validate diff --git a/packages/cli/dist/components/primitives/center.js.map b/packages/cli/dist/components/primitives/center.js.map index db2c8811..b4cbd566 100644 --- a/packages/cli/dist/components/primitives/center.js.map +++ b/packages/cli/dist/components/primitives/center.js.map @@ -1 +1 @@ -{"version":3,"file":"center.js","sourceRoot":"","sources":["../../../components/primitives/center.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,IAAI,MAAM,MAAM,CAAC;AASxB,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,EAAE;IAChC,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,UAAU,EAAE,uBAAuB;YACnC,QAAQ,EAAE,gCAAgC;YAC1C,MAAM,EAAE,oCAAoC;SAC7C;KACF;IACD,eAAe,EAAE;QACf,SAAS,EAAE,YAAY;KACxB;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,MAAM,GAAoB,CAAC,EAKvC,EAAE,EAAE;QALmC,EACtC,QAAQ,EACR,SAAS,GAAG,YAAY,EACxB,SAAS,OAEV,EADI,KAAK,cAJ8B,sCAKvC,CADS;IAER,OAAO,CACL,8BAAS,KAAK,IAAE,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,CAAC,YACrE,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"center.js","sourceRoot":"","sources":["../../../src/components/primitives/center.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,IAAI,MAAM,MAAM,CAAC;AASxB,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,EAAE;IAChC,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,UAAU,EAAE,uBAAuB;YACnC,QAAQ,EAAE,gCAAgC;YAC1C,MAAM,EAAE,oCAAoC;SAC7C;KACF;IACD,eAAe,EAAE;QACf,SAAS,EAAE,YAAY;KACxB;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,MAAM,GAAoB,CAAC,EAKvC,EAAE,EAAE;QALmC,EACtC,QAAQ,EACR,SAAS,GAAG,YAAY,EACxB,SAAS,OAEV,EADI,KAAK,cAJ8B,sCAKvC,CADS;IAER,OAAO,CACL,8BAAS,KAAK,IAAE,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,CAAC,YACrE,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/primitives/cluster.js.map b/packages/cli/dist/components/primitives/cluster.js.map index a62b65cd..f00962f0 100644 --- a/packages/cli/dist/components/primitives/cluster.js.map +++ b/packages/cli/dist/components/primitives/cluster.js.map @@ -1 +1 @@ -{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../components/primitives/cluster.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAe,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAgB,YAAY,EAAE,MAAM,eAAe,CAAC;AAM3D,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CACrC,CAAC,EAA2D,EAAE,GAAG,EAAE,EAAE;QAApE,EAAE,GAAG,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,OAAY,EAAP,KAAK,cAAzD,yDAA2D,CAAF;IACxD,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CACX,gBAAgB,EAChB,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EACpB,YAAY,CAAC,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAC/C,SAAS,CACV,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../src/components/primitives/cluster.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAe,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAgB,YAAY,EAAE,MAAM,eAAe,CAAC;AAM3D,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CACrC,CAAC,EAA2D,EAAE,GAAG,EAAE,EAAE;QAApE,EAAE,GAAG,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,OAAY,EAAP,KAAK,cAAzD,yDAA2D,CAAF;IACxD,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CACX,gBAAgB,EAChB,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EACpB,YAAY,CAAC,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAC/C,SAAS,CACV,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/primitives/flex-box.js.map b/packages/cli/dist/components/primitives/flex-box.js.map index 713263c1..c4260823 100644 --- a/packages/cli/dist/components/primitives/flex-box.js.map +++ b/packages/cli/dist/components/primitives/flex-box.js.map @@ -1 +1 @@ -{"version":3,"file":"flex-box.js","sourceRoot":"","sources":["../../../components/primitives/flex-box.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAA8C,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAOlH,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CACrC,CACE,EAAoE,EACpE,GAAG,EACH,EAAE;QAFF,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,OAAY,EAAP,KAAK,cAAlE,sEAAoE,CAAF;IAGlE,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CACX,gBAAgB,EAChB,eAAe,CAAC,EAAE,CAAC,EAAE,CAAC,EACtB,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EACpB,YAAY,CAAC,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EACrD,SAAS,CACV,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"flex-box.js","sourceRoot":"","sources":["../../../src/components/primitives/flex-box.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAA8C,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAOlH,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CACrC,CACE,EAAoE,EACpE,GAAG,EACH,EAAE;QAFF,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,OAAY,EAAP,KAAK,cAAlE,sEAAoE,CAAF;IAGlE,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CACX,gBAAgB,EAChB,eAAe,CAAC,EAAE,CAAC,EAAE,CAAC,EACtB,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EACpB,YAAY,CAAC,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EACrD,SAAS,CACV,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/primitives/hidden.js.map b/packages/cli/dist/components/primitives/hidden.js.map index c9e38789..83a8cbfd 100644 --- a/packages/cli/dist/components/primitives/hidden.js.map +++ b/packages/cli/dist/components/primitives/hidden.js.map @@ -1 +1 @@ -{"version":3,"file":"hidden.js","sourceRoot":"","sources":["../../../components/primitives/hidden.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAkB,cAAc,EAAE,MAAM,UAAU,CAAC;AAI1D,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CACpC,CAAC,EAAqC,EAAE,GAAG,EAAE,EAAE;QAA9C,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,OAAY,EAAP,KAAK,cAAnC,+BAAqC,CAAF;IAClC,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,EAC1D,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC"} \ No newline at end of file +{"version":3,"file":"hidden.js","sourceRoot":"","sources":["../../../src/components/primitives/hidden.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAkB,cAAc,EAAE,MAAM,UAAU,CAAC;AAI1D,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CACpC,CAAC,EAAqC,EAAE,GAAG,EAAE,EAAE;QAA9C,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,OAAY,EAAP,KAAK,cAAnC,+BAAqC,CAAF;IAClC,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,EAC1D,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/primitives/reel.js.map b/packages/cli/dist/components/primitives/reel.js.map index 41acb856..504cdd6b 100644 --- a/packages/cli/dist/components/primitives/reel.js.map +++ b/packages/cli/dist/components/primitives/reel.js.map @@ -1 +1 @@ -{"version":3,"file":"reel.js","sourceRoot":"","sources":["../../../components/primitives/reel.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAGL,WAAW,EACX,eAAe,GAChB,MAAM,UAAU,CAAC;AAQlB,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAClC,CAAC,EAAgD,EAAE,GAAG,EAAE,EAAE;QAAzD,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,OAAY,EAAP,KAAK,cAA9C,8CAAgD,CAAF;IAC7C,OAAO,CACL,4BACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,wCAAwC,EACxC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EACpB,eAAe,CAAC,EAAE,CAAC,EAAE,CAAC,EACtB,KAAK,IAAI,cAAc,EACvB,SAAS,CACV,IACG,KAAK,cAER,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC"} \ No newline at end of file +{"version":3,"file":"reel.js","sourceRoot":"","sources":["../../../src/components/primitives/reel.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAGL,WAAW,EACX,eAAe,GAChB,MAAM,UAAU,CAAC;AAQlB,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAClC,CAAC,EAAgD,EAAE,GAAG,EAAE,EAAE;QAAzD,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,OAAY,EAAP,KAAK,cAA9C,8CAAgD,CAAF;IAC7C,OAAO,CACL,4BACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,wCAAwC,EACxC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EACpB,eAAe,CAAC,EAAE,CAAC,EAAE,CAAC,EACtB,KAAK,IAAI,cAAc,EACvB,SAAS,CACV,IACG,KAAK,cAER,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/primitives/sidebar.js.map b/packages/cli/dist/components/primitives/sidebar.js.map index 288df2d9..1fd96cbe 100644 --- a/packages/cli/dist/components/primitives/sidebar.js.map +++ b/packages/cli/dist/components/primitives/sidebar.js.map @@ -1 +1 @@ -{"version":3,"file":"sidebar.js","sourceRoot":"","sources":["../../../components/primitives/sidebar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAe,WAAW,EAAE,MAAM,UAAU,CAAC;AAUpD,MAAM,eAAe,GAAG,GAAG,CAAC,gBAAgB,EAAE;IAC5C,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,IAAI,EAAE,0GAA0G;YAChH,KAAK,EAAE,4GAA4G;SACpH;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,MAAM;KACb;CACF,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,OAAO,GAAqB,CAAC,EAMzC,EAAE,EAAE;QANqC,EACxC,QAAQ,EACR,GAAG,EACH,IAAI,GAAG,MAAM,EACb,SAAS,OAEV,EADI,KAAK,cALgC,wCAMzC,CADS;IAER,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,eAAe,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAC1D,KAAK,cAER,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"sidebar.js","sourceRoot":"","sources":["../../../src/components/primitives/sidebar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAe,WAAW,EAAE,MAAM,UAAU,CAAC;AAUpD,MAAM,eAAe,GAAG,GAAG,CAAC,gBAAgB,EAAE;IAC5C,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,IAAI,EAAE,0GAA0G;YAChH,KAAK,EAAE,4GAA4G;SACpH;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,MAAM;KACb;CACF,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,OAAO,GAAqB,CAAC,EAMzC,EAAE,EAAE;QANqC,EACxC,QAAQ,EACR,GAAG,EACH,IAAI,GAAG,MAAM,EACb,SAAS,OAEV,EADI,KAAK,cALgC,wCAMzC,CADS;IAER,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,eAAe,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAC1D,KAAK,cAER,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/primitives/split.js.map b/packages/cli/dist/components/primitives/split.js.map index e742fc93..4005f87f 100644 --- a/packages/cli/dist/components/primitives/split.js.map +++ b/packages/cli/dist/components/primitives/split.js.map @@ -1 +1 @@ -{"version":3,"file":"split.js","sourceRoot":"","sources":["../../../components/primitives/split.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAA6B,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAMhF,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CACnC,CAAC,EAA4C,EAAE,GAAG,EAAE,EAAE;QAArD,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,OAAY,EAAP,KAAK,cAA1C,wCAA4C,CAAF;IACzC,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CACX,gCAAgC,EAChC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EACpB,YAAY,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAChC,SAAS,CACV,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"} \ No newline at end of file +{"version":3,"file":"split.js","sourceRoot":"","sources":["../../../src/components/primitives/split.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAA6B,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAMhF,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CACnC,CAAC,EAA4C,EAAE,GAAG,EAAE,EAAE;QAArD,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,OAAY,EAAP,KAAK,cAA1C,wCAA4C,CAAF;IACzC,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CACX,gCAAgC,EAChC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EACpB,YAAY,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAChC,SAAS,CACV,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/primitives/stack.js.map b/packages/cli/dist/components/primitives/stack.js.map index d15ea7a6..3a51d2c6 100644 --- a/packages/cli/dist/components/primitives/stack.js.map +++ b/packages/cli/dist/components/primitives/stack.js.map @@ -1 +1 @@ -{"version":3,"file":"stack.js","sourceRoot":"","sources":["../../../components/primitives/stack.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAe,WAAW,EAAE,MAAM,UAAU,CAAC;AAIpD,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CACnC,CAAC,EAA4B,EAAE,GAAG,EAAE,EAAE;QAArC,EAAE,GAAG,EAAE,SAAS,OAAY,EAAP,KAAK,cAA1B,oBAA4B,CAAF;IACzB,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,CAAC,EAC/D,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"} \ No newline at end of file +{"version":3,"file":"stack.js","sourceRoot":"","sources":["../../../src/components/primitives/stack.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAe,WAAW,EAAE,MAAM,UAAU,CAAC;AAIpD,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CACnC,CAAC,EAA4B,EAAE,GAAG,EAAE,EAAE;QAArC,EAAE,GAAG,EAAE,SAAS,OAAY,EAAP,KAAK,cAA1B,oBAA4B,CAAF;IACzB,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,CAAC,EAC/D,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/primitives/switcher.js.map b/packages/cli/dist/components/primitives/switcher.js.map index b6918878..6a63aa27 100644 --- a/packages/cli/dist/components/primitives/switcher.js.map +++ b/packages/cli/dist/components/primitives/switcher.js.map @@ -1 +1 @@ -{"version":3,"file":"switcher.js","sourceRoot":"","sources":["../../../components/primitives/switcher.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAe,WAAW,EAAE,MAAM,UAAU,CAAC;AAIpD,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CACtC,CAAC,EAA4B,EAAE,GAAG,EAAE,EAAE;QAArC,EAAE,GAAG,EAAE,SAAS,OAAY,EAAP,KAAK,cAA1B,oBAA4B,CAAF;IACzB,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CACX,kDAAkD,EAClD,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EACpB,SAAS,CACV,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC"} \ No newline at end of file +{"version":3,"file":"switcher.js","sourceRoot":"","sources":["../../../src/components/primitives/switcher.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAe,WAAW,EAAE,MAAM,UAAU,CAAC;AAIpD,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CACtC,CAAC,EAA4B,EAAE,GAAG,EAAE,EAAE;QAArC,EAAE,GAAG,EAAE,SAAS,OAAY,EAAP,KAAK,cAA1B,oBAA4B,CAAF;IACzB,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CACX,kDAAkD,EAClD,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EACpB,SAAS,CACV,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/primitives/tokens/flex.js.map b/packages/cli/dist/components/primitives/tokens/flex.js.map index aa97d13c..e92945c9 100644 --- a/packages/cli/dist/components/primitives/tokens/flex.js.map +++ b/packages/cli/dist/components/primitives/tokens/flex.js.map @@ -1 +1 @@ -{"version":3,"file":"flex.js","sourceRoot":"","sources":["../../../../components/primitives/tokens/flex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC,EAAE,EAAE;IAClC,QAAQ,EAAE;QACR,aAAa,EAAE;YACb,GAAG,EAAE,UAAU;YACf,UAAU,EAAE,kBAAkB;YAC9B,GAAG,EAAE,UAAU;YACf,UAAU,EAAE,kBAAkB;SAC/B;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,mBAAmB;YAChC,MAAM,EAAE,aAAa;SACtB;QACD,OAAO,EAAE;YACP,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,eAAe;YACtB,GAAG,EAAE,aAAa;YAClB,MAAM,EAAE,gBAAgB;YACxB,OAAO,EAAE,iBAAiB;YAC1B,MAAM,EAAE,gBAAgB;YACxB,MAAM,EAAE,gBAAgB;YACxB,OAAO,EAAE,iBAAiB;SAC3B;QACD,KAAK,EAAE;YACL,KAAK,EAAE,aAAa;YACpB,GAAG,EAAE,WAAW;YAChB,MAAM,EAAE,cAAc;YACtB,QAAQ,EAAE,gBAAgB;YAC1B,OAAO,EAAE,eAAe;SACzB;KACF;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"flex.js","sourceRoot":"","sources":["../../../../src/components/primitives/tokens/flex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC,EAAE,EAAE;IAClC,QAAQ,EAAE;QACR,aAAa,EAAE;YACb,GAAG,EAAE,UAAU;YACf,UAAU,EAAE,kBAAkB;YAC9B,GAAG,EAAE,UAAU;YACf,UAAU,EAAE,kBAAkB;SAC/B;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,mBAAmB;YAChC,MAAM,EAAE,aAAa;SACtB;QACD,OAAO,EAAE;YACP,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,eAAe;YACtB,GAAG,EAAE,aAAa;YAClB,MAAM,EAAE,gBAAgB;YACxB,OAAO,EAAE,iBAAiB;YAC1B,MAAM,EAAE,gBAAgB;YACxB,MAAM,EAAE,gBAAgB;YACxB,OAAO,EAAE,iBAAiB;SAC3B;QACD,KAAK,EAAE;YACL,KAAK,EAAE,aAAa;YACpB,GAAG,EAAE,WAAW;YAChB,MAAM,EAAE,cAAc;YACtB,QAAQ,EAAE,gBAAgB;YAC1B,OAAO,EAAE,eAAe;SACzB;KACF;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/primitives/tokens/hidden.js.map b/packages/cli/dist/components/primitives/tokens/hidden.js.map index 33ef22ed..0439cb50 100644 --- a/packages/cli/dist/components/primitives/tokens/hidden.js.map +++ b/packages/cli/dist/components/primitives/tokens/hidden.js.map @@ -1 +1 @@ -{"version":3,"file":"hidden.js","sourceRoot":"","sources":["../../../../components/primitives/tokens/hidden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC,EAAE,EAAE;IACpC,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,EAAE,EAAE,WAAW;YACf,EAAE,EAAE,WAAW;YACf,EAAE,EAAE,WAAW;YACf,EAAE,EAAE,YAAY;SACjB;QACD,KAAK,EAAE;YACL,EAAE,EAAE,iBAAiB;YACrB,EAAE,EAAE,iBAAiB;YACrB,EAAE,EAAE,iBAAiB;YACrB,EAAE,EAAE,iBAAiB;YACrB,KAAK,EAAE,kBAAkB;SAC1B;KACF;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"hidden.js","sourceRoot":"","sources":["../../../../src/components/primitives/tokens/hidden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC,EAAE,EAAE;IACpC,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,EAAE,EAAE,WAAW;YACf,EAAE,EAAE,WAAW;YACf,EAAE,EAAE,WAAW;YACf,EAAE,EAAE,YAAY;SACjB;QACD,KAAK,EAAE;YACL,EAAE,EAAE,iBAAiB;YACrB,EAAE,EAAE,iBAAiB;YACrB,EAAE,EAAE,iBAAiB;YACrB,EAAE,EAAE,iBAAiB;YACrB,KAAK,EAAE,kBAAkB;SAC1B;KACF;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/primitives/tokens/index.js.map b/packages/cli/dist/components/primitives/tokens/index.js.map index 72979e6e..1433a07c 100644 --- a/packages/cli/dist/components/primitives/tokens/index.js.map +++ b/packages/cli/dist/components/primitives/tokens/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../components/primitives/tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/primitives/tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/primitives/tokens/spacing.js.map b/packages/cli/dist/components/primitives/tokens/spacing.js.map index 8f1ea848..9531f93b 100644 --- a/packages/cli/dist/components/primitives/tokens/spacing.js.map +++ b/packages/cli/dist/components/primitives/tokens/spacing.js.map @@ -1 +1 @@ -{"version":3,"file":"spacing.js","sourceRoot":"","sources":["../../../../components/primitives/tokens/spacing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC,EAAE,EAAE;IACrC,QAAQ,EAAE;QACR,CAAC,EAAE;YACD,GAAG,EAAE,OAAO;YACZ,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,GAAG,EAAE,KAAK;SACX;KACF;IACD,eAAe,EAAE;QACf,CAAC,EAAE,IAAI;KACR;CACF,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC,EAAE,EAAE;IACjC,QAAQ,EAAE;QACR,GAAG,EAAE;YACH,GAAG,EAAE,SAAS;YACd,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,SAAS;YAChB,GAAG,EAAE,OAAO;SACb;QACD,IAAI,EAAE;YACJ,GAAG,EAAE,WAAW;YAChB,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,GAAG,EAAE,SAAS;SACf;QACD,IAAI,EAAE;YACJ,GAAG,EAAE,WAAW;YAChB,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,GAAG,EAAE,SAAS;SACf;KACF;IACD,eAAe,EAAE;QACf,GAAG,EAAE,IAAI;KACV;CACF,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,GAAG,EAAE,QAAQ;IACb,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,SAAS;IACb,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;CACd,CAAC"} \ No newline at end of file +{"version":3,"file":"spacing.js","sourceRoot":"","sources":["../../../../src/components/primitives/tokens/spacing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC,EAAE,EAAE;IACrC,QAAQ,EAAE;QACR,CAAC,EAAE;YACD,GAAG,EAAE,OAAO;YACZ,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,GAAG,EAAE,KAAK;SACX;KACF;IACD,eAAe,EAAE;QACf,CAAC,EAAE,IAAI;KACR;CACF,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC,EAAE,EAAE;IACjC,QAAQ,EAAE;QACR,GAAG,EAAE;YACH,GAAG,EAAE,SAAS;YACd,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,SAAS;YAChB,GAAG,EAAE,OAAO;SACb;QACD,IAAI,EAAE;YACJ,GAAG,EAAE,WAAW;YAChB,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,GAAG,EAAE,SAAS;SACf;QACD,IAAI,EAAE;YACJ,GAAG,EAAE,WAAW;YAChB,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,GAAG,EAAE,SAAS;SACf;KACF;IACD,eAAe,EAAE;QACf,GAAG,EAAE,IAAI;KACV;CACF,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,GAAG,EAAE,QAAQ;IACb,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,SAAS;IACb,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;CACd,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/typography/heading.js.map b/packages/cli/dist/components/typography/heading.js.map index 6d538c1e..56562225 100644 --- a/packages/cli/dist/components/typography/heading.js.map +++ b/packages/cli/dist/components/typography/heading.js.map @@ -1 +1 @@ -{"version":3,"file":"heading.js","sourceRoot":"","sources":["../../../components/typography/heading.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAAgB,MAAM,UAAU,CAAC;AAQtD,MAAM,eAAe,GAAG,GAAG,CAAC,SAAS,EAAE;IACrC,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,GAAG,EAAE,mCAAmC;YACxC,GAAG,EAAE,oDAAoD;YACzD,GAAG,EAAE,uBAAuB;YAC5B,GAAG,EAAE,sBAAsB;SAC5B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,gBAAgB;SACvB;KACF;IACD,eAAe,EAAE;QACf,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,MAAM;KACf;CACF,CAAC,CAAC;AAEH,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAC9B,CACE,EAAwE,EACxE,GAAG,EACH,EAAE;QAFF,EAAE,KAAK,GAAG,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,OAAY,EAAP,KAAK,cAAtE,kEAAwE,CAAF;IAGtE,MAAM,IAAI,GAAG,IAAI,KAAK,EAA+B,CAAC;IACtD,OAAO,CACL,KAAC,IAAI,kBACH,SAAS,EAAE,EAAE,CACX,eAAe,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAClC,YAAY,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAClC,SAAS,CACV,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,cAER,QAAQ,IACJ,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"heading.js","sourceRoot":"","sources":["../../../src/components/typography/heading.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAAgB,MAAM,UAAU,CAAC;AAQtD,MAAM,eAAe,GAAG,GAAG,CAAC,SAAS,EAAE;IACrC,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,GAAG,EAAE,mCAAmC;YACxC,GAAG,EAAE,oDAAoD;YACzD,GAAG,EAAE,uBAAuB;YAC5B,GAAG,EAAE,sBAAsB;SAC5B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,gBAAgB;SACvB;KACF;IACD,eAAe,EAAE;QACf,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,MAAM;KACf;CACF,CAAC,CAAC;AAEH,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAC9B,CACE,EAAwE,EACxE,GAAG,EACH,EAAE;QAFF,EAAE,KAAK,GAAG,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,OAAY,EAAP,KAAK,cAAtE,kEAAwE,CAAF;IAGtE,MAAM,IAAI,GAAG,IAAI,KAAK,EAA+B,CAAC;IACtD,OAAO,CACL,KAAC,IAAI,kBACH,SAAS,EAAE,EAAE,CACX,eAAe,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAClC,YAAY,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAClC,SAAS,CACV,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,cAER,QAAQ,IACJ,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/typography/text.js.map b/packages/cli/dist/components/typography/text.js.map index 85118fb7..f3e66292 100644 --- a/packages/cli/dist/components/typography/text.js.map +++ b/packages/cli/dist/components/typography/text.js.map @@ -1 +1 @@ -{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../components/typography/text.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAAgB,MAAM,UAAU,CAAC;AAStD,MAAM,kBAAkB,GAAG,GAAG,CAAC,mCAAmC,EAAE;IAClE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,IAAI,EAAE,wBAAwB;YAC9B,EAAE,EAAE,sBAAsB;YAC1B,EAAE,EAAE,sBAAsB;YAC1B,EAAE,EAAE,sBAAsB;SAC3B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,aAAa;YACrB,IAAI,EAAE,WAAW;SAClB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,eAAe;SACvB;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,MAAM;KACb;CACF,CAAC,CAAC;AAEH,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAC3B,CACE,EAUC,EACD,GAAG,EACH,EAAE;QAZF,EACE,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,SAAS,EACT,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,SAAS,OAEV,EADI,KAAK,cATV,qFAUC,CADS;IAIV,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC;IACrC,OAAO,CACL,KAAC,IAAI,kBACH,SAAS,EAAE,EAAE,CACX,kBAAkB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EACrD,YAAY,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CACnC,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,cAER,QAAQ,IACJ,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../src/components/typography/text.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAAgB,MAAM,UAAU,CAAC;AAStD,MAAM,kBAAkB,GAAG,GAAG,CAAC,mCAAmC,EAAE;IAClE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,IAAI,EAAE,wBAAwB;YAC9B,EAAE,EAAE,sBAAsB;YAC1B,EAAE,EAAE,sBAAsB;YAC1B,EAAE,EAAE,sBAAsB;SAC3B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,aAAa;YACrB,IAAI,EAAE,WAAW;SAClB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,eAAe;SACvB;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,MAAM;KACb;CACF,CAAC,CAAC;AAEH,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAC3B,CACE,EAUC,EACD,GAAG,EACH,EAAE;QAZF,EACE,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,SAAS,EACT,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,SAAS,OAEV,EADI,KAAK,cATV,qFAUC,CADS;IAIV,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC;IACrC,OAAO,CACL,KAAC,IAAI,kBACH,SAAS,EAAE,EAAE,CACX,kBAAkB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EACrD,YAAY,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CACnC,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,cAER,QAAQ,IACJ,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/typography/tokens/index.js.map b/packages/cli/dist/components/typography/tokens/index.js.map index a8ecbb3b..7bd65879 100644 --- a/packages/cli/dist/components/typography/tokens/index.js.map +++ b/packages/cli/dist/components/typography/tokens/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../components/typography/tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/typography/tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/components/typography/tokens/text.js.map b/packages/cli/dist/components/typography/tokens/text.js.map index 5de6a486..2ec54ec1 100644 --- a/packages/cli/dist/components/typography/tokens/text.js.map +++ b/packages/cli/dist/components/typography/tokens/text.js.map @@ -1 +1 @@ -{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../../components/typography/tokens/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC,EAAE,EAAE;IAClC,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,aAAa;YACrB,KAAK,EAAE,YAAY;YACnB,OAAO,EAAE,cAAc;YACvB,KAAK,EAAE,YAAY;YACnB,GAAG,EAAE,UAAU;SAChB;QACD,KAAK,EAAE;YACL,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,uBAAuB;SAC/B;KACF;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../../src/components/typography/tokens/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC,EAAE,EAAE;IAClC,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,aAAa;YACrB,KAAK,EAAE,YAAY;YACnB,OAAO,EAAE,cAAc;YACvB,KAAK,EAAE,YAAY;YACnB,GAAG,EAAE,UAAU;SAChB;QACD,KAAK,EAAE;YACL,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,uBAAuB;SAC/B;KACF;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/helpers/choose-pkm.js b/packages/cli/dist/helpers/choose-pkm.js deleted file mode 100644 index 0c607374..00000000 --- a/packages/cli/dist/helpers/choose-pkm.js +++ /dev/null @@ -1,18 +0,0 @@ -import inquirer from "inquirer"; -const pkms = ["pnpm", "npm", "yarn"]; -export const choosePkm = async () => { - const answer = await inquirer.prompt([ - { - type: "list", - name: "selected", - message: "Select package manager", - default: "pnpm", - choices: pkms.map((pkm) => ({ - name: pkm, - value: pkm, - })), - }, - ]); - return answer.selected; -}; -//# sourceMappingURL=choose-pkm.js.map \ No newline at end of file diff --git a/packages/cli/dist/helpers/choose-pkm.js.map b/packages/cli/dist/helpers/choose-pkm.js.map deleted file mode 100644 index ec9d7adf..00000000 --- a/packages/cli/dist/helpers/choose-pkm.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"choose-pkm.js","sourceRoot":"","sources":["../../src/helpers/choose-pkm.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAU,CAAC;AAI9C,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,IAAsB,EAAE;IACpD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAwB;QAC1D;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,wBAAwB;YACjC,OAAO,EAAE,MAAM;YACf,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBAC1B,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;aACX,CAAC,CAAC;SACJ;KACF,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,QAAQ,CAAC;AACzB,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/index.js b/packages/cli/dist/index.js old mode 100755 new mode 100644 index 0cc788cc..8cd633ee --- a/packages/cli/dist/index.js +++ b/packages/cli/dist/index.js @@ -6,7 +6,7 @@ import { addPrimitives } from "./workers/add-primitives.js"; import { addTypography } from "./workers/add-typography.js"; import { addLib } from "./workers/add-lib.js"; const program = new Command(); -console.log(figlet.textSync("kodiui")); +console.log(figlet.textSync("kodi-ui")); program .version("1.0.0") .description("An example CLI for managing a directory") @@ -30,7 +30,7 @@ async function main() { if (answers.questions === "primitives") await addPrimitives(); if (answers.questions === "typography") - addTypography(); + await addTypography(); addLib(); } main(); diff --git a/packages/cli/dist/index.js.map b/packages/cli/dist/index.js.map index 9308430b..f3d8dacd 100644 --- a/packages/cli/dist/index.js.map +++ b/packages/cli/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEvC,OAAO;KACJ,OAAO,CAAC,OAAO,CAAC;KAChB,WAAW,CAAC,yCAAyC,CAAC;KACtD,MAAM,CAAC,mBAAmB,EAAE,yBAAyB,CAAC;KACtD,MAAM,CAAC,qBAAqB,EAAE,oBAAoB,CAAC;KACnD,MAAM,CAAC,qBAAqB,EAAE,eAAe,CAAC;KAC9C,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvB,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;AAM/B,KAAK,UAAU,IAAI;IACjB,MAAM,OAAO,GAAW,MAAM,QAAQ,CAAC,MAAM,CAAC;QAC5C;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,4BAA4B;YACrC,OAAO,EAAE;gBACP,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,EAAE;gBAC/C,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,EAAE;aAChD;SACF;KACF,CAAC,CAAC;IAEH,IAAI,OAAO,CAAC,SAAS,KAAK,YAAY;QAAE,MAAM,aAAa,EAAE,CAAC;IAC9D,IAAI,OAAO,CAAC,SAAS,KAAK,YAAY;QAAE,aAAa,EAAE,CAAC;IAExD,MAAM,EAAE,CAAC;AACX,CAAC;AAED,IAAI,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;AAExC,OAAO;KACJ,OAAO,CAAC,OAAO,CAAC;KAChB,WAAW,CAAC,yCAAyC,CAAC;KACtD,MAAM,CAAC,mBAAmB,EAAE,yBAAyB,CAAC;KACtD,MAAM,CAAC,qBAAqB,EAAE,oBAAoB,CAAC;KACnD,MAAM,CAAC,qBAAqB,EAAE,eAAe,CAAC;KAC9C,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvB,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;AAM/B,KAAK,UAAU,IAAI;IACjB,MAAM,OAAO,GAAW,MAAM,QAAQ,CAAC,MAAM,CAAC;QAC5C;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,4BAA4B;YACrC,OAAO,EAAE;gBACP,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,EAAE;gBAC/C,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,EAAE;aAChD;SACF;KACF,CAAC,CAAC;IAEH,IAAI,OAAO,CAAC,SAAS,KAAK,YAAY;QAAE,MAAM,aAAa,EAAE,CAAC;IAC9D,IAAI,OAAO,CAAC,SAAS,KAAK,YAAY;QAAE,MAAM,aAAa,EAAE,CAAC;IAE9D,MAAM,EAAE,CAAC;AACX,CAAC;AAED,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/lib/utils.js.map b/packages/cli/dist/lib/utils.js.map index 72f81b8f..aea81fae 100644 --- a/packages/cli/dist/lib/utils.js.map +++ b/packages/cli/dist/lib/utils.js.map @@ -1 +1 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,UAAU,EAAE,CAAC,GAAG,MAAoB;IACxC,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/B,CAAC"} \ No newline at end of file +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,UAAU,EAAE,CAAC,GAAG,MAAoB;IACxC,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/src/helpers/pkm.js b/packages/cli/dist/src/helpers/pkm.js deleted file mode 100644 index 5d84cff7..00000000 --- a/packages/cli/dist/src/helpers/pkm.js +++ /dev/null @@ -1,23 +0,0 @@ -import inquirer from "inquirer"; -const pkms = ["pnpm", "npm", "yarn"]; -export const choosePkm = async () => { - const answer = await inquirer.prompt([ - { - type: "list", - name: "selected", - message: "Select package manager", - default: "pnpm", - choices: pkms.map((pkm) => ({ - name: pkm, - value: pkm, - })), - }, - ]); - return answer.selected; -}; -export const pkmCommands = { - npm: "install", - yarn: "add", - pnpm: "add", -}; -//# sourceMappingURL=pkm.js.map \ No newline at end of file diff --git a/packages/cli/dist/src/helpers/pkm.js.map b/packages/cli/dist/src/helpers/pkm.js.map deleted file mode 100644 index 4c884fe8..00000000 --- a/packages/cli/dist/src/helpers/pkm.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pkm.js","sourceRoot":"","sources":["../../../src/helpers/pkm.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAU,CAAC;AAI9C,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,IAAsB,EAAE;IACpD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAwB;QAC1D;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,wBAAwB;YACjC,OAAO,EAAE,MAAM;YACf,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBAC1B,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;aACX,CAAC,CAAC;SACJ;KACF,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,QAAQ,CAAC;AACzB,CAAC,CAAC;AAIF,MAAM,CAAC,MAAM,WAAW,GAAuC;IAC7D,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;CACH,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/src/index.js b/packages/cli/dist/src/index.js deleted file mode 100644 index 0cc788cc..00000000 --- a/packages/cli/dist/src/index.js +++ /dev/null @@ -1,37 +0,0 @@ -#! /usr/bin/env node -import { Command } from "commander"; -import figlet from "figlet"; -import inquirer from "inquirer"; -import { addPrimitives } from "./workers/add-primitives.js"; -import { addTypography } from "./workers/add-typography.js"; -import { addLib } from "./workers/add-lib.js"; -const program = new Command(); -console.log(figlet.textSync("kodiui")); -program - .version("1.0.0") - .description("An example CLI for managing a directory") - .option("-l, --ls [value]", "List directory contents") - .option("-m, --mkdir ", "Create a directory") - .option("-t, --touch ", "Create a file") - .parse(process.argv); -const options = program.opts(); -async function main() { - const answers = await inquirer.prompt([ - { - type: "list", - name: "questions", - message: "What would you like to do?", - choices: [ - { name: "add primitives", value: "primitives" }, - { name: "add typography", value: "typography" }, - ], - }, - ]); - if (answers.questions === "primitives") - await addPrimitives(); - if (answers.questions === "typography") - addTypography(); - addLib(); -} -main(); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/cli/dist/src/index.js.map b/packages/cli/dist/src/index.js.map deleted file mode 100644 index d2cc9cab..00000000 --- a/packages/cli/dist/src/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEvC,OAAO;KACJ,OAAO,CAAC,OAAO,CAAC;KAChB,WAAW,CAAC,yCAAyC,CAAC;KACtD,MAAM,CAAC,mBAAmB,EAAE,yBAAyB,CAAC;KACtD,MAAM,CAAC,qBAAqB,EAAE,oBAAoB,CAAC;KACnD,MAAM,CAAC,qBAAqB,EAAE,eAAe,CAAC;KAC9C,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvB,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;AAM/B,KAAK,UAAU,IAAI;IACjB,MAAM,OAAO,GAAW,MAAM,QAAQ,CAAC,MAAM,CAAC;QAC5C;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,4BAA4B;YACrC,OAAO,EAAE;gBACP,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,EAAE;gBAC/C,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,EAAE;aAChD;SACF;KACF,CAAC,CAAC;IAEH,IAAI,OAAO,CAAC,SAAS,KAAK,YAAY;QAAE,MAAM,aAAa,EAAE,CAAC;IAC9D,IAAI,OAAO,CAAC,SAAS,KAAK,YAAY;QAAE,aAAa,EAAE,CAAC;IAExD,MAAM,EAAE,CAAC;AACX,CAAC;AAED,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/src/lib/utils.js b/packages/cli/dist/src/lib/utils.js deleted file mode 100644 index ad49281b..00000000 --- a/packages/cli/dist/src/lib/utils.js +++ /dev/null @@ -1,6 +0,0 @@ -import { clsx } from "clsx"; -import { twMerge } from "tailwind-merge"; -export function cn(...inputs) { - return twMerge(clsx(inputs)); -} -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/packages/cli/dist/src/lib/utils.js.map b/packages/cli/dist/src/lib/utils.js.map deleted file mode 100644 index 95aa1afc..00000000 --- a/packages/cli/dist/src/lib/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,UAAU,EAAE,CAAC,GAAG,MAAoB;IACxC,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/src/workers/add-lib.js b/packages/cli/dist/src/workers/add-lib.js deleted file mode 100644 index 9333a759..00000000 --- a/packages/cli/dist/src/workers/add-lib.js +++ /dev/null @@ -1,15 +0,0 @@ -import path from "path"; -import fs from "fs"; -import unzipper from "unzipper"; -import ora from "ora"; -import { fileURLToPath } from "url"; -export const addLib = async () => { - const extractPath = path.join(process.cwd()); - const __filename = fileURLToPath(import.meta.url); - const __dirname = path.dirname(__filename); - const zipPath = path.join(__dirname, "..", "..", "out-components", "lib.zip"); - const spinner = ora("Adding lib folder").start(); - fs.createReadStream(zipPath).pipe(unzipper.Extract({ path: `${extractPath}/lib` })); - spinner.succeed("lib folder added to root of project"); -}; -//# sourceMappingURL=add-lib.js.map \ No newline at end of file diff --git a/packages/cli/dist/src/workers/add-lib.js.map b/packages/cli/dist/src/workers/add-lib.js.map deleted file mode 100644 index 010058c6..00000000 --- a/packages/cli/dist/src/workers/add-lib.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"add-lib.js","sourceRoot":"","sources":["../../../src/workers/add-lib.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,IAAI,EAAE;IAC/B,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7C,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAE3C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAE9E,MAAM,OAAO,GAAG,GAAG,CAAC,mBAAmB,CAAC,CAAC,KAAK,EAAE,CAAC;IACjD,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAC/B,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,MAAM,EAAE,CAAC,CACjD,CAAC;IACF,OAAO,CAAC,OAAO,CAAC,qCAAqC,CAAC,CAAC;AACzD,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/src/workers/add-primitives.js b/packages/cli/dist/src/workers/add-primitives.js deleted file mode 100644 index 54d25405..00000000 --- a/packages/cli/dist/src/workers/add-primitives.js +++ /dev/null @@ -1,26 +0,0 @@ -import { fileURLToPath } from "url"; -import path from "path"; -import fs from "fs"; -import unzipper from "unzipper"; -import inquirer from "inquirer"; -import { installDependenciesPrimitives } from "./install-dependecies-primitives.js"; -export async function addPrimitives() { - const __filename = fileURLToPath(import.meta.url); - const __dirname = path.dirname(__filename); - const zipPath = path.join(__dirname, "..", "..", "out-components", "primitives.zip"); - async function extractPrimitive() { - const answer = await inquirer.prompt([ - { - type: "input", - name: "extractPath", - message: "Enter the path where you want to extract the primitives:", - default: "components/primitives/", - }, - ]); - const extractPath = path.join(process.cwd(), answer.extractPath); - fs.createReadStream(zipPath).pipe(unzipper.Extract({ path: extractPath })); - await installDependenciesPrimitives(); - } - await extractPrimitive(); -} -//# sourceMappingURL=add-primitives.js.map \ No newline at end of file diff --git a/packages/cli/dist/src/workers/add-primitives.js.map b/packages/cli/dist/src/workers/add-primitives.js.map deleted file mode 100644 index 45d9227b..00000000 --- a/packages/cli/dist/src/workers/add-primitives.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"add-primitives.js","sourceRoot":"","sources":["../../../src/workers/add-primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEpF,MAAM,CAAC,KAAK,UAAU,aAAa;IACjC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAE3C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CACvB,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,CACjB,CAAC;IAEF,KAAK,UAAU,gBAAgB;QAC7B,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;YACnC;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,0DAA0D;gBACnE,OAAO,EAAE,wBAAwB;aAClC;SACF,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QACjE,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;QAE3E,MAAM,6BAA6B,EAAE,CAAC;IACxC,CAAC;IAED,MAAM,gBAAgB,EAAE,CAAC;AAC3B,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/src/workers/add-typography.js b/packages/cli/dist/src/workers/add-typography.js deleted file mode 100644 index 86699e8e..00000000 --- a/packages/cli/dist/src/workers/add-typography.js +++ /dev/null @@ -1,28 +0,0 @@ -import { fileURLToPath } from "url"; -import path from "path"; -import fs from "fs"; -import unzipper from "unzipper"; -import inquirer from "inquirer"; -export function addTypography() { - const __filename = fileURLToPath(import.meta.url); - const __dirname = path.dirname(__filename); - const zipPath = path.join(__dirname, "..", "..", "out-components", "typography.zip"); - async function extract() { - const answer = await inquirer.prompt([ - { - type: "input", - name: "extractPath", - message: "Enter the path where you want to extract typography:", - default: "components/typography/", - }, - ]); - const extractPath = path.join(process.cwd(), answer.extractPath); - fs.createReadStream(zipPath) - .pipe(unzipper.Extract({ path: extractPath })) - .on("close", () => { - console.log("Typography have been successfully added to your project!"); - }); - } - extract(); -} -//# sourceMappingURL=add-typography.js.map \ No newline at end of file diff --git a/packages/cli/dist/src/workers/add-typography.js.map b/packages/cli/dist/src/workers/add-typography.js.map deleted file mode 100644 index 5860213f..00000000 --- a/packages/cli/dist/src/workers/add-typography.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"add-typography.js","sourceRoot":"","sources":["../../../src/workers/add-typography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,MAAM,UAAU,aAAa;IAC3B,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAE3C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CACvB,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,CACjB,CAAC;IAEF,KAAK,UAAU,OAAO;QACpB,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;YACnC;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,sDAAsD;gBAC/D,OAAO,EAAE,wBAAwB;aAClC;SACF,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QACjE,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC;aACzB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;aAC7C,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;YAChB,OAAO,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC;QAC1E,CAAC,CAAC,CAAC;IACP,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/src/workers/install-dependecies-primitives.js b/packages/cli/dist/src/workers/install-dependecies-primitives.js deleted file mode 100644 index 1dcc8de4..00000000 --- a/packages/cli/dist/src/workers/install-dependecies-primitives.js +++ /dev/null @@ -1,45 +0,0 @@ -import inquirer from "inquirer"; -import { spawn } from "child_process"; -import ora from "ora"; -import { choosePkm, pkmCommands } from "../helpers/pkm.js"; -async function askForPermission() { - const answer = await inquirer.prompt([ - { - type: "confirm", - name: "permission", - message: "Would you like to install required dependencies?", - default: true, - }, - ]); - return answer.permission; -} -const dependencies = ["class-variance-authority", "clsx", "tailwind-merge"]; -export async function installDependenciesPrimitives() { - const permission = await askForPermission(); - if (permission) { - const selectedPkm = await choosePkm(); - const pkmCommand = pkmCommands[selectedPkm]; - const spinner = ora("Installing dependencies...").start(); - try { - const child = spawn(selectedPkm, [pkmCommand, ...dependencies]); - child.on("close", (code) => { - if (code === 0) { - spinner.succeed("Dependencies installed successfully!"); - } - else { - spinner.fail("Failed to install dependencies"); - } - }); - } - catch (error) { - console.log(error); - spinner.fail("Failed to install dependencies"); - console.error(error); - } - } - else { - const spinner = ora("Installing components...").start(); - spinner.succeed("installed successfully!"); - } -} -//# sourceMappingURL=install-dependecies-primitives.js.map \ No newline at end of file diff --git a/packages/cli/dist/src/workers/install-dependecies-primitives.js.map b/packages/cli/dist/src/workers/install-dependecies-primitives.js.map deleted file mode 100644 index 46458452..00000000 --- a/packages/cli/dist/src/workers/install-dependecies-primitives.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"install-dependecies-primitives.js","sourceRoot":"","sources":["../../../src/workers/install-dependecies-primitives.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE3D,KAAK,UAAU,gBAAgB;IAC7B,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAA0B;QAC5D;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,kDAAkD;YAC3D,OAAO,EAAE,IAAI;SACd;KACF,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,UAAU,CAAC;AAC3B,CAAC;AAED,MAAM,YAAY,GAAG,CAAC,0BAA0B,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAE5E,MAAM,CAAC,KAAK,UAAU,6BAA6B;IACjD,MAAM,UAAU,GAAG,MAAM,gBAAgB,EAAE,CAAC;IAE5C,IAAI,UAAU,EAAE;QACd,MAAM,WAAW,GAAG,MAAM,SAAS,EAAE,CAAC;QACtC,MAAM,UAAU,GAAG,WAAW,CAAC,WAAW,CAAC,CAAC;QAE5C,MAAM,OAAO,GAAG,GAAG,CAAC,4BAA4B,CAAC,CAAC,KAAK,EAAE,CAAC;QAE1D,IAAI;YACF,MAAM,KAAK,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC,UAAU,EAAE,GAAG,YAAY,CAAC,CAAC,CAAC;YAEhE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;gBACzB,IAAI,IAAI,KAAK,CAAC,EAAE;oBACd,OAAO,CAAC,OAAO,CAAC,sCAAsC,CAAC,CAAC;iBACzD;qBAAM;oBACL,OAAO,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;iBAChD;YACH,CAAC,CAAC,CAAC;SACJ;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAEnB,OAAO,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;YAC/C,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SACtB;KACF;SAAM;QACL,MAAM,OAAO,GAAG,GAAG,CAAC,0BAA0B,CAAC,CAAC,KAAK,EAAE,CAAC;QACxD,OAAO,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;KAC5C;AACH,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/workers/add-primitives.js b/packages/cli/dist/workers/add-primitives.js index 54d25405..9ab1b746 100644 --- a/packages/cli/dist/workers/add-primitives.js +++ b/packages/cli/dist/workers/add-primitives.js @@ -8,6 +8,7 @@ export async function addPrimitives() { const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const zipPath = path.join(__dirname, "..", "..", "out-components", "primitives.zip"); + console.log('this is the zip path', zipPath); async function extractPrimitive() { const answer = await inquirer.prompt([ { diff --git a/packages/cli/dist/workers/add-primitives.js.map b/packages/cli/dist/workers/add-primitives.js.map index 4c0fba25..8e36286c 100644 --- a/packages/cli/dist/workers/add-primitives.js.map +++ b/packages/cli/dist/workers/add-primitives.js.map @@ -1 +1 @@ -{"version":3,"file":"add-primitives.js","sourceRoot":"","sources":["../../src/workers/add-primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEpF,MAAM,CAAC,KAAK,UAAU,aAAa;IACjC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAE3C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CACvB,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,CACjB,CAAC;IAEF,KAAK,UAAU,gBAAgB;QAC7B,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;YACnC;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,0DAA0D;gBACnE,OAAO,EAAE,wBAAwB;aAClC;SACF,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QACjE,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;QAE3E,MAAM,6BAA6B,EAAE,CAAC;IACxC,CAAC;IAED,MAAM,gBAAgB,EAAE,CAAC;AAC3B,CAAC"} \ No newline at end of file +{"version":3,"file":"add-primitives.js","sourceRoot":"","sources":["../../src/workers/add-primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEpF,MAAM,CAAC,KAAK,UAAU,aAAa;IACjC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAE3C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CACvB,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,CACjB,CAAC;IAEF,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAG7C,KAAK,UAAU,gBAAgB;QAC7B,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;YACnC;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,0DAA0D;gBACnE,OAAO,EAAE,wBAAwB;aAClC;SACF,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QACjE,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;QAE3E,MAAM,6BAA6B,EAAE,CAAC;IACxC,CAAC;IAED,MAAM,gBAAgB,EAAE,CAAC;AAC3B,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/workers/add-typography.js b/packages/cli/dist/workers/add-typography.js index 86699e8e..c959d8df 100644 --- a/packages/cli/dist/workers/add-typography.js +++ b/packages/cli/dist/workers/add-typography.js @@ -3,7 +3,7 @@ import path from "path"; import fs from "fs"; import unzipper from "unzipper"; import inquirer from "inquirer"; -export function addTypography() { +export async function addTypography() { const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const zipPath = path.join(__dirname, "..", "..", "out-components", "typography.zip"); @@ -17,12 +17,8 @@ export function addTypography() { }, ]); const extractPath = path.join(process.cwd(), answer.extractPath); - fs.createReadStream(zipPath) - .pipe(unzipper.Extract({ path: extractPath })) - .on("close", () => { - console.log("Typography have been successfully added to your project!"); - }); + fs.createReadStream(zipPath).pipe(unzipper.Extract({ path: extractPath })); } - extract(); + await extract(); } //# sourceMappingURL=add-typography.js.map \ No newline at end of file diff --git a/packages/cli/dist/workers/add-typography.js.map b/packages/cli/dist/workers/add-typography.js.map index 0a3962ed..c81e5cc5 100644 --- a/packages/cli/dist/workers/add-typography.js.map +++ b/packages/cli/dist/workers/add-typography.js.map @@ -1 +1 @@ -{"version":3,"file":"add-typography.js","sourceRoot":"","sources":["../../src/workers/add-typography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,MAAM,UAAU,aAAa;IAC3B,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAE3C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CACvB,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,CACjB,CAAC;IAEF,KAAK,UAAU,OAAO;QACpB,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;YACnC;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,sDAAsD;gBAC/D,OAAO,EAAE,wBAAwB;aAClC;SACF,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QACjE,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC;aACzB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;aAC7C,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;YAChB,OAAO,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC;QAC1E,CAAC,CAAC,CAAC;IACP,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC"} \ No newline at end of file +{"version":3,"file":"add-typography.js","sourceRoot":"","sources":["../../src/workers/add-typography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,MAAM,CAAC,KAAK,UAAU,aAAa;IACjC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAE3C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CACvB,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,CACjB,CAAC;IAEF,KAAK,UAAU,OAAO;QACpB,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;YACnC;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,sDAAsD;gBAC/D,OAAO,EAAE,wBAAwB;aAClC;SACF,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QACjE,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;IAC7E,CAAC;IAED,MAAM,OAAO,EAAE,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/packages/cli/dist/workers/example.js b/packages/cli/dist/workers/example.js deleted file mode 100644 index 9e9d342f..00000000 --- a/packages/cli/dist/workers/example.js +++ /dev/null @@ -1,6 +0,0 @@ -import { jsx as _jsx } from "react/jsx-runtime"; -const Example = () => { - return (_jsx("div", { children: "Example" })); -}; -export default Example; -//# sourceMappingURL=example.js.map \ No newline at end of file diff --git a/packages/cli/dist/workers/example.js.map b/packages/cli/dist/workers/example.js.map deleted file mode 100644 index ac41555b..00000000 --- a/packages/cli/dist/workers/example.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"example.js","sourceRoot":"","sources":["../../src/workers/example.tsx"],"names":[],"mappings":";AAEA,MAAM,OAAO,GAAG,GAAG,EAAE;IACnB,OAAO,CACL,oCAAkB,CACnB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"} \ No newline at end of file diff --git a/packages/cli/dist/workers/install-primitives.js b/packages/cli/dist/workers/install-primitives.js deleted file mode 100644 index 629d05e3..00000000 --- a/packages/cli/dist/workers/install-primitives.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -function addPrimitives() { - console.log("install primitives"); -} -//# sourceMappingURL=install-primitives.js.map \ No newline at end of file diff --git a/packages/cli/dist/workers/install-primitives.js.map b/packages/cli/dist/workers/install-primitives.js.map deleted file mode 100644 index 736ff417..00000000 --- a/packages/cli/dist/workers/install-primitives.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"install-primitives.js","sourceRoot":"","sources":["../../src/workers/install-primitives.ts"],"names":[],"mappings":";AAAA,SAAS,aAAa;IACpB,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AACpC,CAAC"} \ No newline at end of file diff --git a/packages/cli/lib/utils.ts b/packages/cli/lib/utils.ts deleted file mode 100644 index a5ef1935..00000000 --- a/packages/cli/lib/utils.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { clsx, type ClassValue } from "clsx"; -import { twMerge } from "tailwind-merge"; - -export function cn(...inputs: ClassValue[]) { - return twMerge(clsx(inputs)); -} diff --git a/packages/cli/out-components/primitives.zip b/packages/cli/out-components/primitives.zip index 81aa73ac..bb21c3cc 100644 Binary files a/packages/cli/out-components/primitives.zip and b/packages/cli/out-components/primitives.zip differ diff --git a/packages/cli/package.json b/packages/cli/package.json index 9e7fd3bc..504be171 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@kodiui/cli", - "version": "0.1.20", + "version": "0.1.26", "description": "", "main": "dist/index.js", "type": "module", diff --git a/packages/cli/components/primitives/center.tsx b/packages/cli/src/components/primitives/center.tsx similarity index 100% rename from packages/cli/components/primitives/center.tsx rename to packages/cli/src/components/primitives/center.tsx diff --git a/packages/cli/components/primitives/cluster.tsx b/packages/cli/src/components/primitives/cluster.tsx similarity index 100% rename from packages/cli/components/primitives/cluster.tsx rename to packages/cli/src/components/primitives/cluster.tsx diff --git a/packages/cli/components/primitives/flex-box.tsx b/packages/cli/src/components/primitives/flex-box.tsx similarity index 100% rename from packages/cli/components/primitives/flex-box.tsx rename to packages/cli/src/components/primitives/flex-box.tsx diff --git a/packages/cli/components/primitives/hidden.tsx b/packages/cli/src/components/primitives/hidden.tsx similarity index 100% rename from packages/cli/components/primitives/hidden.tsx rename to packages/cli/src/components/primitives/hidden.tsx diff --git a/packages/cli/components/primitives/reel.tsx b/packages/cli/src/components/primitives/reel.tsx similarity index 100% rename from packages/cli/components/primitives/reel.tsx rename to packages/cli/src/components/primitives/reel.tsx diff --git a/packages/cli/components/primitives/sidebar.tsx b/packages/cli/src/components/primitives/sidebar.tsx similarity index 100% rename from packages/cli/components/primitives/sidebar.tsx rename to packages/cli/src/components/primitives/sidebar.tsx diff --git a/packages/cli/components/primitives/split.tsx b/packages/cli/src/components/primitives/split.tsx similarity index 100% rename from packages/cli/components/primitives/split.tsx rename to packages/cli/src/components/primitives/split.tsx diff --git a/packages/cli/components/primitives/stack.tsx b/packages/cli/src/components/primitives/stack.tsx similarity index 100% rename from packages/cli/components/primitives/stack.tsx rename to packages/cli/src/components/primitives/stack.tsx diff --git a/packages/cli/components/primitives/switcher.tsx b/packages/cli/src/components/primitives/switcher.tsx similarity index 100% rename from packages/cli/components/primitives/switcher.tsx rename to packages/cli/src/components/primitives/switcher.tsx diff --git a/packages/cli/src/components/primitives/tokens/flex.js b/packages/cli/src/components/primitives/tokens/flex.js new file mode 100644 index 00000000..be9f9af0 --- /dev/null +++ b/packages/cli/src/components/primitives/tokens/flex.js @@ -0,0 +1,35 @@ +import { cva } from "class-variance-authority"; +export const flexVariants = cva("", { + variants: { + flexDirection: { + row: "flex-row", + rowReverse: "flex-row-reverse", + col: "flex-col", + colReverse: "flex-col-reverse", + }, + wrap: { + true: "flex-wrap", + wrap: "flex-wrap", + wrapReverse: "flex-wrap-reverse", + nowrap: "flex-nowrap", + }, + justify: { + normal: "normal", + start: "justify-start", + end: "justify-end", + center: "justify-center", + between: "justify-between", + around: "justify-around", + evenly: "justify-evenly", + stretch: "justify-stretch", + }, + items: { + start: "items-start", + end: "items-end", + center: "items-center", + baseline: "items-baseline", + stretch: "items-stretch", + }, + }, +}); +//# sourceMappingURL=flex.js.map \ No newline at end of file diff --git a/packages/cli/src/components/primitives/tokens/flex.js.map b/packages/cli/src/components/primitives/tokens/flex.js.map new file mode 100644 index 00000000..0a08ad61 --- /dev/null +++ b/packages/cli/src/components/primitives/tokens/flex.js.map @@ -0,0 +1 @@ +{"version":3,"file":"flex.js","sourceRoot":"","sources":["flex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC,EAAE,EAAE;IAClC,QAAQ,EAAE;QACR,aAAa,EAAE;YACb,GAAG,EAAE,UAAU;YACf,UAAU,EAAE,kBAAkB;YAC9B,GAAG,EAAE,UAAU;YACf,UAAU,EAAE,kBAAkB;SAC/B;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,mBAAmB;YAChC,MAAM,EAAE,aAAa;SACtB;QACD,OAAO,EAAE;YACP,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,eAAe;YACtB,GAAG,EAAE,aAAa;YAClB,MAAM,EAAE,gBAAgB;YACxB,OAAO,EAAE,iBAAiB;YAC1B,MAAM,EAAE,gBAAgB;YACxB,MAAM,EAAE,gBAAgB;YACxB,OAAO,EAAE,iBAAiB;SAC3B;QACD,KAAK,EAAE;YACL,KAAK,EAAE,aAAa;YACpB,GAAG,EAAE,WAAW;YAChB,MAAM,EAAE,cAAc;YACtB,QAAQ,EAAE,gBAAgB;YAC1B,OAAO,EAAE,eAAe;SACzB;KACF;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/cli/components/primitives/tokens/flex.ts b/packages/cli/src/components/primitives/tokens/flex.ts similarity index 100% rename from packages/cli/components/primitives/tokens/flex.ts rename to packages/cli/src/components/primitives/tokens/flex.ts diff --git a/packages/cli/src/components/primitives/tokens/hidden.js b/packages/cli/src/components/primitives/tokens/hidden.js new file mode 100644 index 00000000..34c2809c --- /dev/null +++ b/packages/cli/src/components/primitives/tokens/hidden.js @@ -0,0 +1,19 @@ +import { cva } from "class-variance-authority"; +export const hiddenVariants = cva("", { + variants: { + above: { + sm: "md:hidden", + md: "lg:hidden", + lg: "xl:hidden", + xl: "2xl:hidden", + }, + below: { + sm: "hidden sm:block", + md: "hidden md:block", + lg: "hidden lg:block", + xl: "hidden xl:block", + "2xl": "hidden 2xl:block", + }, + }, +}); +//# sourceMappingURL=hidden.js.map \ No newline at end of file diff --git a/packages/cli/src/components/primitives/tokens/hidden.js.map b/packages/cli/src/components/primitives/tokens/hidden.js.map new file mode 100644 index 00000000..29d25ae7 --- /dev/null +++ b/packages/cli/src/components/primitives/tokens/hidden.js.map @@ -0,0 +1 @@ +{"version":3,"file":"hidden.js","sourceRoot":"","sources":["hidden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC,EAAE,EAAE;IACpC,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,EAAE,EAAE,WAAW;YACf,EAAE,EAAE,WAAW;YACf,EAAE,EAAE,WAAW;YACf,EAAE,EAAE,YAAY;SACjB;QACD,KAAK,EAAE;YACL,EAAE,EAAE,iBAAiB;YACrB,EAAE,EAAE,iBAAiB;YACrB,EAAE,EAAE,iBAAiB;YACrB,EAAE,EAAE,iBAAiB;YACrB,KAAK,EAAE,kBAAkB;SAC1B;KACF;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/cli/components/primitives/tokens/hidden.ts b/packages/cli/src/components/primitives/tokens/hidden.ts similarity index 100% rename from packages/cli/components/primitives/tokens/hidden.ts rename to packages/cli/src/components/primitives/tokens/hidden.ts diff --git a/packages/cli/src/components/primitives/tokens/index.js b/packages/cli/src/components/primitives/tokens/index.js new file mode 100644 index 00000000..ccf09e9e --- /dev/null +++ b/packages/cli/src/components/primitives/tokens/index.js @@ -0,0 +1,4 @@ +export * from "./flex"; +export * from "./hidden"; +export * from "./spacing"; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/cli/src/components/primitives/tokens/index.js.map b/packages/cli/src/components/primitives/tokens/index.js.map new file mode 100644 index 00000000..8c988637 --- /dev/null +++ b/packages/cli/src/components/primitives/tokens/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"} \ No newline at end of file diff --git a/packages/cli/components/primitives/tokens/index.ts b/packages/cli/src/components/primitives/tokens/index.ts similarity index 100% rename from packages/cli/components/primitives/tokens/index.ts rename to packages/cli/src/components/primitives/tokens/index.ts diff --git a/packages/cli/src/components/primitives/tokens/spacing.js b/packages/cli/src/components/primitives/tokens/spacing.js new file mode 100644 index 00000000..13692a88 --- /dev/null +++ b/packages/cli/src/components/primitives/tokens/spacing.js @@ -0,0 +1,75 @@ +import { cva } from "class-variance-authority"; +export const paddingVariants = cva("", { + variants: { + p: { + xxs: "p-xxs", + xs: "p-xs", + sm: "p-sm", + md: "p-md", + lg: "p-lg", + xl: "p-xl", + "2xl": "p-2xl", + "3xl": "p-3xl", + "5xl": "p-5xl", + "0": "p-0", + }, + }, + defaultVariants: { + p: "sm", + }, +}); +export const gapVariants = cva("", { + variants: { + gap: { + xxs: "gap-xxs", + xs: "gap-xs", + sm: "gap-sm", + md: "gap-md", + lg: "gap-lg", + xl: "gap-xl", + "2xl": "gap-2xl", + "3xl": "gap-3xl", + "5xl": "gap-5xl", + "0": "gap-0", + }, + gapX: { + xxs: "gap-x-xxs", + xs: "gap-x-xs", + sm: "gap-x-sm", + md: "gap-x-md", + lg: "gap-x-lg", + xl: "gap-x-xl", + "2xl": "gap-x-2xl", + "3xl": "gap-x-3xl", + "5xl": "gap-x-5xl", + "0": "gap-x-0", + }, + gapY: { + xxs: "gap-y-xxs", + xs: "gap-y-xs", + sm: "gap-y-sm", + md: "gap-y-md", + lg: "gap-y-lg", + xl: "gap-y-xl", + "2xl": "gap-y-2xl", + "3xl": "gap-y-3xl", + "5xl": "gap-y-5xl", + "0": "gap-y-0", + }, + }, + defaultVariants: { + gap: "sm", + }, +}); +export const spacing = { + xxs: ".25rem", + xs: ".5rem", + sm: "1rem", + md: "1.25rem", + lg: "1.5rem", + xl: "1.75rem", + "2xl": "2rem", + "3xl": "3rem", + "5xl": "4rem", +}; +//# sourceMappingURL=spacing.js.map \ No newline at end of file diff --git a/packages/cli/src/components/primitives/tokens/spacing.js.map b/packages/cli/src/components/primitives/tokens/spacing.js.map new file mode 100644 index 00000000..473443ef --- /dev/null +++ b/packages/cli/src/components/primitives/tokens/spacing.js.map @@ -0,0 +1 @@ +{"version":3,"file":"spacing.js","sourceRoot":"","sources":["spacing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC,EAAE,EAAE;IACrC,QAAQ,EAAE;QACR,CAAC,EAAE;YACD,GAAG,EAAE,OAAO;YACZ,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,GAAG,EAAE,KAAK;SACX;KACF;IACD,eAAe,EAAE;QACf,CAAC,EAAE,IAAI;KACR;CACF,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC,EAAE,EAAE;IACjC,QAAQ,EAAE;QACR,GAAG,EAAE;YACH,GAAG,EAAE,SAAS;YACd,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,SAAS;YAChB,GAAG,EAAE,OAAO;SACb;QACD,IAAI,EAAE;YACJ,GAAG,EAAE,WAAW;YAChB,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,GAAG,EAAE,SAAS;SACf;QACD,IAAI,EAAE;YACJ,GAAG,EAAE,WAAW;YAChB,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,GAAG,EAAE,SAAS;SACf;KACF;IACD,eAAe,EAAE;QACf,GAAG,EAAE,IAAI;KACV;CACF,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,GAAG,EAAE,QAAQ;IACb,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,SAAS;IACb,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;CACd,CAAC"} \ No newline at end of file diff --git a/packages/cli/components/primitives/tokens/spacing.ts b/packages/cli/src/components/primitives/tokens/spacing.ts similarity index 100% rename from packages/cli/components/primitives/tokens/spacing.ts rename to packages/cli/src/components/primitives/tokens/spacing.ts diff --git a/packages/cli/src/components/typography/heading.js b/packages/cli/src/components/typography/heading.js new file mode 100644 index 00000000..1ca90238 --- /dev/null +++ b/packages/cli/src/components/typography/heading.js @@ -0,0 +1,42 @@ +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +import { jsx as _jsx } from "react/jsx-runtime"; +import React from "react"; +import { cva } from "class-variance-authority"; +import { cn } from "@/lib/utils"; +import { textVariants } from "./tokens"; +const headingVariants = cva("m-0 p-0", { + variants: { + level: { + "1": "text-4xl lg:text-5xl leading-none", + "2": "text-3xl transition-colors first:mt-0 leading-none", + "3": "text-2xl leading-none", + "4": "text-xl leading-none", + }, + weight: { + base: "font-semibold", + bold: "font-extrabold", + }, + }, + defaultVariants: { + level: "1", + weight: "base", + }, +}); +const Heading = React.forwardRef((_a, ref) => { + var { level = "1", children, className, textAlign, weight, color } = _a, props = __rest(_a, ["level", "children", "className", "textAlign", "weight", "color"]); + const Comp = `h${level}`; + return (_jsx(Comp, Object.assign({ className: cn(headingVariants({ level, weight }), textVariants({ textAlign, color }), className), ref: ref }, props, { children: children }))); +}); +Heading.displayName = "Heading"; +export { Heading }; +//# sourceMappingURL=heading.js.map \ No newline at end of file diff --git a/packages/cli/src/components/typography/heading.js.map b/packages/cli/src/components/typography/heading.js.map new file mode 100644 index 00000000..9ff31d27 --- /dev/null +++ b/packages/cli/src/components/typography/heading.js.map @@ -0,0 +1 @@ +{"version":3,"file":"heading.js","sourceRoot":"","sources":["heading.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAAgB,MAAM,UAAU,CAAC;AAQtD,MAAM,eAAe,GAAG,GAAG,CAAC,SAAS,EAAE;IACrC,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,GAAG,EAAE,mCAAmC;YACxC,GAAG,EAAE,oDAAoD;YACzD,GAAG,EAAE,uBAAuB;YAC5B,GAAG,EAAE,sBAAsB;SAC5B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,gBAAgB;SACvB;KACF;IACD,eAAe,EAAE;QACf,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,MAAM;KACf;CACF,CAAC,CAAC;AAEH,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAC9B,CACE,EAAwE,EACxE,GAAG,EACH,EAAE;QAFF,EAAE,KAAK,GAAG,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,OAAY,EAAP,KAAK,cAAtE,kEAAwE,CAAF;IAGtE,MAAM,IAAI,GAAG,IAAI,KAAK,EAA+B,CAAC;IACtD,OAAO,CACL,KAAC,IAAI,kBACH,SAAS,EAAE,EAAE,CACX,eAAe,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAClC,YAAY,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAClC,SAAS,CACV,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,cAER,QAAQ,IACJ,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/packages/cli/components/typography/heading.tsx b/packages/cli/src/components/typography/heading.tsx similarity index 100% rename from packages/cli/components/typography/heading.tsx rename to packages/cli/src/components/typography/heading.tsx diff --git a/packages/cli/src/components/typography/text.js b/packages/cli/src/components/typography/text.js new file mode 100644 index 00000000..a42c2e27 --- /dev/null +++ b/packages/cli/src/components/typography/text.js @@ -0,0 +1,48 @@ +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +import { jsx as _jsx } from "react/jsx-runtime"; +import React from "react"; +import { cva } from "class-variance-authority"; +import { cn } from "@/lib/utils"; +import { textVariants } from "./tokens"; +const textCustomVariants = cva("inline-block [&>svg]:inline-block", { + variants: { + size: { + base: "text-base leading-none", + xs: "text-xs leading-none", + sm: "text-sm leading-none", + lg: "text-lg leading-none", + }, + weight: { + base: "font-normal", + medium: "font-medium", + bold: "font-bold", + }, + tone: { + base: "text-white", + muted: "text-gray-500", + }, + }, + defaultVariants: { + size: "base", + weight: "base", + tone: "base", + }, +}); +const Text = React.forwardRef((_a, ref) => { + var { withIcon, size, weight, className, tone, color, children, textAlign } = _a, props = __rest(_a, ["withIcon", "size", "weight", "className", "tone", "color", "children", "textAlign"]); + const Comp = withIcon ? "span" : "p"; + return (_jsx(Comp, Object.assign({ className: cn(textCustomVariants({ size, weight, tone, className }), textVariants({ textAlign, color })), ref: ref }, props, { children: children }))); +}); +Text.displayName = "Text"; +export { Text }; +//# sourceMappingURL=text.js.map \ No newline at end of file diff --git a/packages/cli/src/components/typography/text.js.map b/packages/cli/src/components/typography/text.js.map new file mode 100644 index 00000000..49d2ca02 --- /dev/null +++ b/packages/cli/src/components/typography/text.js.map @@ -0,0 +1 @@ +{"version":3,"file":"text.js","sourceRoot":"","sources":["text.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAAgB,MAAM,UAAU,CAAC;AAStD,MAAM,kBAAkB,GAAG,GAAG,CAAC,mCAAmC,EAAE;IAClE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,IAAI,EAAE,wBAAwB;YAC9B,EAAE,EAAE,sBAAsB;YAC1B,EAAE,EAAE,sBAAsB;YAC1B,EAAE,EAAE,sBAAsB;SAC3B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,aAAa;YACrB,IAAI,EAAE,WAAW;SAClB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,eAAe;SACvB;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,MAAM;KACb;CACF,CAAC,CAAC;AAEH,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAC3B,CACE,EAUC,EACD,GAAG,EACH,EAAE;QAZF,EACE,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,SAAS,EACT,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,SAAS,OAEV,EADI,KAAK,cATV,qFAUC,CADS;IAIV,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC;IACrC,OAAO,CACL,KAAC,IAAI,kBACH,SAAS,EAAE,EAAE,CACX,kBAAkB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EACrD,YAAY,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CACnC,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,cAER,QAAQ,IACJ,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/packages/cli/components/typography/text.tsx b/packages/cli/src/components/typography/text.tsx similarity index 100% rename from packages/cli/components/typography/text.tsx rename to packages/cli/src/components/typography/text.tsx diff --git a/packages/cli/src/components/typography/tokens/index.js b/packages/cli/src/components/typography/tokens/index.js new file mode 100644 index 00000000..3e9c4948 --- /dev/null +++ b/packages/cli/src/components/typography/tokens/index.js @@ -0,0 +1,2 @@ +export * from "./text"; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/cli/src/components/typography/tokens/index.js.map b/packages/cli/src/components/typography/tokens/index.js.map new file mode 100644 index 00000000..10897b4c --- /dev/null +++ b/packages/cli/src/components/typography/tokens/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"} \ No newline at end of file diff --git a/packages/cli/components/typography/tokens/index.ts b/packages/cli/src/components/typography/tokens/index.ts similarity index 100% rename from packages/cli/components/typography/tokens/index.ts rename to packages/cli/src/components/typography/tokens/index.ts diff --git a/packages/cli/src/components/typography/tokens/text.js b/packages/cli/src/components/typography/tokens/text.js new file mode 100644 index 00000000..f9850714 --- /dev/null +++ b/packages/cli/src/components/typography/tokens/text.js @@ -0,0 +1,18 @@ +import { cva } from "class-variance-authority"; +export const textVariants = cva("", { + variants: { + textAlign: { + left: "text-left", + center: "text-center", + right: "text-right", + justify: "text-justify", + start: "text-start", + end: "text-end", + }, + color: { + brand: "text-brand", + muted: "text-muted-foreground", + }, + }, +}); +//# sourceMappingURL=text.js.map \ No newline at end of file diff --git a/packages/cli/src/components/typography/tokens/text.js.map b/packages/cli/src/components/typography/tokens/text.js.map new file mode 100644 index 00000000..90955102 --- /dev/null +++ b/packages/cli/src/components/typography/tokens/text.js.map @@ -0,0 +1 @@ +{"version":3,"file":"text.js","sourceRoot":"","sources":["text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC,EAAE,EAAE;IAClC,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,aAAa;YACrB,KAAK,EAAE,YAAY;YACnB,OAAO,EAAE,cAAc;YACvB,KAAK,EAAE,YAAY;YACnB,GAAG,EAAE,UAAU;SAChB;QACD,KAAK,EAAE;YACL,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,uBAAuB;SAC/B;KACF;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/cli/components/typography/tokens/text.ts b/packages/cli/src/components/typography/tokens/text.ts similarity index 100% rename from packages/cli/components/typography/tokens/text.ts rename to packages/cli/src/components/typography/tokens/text.ts diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index 25c4a9e9..c19f37dc 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -9,7 +9,7 @@ import { addLib } from "./workers/add-lib.js"; const program = new Command(); -console.log(figlet.textSync("kodiui")); +console.log(figlet.textSync("kodi-ui")); program .version("1.0.0") @@ -39,7 +39,7 @@ async function main() { ]); if (answers.questions === "primitives") await addPrimitives(); - if (answers.questions === "typography") addTypography(); + if (answers.questions === "typography") await addTypography(); addLib(); } diff --git a/packages/cli/src/workers/add-primitives.ts b/packages/cli/src/workers/add-primitives.ts index e207f4c6..42660768 100644 --- a/packages/cli/src/workers/add-primitives.ts +++ b/packages/cli/src/workers/add-primitives.ts @@ -17,6 +17,9 @@ export async function addPrimitives() { "primitives.zip" ); + console.log('this is the zip path', zipPath); + + async function extractPrimitive() { const answer = await inquirer.prompt([ { diff --git a/packages/cli/src/workers/add-typography.ts b/packages/cli/src/workers/add-typography.ts index f20769db..dd311e06 100644 --- a/packages/cli/src/workers/add-typography.ts +++ b/packages/cli/src/workers/add-typography.ts @@ -4,7 +4,7 @@ import fs from "fs"; import unzipper from "unzipper"; import inquirer from "inquirer"; -export function addTypography() { +export async function addTypography() { const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); @@ -27,12 +27,8 @@ export function addTypography() { ]); const extractPath = path.join(process.cwd(), answer.extractPath); - fs.createReadStream(zipPath) - .pipe(unzipper.Extract({ path: extractPath })) - .on("close", () => { - console.log("Typography have been successfully added to your project!"); - }); + fs.createReadStream(zipPath).pipe(unzipper.Extract({ path: extractPath })); } - extract(); + await extract(); } diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index 2ed910a1..ea6c65a1 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "rootDir": "src", "outDir": "dist", "jsx": "react-jsx", "strict": true, @@ -9,7 +10,7 @@ "target": "ES2017", "module": "ESNext", "paths": { - "@/*": ["./*"] + "@/*": ["./src/*"] } }, } diff --git a/packages/ui/cli/out-components/primitives.zip b/packages/ui/cli/out-components/primitives.zip new file mode 100644 index 00000000..81aa73ac Binary files /dev/null and b/packages/ui/cli/out-components/primitives.zip differ diff --git a/packages/ui/components/primitives/cluster.tsx b/packages/ui/components/primitives/cluster.tsx index 9f99f06b..d783341e 100644 --- a/packages/ui/components/primitives/cluster.tsx +++ b/packages/ui/components/primitives/cluster.tsx @@ -2,7 +2,7 @@ import React from "react"; import { GapVariants, gapVariants } from "./tokens/spacing"; import { FlexVariants, flexVariants } from "./tokens/flex"; -import { cn } from "./lib/utils"; +import { cn } from "@/lib/utils"; export type BoxProps = React.HTMLAttributes & GapVariants & diff --git a/packages/ui/components/primitives/flex-box.tsx b/packages/ui/components/primitives/flex-box.tsx index ac0433f2..feafa57e 100644 --- a/packages/ui/components/primitives/flex-box.tsx +++ b/packages/ui/components/primitives/flex-box.tsx @@ -1,7 +1,14 @@ import React from "react"; import { cn } from "@/lib/utils"; -import { FlexVariants, GapVariants, PaddingVariants } from "./tokens"; +import { + FlexVariants, + GapVariants, + PaddingVariants, + flexVariants, + gapVariants, + paddingVariants, +} from "./tokens"; export type FlexBoxProps = React.HTMLAttributes & PaddingVariants & diff --git a/packages/ui/components/primitives/lib/utils.ts b/packages/ui/components/primitives/lib/utils.ts deleted file mode 100644 index a5ef1935..00000000 --- a/packages/ui/components/primitives/lib/utils.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { clsx, type ClassValue } from "clsx"; -import { twMerge } from "tailwind-merge"; - -export function cn(...inputs: ClassValue[]) { - return twMerge(clsx(inputs)); -} diff --git a/packages/ui/package.json b/packages/ui/package.json index 3f7eae05..ff3fcc6e 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -23,6 +23,7 @@ "autoprefixer": "^10.4.14", "eslint": "^8.51.0", "eslint-config-next": "13.5.6", + "eslint-plugin-tailwindcss": "^3.13.0", "postcss": "^8.4.31", "tailwindcss": "^3.3.2", "typescript": "^5.2.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dfd82b18..1c789d72 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -179,6 +179,9 @@ importers: eslint-config-next: specifier: 13.5.6 version: 13.5.6(eslint@8.51.0)(typescript@5.2.2) + eslint-plugin-tailwindcss: + specifier: ^3.13.0 + version: 3.13.0(tailwindcss@3.3.2) postcss: specifier: ^8.4.31 version: 8.4.31 @@ -6692,6 +6695,17 @@ packages: - typescript dev: true + /eslint-plugin-tailwindcss@3.13.0(tailwindcss@3.3.2): + resolution: {integrity: sha512-Fcep4KDRLWaK3KmkQbdyKHG0P4GdXFmXdDaweTIPcgOP60OOuWFbh1++dufRT28Q4zpKTKaHwTsXPJ4O/EjU2Q==} + engines: {node: '>=12.13.0'} + peerDependencies: + tailwindcss: ^3.3.2 + dependencies: + fast-glob: 3.2.12 + postcss: 8.4.31 + tailwindcss: 3.3.2 + dev: true + /eslint-scope@5.1.1: resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} engines: {node: '>=8.0.0'}