From 81f5c4352acb9a545d5b1f3bbf110c1b9da8b265 Mon Sep 17 00:00:00 2001 From: thejackshelton Date: Tue, 16 Apr 2024 23:29:18 -0500 Subject: [PATCH] removed portal stuff --- .../headless/modal/examples/portalled.tsx | 33 ------------------- package.json | 3 -- pnpm-lock.yaml | 8 ----- 3 files changed, 44 deletions(-) delete mode 100644 apps/website/src/routes/docs/headless/modal/examples/portalled.tsx diff --git a/apps/website/src/routes/docs/headless/modal/examples/portalled.tsx b/apps/website/src/routes/docs/headless/modal/examples/portalled.tsx deleted file mode 100644 index 48d9f0664..000000000 --- a/apps/website/src/routes/docs/headless/modal/examples/portalled.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import { component$, useSignal, useStyles$, useVisibleTask$ } from '@builder.io/qwik'; -import { Modal } from '@qwik-ui/headless'; -import styles from '../snippets/modal.css?inline'; -import flatpickr from 'flatpickr'; -import datePickerStyles from 'flatpickr/dist/flatpickr.min.css?inline'; - -export default component$(() => { - useStyles$(styles); - useStyles$(datePickerStyles); - const pickerTriggerRef = useSignal(); - const isOpen = useSignal(false); - - useVisibleTask$(() => { - if (pickerTriggerRef.value) { - flatpickr(pickerTriggerRef.value); - } - }); - - return ( - <> - - - - - - ); -}); diff --git a/package.json b/package.json index 3bff447d5..a52dc333c 100644 --- a/package.json +++ b/package.json @@ -182,8 +182,5 @@ ], "nx": { "includedScripts": [] - }, - "dependencies": { - "flatpickr": "4.6.13" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fea5c3654..06e9a8c5d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,10 +7,6 @@ settings: importers: .: - dependencies: - flatpickr: - specifier: 4.6.13 - version: 4.6.13 devDependencies: '@axe-core/playwright': specifier: 4.8.5 @@ -13448,10 +13444,6 @@ packages: resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==} hasBin: true - /flatpickr@4.6.13: - resolution: {integrity: sha512-97PMG/aywoYpB4IvbvUJi0RQi8vearvU0oov1WW3k0WZPBMrTQVqekSX5CjSG/M4Q3i6A/0FKXC7RyAoAUUSPw==} - dev: false - /flatted@3.2.9: resolution: {integrity: sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==} dev: true