woby-tooltip 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +15 -12
- package/dist/index.es.js.map +1 -1
- package/dist/output.css +23 -4
- package/dist/style.css +23 -4
- package/dist/types/Arrow.d.ts +1 -0
- package/dist/types/Arrow.d.ts.map +1 -0
- package/dist/types/AutoTooltip.d.ts +7 -0
- package/dist/types/AutoTooltip.d.ts.map +1 -0
- package/dist/types/TextBox.d.ts +1 -0
- package/dist/types/TextBox.d.ts.map +1 -0
- package/dist/types/Tooltip.d.ts +2 -0
- package/dist/types/Tooltip.d.ts.map +1 -0
- package/dist/types/assets/arrow-down.d.ts +4 -0
- package/dist/types/assets/arrow-down.d.ts.map +1 -0
- package/dist/types/assets/arrow-up.d.ts +4 -0
- package/dist/types/assets/arrow-up.d.ts.map +1 -0
- package/dist/types/assets/logo.d.ts +4 -0
- package/dist/types/assets/logo.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +19 -12
- package/tailwind.config.js +11 -11
- package/tsconfig.json +61 -59
- package/tsconfig.web.json +61 -0
- package/{vite.config.ts → vite.config.mts} +40 -40
- package/{vite.config.web.ts → vite.config.web.mts} +7 -5
- package/dist/index.cjs.js +0 -406
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.umd.js +0 -408
- package/dist/index.umd.js.map +0 -1
package/tsconfig.json
CHANGED
@@ -1,60 +1,62 @@
|
|
1
|
-
{
|
2
|
-
"compilerOptions": {
|
3
|
-
"allowJs": false,
|
4
|
-
"allowSyntheticDefaultImports": true,
|
5
|
-
"allowUnreachableCode": false,
|
6
|
-
"allowUnusedLabels": false,
|
7
|
-
"alwaysStrict": true,
|
8
|
-
"declaration": true,
|
9
|
-
"declarationDir": "./dist/types",
|
10
|
-
"disableSizeLimit": true,
|
11
|
-
"esModuleInterop": false,
|
12
|
-
"forceConsistentCasingInFileNames": true,
|
13
|
-
// "importsNotUsedAsValues": "error",
|
14
|
-
"inlineSourceMap": false,
|
15
|
-
"inlineSources": false,
|
16
|
-
// "isolatedModules": true,
|
17
|
-
"jsx": "react-jsx",
|
18
|
-
"jsxImportSource": "woby",
|
19
|
-
"lib": [
|
20
|
-
"dom",
|
21
|
-
"esnext",
|
22
|
-
"WebWorker"
|
23
|
-
],
|
24
|
-
"module": "esnext",
|
25
|
-
"moduleResolution": "node",
|
26
|
-
"newLine": "lf",
|
27
|
-
"noEmitOnError": false,
|
28
|
-
"noImplicitThis": true,
|
29
|
-
"noPropertyAccessFromIndexSignature": false,
|
30
|
-
"noUnusedLocals": false,
|
31
|
-
"noUnusedParameters": false,
|
32
|
-
"outDir": "dist",
|
33
|
-
"pretty": true,
|
34
|
-
"skipDefaultLibCheck": true,
|
35
|
-
"skipLibCheck": true,
|
36
|
-
"sourceMap": false,
|
37
|
-
"strict": true,
|
38
|
-
"strictBindCallApply": true,
|
39
|
-
"strictFunctionTypes": true,
|
40
|
-
"strictNullChecks": false,
|
41
|
-
"target": "es2020",
|
42
|
-
"useDefineForClassFields": false,
|
43
|
-
"useUnknownInCatchVariables": true,
|
44
|
-
"noImplicitAny": false,
|
45
|
-
"noUncheckedIndexedAccess": false,
|
46
|
-
"baseUrl": ".",
|
47
|
-
"rootDir": "./src",
|
48
|
-
"typeRoots": [
|
49
|
-
"types",
|
50
|
-
"voby/dist/types/jsx"
|
51
|
-
],
|
52
|
-
// "tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo",
|
53
|
-
// "composite": true,
|
54
|
-
},
|
55
|
-
"exclude": [
|
56
|
-
"node_modules",
|
57
|
-
"vite
|
58
|
-
"dist*"
|
59
|
-
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"allowJs": false,
|
4
|
+
"allowSyntheticDefaultImports": true,
|
5
|
+
"allowUnreachableCode": false,
|
6
|
+
"allowUnusedLabels": false,
|
7
|
+
"alwaysStrict": true,
|
8
|
+
"declaration": true,
|
9
|
+
"declarationDir": "./dist/types",
|
10
|
+
"disableSizeLimit": true,
|
11
|
+
"esModuleInterop": false,
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
13
|
+
// "importsNotUsedAsValues": "error",
|
14
|
+
"inlineSourceMap": false,
|
15
|
+
"inlineSources": false,
|
16
|
+
// "isolatedModules": true,
|
17
|
+
"jsx": "react-jsx",
|
18
|
+
"jsxImportSource": "woby",
|
19
|
+
"lib": [
|
20
|
+
"dom",
|
21
|
+
"esnext",
|
22
|
+
"WebWorker"
|
23
|
+
],
|
24
|
+
"module": "esnext",
|
25
|
+
"moduleResolution": "node",
|
26
|
+
"newLine": "lf",
|
27
|
+
"noEmitOnError": false,
|
28
|
+
"noImplicitThis": true,
|
29
|
+
"noPropertyAccessFromIndexSignature": false,
|
30
|
+
"noUnusedLocals": false,
|
31
|
+
"noUnusedParameters": false,
|
32
|
+
"outDir": "dist",
|
33
|
+
"pretty": true,
|
34
|
+
"skipDefaultLibCheck": true,
|
35
|
+
"skipLibCheck": true,
|
36
|
+
"sourceMap": false,
|
37
|
+
"strict": true,
|
38
|
+
"strictBindCallApply": true,
|
39
|
+
"strictFunctionTypes": true,
|
40
|
+
"strictNullChecks": false,
|
41
|
+
"target": "es2020",
|
42
|
+
"useDefineForClassFields": false,
|
43
|
+
"useUnknownInCatchVariables": true,
|
44
|
+
"noImplicitAny": false,
|
45
|
+
"noUncheckedIndexedAccess": false,
|
46
|
+
"baseUrl": ".",
|
47
|
+
"rootDir": "./src",
|
48
|
+
"typeRoots": [
|
49
|
+
"types",
|
50
|
+
"voby/dist/types/jsx"
|
51
|
+
],
|
52
|
+
// "tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo",
|
53
|
+
// "composite": true,
|
54
|
+
},
|
55
|
+
"exclude": [
|
56
|
+
"node_modules",
|
57
|
+
"vite.*.*ts",
|
58
|
+
"dist*",
|
59
|
+
"src/docs",
|
60
|
+
"svgx"
|
61
|
+
]
|
60
62
|
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"allowJs": false,
|
4
|
+
"allowSyntheticDefaultImports": true,
|
5
|
+
"allowUnreachableCode": false,
|
6
|
+
"allowUnusedLabels": false,
|
7
|
+
"alwaysStrict": true,
|
8
|
+
"declaration": true,
|
9
|
+
"declarationDir": "./dist/types",
|
10
|
+
"disableSizeLimit": true,
|
11
|
+
"esModuleInterop": false,
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
13
|
+
// "importsNotUsedAsValues": "error",
|
14
|
+
"inlineSourceMap": false,
|
15
|
+
"inlineSources": false,
|
16
|
+
// "isolatedModules": true,
|
17
|
+
"jsx": "react-jsx",
|
18
|
+
"jsxImportSource": "woby",
|
19
|
+
"lib": [
|
20
|
+
"dom",
|
21
|
+
"esnext",
|
22
|
+
"WebWorker"
|
23
|
+
],
|
24
|
+
"module": "esnext",
|
25
|
+
"moduleResolution": "node",
|
26
|
+
"newLine": "lf",
|
27
|
+
"noEmitOnError": false,
|
28
|
+
"noImplicitThis": true,
|
29
|
+
"noPropertyAccessFromIndexSignature": false,
|
30
|
+
"noUnusedLocals": false,
|
31
|
+
"noUnusedParameters": false,
|
32
|
+
"outDir": "dist",
|
33
|
+
"pretty": true,
|
34
|
+
"skipDefaultLibCheck": true,
|
35
|
+
"skipLibCheck": true,
|
36
|
+
"sourceMap": false,
|
37
|
+
"strict": true,
|
38
|
+
"strictBindCallApply": true,
|
39
|
+
"strictFunctionTypes": true,
|
40
|
+
"strictNullChecks": false,
|
41
|
+
"target": "es2020",
|
42
|
+
"useDefineForClassFields": false,
|
43
|
+
"useUnknownInCatchVariables": true,
|
44
|
+
"noImplicitAny": false,
|
45
|
+
"noUncheckedIndexedAccess": false,
|
46
|
+
"baseUrl": ".",
|
47
|
+
"rootDir": "./src",
|
48
|
+
"typeRoots": [
|
49
|
+
"types",
|
50
|
+
"voby/dist/types/jsx"
|
51
|
+
],
|
52
|
+
// "tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo",
|
53
|
+
// "composite": true,
|
54
|
+
},
|
55
|
+
"exclude": [
|
56
|
+
"node_modules",
|
57
|
+
"vite.*.*ts",
|
58
|
+
"dist*",
|
59
|
+
"svgx"
|
60
|
+
]
|
61
|
+
}
|
@@ -1,40 +1,40 @@
|
|
1
|
-
import { defineConfig } from 'vite'
|
2
|
-
import path from 'path'
|
3
|
-
import dts from 'vite-plugin-dts'
|
4
|
-
|
5
|
-
const config = defineConfig({
|
6
|
-
build: {
|
7
|
-
minify: false,
|
8
|
-
lib: {
|
9
|
-
entry: ["./src/
|
10
|
-
name: 'woby',
|
11
|
-
formats: ['cjs', 'es'
|
12
|
-
fileName: (format: string, entryName: string) => `${entryName}.${format}.js`
|
13
|
-
},
|
14
|
-
sourcemap: true,
|
15
|
-
rollupOptions: {
|
16
|
-
external: ['woby', 'woby/jsx-runtime', 'oby', 'woby/jsx-runtime'],
|
17
|
-
output: {
|
18
|
-
globals: {
|
19
|
-
'woby': 'woby',
|
20
|
-
'woby/jsx-runtime': 'woby/jsx-runtime',
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
},
|
25
|
-
esbuild: {
|
26
|
-
jsx: 'automatic',
|
27
|
-
},
|
28
|
-
plugins: [
|
29
|
-
dts({ entryRoot: './src/lib', outputDir: './dist/types' })
|
30
|
-
],
|
31
|
-
resolve: {
|
32
|
-
alias: {
|
33
|
-
'~': path.resolve(__dirname, 'src'),
|
34
|
-
},
|
35
|
-
},
|
36
|
-
})
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
export default config
|
1
|
+
import { defineConfig } from 'vite'
|
2
|
+
import path from 'path'
|
3
|
+
// import dts from 'vite-plugin-dts'
|
4
|
+
|
5
|
+
const config = defineConfig({
|
6
|
+
build: {
|
7
|
+
minify: false,
|
8
|
+
lib: {
|
9
|
+
entry: ["./src/index.tsx"],
|
10
|
+
name: 'woby',
|
11
|
+
formats: [/*'cjs', '*/'es'/*, 'umd'*/],
|
12
|
+
fileName: (format: string, entryName: string) => `${entryName}.${format}.js`
|
13
|
+
},
|
14
|
+
sourcemap: true,
|
15
|
+
rollupOptions: {
|
16
|
+
external: ['woby', 'woby/jsx-runtime', 'oby', 'woby/jsx-runtime'],
|
17
|
+
output: {
|
18
|
+
globals: {
|
19
|
+
'woby': 'woby',
|
20
|
+
'woby/jsx-runtime': 'woby/jsx-runtime',
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
},
|
25
|
+
esbuild: {
|
26
|
+
jsx: 'automatic',
|
27
|
+
},
|
28
|
+
plugins: [
|
29
|
+
// dts({ entryRoot: './src/lib', outputDir: './dist/types' })
|
30
|
+
],
|
31
|
+
resolve: {
|
32
|
+
alias: {
|
33
|
+
'~': path.resolve(__dirname, 'src'),
|
34
|
+
},
|
35
|
+
},
|
36
|
+
})
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
export default config
|
@@ -1,14 +1,16 @@
|
|
1
1
|
import { defineConfig } from 'vite'
|
2
2
|
import path from 'path'
|
3
|
+
import tsconfig from 'vite-plugin-tsconfig'
|
4
|
+
|
3
5
|
// import dts from 'vite-plugin-dts'
|
4
6
|
|
5
7
|
const config = defineConfig({
|
6
8
|
build: {
|
7
9
|
minify: false,
|
8
10
|
lib: {
|
9
|
-
entry: ["
|
11
|
+
entry: ["index.html"],
|
10
12
|
name: "woby-power-tooltip",
|
11
|
-
formats: ['cjs', 'es'
|
13
|
+
formats: [/*'cjs', '*/'es'/*, 'umd'*/],
|
12
14
|
fileName: (format: string, entryName: string) => `${entryName}.${format}.js`
|
13
15
|
},
|
14
16
|
outDir: './build',
|
@@ -19,13 +21,13 @@ const config = defineConfig({
|
|
19
21
|
},
|
20
22
|
plugins: [
|
21
23
|
// dts({ entryRoot: './src', outputDir: './dist/types' })
|
24
|
+
tsconfig({filename:'tsconfig.web.ts'})
|
22
25
|
],
|
23
26
|
resolve: {
|
24
27
|
alias: {
|
25
28
|
'~': path.resolve(__dirname, 'src'),
|
26
|
-
'woby/jsx-dev-runtime':
|
27
|
-
'woby/jsx-runtime':
|
28
|
-
'woby': process.argv.includes('dev') ? path.resolve('../woby/src') : 'woby'
|
29
|
+
'woby/jsx-dev-runtime': 'woby',
|
30
|
+
'woby/jsx-runtime': 'woby',
|
29
31
|
},
|
30
32
|
},
|
31
33
|
})
|