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
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
@component
|
|
55
55
|
[Go to docs](https://flowbite-svelte.com/)
|
|
56
56
|
## Type
|
|
57
|
-
[ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
57
|
+
[ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L335)
|
|
58
58
|
## Props
|
|
59
59
|
@prop value
|
|
60
60
|
@prop selected = false
|
|
@@ -2,7 +2,7 @@ import { type ButtonToggleProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L335)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop value
|
|
8
8
|
* @prop selected = false
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@component
|
|
13
13
|
[Go to docs](https://flowbite-svelte.com/)
|
|
14
14
|
## Type
|
|
15
|
-
[CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
15
|
+
[CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L352)
|
|
16
16
|
## Props
|
|
17
17
|
@prop class: className
|
|
18
18
|
@prop ...restProps
|
|
@@ -2,7 +2,7 @@ import { type CheckIconProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L352)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop ...restProps
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
@component
|
|
59
59
|
[Go to docs](https://flowbite-svelte.com/)
|
|
60
60
|
## Type
|
|
61
|
-
[CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
61
|
+
[CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L675)
|
|
62
62
|
## Props
|
|
63
63
|
@prop children
|
|
64
64
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type CheckboxButtonProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L675)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
@component
|
|
53
53
|
[Go to docs](https://flowbite-svelte.com/)
|
|
54
54
|
## Type
|
|
55
|
-
[DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
55
|
+
[DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L688)
|
|
56
56
|
## Props
|
|
57
57
|
@prop children
|
|
58
58
|
@prop files = $bindable<FileList | null>()
|
|
@@ -2,7 +2,7 @@ import { type DropzoneProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L688)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop files = $bindable<FileList | null>()
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
@component
|
|
34
34
|
[Go to docs](https://flowbite-svelte.com/)
|
|
35
35
|
## Type
|
|
36
|
-
[FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
36
|
+
[FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L697)
|
|
37
37
|
## Props
|
|
38
38
|
@prop files = $bindable()
|
|
39
39
|
@prop size = "md"
|
|
@@ -2,7 +2,7 @@ import { type FileuploadProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L697)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop files = $bindable()
|
|
8
8
|
* @prop size = "md"
|
|
@@ -2,6 +2,8 @@ import { type VariantProps } from "tailwind-variants";
|
|
|
2
2
|
import type { ClassValue } from "svelte/elements";
|
|
3
3
|
import type { Classes } from "../../theme/themeUtils";
|
|
4
4
|
export type FileuploadViariants = VariantProps<typeof fileupload> & Classes<typeof fileupload>;
|
|
5
|
+
export type FileuploadSlots = keyof typeof fileupload.slots;
|
|
6
|
+
export type FileuploadTheme = Partial<Record<FileuploadSlots, ClassValue>>;
|
|
5
7
|
export declare const fileupload: import("tailwind-variants").TVReturnType<{
|
|
6
8
|
size: {
|
|
7
9
|
sm: {
|
|
@@ -54,5 +56,3 @@ export declare const fileupload: import("tailwind-variants").TVReturnType<{
|
|
|
54
56
|
close: string;
|
|
55
57
|
svg: string;
|
|
56
58
|
}, undefined, unknown, unknown, undefined>>;
|
|
57
|
-
export type FileuploadSlots = keyof typeof fileupload.slots;
|
|
58
|
-
export type FileuploadTheme = Partial<Record<FileuploadSlots, ClassValue>>;
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
@component
|
|
165
165
|
[Go to docs](https://flowbite-svelte.com/)
|
|
166
166
|
## Type
|
|
167
|
-
[FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
167
|
+
[FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L711)
|
|
168
168
|
## Props
|
|
169
169
|
@prop children
|
|
170
170
|
@prop id = idGenerator()
|
|
@@ -2,7 +2,7 @@ import { type FloatingLabelInputProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L711)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop id = idGenerator()
|
|
@@ -2,6 +2,8 @@ import { type VariantProps } from "tailwind-variants";
|
|
|
2
2
|
import type { ClassValue } from "svelte/elements";
|
|
3
3
|
import type { Classes } from "../../theme/themeUtils";
|
|
4
4
|
export type FloatingLabelInputVaratiants = VariantProps<typeof floatingLabelInput> & Classes<typeof floatingLabelInput>;
|
|
5
|
+
export type FloatingLabelInputSlots = keyof typeof floatingLabelInput.slots;
|
|
6
|
+
export type FloatingLabelInputTheme = Partial<Record<FloatingLabelInputSlots, ClassValue>>;
|
|
5
7
|
export declare const floatingLabelInput: import("tailwind-variants").TVReturnType<{
|
|
6
8
|
variant: {
|
|
7
9
|
filled: {
|
|
@@ -348,5 +350,3 @@ export declare const floatingLabelInput: import("tailwind-variants").TVReturnTyp
|
|
|
348
350
|
combo: string;
|
|
349
351
|
svg: string;
|
|
350
352
|
}, undefined, unknown, unknown, undefined>>;
|
|
351
|
-
export type FloatingLabelInputSlots = keyof typeof floatingLabelInput.slots;
|
|
352
|
-
export type FloatingLabelInputTheme = Partial<Record<FloatingLabelInputSlots, ClassValue>>;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@component
|
|
20
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
## Type
|
|
22
|
-
[HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L734)
|
|
23
23
|
## Props
|
|
24
24
|
@prop children
|
|
25
25
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type HelperProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L734)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
2
|
import type { ClassValue } from "svelte/elements";
|
|
3
3
|
export type HelperVariants = VariantProps<typeof helper>;
|
|
4
|
+
export type HelperTheme = ClassValue;
|
|
4
5
|
export declare const helper: import("tailwind-variants").TVReturnType<{
|
|
5
6
|
color: {
|
|
6
7
|
disabled: string;
|
|
@@ -74,4 +75,3 @@ export declare const helper: import("tailwind-variants").TVReturnType<{
|
|
|
74
75
|
rose: string;
|
|
75
76
|
};
|
|
76
77
|
}, undefined, "text-xs font-normal text-gray-500 dark:text-gray-300", unknown, unknown, undefined>>;
|
|
77
|
-
export type HelperTheme = ClassValue;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
@component
|
|
45
45
|
[Go to docs](https://flowbite-svelte.com/)
|
|
46
46
|
## Type
|
|
47
|
-
[InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
47
|
+
[InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L776)
|
|
48
48
|
## Props
|
|
49
49
|
@prop children
|
|
50
50
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type InputAddonProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L776)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -2,6 +2,8 @@ import { type VariantProps } from "tailwind-variants";
|
|
|
2
2
|
import type { ClassValue } from "svelte/elements";
|
|
3
3
|
import type { Classes } from "../../theme/themeUtils";
|
|
4
4
|
export type InputVariants = VariantProps<typeof input> & Classes<typeof input>;
|
|
5
|
+
export type InputSlots = keyof typeof input.slots;
|
|
6
|
+
export type InputTheme = Partial<Record<InputSlots, ClassValue>>;
|
|
5
7
|
export declare const input: import("tailwind-variants").TVReturnType<{
|
|
6
8
|
size: {
|
|
7
9
|
sm: {
|
|
@@ -300,5 +302,3 @@ export declare const input: import("tailwind-variants").TVReturnType<{
|
|
|
300
302
|
svg: string;
|
|
301
303
|
wrapper: string;
|
|
302
304
|
}, undefined, unknown, unknown, undefined>>;
|
|
303
|
-
export type InputSlots = keyof typeof input.slots;
|
|
304
|
-
export type InputTheme = Partial<Record<InputSlots, ClassValue>>;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
@component
|
|
24
24
|
[Go to docs](https://flowbite-svelte.com/)
|
|
25
25
|
## Type
|
|
26
|
-
[LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
26
|
+
[LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L791)
|
|
27
27
|
## Props
|
|
28
28
|
@prop children
|
|
29
29
|
@prop color = "gray"
|
|
@@ -2,7 +2,7 @@ import { type LabelProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L791)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color = "gray"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
2
|
import type { ClassValue } from "svelte/elements";
|
|
3
3
|
export type LabelVariants = VariantProps<typeof label>;
|
|
4
|
+
export type LabelTheme = ClassValue;
|
|
4
5
|
export declare const label: import("tailwind-variants").TVReturnType<{
|
|
5
6
|
color: {
|
|
6
7
|
disabled: string;
|
|
@@ -74,4 +75,3 @@ export declare const label: import("tailwind-variants").TVReturnType<{
|
|
|
74
75
|
rose: string;
|
|
75
76
|
};
|
|
76
77
|
}, undefined, "text-sm rtl:text-right font-medium block", unknown, unknown, undefined>>;
|
|
77
|
-
export type LabelTheme = ClassValue;
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { getTheme } from "../../theme/themeUtils";
|
|
6
6
|
|
|
7
|
-
let { children, phoneIcon = true, pattern = "[0-9]{3}-[0-9]{3}-[0-9]{4}", phoneType = "default", floatingLabel = "Phone number", labelFor = "floating-phone-number", classes, ...restProps }: PhoneInputProps = $props();
|
|
7
|
+
let { children, phoneIcon = true, pattern = "[0-9]{3}-[0-9]{3}-[0-9]{4}", phoneType = "default", floatingLabel = "Phone number", labelFor = "floating-phone-number", class: className, classes, ...restProps }: PhoneInputProps = $props();
|
|
8
8
|
|
|
9
9
|
const theme = getTheme("phoneInput");
|
|
10
10
|
|
|
11
|
-
const {
|
|
11
|
+
const { div, svg, input, span, floatingInput, label } = $derived(phoneinput({ phoneType, phoneIcon }));
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
{#snippet phoneIconSnippet()}
|
|
15
|
-
<svg class={
|
|
15
|
+
<svg class={svg({ class: clsx((theme as PhoneInputTheme)?.svg) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 19 18">
|
|
16
16
|
<path d="M18 13.446a3.02 3.02 0 0 0-.946-1.985l-1.4-1.4a3.054 3.054 0 0 0-4.218 0l-.7.7a.983.983 0 0 1-1.39 0l-2.1-2.1a.983.983 0 0 1 0-1.389l.7-.7a2.98 2.98 0 0 0 0-4.217l-1.4-1.4a2.824 2.824 0 0 0-4.218 0c-3.619 3.619-3 8.229 1.752 12.979C6.785 16.639 9.45 18 11.912 18a7.175 7.175 0 0 0 5.139-2.325A2.9 2.9 0 0 0 18 13.446Z" />
|
|
17
17
|
</svg>
|
|
18
18
|
{/snippet}
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
{#if phoneType === "default" || phoneType === "countryCode"}
|
|
21
21
|
<div class="relative">
|
|
22
22
|
{#if phoneIcon}
|
|
23
|
-
<div class={
|
|
23
|
+
<div class={div({ class: clsx((theme as PhoneInputTheme)?.div, classes?.div) })}>
|
|
24
24
|
{@render phoneIconSnippet()}
|
|
25
25
|
</div>
|
|
26
26
|
{/if}
|
|
27
|
-
<input type="tel" {pattern} {...restProps} class={
|
|
27
|
+
<input type="tel" {pattern} {...restProps} class={input({ class: clsx((theme as PhoneInputTheme)?.input, classes?.input) })} />
|
|
28
28
|
</div>
|
|
29
29
|
{:else if phoneType === "floating"}
|
|
30
30
|
<div class="relative">
|
|
31
31
|
{#if phoneIcon}
|
|
32
|
-
<span class={
|
|
32
|
+
<span class={span({ class: clsx((theme as PhoneInputTheme)?.span, classes?.span) })}>
|
|
33
33
|
{@render phoneIconSnippet()}
|
|
34
34
|
</span>
|
|
35
35
|
{/if}
|
|
36
36
|
<input type="tel" class={floatingInput({ class: clsx((theme as PhoneInputTheme)?.floatingInput, classes?.floatingInput) })} {pattern} {...restProps} />
|
|
37
|
-
<label for={labelFor} class={
|
|
37
|
+
<label for={labelFor} class={label({ class: clsx((theme as PhoneInputTheme)?.label, classes?.label) })}>{floatingLabel}</label>
|
|
38
38
|
</div>
|
|
39
39
|
{/if}
|
|
@@ -6,81 +6,81 @@ export type phoneInputClasses = Partial<{
|
|
|
6
6
|
export type PhoneInputVariants = VariantProps<typeof phoneinput> & {
|
|
7
7
|
classes?: phoneInputClasses;
|
|
8
8
|
};
|
|
9
|
+
export type PhoneInputSlots = keyof typeof phoneinput.slots;
|
|
10
|
+
export type PhoneInputTheme = Partial<Record<PhoneInputSlots, ClassValue>>;
|
|
9
11
|
export declare const phoneinput: import("tailwind-variants").TVReturnType<{
|
|
10
12
|
phoneType: {
|
|
11
13
|
default: {};
|
|
12
14
|
floating: {
|
|
13
|
-
|
|
15
|
+
svg: string;
|
|
14
16
|
};
|
|
15
17
|
countryCode: {
|
|
16
|
-
|
|
18
|
+
input: string;
|
|
17
19
|
};
|
|
18
20
|
copy: {};
|
|
19
21
|
advanced: {};
|
|
20
22
|
};
|
|
21
23
|
phoneIcon: {
|
|
22
24
|
true: {
|
|
23
|
-
|
|
25
|
+
input: string;
|
|
24
26
|
};
|
|
25
27
|
false: {};
|
|
26
28
|
};
|
|
27
29
|
}, {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
div: string;
|
|
31
|
+
svg: string;
|
|
32
|
+
input: string;
|
|
33
|
+
span: string;
|
|
32
34
|
floatingInput: string;
|
|
33
|
-
|
|
35
|
+
label: string;
|
|
34
36
|
}, undefined, {
|
|
35
37
|
phoneType: {
|
|
36
38
|
default: {};
|
|
37
39
|
floating: {
|
|
38
|
-
|
|
40
|
+
svg: string;
|
|
39
41
|
};
|
|
40
42
|
countryCode: {
|
|
41
|
-
|
|
43
|
+
input: string;
|
|
42
44
|
};
|
|
43
45
|
copy: {};
|
|
44
46
|
advanced: {};
|
|
45
47
|
};
|
|
46
48
|
phoneIcon: {
|
|
47
49
|
true: {
|
|
48
|
-
|
|
50
|
+
input: string;
|
|
49
51
|
};
|
|
50
52
|
false: {};
|
|
51
53
|
};
|
|
52
54
|
}, {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
div: string;
|
|
56
|
+
svg: string;
|
|
57
|
+
input: string;
|
|
58
|
+
span: string;
|
|
57
59
|
floatingInput: string;
|
|
58
|
-
|
|
60
|
+
label: string;
|
|
59
61
|
}, import("tailwind-variants").TVReturnType<{
|
|
60
62
|
phoneType: {
|
|
61
63
|
default: {};
|
|
62
64
|
floating: {
|
|
63
|
-
|
|
65
|
+
svg: string;
|
|
64
66
|
};
|
|
65
67
|
countryCode: {
|
|
66
|
-
|
|
68
|
+
input: string;
|
|
67
69
|
};
|
|
68
70
|
copy: {};
|
|
69
71
|
advanced: {};
|
|
70
72
|
};
|
|
71
73
|
phoneIcon: {
|
|
72
74
|
true: {
|
|
73
|
-
|
|
75
|
+
input: string;
|
|
74
76
|
};
|
|
75
77
|
false: {};
|
|
76
78
|
};
|
|
77
79
|
}, {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
div: string;
|
|
81
|
+
svg: string;
|
|
82
|
+
input: string;
|
|
83
|
+
span: string;
|
|
82
84
|
floatingInput: string;
|
|
83
|
-
|
|
85
|
+
label: string;
|
|
84
86
|
}, undefined, unknown, unknown, undefined>>;
|
|
85
|
-
export type PhoneInputSlots = keyof typeof phoneinput.slots;
|
|
86
|
-
export type PhoneInputTheme = Partial<Record<PhoneInputSlots, ClassValue>>;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const phoneinput = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
div: "absolute inset-y-0 start-0 top-0 flex items-center ps-3.5 pointer-events-none",
|
|
5
|
+
svg: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
6
|
+
input: "bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary-500 focus:border-primary-500 block w-full p-2.5 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",
|
|
7
|
+
span: "absolute start-0 bottom-3 text-gray-500 dark:text-gray-400",
|
|
8
8
|
floatingInput: "block py-2.5 ps-6 pe-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer",
|
|
9
|
-
|
|
9
|
+
label: "absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-3 origin-[0] peer-placeholder-shown:start-6 peer-focus:start-0 peer-focus:text-primary-600 peer-focus:dark:text-primary-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto"
|
|
10
10
|
},
|
|
11
11
|
variants: {
|
|
12
12
|
phoneType: {
|
|
13
13
|
default: {},
|
|
14
14
|
floating: {
|
|
15
|
-
|
|
15
|
+
svg: "w-4 h-4 rtl:rotate-[270deg]"
|
|
16
16
|
},
|
|
17
17
|
countryCode: {
|
|
18
|
-
|
|
18
|
+
input: "rounded-none rounded-e-lg"
|
|
19
19
|
},
|
|
20
20
|
copy: {},
|
|
21
21
|
advanced: {}
|
|
22
22
|
},
|
|
23
23
|
phoneIcon: {
|
|
24
|
-
true: {
|
|
24
|
+
true: { input: "ps-10" },
|
|
25
25
|
false: {}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -3,17 +3,20 @@
|
|
|
3
3
|
import { radio, type RadioTheme } from ".";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { type RadioProps, Label } from "../..";
|
|
6
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
6
|
+
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
7
7
|
|
|
8
|
-
let { children, "aria-describedby": ariaDescribedby, inline = false, labelClass, color = "primary", custom = false, group = $bindable<T>(), value = $bindable<T>(), inputClass, ...restProps }: RadioProps<T> = $props();
|
|
8
|
+
let { children, "aria-describedby": ariaDescribedby, inline = false, labelClass, color = "primary", custom = false, group = $bindable<T>(), value = $bindable<T>(), class: className, inputClass, classes, ...restProps }: RadioProps<T> = $props();
|
|
9
|
+
|
|
10
|
+
warnThemeDeprecation("Fileupload", { inputClass, labelClass }, { inputClass: "class", labelClass: "label" });
|
|
11
|
+
let styling = $derived(classes ?? { label: labelClass });
|
|
9
12
|
|
|
10
13
|
const theme = getTheme("radio");
|
|
11
14
|
|
|
12
15
|
const { input, label } = $derived(radio({ color, tinted: !!getContext("background"), custom, inline }));
|
|
13
16
|
</script>
|
|
14
17
|
|
|
15
|
-
<Label class={label({ class: clsx((theme as RadioTheme)?.label,
|
|
16
|
-
<input type="radio" bind:group {value} aria-describedby={ariaDescribedby} {...restProps} class={input({ class: clsx((theme as RadioTheme)?.input, inputClass) })} />
|
|
18
|
+
<Label class={label({ class: clsx((theme as RadioTheme)?.label, styling.label) })}>
|
|
19
|
+
<input type="radio" bind:group {value} aria-describedby={ariaDescribedby} {...restProps} class={input({ class: clsx((theme as RadioTheme)?.input, className ?? inputClass) })} />
|
|
17
20
|
{@render children?.()}
|
|
18
21
|
</Label>
|
|
19
22
|
|
|
@@ -1,6 +1,10 @@
|
|
|
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 RadioVariants = VariantProps<typeof radio> & Classes<typeof radio>;
|
|
5
|
+
export type RadioSlots = keyof typeof radio.slots;
|
|
6
|
+
export type RadioTheme = Partial<Record<RadioSlots, ClassValue>>;
|
|
7
|
+
export type RadioButtonTheme = ClassValue;
|
|
4
8
|
export declare const radio: import("tailwind-variants").TVReturnType<{
|
|
5
9
|
color: {
|
|
6
10
|
primary: {
|
|
@@ -272,8 +276,6 @@ export declare const radio: import("tailwind-variants").TVReturnType<{
|
|
|
272
276
|
input: string;
|
|
273
277
|
label: string;
|
|
274
278
|
}, undefined, unknown, unknown, undefined>>;
|
|
275
|
-
export type RadioSlots = keyof typeof radio.slots;
|
|
276
|
-
export type RadioTheme = Partial<Record<RadioSlots, ClassValue>>;
|
|
277
279
|
export declare const radiobutton: import("tailwind-variants").TVReturnType<{
|
|
278
280
|
inline: {
|
|
279
281
|
true: string;
|
|
@@ -290,4 +292,3 @@ export declare const radiobutton: import("tailwind-variants").TVReturnType<{
|
|
|
290
292
|
false: string;
|
|
291
293
|
};
|
|
292
294
|
}, undefined, "", unknown, unknown, undefined>>;
|
|
293
|
-
export type RadioButtonTheme = ClassValue;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@component
|
|
18
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
19
19
|
## Type
|
|
20
|
-
[RangeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
20
|
+
[RangeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L819)
|
|
21
21
|
## Props
|
|
22
22
|
@prop value = $bindable()
|
|
23
23
|
@prop appearance = "none"
|
|
@@ -2,7 +2,7 @@ import { type RangeProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RangeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RangeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L819)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop value = $bindable()
|
|
8
8
|
* @prop appearance = "none"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
2
|
import type { ClassValue } from "svelte/elements";
|
|
3
3
|
export type RangeVariants = VariantProps<typeof range>;
|
|
4
|
+
export type RangeTheme = ClassValue;
|
|
4
5
|
export declare const range: import("tailwind-variants").TVReturnType<{
|
|
5
6
|
size: {
|
|
6
7
|
sm: string;
|
|
@@ -65,4 +66,3 @@ export declare const range: import("tailwind-variants").TVReturnType<{
|
|
|
65
66
|
none: string;
|
|
66
67
|
};
|
|
67
68
|
}, undefined, "w-full bg-gray-200 rounded-lg cursor-pointer dark:bg-gray-700", unknown, unknown, undefined>>;
|
|
68
|
-
export type RangeTheme = ClassValue;
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
import { search, type SearchTheme } from ".";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { CloseButton, type SearchProps } from "../..";
|
|
5
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
5
|
+
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
6
6
|
|
|
7
|
-
let { children, inputClass, size, placeholder = "Search", value = $bindable(), elementRef = $bindable(), clearable = false, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, ...restProps }: SearchProps = $props();
|
|
7
|
+
let { children, inputClass, size, placeholder = "Search", value = $bindable(), elementRef = $bindable(), clearable = false, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, class: className, classes, ...restProps }: SearchProps = $props();
|
|
8
|
+
|
|
9
|
+
warnThemeDeprecation("Search", { inputClass, clearableSvgClass, clearableClass }, { inputClass: "input", clearableSvgClass: "svg", clearableClass: "close" });
|
|
10
|
+
let styling = $derived({ input: inputClass, svg: clearableSvgClass, close: clearableClass });
|
|
8
11
|
|
|
9
12
|
const theme = getTheme("search");
|
|
10
13
|
|
|
11
|
-
const { base, content, icon,
|
|
14
|
+
const { base, content, icon, close, input: inputCls, left } = $derived(search({ size }));
|
|
12
15
|
|
|
13
16
|
const clearAll = () => {
|
|
14
17
|
if (elementRef) {
|
|
@@ -19,20 +22,20 @@
|
|
|
19
22
|
};
|
|
20
23
|
</script>
|
|
21
24
|
|
|
22
|
-
<div class={base({ class: clsx((theme as SearchTheme)?.base) })}>
|
|
23
|
-
<div class={
|
|
24
|
-
<svg class={icon({ class: clsx((theme as SearchTheme)?.icon) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
|
|
25
|
+
<div class={base({ class: clsx((theme as SearchTheme)?.base, className) })}>
|
|
26
|
+
<div class={left({ class: clsx((theme as SearchTheme)?.left, classes?.left) })}>
|
|
27
|
+
<svg class={icon({ class: clsx((theme as SearchTheme)?.icon, classes?.icon) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
|
|
25
28
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z" />
|
|
26
29
|
</svg>
|
|
27
30
|
</div>
|
|
28
|
-
<input type="search" bind:value bind:this={elementRef} class={inputCls({ class: clsx((theme as SearchTheme)?.input,
|
|
31
|
+
<input type="search" bind:value bind:this={elementRef} class={inputCls({ class: clsx((theme as SearchTheme)?.input, styling.input) })} {placeholder} required {...restProps} />
|
|
29
32
|
{#if children}
|
|
30
|
-
<div class={content({ class: clsx((theme as SearchTheme)?.content) })}>
|
|
33
|
+
<div class={content({ class: clsx((theme as SearchTheme)?.content, classes?.content) })}>
|
|
31
34
|
{@render children()}
|
|
32
35
|
</div>
|
|
33
36
|
{/if}
|
|
34
37
|
{#if value !== undefined && value !== "" && clearable}
|
|
35
|
-
<CloseButton onclick={clearAll} class={
|
|
38
|
+
<CloseButton onclick={clearAll} class={close({ class: clsx((theme as SearchTheme)?.close, styling.close) })} color={clearableColor} aria-label="Clear search value" svgClass={clsx(styling.svg)} />
|
|
36
39
|
{/if}
|
|
37
40
|
</div>
|
|
38
41
|
|
|
@@ -40,7 +43,7 @@
|
|
|
40
43
|
@component
|
|
41
44
|
[Go to docs](https://flowbite-svelte.com/)
|
|
42
45
|
## Type
|
|
43
|
-
[SearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
46
|
+
[SearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L825)
|
|
44
47
|
## Props
|
|
45
48
|
@prop children
|
|
46
49
|
@prop inputClass
|
|
@@ -53,5 +56,7 @@
|
|
|
53
56
|
@prop clearableColor = "none"
|
|
54
57
|
@prop clearableClass
|
|
55
58
|
@prop clearableOnClick
|
|
59
|
+
@prop class:className
|
|
60
|
+
@prop classes
|
|
56
61
|
@prop ...restProps
|
|
57
62
|
-->
|
|
@@ -2,7 +2,7 @@ import { type SearchProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L825)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop inputClass
|
|
@@ -15,6 +15,8 @@ import { type SearchProps } from "../..";
|
|
|
15
15
|
* @prop clearableColor = "none"
|
|
16
16
|
* @prop clearableClass
|
|
17
17
|
* @prop clearableOnClick
|
|
18
|
+
* @prop class:className
|
|
19
|
+
* @prop classes
|
|
18
20
|
* @prop ...restProps
|
|
19
21
|
*/
|
|
20
22
|
declare const Search: import("svelte").Component<SearchProps, {}, "value" | "elementRef">;
|