webcoreui 1.1.0-beta.0 → 1.1.0-beta.1
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/index.d.ts +0 -3
- package/index.js +1 -2
- package/integration.js +38 -0
- package/package.json +4 -2
- package/utils/getLayoutClasses.ts +1 -1
- package/utils/modal.ts +1 -1
- package/utils/popover.ts +2 -2
package/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
import type { AstroIntegration } from 'astro'
|
|
3
|
-
|
|
4
2
|
export type Gap = 'none'
|
|
5
3
|
| 'xxs'
|
|
6
4
|
| 'xs'
|
|
@@ -179,5 +177,4 @@ declare module 'webcoreui' {
|
|
|
179
177
|
export const setDefaultTimeout: (time: number) => number
|
|
180
178
|
export const toast: (config: Toast | string) => void
|
|
181
179
|
export const hideToast: (element: string) => void
|
|
182
|
-
export const webcore: () => AstroIntegration
|
|
183
180
|
}
|
package/index.js
CHANGED
package/integration.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import path from 'path'
|
|
2
|
+
|
|
3
|
+
const config = {
|
|
4
|
+
ssr: {
|
|
5
|
+
noExternal: ['webcoreui']
|
|
6
|
+
},
|
|
7
|
+
css: {
|
|
8
|
+
preprocessorOptions: {
|
|
9
|
+
scss: {
|
|
10
|
+
loadPaths: [
|
|
11
|
+
path.resolve(process.cwd())
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const webcore = () => {
|
|
19
|
+
return {
|
|
20
|
+
name: 'webcoreui',
|
|
21
|
+
hooks: {
|
|
22
|
+
'astro:config:setup': ({ updateConfig }) => {
|
|
23
|
+
updateConfig({
|
|
24
|
+
vite: config
|
|
25
|
+
})
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const webcoreVite = () => {
|
|
32
|
+
return {
|
|
33
|
+
name: 'webcoreui',
|
|
34
|
+
config() {
|
|
35
|
+
return config
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webcoreui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.0-beta.
|
|
4
|
+
"version": "1.1.0-beta.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepare": "husky",
|
|
7
7
|
"pre-commit": "lint-staged",
|
|
@@ -50,8 +50,9 @@
|
|
|
50
50
|
"./astro": "./astro.js",
|
|
51
51
|
"./svelte": "./svelte.js",
|
|
52
52
|
"./react": "./react.js",
|
|
53
|
-
"./styles": "./scss/index.scss",
|
|
54
53
|
"./icons": "./icons.js",
|
|
54
|
+
"./integration": "./integration.js",
|
|
55
|
+
"./styles": "./scss/index.scss",
|
|
55
56
|
"./config": "./scss/config.scss"
|
|
56
57
|
},
|
|
57
58
|
"files": [
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
"react.js",
|
|
70
71
|
"index.js",
|
|
71
72
|
"index.d.ts",
|
|
73
|
+
"integration.js",
|
|
72
74
|
"README.md",
|
|
73
75
|
"LICENSE"
|
|
74
76
|
],
|
package/utils/modal.ts
CHANGED
package/utils/popover.ts
CHANGED