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
4444### Headless Kit
4545
4646| Component | Planned | Draft (Alpha) | Beta | Stable |
47- | :------------------------------------------------------------ | :-----: | :-----------: | ---- | ------ |
47+ | :------------------------------------------------------------ | :-----: | :-----------: | ---- | ------ |
4848| [ Accordion] ( https://qwikui.com/docs/headless/accordion ) | | | ✅ | |
4949| [ Autocomplete] ( https://qwikui.com/docs/headless/autocomplete ) | | ✅ | | |
5050| Carousel | ✅ | | | |
5151| [ Combobox] ( https://qwikui.com/docs/headless/combobox ) | | | ✅ | |
5252| Dialog | ✅ | | | |
53- | [ Modal] ( https://qwikui.com/docs/headless/modal ) | | | ✅ | |
53+ | [ Modal] ( https://qwikui.com/docs/headless/modal ) | | | ✅ | |
5454| [ Pagination] ( https://qwikui.com/docs/headless/pagination ) | | ✅ | | |
5555| [ Popover] ( https://qwikui.com/docs/headless/popover ) | | ✅ | | |
5656| [ Select] ( https://qwikui.com/docs/headless/select ) | | ✅ | | |
Original file line number Diff line number Diff line change 401401 "pullRequestNo" : 526
402402 }
403403 ]
404- }
404+ }
Original file line number Diff line number Diff line change 2222 "private" : false ,
2323 "scripts" : {},
2424 "peerDependencies" : {
25- "@builder.io/qwik" : " ^ 1.2.11 "
25+ "@builder.io/qwik" : " >= 1.2.19 "
2626 },
2727 "dependencies" : {
28+ "@qwik-ui/utils" : " workspace:*" ,
2829 "@floating-ui/dom" : " ^1.0.10" ,
30+ "body-scroll-lock" : " ^4.0.0-beta.0" ,
2931 "country-list-json" : " ^1.1.0" ,
32+ "focus-trap" : " ^7.5.3" ,
3033 "libphonenumber-js" : " ^1.10.43"
3134 }
3235}
Original file line number Diff line number Diff line change 11/// <reference types="vitest" />
2-
32import { qwikVite } from '@builder.io/qwik/optimizer' ;
43import { dirname , join } from 'path' ;
54import { qwikNxVite } from 'qwik-nx/plugins' ;
@@ -8,6 +7,11 @@ import { defineConfig } from 'vite';
87import dts from 'vite-plugin-dts' ;
98import { viteStaticCopy } from 'vite-plugin-static-copy' ;
109import 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 ) ;
1115
1216export default defineConfig ( {
1317 plugins : [
@@ -57,6 +61,11 @@ export default defineConfig({
5761 formats : [ 'es' , 'cjs' ] ,
5862 } ,
5963 rollupOptions : {
64+ external : [
65+ / ^ n o d e : .* / ,
66+ ...excludeAll ( dependencies ) ,
67+ ...excludeAll ( peerDependencies ) ,
68+ ] ,
6069 output : {
6170 preserveModules : true ,
6271 preserveModulesRoot : 'packages/kit-headless/src' ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @qwik-ui/utils" ,
3- "version" : " 0.0.0 " ,
3+ "version" : " 0.0.1 " ,
44 "description" : " Qwik UI Utils" ,
55 "publishConfig" : {
66 "access" : " public"
99 "tailwind-merge" : " ^1.14.0"
1010 },
1111 "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" ,
1420 "typings" : " ./index.d.ts"
1521}
Original file line number Diff line number Diff line change 11/// <reference types="vitest" />
22import { defineConfig } from 'vite' ;
33
4- import viteTsConfigPaths from 'vite-tsconfig-paths' ;
5- import dts from 'vite-plugin-dts' ;
64import * as path from 'path' ;
5+ import dts from 'vite-plugin-dts' ;
6+ import viteTsConfigPaths from 'vite-tsconfig-paths' ;
77
88export default defineConfig ( {
9- cacheDir : '../../node_modules/.vite/cva ' ,
9+ cacheDir : '../../node_modules/.vite/utils ' ,
1010
1111 plugins : [
1212 dts ( {
@@ -35,7 +35,7 @@ export default defineConfig({
3535 lib : {
3636 // Could also be a dictionary or array of multiple entry points.
3737 entry : 'src/index.ts' ,
38- name : 'cva ' ,
38+ name : 'utils ' ,
3939 fileName : 'index' ,
4040 // Change this to the formats you want to support.
4141 // Don't forget to update your package.json as well.
You can’t perform that action at this time.
0 commit comments