File tree Expand file tree Collapse file tree 7 files changed +51
-20
lines changed Expand file tree Collapse file tree 7 files changed +51
-20
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ npm install -D @qwik-ui/headless
44
44
### Headless Kit
45
45
46
46
| Component | Planned | Draft (Alpha) | Beta | Stable |
47
- | :------------------------------------------------------------ | :-----: | :-----------: | ---- | ------ |
47
+ | :------------------------------------------------------------ | :-----: | :-----------: | ---- | ------ |
48
48
| [ Accordion] ( https://qwikui.com/docs/headless/accordion ) | | | ✅ | |
49
49
| [ Autocomplete] ( https://qwikui.com/docs/headless/autocomplete ) | | ✅ | | |
50
50
| Carousel | ✅ | | | |
51
51
| [ Combobox] ( https://qwikui.com/docs/headless/combobox ) | | | ✅ | |
52
52
| Dialog | ✅ | | | |
53
- | [ Modal] ( https://qwikui.com/docs/headless/modal ) | | | ✅ | |
53
+ | [ Modal] ( https://qwikui.com/docs/headless/modal ) | | | ✅ | |
54
54
| [ Pagination] ( https://qwikui.com/docs/headless/pagination ) | | ✅ | | |
55
55
| [ Popover] ( https://qwikui.com/docs/headless/popover ) | | ✅ | | |
56
56
| [ Select] ( https://qwikui.com/docs/headless/select ) | | ✅ | | |
Original file line number Diff line number Diff line change 401
401
"pullRequestNo" : 526
402
402
}
403
403
]
404
- }
404
+ }
Original file line number Diff line number Diff line change 22
22
"private" : false ,
23
23
"scripts" : {},
24
24
"peerDependencies" : {
25
- "@builder.io/qwik" : " ^ 1.2.11 "
25
+ "@builder.io/qwik" : " >= 1.2.19 "
26
26
},
27
27
"dependencies" : {
28
+ "@qwik-ui/utils" : " workspace:*" ,
28
29
"@floating-ui/dom" : " ^1.0.10" ,
30
+ "body-scroll-lock" : " ^4.0.0-beta.0" ,
29
31
"country-list-json" : " ^1.1.0" ,
32
+ "focus-trap" : " ^7.5.3" ,
30
33
"libphonenumber-js" : " ^1.10.43"
31
34
}
32
35
}
Original file line number Diff line number Diff line change 1
1
/// <reference types="vitest" />
2
-
3
2
import { qwikVite } from '@builder.io/qwik/optimizer' ;
4
3
import { dirname , join } from 'path' ;
5
4
import { qwikNxVite } from 'qwik-nx/plugins' ;
@@ -8,6 +7,11 @@ import { defineConfig } from 'vite';
8
7
import dts from 'vite-plugin-dts' ;
9
8
import { viteStaticCopy } from 'vite-plugin-static-copy' ;
10
9
import tsconfigPaths from 'vite-tsconfig-paths' ;
10
+ import pkg from './package.json' ;
11
+
12
+ const { dependencies = { } , peerDependencies = { } } = pkg as any ;
13
+ const makeRegex = ( dep : any ) => new RegExp ( `^${ dep } (/.*)?$` ) ;
14
+ const excludeAll = ( obj : any ) => Object . keys ( obj ) . map ( makeRegex ) ;
11
15
12
16
export default defineConfig ( {
13
17
plugins : [
@@ -57,6 +61,11 @@ export default defineConfig({
57
61
formats : [ 'es' , 'cjs' ] ,
58
62
} ,
59
63
rollupOptions : {
64
+ external : [
65
+ / ^ n o d e : .* / ,
66
+ ...excludeAll ( dependencies ) ,
67
+ ...excludeAll ( peerDependencies ) ,
68
+ ] ,
60
69
output : {
61
70
preserveModules : true ,
62
71
preserveModulesRoot : 'packages/kit-headless/src' ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @qwik-ui/utils" ,
3
- "version" : " 0.0.0 " ,
3
+ "version" : " 0.0.1 " ,
4
4
"description" : " Qwik UI Utils" ,
5
5
"publishConfig" : {
6
6
"access" : " public"
9
9
"tailwind-merge" : " ^1.14.0"
10
10
},
11
11
"type" : " module" ,
12
- "main" : " ./index.js" ,
13
- "module" : " ./index.mjs" ,
12
+ "exports" : {
13
+ "." : {
14
+ "import" : " ./index.js" ,
15
+ "require" : " ./index.cjs"
16
+ }
17
+ },
18
+ "main" : " ./index.cjs" ,
19
+ "module" : " ./index.js" ,
14
20
"typings" : " ./index.d.ts"
15
21
}
Original file line number Diff line number Diff line change 1
1
/// <reference types="vitest" />
2
2
import { defineConfig } from 'vite' ;
3
3
4
- import viteTsConfigPaths from 'vite-tsconfig-paths' ;
5
- import dts from 'vite-plugin-dts' ;
6
4
import * as path from 'path' ;
5
+ import dts from 'vite-plugin-dts' ;
6
+ import viteTsConfigPaths from 'vite-tsconfig-paths' ;
7
7
8
8
export default defineConfig ( {
9
- cacheDir : '../../node_modules/.vite/cva ' ,
9
+ cacheDir : '../../node_modules/.vite/utils ' ,
10
10
11
11
plugins : [
12
12
dts ( {
@@ -35,7 +35,7 @@ export default defineConfig({
35
35
lib : {
36
36
// Could also be a dictionary or array of multiple entry points.
37
37
entry : 'src/index.ts' ,
38
- name : 'cva ' ,
38
+ name : 'utils ' ,
39
39
fileName : 'index' ,
40
40
// Change this to the formats you want to support.
41
41
// Don't forget to update your package.json as well.
You can’t perform that action at this time.
0 commit comments