flowbite-svelte 1.10.13 → 1.10.14
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 +1 -1
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
- package/dist/accordion/theme.d.ts +3 -3
- package/dist/alert/Alert.svelte +1 -1
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/alert/theme.d.ts +3 -4
- package/dist/alert/theme.js +1 -2
- package/dist/avatar/Avatar.svelte +1 -1
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/avatar/theme.d.ts +2 -3
- package/dist/avatar/theme.js +1 -2
- package/dist/badge/Badge.svelte +1 -1
- package/dist/badge/Badge.svelte.d.ts +1 -1
- package/dist/badge/theme.d.ts +4 -5
- package/dist/badge/theme.js +1 -2
- package/dist/banner/Banner.svelte +1 -1
- package/dist/banner/Banner.svelte.d.ts +1 -1
- package/dist/banner/theme.d.ts +3 -4
- package/dist/banner/theme.js +1 -2
- package/dist/bottom-navigation/BottomNav.svelte +1 -1
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +1 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +1 -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 +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/theme.d.ts +12 -12
- package/dist/breadcrumb/Breadcrumb.svelte +1 -1
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/theme.d.ts +5 -5
- 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 -3
- package/dist/button-group/theme.js +1 -2
- 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/buttons/theme.d.ts +5 -5
- package/dist/card/Card.svelte +1 -1
- package/dist/card/Card.svelte.d.ts +1 -1
- package/dist/card/theme.d.ts +2 -2
- 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 +1 -1
- package/dist/datepicker/Datepicker.svelte.d.ts +1 -1
- package/dist/device-mockups/Android.svelte +1 -1
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +1 -1
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +1 -1
- package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +1 -1
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +1 -1
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +1 -1
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +1 -1
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- 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 +1 -1
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
- package/dist/forms/fileupload/Fileupload.svelte +1 -1
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/fileupload/theme.d.ts +2 -2
- package/dist/forms/floating-label/FloatingLabelInput.svelte +1 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/floating-label/theme.d.ts +2 -2
- package/dist/forms/helper/Helper.svelte +1 -1
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/helper/theme.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/input-field/theme.d.ts +2 -2
- package/dist/forms/label/Label.svelte +1 -1
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/label/theme.d.ts +1 -1
- package/dist/forms/phoneinput/PhoneInput.svelte +7 -7
- package/dist/forms/phoneinput/theme.d.ts +26 -26
- package/dist/forms/phoneinput/theme.js +8 -8
- package/dist/forms/radio/Radio.svelte +7 -4
- package/dist/forms/radio/theme.d.ts +5 -4
- package/dist/forms/range/Range.svelte +1 -1
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/range/theme.d.ts +1 -1
- package/dist/forms/search/Search.svelte +15 -10
- package/dist/forms/search/Search.svelte.d.ts +3 -1
- package/dist/forms/search/theme.d.ts +13 -9
- package/dist/forms/search/theme.js +3 -2
- package/dist/forms/select/MultiSelect.svelte +3 -2
- package/dist/forms/select/Select.svelte +8 -4
- package/dist/forms/select/theme.d.ts +10 -9
- package/dist/forms/select/theme.js +1 -1
- package/dist/forms/tags/Tags.svelte +88 -38
- package/dist/forms/tags/Tags.svelte.d.ts +9 -3
- package/dist/forms/tags/theme.d.ts +29 -8
- package/dist/forms/tags/theme.js +6 -3
- 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/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/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/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 +8 -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,6 +1,9 @@
|
|
|
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 SearchVariants = VariantProps<typeof search> & Classes<typeof search>;
|
|
5
|
+
export type SearchSlots = keyof typeof search.slots;
|
|
6
|
+
export type SearchTheme = Partial<Record<SearchSlots, ClassValue>>;
|
|
4
7
|
export declare const search: import("tailwind-variants").TVReturnType<{
|
|
5
8
|
size: {
|
|
6
9
|
sm: {
|
|
@@ -18,11 +21,12 @@ export declare const search: import("tailwind-variants").TVReturnType<{
|
|
|
18
21
|
};
|
|
19
22
|
}, {
|
|
20
23
|
base: string;
|
|
21
|
-
|
|
24
|
+
left: string;
|
|
22
25
|
icon: string;
|
|
23
26
|
content: string;
|
|
24
27
|
input: string;
|
|
25
|
-
|
|
28
|
+
close: string;
|
|
29
|
+
svg: string;
|
|
26
30
|
}, undefined, {
|
|
27
31
|
size: {
|
|
28
32
|
sm: {
|
|
@@ -40,11 +44,12 @@ export declare const search: import("tailwind-variants").TVReturnType<{
|
|
|
40
44
|
};
|
|
41
45
|
}, {
|
|
42
46
|
base: string;
|
|
43
|
-
|
|
47
|
+
left: string;
|
|
44
48
|
icon: string;
|
|
45
49
|
content: string;
|
|
46
50
|
input: string;
|
|
47
|
-
|
|
51
|
+
close: string;
|
|
52
|
+
svg: string;
|
|
48
53
|
}, import("tailwind-variants").TVReturnType<{
|
|
49
54
|
size: {
|
|
50
55
|
sm: {
|
|
@@ -62,11 +67,10 @@ export declare const search: import("tailwind-variants").TVReturnType<{
|
|
|
62
67
|
};
|
|
63
68
|
}, {
|
|
64
69
|
base: string;
|
|
65
|
-
|
|
70
|
+
left: string;
|
|
66
71
|
icon: string;
|
|
67
72
|
content: string;
|
|
68
73
|
input: string;
|
|
69
|
-
|
|
74
|
+
close: string;
|
|
75
|
+
svg: string;
|
|
70
76
|
}, undefined, unknown, unknown, undefined>>;
|
|
71
|
-
export type SearchSlots = keyof typeof search.slots;
|
|
72
|
-
export type SearchTheme = Partial<Record<SearchSlots, ClassValue>>;
|
|
@@ -2,11 +2,12 @@ import { tv } from "tailwind-variants";
|
|
|
2
2
|
export const search = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
base: "relative w-full",
|
|
5
|
-
|
|
5
|
+
left: "absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none",
|
|
6
6
|
icon: "text-gray-500 dark:text-gray-400",
|
|
7
7
|
content: "absolute inset-y-0 end-0 flex items-center text-gray-500 dark:text-gray-400",
|
|
8
8
|
input: "block w-full text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500",
|
|
9
|
-
|
|
9
|
+
close: "absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-black",
|
|
10
|
+
svg: ""
|
|
10
11
|
},
|
|
11
12
|
variants: {
|
|
12
13
|
size: {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { Badge, CloseButton, type MultiSelectProps, type SelectOptionType } from "../..";
|
|
4
4
|
import { multiSelect, type MultiSelectTheme } from ".";
|
|
5
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
6
|
-
import { onMount
|
|
5
|
+
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
6
|
+
import { onMount } from "svelte";
|
|
7
7
|
|
|
8
8
|
// Consider reusing that component - https://svelecte.vercel.app/
|
|
9
9
|
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
onchange,
|
|
19
19
|
onblur,
|
|
20
20
|
class: className,
|
|
21
|
+
classes,
|
|
21
22
|
// Extract select-specific props
|
|
22
23
|
name,
|
|
23
24
|
form,
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
import { select as selectCls, type SelectTheme } from ".";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { type SelectProps, CloseButton } from "../..";
|
|
5
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
5
|
+
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
6
6
|
|
|
7
|
-
let { children, items, value = $bindable(), elementRef = $bindable(), underline, size = "md", disabled,
|
|
7
|
+
let { children, items, value = $bindable(), elementRef = $bindable(), underline, size = "md", disabled, placeholder = "Choose option ...", clearable, clearableColor = "none", clearableOnClick, clearableSvgClass, clearableClass, selectClass, class: className, classes, ...restProps }: SelectProps<T> = $props();
|
|
8
|
+
|
|
9
|
+
// clearableSvgClass, clearableClass, selectClass
|
|
10
|
+
warnThemeDeprecation("Select", { selectClass, clearableSvgClass, clearableClass }, { selectClass: "select", clearableSvgClass: "svg", clearableClass: "close" });
|
|
11
|
+
let styling = $derived({ select: selectClass, svg: clearableSvgClass, close: clearableClass });
|
|
8
12
|
|
|
9
13
|
const theme = getTheme("select");
|
|
10
14
|
|
|
11
|
-
const { base, select,
|
|
15
|
+
const { base, select, close } = $derived(selectCls({ underline, size, disabled }));
|
|
12
16
|
|
|
13
17
|
const clearAll = () => {
|
|
14
18
|
if (elementRef) {
|
|
@@ -36,7 +40,7 @@
|
|
|
36
40
|
{/if}
|
|
37
41
|
</select>
|
|
38
42
|
{#if value !== undefined && value !== "" && clearable}
|
|
39
|
-
<CloseButton onclick={clearAll} class={
|
|
43
|
+
<CloseButton onclick={clearAll} class={close({ class: clsx((theme as SelectTheme)?.close, clearableClass) })} color={clearableColor} aria-label="Clear search value" svgClass={clsx(clearableSvgClass)} {disabled} />
|
|
40
44
|
{/if}
|
|
41
45
|
</div>
|
|
42
46
|
<!--
|
|
@@ -1,6 +1,12 @@
|
|
|
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 SelectVariants = VariantProps<typeof select> & Classes<typeof select>;
|
|
5
|
+
export type MultiSelectVariants = VariantProps<typeof multiSelect> & Classes<typeof multiSelect>;
|
|
6
|
+
export type SelectSlots = keyof typeof select.slots;
|
|
7
|
+
export type SelectTheme = Partial<Record<SelectSlots, ClassValue>>;
|
|
8
|
+
export type MultiSelectSlots = keyof typeof multiSelect.slots;
|
|
9
|
+
export type MultiSelectTheme = Partial<Record<MultiSelectSlots, ClassValue>>;
|
|
4
10
|
export declare const select: import("tailwind-variants").TVReturnType<{
|
|
5
11
|
underline: {
|
|
6
12
|
true: {
|
|
@@ -30,7 +36,7 @@ export declare const select: import("tailwind-variants").TVReturnType<{
|
|
|
30
36
|
}, {
|
|
31
37
|
base: string;
|
|
32
38
|
select: string;
|
|
33
|
-
|
|
39
|
+
close: string;
|
|
34
40
|
}, undefined, {
|
|
35
41
|
underline: {
|
|
36
42
|
true: {
|
|
@@ -60,7 +66,7 @@ export declare const select: import("tailwind-variants").TVReturnType<{
|
|
|
60
66
|
}, {
|
|
61
67
|
base: string;
|
|
62
68
|
select: string;
|
|
63
|
-
|
|
69
|
+
close: string;
|
|
64
70
|
}, import("tailwind-variants").TVReturnType<{
|
|
65
71
|
underline: {
|
|
66
72
|
true: {
|
|
@@ -90,11 +96,8 @@ export declare const select: import("tailwind-variants").TVReturnType<{
|
|
|
90
96
|
}, {
|
|
91
97
|
base: string;
|
|
92
98
|
select: string;
|
|
93
|
-
|
|
99
|
+
close: string;
|
|
94
100
|
}, undefined, unknown, unknown, undefined>>;
|
|
95
|
-
export type SelectSlots = keyof typeof select.slots;
|
|
96
|
-
export type SelectTheme = Partial<Record<SelectSlots, ClassValue>>;
|
|
97
|
-
export type MultiSelectVariants = VariantProps<typeof multiSelect>;
|
|
98
101
|
export declare const multiSelect: import("tailwind-variants").TVReturnType<{
|
|
99
102
|
size: {
|
|
100
103
|
sm: string;
|
|
@@ -192,5 +195,3 @@ export declare const multiSelect: import("tailwind-variants").TVReturnType<{
|
|
|
192
195
|
dropdownitem: string;
|
|
193
196
|
closebutton: string;
|
|
194
197
|
}, undefined, unknown, unknown, undefined>>;
|
|
195
|
-
export type MultiSelectSlots = keyof typeof multiSelect.slots;
|
|
196
|
-
export type MultiSelectTheme = Partial<Record<MultiSelectSlots, ClassValue>>;
|
|
@@ -3,7 +3,7 @@ export const select = tv({
|
|
|
3
3
|
slots: {
|
|
4
4
|
base: "relative",
|
|
5
5
|
select: "block w-full rtl:text-right",
|
|
6
|
-
|
|
6
|
+
close: "absolute right-8 top-1/2 -translate-y-1/2 text-gray-400 hover:text-black"
|
|
7
7
|
},
|
|
8
8
|
variants: {
|
|
9
9
|
underline: {
|
|
@@ -1,83 +1,133 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { type TagsProps, CloseButton } from "../..";
|
|
3
|
+
import { type TagsProps, CloseButton, P } from "../..";
|
|
4
4
|
import { tags, type TagsTheme } from "./theme";
|
|
5
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
5
|
+
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
6
6
|
|
|
7
|
-
let { value = $bindable([]),
|
|
7
|
+
let { value = $bindable([]), placeholder = "Enter tags", class: className, classes, itemClass, spanClass, closeClass, inputClass, closeBtnSize = "xs", unique = false, availableTags = [], showHelper = false, showAvailableTags = false, allowNewTags = false, ...restProps }: TagsProps = $props();
|
|
8
|
+
|
|
9
|
+
warnThemeDeprecation("Tags", { itemClass, spanClass, closeClass, inputClass }, { itemClass: "tag", spanClass: "span", closeClass: "close", inputClass: "input" });
|
|
10
|
+
let styling = $derived({
|
|
11
|
+
tag: itemClass,
|
|
12
|
+
span: spanClass,
|
|
13
|
+
close: closeClass,
|
|
14
|
+
input: inputClass
|
|
15
|
+
});
|
|
8
16
|
|
|
9
17
|
const theme = getTheme("tags");
|
|
10
18
|
|
|
11
|
-
const { base, tag: tagCls, span: spanCls,
|
|
19
|
+
const { base, tag: tagCls, span: spanCls, close, input: inputCls, info, warning, error } = $derived(tags());
|
|
12
20
|
|
|
13
21
|
let contents: string = $state("");
|
|
22
|
+
let errorMessage: string = $state("");
|
|
14
23
|
|
|
15
24
|
const handleKeys = (event: KeyboardEvent) => {
|
|
16
25
|
if (event.key === "Enter") {
|
|
17
26
|
event.preventDefault();
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
const newTag = contents.trim();
|
|
28
|
+
|
|
29
|
+
if (newTag.length === 0) return;
|
|
30
|
+
|
|
31
|
+
const isInAvailable = availableTags.length === 0 || availableTags.some((tag) => tag.toLowerCase() === newTag.toLowerCase());
|
|
32
|
+
|
|
33
|
+
const alreadyExists = value.some((tag) => tag.toLowerCase() === newTag.toLowerCase());
|
|
34
|
+
|
|
35
|
+
if (!allowNewTags && !isInAvailable) {
|
|
36
|
+
errorMessage = `"${newTag}" is not in the available tags.`;
|
|
37
|
+
return;
|
|
22
38
|
}
|
|
23
|
-
}
|
|
24
39
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
contents = value.pop() ?? "";
|
|
29
|
-
value = value;
|
|
40
|
+
if (unique && alreadyExists) {
|
|
41
|
+
errorMessage = `"${newTag}" is already added.`;
|
|
42
|
+
return;
|
|
30
43
|
}
|
|
44
|
+
|
|
45
|
+
value.push(newTag);
|
|
46
|
+
value = value;
|
|
47
|
+
contents = "";
|
|
48
|
+
errorMessage = "";
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (event.key === "Backspace" && contents.length === 0) {
|
|
52
|
+
event.preventDefault();
|
|
53
|
+
contents = value.pop() ?? "";
|
|
54
|
+
value = value;
|
|
55
|
+
errorMessage = "";
|
|
31
56
|
}
|
|
32
57
|
};
|
|
33
58
|
|
|
34
59
|
const deleteField = (index: number) => {
|
|
35
60
|
value.splice(index, 1);
|
|
36
61
|
value = value;
|
|
62
|
+
errorMessage = "";
|
|
37
63
|
};
|
|
38
64
|
</script>
|
|
39
65
|
|
|
40
|
-
|
|
66
|
+
{#if showHelper && contents.trim().length > 0 && availableTags.length > 0 && !allowNewTags}
|
|
67
|
+
{#if value.some((tag) => tag.toLowerCase() === contents.trim().toLowerCase())}
|
|
68
|
+
<P class={clsx(warning(), classes?.warning)}>"{contents.trim()}" is already added.</P>
|
|
69
|
+
{:else if !availableTags.some((tag) => tag.toLowerCase() === contents.trim().toLowerCase())}
|
|
70
|
+
<P class={clsx(error(), classes?.error)}>"{contents.trim()}" is not in the available tags.</P>
|
|
71
|
+
{/if}
|
|
72
|
+
{/if}
|
|
73
|
+
|
|
74
|
+
<div
|
|
75
|
+
{...restProps}
|
|
76
|
+
class={base({
|
|
77
|
+
class: clsx((theme as TagsTheme)?.base, className, availableTags.length > 0 ? "overflow-auto" : "overflow-x-auto")
|
|
78
|
+
})}
|
|
79
|
+
>
|
|
41
80
|
{#each value as tag, index}
|
|
42
|
-
<div class={tagCls({ class: clsx((theme as TagsTheme)?.tag,
|
|
43
|
-
<span class={spanCls({ class: clsx((theme as TagsTheme)?.span,
|
|
81
|
+
<div class={tagCls({ class: clsx((theme as TagsTheme)?.tag, styling.tag) })}>
|
|
82
|
+
<span class={spanCls({ class: clsx((theme as TagsTheme)?.span, styling.span) })}>
|
|
44
83
|
{tag}
|
|
45
84
|
</span>
|
|
46
|
-
<CloseButton
|
|
47
|
-
size={closeBtnSize}
|
|
48
|
-
class={closebutton({ class: clsx((theme as TagsTheme)?.closebutton, closeClass) })}
|
|
49
|
-
onclick={() => {
|
|
50
|
-
deleteField(index);
|
|
51
|
-
}}
|
|
52
|
-
/>
|
|
85
|
+
<CloseButton size={closeBtnSize} class={close({ class: clsx((theme as TagsTheme)?.close, styling.close) })} onclick={() => deleteField(index)} />
|
|
53
86
|
</div>
|
|
54
87
|
{/each}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
88
|
+
<div class="relative w-full">
|
|
89
|
+
<input onkeydown={handleKeys} bind:value={contents} placeholder={value.length === 0 ? placeholder : ""} type="text" autocomplete="new-password" class={inputCls({ class: clsx(styling.input) })} />
|
|
90
|
+
{#if availableTags.length > 0 && contents.trim() !== ""}
|
|
91
|
+
<ul class="absolute z-10 mt-1 max-h-48 w-full overflow-auto rounded border border-gray-300 bg-white shadow">
|
|
92
|
+
{#each availableTags.filter((tag) => tag.toLowerCase().includes(contents.trim().toLowerCase()) && (!unique || !value.some((t) => t.toLowerCase() === tag.toLowerCase()))) as suggestion}
|
|
93
|
+
<li>
|
|
94
|
+
<button
|
|
95
|
+
type="button"
|
|
96
|
+
class="block w-full cursor-pointer px-3 py-2 text-left hover:bg-gray-100"
|
|
97
|
+
onclick={() => {
|
|
98
|
+
value.push(suggestion);
|
|
99
|
+
value = value;
|
|
100
|
+
contents = "";
|
|
101
|
+
}}
|
|
102
|
+
>
|
|
103
|
+
{suggestion}
|
|
104
|
+
</button>
|
|
105
|
+
</li>
|
|
106
|
+
{/each}
|
|
107
|
+
</ul>
|
|
108
|
+
{/if}
|
|
109
|
+
</div>
|
|
66
110
|
</div>
|
|
67
111
|
|
|
68
112
|
<!--
|
|
69
113
|
@component
|
|
70
114
|
[Go to docs](https://flowbite-svelte.com/)
|
|
71
115
|
## Type
|
|
72
|
-
[TagsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
116
|
+
[TagsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L877)
|
|
73
117
|
## Props
|
|
74
118
|
@prop value = $bindable([])
|
|
75
|
-
@prop itemClass
|
|
76
|
-
@prop spanClass
|
|
77
119
|
@prop placeholder = "Enter tags"
|
|
78
120
|
@prop class: className
|
|
121
|
+
@prop classes
|
|
122
|
+
@prop itemClass
|
|
123
|
+
@prop spanClass
|
|
79
124
|
@prop closeClass
|
|
80
125
|
@prop inputClass
|
|
81
126
|
@prop closeBtnSize = "xs"
|
|
127
|
+
@prop unique = false
|
|
128
|
+
@prop availableTags = []
|
|
129
|
+
@prop showHelper = false
|
|
130
|
+
@prop showAvailableTags = false
|
|
131
|
+
@prop allowNewTags = false
|
|
82
132
|
@prop ...restProps
|
|
83
133
|
-->
|
|
@@ -2,16 +2,22 @@ import { type TagsProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TagsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TagsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L877)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop value = $bindable([])
|
|
8
|
-
* @prop itemClass
|
|
9
|
-
* @prop spanClass
|
|
10
8
|
* @prop placeholder = "Enter tags"
|
|
11
9
|
* @prop class: className
|
|
10
|
+
* @prop classes
|
|
11
|
+
* @prop itemClass
|
|
12
|
+
* @prop spanClass
|
|
12
13
|
* @prop closeClass
|
|
13
14
|
* @prop inputClass
|
|
14
15
|
* @prop closeBtnSize = "xs"
|
|
16
|
+
* @prop unique = false
|
|
17
|
+
* @prop availableTags = []
|
|
18
|
+
* @prop showHelper = false
|
|
19
|
+
* @prop showAvailableTags = false
|
|
20
|
+
* @prop allowNewTags = false
|
|
15
21
|
* @prop ...restProps
|
|
16
22
|
*/
|
|
17
23
|
declare const Tags: import("svelte").Component<TagsProps, {}, "value">;
|
|
@@ -1,12 +1,20 @@
|
|
|
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 TagsVariants = VariantProps<typeof tags> & Classes<typeof tags>;
|
|
5
|
+
export type TagsSlots = keyof typeof tags.slots;
|
|
6
|
+
export type TagsTheme = Partial<Record<TagsSlots, ClassValue>>;
|
|
2
7
|
export declare const tags: import("tailwind-variants").TVReturnType<{
|
|
3
8
|
[key: string]: {
|
|
4
9
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
5
10
|
base?: import("tailwind-variants").ClassValue;
|
|
6
11
|
span?: import("tailwind-variants").ClassValue;
|
|
12
|
+
close?: import("tailwind-variants").ClassValue;
|
|
7
13
|
tag?: import("tailwind-variants").ClassValue;
|
|
8
14
|
input?: import("tailwind-variants").ClassValue;
|
|
9
|
-
|
|
15
|
+
error?: import("tailwind-variants").ClassValue;
|
|
16
|
+
info?: import("tailwind-variants").ClassValue;
|
|
17
|
+
warning?: import("tailwind-variants").ClassValue;
|
|
10
18
|
};
|
|
11
19
|
};
|
|
12
20
|
} | {
|
|
@@ -14,39 +22,52 @@ export declare const tags: import("tailwind-variants").TVReturnType<{
|
|
|
14
22
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
15
23
|
base?: import("tailwind-variants").ClassValue;
|
|
16
24
|
span?: import("tailwind-variants").ClassValue;
|
|
25
|
+
close?: import("tailwind-variants").ClassValue;
|
|
17
26
|
tag?: import("tailwind-variants").ClassValue;
|
|
18
27
|
input?: import("tailwind-variants").ClassValue;
|
|
19
|
-
|
|
28
|
+
error?: import("tailwind-variants").ClassValue;
|
|
29
|
+
info?: import("tailwind-variants").ClassValue;
|
|
30
|
+
warning?: import("tailwind-variants").ClassValue;
|
|
20
31
|
};
|
|
21
32
|
};
|
|
22
33
|
} | {}, {
|
|
23
34
|
base: string;
|
|
24
35
|
tag: string;
|
|
25
36
|
span: string;
|
|
26
|
-
|
|
37
|
+
close: string;
|
|
27
38
|
input: string;
|
|
39
|
+
info: string;
|
|
40
|
+
warning: string;
|
|
41
|
+
error: string;
|
|
28
42
|
}, undefined, {
|
|
29
43
|
[key: string]: {
|
|
30
44
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
31
45
|
base?: import("tailwind-variants").ClassValue;
|
|
32
46
|
span?: import("tailwind-variants").ClassValue;
|
|
47
|
+
close?: import("tailwind-variants").ClassValue;
|
|
33
48
|
tag?: import("tailwind-variants").ClassValue;
|
|
34
49
|
input?: import("tailwind-variants").ClassValue;
|
|
35
|
-
|
|
50
|
+
error?: import("tailwind-variants").ClassValue;
|
|
51
|
+
info?: import("tailwind-variants").ClassValue;
|
|
52
|
+
warning?: import("tailwind-variants").ClassValue;
|
|
36
53
|
};
|
|
37
54
|
};
|
|
38
55
|
} | {}, {
|
|
39
56
|
base: string;
|
|
40
57
|
tag: string;
|
|
41
58
|
span: string;
|
|
42
|
-
|
|
59
|
+
close: string;
|
|
43
60
|
input: string;
|
|
61
|
+
info: string;
|
|
62
|
+
warning: string;
|
|
63
|
+
error: string;
|
|
44
64
|
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
45
65
|
base: string;
|
|
46
66
|
tag: string;
|
|
47
67
|
span: string;
|
|
48
|
-
|
|
68
|
+
close: string;
|
|
49
69
|
input: string;
|
|
70
|
+
info: string;
|
|
71
|
+
warning: string;
|
|
72
|
+
error: string;
|
|
50
73
|
}, undefined, unknown, unknown, undefined>>;
|
|
51
|
-
export type TagsSlots = keyof typeof tags.slots;
|
|
52
|
-
export type TagsTheme = Partial<Record<TagsSlots, ClassValue>>;
|
package/dist/forms/tags/theme.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const tags = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: "border bg-gray-50 border-gray-300 rounded-lg flex focus-within:ring-primary-500 focus-within:ring-1 focus-within:border-primary-500
|
|
4
|
+
base: "border bg-gray-50 border-gray-300 rounded-lg flex focus-within:ring-primary-500 focus-within:ring-1 focus-within:border-primary-500 scrollbar-hidden",
|
|
5
5
|
tag: "flex items-center rounded-lg bg-gray-100 text-gray-900 border border-gray-300 my-1 ml-1 px-2 text-sm max-w-full min-w-fit",
|
|
6
6
|
span: "items-center",
|
|
7
|
-
|
|
8
|
-
input: "block text-sm m-2.5 p-0 bg-transparent border-none outline-none text-gray-900 h-min w-full min-w-fit focus:ring-0 placeholder-gray-400"
|
|
7
|
+
close: "my-auto ml-1",
|
|
8
|
+
input: "block text-sm m-2.5 p-0 bg-transparent border-none outline-none text-gray-900 h-min w-full min-w-fit focus:ring-0 placeholder-gray-400",
|
|
9
|
+
info: "mt-1 text-sm text-blue-500",
|
|
10
|
+
warning: "mt-1 text-sm text-yellow-500",
|
|
11
|
+
error: "mt-1 text-sm text-red-500"
|
|
9
12
|
}
|
|
10
13
|
});
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
@component
|
|
59
59
|
[Go to docs](https://flowbite-svelte.com/)
|
|
60
60
|
## Type
|
|
61
|
-
[TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
61
|
+
[TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L930)
|
|
62
62
|
## Props
|
|
63
63
|
@prop header
|
|
64
64
|
@prop footer
|
|
@@ -2,7 +2,7 @@ import { type TextareaProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L930)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop header
|
|
8
8
|
* @prop footer
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
@component
|
|
270
270
|
[Go to docs](https://flowbite-svelte.com/)
|
|
271
271
|
## Type
|
|
272
|
-
[TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
272
|
+
[TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L901)
|
|
273
273
|
## Props
|
|
274
274
|
@prop id = "time"
|
|
275
275
|
@prop endId = "end-time"
|
|
@@ -2,7 +2,7 @@ import { type TimepickerProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L901)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop id = "time"
|
|
8
8
|
* @prop endId = "end-time"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@component
|
|
27
27
|
[Go to docs](https://flowbite-svelte.com/)
|
|
28
28
|
## Type
|
|
29
|
-
[ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
29
|
+
[ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L952)
|
|
30
30
|
## Props
|
|
31
31
|
@prop children
|
|
32
32
|
@prop size = "default"
|
|
@@ -2,7 +2,7 @@ import { type ToggleProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L952)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size = "default"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
@component
|
|
40
40
|
[Go to docs](https://flowbite-svelte.com/)
|
|
41
41
|
## Type
|
|
42
|
-
[GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
42
|
+
[GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L969)
|
|
43
43
|
## Props
|
|
44
44
|
@prop children
|
|
45
45
|
@prop figure
|
|
@@ -2,7 +2,7 @@ import { type GalleryProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L969)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop figure
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
@component
|
|
34
34
|
[Go to docs](https://flowbite-svelte.com/)
|
|
35
35
|
## Type
|
|
36
|
-
[IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
36
|
+
[IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L980)
|
|
37
37
|
## Props
|
|
38
38
|
@prop children
|
|
39
39
|
@prop color = "primary"
|
|
@@ -2,7 +2,7 @@ import { type IndicatorProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [IndicatorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L980)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color = "primary"
|
package/dist/kbd/Kbd.svelte
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@component
|
|
20
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
## Type
|
|
22
|
-
[KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L991)
|
|
23
23
|
## Props
|
|
24
24
|
@prop children
|
|
25
25
|
@prop class: className
|
package/dist/kbd/Kbd.svelte.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type KbdProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [KbdProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L991)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
@component
|
|
47
47
|
[Go to docs](https://flowbite-svelte.com/)
|
|
48
48
|
## Type
|
|
49
|
-
[ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
49
|
+
[ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1010)
|
|
50
50
|
## Props
|
|
51
51
|
@prop children
|
|
52
52
|
@prop items
|
|
@@ -2,7 +2,7 @@ import { type ListgroupProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ListgroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1010)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop items
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
@component
|
|
46
46
|
[Go to docs](https://flowbite-svelte.com/)
|
|
47
47
|
## Type
|
|
48
|
-
[ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
48
|
+
[ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1021)
|
|
49
49
|
## Props
|
|
50
50
|
@prop children
|
|
51
51
|
@prop active
|
|
@@ -2,7 +2,7 @@ import { type ListgroupItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ListgroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1021)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop active
|