@nasa-jpl/stellar-svelte 2.0.0-alpha.27 → 2.0.0-alpha.30
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/components/ui/accordion/accordion-content.svelte +21 -0
- package/dist/components/ui/accordion/accordion-content.svelte.d.ts +19 -0
- package/dist/components/ui/accordion/accordion-item.svelte +10 -0
- package/dist/components/ui/accordion/accordion-item.svelte.d.ts +19 -0
- package/dist/components/ui/accordion/accordion-trigger.svelte +21 -0
- package/dist/components/ui/accordion/accordion-trigger.svelte.d.ts +15 -0
- package/dist/components/ui/accordion/index.d.ts +6 -0
- package/dist/components/ui/accordion/index.js +8 -0
- package/dist/components/ui/alert-dialog/alert-dialog-action.svelte.d.ts +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog-cancel.svelte.d.ts +1 -1
- package/dist/components/ui/avatar/avatar-fallback.svelte +12 -0
- package/dist/components/ui/avatar/avatar-fallback.svelte.d.ts +19 -0
- package/dist/components/ui/avatar/avatar-image.svelte +14 -0
- package/dist/components/ui/avatar/avatar-image.svelte.d.ts +17 -0
- package/dist/components/ui/avatar/avatar.svelte +14 -0
- package/dist/components/ui/avatar/avatar.svelte.d.ts +19 -0
- package/dist/components/ui/avatar/index.d.ts +4 -0
- package/dist/components/ui/avatar/index.js +6 -0
- package/dist/components/ui/button/index.d.ts +13 -6
- package/dist/components/ui/button/index.js +18 -17
- package/dist/components/ui/calendar/calendar-cell.svelte +17 -0
- package/dist/components/ui/calendar/calendar-cell.svelte.d.ts +19 -0
- package/dist/components/ui/calendar/calendar-day.svelte +37 -0
- package/dist/components/ui/calendar/calendar-day.svelte.d.ts +38 -0
- package/dist/components/ui/calendar/calendar-grid-body.svelte +9 -0
- package/dist/components/ui/calendar/calendar-grid-body.svelte.d.ts +19 -0
- package/dist/components/ui/calendar/calendar-grid-head.svelte +9 -0
- package/dist/components/ui/calendar/calendar-grid-head.svelte.d.ts +19 -0
- package/dist/components/ui/calendar/calendar-grid-row.svelte +9 -0
- package/dist/components/ui/calendar/calendar-grid-row.svelte.d.ts +19 -0
- package/dist/components/ui/calendar/calendar-grid.svelte +9 -0
- package/dist/components/ui/calendar/calendar-grid.svelte.d.ts +19 -0
- package/dist/components/ui/calendar/calendar-head-cell.svelte +12 -0
- package/dist/components/ui/calendar/calendar-head-cell.svelte.d.ts +19 -0
- package/dist/components/ui/calendar/calendar-header.svelte +12 -0
- package/dist/components/ui/calendar/calendar-header.svelte.d.ts +19 -0
- package/dist/components/ui/calendar/calendar-heading.svelte +15 -0
- package/dist/components/ui/calendar/calendar-heading.svelte.d.ts +21 -0
- package/dist/components/ui/calendar/calendar-months.svelte +11 -0
- package/dist/components/ui/calendar/calendar-months.svelte.d.ts +19 -0
- package/dist/components/ui/calendar/calendar-next-button.svelte +22 -0
- package/dist/components/ui/calendar/calendar-next-button.svelte.d.ts +30 -0
- package/dist/components/ui/calendar/calendar-prev-button.svelte +22 -0
- package/dist/components/ui/calendar/calendar-prev-button.svelte.d.ts +30 -0
- package/dist/components/ui/calendar/calendar.svelte +52 -0
- package/dist/components/ui/calendar/calendar.svelte.d.ts +13 -0
- package/dist/components/ui/calendar/index.d.ts +14 -0
- package/dist/components/ui/calendar/index.js +16 -0
- package/dist/components/ui/card/card-content.svelte +8 -0
- package/dist/components/ui/card/card-content.svelte.d.ts +19 -0
- package/dist/components/ui/card/card-description.svelte +8 -0
- package/dist/components/ui/card/card-description.svelte.d.ts +19 -0
- package/dist/components/ui/card/card-footer.svelte +8 -0
- package/dist/components/ui/card/card-footer.svelte.d.ts +19 -0
- package/dist/components/ui/card/card-header.svelte +8 -0
- package/dist/components/ui/card/card-header.svelte.d.ts +19 -0
- package/dist/components/ui/card/card-title.svelte +13 -0
- package/dist/components/ui/card/card-title.svelte.d.ts +22 -0
- package/dist/components/ui/card/card.svelte +11 -0
- package/dist/components/ui/card/card.svelte.d.ts +19 -0
- package/dist/components/ui/card/index.d.ts +8 -0
- package/dist/components/ui/card/index.js +9 -0
- package/dist/components/ui/carousel/carousel-content.svelte +29 -0
- package/dist/components/ui/carousel/carousel-content.svelte.d.ts +19 -0
- package/dist/components/ui/carousel/carousel-item.svelte +20 -0
- package/dist/components/ui/carousel/carousel-item.svelte.d.ts +19 -0
- package/dist/components/ui/carousel/carousel-next.svelte +31 -0
- package/dist/components/ui/carousel/carousel-next.svelte.d.ts +17 -0
- package/dist/components/ui/carousel/carousel-previous.svelte +31 -0
- package/dist/components/ui/carousel/carousel-previous.svelte.d.ts +17 -0
- package/dist/components/ui/carousel/carousel.svelte +85 -0
- package/dist/components/ui/carousel/carousel.svelte.d.ts +22 -0
- package/dist/components/ui/carousel/context.d.ts +32 -0
- package/dist/components/ui/carousel/context.js +12 -0
- package/dist/components/ui/carousel/index.d.ts +5 -0
- package/dist/components/ui/carousel/index.js +5 -0
- package/dist/components/ui/checkbox/checkbox.svelte +30 -0
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +13 -0
- package/dist/components/ui/checkbox/index.d.ts +2 -0
- package/dist/components/ui/checkbox/index.js +4 -0
- package/dist/components/ui/collapsible/collapsible-content.svelte +11 -0
- package/dist/components/ui/collapsible/collapsible-content.svelte.d.ts +19 -0
- package/dist/components/ui/collapsible/index.d.ts +5 -0
- package/dist/components/ui/collapsible/index.js +7 -0
- package/dist/components/ui/command/command-dialog.svelte +17 -0
- package/dist/components/ui/command/command-dialog.svelte.d.ts +40 -0
- package/dist/components/ui/command/command-empty.svelte +9 -0
- package/dist/components/ui/command/command-empty.svelte.d.ts +19 -0
- package/dist/components/ui/command/command-group.svelte +15 -0
- package/dist/components/ui/command/command-group.svelte.d.ts +19 -0
- package/dist/components/ui/command/command-input.svelte +19 -0
- package/dist/components/ui/command/command-input.svelte.d.ts +17 -0
- package/dist/components/ui/command/command-item.svelte +19 -0
- package/dist/components/ui/command/command-item.svelte.d.ts +33 -0
- package/dist/components/ui/command/command-list.svelte +12 -0
- package/dist/components/ui/command/command-list.svelte.d.ts +19 -0
- package/dist/components/ui/command/command-separator.svelte +7 -0
- package/dist/components/ui/command/command-separator.svelte.d.ts +17 -0
- package/dist/components/ui/command/command-shortcut.svelte +11 -0
- package/dist/components/ui/command/command-shortcut.svelte.d.ts +19 -0
- package/dist/components/ui/command/command.svelte +17 -0
- package/dist/components/ui/command/command.svelte.d.ts +19 -0
- package/dist/components/ui/command/index.d.ts +12 -0
- package/dist/components/ui/command/index.js +14 -0
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte +30 -0
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte.d.ts +15 -0
- package/dist/components/ui/context-menu/context-menu-content.svelte +20 -0
- package/dist/components/ui/context-menu/context-menu-content.svelte.d.ts +21 -0
- package/dist/components/ui/context-menu/context-menu-item.svelte +24 -0
- package/dist/components/ui/context-menu/context-menu-item.svelte.d.ts +17 -0
- package/dist/components/ui/context-menu/context-menu-label.svelte +13 -0
- package/dist/components/ui/context-menu/context-menu-label.svelte.d.ts +23 -0
- package/dist/components/ui/context-menu/context-menu-radio-group.svelte +7 -0
- package/dist/components/ui/context-menu/context-menu-radio-group.svelte.d.ts +19 -0
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte +30 -0
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte.d.ts +15 -0
- package/dist/components/ui/context-menu/context-menu-separator.svelte +10 -0
- package/dist/components/ui/context-menu/context-menu-separator.svelte.d.ts +17 -0
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte +11 -0
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte.d.ts +19 -0
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte +25 -0
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte.d.ts +23 -0
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte +25 -0
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte.d.ts +21 -0
- package/dist/components/ui/context-menu/index.d.ts +16 -0
- package/dist/components/ui/context-menu/index.js +18 -0
- package/dist/components/ui/dialog/dialog-content.svelte +32 -0
- package/dist/components/ui/dialog/dialog-content.svelte.d.ts +19 -0
- package/dist/components/ui/dialog/dialog-description.svelte +12 -0
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +19 -0
- package/dist/components/ui/dialog/dialog-footer.svelte +11 -0
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +19 -0
- package/dist/components/ui/dialog/dialog-header.svelte +8 -0
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +19 -0
- package/dist/components/ui/dialog/dialog-overlay.svelte +17 -0
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +17 -0
- package/dist/components/ui/dialog/dialog-portal.svelte +6 -0
- package/dist/components/ui/dialog/dialog-portal.svelte.d.ts +19 -0
- package/dist/components/ui/dialog/dialog-title.svelte +12 -0
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +19 -0
- package/dist/components/ui/dialog/index.d.ts +12 -0
- package/dist/components/ui/dialog/index.js +14 -0
- package/dist/components/ui/drawer/drawer-content.svelte +20 -0
- package/dist/components/ui/drawer/drawer-content.svelte.d.ts +19 -0
- package/dist/components/ui/drawer/drawer-description.svelte +14 -0
- package/dist/components/ui/drawer/drawer-description.svelte.d.ts +18 -0
- package/dist/components/ui/drawer/drawer-footer.svelte +9 -0
- package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +21 -0
- package/dist/components/ui/drawer/drawer-header.svelte +13 -0
- package/dist/components/ui/drawer/drawer-header.svelte.d.ts +21 -0
- package/dist/components/ui/drawer/drawer-nested.svelte +9 -0
- package/dist/components/ui/drawer/drawer-nested.svelte.d.ts +19 -0
- package/dist/components/ui/drawer/drawer-overlay.svelte +14 -0
- package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +19 -0
- package/dist/components/ui/drawer/drawer-title.svelte +14 -0
- package/dist/components/ui/drawer/drawer-title.svelte.d.ts +18 -0
- package/dist/components/ui/drawer/drawer.svelte +9 -0
- package/dist/components/ui/drawer/drawer.svelte.d.ts +19 -0
- package/dist/components/ui/drawer/index.d.ts +13 -0
- package/dist/components/ui/drawer/index.js +15 -0
- package/dist/components/ui/form/form-button.svelte +6 -0
- package/dist/components/ui/form/form-button.svelte.d.ts +15 -0
- package/dist/components/ui/form/form-description.svelte +13 -0
- package/dist/components/ui/form/form-description.svelte.d.ts +25 -0
- package/dist/components/ui/form/form-element-field.svelte +15 -0
- package/dist/components/ui/form/form-element-field.svelte.d.ts +24 -0
- package/dist/components/ui/form/form-field-errors.svelte +20 -0
- package/dist/components/ui/form/form-field-errors.svelte.d.ts +36 -0
- package/dist/components/ui/form/form-field.svelte +15 -0
- package/dist/components/ui/form/form-field.svelte.d.ts +24 -0
- package/dist/components/ui/form/form-fieldset.svelte +21 -0
- package/dist/components/ui/form/form-fieldset.svelte.d.ts +23 -0
- package/dist/components/ui/form/form-label.svelte +11 -0
- package/dist/components/ui/form/form-label.svelte.d.ts +21 -0
- package/dist/components/ui/form/form-legend.svelte +13 -0
- package/dist/components/ui/form/form-legend.svelte.d.ts +24 -0
- package/dist/components/ui/form/index.d.ts +11 -0
- package/dist/components/ui/form/index.js +13 -0
- package/dist/components/ui/hover-card/hover-card-content.svelte +23 -0
- package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +19 -0
- package/dist/components/ui/hover-card/index.d.ts +5 -0
- package/dist/components/ui/hover-card/index.js +5 -0
- package/dist/components/ui/input/index.d.ts +23 -0
- package/dist/components/ui/input/index.js +4 -0
- package/dist/components/ui/input/input.svelte +32 -0
- package/dist/components/ui/input/input.svelte.d.ts +14 -0
- package/dist/components/ui/label/index.d.ts +2 -0
- package/dist/components/ui/label/index.js +4 -0
- package/dist/components/ui/label/label.svelte +16 -0
- package/dist/components/ui/label/label.svelte.d.ts +15 -0
- package/dist/components/ui/menubar/index.d.ts +17 -0
- package/dist/components/ui/menubar/index.js +19 -0
- package/dist/components/ui/menubar/menubar-checkbox-item.svelte +30 -0
- package/dist/components/ui/menubar/menubar-checkbox-item.svelte.d.ts +15 -0
- package/dist/components/ui/menubar/menubar-content.svelte +28 -0
- package/dist/components/ui/menubar/menubar-content.svelte.d.ts +15 -0
- package/dist/components/ui/menubar/menubar-item.svelte +24 -0
- package/dist/components/ui/menubar/menubar-item.svelte.d.ts +17 -0
- package/dist/components/ui/menubar/menubar-label.svelte +13 -0
- package/dist/components/ui/menubar/menubar-label.svelte.d.ts +23 -0
- package/dist/components/ui/menubar/menubar-radio-item.svelte +30 -0
- package/dist/components/ui/menubar/menubar-radio-item.svelte.d.ts +15 -0
- package/dist/components/ui/menubar/menubar-separator.svelte +7 -0
- package/dist/components/ui/menubar/menubar-separator.svelte.d.ts +17 -0
- package/dist/components/ui/menubar/menubar-shortcut.svelte +11 -0
- package/dist/components/ui/menubar/menubar-shortcut.svelte.d.ts +19 -0
- package/dist/components/ui/menubar/menubar-sub-content.svelte +22 -0
- package/dist/components/ui/menubar/menubar-sub-content.svelte.d.ts +15 -0
- package/dist/components/ui/menubar/menubar-sub-trigger.svelte +25 -0
- package/dist/components/ui/menubar/menubar-sub-trigger.svelte.d.ts +21 -0
- package/dist/components/ui/menubar/menubar-trigger.svelte +18 -0
- package/dist/components/ui/menubar/menubar-trigger.svelte.d.ts +15 -0
- package/dist/components/ui/menubar/menubar.svelte +12 -0
- package/dist/components/ui/menubar/menubar.svelte.d.ts +19 -0
- package/dist/components/ui/pagination/index.d.ts +8 -0
- package/dist/components/ui/pagination/index.js +10 -0
- package/dist/components/ui/pagination/pagination-content.svelte +8 -0
- package/dist/components/ui/pagination/pagination-content.svelte.d.ts +19 -0
- package/dist/components/ui/pagination/pagination-ellipsis.svelte +14 -0
- package/dist/components/ui/pagination/pagination-ellipsis.svelte.d.ts +17 -0
- package/dist/components/ui/pagination/pagination-item.svelte +8 -0
- package/dist/components/ui/pagination/pagination-item.svelte.d.ts +19 -0
- package/dist/components/ui/pagination/pagination-link.svelte +24 -0
- package/dist/components/ui/pagination/pagination-link.svelte.d.ts +24 -0
- package/dist/components/ui/pagination/pagination-next-button.svelte +22 -0
- package/dist/components/ui/pagination/pagination-next-button.svelte.d.ts +17 -0
- package/dist/components/ui/pagination/pagination-prev-button.svelte +22 -0
- package/dist/components/ui/pagination/pagination-prev-button.svelte.d.ts +17 -0
- package/dist/components/ui/pagination/pagination.svelte +26 -0
- package/dist/components/ui/pagination/pagination.svelte.d.ts +22 -0
- package/dist/components/ui/progress/index.d.ts +2 -0
- package/dist/components/ui/progress/index.js +4 -0
- package/dist/components/ui/progress/progress.svelte +17 -0
- package/dist/components/ui/progress/progress.svelte.d.ts +17 -0
- package/dist/components/ui/radio-group/index.d.ts +5 -0
- package/dist/components/ui/radio-group/index.js +7 -0
- package/dist/components/ui/radio-group/radio-group-item.svelte +23 -0
- package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +13 -0
- package/dist/components/ui/radio-group/radio-group.svelte +10 -0
- package/dist/components/ui/radio-group/radio-group.svelte.d.ts +19 -0
- package/dist/components/ui/range-calendar/index.d.ts +14 -0
- package/dist/components/ui/range-calendar/index.js +16 -0
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte +17 -0
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte.d.ts +19 -0
- package/dist/components/ui/range-calendar/range-calendar-day.svelte +38 -0
- package/dist/components/ui/range-calendar/range-calendar-day.svelte.d.ts +40 -0
- package/dist/components/ui/range-calendar/range-calendar-grid-body.svelte +9 -0
- package/dist/components/ui/range-calendar/range-calendar-grid-body.svelte.d.ts +19 -0
- package/dist/components/ui/range-calendar/range-calendar-grid-head.svelte +9 -0
- package/dist/components/ui/range-calendar/range-calendar-grid-head.svelte.d.ts +19 -0
- package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte +9 -0
- package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +19 -0
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte +12 -0
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte.d.ts +19 -0
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte +12 -0
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +19 -0
- package/dist/components/ui/range-calendar/range-calendar-header.svelte +12 -0
- package/dist/components/ui/range-calendar/range-calendar-header.svelte.d.ts +19 -0
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte +15 -0
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte.d.ts +21 -0
- package/dist/components/ui/range-calendar/range-calendar-months.svelte +11 -0
- package/dist/components/ui/range-calendar/range-calendar-months.svelte.d.ts +19 -0
- package/dist/components/ui/range-calendar/range-calendar-next-button.svelte +22 -0
- package/dist/components/ui/range-calendar/range-calendar-next-button.svelte.d.ts +30 -0
- package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte +22 -0
- package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +30 -0
- package/dist/components/ui/range-calendar/range-calendar.svelte +54 -0
- package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +13 -0
- package/dist/components/ui/resizable/index.d.ts +4 -0
- package/dist/components/ui/resizable/index.js +6 -0
- package/dist/components/ui/resizable/resizable-handle.svelte +22 -0
- package/dist/components/ui/resizable/resizable-handle.svelte.d.ts +23 -0
- package/dist/components/ui/resizable/resizable-pane-group.svelte +18 -0
- package/dist/components/ui/resizable/resizable-pane-group.svelte.d.ts +19 -0
- package/dist/components/ui/scroll-area/index.d.ts +3 -0
- package/dist/components/ui/scroll-area/index.js +5 -0
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte +21 -0
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +25 -0
- package/dist/components/ui/scroll-area/scroll-area.svelte +24 -0
- package/dist/components/ui/scroll-area/scroll-area.svelte.d.ts +29 -0
- package/dist/components/ui/select/index.d.ts +11 -0
- package/dist/components/ui/select/index.js +13 -0
- package/dist/components/ui/select/select-content.svelte +33 -0
- package/dist/components/ui/select/select-content.svelte.d.ts +15 -0
- package/dist/components/ui/select/select-item.svelte +35 -0
- package/dist/components/ui/select/select-item.svelte.d.ts +15 -0
- package/dist/components/ui/select/select-label.svelte +12 -0
- package/dist/components/ui/select/select-label.svelte.d.ts +19 -0
- package/dist/components/ui/select/select-separator.svelte +7 -0
- package/dist/components/ui/select/select-separator.svelte.d.ts +17 -0
- package/dist/components/ui/select/select-trigger.svelte +22 -0
- package/dist/components/ui/select/select-trigger.svelte.d.ts +31 -0
- package/dist/components/ui/separator/index.d.ts +2 -0
- package/dist/components/ui/separator/index.js +4 -0
- package/dist/components/ui/separator/separator.svelte +18 -0
- package/dist/components/ui/separator/separator.svelte.d.ts +17 -0
- package/dist/components/ui/sheet/index.d.ts +114 -0
- package/dist/components/ui/sheet/index.js +79 -0
- package/dist/components/ui/sheet/sheet-content.svelte +38 -0
- package/dist/components/ui/sheet/sheet-content.svelte.d.ts +30 -0
- package/dist/components/ui/sheet/sheet-description.svelte +9 -0
- package/dist/components/ui/sheet/sheet-description.svelte.d.ts +19 -0
- package/dist/components/ui/sheet/sheet-footer.svelte +11 -0
- package/dist/components/ui/sheet/sheet-footer.svelte.d.ts +19 -0
- package/dist/components/ui/sheet/sheet-header.svelte +8 -0
- package/dist/components/ui/sheet/sheet-header.svelte.d.ts +19 -0
- package/dist/components/ui/sheet/sheet-overlay.svelte +17 -0
- package/dist/components/ui/sheet/sheet-overlay.svelte.d.ts +17 -0
- package/dist/components/ui/sheet/sheet-portal.svelte +9 -0
- package/dist/components/ui/sheet/sheet-portal.svelte.d.ts +19 -0
- package/dist/components/ui/sheet/sheet-title.svelte +12 -0
- package/dist/components/ui/sheet/sheet-title.svelte.d.ts +19 -0
- package/dist/components/ui/skeleton/index.d.ts +2 -0
- package/dist/components/ui/skeleton/index.js +4 -0
- package/dist/components/ui/skeleton/skeleton.svelte +6 -0
- package/dist/components/ui/skeleton/skeleton.svelte.d.ts +17 -0
- package/dist/components/ui/slider/index.d.ts +2 -0
- package/dist/components/ui/slider/index.js +4 -0
- package/dist/components/ui/slider/slider.svelte +23 -0
- package/dist/components/ui/slider/slider.svelte.d.ts +17 -0
- package/dist/components/ui/sonner/index.d.ts +1 -0
- package/dist/components/ui/sonner/index.js +1 -0
- package/dist/components/ui/sonner/sonner.svelte +17 -0
- package/dist/components/ui/sonner/sonner.svelte.d.ts +17 -0
- package/dist/components/ui/switch/index.d.ts +2 -0
- package/dist/components/ui/switch/index.js +4 -0
- package/dist/components/ui/switch/switch.svelte +23 -0
- package/dist/components/ui/switch/switch.svelte.d.ts +13 -0
- package/dist/components/ui/table/index.d.ts +63 -0
- package/dist/components/ui/table/index.js +26 -0
- package/dist/components/ui/table/table-body.svelte +8 -0
- package/dist/components/ui/table/table-body.svelte.d.ts +19 -0
- package/dist/components/ui/table/table-caption.svelte +8 -0
- package/dist/components/ui/table/table-caption.svelte.d.ts +19 -0
- package/dist/components/ui/table/table-cell.svelte +10 -0
- package/dist/components/ui/table/table-cell.svelte.d.ts +23 -0
- package/dist/components/ui/table/table-footer.svelte +8 -0
- package/dist/components/ui/table/table-footer.svelte.d.ts +19 -0
- package/dist/components/ui/table/table-head.svelte +14 -0
- package/dist/components/ui/table/table-head.svelte.d.ts +19 -0
- package/dist/components/ui/table/table-header.svelte +9 -0
- package/dist/components/ui/table/table-header.svelte.d.ts +22 -0
- package/dist/components/ui/table/table-row.svelte +16 -0
- package/dist/components/ui/table/table-row.svelte.d.ts +24 -0
- package/dist/components/ui/table/table.svelte +10 -0
- package/dist/components/ui/table/table.svelte.d.ts +19 -0
- package/dist/components/ui/tabs/index.d.ts +6 -0
- package/dist/components/ui/tabs/index.js +8 -0
- package/dist/components/ui/tabs/tabs-content.svelte +17 -0
- package/dist/components/ui/tabs/tabs-content.svelte.d.ts +19 -0
- package/dist/components/ui/tabs/tabs-list.svelte +15 -0
- package/dist/components/ui/tabs/tabs-list.svelte.d.ts +19 -0
- package/dist/components/ui/tabs/tabs-trigger.svelte +18 -0
- package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +15 -0
- package/dist/components/ui/textarea/index.d.ts +19 -0
- package/dist/components/ui/textarea/index.js +4 -0
- package/dist/components/ui/textarea/textarea.svelte +28 -0
- package/dist/components/ui/textarea/textarea.svelte.d.ts +14 -0
- package/dist/components/ui/theme-switcher/theme-switcher-dropdown.svelte +12 -16
- package/dist/components/ui/toggle/index.d.ts +76 -0
- package/dist/components/ui/toggle/index.js +23 -0
- package/dist/components/ui/toggle/toggle.svelte +18 -0
- package/dist/components/ui/toggle/toggle.svelte.d.ts +25 -0
- package/dist/components/ui/toggle-group/index.d.ts +8 -0
- package/dist/components/ui/toggle-group/index.js +12 -0
- package/dist/components/ui/toggle-group/toggle-group-item.svelte +25 -0
- package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +24 -0
- package/dist/components/ui/toggle-group/toggle-group.svelte +22 -0
- package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +106 -0
- package/dist/components/ui/tooltip/index.d.ts +5 -0
- package/dist/components/ui/tooltip/index.js +7 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte +24 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +19 -0
- package/dist/index.css +1661 -145
- package/dist/index.d.ts +38 -2
- package/dist/index.js +43 -2
- package/dist/types/docs.d.ts +8 -0
- package/dist/types/docs.js +1 -0
- package/dist/types/nav.d.ts +14 -0
- package/dist/types/nav.js +1 -0
- package/package.json +15 -6
- package/src/theme.css +2 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>import { Accordion as AccordionPrimitive } from "bits-ui";
|
|
2
|
+
import { slide } from "svelte/transition";
|
|
3
|
+
import { cn } from "../../../utils.js";
|
|
4
|
+
let className = void 0;
|
|
5
|
+
export let transition = slide;
|
|
6
|
+
export let transitionConfig = {
|
|
7
|
+
duration: 200
|
|
8
|
+
};
|
|
9
|
+
export { className as class };
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<AccordionPrimitive.Content
|
|
13
|
+
class={cn("overflow-hidden text-sm transition-all", className)}
|
|
14
|
+
{transition}
|
|
15
|
+
{transitionConfig}
|
|
16
|
+
{...$$restProps}
|
|
17
|
+
>
|
|
18
|
+
<div class="pb-4 pt-0">
|
|
19
|
+
<slot />
|
|
20
|
+
</div>
|
|
21
|
+
</AccordionPrimitive.Content>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Accordion as AccordionPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: AccordionPrimitive.ContentProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type AccordionContentProps = typeof __propDef.props;
|
|
15
|
+
export type AccordionContentEvents = typeof __propDef.events;
|
|
16
|
+
export type AccordionContentSlots = typeof __propDef.slots;
|
|
17
|
+
export default class AccordionContent extends SvelteComponent<AccordionContentProps, AccordionContentEvents, AccordionContentSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script>import { Accordion as AccordionPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export let value;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<AccordionPrimitive.Item {value} class={cn("border-b", className)} {...$$restProps}>
|
|
9
|
+
<slot />
|
|
10
|
+
</AccordionPrimitive.Item>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Accordion as AccordionPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: AccordionPrimitive.ItemProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type AccordionItemProps = typeof __propDef.props;
|
|
15
|
+
export type AccordionItemEvents = typeof __propDef.events;
|
|
16
|
+
export type AccordionItemSlots = typeof __propDef.slots;
|
|
17
|
+
export default class AccordionItem extends SvelteComponent<AccordionItemProps, AccordionItemEvents, AccordionItemSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>import { Accordion as AccordionPrimitive } from "bits-ui";
|
|
2
|
+
import ChevronDown from "lucide-svelte/icons/chevron-down";
|
|
3
|
+
import { cn } from "../../../utils.js";
|
|
4
|
+
let className = void 0;
|
|
5
|
+
export let level = 3;
|
|
6
|
+
export { className as class };
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<AccordionPrimitive.Header {level} class="flex">
|
|
10
|
+
<AccordionPrimitive.Trigger
|
|
11
|
+
class={cn(
|
|
12
|
+
"flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
|
|
13
|
+
className
|
|
14
|
+
)}
|
|
15
|
+
{...$$restProps}
|
|
16
|
+
on:click
|
|
17
|
+
>
|
|
18
|
+
<slot />
|
|
19
|
+
<ChevronDown class="h-4 w-4 transition-transform duration-200" />
|
|
20
|
+
</AccordionPrimitive.Trigger>
|
|
21
|
+
</AccordionPrimitive.Header>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Accordion as AccordionPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: AccordionPrimitive.TriggerProps;
|
|
5
|
+
slots: {
|
|
6
|
+
default: {};
|
|
7
|
+
};
|
|
8
|
+
events: AccordionPrimitive.TriggerEvents;
|
|
9
|
+
};
|
|
10
|
+
export type AccordionTriggerProps = typeof __propDef.props;
|
|
11
|
+
export type AccordionTriggerEvents = typeof __propDef.events;
|
|
12
|
+
export type AccordionTriggerSlots = typeof __propDef.slots;
|
|
13
|
+
export default class AccordionTrigger extends SvelteComponent<AccordionTriggerProps, AccordionTriggerEvents, AccordionTriggerSlots> {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Accordion as AccordionPrimitive } from "bits-ui";
|
|
2
|
+
import Content from "./accordion-content.svelte";
|
|
3
|
+
import Item from "./accordion-item.svelte";
|
|
4
|
+
import Trigger from "./accordion-trigger.svelte";
|
|
5
|
+
declare const Root: typeof AccordionPrimitive.Root;
|
|
6
|
+
export { Root, Content, Item, Trigger, Root as Accordion, Content as AccordionContent, Item as AccordionItem, Trigger as AccordionTrigger, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Accordion as AccordionPrimitive } from "bits-ui";
|
|
2
|
+
import Content from "./accordion-content.svelte";
|
|
3
|
+
import Item from "./accordion-item.svelte";
|
|
4
|
+
import Trigger from "./accordion-trigger.svelte";
|
|
5
|
+
const Root = AccordionPrimitive.Root;
|
|
6
|
+
export { Root, Content, Item, Trigger,
|
|
7
|
+
//
|
|
8
|
+
Root as Accordion, Content as AccordionContent, Item as AccordionItem, Trigger as AccordionTrigger, };
|
|
@@ -9,7 +9,7 @@ declare const __propDef: {
|
|
|
9
9
|
} & {
|
|
10
10
|
[x: `data-melt-${string}`]: "";
|
|
11
11
|
} & {
|
|
12
|
-
action: (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"
|
|
12
|
+
action: (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<import("@melt-ui/svelte/dist/builders/dialog/events").DialogEvents["close"]>;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
};
|
|
@@ -9,7 +9,7 @@ declare const __propDef: {
|
|
|
9
9
|
} & {
|
|
10
10
|
[x: `data-melt-${string}`]: "";
|
|
11
11
|
} & {
|
|
12
|
-
action: (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"
|
|
12
|
+
action: (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<import("@melt-ui/svelte/dist/builders/dialog/events").DialogEvents["close"]>;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>import { Avatar as AvatarPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export { className as class };
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<AvatarPrimitive.Fallback
|
|
8
|
+
class={cn("bg-muted flex h-full w-full items-center justify-center rounded-full", className)}
|
|
9
|
+
{...$$restProps}
|
|
10
|
+
>
|
|
11
|
+
<slot />
|
|
12
|
+
</AvatarPrimitive.Fallback>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Avatar as AvatarPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: AvatarPrimitive.FallbackProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type AvatarFallbackProps = typeof __propDef.props;
|
|
15
|
+
export type AvatarFallbackEvents = typeof __propDef.events;
|
|
16
|
+
export type AvatarFallbackSlots = typeof __propDef.slots;
|
|
17
|
+
export default class AvatarFallback extends SvelteComponent<AvatarFallbackProps, AvatarFallbackEvents, AvatarFallbackSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script>import { Avatar as AvatarPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export let src = void 0;
|
|
5
|
+
export let alt = void 0;
|
|
6
|
+
export { className as class };
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<AvatarPrimitive.Image
|
|
10
|
+
{src}
|
|
11
|
+
{alt}
|
|
12
|
+
class={cn("aspect-square h-full w-full", className)}
|
|
13
|
+
{...$$restProps}
|
|
14
|
+
/>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Avatar as AvatarPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: AvatarPrimitive.ImageProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {};
|
|
9
|
+
exports?: {} | undefined;
|
|
10
|
+
bindings?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
export type AvatarImageProps = typeof __propDef.props;
|
|
13
|
+
export type AvatarImageEvents = typeof __propDef.events;
|
|
14
|
+
export type AvatarImageSlots = typeof __propDef.slots;
|
|
15
|
+
export default class AvatarImage extends SvelteComponent<AvatarImageProps, AvatarImageEvents, AvatarImageSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script>import { Avatar as AvatarPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export let delayMs = void 0;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<AvatarPrimitive.Root
|
|
9
|
+
{delayMs}
|
|
10
|
+
class={cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className)}
|
|
11
|
+
{...$$restProps}
|
|
12
|
+
>
|
|
13
|
+
<slot />
|
|
14
|
+
</AvatarPrimitive.Root>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Avatar as AvatarPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: AvatarPrimitive.Props;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type AvatarProps = typeof __propDef.props;
|
|
15
|
+
export type AvatarEvents = typeof __propDef.events;
|
|
16
|
+
export type AvatarSlots = typeof __propDef.slots;
|
|
17
|
+
export default class Avatar extends SvelteComponent<AvatarProps, AvatarEvents, AvatarSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import Root from
|
|
1
|
+
import type { Button as ButtonPrimitive } from 'bits-ui';
|
|
2
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
+
import Root from './button.svelte';
|
|
4
4
|
declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
5
5
|
variant: {
|
|
6
6
|
default: string;
|
|
@@ -12,6 +12,7 @@ declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
|
12
12
|
};
|
|
13
13
|
size: {
|
|
14
14
|
default: string;
|
|
15
|
+
xs: string;
|
|
15
16
|
sm: string;
|
|
16
17
|
lg: string;
|
|
17
18
|
icon: string;
|
|
@@ -27,6 +28,7 @@ declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
|
27
28
|
};
|
|
28
29
|
size: {
|
|
29
30
|
default: string;
|
|
31
|
+
xs: string;
|
|
30
32
|
sm: string;
|
|
31
33
|
lg: string;
|
|
32
34
|
icon: string;
|
|
@@ -42,6 +44,7 @@ declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
|
42
44
|
};
|
|
43
45
|
size: {
|
|
44
46
|
default: string;
|
|
47
|
+
xs: string;
|
|
45
48
|
sm: string;
|
|
46
49
|
lg: string;
|
|
47
50
|
icon: string;
|
|
@@ -57,6 +60,7 @@ declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
|
57
60
|
};
|
|
58
61
|
size: {
|
|
59
62
|
default: string;
|
|
63
|
+
xs: string;
|
|
60
64
|
sm: string;
|
|
61
65
|
lg: string;
|
|
62
66
|
icon: string;
|
|
@@ -72,6 +76,7 @@ declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
|
72
76
|
};
|
|
73
77
|
size: {
|
|
74
78
|
default: string;
|
|
79
|
+
xs: string;
|
|
75
80
|
sm: string;
|
|
76
81
|
lg: string;
|
|
77
82
|
icon: string;
|
|
@@ -87,6 +92,7 @@ declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
|
87
92
|
};
|
|
88
93
|
size: {
|
|
89
94
|
default: string;
|
|
95
|
+
xs: string;
|
|
90
96
|
sm: string;
|
|
91
97
|
lg: string;
|
|
92
98
|
icon: string;
|
|
@@ -102,16 +108,17 @@ declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
|
102
108
|
};
|
|
103
109
|
size: {
|
|
104
110
|
default: string;
|
|
111
|
+
xs: string;
|
|
105
112
|
sm: string;
|
|
106
113
|
lg: string;
|
|
107
114
|
icon: string;
|
|
108
115
|
};
|
|
109
116
|
}>, unknown, unknown, undefined>>;
|
|
110
|
-
type Variant = VariantProps<typeof buttonVariants>[
|
|
111
|
-
type Size = VariantProps<typeof buttonVariants>[
|
|
117
|
+
type Variant = VariantProps<typeof buttonVariants>['variant'];
|
|
118
|
+
type Size = VariantProps<typeof buttonVariants>['size'];
|
|
112
119
|
type Props = ButtonPrimitive.Props & {
|
|
113
120
|
variant?: Variant;
|
|
114
121
|
size?: Size;
|
|
115
122
|
};
|
|
116
123
|
type Events = ButtonPrimitive.Events;
|
|
117
|
-
export { Root,
|
|
124
|
+
export { Root as Button, Root, buttonVariants, type Events as ButtonEvents, type Props as ButtonProps, type Events, type Props, };
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { tv } from
|
|
2
|
-
import Root from
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
import Root from './button.svelte';
|
|
3
3
|
const buttonVariants = tv({
|
|
4
|
-
base:
|
|
4
|
+
base: 'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
|
|
5
5
|
variants: {
|
|
6
6
|
variant: {
|
|
7
|
-
default:
|
|
8
|
-
destructive:
|
|
9
|
-
outline:
|
|
10
|
-
secondary:
|
|
11
|
-
ghost:
|
|
12
|
-
link:
|
|
7
|
+
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
|
|
8
|
+
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
|
|
9
|
+
outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
|
|
10
|
+
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
11
|
+
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
|
12
|
+
link: 'text-primary underline-offset-4 hover:underline',
|
|
13
13
|
},
|
|
14
14
|
size: {
|
|
15
|
-
default:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
default: 'h-6 px-2 py-2',
|
|
16
|
+
xs: 'h-4 px-1 py-0.5 rounded-sm',
|
|
17
|
+
sm: 'h-4 rounded-md px-1 py-2',
|
|
18
|
+
lg: 'h-8 rounded-lg px-4',
|
|
19
|
+
icon: 'h-10 w-10',
|
|
19
20
|
},
|
|
20
21
|
},
|
|
21
22
|
defaultVariants: {
|
|
22
|
-
variant:
|
|
23
|
-
size:
|
|
23
|
+
variant: 'default',
|
|
24
|
+
size: 'default',
|
|
24
25
|
},
|
|
25
26
|
});
|
|
26
|
-
export {
|
|
27
|
+
export {
|
|
27
28
|
//
|
|
28
|
-
Root as Button, buttonVariants, };
|
|
29
|
+
Root as Button, Root, buttonVariants, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script>import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
export let date;
|
|
4
|
+
let className = void 0;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<CalendarPrimitive.Cell
|
|
9
|
+
{date}
|
|
10
|
+
class={cn(
|
|
11
|
+
"[&:has([data-selected])]:bg-accent [&:has([data-selected][data-outside-month])]:bg-accent/50 relative h-9 w-9 p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([data-selected])]:rounded-md",
|
|
12
|
+
className
|
|
13
|
+
)}
|
|
14
|
+
{...$$restProps}
|
|
15
|
+
>
|
|
16
|
+
<slot />
|
|
17
|
+
</CalendarPrimitive.Cell>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: CalendarPrimitive.CellProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type CalendarCellProps = typeof __propDef.props;
|
|
15
|
+
export type CalendarCellEvents = typeof __propDef.events;
|
|
16
|
+
export type CalendarCellSlots = typeof __propDef.slots;
|
|
17
|
+
export default class CalendarCell extends SvelteComponent<CalendarCellProps, CalendarCellEvents, CalendarCellSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script>import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
2
|
+
import { buttonVariants } from "../button/index.js";
|
|
3
|
+
import { cn } from "../../../utils.js";
|
|
4
|
+
export let date;
|
|
5
|
+
export let month;
|
|
6
|
+
let className = void 0;
|
|
7
|
+
export { className as class };
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<CalendarPrimitive.Day
|
|
11
|
+
on:click
|
|
12
|
+
{date}
|
|
13
|
+
{month}
|
|
14
|
+
class={cn(
|
|
15
|
+
buttonVariants({ variant: "ghost" }),
|
|
16
|
+
"h-9 w-9 p-0 font-normal ",
|
|
17
|
+
"[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground",
|
|
18
|
+
// Selected
|
|
19
|
+
"data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary data-[selected]:hover:text-primary-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground data-[selected]:opacity-100",
|
|
20
|
+
// Disabled
|
|
21
|
+
"data-[disabled]:text-muted-foreground data-[disabled]:opacity-50",
|
|
22
|
+
// Unavailable
|
|
23
|
+
"data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through",
|
|
24
|
+
// Outside months
|
|
25
|
+
"data-[outside-month]:text-muted-foreground [&[data-outside-month][data-selected]]:bg-accent/50 [&[data-outside-month][data-selected]]:text-muted-foreground data-[outside-month]:pointer-events-none data-[outside-month]:opacity-50 [&[data-outside-month][data-selected]]:opacity-30",
|
|
26
|
+
className
|
|
27
|
+
)}
|
|
28
|
+
{...$$restProps}
|
|
29
|
+
let:selected
|
|
30
|
+
let:disabled
|
|
31
|
+
let:unavailable
|
|
32
|
+
let:builder
|
|
33
|
+
>
|
|
34
|
+
<slot {selected} {disabled} {unavailable} {builder}>
|
|
35
|
+
{date.day}
|
|
36
|
+
</slot>
|
|
37
|
+
</CalendarPrimitive.Day>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: CalendarPrimitive.DayProps;
|
|
5
|
+
slots: {
|
|
6
|
+
default: {
|
|
7
|
+
selected: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
unavailable: boolean | undefined;
|
|
10
|
+
builder: {
|
|
11
|
+
readonly role: "button";
|
|
12
|
+
readonly 'aria-label': string;
|
|
13
|
+
readonly 'aria-selected': true | undefined;
|
|
14
|
+
readonly 'aria-disabled': true | undefined;
|
|
15
|
+
readonly 'data-selected': true | undefined;
|
|
16
|
+
readonly 'data-value': string;
|
|
17
|
+
readonly 'data-disabled': "" | undefined;
|
|
18
|
+
readonly 'data-unavailable': "" | undefined;
|
|
19
|
+
readonly 'data-today': "" | undefined;
|
|
20
|
+
readonly 'data-outside-month': "" | undefined;
|
|
21
|
+
readonly 'data-outside-visible-months': "" | undefined;
|
|
22
|
+
readonly 'data-focused': "" | undefined;
|
|
23
|
+
readonly tabindex: 0 | -1 | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
[x: `data-melt-${string}`]: "";
|
|
26
|
+
} & {
|
|
27
|
+
action: (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<import("@melt-ui/svelte/dist/builders/calendar/events").CalendarEvents["cell"]>;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
events: CalendarPrimitive.DayEvents;
|
|
32
|
+
};
|
|
33
|
+
export type CalendarDayProps = typeof __propDef.props;
|
|
34
|
+
export type CalendarDayEvents = typeof __propDef.events;
|
|
35
|
+
export type CalendarDaySlots = typeof __propDef.slots;
|
|
36
|
+
export default class CalendarDay extends SvelteComponent<CalendarDayProps, CalendarDayEvents, CalendarDaySlots> {
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<script>import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export { className as class };
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<CalendarPrimitive.GridBody class={cn(className)} {...$$restProps}>
|
|
8
|
+
<slot />
|
|
9
|
+
</CalendarPrimitive.GridBody>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: CalendarPrimitive.GridBodyProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type CalendarGridBodyProps = typeof __propDef.props;
|
|
15
|
+
export type CalendarGridBodyEvents = typeof __propDef.events;
|
|
16
|
+
export type CalendarGridBodySlots = typeof __propDef.slots;
|
|
17
|
+
export default class CalendarGridBody extends SvelteComponent<CalendarGridBodyProps, CalendarGridBodyEvents, CalendarGridBodySlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<script>import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export { className as class };
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<CalendarPrimitive.GridHead class={cn(className)} {...$$restProps}>
|
|
8
|
+
<slot />
|
|
9
|
+
</CalendarPrimitive.GridHead>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: CalendarPrimitive.GridHeadProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type CalendarGridHeadProps = typeof __propDef.props;
|
|
15
|
+
export type CalendarGridHeadEvents = typeof __propDef.events;
|
|
16
|
+
export type CalendarGridHeadSlots = typeof __propDef.slots;
|
|
17
|
+
export default class CalendarGridHead extends SvelteComponent<CalendarGridHeadProps, CalendarGridHeadEvents, CalendarGridHeadSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<script>import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export { className as class };
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<CalendarPrimitive.GridRow class={cn("flex", className)} {...$$restProps}>
|
|
8
|
+
<slot />
|
|
9
|
+
</CalendarPrimitive.GridRow>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: CalendarPrimitive.GridRowProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type CalendarGridRowProps = typeof __propDef.props;
|
|
15
|
+
export type CalendarGridRowEvents = typeof __propDef.events;
|
|
16
|
+
export type CalendarGridRowSlots = typeof __propDef.slots;
|
|
17
|
+
export default class CalendarGridRow extends SvelteComponent<CalendarGridRowProps, CalendarGridRowEvents, CalendarGridRowSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<script>import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export { className as class };
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<CalendarPrimitive.Grid class={cn("w-full border-collapse space-y-1", className)} {...$$restProps}>
|
|
8
|
+
<slot />
|
|
9
|
+
</CalendarPrimitive.Grid>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: CalendarPrimitive.GridProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type CalendarGridProps = typeof __propDef.props;
|
|
15
|
+
export type CalendarGridEvents = typeof __propDef.events;
|
|
16
|
+
export type CalendarGridSlots = typeof __propDef.slots;
|
|
17
|
+
export default class CalendarGrid extends SvelteComponent<CalendarGridProps, CalendarGridEvents, CalendarGridSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export { className as class };
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<CalendarPrimitive.HeadCell
|
|
8
|
+
class={cn("text-muted-foreground w-9 rounded-md text-[0.8rem] font-normal", className)}
|
|
9
|
+
{...$$restProps}
|
|
10
|
+
>
|
|
11
|
+
<slot />
|
|
12
|
+
</CalendarPrimitive.HeadCell>
|