flowbite-svelte 2.0.0-next.0 → 2.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/theme.js +1 -1
- package/dist/command-palette/CommandPalette.svelte +1 -1
- package/dist/command-palette/CommandPalette.svelte.d.ts +1 -1
- package/dist/context.d.ts +3 -1
- package/dist/context.js +3 -0
- package/dist/datepicker/Datepicker.svelte +6 -2
- package/dist/datepicker/theme.js +5 -5
- package/dist/footer/theme.js +1 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte +6 -3
- package/dist/forms/input-addon/InputAddon.svelte +1 -1
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +14 -33
- package/dist/forms/label/Label.svelte +1 -1
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/radio/Radio.svelte +4 -15
- package/dist/forms/range/Range.svelte +1 -1
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/search/Search.svelte +8 -21
- package/dist/forms/search/Search.svelte.d.ts +1 -4
- package/dist/forms/select/MultiSelect.svelte +4 -11
- package/dist/forms/select/Select.svelte +4 -14
- package/dist/forms/tags/Tags.svelte +13 -32
- package/dist/forms/tags/Tags.svelte.d.ts +2 -4
- package/dist/forms/textarea/Textarea.svelte +12 -46
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -9
- package/dist/forms/timepicker/Timepicker.svelte +4 -4
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/toggle/Toggle.svelte +6 -15
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -3
- package/dist/gallery/Gallery.svelte +5 -13
- package/dist/gallery/Gallery.svelte.d.ts +1 -2
- package/dist/gallery/theme.js +1 -1
- package/dist/indicator/Indicator.svelte +1 -1
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/kanban/KanbanCard.svelte +1 -1
- package/dist/kanban/KanbanCard.svelte.d.ts +1 -1
- package/dist/kbd/Kbd.svelte +1 -1
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/list-group/Listgroup.svelte +20 -8
- package/dist/list-group/Listgroup.svelte.d.ts +2 -3
- package/dist/list-group/ListgroupItem.svelte +14 -10
- package/dist/list-group/ListgroupItem.svelte.d.ts +4 -2
- package/dist/list-group/theme.d.ts +87 -29
- package/dist/list-group/theme.js +17 -18
- package/dist/mega-menu/MegaMenu.svelte +7 -16
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -3
- package/dist/modal/Modal.svelte +7 -22
- package/dist/modal/Modal.svelte.d.ts +1 -5
- package/dist/modal/theme.d.ts +1 -0
- package/dist/modal/theme.js +2 -1
- package/dist/navbar/Menu.svelte +3 -4
- package/dist/navbar/Menu.svelte.d.ts +1 -2
- package/dist/navbar/NavBrand.svelte +1 -1
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +1 -1
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +10 -16
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -3
- package/dist/navbar/NavLi.svelte +8 -4
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +14 -31
- package/dist/navbar/NavUl.svelte.d.ts +1 -4
- package/dist/navbar/Navbar.svelte +9 -5
- package/dist/navbar/Navbar.svelte.d.ts +2 -2
- package/dist/navbar/index.d.ts +1 -0
- package/dist/navbar/index.js +1 -0
- package/dist/navbar/theme.d.ts +32 -1
- package/dist/navbar/theme.js +4 -1
- package/dist/pagination/Pagination.svelte +1 -1
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +1 -1
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +1 -1
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +10 -25
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -5
- package/dist/popover/Popover.svelte +6 -15
- package/dist/popover/Popover.svelte.d.ts +1 -2
- package/dist/progress/Progressbar.svelte +1 -1
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +1 -1
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/rating/AdvancedRating.svelte +8 -27
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -6
- package/dist/rating/CustomIcon.svelte +4 -4
- package/dist/rating/CustomIcon.svelte.d.ts +2 -2
- package/dist/rating/Heart.svelte +4 -4
- package/dist/rating/Heart.svelte.d.ts +2 -2
- package/dist/rating/Rating.svelte +5 -13
- package/dist/rating/Rating.svelte.d.ts +1 -2
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +13 -37
- package/dist/rating/Review.svelte.d.ts +1 -8
- package/dist/rating/ScoreRating.svelte +9 -8
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +4 -4
- package/dist/rating/Star.svelte.d.ts +2 -2
- package/dist/rating/Thumbup.svelte +4 -4
- package/dist/rating/Thumbup.svelte.d.ts +2 -2
- package/dist/scroll-spy/ScrollSpy.svelte +1 -1
- package/dist/scroll-spy/ScrollSpy.svelte.d.ts +1 -1
- package/dist/sidebar/Sidebar.svelte +9 -31
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -5
- package/dist/sidebar/SidebarBrand.svelte +6 -20
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -3
- package/dist/sidebar/SidebarButton.svelte +3 -2
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +6 -20
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -3
- package/dist/sidebar/SidebarDropdownWrapper.svelte +9 -44
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -5
- package/dist/sidebar/SidebarGroup.svelte +3 -4
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -2
- package/dist/sidebar/SidebarItem.svelte +12 -10
- package/dist/sidebar/SidebarItem.svelte.d.ts +2 -5
- package/dist/sidebar/index.d.ts +1 -1
- package/dist/sidebar/index.js +1 -1
- package/dist/sidebar/theme.d.ts +41 -0
- package/dist/sidebar/theme.js +23 -3
- package/dist/skeleton/CardPlaceholder.svelte +1 -1
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +1 -1
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +1 -1
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +1 -1
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDial.svelte +7 -19
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -2
- package/dist/speed-dial/SpeedDialButton.svelte +12 -24
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +3 -4
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/spinner/Spinner.svelte +1 -1
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/split-pane/Divider.svelte +1 -1
- package/dist/split-pane/Divider.svelte.d.ts +1 -1
- package/dist/split-pane/Pane.svelte +1 -1
- package/dist/split-pane/Pane.svelte.d.ts +1 -1
- package/dist/split-pane/SplitPane.svelte +1 -1
- package/dist/split-pane/SplitPane.svelte.d.ts +1 -1
- package/dist/step-indicator/StepIndicator.svelte +1 -1
- package/dist/step-indicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +1 -1
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +1 -1
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +1 -1
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +1 -1
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +1 -1
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/table/Table.svelte +6 -17
- package/dist/table/Table.svelte.d.ts +1 -2
- package/dist/table/TableBody.svelte +1 -1
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +1 -1
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +1 -1
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +1 -1
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +1 -1
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +10 -41
- package/dist/table/TableSearch.svelte.d.ts +1 -8
- package/dist/tabs/TabItem.svelte +1 -1
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +8 -15
- package/dist/tabs/Tabs.svelte.d.ts +1 -3
- package/dist/theme/themeUtils.d.ts +0 -10
- package/dist/theme/themeUtils.js +0 -67
- package/dist/theme/themes.d.ts +1 -1
- package/dist/theme/themes.js +1 -1
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +12 -46
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -9
- package/dist/timeline/Group.svelte +7 -24
- package/dist/timeline/Group.svelte.d.ts +1 -4
- package/dist/timeline/GroupItem.svelte +11 -36
- package/dist/timeline/GroupItem.svelte.d.ts +1 -6
- package/dist/timeline/Timeline.svelte +1 -1
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +13 -60
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -8
- package/dist/toast/Toast.svelte +6 -25
- package/dist/toast/Toast.svelte.d.ts +1 -3
- package/dist/toast/ToastContainer.svelte +1 -1
- package/dist/toast/ToastContainer.svelte.d.ts +1 -1
- package/dist/toolbar/Toolbar.svelte +1 -1
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +5 -4
- package/dist/toolbar/ToolbarButton.svelte.d.ts +2 -1
- package/dist/toolbar/ToolbarGroup.svelte +1 -1
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/theme.js +1 -1
- package/dist/tooltip/Tooltip.svelte +1 -1
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/types.d.ts +9 -144
- package/dist/typography/a/A.svelte +1 -1
- package/dist/typography/a/A.svelte.d.ts +1 -1
- package/dist/typography/blockquote/Blockquote.svelte +1 -1
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/heading/Heading.svelte +1 -1
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/hr/Hr.svelte +11 -29
- package/dist/typography/hr/Hr.svelte.d.ts +2 -3
- package/dist/typography/img/Img.svelte +6 -21
- package/dist/typography/img/Img.svelte.d.ts +1 -3
- package/dist/typography/layout/Layout.svelte +1 -1
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/list/Li.svelte +1 -1
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +1 -1
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/mark/Mark.svelte +1 -1
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/paragraph/P.svelte +1 -1
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/secondary/Secondary.svelte +1 -1
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/span/Span.svelte +1 -1
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +33 -4
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/video/Video.svelte +1 -1
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +9 -7
package/dist/types.d.ts
CHANGED
|
@@ -21,10 +21,10 @@ import type { IndicatorVariants } from "./indicator/theme";
|
|
|
21
21
|
import type { ListgroupItemVariants, ListgroupVariants } from "./list-group/theme";
|
|
22
22
|
import type { MegaMenuVariants } from "./mega-menu/theme";
|
|
23
23
|
import type { ModalVariants } from "./modal/theme";
|
|
24
|
-
import type { NavbarUlVariants, NavbarHamburgerVariants } from "./navbar/theme";
|
|
24
|
+
import type { NavbarVariants, NavbarUlVariants, NavbarHamburgerVariants } from "./navbar/theme";
|
|
25
25
|
import type { PaginationNavVariants } from "./pagination/theme";
|
|
26
26
|
import type { PopoverVariants } from "./popover/theme";
|
|
27
|
-
import type { SidebarVariants, SidebarCtaVariants, SidebarBrandVariants, SidebarDropdownWrapperVariants, SidebarButtonVariants } from "./sidebar/theme";
|
|
27
|
+
import type { SidebarVariants, SidebarCtaVariants, SidebarBrandVariants, SidebarDropdownWrapperVariants, SidebarButtonVariants, SidebarItemVariants } from "./sidebar/theme";
|
|
28
28
|
import type { CardPlaceholderVariants, ImagePlaceholderVariants, ListPlaceholderVariants, SkeletonVariants, TestimonialPlaceholderVariants, TextPlaceholderVariants, VideoPlaceholderVariants, WidgetPlaceholderVariants } from "./skeleton/theme";
|
|
29
29
|
import type { SpeedDialVariants, SpeedDialButtonVariants } from "./speed-dial/theme";
|
|
30
30
|
import type { SpinnerVariants } from "./spinner/theme";
|
|
@@ -646,32 +646,16 @@ export interface InputProps<T extends InputValue = string> extends InputVariants
|
|
|
646
646
|
value?: T;
|
|
647
647
|
elementRef?: HTMLInputElement;
|
|
648
648
|
color?: InputVariants["color"];
|
|
649
|
-
leftClass?: ClassValue;
|
|
650
|
-
rightClass?: ClassValue;
|
|
651
|
-
divClass?: ClassValue;
|
|
652
|
-
wrapperClass?: ClassValue;
|
|
653
649
|
clearable?: boolean;
|
|
654
|
-
clearableSvgClass?: ClassValue;
|
|
655
650
|
clearableColor?: CloseButtonVariants["color"];
|
|
656
|
-
clearableClass?: ClassValue;
|
|
657
651
|
clearableOnClick?: () => void;
|
|
658
652
|
data?: string[];
|
|
659
653
|
maxSuggestions?: number;
|
|
660
654
|
onSelect?: (item: string) => void;
|
|
661
|
-
comboClass?: ClassValue;
|
|
662
|
-
comboItemClass?: ClassValue;
|
|
663
655
|
oninput?: (event: Event) => void;
|
|
664
656
|
onfocus?: (event: FocusEvent) => void;
|
|
665
657
|
onblur?: (event: FocusEvent) => void;
|
|
666
658
|
onkeydown?: (event: KeyboardEvent) => void;
|
|
667
|
-
/** @deprecated Use `oninput` instead. Will be removed in next minor version. */
|
|
668
|
-
onInput?: (event: Event) => void;
|
|
669
|
-
/** @deprecated Use `onfocus` instead. Will be removed in next minor version. */
|
|
670
|
-
onFocus?: (event: FocusEvent) => void;
|
|
671
|
-
/** @deprecated Use `onblur` instead. Will be removed in next minor version. */
|
|
672
|
-
onBlur?: (event: FocusEvent) => void;
|
|
673
|
-
/** @deprecated Use `onkeydown` instead. Will be removed in next minor version. */
|
|
674
|
-
onKeydown?: (event: KeyboardEvent) => void;
|
|
675
659
|
}
|
|
676
660
|
export interface InputAddonProps extends HTMLAttributes<HTMLDivElement> {
|
|
677
661
|
children: Snippet;
|
|
@@ -692,8 +676,6 @@ export interface LabelProps extends HTMLLabelAttributes {
|
|
|
692
676
|
export interface RadioProps<T> extends RadioVariants, Omit<HTMLInputAttributes, "color"> {
|
|
693
677
|
group?: T;
|
|
694
678
|
value?: T;
|
|
695
|
-
inputClass?: ClassValue;
|
|
696
|
-
labelClass?: ClassValue;
|
|
697
679
|
}
|
|
698
680
|
export interface RadioButtonProps<T> extends Omit<HTMLInputAttributes, "size"> {
|
|
699
681
|
group?: T;
|
|
@@ -715,11 +697,8 @@ export interface SearchProps extends SearchVariants, Omit<HTMLInputAttributes, "
|
|
|
715
697
|
value?: string;
|
|
716
698
|
elementRef?: HTMLInputElement;
|
|
717
699
|
clearable?: boolean;
|
|
718
|
-
clearableSvgClass?: ClassValue;
|
|
719
700
|
clearableColor?: CloseButtonVariants["color"];
|
|
720
|
-
clearableClass?: ClassValue;
|
|
721
701
|
clearableOnClick?: () => void;
|
|
722
|
-
inputClass?: ClassValue;
|
|
723
702
|
}
|
|
724
703
|
export type SelectOptionType<T> = {
|
|
725
704
|
name: string | number;
|
|
@@ -732,11 +711,8 @@ export interface SelectProps<T> extends SelectVariants, Omit<HTMLSelectAttribute
|
|
|
732
711
|
items?: SelectOptionType<T>[];
|
|
733
712
|
elementRef?: HTMLSelectElement;
|
|
734
713
|
placeholder?: string;
|
|
735
|
-
selectClass?: ClassValue;
|
|
736
714
|
clearable?: boolean;
|
|
737
|
-
clearableSvgClass?: ClassValue;
|
|
738
715
|
clearableColor?: CloseButtonVariants["color"];
|
|
739
|
-
clearableClass?: ClassValue;
|
|
740
716
|
clearableOnClick?: () => void;
|
|
741
717
|
onClear?: () => void;
|
|
742
718
|
disabled?: boolean;
|
|
@@ -748,7 +724,6 @@ export interface MultiSelectProps<T> extends MultiSelectVariants, Omit<HTMLAttri
|
|
|
748
724
|
}]>;
|
|
749
725
|
items: SelectOptionType<T>[];
|
|
750
726
|
value: T[];
|
|
751
|
-
dropdownClass?: ClassValue;
|
|
752
727
|
placeholder?: string;
|
|
753
728
|
disabled?: boolean | undefined;
|
|
754
729
|
size?: "sm" | "md" | "lg";
|
|
@@ -761,11 +736,7 @@ export interface MultiSelectProps<T> extends MultiSelectVariants, Omit<HTMLAttri
|
|
|
761
736
|
}
|
|
762
737
|
export interface TagsProps extends TagsVariants, HTMLAttributes<HTMLDivElement> {
|
|
763
738
|
value: string[];
|
|
764
|
-
itemClass?: ClassValue;
|
|
765
739
|
placeholder?: string;
|
|
766
|
-
spanClass?: ClassValue;
|
|
767
|
-
closeClass?: ClassValue;
|
|
768
|
-
inputClass?: ClassValue;
|
|
769
740
|
closeBtnSize?: CloseButtonVariants["size"];
|
|
770
741
|
unique?: boolean;
|
|
771
742
|
availableTags?: string[];
|
|
@@ -819,25 +790,15 @@ export interface TextareaProps extends TextareaVariants, HTMLTextareaAttributes
|
|
|
819
790
|
value?: string;
|
|
820
791
|
elementRef?: HTMLTextAreaElement;
|
|
821
792
|
wrapped?: boolean;
|
|
822
|
-
divClass?: ClassValue;
|
|
823
|
-
innerClass?: ClassValue;
|
|
824
|
-
headerClass?: ClassValue;
|
|
825
|
-
footerClass?: ClassValue;
|
|
826
|
-
addonClass?: ClassValue;
|
|
827
793
|
clearable?: boolean;
|
|
828
|
-
clearableSvgClass?: ClassValue;
|
|
829
794
|
clearableColor?: CloseButtonVariants["color"];
|
|
830
|
-
clearableClass?: ClassValue;
|
|
831
795
|
clearableOnClick?: () => void;
|
|
832
|
-
textareaClass?: ClassValue;
|
|
833
796
|
}
|
|
834
797
|
export interface ToggleProps extends Omit<ToggleVariants, "off_state_label">, Omit<HTMLInputAttributes, "size" | "color"> {
|
|
835
798
|
offLabel?: Snippet;
|
|
836
799
|
value?: string | number;
|
|
837
800
|
checked?: boolean;
|
|
838
801
|
disabled?: boolean;
|
|
839
|
-
spanClass?: ClassValue;
|
|
840
|
-
inputClass?: ClassValue;
|
|
841
802
|
}
|
|
842
803
|
export type ImgType = {
|
|
843
804
|
src?: string;
|
|
@@ -847,7 +808,6 @@ export interface GalleryProps extends GalleryVariants, HTMLAttributes<HTMLDivEle
|
|
|
847
808
|
children?: Snippet;
|
|
848
809
|
figure?: Snippet<[item: ImgType]>;
|
|
849
810
|
items?: HTMLImgAttributes[];
|
|
850
|
-
imgClass?: ClassValue;
|
|
851
811
|
height?: string;
|
|
852
812
|
rowHeight?: number;
|
|
853
813
|
columns?: number;
|
|
@@ -885,16 +845,12 @@ export interface ListgroupProps extends ListgroupVariants, Omit<HTMLAttributes<H
|
|
|
885
845
|
items?: (ListGroupItemType | string)[];
|
|
886
846
|
active?: boolean;
|
|
887
847
|
onclick?: (event?: MouseEvent) => void;
|
|
888
|
-
itemClass?: ClassValue;
|
|
889
|
-
aClasss?: ClassValue;
|
|
890
|
-
btnClass?: ClassValue;
|
|
891
|
-
iconClass?: ClassValue;
|
|
892
848
|
}
|
|
893
|
-
|
|
849
|
+
type ElementProps = HTMLAnchorAttributes & HTMLButtonAttributes & HTMLLiAttributes;
|
|
850
|
+
export type ListgroupItemProps = Omit<ListgroupItemVariants, "state"> & ElementProps & {
|
|
894
851
|
current?: boolean;
|
|
895
852
|
disabled?: boolean;
|
|
896
853
|
Icon?: Component;
|
|
897
|
-
iconClass?: ClassValue;
|
|
898
854
|
name?: string;
|
|
899
855
|
children?: Snippet;
|
|
900
856
|
};
|
|
@@ -906,40 +862,32 @@ export interface MegaMenuProps extends MegaMenuVariants, Omit<PopperProps, "chil
|
|
|
906
862
|
extra?: Snippet;
|
|
907
863
|
items?: LinkType[];
|
|
908
864
|
full?: boolean;
|
|
909
|
-
ulClass?: ClassValue;
|
|
910
|
-
extraClass?: ClassValue;
|
|
911
865
|
isOpen?: boolean;
|
|
912
866
|
}
|
|
913
867
|
export interface ModalProps extends ModalVariants, Omit<DialogProps, "classes"> {
|
|
914
868
|
header?: Snippet;
|
|
915
869
|
footer?: Snippet;
|
|
916
|
-
headerClass?: ClassValue;
|
|
917
|
-
bodyClass?: ClassValue;
|
|
918
|
-
footerClass?: ClassValue;
|
|
919
|
-
closeBtnClass?: ClassValue;
|
|
920
870
|
fullscreen?: boolean;
|
|
921
871
|
}
|
|
922
872
|
export interface MenuProps extends SVGAttributes<SVGSVGElement> {
|
|
923
873
|
size?: string;
|
|
924
874
|
color?: string;
|
|
925
875
|
variation?: "solid" | "outline";
|
|
926
|
-
ariaLabel?: string;
|
|
927
876
|
}
|
|
928
877
|
export type NavbarState = {
|
|
929
878
|
hidden: boolean;
|
|
930
|
-
activeClass?:
|
|
931
|
-
nonActiveClass?:
|
|
879
|
+
activeClass?: ClassValue;
|
|
880
|
+
nonActiveClass?: ClassValue;
|
|
932
881
|
activeUrl?: string;
|
|
933
882
|
};
|
|
934
883
|
export type NavbarBreakpoint = "sm" | "md" | "lg" | "xl";
|
|
935
|
-
export interface NavbarProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
884
|
+
export interface NavbarProps extends NavbarVariants, Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
936
885
|
children: Snippet<[{
|
|
937
886
|
hidden: boolean;
|
|
938
887
|
toggle: () => void;
|
|
939
888
|
NavContainer: Component;
|
|
940
889
|
}]>;
|
|
941
890
|
fluid?: boolean;
|
|
942
|
-
navContainerClass?: ClassValue;
|
|
943
891
|
closeOnClickOutside?: boolean;
|
|
944
892
|
breakpoint?: NavbarBreakpoint;
|
|
945
893
|
}
|
|
@@ -949,17 +897,13 @@ export interface NavContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
949
897
|
}
|
|
950
898
|
export type NavHamburgerProps = ToolbarButtonProps & NavbarHamburgerVariants & {
|
|
951
899
|
href?: undefined;
|
|
952
|
-
menuClass?: ClassValue;
|
|
953
900
|
};
|
|
954
901
|
export interface NavUlProps extends NavbarUlVariants, Omit<HTMLAttributes<HTMLDivElement>, "class"> {
|
|
955
902
|
activeUrl?: string;
|
|
956
|
-
ulClass?: ClassValue;
|
|
957
903
|
hidden?: boolean;
|
|
958
904
|
slideParams?: SlideParams;
|
|
959
905
|
transition?: typeof slide | typeof fly | typeof fade | typeof scale;
|
|
960
906
|
transitionParams?: SlideParams | FlyParams | FadeParams | ScaleParams;
|
|
961
|
-
activeClass?: ClassValue;
|
|
962
|
-
nonActiveClass?: ClassValue;
|
|
963
907
|
respectMotionPreference?: boolean;
|
|
964
908
|
class?: ClassValue;
|
|
965
909
|
}
|
|
@@ -998,8 +942,6 @@ export interface PaginationButtonProps extends PaginationItemVariants, Paginatio
|
|
|
998
942
|
export interface PaginationNavProps extends PaginationNavVariants, HTMLAttributes<HTMLElement>, PaginationVariants {
|
|
999
943
|
prevContent?: Snippet;
|
|
1000
944
|
nextContent?: Snippet;
|
|
1001
|
-
prevClass?: ClassValue;
|
|
1002
|
-
nextClass?: ClassValue;
|
|
1003
945
|
currentPage: number;
|
|
1004
946
|
totalPages: number;
|
|
1005
947
|
visiblePages?: number;
|
|
@@ -1010,8 +952,6 @@ export interface PaginationNavProps extends PaginationNavVariants, HTMLAttribute
|
|
|
1010
952
|
showIcons?: boolean;
|
|
1011
953
|
ariaLabel?: string;
|
|
1012
954
|
size?: "default" | "large";
|
|
1013
|
-
spanClass?: ClassValue;
|
|
1014
|
-
tableDivClass?: ClassValue;
|
|
1015
955
|
classes?: {
|
|
1016
956
|
prev?: ClassValue;
|
|
1017
957
|
next?: ClassValue;
|
|
@@ -1035,7 +975,6 @@ export interface PopoverProps extends PopoverVariants, Omit<PopperProps, "title"
|
|
|
1035
975
|
title?: Snippet | string;
|
|
1036
976
|
color?: PopoverVariants["color"];
|
|
1037
977
|
params?: ParamsType;
|
|
1038
|
-
defaultClass?: ClassValue;
|
|
1039
978
|
transition?: TransitionFunc;
|
|
1040
979
|
isOpen?: boolean;
|
|
1041
980
|
}
|
|
@@ -1070,11 +1009,6 @@ export interface AdvancedRatingProps extends AdvancedRatingVariants, HTMLAttribu
|
|
|
1070
1009
|
rating?: Snippet;
|
|
1071
1010
|
globalText?: Snippet;
|
|
1072
1011
|
ratings: RatingItem[];
|
|
1073
|
-
divClass?: ClassValue;
|
|
1074
|
-
spanClass?: ClassValue;
|
|
1075
|
-
div2Class?: ClassValue;
|
|
1076
|
-
div3Class?: ClassValue;
|
|
1077
|
-
span2Class?: ClassValue;
|
|
1078
1012
|
unit?: string;
|
|
1079
1013
|
}
|
|
1080
1014
|
export interface RatingProps extends RatingVariants, HTMLAttributes<HTMLDivElement> {
|
|
@@ -1085,7 +1019,6 @@ export interface RatingProps extends RatingVariants, HTMLAttributes<HTMLDivEleme
|
|
|
1085
1019
|
rating?: number;
|
|
1086
1020
|
icon?: Component;
|
|
1087
1021
|
count?: boolean;
|
|
1088
|
-
pClass?: ClassValue;
|
|
1089
1022
|
}
|
|
1090
1023
|
export interface RatingCommentProps {
|
|
1091
1024
|
children: Snippet;
|
|
@@ -1128,13 +1061,6 @@ export interface ReviewProps extends ReviewVariants, HTMLAttributes<HTMLElement>
|
|
|
1128
1061
|
item2?: Snippet;
|
|
1129
1062
|
item3?: Snippet;
|
|
1130
1063
|
review?: ReviewType;
|
|
1131
|
-
articleClass?: ClassValue;
|
|
1132
|
-
divClass?: ClassValue;
|
|
1133
|
-
div2Class?: ClassValue;
|
|
1134
|
-
div3Class?: ClassValue;
|
|
1135
|
-
imgClass?: ClassValue;
|
|
1136
|
-
ulClass?: ClassValue;
|
|
1137
|
-
liClass?: ClassValue;
|
|
1138
1064
|
}
|
|
1139
1065
|
export interface ScoreRatingProps extends ScoreRatingVariants {
|
|
1140
1066
|
ratings?: {
|
|
@@ -1162,10 +1088,10 @@ export interface RatingIconProps extends SVGAttributes<SVGSVGElement> {
|
|
|
1162
1088
|
size?: number;
|
|
1163
1089
|
ariaLabel?: string;
|
|
1164
1090
|
role?: string;
|
|
1165
|
-
svgClass?: ClassValue;
|
|
1166
1091
|
iconIndex?: number;
|
|
1167
1092
|
groupId?: string;
|
|
1168
1093
|
pathd?: string;
|
|
1094
|
+
class?: ClassValue;
|
|
1169
1095
|
}
|
|
1170
1096
|
export type SidebarContextType = {
|
|
1171
1097
|
closeSidebar?: () => void;
|
|
@@ -1182,25 +1108,18 @@ export interface SidebarProps extends SidebarVariants, HTMLAttributes<HTMLElemen
|
|
|
1182
1108
|
activateClickOutside?: boolean;
|
|
1183
1109
|
isSingle?: boolean;
|
|
1184
1110
|
ariaLabel?: string;
|
|
1185
|
-
divClass?: ClassValue;
|
|
1186
|
-
nonActiveClass?: ClassValue;
|
|
1187
|
-
activeClass?: ClassValue;
|
|
1188
1111
|
params?: ParamsType;
|
|
1189
1112
|
transition?: TransitionFunc;
|
|
1190
1113
|
backdrop?: boolean;
|
|
1191
|
-
backdropClass?: ClassValue;
|
|
1192
1114
|
activeUrl?: string;
|
|
1193
1115
|
alwaysOpen?: boolean;
|
|
1194
1116
|
disableBreakpoints?: boolean;
|
|
1195
1117
|
}
|
|
1196
1118
|
export interface SidebarButtonProps extends SidebarButtonVariants, HTMLButtonAttributes {
|
|
1197
1119
|
breakpoint?: SidebarVariants["breakpoint"];
|
|
1198
|
-
svgClass?: ClassValue;
|
|
1199
1120
|
}
|
|
1200
1121
|
export interface SidebarCtaProps extends SidebarCtaVariants, HTMLAttributes<HTMLDivElement> {
|
|
1201
1122
|
icon?: Snippet;
|
|
1202
|
-
divClass?: ClassValue;
|
|
1203
|
-
spanClass?: ClassValue;
|
|
1204
1123
|
label: string;
|
|
1205
1124
|
}
|
|
1206
1125
|
export interface SiteType {
|
|
@@ -1210,8 +1129,6 @@ export interface SiteType {
|
|
|
1210
1129
|
}
|
|
1211
1130
|
export interface SidebarBrandProps extends SidebarBrandVariants, HTMLAnchorAttributes {
|
|
1212
1131
|
site?: SiteType;
|
|
1213
|
-
imgClass?: ClassValue;
|
|
1214
|
-
spanClass?: ClassValue;
|
|
1215
1132
|
}
|
|
1216
1133
|
export type Bindable<T> = {
|
|
1217
1134
|
get(): T;
|
|
@@ -1223,29 +1140,20 @@ export interface SidebarDropdownWrapperProps extends SidebarDropdownWrapperVaria
|
|
|
1223
1140
|
arrowdown?: Snippet;
|
|
1224
1141
|
icon?: Snippet;
|
|
1225
1142
|
isOpen?: boolean;
|
|
1226
|
-
btnClass?: ClassValue;
|
|
1227
1143
|
label?: string;
|
|
1228
|
-
spanClass?: ClassValue;
|
|
1229
|
-
ulClass?: ClassValue;
|
|
1230
1144
|
params?: ParamsType;
|
|
1231
1145
|
transition?: TransitionFunc;
|
|
1232
|
-
svgClass?: ClassValue;
|
|
1233
1146
|
onclick?: () => void;
|
|
1234
1147
|
isSingle?: boolean;
|
|
1235
1148
|
}
|
|
1236
1149
|
export interface SidebarGroupProps extends HTMLAttributes<HTMLUListElement> {
|
|
1237
1150
|
children: Snippet;
|
|
1238
|
-
borderClass?: ClassValue;
|
|
1239
1151
|
border?: boolean;
|
|
1240
1152
|
}
|
|
1241
|
-
export interface SidebarItemProps extends HTMLAnchorAttributes {
|
|
1153
|
+
export interface SidebarItemProps extends SidebarItemVariants, HTMLAnchorAttributes {
|
|
1242
1154
|
icon?: Snippet;
|
|
1243
1155
|
subtext?: Snippet;
|
|
1244
1156
|
label?: string;
|
|
1245
|
-
spanClass?: ClassValue;
|
|
1246
|
-
activeClass?: ClassValue;
|
|
1247
|
-
nonActiveClass?: ClassValue;
|
|
1248
|
-
aClass?: ClassValue;
|
|
1249
1157
|
active?: boolean;
|
|
1250
1158
|
}
|
|
1251
1159
|
export interface CardPlaceholderProps extends CardPlaceholderVariants, HTMLAttributes<HTMLDivElement> {
|
|
@@ -1299,7 +1207,6 @@ export type SpeedDialTriggerProps = RegularSpeedDialTriggerProps | GradientSpeed
|
|
|
1299
1207
|
export type SpeedDialProps = PopperProps & SpeedDialVariants & {
|
|
1300
1208
|
children: Snippet;
|
|
1301
1209
|
button?: Snippet;
|
|
1302
|
-
popperClass?: ClassValue;
|
|
1303
1210
|
placement?: Placement;
|
|
1304
1211
|
tooltip?: Placement | "none";
|
|
1305
1212
|
trigger?: PopperProps["trigger"];
|
|
@@ -1314,7 +1221,6 @@ export type SpeedDialButtonProps = ButtonProps & SpeedDialButtonVariants & {
|
|
|
1314
1221
|
tooltip?: Placement | "none";
|
|
1315
1222
|
pill?: boolean;
|
|
1316
1223
|
textOutside?: boolean;
|
|
1317
|
-
textClass?: ClassValue;
|
|
1318
1224
|
};
|
|
1319
1225
|
export interface SpinnerProps extends SVGAttributes<SVGSVGElement> {
|
|
1320
1226
|
type?: "default" | "dots" | "bars" | "pulse" | "orbit";
|
|
@@ -1473,7 +1379,6 @@ export interface TableProps extends TableVariants, Omit<HTMLTableAttributes, "bo
|
|
|
1473
1379
|
children?: Snippet;
|
|
1474
1380
|
footerSlot?: Snippet;
|
|
1475
1381
|
captionSlot?: Snippet;
|
|
1476
|
-
divClass?: ClassValue;
|
|
1477
1382
|
striped?: boolean;
|
|
1478
1383
|
hoverable?: boolean;
|
|
1479
1384
|
border?: boolean;
|
|
@@ -1519,26 +1424,17 @@ export interface TableSearchProps extends TableSearchVariants, HTMLTableAttribut
|
|
|
1519
1424
|
children?: Snippet;
|
|
1520
1425
|
header?: Snippet;
|
|
1521
1426
|
footer?: Snippet;
|
|
1522
|
-
divClass?: ClassValue;
|
|
1523
1427
|
inputValue?: string;
|
|
1524
1428
|
striped?: boolean;
|
|
1525
1429
|
hoverable?: boolean;
|
|
1526
1430
|
customColor?: string;
|
|
1527
1431
|
color?: TableSearchColor;
|
|
1528
|
-
innerDivClass?: ClassValue;
|
|
1529
|
-
inputClass?: ClassValue;
|
|
1530
|
-
searchClass?: ClassValue;
|
|
1531
|
-
svgDivClass?: ClassValue;
|
|
1532
|
-
svgClass?: ClassValue;
|
|
1533
|
-
tableClass?: ClassValue;
|
|
1534
1432
|
placeholder?: string;
|
|
1535
1433
|
}
|
|
1536
1434
|
export interface TabsProps extends TabsVaraints, HTMLAttributes<HTMLUListElement> {
|
|
1537
1435
|
children: Snippet;
|
|
1538
1436
|
selected?: string;
|
|
1539
1437
|
tabStyle?: TabsVaraints["tabStyle"];
|
|
1540
|
-
ulClass?: ClassValue;
|
|
1541
|
-
contentClass?: ClassValue;
|
|
1542
1438
|
divider?: boolean;
|
|
1543
1439
|
}
|
|
1544
1440
|
export interface TabitemProps extends TabItemVariants, HTMLLiAttributes {
|
|
@@ -1582,29 +1478,13 @@ export interface ActivityProps extends HTMLOlAttributes {
|
|
|
1582
1478
|
}
|
|
1583
1479
|
export interface ActivityItemProps extends ActivityItemVariants, HTMLLiAttributes {
|
|
1584
1480
|
activities: ActivityType[];
|
|
1585
|
-
liClass?: string;
|
|
1586
|
-
spanClass?: string;
|
|
1587
|
-
imgClass?: string;
|
|
1588
|
-
outerDivClass?: string;
|
|
1589
|
-
innerDivClass?: string;
|
|
1590
|
-
timeClass?: string;
|
|
1591
|
-
titleClass?: string;
|
|
1592
|
-
textClass?: string;
|
|
1593
1481
|
}
|
|
1594
1482
|
export interface GroupProps extends GroupVariants, HTMLOlAttributes {
|
|
1595
1483
|
children: Snippet;
|
|
1596
|
-
divClass?: string;
|
|
1597
|
-
timeClass?: string;
|
|
1598
1484
|
date?: Date | string;
|
|
1599
|
-
olClass?: string;
|
|
1600
1485
|
}
|
|
1601
1486
|
export interface GroupItemProps extends GroupItemVariants, HTMLLiAttributes {
|
|
1602
1487
|
timelines: GroupTimelineType[];
|
|
1603
|
-
aClass?: string;
|
|
1604
|
-
imgClass?: string;
|
|
1605
|
-
divClass?: string;
|
|
1606
|
-
titleClass?: string;
|
|
1607
|
-
spanClass?: string;
|
|
1608
1488
|
}
|
|
1609
1489
|
export interface GroupTimelineType {
|
|
1610
1490
|
id?: string | number;
|
|
@@ -1626,16 +1506,9 @@ export interface TimelineItemProps extends TimelineItemVariants, HTMLLiAttribute
|
|
|
1626
1506
|
orientationSlot?: Snippet;
|
|
1627
1507
|
title: string;
|
|
1628
1508
|
date: string;
|
|
1629
|
-
svgClass?: string;
|
|
1630
|
-
liClass?: string;
|
|
1631
|
-
defaultDivClass?: string;
|
|
1632
|
-
divClass?: string;
|
|
1633
|
-
timeClass?: string;
|
|
1634
|
-
h3Class?: string;
|
|
1635
1509
|
dateFormat?: DateFormat;
|
|
1636
1510
|
color?: ColorVariant;
|
|
1637
1511
|
isLast?: boolean;
|
|
1638
|
-
connectorClass?: string;
|
|
1639
1512
|
datePrefix?: string;
|
|
1640
1513
|
}
|
|
1641
1514
|
export interface ToastProps extends ToastVaraints, HTMLAttributes<HTMLDivElement> {
|
|
@@ -1645,8 +1518,6 @@ export interface ToastProps extends ToastVaraints, HTMLAttributes<HTMLDivElement
|
|
|
1645
1518
|
dismissable?: boolean;
|
|
1646
1519
|
color?: ToastVaraints["color"];
|
|
1647
1520
|
position?: ToastVaraints["position"];
|
|
1648
|
-
iconClass?: string;
|
|
1649
|
-
contentClass?: string;
|
|
1650
1521
|
align?: boolean;
|
|
1651
1522
|
params?: ParamsType;
|
|
1652
1523
|
transition?: TransitionFunc;
|
|
@@ -1700,10 +1571,6 @@ export interface HeadingProps extends HTMLAttributes<HTMLElement> {
|
|
|
1700
1571
|
}
|
|
1701
1572
|
export interface HrProps extends HrVariants, HTMLAttributes<HTMLElement> {
|
|
1702
1573
|
children?: Snippet;
|
|
1703
|
-
divClass?: ClassValue;
|
|
1704
|
-
iconDivClass?: ClassValue;
|
|
1705
|
-
textSpanClass?: ClassValue;
|
|
1706
|
-
innerDivClass?: ClassValue;
|
|
1707
1574
|
divProps?: HTMLAttributes<HTMLDivElement>;
|
|
1708
1575
|
hrProps?: HTMLAttributes<HTMLHRElement>;
|
|
1709
1576
|
}
|
|
@@ -1726,8 +1593,6 @@ export interface ImgProps extends ImgVariants, Omit<HTMLImgAttributes, "children
|
|
|
1726
1593
|
size?: ImgVariants["size"];
|
|
1727
1594
|
effect?: ImgVariants["effect"];
|
|
1728
1595
|
caption?: string;
|
|
1729
|
-
figClass?: string;
|
|
1730
|
-
captionClass?: string;
|
|
1731
1596
|
href?: HTMLAnchorElement["href"];
|
|
1732
1597
|
align?: ImgVariants["align"];
|
|
1733
1598
|
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
@component
|
|
44
44
|
[Go to docs](https://flowbite-svelte.com/)
|
|
45
45
|
## Type
|
|
46
|
-
[AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
46
|
+
[AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1817)
|
|
47
47
|
## Props
|
|
48
48
|
@prop children
|
|
49
49
|
@prop color = "primary"
|
|
@@ -2,7 +2,7 @@ import type { AnchorProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1817)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color = "primary"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
@component
|
|
29
29
|
[Go to docs](https://flowbite-svelte.com/)
|
|
30
30
|
## Type
|
|
31
|
-
[BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
31
|
+
[BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1846)
|
|
32
32
|
## Props
|
|
33
33
|
@prop children
|
|
34
34
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { BlockquoteProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1846)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
@component
|
|
25
25
|
[Go to docs](https://flowbite-svelte.com/)
|
|
26
26
|
## Type
|
|
27
|
-
[DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
27
|
+
[DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1856)
|
|
28
28
|
## Props
|
|
29
29
|
@prop children
|
|
30
30
|
@prop tag
|
|
@@ -2,7 +2,7 @@ import type { DescriptionListProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DescriptionListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1856)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop tag
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@component
|
|
20
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
## Type
|
|
22
|
-
[HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1862)
|
|
23
23
|
## Props
|
|
24
24
|
@prop children
|
|
25
25
|
@prop tag = "h1"
|
|
@@ -2,7 +2,7 @@ import type { HeadingProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [HeadingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1862)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop tag = "h1"
|
|
@@ -2,46 +2,29 @@
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { hr } from "./theme";
|
|
4
4
|
import type { HrProps } from "../../types";
|
|
5
|
-
import { getTheme
|
|
6
|
-
import { untrack } from "svelte";
|
|
5
|
+
import { getTheme } from "../../theme/themeUtils";
|
|
7
6
|
|
|
8
|
-
let { children,
|
|
7
|
+
let { children, class: className, classes, divProps = {}, hrProps = {} }: HrProps = $props();
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
"Hr",
|
|
12
|
-
untrack(() => ({ divClass, innerDivClass })),
|
|
13
|
-
{
|
|
14
|
-
divClass: "div",
|
|
15
|
-
innerDivClass: "content"
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
const styling = $derived(
|
|
20
|
-
classes ?? {
|
|
21
|
-
div: divClass,
|
|
22
|
-
content: innerDivClass
|
|
23
|
-
}
|
|
24
|
-
);
|
|
9
|
+
const styling = $derived(classes);
|
|
25
10
|
|
|
26
11
|
const theme = $derived(getTheme("hr"));
|
|
27
|
-
const bg = $derived(classes?.bg ?? "bg-gray-200 dark:bg-gray-700");
|
|
28
12
|
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
const mergedHrProps = $derived({ ...restProps, ...hrProps });
|
|
13
|
+
const mergedDivProps = $derived({ ...divProps });
|
|
14
|
+
const mergedHrProps = $derived({ ...hrProps });
|
|
32
15
|
|
|
33
16
|
let { base, div, content } = $derived(hr({ withChildren: !!children }));
|
|
34
17
|
</script>
|
|
35
18
|
|
|
36
19
|
{#if children}
|
|
37
|
-
<div {...mergedDivProps} class={div({ class: clsx(theme?.div,
|
|
38
|
-
<hr {...mergedHrProps} class={base({ class: clsx(theme?.base,
|
|
39
|
-
<div class={content({ class: clsx(theme?.content, styling
|
|
20
|
+
<div {...mergedDivProps} class={div({ class: clsx(theme?.div, className) })}>
|
|
21
|
+
<hr {...mergedHrProps} class={base({ class: clsx(theme?.base, styling?.bg ?? "bg-gray-200 dark:bg-gray-700") })} />
|
|
22
|
+
<div class={content({ class: clsx(theme?.content, styling?.content) })}>
|
|
40
23
|
{@render children()}
|
|
41
24
|
</div>
|
|
42
25
|
</div>
|
|
43
26
|
{:else}
|
|
44
|
-
<hr {...mergedHrProps} class={base({ class: clsx(theme?.base,
|
|
27
|
+
<hr {...mergedHrProps} class={base({ class: clsx(theme?.base, styling?.bg ?? "bg-gray-200 dark:bg-gray-700") })} />
|
|
45
28
|
{/if}
|
|
46
29
|
|
|
47
30
|
<!--
|
|
@@ -51,9 +34,8 @@
|
|
|
51
34
|
[HrProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1893)
|
|
52
35
|
## Props
|
|
53
36
|
@prop children
|
|
54
|
-
@prop divClass
|
|
55
|
-
@prop innerDivClass
|
|
56
37
|
@prop class: className
|
|
57
38
|
@prop classes
|
|
58
|
-
@prop
|
|
39
|
+
@prop divProps
|
|
40
|
+
@prop hrProps
|
|
59
41
|
-->
|
|
@@ -5,11 +5,10 @@ import type { HrProps } from "../../types";
|
|
|
5
5
|
* [HrProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1893)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
|
-
* @prop divClass
|
|
9
|
-
* @prop innerDivClass
|
|
10
8
|
* @prop class: className
|
|
11
9
|
* @prop classes
|
|
12
|
-
* @prop
|
|
10
|
+
* @prop divProps
|
|
11
|
+
* @prop hrProps
|
|
13
12
|
*/
|
|
14
13
|
declare const Hr: import("svelte").Component<HrProps, {}, "">;
|
|
15
14
|
type Hr = ReturnType<typeof Hr>;
|