Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/accordion/Accordion.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type AccordionCtxType, type AccordionProps } from "$lib";
import type { AccordionCtxType, AccordionProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";
import clsx from "clsx";
import { setContext } from "svelte";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/accordion/AccordionItem.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type AccordionCtxType, type AccordionItemProps, type ParamsType } from "$lib";
import type { AccordionCtxType, AccordionItemProps, ParamsType } from "$lib";
import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";
import { useSingleSelection } from "$lib/utils/singleselection.svelte";
import clsx from "clsx";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/bottom-navigation/BottomNavHeader.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { bottomNavHeader } from ".";
import clsx from "clsx";
import { type BottomNavHeaderProps } from "$lib";
import type { BottomNavHeaderProps } from "$lib";
import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";

let { children, class: className, classes, outerClass, innerClass, ...restProps }: BottomNavHeaderProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/bottom-navigation/BottomNavHeaderItem.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { bottomNavHeaderItem } from ".";
import clsx from "clsx";
import { type BottomNavHeaderItemProps } from "$lib";
import type { BottomNavHeaderItemProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { itemName, active, class: className, ...restProps }: BottomNavHeaderItemProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/bottom-navigation/BottomNavItem.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type BottomNavContextType, type BottomNavItemProps } from "$lib";
import type { BottomNavContextType, BottomNavItemProps } from "$lib";
import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";
import clsx from "clsx";
import { getContext } from "svelte";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/breadcrumb/Breadcrumb.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { breadcrumb } from ".";
import clsx from "clsx";
import { type BreadcrumbProps } from "$lib";
import type { BreadcrumbProps } from "$lib";
import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";

let { children, solid = false, class: className, classes, olClass, ariaLabel = "Breadcrumb", ...restProps }: BreadcrumbProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/breadcrumb/BreadcrumbItem.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type BreadcrumbItemProps } from "$lib";
import type { BreadcrumbItemProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";
import clsx from "clsx";
import { breadcrumbItem } from "./index";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/button-group/ButtonGroup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { setContext } from "svelte";
import { buttonGroup } from ".";
import clsx from "clsx";
import { type ButtonGroupProps } from "$lib";
import type { ButtonGroupProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { children, size = "md", disabled, class: className, ...restProps }: ButtonGroupProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/buttons/Button.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { getContext } from "svelte";
import clsx from "clsx";
import { type SizeType, type ButtonProps } from "$lib";
import type { SizeType, ButtonProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";
import { button } from ".";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/card/Card.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type CardProps } from "$lib";
import type { CardProps } from "$lib";
import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";
import clsx from "clsx";
import { card } from ".";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/carousel/ControlButton.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { controlButton } from "./theme";
import clsx from "clsx";
import { type ControlButtonProps } from "$lib";
import type { ControlButtonProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { children, forward, name, class: className, spanClass, ...restProps }: ControlButtonProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/carousel/Slide.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type SlideProps, type CarouselState } from "$lib";
import type { SlideProps, CarouselState } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";
import clsx from "clsx";
import { getContext } from "svelte";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/carousel/Thumbnail.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { thumbnail } from "./theme";
import { type ThumbnailProps } from "$lib";
import type { ThumbnailProps } from "$lib";
import clsx from "clsx";
import { getTheme } from "$lib/theme/themeUtils";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/clipboard/Clipboard.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import Button from "$lib/buttons/Button.svelte";
import clsx from "clsx";
import { type ClipboardProps } from "$lib";
import type { ClipboardProps } from "$lib";
import { clipboard } from "./theme";
import type { MouseEventHandler } from "svelte/elements";
import { getTheme } from "$lib/theme/themeUtils";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/darkmode/DarkMode.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { darkmode } from ".";
import clsx from "clsx";
import { type DarkmodeProps } from "$lib";
import type { DarkmodeProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

// const THEME_PREFERENCE_KEY = 'color-theme';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/device-mockups/Android.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type AndroidProps } from "$lib";
import type { AndroidProps } from "$lib";
import { warnThemeDeprecation } from "$lib/theme/themeUtils";
import clsx from "clsx";
import { android } from ".";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/device-mockups/DefaultMockup.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type DefaultMockupProps } from "$lib";
import type { DefaultMockupProps } from "$lib";
import { warnThemeDeprecation } from "$lib/theme/themeUtils";
import clsx from "clsx";
import { defaultMockup } from ".";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/device-mockups/Desktop.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type DesktopProps } from "$lib";
import type { DesktopProps } from "$lib";
import { warnThemeDeprecation } from "$lib/theme/themeUtils";
import clsx from "clsx";
import { desktop } from ".";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/device-mockups/Laptop.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type LaptopProps } from "$lib";
import type { LaptopProps } from "$lib";
import { warnThemeDeprecation } from "$lib/theme/themeUtils";
import clsx from "clsx";
import { laptop } from ".";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/device-mockups/Smartwatch.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type SmartwatchProps } from "$lib";
import type { SmartwatchProps } from "$lib";
import { warnThemeDeprecation } from "$lib/theme/themeUtils";
import clsx from "clsx";
import { smartwatch } from ".";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/drawer/Drawer.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type DrawerProps } from "$lib";
import type { DrawerProps } from "$lib";
import Dialog from "$lib/dialog/Dialog.svelte";
import { getTheme } from "$lib/theme/themeUtils";
import clsx from "clsx";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/drawer/Drawerhead.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { drawerhead } from ".";
import clsx from "clsx";
import { type DrawerheadProps } from "$lib";
import type { DrawerheadProps } from "$lib";
import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";

let { closeIcon, children, buttonClass, svgClass, class: className, classes, ...restProps }: DrawerheadProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dropdown/DropdownDivider.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { dropdownDivider } from ".";
import clsx from "clsx";
import { type DropdownDividerProps } from "$lib";
import type { DropdownDividerProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { class: className, ...restProps }: DropdownDividerProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dropdown/DropdownGroup.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { dropdownGroup } from ".";
import clsx from "clsx";
import { type DropdownGroupProps } from "$lib";
import type { DropdownGroupProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { children, class: className, ...restProps }: DropdownGroupProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dropdown/DropdownHeader.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { dropdownHeader } from ".";
import clsx from "clsx";
import { type DropdownHeaderProps } from "$lib";
import type { DropdownHeaderProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { children, class: className, ...restProps }: DropdownHeaderProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dropdown/DropdownItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { getContext } from "svelte";
import { dropdownItem } from ".";
import clsx from "clsx";
import { type DropdownItemProps } from "$lib";
import type { DropdownItemProps } from "$lib";
import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";

let { aClass, children, activeClass, liClass, classes, class: className, ...restProps }: DropdownItemProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/footer/Footer.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { footer } from ".";
import clsx from "clsx";
import { type FooterProps } from "$lib";
import type { FooterProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { children, footerType = "default", class: className, ...restProps }: FooterProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/footer/FooterBrand.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { footerBrand } from ".";
import clsx from "clsx";
import { type FooterBrandProps } from "$lib";
import type { FooterBrandProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { children, aClass, spanClass, imgClass, href, src, alt, name, ...restProps }: FooterBrandProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/footer/FooterCopyright.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { footerCopyright } from ".";
import clsx from "clsx";
import { type FooterCopyrightProps } from "$lib";
import type { FooterCopyrightProps } from "$lib";
import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";

let { spanClass, aClass, href, by, copyrightMessage = "All Rights Reserved.", year, bySpanClass, classes, class: className, ...restProps }: FooterCopyrightProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/footer/FooterIcon.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { footerIcon } from ".";
import clsx from "clsx";
import { type FooterIconProps } from "$lib";
import type { FooterIconProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { children, href, ariaLabel, class: className, ...restProps }: FooterIconProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/footer/FooterLink.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { footerLink } from ".";
import clsx from "clsx";
import { type FooterLinkProps } from "$lib";
import type { FooterLinkProps } from "$lib";
import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";

let { children, liClass, aClass, href, classes, class: className, ...restProps }: FooterLinkProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/footer/FooterLinkGroup.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { footerLinkGroup } from ".";
import clsx from "clsx";
import { type FooterLinkGroupProps } from "$lib";
import type { FooterLinkGroupProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { class: className, children, ...restProps }: FooterLinkGroupProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/forms/button-toggle/ButtonToggle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { buttonToggle } from ".";
import type { ButtonToggleVariants } from "./theme";
import clsx from "clsx";
import { type ButtonToggleProps, type ButtonToggleContext } from "$lib";
import type { ButtonToggleProps, ButtonToggleContext } from "$lib";
import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";

let { value, selected = false, children, iconSlot, color, class: className, iconClass, txtClass, contentClass, classes, ...restProps }: ButtonToggleProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/forms/button-toggle/CheckIcon.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type CheckIconProps } from "$lib";
import type { CheckIconProps } from "$lib";
import clsx from "clsx";
let { class: className, ...restProps }: CheckIconProps = $props();
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/forms/checkbox/CheckboxButton.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type CheckboxButtonProps } from "$lib";
import type { CheckboxButtonProps } from "$lib";
import Button from "$lib/buttons/Button.svelte";
import { getTheme } from "$lib/theme/themeUtils";
import clsx from "clsx";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/forms/dropzone/Dropzone.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { DragEventHandler, ChangeEventHandler } from "svelte/elements";
import { dropzone } from ".";
import clsx from "clsx";
import { type DropzoneProps } from "$lib";
import type { DropzoneProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

type HTMLInputElementWithFiles = HTMLInputElement & { files: FileList | null };
Expand Down
2 changes: 1 addition & 1 deletion src/lib/forms/helper/Helper.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { helper } from ".";
import { type HelperProps } from "$lib";
import type { HelperProps } from "$lib";
import clsx from "clsx";
import { getTheme } from "$lib/theme/themeUtils";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/forms/label/Label.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { label } from ".";
import clsx from "clsx";
import { type LabelProps } from "$lib";
import type { LabelProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { children, color = "gray", show = true, class: className, ...restProps }: LabelProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/forms/phoneinput/PhoneInput.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type PhoneInputProps } from "$lib";
import type { PhoneInputProps } from "$lib";
import { phoneInput } from ".";
import clsx from "clsx";
import { getTheme } from "$lib/theme/themeUtils";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/forms/radio/Radio.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { getContext } from "svelte";
import { radio } from ".";
import clsx from "clsx";
import { type RadioProps, Label } from "$lib";
import type { RadioProps, Label } from "$lib";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Restore value import for Label component.

Label is rendered in the template (Line 19), so making it a type-only import removes the runtime value and triggers a reference error at build/runtime. Reintroduce a value import for Label.

-import type { RadioProps, Label } from "$lib";
+import { Label, type RadioProps } from "$lib";
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import type { RadioProps, Label } from "$lib";
import { Label, type RadioProps } from "$lib";
🤖 Prompt for AI Agents
In src/lib/forms/radio/Radio.svelte around line 5, the current import makes
Label a type-only import which removes the runtime value and causes a reference
error when Label is rendered; change the import so Label is imported as a
runtime value (e.g., keep RadioProps as a type import but import Label as a
value) and ensure Label is exported from "$lib" so the component can render
without build/runtime errors.

import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";
// remove inputClass in next major version
Expand Down
2 changes: 1 addition & 1 deletion src/lib/forms/range/Range.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { range } from "./";
import clsx from "clsx";
import { type RangeProps } from "$lib";
import type { RangeProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { value = $bindable(), appearance = "none", color = "blue", size = "md", inputClass, class: className, ...restProps }: RangeProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/forms/toggle/Toggle.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { toggle } from "./index";
import clsx from "clsx";
import { type ToggleProps, Label } from "$lib";
import type { ToggleProps, Label } from "$lib";
import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";

let { children, size = "default", value, checked = $bindable(), disabled, color = "primary", class: className, classes, inputClass, spanClass, offLabel, ...restProps }: ToggleProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/gallery/Gallery.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { gallery } from ".";
import clsx from "clsx";
import { type GalleryProps, type ImgType } from "$lib";
import type { GalleryProps, ImgType } from "$lib";
import { getTheme, warnThemeDeprecation } from "$lib/theme/themeUtils";

let { children, figure, items = [], imgClass, class: className, classes, ...restProps }: GalleryProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/indicator/Indicator.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { indicator } from "./index";
import clsx from "clsx";
import { type IndicatorProps } from "$lib";
import type { IndicatorProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { children, color = "primary", cornerStyle = "circular", size = "md", border = false, placement, offset = true, class: className, ...restProps }: IndicatorProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/kbd/Kbd.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { kbd } from ".";
import clsx from "clsx";
import { type KbdProps } from "$lib";
import type { KbdProps } from "$lib";
import { getTheme } from "$lib/theme/themeUtils";

let { children, class: className, ...restProps }: KbdProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/list-group/Listgroup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { setContext } from "svelte";
import { listGroup } from ".";
import clsx from "clsx";
import { type ListgroupProps, ListgroupItem } from "$lib";
import type { ListgroupProps, ListgroupItem } from "$lib";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Restore runtime import for ListgroupItem.

Converting ListgroupItem to a type-only import removes the component from the runtime bundle. Because the template instantiates <ListgroupItem> (e.g., Line 35 onward), Svelte needs a value import; otherwise the compiler will emit ListgroupItem is not defined and render fails. Please keep ListgroupItem as a runtime import while leaving ListgroupProps type-only:

-import type { ListgroupProps, ListgroupItem } from "$lib";
+import { ListgroupItem, type ListgroupProps } from "$lib";
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import type { ListgroupProps, ListgroupItem } from "$lib";
import { ListgroupItem, type ListgroupProps } from "$lib";
🤖 Prompt for AI Agents
In src/lib/list-group/Listgroup.svelte around line 5, the import converted
ListgroupItem to a type-only import which removes the component from the runtime
bundle and causes "ListgroupItem is not defined" at render; restore
ListgroupItem as a runtime value import while keeping ListgroupProps as
type-only (either by splitting into two imports or using a mixed import that
only marks ListgroupProps with "type"), so the Svelte template can reference
<ListgroupItem> at runtime.

import { getTheme } from "$lib/theme/themeUtils";
let { children, items, active, onclick, horizontal, rounded, border, class: className, itemClass, iconClass, ...restProps }: ListgroupProps = $props();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/list-group/ListgroupItem.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { getContext } from "svelte";
import clsx from "clsx";
import { type ListgroupItemProps } from "$lib";
import type { ListgroupItemProps } from "$lib";
import { listGroupItem, type ListgroupItemVariants } from "./theme";
import { getTheme } from "$lib/theme/themeUtils";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/sidebar/SidebarItem.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { getContext } from "svelte";
import clsx from "clsx";
import { type SidebarCtxType, type SidebarItemProps } from "$lib";
import type { SidebarCtxType, SidebarItemProps } from "$lib";

let { icon, subtext, href, label, spanClass = "ms-3", activeClass, nonActiveClass, aClass, active, class: className, ...restProps }: SidebarItemProps = $props();

Expand Down
Loading
Loading