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 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
@@ -8,5 +8,4 @@ export * from './utils/getLayoutClasses.ts'
8
8
  export * from './utils/interpolate.ts'
9
9
  export * from './utils/modal.ts'
10
10
  export * from './utils/popover.ts'
11
- export * from './utils/toast.ts'
12
- export * from './utils/webcore.ts'
11
+ export * from './utils/toast.ts'
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.0",
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
  ],
@@ -1,4 +1,4 @@
1
- import { classNames } from './classNames.ts'
1
+ import { classNames } from './classNames'
2
2
 
3
3
  export type Gap = 'none'
4
4
  | 'xxs'
package/utils/modal.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { bodyFreeze } from './bodyFreeze.ts'
1
+ import { bodyFreeze } from './bodyFreeze'
2
2
 
3
3
  export type ModalCallback = {
4
4
  trigger: Element | null
package/utils/popover.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { debounce } from './debounce.ts'
2
- import { closeModal } from './modal.ts'
1
+ import { debounce } from './debounce'
2
+ import { closeModal } from './modal'
3
3
 
4
4
  export type PopoverPosition = 'top'
5
5
  | 'top-start'