flowbite-svelte 1.10.6 → 1.10.8
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/Accordion.svelte +1 -1
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +15 -10
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -0
- package/dist/accordion/theme.d.ts +4 -0
- package/dist/alert/Alert.svelte +1 -1
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/avatar/Avatar.svelte +1 -1
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/avatar/theme.d.ts +2 -0
- package/dist/badge/Badge.svelte +11 -6
- package/dist/badge/Badge.svelte.d.ts +2 -1
- package/dist/badge/theme.d.ts +3 -2
- package/dist/banner/Banner.svelte +9 -5
- package/dist/banner/Banner.svelte.d.ts +2 -1
- package/dist/banner/theme.d.ts +2 -1
- package/dist/bottom-navigation/BottomNav.svelte +16 -11
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +3 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +11 -6
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +3 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +1 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte +25 -27
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +3 -3
- package/dist/bottom-navigation/theme.d.ts +54 -48
- package/dist/bottom-navigation/theme.js +16 -16
- package/dist/breadcrumb/Breadcrumb.svelte +10 -6
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +2 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +8 -5
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +2 -1
- package/dist/breadcrumb/theme.d.ts +10 -6
- package/dist/breadcrumb/theme.js +2 -2
- package/dist/button-group/ButtonGroup.svelte +1 -1
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/button-group/theme.d.ts +2 -0
- package/dist/buttons/Button.svelte +1 -1
- package/dist/buttons/Button.svelte.d.ts +1 -1
- package/dist/buttons/GradientButton.svelte +1 -1
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/card/Card.svelte +8 -5
- package/dist/card/Card.svelte.d.ts +2 -2
- package/dist/card/theme.d.ts +2 -1
- package/dist/carousel/Carousel.svelte +1 -1
- package/dist/carousel/Carousel.svelte.d.ts +1 -1
- package/dist/carousel/CarouselIndicators.svelte +1 -1
- package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
- package/dist/carousel/ControlButton.svelte +1 -1
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +1 -1
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +1 -1
- package/dist/carousel/Slide.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnail.svelte +1 -1
- package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnails.svelte +1 -1
- package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
- package/dist/clipboard/Clipboard.svelte +1 -1
- package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
- package/dist/darkmode/DarkMode.svelte +1 -1
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/datepicker/Datepicker.svelte +101 -38
- package/dist/datepicker/Datepicker.svelte.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +2 -6
- package/dist/device-mockups/Android.svelte +27 -11
- package/dist/device-mockups/Android.svelte.d.ts +3 -1
- package/dist/device-mockups/DefaultMockup.svelte +25 -10
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +3 -1
- package/dist/device-mockups/Desktop.svelte +21 -8
- package/dist/device-mockups/Desktop.svelte.d.ts +5 -3
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +24 -9
- package/dist/device-mockups/Ios.svelte.d.ts +3 -1
- package/dist/device-mockups/Laptop.svelte +22 -8
- package/dist/device-mockups/Laptop.svelte.d.ts +5 -3
- package/dist/device-mockups/Smartwatch.svelte +24 -10
- package/dist/device-mockups/Smartwatch.svelte.d.ts +3 -1
- package/dist/device-mockups/Tablet.svelte +24 -9
- package/dist/device-mockups/Tablet.svelte.d.ts +3 -1
- package/dist/device-mockups/theme.d.ts +51 -42
- package/dist/device-mockups/theme.js +8 -8
- package/dist/drawer/Drawer.svelte +1 -1
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +1 -1
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/dropdown/Dropdown.svelte +1 -1
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +1 -1
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +1 -1
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +1 -1
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +1 -1
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/footer/Footer.svelte +1 -1
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +1 -1
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +1 -1
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +1 -1
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +1 -1
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +1 -1
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/ButtonToggle.svelte +1 -1
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/CheckIcon.svelte +1 -1
- package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +1 -1
- package/dist/forms/checkbox/CheckboxButton.svelte +1 -1
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/dropzone/Dropzone.svelte +21 -30
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +4 -1
- package/dist/forms/fileupload/Fileupload.svelte +1 -1
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte +1 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/helper/Helper.svelte +1 -1
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/input-addon/InputAddon.svelte +1 -1
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/label/Label.svelte +1 -1
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/range/Range.svelte +1 -1
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/search/Search.svelte +1 -1
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/tags/Tags.svelte +1 -1
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/textarea/Textarea.svelte +1 -1
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/timepicker/Timepicker.svelte +1 -1
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/toggle/Toggle.svelte +1 -1
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/gallery/Gallery.svelte +1 -1
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/indicator/Indicator.svelte +1 -1
- package/dist/indicator/Indicator.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 +1 -1
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +1 -1
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/mega-menu/MegaMenu.svelte +1 -1
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/modal/Modal.svelte +1 -1
- package/dist/modal/Modal.svelte.d.ts +1 -1
- package/dist/navbar/Menu.svelte +1 -1
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- 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 +1 -1
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
- package/dist/navbar/NavLi.svelte +1 -1
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +1 -1
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -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 +1 -1
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/popover/Popover.svelte +1 -1
- package/dist/popover/Popover.svelte.d.ts +1 -1
- 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 +1 -1
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
- package/dist/rating/CustomIcon.svelte +1 -1
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +1 -1
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +1 -1
- package/dist/rating/Rating.svelte.d.ts +1 -1
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +1 -1
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +1 -1
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +1 -1
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +1 -1
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/sidebar/Sidebar.svelte +1 -1
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +1 -1
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +1 -1
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +1 -1
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarGroup.svelte +1 -1
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarItem.svelte +1 -1
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/theme.d.ts +3 -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 +1 -1
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- 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/stepindicator/StepIndicator.svelte +1 -1
- package/dist/stepindicator/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 +1 -1
- package/dist/table/Table.svelte.d.ts +1 -1
- 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 +1 -1
- package/dist/table/TableSearch.svelte.d.ts +1 -1
- package/dist/tabs/TabItem.svelte +1 -1
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +1 -1
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/theme/themeUtils.d.ts +13 -0
- package/dist/theme/themeUtils.js +9 -1
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +1 -1
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +1 -1
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +1 -1
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +1 -1
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +1 -1
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/theme.d.ts +12 -12
- package/dist/toast/Toast.svelte +1 -1
- package/dist/toast/Toast.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 +1 -1
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +1 -1
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/tooltip/Tooltip.svelte +1 -1
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/types.d.ts +37 -53
- package/dist/types.js +0 -1
- package/dist/typography/anchor/A.svelte +1 -1
- package/dist/typography/anchor/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 +1 -1
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/img/EnhancedImg.svelte +1 -1
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +1 -1
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- 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/CloseButton.svelte +1 -1
- package/dist/utils/CloseButton.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +1 -1
- 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 +1 -1
|
@@ -1,150 +1,152 @@
|
|
|
1
|
+
import { type VariantProps } from "tailwind-variants";
|
|
1
2
|
import type { ClassValue } from "svelte/elements";
|
|
3
|
+
import type { Classes } from "../theme/themeUtils";
|
|
2
4
|
export declare const bottomNav: import("tailwind-variants").TVReturnType<{
|
|
3
5
|
position: {
|
|
4
6
|
static: {
|
|
5
|
-
|
|
7
|
+
base: string;
|
|
6
8
|
};
|
|
7
9
|
fixed: {
|
|
8
|
-
|
|
10
|
+
base: string;
|
|
9
11
|
};
|
|
10
12
|
absolute: {
|
|
11
|
-
|
|
13
|
+
base: string;
|
|
12
14
|
};
|
|
13
15
|
relative: {
|
|
14
|
-
|
|
16
|
+
base: string;
|
|
15
17
|
};
|
|
16
18
|
sticky: {
|
|
17
|
-
|
|
19
|
+
base: string;
|
|
18
20
|
};
|
|
19
21
|
};
|
|
20
22
|
navType: {
|
|
21
23
|
default: {
|
|
22
|
-
|
|
24
|
+
base: string;
|
|
23
25
|
};
|
|
24
26
|
border: {
|
|
25
|
-
|
|
27
|
+
base: string;
|
|
26
28
|
};
|
|
27
29
|
application: {
|
|
28
|
-
|
|
30
|
+
base: string;
|
|
29
31
|
};
|
|
30
32
|
pagination: {
|
|
31
|
-
|
|
33
|
+
base: string;
|
|
32
34
|
};
|
|
33
35
|
group: {
|
|
34
|
-
|
|
36
|
+
base: string;
|
|
35
37
|
};
|
|
36
38
|
card: {
|
|
37
|
-
|
|
39
|
+
base: string;
|
|
38
40
|
};
|
|
39
41
|
meeting: {
|
|
40
|
-
|
|
42
|
+
base: string;
|
|
41
43
|
inner: string;
|
|
42
44
|
};
|
|
43
45
|
video: {
|
|
44
|
-
|
|
46
|
+
base: string;
|
|
45
47
|
inner: string;
|
|
46
48
|
};
|
|
47
49
|
};
|
|
48
50
|
}, {
|
|
49
|
-
|
|
51
|
+
base: string;
|
|
50
52
|
inner: string;
|
|
51
53
|
}, undefined, {
|
|
52
54
|
position: {
|
|
53
55
|
static: {
|
|
54
|
-
|
|
56
|
+
base: string;
|
|
55
57
|
};
|
|
56
58
|
fixed: {
|
|
57
|
-
|
|
59
|
+
base: string;
|
|
58
60
|
};
|
|
59
61
|
absolute: {
|
|
60
|
-
|
|
62
|
+
base: string;
|
|
61
63
|
};
|
|
62
64
|
relative: {
|
|
63
|
-
|
|
65
|
+
base: string;
|
|
64
66
|
};
|
|
65
67
|
sticky: {
|
|
66
|
-
|
|
68
|
+
base: string;
|
|
67
69
|
};
|
|
68
70
|
};
|
|
69
71
|
navType: {
|
|
70
72
|
default: {
|
|
71
|
-
|
|
73
|
+
base: string;
|
|
72
74
|
};
|
|
73
75
|
border: {
|
|
74
|
-
|
|
76
|
+
base: string;
|
|
75
77
|
};
|
|
76
78
|
application: {
|
|
77
|
-
|
|
79
|
+
base: string;
|
|
78
80
|
};
|
|
79
81
|
pagination: {
|
|
80
|
-
|
|
82
|
+
base: string;
|
|
81
83
|
};
|
|
82
84
|
group: {
|
|
83
|
-
|
|
85
|
+
base: string;
|
|
84
86
|
};
|
|
85
87
|
card: {
|
|
86
|
-
|
|
88
|
+
base: string;
|
|
87
89
|
};
|
|
88
90
|
meeting: {
|
|
89
|
-
|
|
91
|
+
base: string;
|
|
90
92
|
inner: string;
|
|
91
93
|
};
|
|
92
94
|
video: {
|
|
93
|
-
|
|
95
|
+
base: string;
|
|
94
96
|
inner: string;
|
|
95
97
|
};
|
|
96
98
|
};
|
|
97
99
|
}, {
|
|
98
|
-
|
|
100
|
+
base: string;
|
|
99
101
|
inner: string;
|
|
100
102
|
}, import("tailwind-variants").TVReturnType<{
|
|
101
103
|
position: {
|
|
102
104
|
static: {
|
|
103
|
-
|
|
105
|
+
base: string;
|
|
104
106
|
};
|
|
105
107
|
fixed: {
|
|
106
|
-
|
|
108
|
+
base: string;
|
|
107
109
|
};
|
|
108
110
|
absolute: {
|
|
109
|
-
|
|
111
|
+
base: string;
|
|
110
112
|
};
|
|
111
113
|
relative: {
|
|
112
|
-
|
|
114
|
+
base: string;
|
|
113
115
|
};
|
|
114
116
|
sticky: {
|
|
115
|
-
|
|
117
|
+
base: string;
|
|
116
118
|
};
|
|
117
119
|
};
|
|
118
120
|
navType: {
|
|
119
121
|
default: {
|
|
120
|
-
|
|
122
|
+
base: string;
|
|
121
123
|
};
|
|
122
124
|
border: {
|
|
123
|
-
|
|
125
|
+
base: string;
|
|
124
126
|
};
|
|
125
127
|
application: {
|
|
126
|
-
|
|
128
|
+
base: string;
|
|
127
129
|
};
|
|
128
130
|
pagination: {
|
|
129
|
-
|
|
131
|
+
base: string;
|
|
130
132
|
};
|
|
131
133
|
group: {
|
|
132
|
-
|
|
134
|
+
base: string;
|
|
133
135
|
};
|
|
134
136
|
card: {
|
|
135
|
-
|
|
137
|
+
base: string;
|
|
136
138
|
};
|
|
137
139
|
meeting: {
|
|
138
|
-
|
|
140
|
+
base: string;
|
|
139
141
|
inner: string;
|
|
140
142
|
};
|
|
141
143
|
video: {
|
|
142
|
-
|
|
144
|
+
base: string;
|
|
143
145
|
inner: string;
|
|
144
146
|
};
|
|
145
147
|
};
|
|
146
148
|
}, {
|
|
147
|
-
|
|
149
|
+
base: string;
|
|
148
150
|
inner: string;
|
|
149
151
|
}, undefined, unknown, unknown, undefined>>;
|
|
150
152
|
export declare const bottomNavItem: import("tailwind-variants").TVReturnType<{
|
|
@@ -298,33 +300,33 @@ export declare const bottomNavItem: import("tailwind-variants").TVReturnType<{
|
|
|
298
300
|
export declare const bottomNavHeader: import("tailwind-variants").TVReturnType<{
|
|
299
301
|
[key: string]: {
|
|
300
302
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
303
|
+
base?: import("tailwind-variants").ClassValue;
|
|
301
304
|
innerDiv?: import("tailwind-variants").ClassValue;
|
|
302
|
-
outerDiv?: import("tailwind-variants").ClassValue;
|
|
303
305
|
};
|
|
304
306
|
};
|
|
305
307
|
} | {
|
|
306
308
|
[x: string]: {
|
|
307
309
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
310
|
+
base?: import("tailwind-variants").ClassValue;
|
|
308
311
|
innerDiv?: import("tailwind-variants").ClassValue;
|
|
309
|
-
outerDiv?: import("tailwind-variants").ClassValue;
|
|
310
312
|
};
|
|
311
313
|
};
|
|
312
314
|
} | {}, {
|
|
315
|
+
base: string;
|
|
313
316
|
innerDiv: string;
|
|
314
|
-
outerDiv: string;
|
|
315
317
|
}, undefined, {
|
|
316
318
|
[key: string]: {
|
|
317
319
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
320
|
+
base?: import("tailwind-variants").ClassValue;
|
|
318
321
|
innerDiv?: import("tailwind-variants").ClassValue;
|
|
319
|
-
outerDiv?: import("tailwind-variants").ClassValue;
|
|
320
322
|
};
|
|
321
323
|
};
|
|
322
324
|
} | {}, {
|
|
325
|
+
base: string;
|
|
323
326
|
innerDiv: string;
|
|
324
|
-
outerDiv: string;
|
|
325
327
|
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
328
|
+
base: string;
|
|
326
329
|
innerDiv: string;
|
|
327
|
-
outerDiv: string;
|
|
328
330
|
}, undefined, unknown, unknown, undefined>>;
|
|
329
331
|
export declare const bottomNavHeaderItem: import("tailwind-variants").TVReturnType<{
|
|
330
332
|
active: {
|
|
@@ -344,9 +346,13 @@ export declare const bottomNavHeaderItem: import("tailwind-variants").TVReturnTy
|
|
|
344
346
|
}, undefined, "px-5 py-1.5 text-xs font-medium rounded-lg", unknown, unknown, undefined>>;
|
|
345
347
|
export type BottomNavSlots = keyof typeof bottomNav.slots;
|
|
346
348
|
export type BottomNavTheme = Partial<Record<BottomNavSlots, ClassValue>>;
|
|
349
|
+
export type BottomNavVariants = VariantProps<typeof bottomNav> & Classes<typeof bottomNav>;
|
|
347
350
|
export type BottomNavItemSlots = keyof typeof bottomNavItem.slots;
|
|
348
351
|
export type BottomNavItemTheme = Partial<Record<BottomNavItemSlots, ClassValue>>;
|
|
352
|
+
export type BottomNavItemVariants = VariantProps<typeof bottomNavItem> & Classes<typeof bottomNavItem>;
|
|
349
353
|
export type BottomnavheaderSlots = keyof typeof bottomNavHeader.slots;
|
|
350
354
|
export type BottomNavHeaderTheme = Partial<Record<BottomnavheaderSlots, ClassValue>>;
|
|
355
|
+
export type BottomNavHeaderVariants = VariantProps<typeof bottomNavHeader> & Classes<typeof bottomNavHeader>;
|
|
351
356
|
export type bottomNavHeaderItemSlots = keyof typeof bottomNavHeaderItem.slots;
|
|
352
357
|
export type BottomNavHeaderItemTheme = Partial<Record<bottomNavHeaderItemSlots, ClassValue>>;
|
|
358
|
+
export type BottomNavHeaderItemVariants = VariantProps<typeof bottomNavHeaderItem>;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const bottomNav = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
|
|
4
|
+
base: "w-full z-30 border-gray-200 dark:bg-gray-700 dark:border-gray-600",
|
|
5
5
|
inner: "grid h-full max-w-lg mx-auto"
|
|
6
6
|
},
|
|
7
7
|
variants: {
|
|
8
8
|
position: {
|
|
9
|
-
static: {
|
|
10
|
-
fixed: {
|
|
11
|
-
absolute: {
|
|
12
|
-
relative: {
|
|
13
|
-
sticky: {
|
|
9
|
+
static: { base: "static" },
|
|
10
|
+
fixed: { base: "fixed" },
|
|
11
|
+
absolute: { base: "absolute" },
|
|
12
|
+
relative: { base: "relative" },
|
|
13
|
+
sticky: { base: "sticky" }
|
|
14
14
|
},
|
|
15
15
|
navType: {
|
|
16
|
-
default: {
|
|
17
|
-
border: {
|
|
16
|
+
default: { base: "bottom-0 start-0 h-16 bg-white border-t" },
|
|
17
|
+
border: { base: "bottom-0 start-0 h-16 bg-white border-t" },
|
|
18
18
|
application: {
|
|
19
|
-
|
|
19
|
+
base: "h-16 max-w-lg -translate-x-1/2 rtl:translate-x-1/2 bg-white border rounded-full bottom-4 start-1/2"
|
|
20
20
|
},
|
|
21
21
|
pagination: {
|
|
22
|
-
|
|
22
|
+
base: "bottom-0 h-16 -translate-x-1/2 rtl:translate-x-1/2 bg-white border-t start-1/2"
|
|
23
23
|
},
|
|
24
24
|
group: {
|
|
25
|
-
|
|
25
|
+
base: "bottom-0 -translate-x-1/2 rtl:translate-x-1/2 bg-white border-t start-1/2"
|
|
26
26
|
},
|
|
27
|
-
card: {
|
|
27
|
+
card: { base: "bottom-0 start-0 h-16 bg-white border-t" },
|
|
28
28
|
meeting: {
|
|
29
|
-
|
|
29
|
+
base: "bottom-0 start-0 grid h-16 grid-cols-1 px-8 bg-white border-t md:grid-cols-3",
|
|
30
30
|
inner: "flex items-center justify-center mx-auto"
|
|
31
31
|
},
|
|
32
32
|
video: {
|
|
33
|
-
|
|
33
|
+
base: "bottom-0 start-0 grid h-24 grid-cols-1 px-8 bg-white border-t md:grid-cols-3",
|
|
34
34
|
inner: "flex items-center w-full"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -98,8 +98,8 @@ export const bottomNavItem = tv({
|
|
|
98
98
|
});
|
|
99
99
|
export const bottomNavHeader = tv({
|
|
100
100
|
slots: {
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
base: "w-full",
|
|
102
|
+
innerDiv: "grid max-w-xs grid-cols-3 gap-1 p-1 mx-auto my-2 bg-gray-100 rounded-lg dark:bg-gray-600"
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
export const bottomNavHeaderItem = tv({
|
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
import { breadcrumb } from ".";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { type BreadcrumbProps, type BreadcrumbTheme } from "..";
|
|
5
|
-
import { getTheme } from "../theme/themeUtils";
|
|
5
|
+
import { getTheme, themeDeprecated } from "../theme/themeUtils";
|
|
6
6
|
|
|
7
|
-
let { children, solid = false, class: className, olClass, ariaLabel = "Breadcrumb", ...restProps }: BreadcrumbProps = $props();
|
|
7
|
+
let { children, solid = false, class: className, classes, olClass, ariaLabel = "Breadcrumb", ...restProps }: BreadcrumbProps = $props();
|
|
8
|
+
|
|
9
|
+
themeDeprecated("Breadcrumb", { olClass });
|
|
10
|
+
let styling = $derived(classes ?? { list: olClass });
|
|
8
11
|
|
|
9
12
|
const theme = getTheme("breadcrumb");
|
|
10
13
|
|
|
11
|
-
const {
|
|
12
|
-
let classNav = $derived(
|
|
13
|
-
let classList = $derived(list({ class: clsx((theme as BreadcrumbTheme)?.list,
|
|
14
|
+
const { base, list } = breadcrumb({ solid });
|
|
15
|
+
let classNav = $derived(base({ class: clsx((theme as BreadcrumbTheme)?.base, className) }));
|
|
16
|
+
let classList = $derived(list({ class: clsx((theme as BreadcrumbTheme)?.list, styling.list) }));
|
|
14
17
|
</script>
|
|
15
18
|
|
|
16
19
|
<nav aria-label={ariaLabel} {...restProps} class={classNav}>
|
|
@@ -23,11 +26,12 @@
|
|
|
23
26
|
@component
|
|
24
27
|
[Go to docs](https://flowbite-svelte.com/)
|
|
25
28
|
## Type
|
|
26
|
-
[BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
29
|
+
[BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L271)
|
|
27
30
|
## Props
|
|
28
31
|
@prop children
|
|
29
32
|
@prop solid = false
|
|
30
33
|
@prop class: className
|
|
34
|
+
@prop classes
|
|
31
35
|
@prop olClass
|
|
32
36
|
@prop ariaLabel = "Breadcrumb"
|
|
33
37
|
@prop ...restProps
|
|
@@ -2,11 +2,12 @@ import { type BreadcrumbProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L271)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop solid = false
|
|
9
9
|
* @prop class: className
|
|
10
|
+
* @prop classes
|
|
10
11
|
* @prop olClass
|
|
11
12
|
* @prop ariaLabel = "Breadcrumb"
|
|
12
13
|
* @prop ...restProps
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { breadcrumbItem } from "./index";
|
|
3
|
-
import clsx from "clsx";
|
|
4
2
|
import { type BreadcrumbItemProps, type BreadcrumbItemTheme } from "..";
|
|
5
3
|
import { getTheme } from "../theme/themeUtils";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { breadcrumbItem } from "./index";
|
|
6
|
+
|
|
7
|
+
let { children, icon, home = false, href, linkClass, spanClass, homeClass, class: className, classes, ...restProps }: BreadcrumbItemProps = $props();
|
|
6
8
|
|
|
7
|
-
let
|
|
9
|
+
let styling = $derived(classes ?? {});
|
|
8
10
|
|
|
9
11
|
const theme = getTheme("breadcrumbItem");
|
|
10
12
|
|
|
@@ -33,7 +35,7 @@
|
|
|
33
35
|
{#if icon}
|
|
34
36
|
{@render icon()}
|
|
35
37
|
{:else}
|
|
36
|
-
<svg class={separator({ class: clsx((theme as BreadcrumbItemTheme)?.separator) })} fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
38
|
+
<svg class={separator({ class: clsx((theme as BreadcrumbItemTheme)?.separator, styling.separator) })} fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
37
39
|
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
|
38
40
|
</svg>
|
|
39
41
|
{/if}
|
|
@@ -54,7 +56,7 @@
|
|
|
54
56
|
@component
|
|
55
57
|
[Go to docs](https://flowbite-svelte.com/)
|
|
56
58
|
## Type
|
|
57
|
-
[BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
59
|
+
[BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L278)
|
|
58
60
|
## Props
|
|
59
61
|
@prop children
|
|
60
62
|
@prop icon
|
|
@@ -64,5 +66,6 @@
|
|
|
64
66
|
@prop spanClass
|
|
65
67
|
@prop homeClass
|
|
66
68
|
@prop class: className
|
|
69
|
+
@prop classes
|
|
67
70
|
@prop ...restProps
|
|
68
71
|
-->
|
|
@@ -2,7 +2,7 @@ import { type BreadcrumbItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L278)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -12,6 +12,7 @@ import { type BreadcrumbItemProps } from "..";
|
|
|
12
12
|
* @prop spanClass
|
|
13
13
|
* @prop homeClass
|
|
14
14
|
* @prop class: className
|
|
15
|
+
* @prop classes
|
|
15
16
|
* @prop ...restProps
|
|
16
17
|
*/
|
|
17
18
|
declare const BreadcrumbItem: import("svelte").Component<BreadcrumbItemProps, {}, "">;
|
|
@@ -1,35 +1,39 @@
|
|
|
1
|
+
import { type VariantProps } from "tailwind-variants";
|
|
1
2
|
import type { ClassValue } from "svelte/elements";
|
|
3
|
+
import type { Classes } from "../theme/themeUtils";
|
|
4
|
+
export type BreadcrumbVariants = VariantProps<typeof breadcrumb> & Classes<typeof breadcrumb>;
|
|
2
5
|
export declare const breadcrumb: import("tailwind-variants").TVReturnType<{
|
|
3
6
|
solid: {
|
|
4
7
|
true: {
|
|
5
|
-
|
|
8
|
+
base: string;
|
|
6
9
|
};
|
|
7
10
|
false: string;
|
|
8
11
|
};
|
|
9
12
|
}, {
|
|
10
|
-
|
|
13
|
+
base: string;
|
|
11
14
|
list: string;
|
|
12
15
|
}, undefined, {
|
|
13
16
|
solid: {
|
|
14
17
|
true: {
|
|
15
|
-
|
|
18
|
+
base: string;
|
|
16
19
|
};
|
|
17
20
|
false: string;
|
|
18
21
|
};
|
|
19
22
|
}, {
|
|
20
|
-
|
|
23
|
+
base: string;
|
|
21
24
|
list: string;
|
|
22
25
|
}, import("tailwind-variants").TVReturnType<{
|
|
23
26
|
solid: {
|
|
24
27
|
true: {
|
|
25
|
-
|
|
28
|
+
base: string;
|
|
26
29
|
};
|
|
27
30
|
false: string;
|
|
28
31
|
};
|
|
29
32
|
}, {
|
|
30
|
-
|
|
33
|
+
base: string;
|
|
31
34
|
list: string;
|
|
32
35
|
}, undefined, unknown, unknown, undefined>>;
|
|
36
|
+
export type BreadcrumbItemVariants = VariantProps<typeof breadcrumbItem> & Classes<typeof breadcrumbItem>;
|
|
33
37
|
export declare const breadcrumbItem: import("tailwind-variants").TVReturnType<{
|
|
34
38
|
home: {
|
|
35
39
|
true: string;
|
package/dist/breadcrumb/theme.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const breadcrumb = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
|
|
4
|
+
base: "flex",
|
|
5
5
|
list: "inline-flex items-center space-x-1 rtl:space-x-reverse md:space-x-3 rtl:space-x-reverse"
|
|
6
6
|
},
|
|
7
7
|
variants: {
|
|
8
8
|
solid: {
|
|
9
9
|
true: {
|
|
10
|
-
|
|
10
|
+
base: "px-5 py-3 text-gray-700 border border-gray-200 rounded-lg bg-gray-50 dark:bg-gray-800 dark:border-gray-700"
|
|
11
11
|
},
|
|
12
12
|
false: ""
|
|
13
13
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@component
|
|
23
23
|
[Go to docs](https://flowbite-svelte.com/)
|
|
24
24
|
## Type
|
|
25
|
-
[ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
25
|
+
[ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L289)
|
|
26
26
|
## Props
|
|
27
27
|
@prop children
|
|
28
28
|
@prop size = "md"
|
|
@@ -2,7 +2,7 @@ import { type ButtonGroupProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L289)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size = "md"
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ClassValue } from "svelte/elements";
|
|
2
|
+
import { type VariantProps } from "tailwind-variants";
|
|
3
|
+
export type ButtonGroupVariants = VariantProps<typeof buttonGroup>;
|
|
2
4
|
declare const buttonGroup: import("tailwind-variants").TVReturnType<{
|
|
3
5
|
size: {
|
|
4
6
|
sm: string;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
@component
|
|
39
39
|
[Go to docs](https://flowbite-svelte.com/)
|
|
40
40
|
## Type
|
|
41
|
-
[ButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
41
|
+
[ButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L301)
|
|
42
42
|
## Props
|
|
43
43
|
@prop children
|
|
44
44
|
@prop pill
|
|
@@ -2,7 +2,7 @@ import { type ButtonProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L301)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop pill
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
@component
|
|
31
31
|
[Go to docs](https://flowbite-svelte.com/)
|
|
32
32
|
## Type
|
|
33
|
-
[GradientButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
33
|
+
[GradientButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L309)
|
|
34
34
|
## Props
|
|
35
35
|
@prop children
|
|
36
36
|
@prop outline
|
|
@@ -2,7 +2,7 @@ import { type GradientButtonProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [GradientButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [GradientButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L309)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop outline
|
package/dist/card/Card.svelte
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { type CardProps } from "..";
|
|
3
|
-
import { getTheme } from "../theme/themeUtils";
|
|
3
|
+
import { getTheme, themeDeprecated } from "../theme/themeUtils";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { card, type CardTheme } from ".";
|
|
6
6
|
|
|
7
|
-
let { children, color = "gray", horizontal = false, shadow = "md", reverse = false, img, size = "sm", class: className,
|
|
7
|
+
let { children, color = "gray", horizontal = false, shadow = "md", reverse = false, img, size = "sm", class: className, classes, imgClass, ...restProps }: CardProps = $props();
|
|
8
|
+
|
|
9
|
+
themeDeprecated("Card", { imgClass });
|
|
10
|
+
let styling = $derived(classes ?? { image: imgClass });
|
|
8
11
|
|
|
9
12
|
const theme = getTheme("card");
|
|
10
13
|
|
|
@@ -22,7 +25,7 @@
|
|
|
22
25
|
|
|
23
26
|
{#snippet childSlot()}
|
|
24
27
|
{#if img}
|
|
25
|
-
<img class={image({ class: clsx((theme as CardTheme)?.image,
|
|
28
|
+
<img class={image({ class: clsx((theme as CardTheme)?.image, styling.image) })} src={img} alt={img} />
|
|
26
29
|
{@render children()}
|
|
27
30
|
{:else}
|
|
28
31
|
{@render children()}
|
|
@@ -43,7 +46,7 @@
|
|
|
43
46
|
@component
|
|
44
47
|
[Go to docs](https://flowbite-svelte.com/)
|
|
45
48
|
## Type
|
|
46
|
-
[CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
49
|
+
[CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L349)
|
|
47
50
|
## Props
|
|
48
51
|
@prop children
|
|
49
52
|
@prop color = "gray"
|
|
@@ -53,7 +56,7 @@
|
|
|
53
56
|
@prop img
|
|
54
57
|
@prop size = "sm"
|
|
55
58
|
@prop class: className
|
|
59
|
+
@prop classes
|
|
56
60
|
@prop imgClass
|
|
57
|
-
@prop contentClass
|
|
58
61
|
@prop ...restProps
|
|
59
62
|
-->
|
|
@@ -2,7 +2,7 @@ import { type CardProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L349)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color = "gray"
|
|
@@ -12,8 +12,8 @@ import { type CardProps } from "..";
|
|
|
12
12
|
* @prop img
|
|
13
13
|
* @prop size = "sm"
|
|
14
14
|
* @prop class: className
|
|
15
|
+
* @prop classes
|
|
15
16
|
* @prop imgClass
|
|
16
|
-
* @prop contentClass
|
|
17
17
|
* @prop ...restProps
|
|
18
18
|
*/
|
|
19
19
|
declare const Card: import("svelte").Component<CardProps, {}, "">;
|
package/dist/card/theme.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
2
|
import type { ClassValue } from "svelte/elements";
|
|
3
|
-
|
|
3
|
+
import type { Classes } from "../theme/themeUtils";
|
|
4
|
+
export type CardVariants = VariantProps<typeof card> & Classes<typeof card>;
|
|
4
5
|
export declare const card: import("tailwind-variants").TVReturnType<{
|
|
5
6
|
size: {
|
|
6
7
|
xs: {
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
@component
|
|
185
185
|
[Go to docs](https://flowbite-svelte.com/)
|
|
186
186
|
## Type
|
|
187
|
-
[CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
187
|
+
[CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L367)
|
|
188
188
|
## Props
|
|
189
189
|
@prop children
|
|
190
190
|
@prop slide
|
|
@@ -2,7 +2,7 @@ import { type CarouselProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L367)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop slide
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
@component
|
|
45
45
|
[Go to docs](https://flowbite-svelte.com/)
|
|
46
46
|
## Type
|
|
47
|
-
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
47
|
+
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L381)
|
|
48
48
|
## Props
|
|
49
49
|
@prop children
|
|
50
50
|
@prop activeClass
|