From 8f74e8df8ab1858a976338d223d24cdb046dc10f Mon Sep 17 00:00:00 2001 From: Dino Danic Date: Wed, 25 Oct 2023 10:58:45 +0200 Subject: [PATCH] switch cli --- .husky/pre-commit | 4 - .../dist/components/primitives/center.js.map | 2 +- .../dist/components/primitives/cluster.js.map | 2 +- .../components/primitives/flex-box.js.map | 2 +- .../dist/components/primitives/hidden.js.map | 2 +- .../dist/components/primitives/reel.js.map | 2 +- .../dist/components/primitives/sidebar.js.map | 2 +- .../dist/components/primitives/split.js.map | 2 +- .../dist/components/primitives/stack.js.map | 2 +- .../components/primitives/switcher.js.map | 2 +- .../components/primitives/tokens/flex.js.map | 2 +- .../primitives/tokens/hidden.js.map | 2 +- .../components/primitives/tokens/index.js.map | 2 +- .../primitives/tokens/spacing.js.map | 2 +- .../dist/components/typography/heading.js.map | 2 +- .../dist/components/typography/text.js.map | 2 +- .../components/typography/tokens/index.js.map | 2 +- .../components/typography/tokens/text.js.map | 2 +- packages/cli/dist/helpers/choose-pkm.js | 18 ----- packages/cli/dist/helpers/choose-pkm.js.map | 1 - packages/cli/dist/index.js | 4 +- packages/cli/dist/index.js.map | 2 +- packages/cli/dist/lib/utils.js.map | 2 +- packages/cli/dist/src/helpers/pkm.js | 23 ------ packages/cli/dist/src/helpers/pkm.js.map | 1 - packages/cli/dist/src/index.js | 37 --------- packages/cli/dist/src/index.js.map | 1 - packages/cli/dist/src/lib/utils.js | 6 -- packages/cli/dist/src/lib/utils.js.map | 1 - packages/cli/dist/src/workers/add-lib.js | 15 ---- packages/cli/dist/src/workers/add-lib.js.map | 1 - .../cli/dist/src/workers/add-primitives.js | 26 ------ .../dist/src/workers/add-primitives.js.map | 1 - .../cli/dist/src/workers/add-typography.js | 28 ------- .../dist/src/workers/add-typography.js.map | 1 - .../workers/install-dependecies-primitives.js | 45 ----------- .../install-dependecies-primitives.js.map | 1 - packages/cli/dist/workers/add-primitives.js | 1 + .../cli/dist/workers/add-primitives.js.map | 2 +- packages/cli/dist/workers/add-typography.js | 10 +-- .../cli/dist/workers/add-typography.js.map | 2 +- packages/cli/dist/workers/example.js | 6 -- packages/cli/dist/workers/example.js.map | 1 - .../cli/dist/workers/install-primitives.js | 5 -- .../dist/workers/install-primitives.js.map | 1 - packages/cli/lib/utils.ts | 6 -- packages/cli/out-components/primitives.zip | Bin 6524 -> 6121 bytes packages/cli/package.json | 2 +- .../components/primitives/center.tsx | 0 .../components/primitives/cluster.tsx | 0 .../components/primitives/flex-box.tsx | 0 .../components/primitives/hidden.tsx | 0 .../{ => src}/components/primitives/reel.tsx | 0 .../components/primitives/sidebar.tsx | 0 .../{ => src}/components/primitives/split.tsx | 0 .../{ => src}/components/primitives/stack.tsx | 0 .../components/primitives/switcher.tsx | 0 .../src/components/primitives/tokens/flex.js | 35 ++++++++ .../components/primitives/tokens/flex.js.map | 1 + .../components/primitives/tokens/flex.ts | 0 .../components/primitives/tokens/hidden.js | 19 +++++ .../primitives/tokens/hidden.js.map | 1 + .../components/primitives/tokens/hidden.ts | 0 .../src/components/primitives/tokens/index.js | 4 + .../components/primitives/tokens/index.js.map | 1 + .../components/primitives/tokens/index.ts | 0 .../components/primitives/tokens/spacing.js | 75 ++++++++++++++++++ .../primitives/tokens/spacing.js.map | 1 + .../components/primitives/tokens/spacing.ts | 0 .../cli/src/components/typography/heading.js | 42 ++++++++++ .../src/components/typography/heading.js.map | 1 + .../components/typography/heading.tsx | 0 .../cli/src/components/typography/text.js | 48 +++++++++++ .../cli/src/components/typography/text.js.map | 1 + .../{ => src}/components/typography/text.tsx | 0 .../src/components/typography/tokens/index.js | 2 + .../components/typography/tokens/index.js.map | 1 + .../components/typography/tokens/index.ts | 0 .../src/components/typography/tokens/text.js | 18 +++++ .../components/typography/tokens/text.js.map | 1 + .../components/typography/tokens/text.ts | 0 packages/cli/src/index.ts | 4 +- packages/cli/src/workers/add-primitives.ts | 3 + packages/cli/src/workers/add-typography.ts | 10 +-- packages/cli/tsconfig.json | 3 +- packages/ui/cli/out-components/primitives.zip | Bin 0 -> 6524 bytes packages/ui/components/primitives/cluster.tsx | 2 +- .../ui/components/primitives/flex-box.tsx | 9 ++- .../ui/components/primitives/lib/utils.ts | 6 -- packages/ui/package.json | 1 + pnpm-lock.yaml | 14 ++++ 91 files changed, 313 insertions(+), 278 deletions(-) delete mode 100755 .husky/pre-commit delete mode 100644 packages/cli/dist/helpers/choose-pkm.js delete mode 100644 packages/cli/dist/helpers/choose-pkm.js.map mode change 100755 => 100644 packages/cli/dist/index.js delete mode 100644 packages/cli/dist/src/helpers/pkm.js delete mode 100644 packages/cli/dist/src/helpers/pkm.js.map delete mode 100644 packages/cli/dist/src/index.js delete mode 100644 packages/cli/dist/src/index.js.map delete mode 100644 packages/cli/dist/src/lib/utils.js delete mode 100644 packages/cli/dist/src/lib/utils.js.map delete mode 100644 packages/cli/dist/src/workers/add-lib.js delete mode 100644 packages/cli/dist/src/workers/add-lib.js.map delete mode 100644 packages/cli/dist/src/workers/add-primitives.js delete mode 100644 packages/cli/dist/src/workers/add-primitives.js.map delete mode 100644 packages/cli/dist/src/workers/add-typography.js delete mode 100644 packages/cli/dist/src/workers/add-typography.js.map delete mode 100644 packages/cli/dist/src/workers/install-dependecies-primitives.js delete mode 100644 packages/cli/dist/src/workers/install-dependecies-primitives.js.map delete mode 100644 packages/cli/dist/workers/example.js delete mode 100644 packages/cli/dist/workers/example.js.map delete mode 100644 packages/cli/dist/workers/install-primitives.js delete mode 100644 packages/cli/dist/workers/install-primitives.js.map delete mode 100644 packages/cli/lib/utils.ts rename packages/cli/{ => src}/components/primitives/center.tsx (100%) rename packages/cli/{ => src}/components/primitives/cluster.tsx (100%) rename packages/cli/{ => src}/components/primitives/flex-box.tsx (100%) rename packages/cli/{ => src}/components/primitives/hidden.tsx (100%) rename packages/cli/{ => src}/components/primitives/reel.tsx (100%) rename packages/cli/{ => src}/components/primitives/sidebar.tsx (100%) rename packages/cli/{ => src}/components/primitives/split.tsx (100%) rename packages/cli/{ => src}/components/primitives/stack.tsx (100%) rename packages/cli/{ => src}/components/primitives/switcher.tsx (100%) create mode 100644 packages/cli/src/components/primitives/tokens/flex.js create mode 100644 packages/cli/src/components/primitives/tokens/flex.js.map rename packages/cli/{ => src}/components/primitives/tokens/flex.ts (100%) create mode 100644 packages/cli/src/components/primitives/tokens/hidden.js create mode 100644 packages/cli/src/components/primitives/tokens/hidden.js.map rename packages/cli/{ => src}/components/primitives/tokens/hidden.ts (100%) create mode 100644 packages/cli/src/components/primitives/tokens/index.js create mode 100644 packages/cli/src/components/primitives/tokens/index.js.map rename packages/cli/{ => src}/components/primitives/tokens/index.ts (100%) create mode 100644 packages/cli/src/components/primitives/tokens/spacing.js create mode 100644 packages/cli/src/components/primitives/tokens/spacing.js.map rename packages/cli/{ => src}/components/primitives/tokens/spacing.ts (100%) create mode 100644 packages/cli/src/components/typography/heading.js create mode 100644 packages/cli/src/components/typography/heading.js.map rename packages/cli/{ => src}/components/typography/heading.tsx (100%) create mode 100644 packages/cli/src/components/typography/text.js create mode 100644 packages/cli/src/components/typography/text.js.map rename packages/cli/{ => src}/components/typography/text.tsx (100%) create mode 100644 packages/cli/src/components/typography/tokens/index.js create mode 100644 packages/cli/src/components/typography/tokens/index.js.map rename packages/cli/{ => src}/components/typography/tokens/index.ts (100%) create mode 100644 packages/cli/src/components/typography/tokens/text.js create mode 100644 packages/cli/src/components/typography/tokens/text.js.map rename packages/cli/{ => src}/components/typography/tokens/text.ts (100%) create mode 100644 packages/ui/cli/out-components/primitives.zip delete mode 100644 packages/ui/components/primitives/lib/utils.ts 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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AM;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":[],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,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;AAE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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"],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AAG,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 81aa73ac224ac11cc14df69f268698f64bfdc2d4..bb21c3cc5b641fc6a7beba9647d7c23d6cd3c499 100644 GIT binary patch delta 1020 zcmexk^iqGr9>)5~fsx@sC(C&K85tOkGcho5GsrL`=ad$gq!#Iw6jy|Xa56A|J!_Hr z4TwuCxEUB(z5-RUh%hiP)CQf*Yc>$r`&m?(Pt-%N#)0Y8B)#@+s}`*)Z=Z2O_r^5a z6v0RLv!_XDPpmrlIqjM4{*MQ;RZS1gy2!Nf%BHq}?}a-!>Y41WMO7?(H9O0XRf=i1 zq=R|jB$223!fK{nVli)YZcm)AT{h?D()M*PYp*^RJM{I=QqlWMct4%`a_>fA#=*%+ z9~AoMM`+8R={uMu$Ii^jsjrsUD_-K}zLHlfmKNH#B?4I+KTa)Kd@>PkH zTPLRn$*;J#F0xY5cg|Fs`c1O}Z`+GCE?RV~=EAJr$Ln{bu@-4^{E0}6o5xX*vbA=u zisuyrPj`pSMr}In*R&d4Z)7lDWMG&Uy>GtLjIW!w2~6~6Zuwh!c~Gg$4^E5o@xBH@>Q|c*>;7v8;iN$2>M8SY`denqHA7N z?(W_KuiO70@&|Y`gF}{sVG1x>&i!6*nF0)Kb>_*j%;NPwfHCkBGZs>VZUbY1r}nwF zj@&Y()DMih8MAktK5Q0xb<1}Vr>VS?G&uKie0=X6v>@{v!^VEu`N`H>L}RjU2*qTr zP|a7IcCBxEpo{)SIWM-u5;Z5JcAd8Jl}-&>*2D2&sp9f{9nG{T#mD=T9`3G}jtQOe zwsr+y-kbdVjt|FF6wjLcS3UE|{mB!S7n>FQ4hq}ns)%!a^7ejt`}*B=)71^qig zIt#2%y2&+!y7DjP4Bxaz|7KDfW76rjEO(-BNmOo3(B)n%+jivqhi@5+j&VQwchA@9 zLi&w`q5>i_O3z0aomn>1;oj`~qA!;#`UZqqC`Zmp?l>dZ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INCND$QGG+rNr9Y2?P_9hBWW zMQi#${la>U2v&!(7-QMvn^>P-56cpmUBMi%*@>-!mlIwnOg=2E3CjMH9Yqw35D60G zB?)lQ0MjSKl15i%28Ohp)C%3C{0c~^!OFmVD#{3`&5H5a3n zIU55sl!4lTAq>6_W+~Z(0BkIeP z#4~v}klMmKnM*8yNtb_ejF>l59{=Q(VnIwF1SbC#3t{3Enj9=1%+w|{d4;$!p8(Kp Nf~*V-p`bF40RXE75Fr2n 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 0000000000000000000000000000000000000000..81aa73ac224ac11cc14df69f268698f64bfdc2d4 GIT binary patch literal 6524 zcma)=Wn5Hi*Ty#~QUVf^f`A}3v?xf5v~&o9)F1;xH`1Nb9n#&>A*qBQ9g;%`C@Lk5 z@Xj31D{y=~o)7o_?GLm6v-f@7YprW71sN1nLI40T04*&Q^@Y>TP;(>zxQPM)m;eP} z05-P;TeI2PII5~#22f@tIKg7loM1agEC3002mZsqp0!irxA11in>`?6@C%X*{~Df! zqV$IGQ}~@&jzDGu+9_(KrBj`$Mq0bp`i6C@E5@o=`SVHCMFy+$$(>@B_-IHd*@Q$s zL*O=+G?aRO@<>7}*O&}74j6HtLT|W|)Y@7+UEZKPO}-l|v{&V}x9U?YPq$Ijk~~I6 z_mCmX=j3tT?EwVr^NEt`gFeL$)uI4QW9x*=dzTPKKVI zVGcHh!D#BvrcblKkxStAk`ST}MN6Jty9G5fQi*OExZ#unyuO%GT*YdhUBl`{N3PMy;F$gIyxa`88i z58=dpWA5oBes`c}=NF}|Rw?M?kep?lc+GN(%W`98$KlckaLH6cf=} zWr%*%)j9iJd2ku3*v!e>;3%@*3z;?$s)C?@mp6r(*lR|ixhwosj7eEtJz)`i`VcNe zCo%wFAryn!*_@YbgOwK?3F7^yWUfkY&Eb+YZWA%%5=pYT2qP;^eX}wyWGZlW2nd`e zo2rQO!Ps2q3G;}NZi1!Eq-++E=s>`D)giF?4Z0r6BZigAI<`R*2&RMo&E=d#Y+qX3eT!nQp?cJ4%T-A$w?x6?9euP`B zjO<^=OOSyC6zv`J`IfCdHKWPAgM+s_j^i+!iakoRX);SD@nYb$+su<_)BW*%BD-C# zl?8L$8I4D4f-*TxvaV9u2Y4OK4z`~BUJ#V-R4vxkx^ep{jNHnj>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K1l6*` znK4Q!$oSO3xGcT3(QC{nRBue(^4;Gu74z^r>J)A4ma!P(cu6Q~(rGhXzFysT)quIy z2^hz1)epP`sR}a*vS+PfjDp)TYA<3-ik?~66gg2v6;=hz*J7C84Rv^yBhbJ2J-PFR z<)-ep$nna?n;&>?l}b6u^_a#r+V_~|HrjWsb*kf^9-Xo- zj?a)O2J=0td`%$TD)usK`QcG5?~Ytq>B6q3*}dramvidzr9yW?2M-smut(<_ant&_ zt_hPYngiO-AXa1C+3N~2NXS$uXQ%1nSn(SCOaTB~Um(j9ad&>mi1uU1_)FS6XNIKY7u5f$|h#EUbA^TcIT;KIb=-*~@kv48Lo zIjcqFHahTk!wo0>&u05<^L}l&&%c@7-=wqV`_IH*yWjIfzDvNlUija>^v7XA&@Q%S z=V>1?fQyaVe*<1L{pW!&`2L=20sb5AqJuq;)5nJ6&iw3u!(Fs*=W&%daNGqm_ix1C z`H~;RA4i4t3UKC9;IRMcP|i-vuO8+6>zSXyemWL76X96?B{qJoy62f2ct2n8Tn+wj v)QctSJoPfcPwH6#`)|;TrRY4=?+kjrF#QgT29GU-2zUTKysD`pjyv#wov7}R literal 0 HcmV?d00001 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'}