From c71eaa112e79cd279d93a5171df59616149c1d62 Mon Sep 17 00:00:00 2001 From: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com> Date: Mon, 9 Jan 2023 12:04:24 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20revert=20=E2=80=9Efeat:=20make=20portal,?= =?UTF-8?q?=20popover,=20and=20Dialog=20client=20components=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #18 Closes #20 --- playground/app.vue | 98 +++++++++++++++++++++++----------------------- src/module.ts | 41 +++++++------------ 2 files changed, 65 insertions(+), 74 deletions(-) diff --git a/playground/app.vue b/playground/app.vue index 889fccd4..bc67af52 100644 --- a/playground/app.vue +++ b/playground/app.vue @@ -68,60 +68,62 @@ - - -
- - -
-
+ + - + + +
+
- - - Payment successful - -
-

- Your payment has been successfully submitted. We’ve sent you - an email with all of the details of your order. -

-
- -
- -
-
- + Payment successful + +
+

+ Your payment has been successfully submitted. We’ve sent you + an email with all of the details of your order. +

+
+ +
+ +
+ + +
-
- + +
diff --git a/src/module.ts b/src/module.ts index da2ed9b1..2c5515e9 100644 --- a/src/module.ts +++ b/src/module.ts @@ -9,7 +9,6 @@ interface ComponentGroup { relativePath: string chunkName: string exports: string[] - mode: 'client' | 'server' | 'all' } const headlessComponents: ComponentGroup[] = [ @@ -23,8 +22,7 @@ const headlessComponents: ComponentGroup[] = [ 'ComboboxInput', 'ComboboxOptions', 'ComboboxOption' - ], - mode: 'all' + ] }, { relativePath: 'dialog/dialog.js', @@ -36,20 +34,18 @@ const headlessComponents: ComponentGroup[] = [ 'DialogPanel', 'DialogTitle', 'DialogDescription' - ], - mode: 'client' + ] }, { relativePath: 'disclosure/disclosure.js', chunkName: 'headlessui/disclosure', - exports: ['Disclosure', 'DisclosureButton', 'DisclosurePanel'], - mode: 'all' + exports: ['Disclosure', 'DisclosureButton', 'DisclosurePanel'] + }, { relativePath: 'focus-trap/focus-trap.js', chunkName: 'headlessui/focus-trap', - exports: ['FocusTrap'], - mode: 'all' + exports: ['FocusTrap'] }, { relativePath: 'listbox/listbox.js', @@ -60,14 +56,13 @@ const headlessComponents: ComponentGroup[] = [ 'ListboxButton', 'ListboxOptions', 'ListboxOption' - ], - mode: 'all' + ] }, { relativePath: 'menu/menu.js', chunkName: 'headlessui/menu', - exports: ['Menu', 'MenuButton', 'MenuItems', 'MenuItem'], - mode: 'all' + exports: ['Menu', 'MenuButton', 'MenuItems', 'MenuItem'] + }, { relativePath: 'popover/popover.js', @@ -78,14 +73,12 @@ const headlessComponents: ComponentGroup[] = [ 'PopoverOverlay', 'PopoverPanel', 'PopoverGroup' - ], - mode: 'client' + ] }, { relativePath: 'portal/portal.js', chunkName: 'headlessui/portal', - exports: ['Portal', 'PortalGroup'], - mode: 'client' + exports: ['Portal', 'PortalGroup'] }, { relativePath: 'radio-group/radio-group.js', @@ -95,26 +88,22 @@ const headlessComponents: ComponentGroup[] = [ 'RadioGroupOption', 'RadioGroupLabel', 'RadioGroupDescription' - ], - mode: 'all' + ] }, { relativePath: 'switch/switch.js', chunkName: 'headlessui/switch', - exports: ['SwitchGroup', 'Switch', 'SwitchLabel', 'SwitchDescription'], - mode: 'all' + exports: ['SwitchGroup', 'Switch', 'SwitchLabel', 'SwitchDescription'] }, { relativePath: 'tabs/tabs.js', chunkName: 'headlessui/tabs', - exports: ['TabGroup', 'TabList', 'Tab', 'TabPanels', 'TabPanel'], - mode: 'all' + exports: ['TabGroup', 'TabList', 'Tab', 'TabPanels', 'TabPanel'] }, { relativePath: 'transitions/transition.js', chunkName: 'headlessui/transition', - exports: ['TransitionChild', 'TransitionRoot'], - mode: 'all' + exports: ['TransitionChild', 'TransitionRoot'] } ] @@ -146,7 +135,7 @@ export default defineNuxtModule({ export: e, filePath: join(root, group.relativePath), chunkName: group.chunkName, - mode: group.mode + mode: 'all' } ) }