From 5227f4b331ee9dcbf4a7f5744c6754edeaef2c39 Mon Sep 17 00:00:00 2001 From: Shinichi Okada Date: Thu, 10 Aug 2023 09:19:58 +0200 Subject: [PATCH] fix: scrolling problem and typo (#29) * docs: remove docs folder * docs: add README * v0.4.0 * chore(release): 0.4.1 * > Gitignore updated at 2023-08-09 16:39:41 * chore(release): 0.4.2 * add exports-to-package-json and update scripts * chore(release): 0.4.3 * fix: add-exports-to-package-json * chore(release): 0.4.4 * fix: typo * chore(release): 0.4.5 * fix: scrolling problem in layout by using afterNavigate() --- .env | 2 + .gitignore | 15 +- CHANGELOG.md | 26 + docs/README.md => README.md | 16 +- docs/.nojekyll | 0 docs/404.md | 25 - docs/500.md | 23 - docs/CNAME | 1 - docs/_sidebar.md | 52 -- docs/account-recovery.md | 42 - docs/advanced-tables.md | 3 - docs/banner.md | 30 - docs/blog-templates.md | 3 - docs/blog.md | 110 --- docs/comments.md | 3 - docs/contact-forms.md | 34 - docs/content.md | 38 - docs/cookie.md | 3 - docs/crud-create-drawers.md | 69 -- docs/crud-create-forms.md | 53 -- docs/crud-create-modals.md | 56 -- docs/crud-delete-confirm.md | 34 - docs/crud-read-drawers.md | 37 - docs/crud-read-modals.md | 48 -- docs/crud-read-sections.md | 73 -- docs/crud-success-message.md | 3 - docs/crud-update-drawers.md | 56 -- docs/crud-update-forms.md | 3 - docs/crud-update-modals.md | 77 -- docs/cta.md | 77 -- docs/customer-logos.md | 3 - docs/dashboard-footer.md | 60 -- docs/event-schedule.md | 77 -- docs/faceted-search-drawers.md | 3 - docs/faceted-search-modals.md | 3 - docs/faq.md | 134 ---- docs/feature.md | 94 --- docs/filter.md | 3 - docs/footer.md | 131 --- docs/header.md | 53 -- docs/hero.md | 93 --- docs/index.html | 148 ---- docs/login.md | 45 -- docs/maintenance.md | 18 - docs/manifest.webmanifest | 32 - docs/navbar.md | 3 - docs/newsletter.md | 57 -- docs/popup.md | 31 - docs/portfolio.md | 46 -- docs/pricing.md | 129 --- docs/public/android-chrome-192x192.png | Bin 4261 -> 0 bytes docs/public/android-chrome-512x512.png | Bin 13830 -> 0 bytes docs/public/apple-touch-icon.png | Bin 3792 -> 0 bytes docs/public/css/vue.css | 1025 ------------------------ docs/public/favicon-16x16.png | Bin 320 -> 0 bytes docs/public/favicon-32x32.png | Bin 502 -> 0 bytes docs/public/favicon.ico | Bin 15406 -> 0 bytes docs/public/maskable_icon_x192.png | Bin 4261 -> 0 bytes docs/register.md | 51 -- docs/related-articles.md | 3 - docs/reset-password.md | 45 -- docs/service-worker.js | 65 -- docs/sidenav.md | 145 ---- docs/social-proof.md | 26 - docs/table-footers.md | 3 - docs/table-headers.md | 103 --- docs/team.md | 76 -- docs/testimonial.md | 160 ---- docs/user-onboarding.md | 3 - package.json | 221 ++++- scripts/add-exports-to-package-json.js | 42 + src/app.html | 2 +- src/routes/+layout.svelte | 8 +- src/routes/marketing/footer.md | 4 +- 74 files changed, 313 insertions(+), 3844 deletions(-) create mode 100644 .env rename docs/README.md => README.md (84%) delete mode 100644 docs/.nojekyll delete mode 100644 docs/404.md delete mode 100644 docs/500.md delete mode 100644 docs/CNAME delete mode 100644 docs/_sidebar.md delete mode 100644 docs/account-recovery.md delete mode 100644 docs/advanced-tables.md delete mode 100644 docs/banner.md delete mode 100644 docs/blog-templates.md delete mode 100644 docs/blog.md delete mode 100644 docs/comments.md delete mode 100644 docs/contact-forms.md delete mode 100644 docs/content.md delete mode 100644 docs/cookie.md delete mode 100644 docs/crud-create-drawers.md delete mode 100644 docs/crud-create-forms.md delete mode 100644 docs/crud-create-modals.md delete mode 100644 docs/crud-delete-confirm.md delete mode 100644 docs/crud-read-drawers.md delete mode 100644 docs/crud-read-modals.md delete mode 100644 docs/crud-read-sections.md delete mode 100644 docs/crud-success-message.md delete mode 100644 docs/crud-update-drawers.md delete mode 100644 docs/crud-update-forms.md delete mode 100644 docs/crud-update-modals.md delete mode 100644 docs/cta.md delete mode 100644 docs/customer-logos.md delete mode 100644 docs/dashboard-footer.md delete mode 100644 docs/event-schedule.md delete mode 100644 docs/faceted-search-drawers.md delete mode 100644 docs/faceted-search-modals.md delete mode 100644 docs/faq.md delete mode 100644 docs/feature.md delete mode 100644 docs/filter.md delete mode 100644 docs/footer.md delete mode 100644 docs/header.md delete mode 100644 docs/hero.md delete mode 100644 docs/index.html delete mode 100644 docs/login.md delete mode 100644 docs/maintenance.md delete mode 100644 docs/manifest.webmanifest delete mode 100644 docs/navbar.md delete mode 100644 docs/newsletter.md delete mode 100644 docs/popup.md delete mode 100644 docs/portfolio.md delete mode 100644 docs/pricing.md delete mode 100644 docs/public/android-chrome-192x192.png delete mode 100644 docs/public/android-chrome-512x512.png delete mode 100644 docs/public/apple-touch-icon.png delete mode 100644 docs/public/css/vue.css delete mode 100644 docs/public/favicon-16x16.png delete mode 100644 docs/public/favicon-32x32.png delete mode 100644 docs/public/favicon.ico delete mode 100644 docs/public/maskable_icon_x192.png delete mode 100644 docs/register.md delete mode 100644 docs/related-articles.md delete mode 100644 docs/reset-password.md delete mode 100644 docs/service-worker.js delete mode 100644 docs/sidenav.md delete mode 100644 docs/social-proof.md delete mode 100644 docs/table-footers.md delete mode 100644 docs/table-headers.md delete mode 100644 docs/team.md delete mode 100644 docs/testimonial.md delete mode 100644 docs/user-onboarding.md create mode 100644 scripts/add-exports-to-package-json.js diff --git a/.env b/.env new file mode 100644 index 0000000..e777113 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +// .env +VITE_APP_VERSION=$npm_package_version \ No newline at end of file diff --git a/.gitignore b/.gitignore index e5d619c..1d72ddf 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,16 @@ node_modules /build /.svelte-kit /package -.env -.env.* -!.env.example /dist + +.vercel +.vscode/ + +/src/routes/compotests +/src/routes/typechecktests + +package-lock.json +yarn.lock + +src/routes/testdir/* + diff --git a/CHANGELOG.md b/CHANGELOG.md index 299516b..db27d14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,32 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.4.5](https://github.com/themesberg/flowbite-svelte-blocks/compare/v0.4.4...v0.4.5) (2023-08-10) + + +### Bug Fixes + +* typo ([165610f](https://github.com/themesberg/flowbite-svelte-blocks/commit/165610f91af921757ca7275f5879b7b397c7c5cb)) + +### [0.4.4](https://github.com/shinokada/flowbite-svelte-blocks/compare/v0.4.3...v0.4.4) (2023-08-09) + + +### Bug Fixes + +* add-exports-to-package-json ([0adf29c](https://github.com/shinokada/flowbite-svelte-blocks/commit/0adf29c808e6daf897e8ff7c9fc1276a6000642d)) + +### [0.4.3](https://github.com/shinokada/flowbite-svelte-blocks/compare/v0.4.2...v0.4.3) (2023-08-09) + +### [0.4.2](https://github.com/shinokada/flowbite-svelte-blocks/compare/v0.4.1...v0.4.2) (2023-08-09) + +### [0.4.1](https://github.com/shinokada/flowbite-svelte-blocks/compare/v0.3.9...v0.4.1) (2023-08-09) + + +### Bug Fixes + +* newsletter action url ([317d17e](https://github.com/shinokada/flowbite-svelte-blocks/commit/317d17e4ab44abfc5d644faa9771e8910833dab2)) +* remove footer from example page ([045dd69](https://github.com/shinokada/flowbite-svelte-blocks/commit/045dd69355daa88a90fd07043f09b77b6288c991)) + ### [0.3.9](https://github.com/shinokada/flowbite-svelte-blocks/compare/v0.3.8...v0.3.9) (2023-06-15) diff --git a/docs/README.md b/README.md similarity index 84% rename from docs/README.md rename to README.md index 1ffa6c2..1ed943b 100644 --- a/docs/README.md +++ b/README.md @@ -1,13 +1,13 @@

Flowbite Svelte Blocks

-Flowbite Svelte Blocks +Flowbite Svelte Blocks

npm Created by Shin Okada -License +License

**⚠️ Flowbite-Svelte-Blocks is currently in early development and APIs and packages are likely to change quite often.** @@ -16,13 +16,9 @@ [Flowbite Svelte Blocks](https://flowbite-svelte-blocks.vercel.app/) -## Docs - -[Docs](https://flowbite-svelte-blocks.pages.dev/) - ## Installation -Use this library on top of [Flowbite-Svelte](https://github.com/themesberg/flowbite-svelte). Flowbite-Svelte is an official Flowbite component library for Svelte. +Use this library on top of [Flowbite-Svelte](https://github.com/themesberg/flowbite-svelte) and [Flowbite-Svelte-Icons](https://flowbite-svelte-icons.vercel.app/). Flowbite-Svelte is an official Flowbite component library for Svelte. Install SvelteKit: @@ -42,13 +38,13 @@ pnpm i Start a server: ```sh -npm run dev +pnpm run dev ``` Install flowbite flowbite-svelte classnames @popperjs/core, svelte-heros, and flowbite-svelte-blocks: ```sh -pnpm i flowbite flowbite-svelte classnames @popperjs/core flowbite-svelte-blocks svelte-heros +pnpm i flowbite flowbite-svelte tailwind-merge @floating-ui/dom flowbite-svelte-icons ``` Update tailwind.config.cjs: @@ -120,4 +116,4 @@ theme: { ] } }, -``` +``` \ No newline at end of file diff --git a/docs/.nojekyll b/docs/.nojekyll deleted file mode 100644 index e69de29..0000000 diff --git a/docs/404.md b/docs/404.md deleted file mode 100644 index a7f9500..0000000 --- a/docs/404.md +++ /dev/null @@ -1,25 +0,0 @@ -# 404 Page - -[Demo](https://flowbite-svelte-blocks.vercel.app/marketing/404) - -## Example usage - -```html - - - - 404 - -

- Something's missing. -

-

- Sorry, we can't find that page. You'll find lots to explore on the home page. -

- -
-
-``` diff --git a/docs/500.md b/docs/500.md deleted file mode 100644 index d44dabd..0000000 --- a/docs/500.md +++ /dev/null @@ -1,23 +0,0 @@ -# 500 Page - -[Demo](https://flowbite-svelte-blocks.vercel.app/marketing/500) - -## Example usage - -```html - - - - 500 - -

- Internal Server Error. -

-

- We are already working to solve the problem. -

-
-
-``` diff --git a/docs/CNAME b/docs/CNAME deleted file mode 100644 index 9fc8b27..0000000 --- a/docs/CNAME +++ /dev/null @@ -1 +0,0 @@ -flowbite-svelte-blocks.codewithshin.com \ No newline at end of file diff --git a/docs/_sidebar.md b/docs/_sidebar.md deleted file mode 100644 index 02b2afb..0000000 --- a/docs/_sidebar.md +++ /dev/null @@ -1,52 +0,0 @@ - - -- [Installation](./) -- [404 Page](./404.md) -- [500 Page](./500.md) -- [Account Recovery](account-recovery.md) -- [Advanced Tables](advanced-tables.md) -- [Banner](banner.md) -- [Blog](blog.md) -- [Blog Templates](blog-templates.md) -- [Comments](comments.md) -- [Contact Forms](contact-forms) -- [Content](content.md) -- [Cookie](cookie.md) -- [Crud Create Drawers](crud-create-drawers.md) -- [Crud Create Modals](crud-create-modals.md) -- [Crud Delete Confirm](crud-delete-confirm.md) -- [Crud Read Drawers](crud-read-drawers.md) -- [Crud Read Modals](crud-read-modals.md) -- [Crud Read Sections](crud-read-sections.md) -- [Crud Success Message](crud-success-message.md) -- [Crud Update Drawers](crud-update-drawers.md) -- [Crud Update Forms](crud-update-forms.md) -- [Crud Update Modals](crud-update-modals.md) -- [CTA Sections](cta.md) -- [Customer Logos](customer-logos.md) -- [Dashboard Footer](dashboard-footer.md) -- [Dashboard Navbars](navbar.md) -- [Event Schedule](event-schedule.md) -- [Faceted Search Drawers](faceted-search-drawers.md) -- [FAQ Sections](faq.md) -- [Feature Sections](feature.md) -- [Filter](filter.md) -- [Footer Sections](footer.md) -- [Headers](header.md) -- [Hero Sections](hero.md) -- [Login Forms](login.md) -- [Maintenance Pages](maintenance.md) -- [Newsletter Sections](newsletter.md) -- [Portfolio](portfolio.md) -- [Popups](popup.md) -- [Pricing Tables](pricing.md) -- [Register Forms](register.md) -- [Related Articles](related-articles.md) -- [Reset Password Forms](reset-password.md) -- [Sidenav](sidenav.md) -- [Social Proof](social-proof.md) -- [Table Footers](table-footers.md) -- [Table Headers](table-headers.md) -- [Team Sections](team.md) -- [Testimonial](testimonial.md) -- [User Onboarding](user-onboarding.md) diff --git a/docs/account-recovery.md b/docs/account-recovery.md deleted file mode 100644 index b81d7db..0000000 --- a/docs/account-recovery.md +++ /dev/null @@ -1,42 +0,0 @@ -# Account Recovery Form - -[Demo](https://flowbite-svelte-blocks.vercel.app/marketing/account-recovery) - -## Example usage - -```html - - - Flowbite - -

- Forgot your password? -

-

- Don't fret! Just type in your email and we will send you a code to reset your password! -

-
-
- - -
-
-
- I accept the - Terms and Conditions -
-
- -
-
-``` diff --git a/docs/advanced-tables.md b/docs/advanced-tables.md deleted file mode 100644 index 77f7fa2..0000000 --- a/docs/advanced-tables.md +++ /dev/null @@ -1,3 +0,0 @@ -# Advanced Tables - -Coming soon diff --git a/docs/banner.md b/docs/banner.md deleted file mode 100644 index 22ff57a..0000000 --- a/docs/banner.md +++ /dev/null @@ -1,30 +0,0 @@ -# Banner - -[Demo](https://flowbite-svelte-blocks.vercel.app/marketing/banner) - -## Example usage - -```html - - -{#if visible} - -

- Supercharge your hiring by taking advantage of our - limited-time sale - for Designer Search + Job Board. Unlimited access to over 190K top-ranked candidates and the #1 - design job board. -

- (visible = false)} class="text-gray-400 hover:bg-gray-200 - hover:text-gray-900 rounded-lg text-sm p-1.5 dark:hover:bg-gray-600 dark:hover:text-white" /> -
-{/if} -``` diff --git a/docs/blog-templates.md b/docs/blog-templates.md deleted file mode 100644 index e4d74ff..0000000 --- a/docs/blog-templates.md +++ /dev/null @@ -1,3 +0,0 @@ -# Blog Templates - -Coming soon diff --git a/docs/blog.md b/docs/blog.md deleted file mode 100644 index fcd2189..0000000 --- a/docs/blog.md +++ /dev/null @@ -1,110 +0,0 @@ -# Blog Sections - -[Demo](https://flowbite-svelte-blocks.vercel.app/marketing/blog) - -## Example usage - -```html - - - - Our Blogs - -

- We use an agile approach to test assumptions and connect with the needs of your audience early - and often. -

-
-
- - - - - - Tutorials - - 14 days ago - - - How to quickly deploy a static website - -

- Static websites are now used to bootstrap lots of websites and are becoming the basis for - a variety of tools that even influence both web designers and developers influence both - web designers and developers. -

-
-
- - - Jese Leos avatar - Jese Leos - - - Read more - - - -
- - - - - - Tutorial - - 14 days ago - - - Our first project with React - -

- Static websites are now used to bootstrap lots of websites and are becoming the basis for - a variety of tools that even influence both web designers and developers influence both - web designers and developers. -

-
-
- - - Bonnie Green avatar - Bonnie Green - - - Read more - - - -
-
-``` diff --git a/docs/comments.md b/docs/comments.md deleted file mode 100644 index 01ca536..0000000 --- a/docs/comments.md +++ /dev/null @@ -1,3 +0,0 @@ -# Comments - -Coming soon diff --git a/docs/contact-forms.md b/docs/contact-forms.md deleted file mode 100644 index 404e424..0000000 --- a/docs/contact-forms.md +++ /dev/null @@ -1,34 +0,0 @@ -# Contact Form - -[Demo](https://flowbite-svelte-blocks.vercel.app/marketing/contact) - -## Example usage - -```html - - - - Contact Us - - Got a technical issue? Want to send feedback about a beta feature? Need details about our - Business plan? Let us know. - -
-
- - -
-
- - -
-
-