@pajohns/flowbite-svelte 0.1.0
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/License +22 -0
- package/README.md +471 -0
- package/dist/accordion/Accordion.svelte +58 -0
- package/dist/accordion/Accordion.svelte.d.ts +18 -0
- package/dist/accordion/AccordionItem.svelte +131 -0
- package/dist/accordion/AccordionItem.svelte.d.ts +23 -0
- package/dist/accordion/index.d.ts +3 -0
- package/dist/accordion/index.js +3 -0
- package/dist/accordion/theme.d.ts +96 -0
- package/dist/accordion/theme.js +59 -0
- package/dist/alert/Alert.svelte +94 -0
- package/dist/alert/Alert.svelte.d.ts +22 -0
- package/dist/alert/index.d.ts +2 -0
- package/dist/alert/index.js +2 -0
- package/dist/alert/theme.d.ts +108 -0
- package/dist/alert/theme.js +149 -0
- package/dist/avatar/Avatar.svelte +68 -0
- package/dist/avatar/Avatar.svelte.d.ts +24 -0
- package/dist/avatar/index.d.ts +2 -0
- package/dist/avatar/index.js +2 -0
- package/dist/avatar/theme.d.ts +63 -0
- package/dist/avatar/theme.js +31 -0
- package/dist/badge/Badge.svelte +98 -0
- package/dist/badge/Badge.svelte.d.ts +26 -0
- package/dist/badge/index.d.ts +2 -0
- package/dist/badge/index.js +2 -0
- package/dist/badge/theme.d.ts +247 -0
- package/dist/badge/theme.js +250 -0
- package/dist/banner/Banner.svelte +85 -0
- package/dist/banner/Banner.svelte.d.ts +24 -0
- package/dist/banner/index.d.ts +2 -0
- package/dist/banner/index.js +2 -0
- package/dist/banner/theme.d.ts +229 -0
- package/dist/banner/theme.js +45 -0
- package/dist/bottom-navigation/BottomNav.svelte +70 -0
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +21 -0
- package/dist/bottom-navigation/BottomNavHeader.svelte +42 -0
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +16 -0
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +29 -0
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +14 -0
- package/dist/bottom-navigation/BottomNavItem.svelte +94 -0
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +20 -0
- package/dist/bottom-navigation/index.d.ts +5 -0
- package/dist/bottom-navigation/index.js +5 -0
- package/dist/bottom-navigation/theme.d.ts +349 -0
- package/dist/bottom-navigation/theme.js +113 -0
- package/dist/breadcrumb/Breadcrumb.svelte +44 -0
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +17 -0
- package/dist/breadcrumb/BreadcrumbItem.svelte +73 -0
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +20 -0
- package/dist/breadcrumb/index.d.ts +3 -0
- package/dist/breadcrumb/index.js +3 -0
- package/dist/breadcrumb/theme.d.ts +72 -0
- package/dist/breadcrumb/theme.js +57 -0
- package/dist/button-group/ButtonGroup.svelte +43 -0
- package/dist/button-group/ButtonGroup.svelte.d.ts +15 -0
- package/dist/button-group/index.d.ts +2 -0
- package/dist/button-group/index.js +2 -0
- package/dist/button-group/theme.d.ts +21 -0
- package/dist/button-group/theme.js +14 -0
- package/dist/buttons/Button.svelte +74 -0
- package/dist/buttons/Button.svelte.d.ts +22 -0
- package/dist/buttons/GradientButton.svelte +47 -0
- package/dist/buttons/GradientButton.svelte.d.ts +21 -0
- package/dist/buttons/index.d.ts +3 -0
- package/dist/buttons/index.js +3 -0
- package/dist/buttons/theme.d.ts +707 -0
- package/dist/buttons/theme.js +303 -0
- package/dist/card/Card.svelte +79 -0
- package/dist/card/Card.svelte.d.ts +21 -0
- package/dist/card/index.d.ts +2 -0
- package/dist/card/index.js +2 -0
- package/dist/card/theme.d.ts +403 -0
- package/dist/card/theme.js +186 -0
- package/dist/carousel/Carousel.svelte +242 -0
- package/dist/carousel/Carousel.svelte.d.ts +26 -0
- package/dist/carousel/CarouselIndicators.svelte +48 -0
- package/dist/carousel/CarouselIndicators.svelte.d.ts +16 -0
- package/dist/carousel/CarouselSlide.d.ts +5 -0
- package/dist/carousel/CarouselSlide.js +7 -0
- package/dist/carousel/ControlButton.svelte +47 -0
- package/dist/carousel/ControlButton.svelte.d.ts +16 -0
- package/dist/carousel/Controls.svelte +37 -0
- package/dist/carousel/Controls.svelte.d.ts +13 -0
- package/dist/carousel/Slide.svelte +55 -0
- package/dist/carousel/Slide.svelte.d.ts +15 -0
- package/dist/carousel/Thumbnail.svelte +23 -0
- package/dist/carousel/Thumbnail.svelte.d.ts +13 -0
- package/dist/carousel/Thumbnails.svelte +59 -0
- package/dist/carousel/Thumbnails.svelte.d.ts +17 -0
- package/dist/carousel/index.d.ts +8 -0
- package/dist/carousel/index.js +8 -0
- package/dist/carousel/theme.d.ts +142 -0
- package/dist/carousel/theme.js +68 -0
- package/dist/clipboard/Clipboard.svelte +58 -0
- package/dist/clipboard/Clipboard.svelte.d.ts +17 -0
- package/dist/clipboard/index.d.ts +2 -0
- package/dist/clipboard/index.js +2 -0
- package/dist/clipboard/theme.d.ts +18 -0
- package/dist/clipboard/theme.js +13 -0
- package/dist/clipboard-manager/ClipboardManager.svelte +496 -0
- package/dist/clipboard-manager/ClipboardManager.svelte.d.ts +4 -0
- package/dist/clipboard-manager/index.d.ts +2 -0
- package/dist/clipboard-manager/index.js +2 -0
- package/dist/clipboard-manager/theme.d.ts +169 -0
- package/dist/clipboard-manager/theme.js +73 -0
- package/dist/command-palette/CommandPalette.svelte +209 -0
- package/dist/command-palette/CommandPalette.svelte.d.ts +20 -0
- package/dist/command-palette/index.d.ts +1 -0
- package/dist/command-palette/index.js +1 -0
- package/dist/command-palette/theme.d.ts +43 -0
- package/dist/command-palette/theme.js +17 -0
- package/dist/context.d.ts +50 -0
- package/dist/context.js +71 -0
- package/dist/darkmode/DarkMode.svelte +75 -0
- package/dist/darkmode/DarkMode.svelte.d.ts +16 -0
- package/dist/darkmode/index.d.ts +2 -0
- package/dist/darkmode/index.js +2 -0
- package/dist/darkmode/theme.d.ts +1 -0
- package/dist/darkmode/theme.js +4 -0
- package/dist/datepicker/Datepicker.svelte +589 -0
- package/dist/datepicker/Datepicker.svelte.d.ts +42 -0
- package/dist/datepicker/index.d.ts +2 -0
- package/dist/datepicker/index.js +2 -0
- package/dist/datepicker/theme.d.ts +388 -0
- package/dist/datepicker/theme.js +57 -0
- package/dist/device-mockups/Android.svelte +60 -0
- package/dist/device-mockups/Android.svelte.d.ts +21 -0
- package/dist/device-mockups/DefaultMockup.svelte +57 -0
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +20 -0
- package/dist/device-mockups/Desktop.svelte +51 -0
- package/dist/device-mockups/Desktop.svelte.d.ts +18 -0
- package/dist/device-mockups/DeviceMockup.svelte +39 -0
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +13 -0
- package/dist/device-mockups/Ios.svelte +57 -0
- package/dist/device-mockups/Ios.svelte.d.ts +20 -0
- package/dist/device-mockups/Laptop.svelte +55 -0
- package/dist/device-mockups/Laptop.svelte.d.ts +18 -0
- package/dist/device-mockups/Smartwatch.svelte +58 -0
- package/dist/device-mockups/Smartwatch.svelte.d.ts +20 -0
- package/dist/device-mockups/Tablet.svelte +57 -0
- package/dist/device-mockups/Tablet.svelte.d.ts +20 -0
- package/dist/device-mockups/index.d.ts +9 -0
- package/dist/device-mockups/index.js +9 -0
- package/dist/device-mockups/theme.d.ts +377 -0
- package/dist/device-mockups/theme.js +76 -0
- package/dist/dialog/Dialog.svelte +200 -0
- package/dist/dialog/Dialog.svelte.d.ts +28 -0
- package/dist/dialog/index.d.ts +2 -0
- package/dist/dialog/index.js +2 -0
- package/dist/dialog/theme.d.ts +16 -0
- package/dist/dialog/theme.js +17 -0
- package/dist/drawer/Drawer.svelte +163 -0
- package/dist/drawer/Drawer.svelte.d.ts +24 -0
- package/dist/drawer/DrawerHandle.svelte +33 -0
- package/dist/drawer/DrawerHandle.svelte.d.ts +16 -0
- package/dist/drawer/Drawerhead.svelte +52 -0
- package/dist/drawer/Drawerhead.svelte.d.ts +17 -0
- package/dist/drawer/index.d.ts +4 -0
- package/dist/drawer/index.js +4 -0
- package/dist/drawer/theme.d.ts +167 -0
- package/dist/drawer/theme.js +82 -0
- package/dist/dropdown/Dropdown.svelte +53 -0
- package/dist/dropdown/Dropdown.svelte.d.ts +19 -0
- package/dist/dropdown/DropdownDivider.svelte +22 -0
- package/dist/dropdown/DropdownDivider.svelte.d.ts +12 -0
- package/dist/dropdown/DropdownGroup.svelte +25 -0
- package/dist/dropdown/DropdownGroup.svelte.d.ts +13 -0
- package/dist/dropdown/DropdownHeader.svelte +25 -0
- package/dist/dropdown/DropdownHeader.svelte.d.ts +13 -0
- package/dist/dropdown/DropdownItem.svelte +60 -0
- package/dist/dropdown/DropdownItem.svelte.d.ts +19 -0
- package/dist/dropdown/index.d.ts +6 -0
- package/dist/dropdown/index.js +6 -0
- package/dist/dropdown/theme.d.ts +44 -0
- package/dist/dropdown/theme.js +20 -0
- package/dist/footer/Footer.svelte +28 -0
- package/dist/footer/Footer.svelte.d.ts +14 -0
- package/dist/footer/FooterBrand.svelte +45 -0
- package/dist/footer/FooterBrand.svelte.d.ts +19 -0
- package/dist/footer/FooterCopyright.svelte +55 -0
- package/dist/footer/FooterCopyright.svelte.d.ts +20 -0
- package/dist/footer/FooterIcon.svelte +31 -0
- package/dist/footer/FooterIcon.svelte.d.ts +15 -0
- package/dist/footer/FooterLink.svelte +43 -0
- package/dist/footer/FooterLink.svelte.d.ts +17 -0
- package/dist/footer/FooterLinkGroup.svelte +25 -0
- package/dist/footer/FooterLinkGroup.svelte.d.ts +13 -0
- package/dist/footer/index.d.ts +7 -0
- package/dist/footer/index.js +7 -0
- package/dist/footer/theme.d.ts +137 -0
- package/dist/footer/theme.js +39 -0
- package/dist/forms/button-toggle/ButtonToggle.svelte +98 -0
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +21 -0
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte +115 -0
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte.d.ts +4 -0
- package/dist/forms/button-toggle/CheckIcon.svelte +31 -0
- package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +12 -0
- package/dist/forms/button-toggle/index.d.ts +4 -0
- package/dist/forms/button-toggle/index.js +4 -0
- package/dist/forms/button-toggle/theme.d.ts +347 -0
- package/dist/forms/button-toggle/theme.js +129 -0
- package/dist/forms/checkbox/Checkbox.svelte +84 -0
- package/dist/forms/checkbox/Checkbox.svelte.d.ts +4 -0
- package/dist/forms/checkbox/CheckboxButton.svelte +38 -0
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +21 -0
- package/dist/forms/checkbox/index.d.ts +3 -0
- package/dist/forms/checkbox/index.js +3 -0
- package/dist/forms/checkbox/theme.d.ts +321 -0
- package/dist/forms/checkbox/theme.js +114 -0
- package/dist/forms/dropzone/Dropzone.svelte +64 -0
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +17 -0
- package/dist/forms/dropzone/index.d.ts +2 -0
- package/dist/forms/dropzone/index.js +2 -0
- package/dist/forms/dropzone/theme.d.ts +1 -0
- package/dist/forms/dropzone/theme.js +4 -0
- package/dist/forms/fileupload/Fileupload.svelte +73 -0
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +22 -0
- package/dist/forms/fileupload/index.d.ts +2 -0
- package/dist/forms/fileupload/index.js +2 -0
- package/dist/forms/fileupload/theme.d.ts +55 -0
- package/dist/forms/fileupload/theme.js +16 -0
- package/dist/forms/floating-label/FloatingLabelInput.svelte +240 -0
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +32 -0
- package/dist/forms/floating-label/index.d.ts +2 -0
- package/dist/forms/floating-label/index.js +2 -0
- package/dist/forms/floating-label/theme.d.ts +349 -0
- package/dist/forms/floating-label/theme.js +182 -0
- package/dist/forms/helper/Helper.svelte +28 -0
- package/dist/forms/helper/Helper.svelte.d.ts +14 -0
- package/dist/forms/helper/index.d.ts +2 -0
- package/dist/forms/helper/index.js +2 -0
- package/dist/forms/helper/theme.d.ts +75 -0
- package/dist/forms/helper/theme.js +29 -0
- package/dist/forms/input-addon/InputAddon.svelte +64 -0
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +14 -0
- package/dist/forms/input-addon/index.d.ts +1 -0
- package/dist/forms/input-addon/index.js +1 -0
- package/dist/forms/input-field/Input.svelte +309 -0
- package/dist/forms/input-field/Input.svelte.d.ts +4 -0
- package/dist/forms/input-field/index.d.ts +4 -0
- package/dist/forms/input-field/index.js +5 -0
- package/dist/forms/input-field/theme.d.ts +304 -0
- package/dist/forms/input-field/theme.js +100 -0
- package/dist/forms/label/Label.svelte +33 -0
- package/dist/forms/label/Label.svelte.d.ts +15 -0
- package/dist/forms/label/index.d.ts +2 -0
- package/dist/forms/label/index.js +2 -0
- package/dist/forms/label/theme.d.ts +75 -0
- package/dist/forms/label/theme.js +29 -0
- package/dist/forms/phoneinput/PhoneInput.svelte +51 -0
- package/dist/forms/phoneinput/PhoneInput.svelte.d.ts +4 -0
- package/dist/forms/phoneinput/index.d.ts +2 -0
- package/dist/forms/phoneinput/index.js +2 -0
- package/dist/forms/phoneinput/theme.d.ts +79 -0
- package/dist/forms/phoneinput/theme.js +28 -0
- package/dist/forms/radio/Radio.svelte +49 -0
- package/dist/forms/radio/Radio.svelte.d.ts +30 -0
- package/dist/forms/radio/RadioButton.svelte +26 -0
- package/dist/forms/radio/RadioButton.svelte.d.ts +30 -0
- package/dist/forms/radio/index.d.ts +3 -0
- package/dist/forms/radio/index.js +3 -0
- package/dist/forms/radio/theme.d.ts +290 -0
- package/dist/forms/radio/theme.js +95 -0
- package/dist/forms/range/Range.svelte +29 -0
- package/dist/forms/range/Range.svelte.d.ts +17 -0
- package/dist/forms/range/index.d.ts +2 -0
- package/dist/forms/range/index.js +2 -0
- package/dist/forms/range/theme.d.ts +66 -0
- package/dist/forms/range/theme.js +74 -0
- package/dist/forms/search/Search.svelte +87 -0
- package/dist/forms/search/Search.svelte.d.ts +24 -0
- package/dist/forms/search/index.d.ts +2 -0
- package/dist/forms/search/index.js +2 -0
- package/dist/forms/search/theme.d.ts +73 -0
- package/dist/forms/search/theme.js +34 -0
- package/dist/forms/select/MultiSelect.svelte +271 -0
- package/dist/forms/select/MultiSelect.svelte.d.ts +25 -0
- package/dist/forms/select/Select.svelte +82 -0
- package/dist/forms/select/Select.svelte.d.ts +25 -0
- package/dist/forms/select/index.d.ts +3 -0
- package/dist/forms/select/index.js +3 -0
- package/dist/forms/select/theme.d.ts +264 -0
- package/dist/forms/select/theme.js +99 -0
- package/dist/forms/tags/Tags.svelte +245 -0
- package/dist/forms/tags/Tags.svelte.d.ts +25 -0
- package/dist/forms/tags/index.d.ts +2 -0
- package/dist/forms/tags/index.js +2 -0
- package/dist/forms/tags/theme.d.ts +70 -0
- package/dist/forms/tags/theme.js +13 -0
- package/dist/forms/textarea/Textarea.svelte +128 -0
- package/dist/forms/textarea/Textarea.svelte.d.ts +30 -0
- package/dist/forms/textarea/index.d.ts +2 -0
- package/dist/forms/textarea/index.js +2 -0
- package/dist/forms/textarea/theme.d.ts +100 -0
- package/dist/forms/textarea/theme.js +37 -0
- package/dist/forms/timepicker/Timepicker.svelte +436 -0
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +34 -0
- package/dist/forms/timepicker/index.d.ts +2 -0
- package/dist/forms/timepicker/index.js +2 -0
- package/dist/forms/timepicker/theme.d.ts +190 -0
- package/dist/forms/timepicker/theme.js +72 -0
- package/dist/forms/toggle/Toggle.svelte +53 -0
- package/dist/forms/toggle/Toggle.svelte.d.ts +22 -0
- package/dist/forms/toggle/index.d.ts +2 -0
- package/dist/forms/toggle/index.js +2 -0
- package/dist/forms/toggle/theme.d.ts +280 -0
- package/dist/forms/toggle/theme.js +97 -0
- package/dist/gallery/Gallery.svelte +60 -0
- package/dist/gallery/Gallery.svelte.d.ts +17 -0
- package/dist/gallery/index.d.ts +2 -0
- package/dist/gallery/index.js +2 -0
- package/dist/gallery/theme.d.ts +34 -0
- package/dist/gallery/theme.js +7 -0
- package/dist/index.d.ts +89 -0
- package/dist/index.js +97 -0
- package/dist/indicator/Indicator.svelte +47 -0
- package/dist/indicator/Indicator.svelte.d.ts +19 -0
- package/dist/indicator/index.d.ts +2 -0
- package/dist/indicator/index.js +2 -0
- package/dist/indicator/theme.d.ts +177 -0
- package/dist/indicator/theme.js +114 -0
- package/dist/kanban/KanbanBoard.svelte +99 -0
- package/dist/kanban/KanbanBoard.svelte.d.ts +4 -0
- package/dist/kanban/KanbanCard.svelte +58 -0
- package/dist/kanban/KanbanCard.svelte.d.ts +16 -0
- package/dist/kanban/index.d.ts +3 -0
- package/dist/kanban/index.js +3 -0
- package/dist/kanban/theme.d.ts +108 -0
- package/dist/kanban/theme.js +43 -0
- package/dist/kbd/Kbd.svelte +27 -0
- package/dist/kbd/Kbd.svelte.d.ts +13 -0
- package/dist/kbd/index.d.ts +2 -0
- package/dist/kbd/index.js +2 -0
- package/dist/kbd/theme.d.ts +1 -0
- package/dist/kbd/theme.js +4 -0
- package/dist/list-group/Listgroup.svelte +71 -0
- package/dist/list-group/Listgroup.svelte.d.ts +21 -0
- package/dist/list-group/ListgroupItem.svelte +61 -0
- package/dist/list-group/ListgroupItem.svelte.d.ts +20 -0
- package/dist/list-group/index.d.ts +3 -0
- package/dist/list-group/index.js +3 -0
- package/dist/list-group/theme.d.ts +86 -0
- package/dist/list-group/theme.js +67 -0
- package/dist/mega-menu/MegaMenu.svelte +53 -0
- package/dist/mega-menu/MegaMenu.svelte.d.ts +20 -0
- package/dist/mega-menu/index.d.ts +2 -0
- package/dist/mega-menu/index.js +2 -0
- package/dist/mega-menu/theme.d.ts +46 -0
- package/dist/mega-menu/theme.js +24 -0
- package/dist/modal/Modal.svelte +107 -0
- package/dist/modal/Modal.svelte.d.ts +29 -0
- package/dist/modal/index.d.ts +2 -0
- package/dist/modal/index.js +2 -0
- package/dist/modal/theme.d.ts +82 -0
- package/dist/modal/theme.js +42 -0
- package/dist/navbar/Menu.svelte +46 -0
- package/dist/navbar/Menu.svelte.d.ts +16 -0
- package/dist/navbar/NavBrand.svelte +25 -0
- package/dist/navbar/NavBrand.svelte.d.ts +12 -0
- package/dist/navbar/NavContainer.svelte +26 -0
- package/dist/navbar/NavContainer.svelte.d.ts +14 -0
- package/dist/navbar/NavHamburger.svelte +50 -0
- package/dist/navbar/NavHamburger.svelte.d.ts +131 -0
- package/dist/navbar/NavLi.svelte +62 -0
- package/dist/navbar/NavLi.svelte.d.ts +16 -0
- package/dist/navbar/NavUl.svelte +108 -0
- package/dist/navbar/NavUl.svelte.d.ts +22 -0
- package/dist/navbar/Navbar.svelte +59 -0
- package/dist/navbar/Navbar.svelte.d.ts +17 -0
- package/dist/navbar/index.d.ts +7 -0
- package/dist/navbar/index.js +7 -0
- package/dist/navbar/theme.d.ts +233 -0
- package/dist/navbar/theme.js +160 -0
- package/dist/pagination/Pagination.svelte +81 -0
- package/dist/pagination/Pagination.svelte.d.ts +19 -0
- package/dist/pagination/PaginationButton.svelte +75 -0
- package/dist/pagination/PaginationButton.svelte.d.ts +18 -0
- package/dist/pagination/PaginationItem.svelte +52 -0
- package/dist/pagination/PaginationItem.svelte.d.ts +16 -0
- package/dist/pagination/PaginationNav.svelte +149 -0
- package/dist/pagination/PaginationNav.svelte.d.ts +28 -0
- package/dist/pagination/index.d.ts +5 -0
- package/dist/pagination/index.js +5 -0
- package/dist/pagination/theme.d.ts +228 -0
- package/dist/pagination/theme.js +118 -0
- package/dist/popover/Popover.svelte +66 -0
- package/dist/popover/Popover.svelte.d.ts +21 -0
- package/dist/popover/index.d.ts +2 -0
- package/dist/popover/index.js +2 -0
- package/dist/popover/theme.d.ts +280 -0
- package/dist/popover/theme.js +97 -0
- package/dist/progress/Progressbar.svelte +85 -0
- package/dist/progress/Progressbar.svelte.d.ts +22 -0
- package/dist/progress/Progressradial.svelte +113 -0
- package/dist/progress/Progressradial.svelte.d.ts +25 -0
- package/dist/progress/index.d.ts +3 -0
- package/dist/progress/index.js +3 -0
- package/dist/progress/theme.d.ts +570 -0
- package/dist/progress/theme.js +214 -0
- package/dist/rating/AdvancedRating.svelte +63 -0
- package/dist/rating/AdvancedRating.svelte.d.ts +21 -0
- package/dist/rating/CustomIcon.svelte +57 -0
- package/dist/rating/CustomIcon.svelte.d.ts +21 -0
- package/dist/rating/Heart.svelte +60 -0
- package/dist/rating/Heart.svelte.d.ts +20 -0
- package/dist/rating/Rating.svelte +70 -0
- package/dist/rating/Rating.svelte.d.ts +21 -0
- package/dist/rating/RatingComment.svelte +73 -0
- package/dist/rating/RatingComment.svelte.d.ts +15 -0
- package/dist/rating/Review.svelte +119 -0
- package/dist/rating/Review.svelte.d.ts +24 -0
- package/dist/rating/ScoreRating.svelte +78 -0
- package/dist/rating/ScoreRating.svelte.d.ts +14 -0
- package/dist/rating/Star.svelte +61 -0
- package/dist/rating/Star.svelte.d.ts +20 -0
- package/dist/rating/Thumbup.svelte +60 -0
- package/dist/rating/Thumbup.svelte.d.ts +20 -0
- package/dist/rating/index.d.ts +10 -0
- package/dist/rating/index.js +10 -0
- package/dist/rating/theme.d.ts +202 -0
- package/dist/rating/theme.js +38 -0
- package/dist/scroll-spy/ScrollSpy.svelte +276 -0
- package/dist/scroll-spy/ScrollSpy.svelte.d.ts +23 -0
- package/dist/scroll-spy/index.d.ts +2 -0
- package/dist/scroll-spy/index.js +2 -0
- package/dist/scroll-spy/theme.d.ts +148 -0
- package/dist/scroll-spy/theme.js +66 -0
- package/dist/sidebar/Sidebar.svelte +169 -0
- package/dist/sidebar/Sidebar.svelte.d.ts +31 -0
- package/dist/sidebar/SidebarBrand.svelte +50 -0
- package/dist/sidebar/SidebarBrand.svelte.d.ts +17 -0
- package/dist/sidebar/SidebarButton.svelte +35 -0
- package/dist/sidebar/SidebarButton.svelte.d.ts +14 -0
- package/dist/sidebar/SidebarCta.svelte +52 -0
- package/dist/sidebar/SidebarCta.svelte.d.ts +18 -0
- package/dist/sidebar/SidebarDropdownWrapper.svelte +126 -0
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +26 -0
- package/dist/sidebar/SidebarGroup.svelte +23 -0
- package/dist/sidebar/SidebarGroup.svelte.d.ts +15 -0
- package/dist/sidebar/SidebarItem.svelte +46 -0
- package/dist/sidebar/SidebarItem.svelte.d.ts +21 -0
- package/dist/sidebar/SidebarWrapper.svelte +15 -0
- package/dist/sidebar/SidebarWrapper.svelte.d.ts +9 -0
- package/dist/sidebar/index.d.ts +10 -0
- package/dist/sidebar/index.js +10 -0
- package/dist/sidebar/theme.d.ts +312 -0
- package/dist/sidebar/theme.js +81 -0
- package/dist/skeleton/CardPlaceholder.svelte +50 -0
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +14 -0
- package/dist/skeleton/ImagePlaceholder.svelte +81 -0
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +16 -0
- package/dist/skeleton/ListPlaceholder.svelte +61 -0
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +16 -0
- package/dist/skeleton/Skeleton.svelte +51 -0
- package/dist/skeleton/Skeleton.svelte.d.ts +14 -0
- package/dist/skeleton/TestimonialPlaceholder.svelte +60 -0
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +13 -0
- package/dist/skeleton/TextPlaceholder.svelte +86 -0
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +14 -0
- package/dist/skeleton/VideoPlaceholder.svelte +31 -0
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +12 -0
- package/dist/skeleton/WidgetPlaceholder.svelte +37 -0
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +12 -0
- package/dist/skeleton/index.d.ts +9 -0
- package/dist/skeleton/index.js +9 -0
- package/dist/skeleton/theme.d.ts +585 -0
- package/dist/skeleton/theme.js +178 -0
- package/dist/speed-dial/SpeedDial.svelte +70 -0
- package/dist/speed-dial/SpeedDial.svelte.d.ts +21 -0
- package/dist/speed-dial/SpeedDialButton.svelte +73 -0
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +20 -0
- package/dist/speed-dial/SpeedDialTrigger.svelte +57 -0
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +18 -0
- package/dist/speed-dial/index.d.ts +4 -0
- package/dist/speed-dial/index.js +4 -0
- package/dist/speed-dial/theme.d.ts +75 -0
- package/dist/speed-dial/theme.js +36 -0
- package/dist/spinner/Spinner.svelte +95 -0
- package/dist/spinner/Spinner.svelte.d.ts +17 -0
- package/dist/spinner/index.d.ts +2 -0
- package/dist/spinner/index.js +2 -0
- package/dist/spinner/theme.d.ts +120 -0
- package/dist/spinner/theme.js +49 -0
- package/dist/split-pane/Divider.svelte +50 -0
- package/dist/split-pane/Divider.svelte.d.ts +18 -0
- package/dist/split-pane/Pane.svelte +55 -0
- package/dist/split-pane/Pane.svelte.d.ts +13 -0
- package/dist/split-pane/SplitPane.svelte +401 -0
- package/dist/split-pane/SplitPane.svelte.d.ts +21 -0
- package/dist/split-pane/index.d.ts +4 -0
- package/dist/split-pane/index.js +4 -0
- package/dist/split-pane/theme.d.ts +65 -0
- package/dist/split-pane/theme.js +45 -0
- package/dist/step-indicator/StepIndicator.svelte +134 -0
- package/dist/step-indicator/StepIndicator.svelte.d.ts +23 -0
- package/dist/step-indicator/index.d.ts +2 -0
- package/dist/step-indicator/index.js +2 -0
- package/dist/step-indicator/theme.d.ts +248 -0
- package/dist/step-indicator/theme.js +103 -0
- package/dist/stepper/BreadcrumbStepper.svelte +147 -0
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +18 -0
- package/dist/stepper/CheckmarkIcon.svelte +92 -0
- package/dist/stepper/CheckmarkIcon.svelte.d.ts +18 -0
- package/dist/stepper/DetailedStepper.svelte +156 -0
- package/dist/stepper/DetailedStepper.svelte.d.ts +19 -0
- package/dist/stepper/DoubleArrowIcon.svelte +34 -0
- package/dist/stepper/DoubleArrowIcon.svelte.d.ts +15 -0
- package/dist/stepper/ProfileCardIcon.svelte +25 -0
- package/dist/stepper/ProfileCardIcon.svelte.d.ts +15 -0
- package/dist/stepper/ProgressStepper.svelte +162 -0
- package/dist/stepper/ProgressStepper.svelte.d.ts +18 -0
- package/dist/stepper/Stepper.svelte +119 -0
- package/dist/stepper/Stepper.svelte.d.ts +18 -0
- package/dist/stepper/TimelineStepper.svelte +122 -0
- package/dist/stepper/TimelineStepper.svelte.d.ts +19 -0
- package/dist/stepper/VerticalStepper.svelte +122 -0
- package/dist/stepper/VerticalStepper.svelte.d.ts +19 -0
- package/dist/stepper/index.d.ts +10 -0
- package/dist/stepper/index.js +10 -0
- package/dist/stepper/theme.d.ts +395 -0
- package/dist/stepper/theme.js +175 -0
- package/dist/table/Table.svelte +85 -0
- package/dist/table/Table.svelte.d.ts +23 -0
- package/dist/table/TableBody.svelte +42 -0
- package/dist/table/TableBody.svelte.d.ts +14 -0
- package/dist/table/TableBodyCell.svelte +35 -0
- package/dist/table/TableBodyCell.svelte.d.ts +15 -0
- package/dist/table/TableBodyRow.svelte +41 -0
- package/dist/table/TableBodyRow.svelte.d.ts +17 -0
- package/dist/table/TableHead.svelte +67 -0
- package/dist/table/TableHead.svelte.d.ts +19 -0
- package/dist/table/TableHeadCell.svelte +27 -0
- package/dist/table/TableHeadCell.svelte.d.ts +13 -0
- package/dist/table/TableSearch.svelte +121 -0
- package/dist/table/TableSearch.svelte.d.ts +29 -0
- package/dist/table/index.d.ts +8 -0
- package/dist/table/index.js +8 -0
- package/dist/table/theme.d.ts +593 -0
- package/dist/table/theme.js +440 -0
- package/dist/tabs/TabItem.svelte +86 -0
- package/dist/tabs/TabItem.svelte.d.ts +22 -0
- package/dist/tabs/Tabs.svelte +109 -0
- package/dist/tabs/Tabs.svelte.d.ts +19 -0
- package/dist/tabs/index.d.ts +3 -0
- package/dist/tabs/index.js +3 -0
- package/dist/tabs/theme.d.ts +135 -0
- package/dist/tabs/theme.js +83 -0
- package/dist/theme/ThemeProvider.svelte +37 -0
- package/dist/theme/ThemeProvider.svelte.d.ts +17 -0
- package/dist/theme/index.d.ts +8 -0
- package/dist/theme/index.js +2 -0
- package/dist/theme/themeUtils.d.ts +24 -0
- package/dist/theme/themeUtils.js +74 -0
- package/dist/theme/themes.d.ts +78 -0
- package/dist/theme/themes.js +84 -0
- package/dist/timeline/Activity.svelte +25 -0
- package/dist/timeline/Activity.svelte.d.ts +13 -0
- package/dist/timeline/ActivityItem.svelte +81 -0
- package/dist/timeline/ActivityItem.svelte.d.ts +22 -0
- package/dist/timeline/Group.svelte +51 -0
- package/dist/timeline/Group.svelte.d.ts +18 -0
- package/dist/timeline/GroupItem.svelte +90 -0
- package/dist/timeline/GroupItem.svelte.d.ts +19 -0
- package/dist/timeline/Timeline.svelte +30 -0
- package/dist/timeline/Timeline.svelte.d.ts +14 -0
- package/dist/timeline/TimelineItem.svelte +156 -0
- package/dist/timeline/TimelineItem.svelte.d.ts +28 -0
- package/dist/timeline/index.d.ts +7 -0
- package/dist/timeline/index.js +7 -0
- package/dist/timeline/theme.d.ts +367 -0
- package/dist/timeline/theme.js +287 -0
- package/dist/toast/Toast.svelte +97 -0
- package/dist/toast/Toast.svelte.d.ts +24 -0
- package/dist/toast/ToastContainer.svelte +35 -0
- package/dist/toast/ToastContainer.svelte.d.ts +14 -0
- package/dist/toast/index.d.ts +3 -0
- package/dist/toast/index.js +3 -0
- package/dist/toast/theme.d.ts +323 -0
- package/dist/toast/theme.js +103 -0
- package/dist/toolbar/Toolbar.svelte +64 -0
- package/dist/toolbar/Toolbar.svelte.d.ts +17 -0
- package/dist/toolbar/ToolbarButton.svelte +46 -0
- package/dist/toolbar/ToolbarButton.svelte.d.ts +17 -0
- package/dist/toolbar/ToolbarGroup.svelte +35 -0
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +16 -0
- package/dist/toolbar/index.d.ts +4 -0
- package/dist/toolbar/index.js +4 -0
- package/dist/toolbar/theme.d.ts +320 -0
- package/dist/toolbar/theme.js +155 -0
- package/dist/tooltip/Tooltip.svelte +51 -0
- package/dist/tooltip/Tooltip.svelte.d.ts +20 -0
- package/dist/tooltip/index.d.ts +2 -0
- package/dist/tooltip/index.js +2 -0
- package/dist/tooltip/theme.d.ts +90 -0
- package/dist/tooltip/theme.js +45 -0
- package/dist/tour/Tour.svelte +268 -0
- package/dist/tour/Tour.svelte.d.ts +4 -0
- package/dist/tour/index.d.ts +2 -0
- package/dist/tour/index.js +2 -0
- package/dist/tour/theme.d.ts +214 -0
- package/dist/tour/theme.js +79 -0
- package/dist/types.d.ts +2058 -0
- package/dist/types.js +1 -0
- package/dist/typography/a/A.svelte +55 -0
- package/dist/typography/a/A.svelte.d.ts +17 -0
- package/dist/typography/a/index.d.ts +2 -0
- package/dist/typography/a/index.js +2 -0
- package/dist/typography/a/theme.d.ts +72 -0
- package/dist/typography/a/theme.js +29 -0
- package/dist/typography/blockquote/Blockquote.svelte +41 -0
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +18 -0
- package/dist/typography/blockquote/index.d.ts +2 -0
- package/dist/typography/blockquote/index.js +2 -0
- package/dist/typography/blockquote/theme.d.ts +102 -0
- package/dist/typography/blockquote/theme.js +45 -0
- package/dist/typography/descriptionlist/DescriptionList.svelte +33 -0
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +14 -0
- package/dist/typography/descriptionlist/index.d.ts +2 -0
- package/dist/typography/descriptionlist/index.js +2 -0
- package/dist/typography/descriptionlist/theme.d.ts +18 -0
- package/dist/typography/descriptionlist/theme.js +12 -0
- package/dist/typography/heading/Heading.svelte +28 -0
- package/dist/typography/heading/Heading.svelte.d.ts +14 -0
- package/dist/typography/heading/index.d.ts +2 -0
- package/dist/typography/heading/index.js +2 -0
- package/dist/typography/heading/theme.d.ts +30 -0
- package/dist/typography/heading/theme.js +17 -0
- package/dist/typography/hr/Hr.svelte +59 -0
- package/dist/typography/hr/Hr.svelte.d.ts +16 -0
- package/dist/typography/hr/index.d.ts +2 -0
- package/dist/typography/hr/index.js +2 -0
- package/dist/typography/hr/theme.d.ts +40 -0
- package/dist/typography/hr/theme.js +20 -0
- package/dist/typography/img/Img.svelte +78 -0
- package/dist/typography/img/Img.svelte.d.ts +21 -0
- package/dist/typography/img/index.d.ts +2 -0
- package/dist/typography/img/index.js +2 -0
- package/dist/typography/img/theme.d.ts +211 -0
- package/dist/typography/img/theme.js +42 -0
- package/dist/typography/layout/Layout.svelte +27 -0
- package/dist/typography/layout/Layout.svelte.d.ts +13 -0
- package/dist/typography/layout/index.d.ts +2 -0
- package/dist/typography/layout/index.js +2 -0
- package/dist/typography/layout/theme.d.ts +1 -0
- package/dist/typography/layout/theme.js +4 -0
- package/dist/typography/list/Li.svelte +27 -0
- package/dist/typography/list/Li.svelte.d.ts +14 -0
- package/dist/typography/list/List.svelte +48 -0
- package/dist/typography/list/List.svelte.d.ts +17 -0
- package/dist/typography/list/index.d.ts +3 -0
- package/dist/typography/list/index.js +3 -0
- package/dist/typography/list/theme.d.ts +33 -0
- package/dist/typography/list/theme.js +19 -0
- package/dist/typography/mark/Mark.svelte +25 -0
- package/dist/typography/mark/Mark.svelte.d.ts +13 -0
- package/dist/typography/mark/index.d.ts +2 -0
- package/dist/typography/mark/index.js +2 -0
- package/dist/typography/mark/theme.d.ts +1 -0
- package/dist/typography/mark/theme.js +4 -0
- package/dist/typography/paragraph/P.svelte +49 -0
- package/dist/typography/paragraph/P.svelte.d.ts +22 -0
- package/dist/typography/paragraph/index.d.ts +2 -0
- package/dist/typography/paragraph/index.js +2 -0
- package/dist/typography/paragraph/theme.d.ts +225 -0
- package/dist/typography/paragraph/theme.js +79 -0
- package/dist/typography/secondary/Secondary.svelte +25 -0
- package/dist/typography/secondary/Secondary.svelte.d.ts +13 -0
- package/dist/typography/secondary/index.d.ts +2 -0
- package/dist/typography/secondary/index.js +2 -0
- package/dist/typography/secondary/theme.d.ts +1 -0
- package/dist/typography/secondary/theme.js +4 -0
- package/dist/typography/span/Span.svelte +51 -0
- package/dist/typography/span/Span.svelte.d.ts +22 -0
- package/dist/typography/span/index.d.ts +2 -0
- package/dist/typography/span/index.js +2 -0
- package/dist/typography/span/theme.d.ts +246 -0
- package/dist/typography/span/theme.js +88 -0
- package/dist/uiHelpers.svelte.d.ts +10 -0
- package/dist/uiHelpers.svelte.js +50 -0
- package/dist/utils/Arrow.svelte +63 -0
- package/dist/utils/Arrow.svelte.d.ts +13 -0
- package/dist/utils/CloseButton.svelte +67 -0
- package/dist/utils/CloseButton.svelte.d.ts +19 -0
- package/dist/utils/Popper.svelte +289 -0
- package/dist/utils/Popper.svelte.d.ts +31 -0
- package/dist/utils/actions.d.ts +16 -0
- package/dist/utils/actions.js +107 -0
- package/dist/utils/countdown.svelte.d.ts +8 -0
- package/dist/utils/countdown.svelte.js +64 -0
- package/dist/utils/debounce.d.ts +17 -0
- package/dist/utils/debounce.js +41 -0
- package/dist/utils/dismissable.d.ts +9 -0
- package/dist/utils/dismissable.js +16 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +14 -0
- package/dist/utils/nonPassiveTouch.d.ts +3 -0
- package/dist/utils/nonPassiveTouch.js +8 -0
- package/dist/utils/responsive.svelte +111 -0
- package/dist/utils/responsive.svelte.d.ts +45 -0
- package/dist/utils/singleselection.svelte.d.ts +15 -0
- package/dist/utils/singleselection.svelte.js +52 -0
- package/dist/utils/theme.d.ts +100 -0
- package/dist/utils/theme.js +69 -0
- package/dist/video/Video.svelte +34 -0
- package/dist/video/Video.svelte.d.ts +18 -0
- package/dist/video/index.d.ts +1 -0
- package/dist/video/index.js +1 -0
- package/dist/virtual-masonry/VirtualMasonry.svelte +185 -0
- package/dist/virtual-masonry/VirtualMasonry.svelte.d.ts +44 -0
- package/dist/virtual-masonry/index.d.ts +3 -0
- package/dist/virtual-masonry/index.js +2 -0
- package/dist/virtual-masonry/theme.d.ts +40 -0
- package/dist/virtual-masonry/theme.js +18 -0
- package/dist/virtuallist/VirtualList.svelte +145 -0
- package/dist/virtuallist/VirtualList.svelte.d.ts +42 -0
- package/dist/virtuallist/index.d.ts +2 -0
- package/dist/virtuallist/index.js +2 -0
- package/dist/virtuallist/theme.d.ts +40 -0
- package/dist/virtuallist/theme.js +18 -0
- package/package.json +917 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { review as reviewVariants } from "./theme";
|
|
4
|
+
import type { ReviewProps } from "../types";
|
|
5
|
+
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
6
|
+
import { untrack } from "svelte";
|
|
7
|
+
|
|
8
|
+
let { children, address, item1, item2, item3, review, classes, articleClass, divClass, div2Class, div3Class, imgClass, ulClass, liClass }: ReviewProps = $props();
|
|
9
|
+
|
|
10
|
+
warnThemeDeprecation(
|
|
11
|
+
"Review",
|
|
12
|
+
untrack(() => ({ articleClass, divClass, div2Class, div3Class, imgClass, ulClass, liClass })),
|
|
13
|
+
{ articleClass: "article", divClass: "div", div2Class: "div2", div3Class: "div3", imgClass: "img", ulClass: "ul", liClass: "li" }
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
const styling = $derived(
|
|
17
|
+
classes ?? {
|
|
18
|
+
article: articleClass,
|
|
19
|
+
div: divClass,
|
|
20
|
+
div2: div2Class,
|
|
21
|
+
div3: div3Class,
|
|
22
|
+
img: imgClass,
|
|
23
|
+
ul: ulClass,
|
|
24
|
+
li: liClass
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
const theme = $derived(getTheme("review"));
|
|
29
|
+
|
|
30
|
+
const { article, div, div2, div3, img, ul, li } = $derived(reviewVariants());
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
{#if review}
|
|
34
|
+
<article class={article({ class: clsx(theme?.article, styling.article) })}>
|
|
35
|
+
<div>
|
|
36
|
+
<div class={div({ class: clsx(theme?.div, styling.div) })}>
|
|
37
|
+
<img class={img({ class: clsx(theme?.img, styling.img) })} src={review.imgSrc} alt={review.imgAlt} />
|
|
38
|
+
<div class={div2({ class: clsx(theme?.div2, styling.div2) })}>
|
|
39
|
+
<p>{review.name}</p>
|
|
40
|
+
{#if review.address}
|
|
41
|
+
{#if address}
|
|
42
|
+
<div class={div3({ class: clsx(theme?.div3, styling.div3) })}>
|
|
43
|
+
{@render address()}
|
|
44
|
+
</div>
|
|
45
|
+
{/if}
|
|
46
|
+
{/if}
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
{#if review.item1 || review.item2 || review.item3}
|
|
50
|
+
<ul class={ul({ class: clsx(theme?.ul, styling.ul) })}>
|
|
51
|
+
{#if review.item1}
|
|
52
|
+
<li class={li({ class: clsx(theme?.li, styling.li) })}>
|
|
53
|
+
{#if item1}
|
|
54
|
+
{@render item1()}
|
|
55
|
+
{/if}
|
|
56
|
+
</li>
|
|
57
|
+
{/if}
|
|
58
|
+
{#if review.item2}
|
|
59
|
+
<li class={clsx(styling.li)}>
|
|
60
|
+
{#if item2}
|
|
61
|
+
{@render item2()}
|
|
62
|
+
{/if}
|
|
63
|
+
</li>
|
|
64
|
+
{/if}
|
|
65
|
+
{#if review.item3}
|
|
66
|
+
<li class={clsx(styling.li)}>
|
|
67
|
+
{#if item3}
|
|
68
|
+
{@render item3()}
|
|
69
|
+
{/if}
|
|
70
|
+
</li>
|
|
71
|
+
{/if}
|
|
72
|
+
</ul>
|
|
73
|
+
{/if}
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div class="col-span-2 mt-6 md:mt-0">
|
|
77
|
+
<div class="mb-5 flex items-start">
|
|
78
|
+
<div class="pe-4">
|
|
79
|
+
{#if review.reviewDate}
|
|
80
|
+
<footer>
|
|
81
|
+
<p class="mb-2 text-sm text-gray-500 dark:text-gray-400">
|
|
82
|
+
Reviewed: {review.reviewDate}
|
|
83
|
+
</p>
|
|
84
|
+
</footer>
|
|
85
|
+
{/if}
|
|
86
|
+
<h4 class="text-xl font-bold text-gray-900 dark:text-white">
|
|
87
|
+
{review.title}
|
|
88
|
+
</h4>
|
|
89
|
+
</div>
|
|
90
|
+
<p class="bg-primary-700 inline-flex items-center rounded-sm p-1.5 text-sm font-semibold text-white">
|
|
91
|
+
{review.rating}
|
|
92
|
+
</p>
|
|
93
|
+
</div>
|
|
94
|
+
{@render children()}
|
|
95
|
+
</div>
|
|
96
|
+
</article>
|
|
97
|
+
{/if}
|
|
98
|
+
|
|
99
|
+
<!--
|
|
100
|
+
@component
|
|
101
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
102
|
+
## Type
|
|
103
|
+
[ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1403)
|
|
104
|
+
## Props
|
|
105
|
+
@prop children
|
|
106
|
+
@prop address
|
|
107
|
+
@prop item1
|
|
108
|
+
@prop item2
|
|
109
|
+
@prop item3
|
|
110
|
+
@prop review
|
|
111
|
+
@prop classes
|
|
112
|
+
@prop articleClass
|
|
113
|
+
@prop divClass
|
|
114
|
+
@prop div2Class
|
|
115
|
+
@prop div3Class
|
|
116
|
+
@prop imgClass
|
|
117
|
+
@prop ulClass
|
|
118
|
+
@prop liClass
|
|
119
|
+
-->
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ReviewProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
|
+
* ## Type
|
|
5
|
+
* [ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1403)
|
|
6
|
+
* ## Props
|
|
7
|
+
* @prop children
|
|
8
|
+
* @prop address
|
|
9
|
+
* @prop item1
|
|
10
|
+
* @prop item2
|
|
11
|
+
* @prop item3
|
|
12
|
+
* @prop review
|
|
13
|
+
* @prop classes
|
|
14
|
+
* @prop articleClass
|
|
15
|
+
* @prop divClass
|
|
16
|
+
* @prop div2Class
|
|
17
|
+
* @prop div3Class
|
|
18
|
+
* @prop imgClass
|
|
19
|
+
* @prop ulClass
|
|
20
|
+
* @prop liClass
|
|
21
|
+
*/
|
|
22
|
+
declare const Review: import("svelte").Component<ReviewProps, {}, "">;
|
|
23
|
+
type Review = ReturnType<typeof Review>;
|
|
24
|
+
export default Review;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { scoreRating } from "./theme";
|
|
3
|
+
import type { ScoreRatingProps } from "../types";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
|
+
|
|
7
|
+
let { ratings, ratings2, headerLabel, classes }: ScoreRatingProps = $props();
|
|
8
|
+
|
|
9
|
+
const theme = $derived(getTheme("scoreRating"));
|
|
10
|
+
|
|
11
|
+
const { desc1, desc2, desc3span, desc3p, link, bar } = $derived(scoreRating());
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<div class="mb-5 flex items-center">
|
|
15
|
+
{#if headerLabel}
|
|
16
|
+
{#if headerLabel.desc1}
|
|
17
|
+
<p class={desc1({ class: clsx(theme?.desc1, classes?.desc1) })}>{headerLabel.desc1}</p>
|
|
18
|
+
{/if}
|
|
19
|
+
{#if headerLabel.desc2}
|
|
20
|
+
<p class={desc2({ class: clsx(theme?.desc2, classes?.desc2) })}>{headerLabel.desc2}</p>
|
|
21
|
+
{/if}
|
|
22
|
+
{#if headerLabel.desc3}
|
|
23
|
+
<span class={desc3span({ class: clsx(theme?.desc3span, classes?.desc3span) })}></span>
|
|
24
|
+
<p class={desc3p({ class: clsx(theme?.desc3p, classes?.desc3p) })}>{headerLabel.desc3}</p>
|
|
25
|
+
{/if}
|
|
26
|
+
{#if headerLabel.link}
|
|
27
|
+
<a href={headerLabel.link.url} class={link({ class: clsx(theme?.link, classes?.link) })}>{headerLabel.link.label}</a>
|
|
28
|
+
{/if}
|
|
29
|
+
{/if}
|
|
30
|
+
</div>
|
|
31
|
+
<div class="gap-8 sm:grid sm:grid-cols-2">
|
|
32
|
+
<div>
|
|
33
|
+
{#if ratings}
|
|
34
|
+
{#each ratings as { label, rating } (label)}
|
|
35
|
+
<dl>
|
|
36
|
+
<dt class="text-sm font-medium text-gray-500 dark:text-gray-400">
|
|
37
|
+
{label}
|
|
38
|
+
</dt>
|
|
39
|
+
<dd class="mb-3 flex items-center">
|
|
40
|
+
<div class="me-2 h-2.5 w-full rounded-sm bg-gray-200 dark:bg-gray-700">
|
|
41
|
+
<div class={bar({ class: clsx(theme?.bar, classes?.bar) })} style="width: {rating * 10}%"></div>
|
|
42
|
+
</div>
|
|
43
|
+
<span class="text-sm font-medium text-gray-500 dark:text-gray-400">{rating}</span>
|
|
44
|
+
</dd>
|
|
45
|
+
</dl>
|
|
46
|
+
{/each}
|
|
47
|
+
{/if}
|
|
48
|
+
</div>
|
|
49
|
+
<div>
|
|
50
|
+
{#if ratings2}
|
|
51
|
+
{#each ratings2 as { label, rating } (label)}
|
|
52
|
+
<dl>
|
|
53
|
+
<dt class="text-sm font-medium text-gray-500 dark:text-gray-400">
|
|
54
|
+
{label}
|
|
55
|
+
</dt>
|
|
56
|
+
<dd class="mb-3 flex items-center">
|
|
57
|
+
<div class="me-2 h-2.5 w-full rounded-sm bg-gray-200 dark:bg-gray-700">
|
|
58
|
+
<div class={bar({ class: clsx(theme?.bar, classes?.bar) })} style="width: {rating * 10}%"></div>
|
|
59
|
+
</div>
|
|
60
|
+
<span class="text-sm font-medium text-gray-500 dark:text-gray-400">{rating}</span>
|
|
61
|
+
</dd>
|
|
62
|
+
</dl>
|
|
63
|
+
{/each}
|
|
64
|
+
{/if}
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<!--
|
|
69
|
+
@component
|
|
70
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
71
|
+
## Type
|
|
72
|
+
[ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1419)
|
|
73
|
+
## Props
|
|
74
|
+
@prop ratings
|
|
75
|
+
@prop ratings2
|
|
76
|
+
@prop headerLabel
|
|
77
|
+
@prop classes
|
|
78
|
+
-->
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ScoreRatingProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
|
+
* ## Type
|
|
5
|
+
* [ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1419)
|
|
6
|
+
* ## Props
|
|
7
|
+
* @prop ratings
|
|
8
|
+
* @prop ratings2
|
|
9
|
+
* @prop headerLabel
|
|
10
|
+
* @prop classes
|
|
11
|
+
*/
|
|
12
|
+
declare const ScoreRating: import("svelte").Component<ScoreRatingProps, {}, "">;
|
|
13
|
+
type ScoreRating = ReturnType<typeof ScoreRating>;
|
|
14
|
+
export default ScoreRating;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import type { RatingIconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
fillPercent = 100,
|
|
7
|
+
fillColor = "#F5CA14",
|
|
8
|
+
strokeColor = "#F5CA14",
|
|
9
|
+
size = 24,
|
|
10
|
+
ariaLabel = "star",
|
|
11
|
+
iconIndex = 0,
|
|
12
|
+
groupId = "star",
|
|
13
|
+
role = "img",
|
|
14
|
+
svgClass,
|
|
15
|
+
...restProps
|
|
16
|
+
}: RatingIconProps = $props();
|
|
17
|
+
|
|
18
|
+
const uniqueId = $derived(`${groupId}-${iconIndex}`);
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<svg width={size} height={size} {...restProps} class={clsx(svgClass)} aria-label={ariaLabel} viewBox="100 100 120 120" {role}>
|
|
22
|
+
<defs>
|
|
23
|
+
<linearGradient id={uniqueId}>
|
|
24
|
+
{#if fillPercent !== 100}
|
|
25
|
+
<stop offset="0%" stop-color={fillColor} />
|
|
26
|
+
<stop offset="{fillPercent}%" stop-color={fillColor} />
|
|
27
|
+
<stop offset="{fillPercent}%" stop-color="transparent" />
|
|
28
|
+
<stop offset="100%" stop-color="transparent" />
|
|
29
|
+
{:else}
|
|
30
|
+
<stop offset="0%" stop-color={fillColor} />
|
|
31
|
+
<stop offset="100%" stop-color={fillColor} />
|
|
32
|
+
{/if}
|
|
33
|
+
</linearGradient>
|
|
34
|
+
</defs>
|
|
35
|
+
<g fill="url(#{uniqueId})" stroke={strokeColor} stroke-width="2">
|
|
36
|
+
<polygon
|
|
37
|
+
points="165.000, 185.000, 188.511, 197.361, 184.021, 171.180,
|
|
38
|
+
203.042, 152.639, 176.756, 148.820, 165.000, 125.000,
|
|
39
|
+
153.244, 148.820, 126.958, 152.639, 145.979, 171.180,
|
|
40
|
+
141.489, 197.361, 165.000, 185.000"
|
|
41
|
+
/>
|
|
42
|
+
</g>
|
|
43
|
+
</svg>
|
|
44
|
+
|
|
45
|
+
<!--
|
|
46
|
+
@component
|
|
47
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
48
|
+
## Type
|
|
49
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1430)
|
|
50
|
+
## Props
|
|
51
|
+
@prop fillPercent = 100
|
|
52
|
+
@prop fillColor = "#F5CA14"
|
|
53
|
+
@prop strokeColor = "#F5CA14"
|
|
54
|
+
@prop size = 24
|
|
55
|
+
@prop ariaLabel = "star"
|
|
56
|
+
@prop iconIndex = 0
|
|
57
|
+
@prop groupId = "star"
|
|
58
|
+
@prop role = "img"
|
|
59
|
+
@prop svgClass
|
|
60
|
+
@prop ...restProps
|
|
61
|
+
-->
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RatingIconProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
|
+
* ## Type
|
|
5
|
+
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1430)
|
|
6
|
+
* ## Props
|
|
7
|
+
* @prop fillPercent = 100
|
|
8
|
+
* @prop fillColor = "#F5CA14"
|
|
9
|
+
* @prop strokeColor = "#F5CA14"
|
|
10
|
+
* @prop size = 24
|
|
11
|
+
* @prop ariaLabel = "star"
|
|
12
|
+
* @prop iconIndex = 0
|
|
13
|
+
* @prop groupId = "star"
|
|
14
|
+
* @prop role = "img"
|
|
15
|
+
* @prop svgClass
|
|
16
|
+
* @prop ...restProps
|
|
17
|
+
*/
|
|
18
|
+
declare const Star: import("svelte").Component<RatingIconProps, {}, "">;
|
|
19
|
+
type Star = ReturnType<typeof Star>;
|
|
20
|
+
export default Star;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import type { RatingIconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
fillPercent = 100,
|
|
7
|
+
fillColor = "#00b500",
|
|
8
|
+
strokeColor = "#00b500",
|
|
9
|
+
size = 24,
|
|
10
|
+
ariaLabel = "thumbup",
|
|
11
|
+
iconIndex = 0,
|
|
12
|
+
groupId = "star",
|
|
13
|
+
role = "img",
|
|
14
|
+
svgClass,
|
|
15
|
+
...restProps
|
|
16
|
+
}: RatingIconProps = $props();
|
|
17
|
+
|
|
18
|
+
const uniqueId = $derived(`${groupId}-${iconIndex}`);
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<svg width={size} height={size} {...restProps} class={clsx(svgClass)} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5" stroke="currentColor" fill="none">
|
|
22
|
+
<defs>
|
|
23
|
+
<linearGradient id={uniqueId}>
|
|
24
|
+
{#if fillPercent !== 100}
|
|
25
|
+
<stop offset="0%" stop-color={fillColor} />
|
|
26
|
+
<stop offset="{fillPercent}%" stop-color={fillColor} />
|
|
27
|
+
<stop offset="{fillPercent}%" stop-color="transparent" />
|
|
28
|
+
<stop offset="100%" stop-color="transparent" />
|
|
29
|
+
{:else}
|
|
30
|
+
<stop offset="0%" stop-color={fillColor} />
|
|
31
|
+
<stop offset="100%" stop-color={fillColor} />
|
|
32
|
+
{/if}
|
|
33
|
+
</linearGradient>
|
|
34
|
+
</defs>
|
|
35
|
+
<path
|
|
36
|
+
fill="url(#{uniqueId})"
|
|
37
|
+
stroke={strokeColor}
|
|
38
|
+
stroke-linecap="round"
|
|
39
|
+
stroke-linejoin="round"
|
|
40
|
+
d="M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 00-1.423-.23H5.904M14.25 9h2.25M5.904 18.75c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 01-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 10.203 4.167 9.75 5 9.75h1.053c.472 0 .745.556.5.96a8.958 8.958 0 00-1.302 4.665c0 1.194.232 2.333.654 3.375z"
|
|
41
|
+
/>
|
|
42
|
+
</svg>
|
|
43
|
+
|
|
44
|
+
<!--
|
|
45
|
+
@component
|
|
46
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
47
|
+
## Type
|
|
48
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1430)
|
|
49
|
+
## Props
|
|
50
|
+
@prop fillPercent = 100
|
|
51
|
+
@prop fillColor = "#00b500"
|
|
52
|
+
@prop strokeColor = "#00b500"
|
|
53
|
+
@prop size = 24
|
|
54
|
+
@prop ariaLabel = "thumbup"
|
|
55
|
+
@prop iconIndex = 0
|
|
56
|
+
@prop groupId = "star"
|
|
57
|
+
@prop role = "img"
|
|
58
|
+
@prop svgClass
|
|
59
|
+
@prop ...restProps
|
|
60
|
+
-->
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RatingIconProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
|
+
* ## Type
|
|
5
|
+
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1430)
|
|
6
|
+
* ## Props
|
|
7
|
+
* @prop fillPercent = 100
|
|
8
|
+
* @prop fillColor = "#00b500"
|
|
9
|
+
* @prop strokeColor = "#00b500"
|
|
10
|
+
* @prop size = 24
|
|
11
|
+
* @prop ariaLabel = "thumbup"
|
|
12
|
+
* @prop iconIndex = 0
|
|
13
|
+
* @prop groupId = "star"
|
|
14
|
+
* @prop role = "img"
|
|
15
|
+
* @prop svgClass
|
|
16
|
+
* @prop ...restProps
|
|
17
|
+
*/
|
|
18
|
+
declare const Thumbup: import("svelte").Component<RatingIconProps, {}, "">;
|
|
19
|
+
type Thumbup = ReturnType<typeof Thumbup>;
|
|
20
|
+
export default Thumbup;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as AdvancedRating } from "./AdvancedRating.svelte";
|
|
2
|
+
export { default as Heart } from "./Heart.svelte";
|
|
3
|
+
export { default as Rating } from "./Rating.svelte";
|
|
4
|
+
export { default as RatingComment } from "./RatingComment.svelte";
|
|
5
|
+
export { default as Review } from "./Review.svelte";
|
|
6
|
+
export { default as ScoreRating } from "./ScoreRating.svelte";
|
|
7
|
+
export { default as Star } from "./Star.svelte";
|
|
8
|
+
export { default as Thumbup } from "./Thumbup.svelte";
|
|
9
|
+
export { default as CustomIcon } from "./CustomIcon.svelte";
|
|
10
|
+
export { advancedRating, rating, review, scoreRating } from "./theme";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as AdvancedRating } from "./AdvancedRating.svelte";
|
|
2
|
+
export { default as Heart } from "./Heart.svelte";
|
|
3
|
+
export { default as Rating } from "./Rating.svelte";
|
|
4
|
+
export { default as RatingComment } from "./RatingComment.svelte";
|
|
5
|
+
export { default as Review } from "./Review.svelte";
|
|
6
|
+
export { default as ScoreRating } from "./ScoreRating.svelte";
|
|
7
|
+
export { default as Star } from "./Star.svelte";
|
|
8
|
+
export { default as Thumbup } from "./Thumbup.svelte";
|
|
9
|
+
export { default as CustomIcon } from "./CustomIcon.svelte";
|
|
10
|
+
export { advancedRating, rating, review, scoreRating } from "./theme";
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { Classes } from "../theme/themeUtils";
|
|
3
|
+
export type RatingVariants = VariantProps<typeof rating> & Classes<typeof rating>;
|
|
4
|
+
export type AdvancedRatingVariants = VariantProps<typeof advancedRating> & Classes<typeof advancedRating>;
|
|
5
|
+
export type ReviewVariants = VariantProps<typeof review> & Classes<typeof review>;
|
|
6
|
+
export type ScoreRatingVariants = VariantProps<typeof scoreRating> & Classes<typeof scoreRating>;
|
|
7
|
+
export declare const advancedRating: import("tailwind-variants").TVReturnType<{
|
|
8
|
+
[key: string]: {
|
|
9
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
10
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
11
|
+
span?: import("tailwind-merge").ClassNameValue;
|
|
12
|
+
div2?: import("tailwind-merge").ClassNameValue;
|
|
13
|
+
div3?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
span2?: import("tailwind-merge").ClassNameValue;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
} | {
|
|
18
|
+
[x: string]: {
|
|
19
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
20
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
21
|
+
span?: import("tailwind-merge").ClassNameValue;
|
|
22
|
+
div2?: import("tailwind-merge").ClassNameValue;
|
|
23
|
+
div3?: import("tailwind-merge").ClassNameValue;
|
|
24
|
+
span2?: import("tailwind-merge").ClassNameValue;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
} | {}, {
|
|
28
|
+
base: string;
|
|
29
|
+
span: string;
|
|
30
|
+
div2: string;
|
|
31
|
+
div3: string;
|
|
32
|
+
span2: string;
|
|
33
|
+
}, undefined, {
|
|
34
|
+
[key: string]: {
|
|
35
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
36
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
37
|
+
span?: import("tailwind-merge").ClassNameValue;
|
|
38
|
+
div2?: import("tailwind-merge").ClassNameValue;
|
|
39
|
+
div3?: import("tailwind-merge").ClassNameValue;
|
|
40
|
+
span2?: import("tailwind-merge").ClassNameValue;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
} | {}, {
|
|
44
|
+
base: string;
|
|
45
|
+
span: string;
|
|
46
|
+
div2: string;
|
|
47
|
+
div3: string;
|
|
48
|
+
span2: string;
|
|
49
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
50
|
+
base: string;
|
|
51
|
+
span: string;
|
|
52
|
+
div2: string;
|
|
53
|
+
div3: string;
|
|
54
|
+
span2: string;
|
|
55
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
56
|
+
export declare const rating: import("tailwind-variants").TVReturnType<{
|
|
57
|
+
[key: string]: {
|
|
58
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
59
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
60
|
+
p?: import("tailwind-merge").ClassNameValue;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
} | {
|
|
64
|
+
[x: string]: {
|
|
65
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
66
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
67
|
+
p?: import("tailwind-merge").ClassNameValue;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
} | {}, {
|
|
71
|
+
base: string;
|
|
72
|
+
p: string;
|
|
73
|
+
}, undefined, {
|
|
74
|
+
[key: string]: {
|
|
75
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
76
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
77
|
+
p?: import("tailwind-merge").ClassNameValue;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
} | {}, {
|
|
81
|
+
base: string;
|
|
82
|
+
p: string;
|
|
83
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
84
|
+
base: string;
|
|
85
|
+
p: string;
|
|
86
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
87
|
+
export declare const review: import("tailwind-variants").TVReturnType<{
|
|
88
|
+
[key: string]: {
|
|
89
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
90
|
+
article?: import("tailwind-merge").ClassNameValue;
|
|
91
|
+
div?: import("tailwind-merge").ClassNameValue;
|
|
92
|
+
img?: import("tailwind-merge").ClassNameValue;
|
|
93
|
+
li?: import("tailwind-merge").ClassNameValue;
|
|
94
|
+
ul?: import("tailwind-merge").ClassNameValue;
|
|
95
|
+
div2?: import("tailwind-merge").ClassNameValue;
|
|
96
|
+
div3?: import("tailwind-merge").ClassNameValue;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
} | {
|
|
100
|
+
[x: string]: {
|
|
101
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
102
|
+
article?: import("tailwind-merge").ClassNameValue;
|
|
103
|
+
div?: import("tailwind-merge").ClassNameValue;
|
|
104
|
+
img?: import("tailwind-merge").ClassNameValue;
|
|
105
|
+
li?: import("tailwind-merge").ClassNameValue;
|
|
106
|
+
ul?: import("tailwind-merge").ClassNameValue;
|
|
107
|
+
div2?: import("tailwind-merge").ClassNameValue;
|
|
108
|
+
div3?: import("tailwind-merge").ClassNameValue;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
} | {}, {
|
|
112
|
+
article: string;
|
|
113
|
+
div: string;
|
|
114
|
+
div2: string;
|
|
115
|
+
div3: string;
|
|
116
|
+
img: string;
|
|
117
|
+
ul: string;
|
|
118
|
+
li: string;
|
|
119
|
+
}, undefined, {
|
|
120
|
+
[key: string]: {
|
|
121
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
122
|
+
article?: import("tailwind-merge").ClassNameValue;
|
|
123
|
+
div?: import("tailwind-merge").ClassNameValue;
|
|
124
|
+
img?: import("tailwind-merge").ClassNameValue;
|
|
125
|
+
li?: import("tailwind-merge").ClassNameValue;
|
|
126
|
+
ul?: import("tailwind-merge").ClassNameValue;
|
|
127
|
+
div2?: import("tailwind-merge").ClassNameValue;
|
|
128
|
+
div3?: import("tailwind-merge").ClassNameValue;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
} | {}, {
|
|
132
|
+
article: string;
|
|
133
|
+
div: string;
|
|
134
|
+
div2: string;
|
|
135
|
+
div3: string;
|
|
136
|
+
img: string;
|
|
137
|
+
ul: string;
|
|
138
|
+
li: string;
|
|
139
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
140
|
+
article: string;
|
|
141
|
+
div: string;
|
|
142
|
+
div2: string;
|
|
143
|
+
div3: string;
|
|
144
|
+
img: string;
|
|
145
|
+
ul: string;
|
|
146
|
+
li: string;
|
|
147
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
148
|
+
export declare const scoreRating: import("tailwind-variants").TVReturnType<{
|
|
149
|
+
[key: string]: {
|
|
150
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
151
|
+
link?: import("tailwind-merge").ClassNameValue;
|
|
152
|
+
desc1?: import("tailwind-merge").ClassNameValue;
|
|
153
|
+
desc2?: import("tailwind-merge").ClassNameValue;
|
|
154
|
+
desc3span?: import("tailwind-merge").ClassNameValue;
|
|
155
|
+
desc3p?: import("tailwind-merge").ClassNameValue;
|
|
156
|
+
bar?: import("tailwind-merge").ClassNameValue;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
} | {
|
|
160
|
+
[x: string]: {
|
|
161
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
162
|
+
link?: import("tailwind-merge").ClassNameValue;
|
|
163
|
+
desc1?: import("tailwind-merge").ClassNameValue;
|
|
164
|
+
desc2?: import("tailwind-merge").ClassNameValue;
|
|
165
|
+
desc3span?: import("tailwind-merge").ClassNameValue;
|
|
166
|
+
desc3p?: import("tailwind-merge").ClassNameValue;
|
|
167
|
+
bar?: import("tailwind-merge").ClassNameValue;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
} | {}, {
|
|
171
|
+
desc1: string;
|
|
172
|
+
desc2: string;
|
|
173
|
+
desc3span: string;
|
|
174
|
+
desc3p: string;
|
|
175
|
+
link: string;
|
|
176
|
+
bar: string;
|
|
177
|
+
}, undefined, {
|
|
178
|
+
[key: string]: {
|
|
179
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
180
|
+
link?: import("tailwind-merge").ClassNameValue;
|
|
181
|
+
desc1?: import("tailwind-merge").ClassNameValue;
|
|
182
|
+
desc2?: import("tailwind-merge").ClassNameValue;
|
|
183
|
+
desc3span?: import("tailwind-merge").ClassNameValue;
|
|
184
|
+
desc3p?: import("tailwind-merge").ClassNameValue;
|
|
185
|
+
bar?: import("tailwind-merge").ClassNameValue;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
} | {}, {
|
|
189
|
+
desc1: string;
|
|
190
|
+
desc2: string;
|
|
191
|
+
desc3span: string;
|
|
192
|
+
desc3p: string;
|
|
193
|
+
link: string;
|
|
194
|
+
bar: string;
|
|
195
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
196
|
+
desc1: string;
|
|
197
|
+
desc2: string;
|
|
198
|
+
desc3span: string;
|
|
199
|
+
desc3p: string;
|
|
200
|
+
link: string;
|
|
201
|
+
bar: string;
|
|
202
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const advancedRating = tv({
|
|
3
|
+
// divClass = 'flex items-center mt-4', spanClass = 'text-sm font-medium text-gray-600 dark:text-gray-500', div2Class = 'mx-4 w-2/4 h-5 bg-gray-200 rounded-sm dark:bg-gray-700', div3Class = 'h-5 bg-yellow-400 rounded-sm', span2Class = 'text-sm font-medium text-gray-600 dark:text-gray-500',
|
|
4
|
+
slots: {
|
|
5
|
+
base: "flex items-center mt-4",
|
|
6
|
+
span: "text-sm font-medium text-gray-600 dark:text-gray-500",
|
|
7
|
+
div2: "mx-4 w-2/4 h-5 bg-gray-200 rounded-sm dark:bg-gray-700",
|
|
8
|
+
div3: "h-5 bg-yellow-400 rounded-sm",
|
|
9
|
+
span2: "text-sm font-medium text-gray-600 dark:text-gray-500"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export const rating = tv({
|
|
13
|
+
slots: {
|
|
14
|
+
base: "flex items-center",
|
|
15
|
+
p: "ms-2 text-sm font-bold text-gray-900 dark:text-white"
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export const review = tv({
|
|
19
|
+
slots: {
|
|
20
|
+
article: "md:grid md:grid-cols-3 md:gap-8",
|
|
21
|
+
div: "mb-6 flex items-center space-x-4 rtl:space-x-reverse",
|
|
22
|
+
div2: "space-y-1 font-medium dark:text-white",
|
|
23
|
+
div3: "flex items-center text-sm text-gray-500 dark:text-gray-400",
|
|
24
|
+
img: "h-10 w-10 rounded-full",
|
|
25
|
+
ul: "space-y-4 text-sm text-gray-500 dark:text-gray-400",
|
|
26
|
+
li: "flex items-center"
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export const scoreRating = tv({
|
|
30
|
+
slots: {
|
|
31
|
+
desc1: "bg-primary-100 w-8 text-primary-800 text-sm font-semibold inline-flex items-center p-1.5 rounded-sm dark:bg-primary-200 dark:text-primary-800",
|
|
32
|
+
desc2: "ms-2 font-medium text-gray-900 dark:text-white",
|
|
33
|
+
desc3span: "text-sm w-24 font-medium text-gray-500 dark:text-gray-400",
|
|
34
|
+
desc3p: "text-sm w-24 font-medium text-gray-500 dark:text-gray-400",
|
|
35
|
+
link: "ms-auto w-32 text-sm font-medium text-primary-600 hover:underline dark:text-primary-500",
|
|
36
|
+
bar: "bg-primary-600 h-2.5 rounded-sm dark:bg-primary-500"
|
|
37
|
+
}
|
|
38
|
+
});
|