@televet/kibble-ui 4.0.0-beta.19 → 4.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";const i=require("node:fs"),s=require("node:path"),o=()=>{try{const t=s.resolve(process.cwd(),"tsconfig.json");let e;try{e=JSON.parse(i.readFileSync(t,"utf8"))}catch{console.error("⚠️ No tsconfig.json found in the current directory."),process.exit(1)}e.compilerOptions=e.compilerOptions||{},e.compilerOptions.paths=e.compilerOptions.paths||{},e.compilerOptions.paths={...e.compilerOptions.paths,"@televet/kibble-ui":["./node_modules/@televet/kibble-ui/dist/types/index.d.ts"],"@televet/kibble-ui/*":["./node_modules/@televet/kibble-ui/dist/types/components/*/index.d.ts"],"@televet/kibble-ui/theme":["./node_modules/@televet/kibble-ui/dist/types/theme
|
|
2
|
+
"use strict";const i=require("node:fs"),s=require("node:path"),o=()=>{try{const t=s.resolve(process.cwd(),"tsconfig.json");let e;try{e=JSON.parse(i.readFileSync(t,"utf8"))}catch{console.error("⚠️ No tsconfig.json found in the current directory."),process.exit(1)}e.compilerOptions=e.compilerOptions||{},e.compilerOptions.paths=e.compilerOptions.paths||{},e.compilerOptions.paths={...e.compilerOptions.paths,"@televet/kibble-ui/[A-Z]*":["./node_modules/@televet/kibble-ui/dist/types/components/*/index.d.ts"],"@televet/kibble-ui/components/*":["./node_modules/@televet/kibble-ui/dist/types/components/*/index.d.ts"],"@televet/kibble-ui/theme/*":["./node_modules/@televet/kibble-ui/dist/types/theme/*.d.ts"],"@televet/kibble-ui/theme":["./node_modules/@televet/kibble-ui/dist/types/theme/index.d.ts"],"@televet/kibble-ui/hocs/*":["./node_modules/@televet/kibble-ui/dist/types/hocs/*/index.d.ts"],"@televet/kibble-ui/hooks/*":["./node_modules/@televet/kibble-ui/dist/types/hooks/*/index.d.ts"],"@televet/kibble-ui/shared/*":["./node_modules/@televet/kibble-ui/dist/types/shared/*/index.d.ts"],"@televet/kibble-ui":["./node_modules/@televet/kibble-ui/dist/types/index.d.ts"]},i.writeFileSync(t,JSON.stringify(e,null,2)),console.log("✨ Successfully configured TypeScript paths for @televet/kibble-ui")}catch(t){console.error("❌ Failed to configure TypeScript paths:",t),process.exit(1)}};o();
|
|
3
3
|
//# sourceMappingURL=configure-paths.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure-paths.cjs","sources":["../../../src/cli/configure-paths.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { readFileSync, writeFileSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\n\nconst configureTsConfig = (): void => {\n try {\n const tsconfigPath = resolve(process.cwd(), \"tsconfig.json\");\n let tsconfig;\n\n try {\n tsconfig = JSON.parse(readFileSync(tsconfigPath, \"utf8\"));\n } catch {\n console.error(\"⚠️ No tsconfig.json found in the current directory.\");\n process.exit(1);\n }\n\n // Ensure compilerOptions exists\n tsconfig.compilerOptions = tsconfig.compilerOptions || {};\n\n // Ensure paths exists\n tsconfig.compilerOptions.paths = tsconfig.compilerOptions.paths || {};\n\n // Add our path mappings\n tsconfig.compilerOptions.paths = {\n ...tsconfig.compilerOptions.paths,\n \"@televet/kibble-ui
|
|
1
|
+
{"version":3,"file":"configure-paths.cjs","sources":["../../../src/cli/configure-paths.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { readFileSync, writeFileSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\n\nconst configureTsConfig = (): void => {\n try {\n const tsconfigPath = resolve(process.cwd(), \"tsconfig.json\");\n let tsconfig;\n\n try {\n tsconfig = JSON.parse(readFileSync(tsconfigPath, \"utf8\"));\n } catch {\n console.error(\"⚠️ No tsconfig.json found in the current directory.\");\n process.exit(1);\n }\n\n // Ensure compilerOptions exists\n tsconfig.compilerOptions = tsconfig.compilerOptions || {};\n\n // Ensure paths exists\n tsconfig.compilerOptions.paths = tsconfig.compilerOptions.paths || {};\n\n // Add our path mappings\n tsconfig.compilerOptions.paths = {\n ...tsconfig.compilerOptions.paths,\n // Direct component imports (e.g., @televet/kibble-ui/Button)\n \"@televet/kibble-ui/[A-Z]*\": [\n \"./node_modules/@televet/kibble-ui/dist/types/components/*/index.d.ts\",\n ],\n // Explicit component directory imports (e.g., @televet/kibble-ui/components/Button)\n \"@televet/kibble-ui/components/*\": [\n \"./node_modules/@televet/kibble-ui/dist/types/components/*/index.d.ts\",\n ],\n // Theme imports\n \"@televet/kibble-ui/theme/*\": [\n \"./node_modules/@televet/kibble-ui/dist/types/theme/*.d.ts\",\n ],\n \"@televet/kibble-ui/theme\": [\n \"./node_modules/@televet/kibble-ui/dist/types/theme/index.d.ts\",\n ],\n // Utility imports\n \"@televet/kibble-ui/hocs/*\": [\n \"./node_modules/@televet/kibble-ui/dist/types/hocs/*/index.d.ts\",\n ],\n \"@televet/kibble-ui/hooks/*\": [\n \"./node_modules/@televet/kibble-ui/dist/types/hooks/*/index.d.ts\",\n ],\n \"@televet/kibble-ui/shared/*\": [\n \"./node_modules/@televet/kibble-ui/dist/types/shared/*/index.d.ts\",\n ],\n // Main package import\n \"@televet/kibble-ui\": [\n \"./node_modules/@televet/kibble-ui/dist/types/index.d.ts\",\n ],\n };\n\n // Write back to tsconfig.json with proper formatting\n writeFileSync(tsconfigPath, JSON.stringify(tsconfig, null, 2));\n console.log(\n \"✨ Successfully configured TypeScript paths for @televet/kibble-ui\"\n );\n } catch (error) {\n console.error(\"❌ Failed to configure TypeScript paths:\", error);\n process.exit(1);\n }\n};\n\nconfigureTsConfig();\n"],"names":["configureTsConfig","tsconfigPath","resolve","tsconfig","readFileSync","writeFileSync","error"],"mappings":";+DAKMA,EAAoB,IAAY,CAChC,GAAA,CACF,MAAMC,EAAeC,EAAA,QAAQ,QAAQ,IAAA,EAAO,eAAe,EACvD,IAAAC,EAEA,GAAA,CACFA,EAAW,KAAK,MAAMC,EAAa,aAAAH,EAAc,MAAM,CAAC,CAAA,MAClD,CACN,QAAQ,MAAM,qDAAqD,EACnE,QAAQ,KAAK,CAAC,CAAA,CAIPE,EAAA,gBAAkBA,EAAS,iBAAmB,CAAC,EAGxDA,EAAS,gBAAgB,MAAQA,EAAS,gBAAgB,OAAS,CAAC,EAGpEA,EAAS,gBAAgB,MAAQ,CAC/B,GAAGA,EAAS,gBAAgB,MAE5B,4BAA6B,CAC3B,sEACF,EAEA,kCAAmC,CACjC,sEACF,EAEA,6BAA8B,CAC5B,2DACF,EACA,2BAA4B,CAC1B,+DACF,EAEA,4BAA6B,CAC3B,gEACF,EACA,6BAA8B,CAC5B,iEACF,EACA,8BAA+B,CAC7B,kEACF,EAEA,qBAAsB,CACpB,yDAAA,CAEJ,EAGAE,EAAA,cAAcJ,EAAc,KAAK,UAAUE,EAAU,KAAM,CAAC,CAAC,EACrD,QAAA,IACN,mEACF,QACOG,EAAO,CACN,QAAA,MAAM,0CAA2CA,CAAK,EAC9D,QAAQ,KAAK,CAAC,CAAA,CAElB,EAEAN,EAAkB"}
|
|
@@ -12,18 +12,22 @@ const l = () => {
|
|
|
12
12
|
}
|
|
13
13
|
e.compilerOptions = e.compilerOptions || {}, e.compilerOptions.paths = e.compilerOptions.paths || {}, e.compilerOptions.paths = {
|
|
14
14
|
...e.compilerOptions.paths,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
],
|
|
18
|
-
"@televet/kibble-ui/*": [
|
|
15
|
+
// Direct component imports (e.g., @televet/kibble-ui/Button)
|
|
16
|
+
"@televet/kibble-ui/[A-Z]*": [
|
|
19
17
|
"./node_modules/@televet/kibble-ui/dist/types/components/*/index.d.ts"
|
|
20
18
|
],
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
// Explicit component directory imports (e.g., @televet/kibble-ui/components/Button)
|
|
20
|
+
"@televet/kibble-ui/components/*": [
|
|
21
|
+
"./node_modules/@televet/kibble-ui/dist/types/components/*/index.d.ts"
|
|
23
22
|
],
|
|
23
|
+
// Theme imports
|
|
24
24
|
"@televet/kibble-ui/theme/*": [
|
|
25
25
|
"./node_modules/@televet/kibble-ui/dist/types/theme/*.d.ts"
|
|
26
26
|
],
|
|
27
|
+
"@televet/kibble-ui/theme": [
|
|
28
|
+
"./node_modules/@televet/kibble-ui/dist/types/theme/index.d.ts"
|
|
29
|
+
],
|
|
30
|
+
// Utility imports
|
|
27
31
|
"@televet/kibble-ui/hocs/*": [
|
|
28
32
|
"./node_modules/@televet/kibble-ui/dist/types/hocs/*/index.d.ts"
|
|
29
33
|
],
|
|
@@ -32,6 +36,10 @@ const l = () => {
|
|
|
32
36
|
],
|
|
33
37
|
"@televet/kibble-ui/shared/*": [
|
|
34
38
|
"./node_modules/@televet/kibble-ui/dist/types/shared/*/index.d.ts"
|
|
39
|
+
],
|
|
40
|
+
// Main package import
|
|
41
|
+
"@televet/kibble-ui": [
|
|
42
|
+
"./node_modules/@televet/kibble-ui/dist/types/index.d.ts"
|
|
35
43
|
]
|
|
36
44
|
}, s(t, JSON.stringify(e, null, 2)), console.log(
|
|
37
45
|
"✨ Successfully configured TypeScript paths for @televet/kibble-ui"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure-paths.js","sources":["../../../src/cli/configure-paths.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { readFileSync, writeFileSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\n\nconst configureTsConfig = (): void => {\n try {\n const tsconfigPath = resolve(process.cwd(), \"tsconfig.json\");\n let tsconfig;\n\n try {\n tsconfig = JSON.parse(readFileSync(tsconfigPath, \"utf8\"));\n } catch {\n console.error(\"⚠️ No tsconfig.json found in the current directory.\");\n process.exit(1);\n }\n\n // Ensure compilerOptions exists\n tsconfig.compilerOptions = tsconfig.compilerOptions || {};\n\n // Ensure paths exists\n tsconfig.compilerOptions.paths = tsconfig.compilerOptions.paths || {};\n\n // Add our path mappings\n tsconfig.compilerOptions.paths = {\n ...tsconfig.compilerOptions.paths,\n \"@televet/kibble-ui
|
|
1
|
+
{"version":3,"file":"configure-paths.js","sources":["../../../src/cli/configure-paths.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { readFileSync, writeFileSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\n\nconst configureTsConfig = (): void => {\n try {\n const tsconfigPath = resolve(process.cwd(), \"tsconfig.json\");\n let tsconfig;\n\n try {\n tsconfig = JSON.parse(readFileSync(tsconfigPath, \"utf8\"));\n } catch {\n console.error(\"⚠️ No tsconfig.json found in the current directory.\");\n process.exit(1);\n }\n\n // Ensure compilerOptions exists\n tsconfig.compilerOptions = tsconfig.compilerOptions || {};\n\n // Ensure paths exists\n tsconfig.compilerOptions.paths = tsconfig.compilerOptions.paths || {};\n\n // Add our path mappings\n tsconfig.compilerOptions.paths = {\n ...tsconfig.compilerOptions.paths,\n // Direct component imports (e.g., @televet/kibble-ui/Button)\n \"@televet/kibble-ui/[A-Z]*\": [\n \"./node_modules/@televet/kibble-ui/dist/types/components/*/index.d.ts\",\n ],\n // Explicit component directory imports (e.g., @televet/kibble-ui/components/Button)\n \"@televet/kibble-ui/components/*\": [\n \"./node_modules/@televet/kibble-ui/dist/types/components/*/index.d.ts\",\n ],\n // Theme imports\n \"@televet/kibble-ui/theme/*\": [\n \"./node_modules/@televet/kibble-ui/dist/types/theme/*.d.ts\",\n ],\n \"@televet/kibble-ui/theme\": [\n \"./node_modules/@televet/kibble-ui/dist/types/theme/index.d.ts\",\n ],\n // Utility imports\n \"@televet/kibble-ui/hocs/*\": [\n \"./node_modules/@televet/kibble-ui/dist/types/hocs/*/index.d.ts\",\n ],\n \"@televet/kibble-ui/hooks/*\": [\n \"./node_modules/@televet/kibble-ui/dist/types/hooks/*/index.d.ts\",\n ],\n \"@televet/kibble-ui/shared/*\": [\n \"./node_modules/@televet/kibble-ui/dist/types/shared/*/index.d.ts\",\n ],\n // Main package import\n \"@televet/kibble-ui\": [\n \"./node_modules/@televet/kibble-ui/dist/types/index.d.ts\",\n ],\n };\n\n // Write back to tsconfig.json with proper formatting\n writeFileSync(tsconfigPath, JSON.stringify(tsconfig, null, 2));\n console.log(\n \"✨ Successfully configured TypeScript paths for @televet/kibble-ui\"\n );\n } catch (error) {\n console.error(\"❌ Failed to configure TypeScript paths:\", error);\n process.exit(1);\n }\n};\n\nconfigureTsConfig();\n"],"names":["configureTsConfig","tsconfigPath","resolve","tsconfig","readFileSync","writeFileSync","error"],"mappings":";;;AAKA,MAAMA,IAAoB,MAAY;AAChC,MAAA;AACF,UAAMC,IAAeC,EAAQ,QAAQ,IAAA,GAAO,eAAe;AACvD,QAAAC;AAEA,QAAA;AACF,MAAAA,IAAW,KAAK,MAAMC,EAAaH,GAAc,MAAM,CAAC;AAAA,IAAA,QAClD;AACN,cAAQ,MAAM,qDAAqD,GACnE,QAAQ,KAAK,CAAC;AAAA,IAAA;AAIP,IAAAE,EAAA,kBAAkBA,EAAS,mBAAmB,CAAC,GAGxDA,EAAS,gBAAgB,QAAQA,EAAS,gBAAgB,SAAS,CAAC,GAGpEA,EAAS,gBAAgB,QAAQ;AAAA,MAC/B,GAAGA,EAAS,gBAAgB;AAAA;AAAA,MAE5B,6BAA6B;AAAA,QAC3B;AAAA,MACF;AAAA;AAAA,MAEA,mCAAmC;AAAA,QACjC;AAAA,MACF;AAAA;AAAA,MAEA,8BAA8B;AAAA,QAC5B;AAAA,MACF;AAAA,MACA,4BAA4B;AAAA,QAC1B;AAAA,MACF;AAAA;AAAA,MAEA,6BAA6B;AAAA,QAC3B;AAAA,MACF;AAAA,MACA,8BAA8B;AAAA,QAC5B;AAAA,MACF;AAAA,MACA,+BAA+B;AAAA,QAC7B;AAAA,MACF;AAAA;AAAA,MAEA,sBAAsB;AAAA,QACpB;AAAA,MAAA;AAAA,IAEJ,GAGAE,EAAcJ,GAAc,KAAK,UAAUE,GAAU,MAAM,CAAC,CAAC,GACrD,QAAA;AAAA,MACN;AAAA,IACF;AAAA,WACOG,GAAO;AACN,YAAA,MAAM,2CAA2CA,CAAK,GAC9D,QAAQ,KAAK,CAAC;AAAA,EAAA;AAElB;AAEAN,EAAkB;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@televet/kibble-ui",
|
|
3
3
|
"description": "Kibble Design System by Otto",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.20",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cjs/index.cjs",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
@@ -27,44 +27,44 @@
|
|
|
27
27
|
"default": "./dist/cjs/index.cjs"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
"./
|
|
30
|
+
"./components/*": {
|
|
31
31
|
"import": {
|
|
32
|
-
"types": "./dist/types/
|
|
33
|
-
"default": "./dist/esm/
|
|
32
|
+
"types": "./dist/types/components/*/index.d.ts",
|
|
33
|
+
"default": "./dist/esm/components/*/index.js"
|
|
34
34
|
},
|
|
35
35
|
"require": {
|
|
36
|
-
"types": "./dist/types/
|
|
37
|
-
"default": "./dist/cjs/
|
|
36
|
+
"types": "./dist/types/components/*/index.d.ts",
|
|
37
|
+
"default": "./dist/cjs/components/*/index.cjs"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
"./
|
|
40
|
+
"./[A-Z]*": {
|
|
41
41
|
"import": {
|
|
42
|
-
"types": "./dist/types/
|
|
43
|
-
"default": "./dist/esm/
|
|
42
|
+
"types": "./dist/types/components/*/index.d.ts",
|
|
43
|
+
"default": "./dist/esm/components/*/index.js"
|
|
44
44
|
},
|
|
45
45
|
"require": {
|
|
46
|
-
"types": "./dist/types/
|
|
47
|
-
"default": "./dist/cjs/
|
|
46
|
+
"types": "./dist/types/components/*/index.d.ts",
|
|
47
|
+
"default": "./dist/cjs/components/*/index.cjs"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"
|
|
50
|
+
"./theme": {
|
|
51
51
|
"import": {
|
|
52
|
-
"types": "./dist/types/
|
|
53
|
-
"default": "./dist/esm/
|
|
52
|
+
"types": "./dist/types/theme/index.d.ts",
|
|
53
|
+
"default": "./dist/esm/theme/index.js"
|
|
54
54
|
},
|
|
55
55
|
"require": {
|
|
56
|
-
"types": "./dist/types/
|
|
57
|
-
"default": "./dist/cjs/
|
|
56
|
+
"types": "./dist/types/theme/index.d.ts",
|
|
57
|
+
"default": "./dist/cjs/theme/index.cjs"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
"./
|
|
60
|
+
"./theme/*": {
|
|
61
61
|
"import": {
|
|
62
|
-
"types": "./dist/types/
|
|
63
|
-
"default": "./dist/esm/
|
|
62
|
+
"types": "./dist/types/theme/*.d.ts",
|
|
63
|
+
"default": "./dist/esm/theme/*.js"
|
|
64
64
|
},
|
|
65
65
|
"require": {
|
|
66
|
-
"types": "./dist/types/
|
|
67
|
-
"default": "./dist/cjs/
|
|
66
|
+
"types": "./dist/types/theme/*.d.ts",
|
|
67
|
+
"default": "./dist/cjs/theme/*.cjs"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"./hocs/*": {
|