diff --git a/.changeset/tender-berries-wave.md b/.changeset/tender-berries-wave.md new file mode 100644 index 000000000..47c4851af --- /dev/null +++ b/.changeset/tender-berries-wave.md @@ -0,0 +1,5 @@ +--- +"bits-ui": patch +--- + +fix: Updated internal import paths to support modern module resolution strategies diff --git a/content/components/accordion.md b/content/components/accordion.md index 53e3d8d4c..bdce48e00 100644 --- a/content/components/accordion.md +++ b/content/components/accordion.md @@ -4,7 +4,7 @@ description: Organizes content into collapsible sections, allowing users to focu --- diff --git a/content/components/alert-dialog.md b/content/components/alert-dialog.md index b309b91e2..dbef15248 100644 --- a/content/components/alert-dialog.md +++ b/content/components/alert-dialog.md @@ -4,7 +4,7 @@ description: A modal window that alerts users with important information and awa --- diff --git a/content/components/aspect-ratio.md b/content/components/aspect-ratio.md index d10fd6e9e..36fa03fc4 100644 --- a/content/components/aspect-ratio.md +++ b/content/components/aspect-ratio.md @@ -4,7 +4,7 @@ description: Displays content while maintaining a specified aspect ratio, ensuri --- diff --git a/content/components/avatar.md b/content/components/avatar.md index c2b7c0fba..ae732eefe 100644 --- a/content/components/avatar.md +++ b/content/components/avatar.md @@ -4,7 +4,7 @@ description: Represents a user or entity with a recognizable image or placeholde --- diff --git a/content/components/button.md b/content/components/button.md index d15b6b5fe..2cc4b462d 100644 --- a/content/components/button.md +++ b/content/components/button.md @@ -4,7 +4,7 @@ description: A special button component that can receive Melt UI builders for us --- diff --git a/content/components/calendar.md b/content/components/calendar.md index ba85c070f..8feed59b5 100644 --- a/content/components/calendar.md +++ b/content/components/calendar.md @@ -4,7 +4,7 @@ description: Displays dates and days of the week, facilitating date-related inte --- diff --git a/content/components/checkbox.md b/content/components/checkbox.md index dd6dc4884..7179102c2 100644 --- a/content/components/checkbox.md +++ b/content/components/checkbox.md @@ -4,7 +4,7 @@ description: Allow users to switch between checked, unchecked, and indeterminate --- diff --git a/content/components/collapsible.md b/content/components/collapsible.md index 294f0620e..4f5fb669e 100644 --- a/content/components/collapsible.md +++ b/content/components/collapsible.md @@ -4,7 +4,7 @@ description: Conceals or reveals content sections, enhancing space utilization a --- diff --git a/content/components/combobox.md b/content/components/combobox.md index 4a27cf8c4..c10258969 100644 --- a/content/components/combobox.md +++ b/content/components/combobox.md @@ -4,7 +4,7 @@ description: Enables users to pick from a list of options displayed in a dropdow --- diff --git a/content/components/context-menu.md b/content/components/context-menu.md index 6dc242802..c30a34425 100644 --- a/content/components/context-menu.md +++ b/content/components/context-menu.md @@ -4,7 +4,7 @@ description: Displays options or actions relevant to a specific context or selec --- diff --git a/content/components/date-field.md b/content/components/date-field.md index 4053b4f6a..2e8e339ae 100644 --- a/content/components/date-field.md +++ b/content/components/date-field.md @@ -4,7 +4,7 @@ description: Enables users to input specific dates within a designated field. --- diff --git a/content/components/date-picker.md b/content/components/date-picker.md index 51b6a500d..31fc7c369 100644 --- a/content/components/date-picker.md +++ b/content/components/date-picker.md @@ -4,7 +4,7 @@ description: Facilitates the selection of dates through an input and calendar-ba --- diff --git a/content/components/date-range-field.md b/content/components/date-range-field.md index 3c25f8970..9670bfa06 100644 --- a/content/components/date-range-field.md +++ b/content/components/date-range-field.md @@ -4,7 +4,7 @@ description: Allows users to input a range of dates within a designated field. --- diff --git a/content/components/date-range-picker.md b/content/components/date-range-picker.md index beb0e4b23..2057cc602 100644 --- a/content/components/date-range-picker.md +++ b/content/components/date-range-picker.md @@ -4,7 +4,7 @@ description: Facilitates the selection of date ranges through an input and calen --- diff --git a/content/components/dialog.md b/content/components/dialog.md index bee150466..24bb5b8f1 100644 --- a/content/components/dialog.md +++ b/content/components/dialog.md @@ -4,7 +4,7 @@ description: A modal window presenting content or seeking user input without nav --- diff --git a/content/components/dropdown-menu.md b/content/components/dropdown-menu.md index 29561cffa..28764acde 100644 --- a/content/components/dropdown-menu.md +++ b/content/components/dropdown-menu.md @@ -4,7 +4,7 @@ description: Displays a menu of items that users can select from when triggered. --- diff --git a/content/components/label.md b/content/components/label.md index 4126e3184..49a9fec8b 100644 --- a/content/components/label.md +++ b/content/components/label.md @@ -4,7 +4,7 @@ description: Identifies or describes associated UI elements. --- diff --git a/content/components/link-preview.md b/content/components/link-preview.md index 3759aa481..44700313d 100644 --- a/content/components/link-preview.md +++ b/content/components/link-preview.md @@ -4,7 +4,7 @@ description: Displays a summarized preview of a linked content's details or info --- diff --git a/content/components/menubar.md b/content/components/menubar.md index f18cde7f4..7d289e09b 100644 --- a/content/components/menubar.md +++ b/content/components/menubar.md @@ -4,7 +4,7 @@ description: Organizes and presents a collection of menu options or actions with --- diff --git a/content/components/pagination.md b/content/components/pagination.md index 2c15f9b1a..21e244b4d 100644 --- a/content/components/pagination.md +++ b/content/components/pagination.md @@ -4,7 +4,7 @@ description: Facilitates navigation between pages. --- diff --git a/content/components/pin-input.md b/content/components/pin-input.md index 28a6ae9ca..cf8975039 100644 --- a/content/components/pin-input.md +++ b/content/components/pin-input.md @@ -4,7 +4,7 @@ description: Allows users to input a sequence of one-character alphanumeric inpu --- diff --git a/content/components/popover.md b/content/components/popover.md index 5c50ff85f..28667f1fe 100644 --- a/content/components/popover.md +++ b/content/components/popover.md @@ -4,7 +4,7 @@ description: Display supplementary content or information when users interact wi --- diff --git a/content/components/progress.md b/content/components/progress.md index 5e320640f..697183573 100644 --- a/content/components/progress.md +++ b/content/components/progress.md @@ -4,7 +4,7 @@ description: Visualizes the progress or completion status of a task or process. --- diff --git a/content/components/radio-group.md b/content/components/radio-group.md index 65a080615..1311e65fb 100644 --- a/content/components/radio-group.md +++ b/content/components/radio-group.md @@ -4,7 +4,7 @@ description: Allows users to select a single option from a list of mutually excl --- diff --git a/content/components/range-calendar.md b/content/components/range-calendar.md index 39c0c4e5c..173de40df 100644 --- a/content/components/range-calendar.md +++ b/content/components/range-calendar.md @@ -4,7 +4,7 @@ description: Presents a calendar view tailored for selecting date ranges. --- diff --git a/content/components/select.md b/content/components/select.md index 3c408386b..5ee92f89b 100644 --- a/content/components/select.md +++ b/content/components/select.md @@ -4,7 +4,7 @@ description: Enables users to choose from a list of options presented in a dropd --- diff --git a/content/components/separator.md b/content/components/separator.md index 2fe5bd968..ce8c442b6 100644 --- a/content/components/separator.md +++ b/content/components/separator.md @@ -4,7 +4,7 @@ description: Visually separates content or UI elements for clarity and organizat --- diff --git a/content/components/slider.md b/content/components/slider.md index fda33c6e7..73f20315d 100644 --- a/content/components/slider.md +++ b/content/components/slider.md @@ -4,7 +4,7 @@ description: Allows users to select a value from a continuous range by sliding a --- diff --git a/content/components/switch.md b/content/components/switch.md index dc4e0662b..31de798bb 100644 --- a/content/components/switch.md +++ b/content/components/switch.md @@ -4,7 +4,7 @@ description: A toggle control enabling users to switch between "on" and "off" st --- diff --git a/content/components/tabs.md b/content/components/tabs.md index 1b6164d9a..05c3eef09 100644 --- a/content/components/tabs.md +++ b/content/components/tabs.md @@ -4,7 +4,7 @@ description: Organizes content into distinct sections, allowing users to switch --- diff --git a/content/components/toggle-group.md b/content/components/toggle-group.md index 9dd4fb695..d16a46e3a 100644 --- a/content/components/toggle-group.md +++ b/content/components/toggle-group.md @@ -4,7 +4,7 @@ description: A control element that switches between two states, providing a bin --- diff --git a/content/components/toggle.md b/content/components/toggle.md index 3b718e4d4..bdbb70771 100644 --- a/content/components/toggle.md +++ b/content/components/toggle.md @@ -4,7 +4,7 @@ description: Groups multiple toggle controls, allowing users to enable one or mu --- diff --git a/content/components/toolbar.md b/content/components/toolbar.md index 79b8845cb..13cc72489 100644 --- a/content/components/toolbar.md +++ b/content/components/toolbar.md @@ -4,7 +4,7 @@ description: Displays frequently used actions or tools in a compact, easily acce --- diff --git a/content/components/tooltip.md b/content/components/tooltip.md index 2812ad645..52ff441a7 100644 --- a/content/components/tooltip.md +++ b/content/components/tooltip.md @@ -4,7 +4,7 @@ description: Provides additional information or context when users hover over or --- diff --git a/mdsvex.config.js b/mdsvex.config.js index 3ba998ebf..eaa2b8e3c 100644 --- a/mdsvex.config.js +++ b/mdsvex.config.js @@ -142,7 +142,10 @@ function getComponentSourceFileContent(src = "") { // Read the source file. const filePath = path.join(process.cwd(), newSrc); - const formattedSource = prettier.format(readFileSync(filePath, "utf-8"), codeBlockPrettierConfig); + /** @type {string} */ + let formattedSource = prettier.format(readFileSync(filePath, "utf-8"), codeBlockPrettierConfig); + + formattedSource = formattedSource.replaceAll(`"$lib/index.js";`, `"bits-ui";`); return formattedSource; } diff --git a/package.json b/package.json index e99ff9555..bc1979053 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@playwright/test": "^1.28.1", "@sveltejs/adapter-vercel": "^5.1.0", "@sveltejs/kit": "^2.5.0", - "@sveltejs/package": "^2.2.6", + "@sveltejs/package": "^2.2.7", "@sveltejs/vite-plugin-svelte": "^3.0.2", "@svitejs/changesets-changelog-github-compact": "^1.1.0", "@tailwindcss/typography": "^0.5.10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eb4834448..97f5988d2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,8 +35,8 @@ devDependencies: specifier: ^2.5.0 version: 2.5.0(@sveltejs/vite-plugin-svelte@3.0.2)(svelte@4.2.9)(vite@5.0.12) '@sveltejs/package': - specifier: ^2.2.6 - version: 2.2.6(svelte@4.2.9)(typescript@5.3.3) + specifier: ^2.2.7 + version: 2.2.7(svelte@4.2.9)(typescript@5.3.3) '@sveltejs/vite-plugin-svelte': specifier: ^3.0.2 version: 3.0.2(svelte@4.2.9)(vite@5.0.12) @@ -1562,14 +1562,14 @@ packages: vite: 5.0.12 dev: true - /@sveltejs/package@2.2.6(svelte@4.2.9)(typescript@5.3.3): - resolution: {integrity: sha512-rhKL/96M7LCvFI2xN94qsqHtEWr/ypcMGiii3s6dRW7ADt3tiDm8UfExjRR8v5jW3Femz0+VJ0TNevxI4Q9Quw==} + /@sveltejs/package@2.2.7(svelte@4.2.9)(typescript@5.3.3): + resolution: {integrity: sha512-/vvmrQO2mMvROdM/iGRHtRn+ValnK9xzB50pqRcX0IvoeVoTq7uhYf+KifrZTluBA+km6AX/WXRXajrgrgbmvw==} engines: {node: ^16.14 || >=18} hasBin: true peerDependencies: svelte: ^3.44.0 || ^4.0.0 || ^5.0.0-next.1 dependencies: - chokidar: 3.5.3 + chokidar: 3.6.0 kleur: 4.1.5 sade: 1.8.1 semver: 7.5.4 @@ -2504,6 +2504,21 @@ packages: fsevents: 2.3.3 dev: true + /chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + dependencies: + anymatch: 3.1.3 + braces: 3.0.2 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + dev: true + /chownr@2.0.0: resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==} engines: {node: '>=10'} diff --git a/src/components/api-ref/data-attr-value-content.svelte b/src/components/api-ref/data-attr-value-content.svelte index 0879eb7a9..41d21bab3 100644 --- a/src/components/api-ref/data-attr-value-content.svelte +++ b/src/components/api-ref/data-attr-value-content.svelte @@ -1,9 +1,9 @@ diff --git a/src/components/api-ref/data-attrs-table.svelte b/src/components/api-ref/data-attrs-table.svelte index 6a0bd569d..d3173838e 100644 --- a/src/components/api-ref/data-attrs-table.svelte +++ b/src/components/api-ref/data-attrs-table.svelte @@ -1,8 +1,8 @@ diff --git a/src/components/api-ref/prop-type-content.svelte b/src/components/api-ref/prop-type-content.svelte index 3eb9dd17c..192444aca 100644 --- a/src/components/api-ref/prop-type-content.svelte +++ b/src/components/api-ref/prop-type-content.svelte @@ -1,9 +1,9 @@ diff --git a/src/components/api-ref/props-table.svelte b/src/components/api-ref/props-table.svelte index 4ef51964b..0eda743c3 100644 --- a/src/components/api-ref/props-table.svelte +++ b/src/components/api-ref/props-table.svelte @@ -1,8 +1,8 @@ diff --git a/src/components/component-preview.svelte b/src/components/component-preview.svelte index 1de5307d9..26dd0d261 100644 --- a/src/components/component-preview.svelte +++ b/src/components/component-preview.svelte @@ -1,7 +1,7 @@ diff --git a/src/components/demos/aspect-ratio-demo.svelte b/src/components/demos/aspect-ratio-demo.svelte index 45f5ad6eb..0c0deec96 100644 --- a/src/components/demos/aspect-ratio-demo.svelte +++ b/src/components/demos/aspect-ratio-demo.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/demos/avatar-demo.svelte b/src/components/demos/avatar-demo.svelte index 34fe009a8..06c65e95b 100644 --- a/src/components/demos/avatar-demo.svelte +++ b/src/components/demos/avatar-demo.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/demos/button-demo.svelte b/src/components/demos/button-demo.svelte index 21111aa73..aa653e10b 100644 --- a/src/components/demos/button-demo.svelte +++ b/src/components/demos/button-demo.svelte @@ -1,5 +1,5 @@ - import { Calendar } from "$lib"; + import { Calendar } from "$lib/index.js"; import { CaretLeft, CaretRight } from "$icons/index.js"; const isDateUnavailable: Calendar.Props["isDateUnavailable"] = (date) => { diff --git a/src/components/demos/checkbox-demo.svelte b/src/components/demos/checkbox-demo.svelte index 66c603276..2d2f1b789 100644 --- a/src/components/demos/checkbox-demo.svelte +++ b/src/components/demos/checkbox-demo.svelte @@ -1,6 +1,5 @@ diff --git a/src/components/demos/collapsible-demo.svelte b/src/components/demos/collapsible-demo.svelte index e96e61ffd..ba552b666 100644 --- a/src/components/demos/collapsible-demo.svelte +++ b/src/components/demos/collapsible-demo.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/demos/combobox-demo.svelte b/src/components/demos/combobox-demo.svelte index 7b38b58b5..ebd92e801 100644 --- a/src/components/demos/combobox-demo.svelte +++ b/src/components/demos/combobox-demo.svelte @@ -1,6 +1,6 @@ diff --git a/src/components/demos/date-field-demo.svelte b/src/components/demos/date-field-demo.svelte index a22c97d47..4a750d457 100644 --- a/src/components/demos/date-field-demo.svelte +++ b/src/components/demos/date-field-demo.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/demos/date-picker-demo.svelte b/src/components/demos/date-picker-demo.svelte index 31181365a..4c9ed3101 100644 --- a/src/components/demos/date-picker-demo.svelte +++ b/src/components/demos/date-picker-demo.svelte @@ -1,6 +1,6 @@ diff --git a/src/components/demos/date-range-field-demo.svelte b/src/components/demos/date-range-field-demo.svelte index 7c831b3c4..fa02b6b05 100644 --- a/src/components/demos/date-range-field-demo.svelte +++ b/src/components/demos/date-range-field-demo.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/demos/dropdown-menu-demo.svelte b/src/components/demos/dropdown-menu-demo.svelte index f94334332..091d74ae4 100644 --- a/src/components/demos/dropdown-menu-demo.svelte +++ b/src/components/demos/dropdown-menu-demo.svelte @@ -1,7 +1,6 @@ diff --git a/src/components/demos/link-preview-demo.svelte b/src/components/demos/link-preview-demo.svelte index 3ca70f86d..741993cba 100644 --- a/src/components/demos/link-preview-demo.svelte +++ b/src/components/demos/link-preview-demo.svelte @@ -1,6 +1,6 @@ diff --git a/src/components/demos/range-calendar-demo.svelte b/src/components/demos/range-calendar-demo.svelte index 1ea47cdb5..f3113e0ee 100644 --- a/src/components/demos/range-calendar-demo.svelte +++ b/src/components/demos/range-calendar-demo.svelte @@ -1,6 +1,6 @@ diff --git a/src/components/demos/select-demo.svelte b/src/components/demos/select-demo.svelte index 4dc8588f7..a3ef5db96 100644 --- a/src/components/demos/select-demo.svelte +++ b/src/components/demos/select-demo.svelte @@ -1,6 +1,6 @@
diff --git a/src/components/demos/slider-demo.svelte b/src/components/demos/slider-demo.svelte index e946249de..cdab04c9e 100644 --- a/src/components/demos/slider-demo.svelte +++ b/src/components/demos/slider-demo.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/demos/switch-demo.svelte b/src/components/demos/switch-demo.svelte index 9f2438d57..a5f7356ff 100644 --- a/src/components/demos/switch-demo.svelte +++ b/src/components/demos/switch-demo.svelte @@ -1,5 +1,5 @@
diff --git a/src/components/demos/tabs-demo.svelte b/src/components/demos/tabs-demo.svelte index 825630b09..4a9fa3eb8 100644 --- a/src/components/demos/tabs-demo.svelte +++ b/src/components/demos/tabs-demo.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/demos/toggle-demo.svelte b/src/components/demos/toggle-demo.svelte index 95c112221..1a5373953 100644 --- a/src/components/demos/toggle-demo.svelte +++ b/src/components/demos/toggle-demo.svelte @@ -1,6 +1,6 @@ diff --git a/src/components/markdown/h1.svelte b/src/components/markdown/h1.svelte index f66cf5aa5..5cea0d3c2 100644 --- a/src/components/markdown/h1.svelte +++ b/src/components/markdown/h1.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/markdown/li.svelte b/src/components/markdown/li.svelte index 4d9f0bfdf..55c065088 100644 --- a/src/components/markdown/li.svelte +++ b/src/components/markdown/li.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/navigation/sidebar-nav-items.svelte b/src/components/navigation/sidebar-nav-items.svelte index 2c9e9041c..aa6668fef 100644 --- a/src/components/navigation/sidebar-nav-items.svelte +++ b/src/components/navigation/sidebar-nav-items.svelte @@ -1,7 +1,7 @@ diff --git a/src/components/navigation/sidebar-nav-main-items.svelte b/src/components/navigation/sidebar-nav-main-items.svelte index 5be119cf4..02ab1236a 100644 --- a/src/components/navigation/sidebar-nav-main-items.svelte +++ b/src/components/navigation/sidebar-nav-main-items.svelte @@ -1,8 +1,8 @@ diff --git a/src/components/page-header/page-header-description.svelte b/src/components/page-header/page-header-description.svelte index ed7b10505..ec64499c2 100644 --- a/src/components/page-header/page-header-description.svelte +++ b/src/components/page-header/page-header-description.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/page-header/page-header-heading.svelte b/src/components/page-header/page-header-heading.svelte index 97999fef2..3390fb2d2 100644 --- a/src/components/page-header/page-header-heading.svelte +++ b/src/components/page-header/page-header-heading.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/page-header/page-header.svelte b/src/components/page-header/page-header.svelte index f645c26eb..8c81082d6 100644 --- a/src/components/page-header/page-header.svelte +++ b/src/components/page-header/page-header.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/preview-switch.svelte b/src/components/preview-switch.svelte index 81450aa49..d20d95957 100644 --- a/src/components/preview-switch.svelte +++ b/src/components/preview-switch.svelte @@ -1,6 +1,6 @@
- import { Menubar } from "$lib"; + import { Menubar } from "$lib/index.js"; let bookmarks = false; let fullUrls = true; const profileRadioValue = "benoit"; diff --git a/src/components/toc/tree.svelte b/src/components/toc/tree.svelte index bc6fd454b..b9f4e218a 100644 --- a/src/components/toc/tree.svelte +++ b/src/components/toc/tree.svelte @@ -1,5 +1,5 @@ diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index ceb50b698..8f929814f 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -6,12 +6,12 @@ SiteHeader, TableOfContents, TailwindIndicator, - } from "@/components"; - import { navigation } from "@/config"; + } from "@/components/index.js"; + import { navigation } from "@/config/index.js"; import { ModeWatcher } from "mode-watcher"; import "@/styles/app.postcss"; import { page } from "$app/stores"; - import { cn } from "@/utils"; + import { cn } from "@/utils/index.js"; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 5d45a66cc..899302967 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,5 +1,5 @@ diff --git a/src/routes/+page.ts b/src/routes/+page.ts index 343cda62d..17bd9dc82 100644 --- a/src/routes/+page.ts +++ b/src/routes/+page.ts @@ -1,5 +1,5 @@ import { redirect } from "@sveltejs/kit"; -import type { PageLoad } from "./$types"; +import type { PageLoad } from "./$types.js"; export const load: PageLoad = async () => { redirect(303, "/docs/introduction"); diff --git a/src/routes/docs/+page.ts b/src/routes/docs/+page.ts index c82a22cca..3c3ce1bad 100644 --- a/src/routes/docs/+page.ts +++ b/src/routes/docs/+page.ts @@ -1,5 +1,5 @@ import { redirect } from "@sveltejs/kit"; -import type { PageLoad } from "../$types"; +import type { PageLoad } from "../$types.js"; export const load: PageLoad = async () => { redirect(303, "/docs/introduction"); diff --git a/src/routes/docs/[...slug]/+page.svelte b/src/routes/docs/[...slug]/+page.svelte index a5930776c..31db579e8 100644 --- a/src/routes/docs/[...slug]/+page.svelte +++ b/src/routes/docs/[...slug]/+page.svelte @@ -1,8 +1,8 @@ diff --git a/src/tests/alert-dialog/AlertDialog.spec.ts b/src/tests/alert-dialog/AlertDialog.spec.ts index 49c71c1e6..93812f772 100644 --- a/src/tests/alert-dialog/AlertDialog.spec.ts +++ b/src/tests/alert-dialog/AlertDialog.spec.ts @@ -1,11 +1,11 @@ import { render, screen, type Matcher, type MatcherOptions } from "@testing-library/svelte"; -import userEvent from "@testing-library/user-event"; +import { userEvent } from "@testing-library/user-event"; import { axe } from "jest-axe"; import { describe, it } from "vitest"; import AlertDialogTest from "./AlertDialogTest.svelte"; import { getTestKbd } from "../utils.js"; -import { sleep } from "$lib/internal"; -import type { AlertDialog } from "$lib"; +import { sleep } from "$lib/internal/index.js"; +import type { AlertDialog } from "$lib/index.js"; const kbd = getTestKbd(); diff --git a/src/tests/alert-dialog/AlertDialogTest.svelte b/src/tests/alert-dialog/AlertDialogTest.svelte index 15d15bb37..68bd3a076 100644 --- a/src/tests/alert-dialog/AlertDialogTest.svelte +++ b/src/tests/alert-dialog/AlertDialogTest.svelte @@ -1,5 +1,5 @@ diff --git a/src/tests/calendar/Calendar.spec.ts b/src/tests/calendar/Calendar.spec.ts index 6613d55ea..6b5c161ce 100644 --- a/src/tests/calendar/Calendar.spec.ts +++ b/src/tests/calendar/Calendar.spec.ts @@ -1,10 +1,10 @@ import { render } from "@testing-library/svelte"; -import userEvent from "@testing-library/user-event"; +import { userEvent } from "@testing-library/user-event"; import { axe } from "jest-axe"; import { describe, it } from "vitest"; import { getTestKbd } from "../utils.js"; import CalendarTest from "./CalendarTest.svelte"; -import type { Calendar } from "$lib"; +import type { Calendar } from "$lib/index.js"; import { CalendarDate, CalendarDateTime, toZoned } from "@internationalized/date"; import CalendarMultiTest from "./CalendarMultiTest.svelte"; import { getSelectedDay, getSelectedDays } from "../helpers/calendar.js"; diff --git a/src/tests/calendar/CalendarMultiTest.svelte b/src/tests/calendar/CalendarMultiTest.svelte index 336da242e..da352a7ae 100644 --- a/src/tests/calendar/CalendarMultiTest.svelte +++ b/src/tests/calendar/CalendarMultiTest.svelte @@ -1,5 +1,5 @@ diff --git a/src/tests/combobox/Combobox.spec.ts b/src/tests/combobox/Combobox.spec.ts index e08d85460..506d8833d 100644 --- a/src/tests/combobox/Combobox.spec.ts +++ b/src/tests/combobox/Combobox.spec.ts @@ -1,12 +1,12 @@ import { render, waitFor } from "@testing-library/svelte"; -import userEvent from "@testing-library/user-event"; +import { userEvent } from "@testing-library/user-event"; import { axe } from "jest-axe"; import { describe, it } from "vitest"; import ComboboxTest from "./ComboboxTest.svelte"; import type { Item } from "./ComboboxTest.svelte"; import { getTestKbd } from "../utils.js"; -import type { Combobox } from "$lib"; -import { sleep } from "$lib/internal"; +import type { Combobox } from "$lib/index.js"; +import { sleep } from "$lib/internal/index.js"; const kbd = getTestKbd(); diff --git a/src/tests/combobox/ComboboxTest.svelte b/src/tests/combobox/ComboboxTest.svelte index 870f966de..ef14a4596 100644 --- a/src/tests/combobox/ComboboxTest.svelte +++ b/src/tests/combobox/ComboboxTest.svelte @@ -7,7 +7,7 @@
diff --git a/src/tests/link-preview/LinkPreview.spec.ts b/src/tests/link-preview/LinkPreview.spec.ts index 8d6ce1b8d..e368c78a2 100644 --- a/src/tests/link-preview/LinkPreview.spec.ts +++ b/src/tests/link-preview/LinkPreview.spec.ts @@ -1,10 +1,10 @@ import { render, waitFor } from "@testing-library/svelte"; -import userEvent from "@testing-library/user-event"; +import { userEvent } from "@testing-library/user-event"; import { axe } from "jest-axe"; import { describe, it } from "vitest"; import { getTestKbd } from "../utils.js"; import LinkPreviewTest from "./LinkPreviewTest.svelte"; -import type { LinkPreview } from "$lib"; +import type { LinkPreview } from "$lib/index.js"; const kbd = getTestKbd(); diff --git a/src/tests/link-preview/LinkPreviewTest.svelte b/src/tests/link-preview/LinkPreviewTest.svelte index e7d2cb966..6c34ee5d7 100644 --- a/src/tests/link-preview/LinkPreviewTest.svelte +++ b/src/tests/link-preview/LinkPreviewTest.svelte @@ -1,5 +1,5 @@ diff --git a/src/tests/menubar/MenubarTest.svelte b/src/tests/menubar/MenubarTest.svelte index c4fd5a844..f5e37ab6b 100644 --- a/src/tests/menubar/MenubarTest.svelte +++ b/src/tests/menubar/MenubarTest.svelte @@ -1,5 +1,5 @@ diff --git a/src/tests/slider/Slider.spec.ts b/src/tests/slider/Slider.spec.ts index a43cf63bd..95c668012 100644 --- a/src/tests/slider/Slider.spec.ts +++ b/src/tests/slider/Slider.spec.ts @@ -1,12 +1,12 @@ // Credit to @paoloricciuti for this code via melt :) import { render } from "@testing-library/svelte"; -import userEvent from "@testing-library/user-event"; +import { userEvent } from "@testing-library/user-event"; import { axe } from "jest-axe"; import { describe, it } from "vitest"; import SliderTest from "./SliderTest.svelte"; import SliderRangeTest from "./SliderRangeTest.svelte"; -import type { Slider } from "$lib"; -import { getTestKbd } from "../utils"; +import type { Slider } from "$lib/index.js"; +import { getTestKbd } from "../utils.js"; const kbd = getTestKbd(); diff --git a/src/tests/slider/SliderRangeTest.svelte b/src/tests/slider/SliderRangeTest.svelte index 3f0c67b9a..33d451e0e 100644 --- a/src/tests/slider/SliderRangeTest.svelte +++ b/src/tests/slider/SliderRangeTest.svelte @@ -1,5 +1,5 @@