@winkintel/bootstrap-svelte 0.0.1
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.md +202 -0
- package/README.md +221 -0
- package/dist/Accordion/accordion-body.svelte +8 -0
- package/dist/Accordion/accordion-body.svelte.d.ts +4 -0
- package/dist/Accordion/accordion-button.svelte +25 -0
- package/dist/Accordion/accordion-button.svelte.d.ts +4 -0
- package/dist/Accordion/accordion-collapse.svelte +18 -0
- package/dist/Accordion/accordion-collapse.svelte.d.ts +4 -0
- package/dist/Accordion/accordion-header.svelte +8 -0
- package/dist/Accordion/accordion-header.svelte.d.ts +4 -0
- package/dist/Accordion/accordion-item.svelte +33 -0
- package/dist/Accordion/accordion-item.svelte.d.ts +4 -0
- package/dist/Accordion/accordion.svelte +65 -0
- package/dist/Accordion/accordion.svelte.d.ts +51 -0
- package/dist/Accordion/accordion.svelte.js +139 -0
- package/dist/Accordion/composition.d.ts +7 -0
- package/dist/Accordion/composition.js +6 -0
- package/dist/Accordion/index.d.ts +1 -0
- package/dist/Accordion/index.js +1 -0
- package/dist/Accordion/types.d.ts +15 -0
- package/dist/Accordion/types.js +1 -0
- package/dist/Alert/alert.svelte +73 -0
- package/dist/Alert/alert.svelte.d.ts +46 -0
- package/dist/Alert/index.d.ts +2 -0
- package/dist/Alert/index.js +2 -0
- package/dist/Alert/types.d.ts +11 -0
- package/dist/Alert/types.js +1 -0
- package/dist/Badge/badge.svelte +42 -0
- package/dist/Badge/badge.svelte.d.ts +36 -0
- package/dist/Badge/index.d.ts +2 -0
- package/dist/Badge/index.js +2 -0
- package/dist/Badge/types.d.ts +28 -0
- package/dist/Badge/types.js +24 -0
- package/dist/Breadcrumb/breadcrumb-item.svelte +66 -0
- package/dist/Breadcrumb/breadcrumb-item.svelte.d.ts +30 -0
- package/dist/Breadcrumb/breadcrumb.svelte +57 -0
- package/dist/Breadcrumb/breadcrumb.svelte.d.ts +34 -0
- package/dist/Breadcrumb/breadcrumb.svelte.js +41 -0
- package/dist/Breadcrumb/composition.d.ts +3 -0
- package/dist/Breadcrumb/composition.js +2 -0
- package/dist/Breadcrumb/index.d.ts +1 -0
- package/dist/Breadcrumb/index.js +1 -0
- package/dist/Breadcrumb/types.d.ts +9 -0
- package/dist/Breadcrumb/types.js +1 -0
- package/dist/BreakpointListener/breakpoint-listener.svelte +54 -0
- package/dist/BreakpointListener/breakpoint-listener.svelte.d.ts +4 -0
- package/dist/BreakpointListener/index.d.ts +2 -0
- package/dist/BreakpointListener/index.js +2 -0
- package/dist/BreakpointListener/types.d.ts +30 -0
- package/dist/BreakpointListener/types.js +20 -0
- package/dist/Button/button.svelte +87 -0
- package/dist/Button/button.svelte.d.ts +59 -0
- package/dist/Button/index.d.ts +2 -0
- package/dist/Button/index.js +2 -0
- package/dist/Button/types.d.ts +26 -0
- package/dist/Button/types.js +1 -0
- package/dist/ButtonGroup/button-check.svelte +70 -0
- package/dist/ButtonGroup/button-check.svelte.d.ts +35 -0
- package/dist/ButtonGroup/button-group.svelte +51 -0
- package/dist/ButtonGroup/button-group.svelte.d.ts +43 -0
- package/dist/ButtonGroup/button-toolbar.svelte +36 -0
- package/dist/ButtonGroup/button-toolbar.svelte.d.ts +28 -0
- package/dist/ButtonGroup/index.d.ts +4 -0
- package/dist/ButtonGroup/index.js +4 -0
- package/dist/ButtonGroup/types.d.ts +21 -0
- package/dist/ButtonGroup/types.js +1 -0
- package/dist/Card/card-body.svelte +10 -0
- package/dist/Card/card-body.svelte.d.ts +3 -0
- package/dist/Card/card-footer.svelte +10 -0
- package/dist/Card/card-footer.svelte.d.ts +3 -0
- package/dist/Card/card-group.svelte +10 -0
- package/dist/Card/card-group.svelte.d.ts +3 -0
- package/dist/Card/card-header.svelte +10 -0
- package/dist/Card/card-header.svelte.d.ts +3 -0
- package/dist/Card/card-img-overlay.svelte +10 -0
- package/dist/Card/card-img-overlay.svelte.d.ts +3 -0
- package/dist/Card/card-img.svelte +12 -0
- package/dist/Card/card-img.svelte.d.ts +4 -0
- package/dist/Card/card-link.svelte +10 -0
- package/dist/Card/card-link.svelte.d.ts +4 -0
- package/dist/Card/card-subtitle.svelte +11 -0
- package/dist/Card/card-subtitle.svelte.d.ts +4 -0
- package/dist/Card/card-text.svelte +10 -0
- package/dist/Card/card-text.svelte.d.ts +3 -0
- package/dist/Card/card-title.svelte +11 -0
- package/dist/Card/card-title.svelte.d.ts +4 -0
- package/dist/Card/card.svelte +45 -0
- package/dist/Card/card.svelte.d.ts +38 -0
- package/dist/Card/composition.d.ts +12 -0
- package/dist/Card/composition.js +11 -0
- package/dist/Card/index.d.ts +1 -0
- package/dist/Card/index.js +1 -0
- package/dist/Card/types.d.ts +22 -0
- package/dist/Card/types.js +1 -0
- package/dist/Carousel/carousel-caption.svelte +30 -0
- package/dist/Carousel/carousel-caption.svelte.d.ts +22 -0
- package/dist/Carousel/carousel-control-next.svelte +35 -0
- package/dist/Carousel/carousel-control-next.svelte.d.ts +21 -0
- package/dist/Carousel/carousel-control-prev.svelte +35 -0
- package/dist/Carousel/carousel-control-prev.svelte.d.ts +21 -0
- package/dist/Carousel/carousel-indicator-button.svelte +41 -0
- package/dist/Carousel/carousel-indicator-button.svelte.d.ts +21 -0
- package/dist/Carousel/carousel-indicators.svelte +33 -0
- package/dist/Carousel/carousel-indicators.svelte.d.ts +25 -0
- package/dist/Carousel/carousel-inner.svelte +30 -0
- package/dist/Carousel/carousel-inner.svelte.d.ts +22 -0
- package/dist/Carousel/carousel-item.svelte +138 -0
- package/dist/Carousel/carousel-item.svelte.d.ts +28 -0
- package/dist/Carousel/carousel.svelte +140 -0
- package/dist/Carousel/carousel.svelte.d.ts +46 -0
- package/dist/Carousel/carousel.svelte.js +551 -0
- package/dist/Carousel/composition.d.ts +9 -0
- package/dist/Carousel/composition.js +8 -0
- package/dist/Carousel/index.d.ts +1 -0
- package/dist/Carousel/index.js +1 -0
- package/dist/Carousel/types.d.ts +74 -0
- package/dist/Carousel/types.js +1 -0
- package/dist/CloseButton/close-button.svelte +32 -0
- package/dist/CloseButton/close-button.svelte.d.ts +29 -0
- package/dist/CloseButton/index.d.ts +2 -0
- package/dist/CloseButton/index.js +2 -0
- package/dist/CloseButton/types.d.ts +6 -0
- package/dist/CloseButton/types.js +1 -0
- package/dist/Col/col.svelte +133 -0
- package/dist/Col/col.svelte.d.ts +60 -0
- package/dist/Col/index.d.ts +2 -0
- package/dist/Col/index.js +2 -0
- package/dist/Col/types.d.ts +30 -0
- package/dist/Col/types.js +1 -0
- package/dist/Collapse/collapse-aria-attachment.svelte.d.ts +3 -0
- package/dist/Collapse/collapse-aria-attachment.svelte.js +32 -0
- package/dist/Collapse/collapse.svelte +63 -0
- package/dist/Collapse/collapse.svelte.d.ts +45 -0
- package/dist/Collapse/index.d.ts +3 -0
- package/dist/Collapse/index.js +3 -0
- package/dist/Collapse/transition.d.ts +5 -0
- package/dist/Collapse/transition.js +75 -0
- package/dist/Collapse/types.d.ts +18 -0
- package/dist/Collapse/types.js +1 -0
- package/dist/Container/container.svelte +46 -0
- package/dist/Container/container.svelte.d.ts +36 -0
- package/dist/Container/index.d.ts +2 -0
- package/dist/Container/index.js +2 -0
- package/dist/Container/types.d.ts +8 -0
- package/dist/Container/types.js +1 -0
- package/dist/Dropdown/composition.d.ts +8 -0
- package/dist/Dropdown/composition.js +7 -0
- package/dist/Dropdown/dropdown-divider.svelte +23 -0
- package/dist/Dropdown/dropdown-divider.svelte.d.ts +18 -0
- package/dist/Dropdown/dropdown-header.svelte +27 -0
- package/dist/Dropdown/dropdown-header.svelte.d.ts +19 -0
- package/dist/Dropdown/dropdown-item-text.svelte +26 -0
- package/dist/Dropdown/dropdown-item-text.svelte.d.ts +18 -0
- package/dist/Dropdown/dropdown-item.svelte +86 -0
- package/dist/Dropdown/dropdown-item.svelte.d.ts +24 -0
- package/dist/Dropdown/dropdown-menu.svelte +82 -0
- package/dist/Dropdown/dropdown-menu.svelte.d.ts +27 -0
- package/dist/Dropdown/dropdown-toggle.svelte +67 -0
- package/dist/Dropdown/dropdown-toggle.svelte.d.ts +24 -0
- package/dist/Dropdown/dropdown.svelte +106 -0
- package/dist/Dropdown/dropdown.svelte.d.ts +34 -0
- package/dist/Dropdown/dropdown.svelte.js +435 -0
- package/dist/Dropdown/index.d.ts +1 -0
- package/dist/Dropdown/index.js +1 -0
- package/dist/Dropdown/types.d.ts +47 -0
- package/dist/Dropdown/types.js +1 -0
- package/dist/Form/composition.d.ts +34 -0
- package/dist/Form/composition.js +33 -0
- package/dist/Form/form-check-input.svelte +92 -0
- package/dist/Form/form-check-input.svelte.d.ts +48 -0
- package/dist/Form/form-check-label.svelte +26 -0
- package/dist/Form/form-check-label.svelte.d.ts +21 -0
- package/dist/Form/form-check.svelte +55 -0
- package/dist/Form/form-check.svelte.d.ts +50 -0
- package/dist/Form/form-color-input.svelte +54 -0
- package/dist/Form/form-color-input.svelte.d.ts +30 -0
- package/dist/Form/form-date-input.svelte +64 -0
- package/dist/Form/form-date-input.svelte.d.ts +46 -0
- package/dist/Form/form-datetime-local-input.svelte +60 -0
- package/dist/Form/form-datetime-local-input.svelte.d.ts +45 -0
- package/dist/Form/form-email-input.svelte +64 -0
- package/dist/Form/form-email-input.svelte.d.ts +46 -0
- package/dist/Form/form-feedback.svelte +36 -0
- package/dist/Form/form-feedback.svelte.d.ts +26 -0
- package/dist/Form/form-file-input.svelte +43 -0
- package/dist/Form/form-file-input.svelte.d.ts +30 -0
- package/dist/Form/form-floating.svelte +44 -0
- package/dist/Form/form-floating.svelte.d.ts +38 -0
- package/dist/Form/form-helper-text.svelte +35 -0
- package/dist/Form/form-helper-text.svelte.d.ts +29 -0
- package/dist/Form/form-hidden-input.svelte +18 -0
- package/dist/Form/form-hidden-input.svelte.d.ts +16 -0
- package/dist/Form/form-image-input.svelte +30 -0
- package/dist/Form/form-image-input.svelte.d.ts +26 -0
- package/dist/Form/form-input-group-text.svelte +47 -0
- package/dist/Form/form-input-group-text.svelte.d.ts +42 -0
- package/dist/Form/form-input-group.svelte +52 -0
- package/dist/Form/form-input-group.svelte.d.ts +43 -0
- package/dist/Form/form-input-label.svelte +33 -0
- package/dist/Form/form-input-label.svelte.d.ts +28 -0
- package/dist/Form/form-month-input.svelte +63 -0
- package/dist/Form/form-month-input.svelte.d.ts +48 -0
- package/dist/Form/form-number-input.svelte +62 -0
- package/dist/Form/form-number-input.svelte.d.ts +47 -0
- package/dist/Form/form-password-input.svelte +60 -0
- package/dist/Form/form-password-input.svelte.d.ts +41 -0
- package/dist/Form/form-radio-input.svelte +47 -0
- package/dist/Form/form-radio-input.svelte.d.ts +41 -0
- package/dist/Form/form-radio-label.svelte +41 -0
- package/dist/Form/form-radio-label.svelte.d.ts +35 -0
- package/dist/Form/form-range-input.svelte +43 -0
- package/dist/Form/form-range-input.svelte.d.ts +39 -0
- package/dist/Form/form-search-input.svelte +63 -0
- package/dist/Form/form-search-input.svelte.d.ts +45 -0
- package/dist/Form/form-select.svelte +85 -0
- package/dist/Form/form-select.svelte.d.ts +59 -0
- package/dist/Form/form-switch-input.svelte +54 -0
- package/dist/Form/form-switch-input.svelte.d.ts +41 -0
- package/dist/Form/form-switch-label.svelte +25 -0
- package/dist/Form/form-switch-label.svelte.d.ts +19 -0
- package/dist/Form/form-telephone-input.svelte +129 -0
- package/dist/Form/form-telephone-input.svelte.d.ts +55 -0
- package/dist/Form/form-text-area.svelte +57 -0
- package/dist/Form/form-text-area.svelte.d.ts +38 -0
- package/dist/Form/form-text-input.svelte +55 -0
- package/dist/Form/form-text-input.svelte.d.ts +37 -0
- package/dist/Form/form-time-input.svelte +62 -0
- package/dist/Form/form-time-input.svelte.d.ts +47 -0
- package/dist/Form/form-url-input.svelte +60 -0
- package/dist/Form/form-url-input.svelte.d.ts +45 -0
- package/dist/Form/form-week-Input.svelte +62 -0
- package/dist/Form/form-week-Input.svelte.d.ts +47 -0
- package/dist/Form/form.svelte +37 -0
- package/dist/Form/form.svelte.d.ts +23 -0
- package/dist/Form/index.d.ts +1 -0
- package/dist/Form/index.js +1 -0
- package/dist/Form/types.d.ts +168 -0
- package/dist/Form/types.js +1 -0
- package/dist/ListGroup/composition.d.ts +4 -0
- package/dist/ListGroup/composition.js +3 -0
- package/dist/ListGroup/index.d.ts +1 -0
- package/dist/ListGroup/index.js +1 -0
- package/dist/ListGroup/list-group-item-action.svelte +50 -0
- package/dist/ListGroup/list-group-item-action.svelte.d.ts +23 -0
- package/dist/ListGroup/list-group-item.svelte +58 -0
- package/dist/ListGroup/list-group-item.svelte.d.ts +51 -0
- package/dist/ListGroup/list-group.svelte +83 -0
- package/dist/ListGroup/list-group.svelte.d.ts +68 -0
- package/dist/ListGroup/types.d.ts +20 -0
- package/dist/ListGroup/types.js +1 -0
- package/dist/Modal/composition.d.ts +8 -0
- package/dist/Modal/composition.js +7 -0
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Modal/index.js +1 -0
- package/dist/Modal/modal-body.svelte +27 -0
- package/dist/Modal/modal-body.svelte.d.ts +19 -0
- package/dist/Modal/modal-content.svelte +35 -0
- package/dist/Modal/modal-content.svelte.d.ts +27 -0
- package/dist/Modal/modal-dialog.svelte +65 -0
- package/dist/Modal/modal-dialog.svelte.d.ts +52 -0
- package/dist/Modal/modal-footer.svelte +28 -0
- package/dist/Modal/modal-footer.svelte.d.ts +20 -0
- package/dist/Modal/modal-header.svelte +50 -0
- package/dist/Modal/modal-header.svelte.d.ts +29 -0
- package/dist/Modal/modal-title.svelte +45 -0
- package/dist/Modal/modal-title.svelte.d.ts +26 -0
- package/dist/Modal/modal.svelte +233 -0
- package/dist/Modal/modal.svelte.d.ts +52 -0
- package/dist/Modal/modal.svelte.js +86 -0
- package/dist/Modal/types.d.ts +31 -0
- package/dist/Modal/types.js +1 -0
- package/dist/Nav/composition.d.ts +4 -0
- package/dist/Nav/composition.js +3 -0
- package/dist/Nav/index.d.ts +1 -0
- package/dist/Nav/index.js +1 -0
- package/dist/Nav/nav-item.svelte +25 -0
- package/dist/Nav/nav-item.svelte.d.ts +18 -0
- package/dist/Nav/nav-link.svelte +77 -0
- package/dist/Nav/nav-link.svelte.d.ts +22 -0
- package/dist/Nav/nav.svelte +93 -0
- package/dist/Nav/nav.svelte.d.ts +56 -0
- package/dist/Nav/types.d.ts +26 -0
- package/dist/Nav/types.js +1 -0
- package/dist/Navbar/composition.d.ts +8 -0
- package/dist/Navbar/composition.js +7 -0
- package/dist/Navbar/index.d.ts +1 -0
- package/dist/Navbar/index.js +1 -0
- package/dist/Navbar/navbar-brand.svelte +55 -0
- package/dist/Navbar/navbar-brand.svelte.d.ts +48 -0
- package/dist/Navbar/navbar-collapse.svelte +76 -0
- package/dist/Navbar/navbar-collapse.svelte.d.ts +55 -0
- package/dist/Navbar/navbar-nav.svelte +66 -0
- package/dist/Navbar/navbar-nav.svelte.d.ts +53 -0
- package/dist/Navbar/navbar-text.svelte +36 -0
- package/dist/Navbar/navbar-text.svelte.d.ts +28 -0
- package/dist/Navbar/navbar-toggler-icon.svelte +34 -0
- package/dist/Navbar/navbar-toggler-icon.svelte.d.ts +28 -0
- package/dist/Navbar/navbar-toggler.svelte +75 -0
- package/dist/Navbar/navbar-toggler.svelte.d.ts +48 -0
- package/dist/Navbar/navbar.svelte +116 -0
- package/dist/Navbar/navbar.svelte.d.ts +88 -0
- package/dist/Navbar/types.d.ts +23 -0
- package/dist/Navbar/types.js +1 -0
- package/dist/Offcanvas/composition.d.ts +5 -0
- package/dist/Offcanvas/composition.js +4 -0
- package/dist/Offcanvas/index.d.ts +1 -0
- package/dist/Offcanvas/index.js +1 -0
- package/dist/Offcanvas/offcanvas-body.svelte +25 -0
- package/dist/Offcanvas/offcanvas-body.svelte.d.ts +19 -0
- package/dist/Offcanvas/offcanvas-header.svelte +39 -0
- package/dist/Offcanvas/offcanvas-header.svelte.d.ts +20 -0
- package/dist/Offcanvas/offcanvas-title.svelte +31 -0
- package/dist/Offcanvas/offcanvas-title.svelte.d.ts +25 -0
- package/dist/Offcanvas/offcanvas.svelte +220 -0
- package/dist/Offcanvas/offcanvas.svelte.d.ts +61 -0
- package/dist/Offcanvas/types.d.ts +25 -0
- package/dist/Offcanvas/types.js +1 -0
- package/dist/Pagination/composition.d.ts +4 -0
- package/dist/Pagination/composition.js +3 -0
- package/dist/Pagination/index.d.ts +1 -0
- package/dist/Pagination/index.js +1 -0
- package/dist/Pagination/pagination-item.svelte +81 -0
- package/dist/Pagination/pagination-item.svelte.d.ts +35 -0
- package/dist/Pagination/pagination-link.svelte +45 -0
- package/dist/Pagination/pagination-link.svelte.d.ts +25 -0
- package/dist/Pagination/pagination.svelte +60 -0
- package/dist/Pagination/pagination.svelte.d.ts +37 -0
- package/dist/Pagination/pagination.svelte.js +117 -0
- package/dist/Pagination/types.d.ts +19 -0
- package/dist/Pagination/types.js +1 -0
- package/dist/Placeholder/composition.d.ts +3 -0
- package/dist/Placeholder/composition.js +2 -0
- package/dist/Placeholder/index.d.ts +1 -0
- package/dist/Placeholder/index.js +1 -0
- package/dist/Placeholder/placeholder-item.svelte +53 -0
- package/dist/Placeholder/placeholder-item.svelte.d.ts +48 -0
- package/dist/Placeholder/placeholder.svelte +37 -0
- package/dist/Placeholder/placeholder.svelte.d.ts +32 -0
- package/dist/Placeholder/types.d.ts +12 -0
- package/dist/Placeholder/types.js +1 -0
- package/dist/Popover/composition.d.ts +4 -0
- package/dist/Popover/composition.js +3 -0
- package/dist/Popover/index.d.ts +1 -0
- package/dist/Popover/index.js +1 -0
- package/dist/Popover/popover-body.svelte +10 -0
- package/dist/Popover/popover-body.svelte.d.ts +3 -0
- package/dist/Popover/popover-header.svelte +11 -0
- package/dist/Popover/popover-header.svelte.d.ts +4 -0
- package/dist/Popover/popover.svelte +74 -0
- package/dist/Popover/popover.svelte.d.ts +53 -0
- package/dist/Popover/types.d.ts +20 -0
- package/dist/Popover/types.js +1 -0
- package/dist/Portal/index.d.ts +2 -0
- package/dist/Portal/index.js +2 -0
- package/dist/Portal/portal-host.svelte +5 -0
- package/dist/Portal/portal-host.svelte.d.ts +7 -0
- package/dist/Portal/portal.svelte +69 -0
- package/dist/Portal/portal.svelte.d.ts +32 -0
- package/dist/Portal/types.d.ts +6 -0
- package/dist/Portal/types.js +1 -0
- package/dist/Progress/index.d.ts +3 -0
- package/dist/Progress/index.js +3 -0
- package/dist/Progress/progress-bar.svelte +101 -0
- package/dist/Progress/progress-bar.svelte.d.ts +39 -0
- package/dist/Progress/progress-stacked.svelte +34 -0
- package/dist/Progress/progress-stacked.svelte.d.ts +24 -0
- package/dist/Progress/progress.svelte.d.ts +31 -0
- package/dist/Progress/progress.svelte.js +52 -0
- package/dist/Progress/types.d.ts +40 -0
- package/dist/Progress/types.js +1 -0
- package/dist/Row/index.d.ts +2 -0
- package/dist/Row/index.js +2 -0
- package/dist/Row/row.svelte +75 -0
- package/dist/Row/row.svelte.d.ts +46 -0
- package/dist/Row/types.d.ts +12 -0
- package/dist/Row/types.js +1 -0
- package/dist/Scrollspy/index.d.ts +2 -0
- package/dist/Scrollspy/index.js +2 -0
- package/dist/Scrollspy/scrollspy-attachment.svelte.d.ts +10 -0
- package/dist/Scrollspy/scrollspy-attachment.svelte.js +122 -0
- package/dist/Scrollspy/types.d.ts +9 -0
- package/dist/Scrollspy/types.js +1 -0
- package/dist/Spinner/index.d.ts +2 -0
- package/dist/Spinner/index.js +2 -0
- package/dist/Spinner/spinner.svelte +77 -0
- package/dist/Spinner/spinner.svelte.d.ts +70 -0
- package/dist/Spinner/types.d.ts +9 -0
- package/dist/Spinner/types.js +1 -0
- package/dist/Tab/composition.d.ts +5 -0
- package/dist/Tab/composition.js +4 -0
- package/dist/Tab/index.d.ts +1 -0
- package/dist/Tab/index.js +1 -0
- package/dist/Tab/tab-content.svelte +29 -0
- package/dist/Tab/tab-content.svelte.d.ts +23 -0
- package/dist/Tab/tab-nav-link.svelte +69 -0
- package/dist/Tab/tab-nav-link.svelte.d.ts +22 -0
- package/dist/Tab/tab-pane.svelte +72 -0
- package/dist/Tab/tab-pane.svelte.d.ts +26 -0
- package/dist/Tab/tab.svelte +63 -0
- package/dist/Tab/tab.svelte.d.ts +50 -0
- package/dist/Tab/types.d.ts +18 -0
- package/dist/Tab/types.js +1 -0
- package/dist/Table/composition.d.ts +9 -0
- package/dist/Table/composition.js +8 -0
- package/dist/Table/index.d.ts +1 -0
- package/dist/Table/index.js +1 -0
- package/dist/Table/table-body.svelte +30 -0
- package/dist/Table/table-body.svelte.d.ts +23 -0
- package/dist/Table/table-caption.svelte +20 -0
- package/dist/Table/table-caption.svelte.d.ts +15 -0
- package/dist/Table/table-data.svelte +30 -0
- package/dist/Table/table-data.svelte.d.ts +19 -0
- package/dist/Table/table-foot.svelte +31 -0
- package/dist/Table/table-foot.svelte.d.ts +24 -0
- package/dist/Table/table-head.svelte +31 -0
- package/dist/Table/table-head.svelte.d.ts +24 -0
- package/dist/Table/table-header.svelte +38 -0
- package/dist/Table/table-header.svelte.d.ts +17 -0
- package/dist/Table/table-row.svelte +34 -0
- package/dist/Table/table-row.svelte.d.ts +23 -0
- package/dist/Table/table.svelte +154 -0
- package/dist/Table/table.svelte.d.ts +98 -0
- package/dist/Table/table.svelte.js +92 -0
- package/dist/Table/types.d.ts +43 -0
- package/dist/Table/types.js +1 -0
- package/dist/Toast/composition.d.ts +5 -0
- package/dist/Toast/composition.js +4 -0
- package/dist/Toast/index.d.ts +1 -0
- package/dist/Toast/index.js +1 -0
- package/dist/Toast/toast-body.svelte +26 -0
- package/dist/Toast/toast-body.svelte.d.ts +18 -0
- package/dist/Toast/toast-container.svelte +44 -0
- package/dist/Toast/toast-container.svelte.d.ts +36 -0
- package/dist/Toast/toast-header.svelte +56 -0
- package/dist/Toast/toast-header.svelte.d.ts +36 -0
- package/dist/Toast/toast.svelte +112 -0
- package/dist/Toast/toast.svelte.d.ts +54 -0
- package/dist/Toast/toast.svelte.js +83 -0
- package/dist/Toast/types.d.ts +53 -0
- package/dist/Toast/types.js +19 -0
- package/dist/Tooltip/composition.d.ts +3 -0
- package/dist/Tooltip/composition.js +2 -0
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/Tooltip/index.js +1 -0
- package/dist/Tooltip/tooltip-inner.svelte +10 -0
- package/dist/Tooltip/tooltip-inner.svelte.d.ts +4 -0
- package/dist/Tooltip/tooltip.svelte +213 -0
- package/dist/Tooltip/tooltip.svelte.d.ts +54 -0
- package/dist/Tooltip/types.d.ts +43 -0
- package/dist/Tooltip/types.js +1 -0
- package/dist/common/context.d.ts +47 -0
- package/dist/common/context.js +70 -0
- package/dist/common/css.d.ts +71 -0
- package/dist/common/css.js +133 -0
- package/dist/common/dom.d.ts +51 -0
- package/dist/common/dom.js +98 -0
- package/dist/common/index.d.ts +6 -0
- package/dist/common/index.js +5 -0
- package/dist/common/nav-tab.svelte.d.ts +88 -0
- package/dist/common/nav-tab.svelte.js +188 -0
- package/dist/common/navbar-offcanvas.svelte.d.ts +101 -0
- package/dist/common/navbar-offcanvas.svelte.js +228 -0
- package/dist/common/noop.d.ts +4 -0
- package/dist/common/noop.js +4 -0
- package/dist/common/scrollbar.d.ts +20 -0
- package/dist/common/scrollbar.js +53 -0
- package/dist/common/types.d.ts +143 -0
- package/dist/common/types.js +40 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +33 -0
- package/package.json +105 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as ListGroup from './composition.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as ListGroup from './composition.js';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## ListGroup.ItemAction
|
|
4
|
+
An action item within a list group, typically used for navigation or triggering actions.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
<ListGroup.ItemAction href="#!">Action</ListGroup.ItemAction>
|
|
9
|
+
<ListGroup.ItemAction>Another action</ListGroup.ItemAction>
|
|
10
|
+
```
|
|
11
|
+
### Props
|
|
12
|
+
- `class` (string): Optional. Additional CSS classes to apply to the item.
|
|
13
|
+
- `colorVariant` (string): Optional. Color variant for the item ('primary', 'success', etc.).
|
|
14
|
+
- `elementRef` (HTMLElement): Optional. Reference to the item DOM element.
|
|
15
|
+
- `href` (string): Optional. If provided, the item will be rendered as an anchor (`<a>`). If not, it will be a button (`<button>`).
|
|
16
|
+
- `id` (string): Optional. Unique identifier for the item. Defaults to a generated ID.
|
|
17
|
+
- `onclick` (EventListener): Optional. Click event handler for the item.
|
|
18
|
+
- `isActive` (boolean): Optional. Applies active styling to the item.
|
|
19
|
+
- `isDisabled` (boolean): Optional. Applies disabled styling to the item.
|
|
20
|
+
-->
|
|
21
|
+
<script lang="ts">/* eslint-disable @typescript-eslint/no-explicit-any -- restOfProps spread targets a union element type that is not spreadable without as any */
|
|
22
|
+
import { uniqueClsx } from '../common/css.js';
|
|
23
|
+
import { noop } from '../common/noop.js';
|
|
24
|
+
// Generate a unique ID for the element, in case one is not provided...
|
|
25
|
+
const uid = $props.id();
|
|
26
|
+
let { children, class: classValues, colorVariant, elementRef = $bindable(null), href, id = `list-group-item-action-${uid}`, isActive = false, isDisabled = false, onclick = noop, ...restOfProps } = $props();
|
|
27
|
+
const isAnchor = $derived(Boolean(href));
|
|
28
|
+
const elementType = $derived(isAnchor ? 'a' : 'button');
|
|
29
|
+
let classes = $derived(uniqueClsx('list-group-item', 'list-group-item-action', {
|
|
30
|
+
active: isActive,
|
|
31
|
+
disabled: isDisabled
|
|
32
|
+
}, colorVariant && `list-group-item-${colorVariant}`, classValues));
|
|
33
|
+
const handleClick = (event) => {
|
|
34
|
+
onclick(event);
|
|
35
|
+
};
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<svelte:element
|
|
39
|
+
this={elementType}
|
|
40
|
+
aria-current={isActive}
|
|
41
|
+
aria-disabled={isDisabled}
|
|
42
|
+
bind:this={elementRef}
|
|
43
|
+
class={classes}
|
|
44
|
+
{href}
|
|
45
|
+
{id}
|
|
46
|
+
onclick={handleClick}
|
|
47
|
+
type={isAnchor ? undefined : 'button'}
|
|
48
|
+
{...restOfProps as any}>
|
|
49
|
+
{@render children?.()}
|
|
50
|
+
</svelte:element>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ListGroup } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## ListGroup.ItemAction
|
|
4
|
+
* An action item within a list group, typically used for navigation or triggering actions.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* <ListGroup.ItemAction href="#!">Action</ListGroup.ItemAction>
|
|
9
|
+
* <ListGroup.ItemAction>Another action</ListGroup.ItemAction>
|
|
10
|
+
* ```
|
|
11
|
+
* ### Props
|
|
12
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the item.
|
|
13
|
+
* - `colorVariant` (string): Optional. Color variant for the item ('primary', 'success', etc.).
|
|
14
|
+
* - `elementRef` (HTMLElement): Optional. Reference to the item DOM element.
|
|
15
|
+
* - `href` (string): Optional. If provided, the item will be rendered as an anchor (`<a>`). If not, it will be a button (`<button>`).
|
|
16
|
+
* - `id` (string): Optional. Unique identifier for the item. Defaults to a generated ID.
|
|
17
|
+
* - `onclick` (EventListener): Optional. Click event handler for the item.
|
|
18
|
+
* - `isActive` (boolean): Optional. Applies active styling to the item.
|
|
19
|
+
* - `isDisabled` (boolean): Optional. Applies disabled styling to the item.
|
|
20
|
+
*/
|
|
21
|
+
declare const ListGroupItemAction: import("svelte").Component<ListGroup.ItemActionProps, {}, "elementRef">;
|
|
22
|
+
type ListGroupItemAction = ReturnType<typeof ListGroupItemAction>;
|
|
23
|
+
export default ListGroupItemAction;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## ListGroup.Item
|
|
4
|
+
A component that represents an item in a list group. It can be used as a standalone item or as part of a list group.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
<ListGroup.Item>Basic list item</ListGroup.Item>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
#### Standard list items
|
|
12
|
+
```svelte
|
|
13
|
+
<ListGroup.Item>Default item</ListGroup.Item>
|
|
14
|
+
<ListGroup.Item isActive={true}>Active item</ListGroup.Item>
|
|
15
|
+
<ListGroup.Item isDisabled={true}>Disabled item</ListGroup.Item>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
#### Actionable items
|
|
19
|
+
```svelte
|
|
20
|
+
<ListGroup.Item isActionable={true}>Clickable item</ListGroup.Item>
|
|
21
|
+
<ListGroup.Item isActionable={true} isActive={true}>Active and clickable</ListGroup.Item>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
#### Item color variants
|
|
25
|
+
```svelte
|
|
26
|
+
<ListGroup.Item colorVariant="primary">Primary</ListGroup.Item>
|
|
27
|
+
<ListGroup.Item colorVariant="secondary">Secondary</ListGroup.Item>
|
|
28
|
+
<ListGroup.Item colorVariant="success">Success</ListGroup.Item>
|
|
29
|
+
<ListGroup.Item colorVariant="danger">Danger</ListGroup.Item>
|
|
30
|
+
<ListGroup.Item colorVariant="warning">Warning</ListGroup.Item>
|
|
31
|
+
<ListGroup.Item colorVariant="info">Info</ListGroup.Item>
|
|
32
|
+
<ListGroup.Item colorVariant="light">Light</ListGroup.Item>
|
|
33
|
+
<ListGroup.Item colorVariant="dark">Dark</ListGroup.Item>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
#### Combined properties
|
|
37
|
+
```svelte
|
|
38
|
+
<ListGroup.Item colorVariant="success" isActive={true}>Active success item</ListGroup.Item>
|
|
39
|
+
<ListGroup.Item colorVariant="danger" isDisabled={true}>Disabled danger item</ListGroup.Item>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Props
|
|
43
|
+
- `class` (string): Optional. CSS classes for styling the item.
|
|
44
|
+
- `colorVariant` (string): Optional. Color variant for the item ('primary', 'success', etc.).
|
|
45
|
+
- `elementRef` (HTMLElement): Optional. Reference to the list item DOM element.
|
|
46
|
+
- `id` (string): Optional. ID for the list item element.
|
|
47
|
+
- `isActive` (boolean): Optional. Applies active styling to the item.
|
|
48
|
+
-->
|
|
49
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
50
|
+
// Generate a unique ID for the card element, in case one is not provided...
|
|
51
|
+
const uid = $props.id();
|
|
52
|
+
let { children, class: classValues, colorVariant, elementRef = $bindable(null), id = `list-group-item-${uid}`, isActive = false, ...restOfProps } = $props();
|
|
53
|
+
let classes = $derived(uniqueClsx('list-group-item', { active: isActive }, colorVariant && `list-group-item-${colorVariant}`, classValues));
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<li aria-current={isActive} bind:this={elementRef} class={classes} {id} {...restOfProps}>
|
|
57
|
+
{@render children?.()}
|
|
58
|
+
</li>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ListGroup } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## ListGroup.Item
|
|
4
|
+
* A component that represents an item in a list group. It can be used as a standalone item or as part of a list group.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* <ListGroup.Item>Basic list item</ListGroup.Item>
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* #### Standard list items
|
|
12
|
+
* ```svelte
|
|
13
|
+
* <ListGroup.Item>Default item</ListGroup.Item>
|
|
14
|
+
* <ListGroup.Item isActive={true}>Active item</ListGroup.Item>
|
|
15
|
+
* <ListGroup.Item isDisabled={true}>Disabled item</ListGroup.Item>
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* #### Actionable items
|
|
19
|
+
* ```svelte
|
|
20
|
+
* <ListGroup.Item isActionable={true}>Clickable item</ListGroup.Item>
|
|
21
|
+
* <ListGroup.Item isActionable={true} isActive={true}>Active and clickable</ListGroup.Item>
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* #### Item color variants
|
|
25
|
+
* ```svelte
|
|
26
|
+
* <ListGroup.Item colorVariant="primary">Primary</ListGroup.Item>
|
|
27
|
+
* <ListGroup.Item colorVariant="secondary">Secondary</ListGroup.Item>
|
|
28
|
+
* <ListGroup.Item colorVariant="success">Success</ListGroup.Item>
|
|
29
|
+
* <ListGroup.Item colorVariant="danger">Danger</ListGroup.Item>
|
|
30
|
+
* <ListGroup.Item colorVariant="warning">Warning</ListGroup.Item>
|
|
31
|
+
* <ListGroup.Item colorVariant="info">Info</ListGroup.Item>
|
|
32
|
+
* <ListGroup.Item colorVariant="light">Light</ListGroup.Item>
|
|
33
|
+
* <ListGroup.Item colorVariant="dark">Dark</ListGroup.Item>
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* #### Combined properties
|
|
37
|
+
* ```svelte
|
|
38
|
+
* <ListGroup.Item colorVariant="success" isActive={true}>Active success item</ListGroup.Item>
|
|
39
|
+
* <ListGroup.Item colorVariant="danger" isDisabled={true}>Disabled danger item</ListGroup.Item>
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* ### Props
|
|
43
|
+
* - `class` (string): Optional. CSS classes for styling the item.
|
|
44
|
+
* - `colorVariant` (string): Optional. Color variant for the item ('primary', 'success', etc.).
|
|
45
|
+
* - `elementRef` (HTMLElement): Optional. Reference to the list item DOM element.
|
|
46
|
+
* - `id` (string): Optional. ID for the list item element.
|
|
47
|
+
* - `isActive` (boolean): Optional. Applies active styling to the item.
|
|
48
|
+
*/
|
|
49
|
+
declare const ListGroupItem: import("svelte").Component<ListGroup.ItemProps, {}, "elementRef">;
|
|
50
|
+
type ListGroupItem = ReturnType<typeof ListGroupItem>;
|
|
51
|
+
export default ListGroupItem;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## ListGroup.Root
|
|
4
|
+
A component that serves as a container for list group items. It can be used to create a list of items with various styles and behaviors.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
<ListGroup.Root>
|
|
9
|
+
<ListGroup.Item>Basic list item 1</ListGroup.Item>
|
|
10
|
+
<ListGroup.Item>Basic list item 2</ListGroup.Item>
|
|
11
|
+
</ListGroup.Root>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
#### Standard list group
|
|
15
|
+
```svelte
|
|
16
|
+
<ListGroup.Root>
|
|
17
|
+
<ListGroup.Item>First item</ListGroup.Item>
|
|
18
|
+
<ListGroup.Item>Second item</ListGroup.Item>
|
|
19
|
+
<ListGroup.Item>Third item</ListGroup.Item>
|
|
20
|
+
</ListGroup.Root>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
#### Flush list group (without outer borders)
|
|
24
|
+
```svelte
|
|
25
|
+
<ListGroup.Root isFlush={true}>
|
|
26
|
+
<ListGroup.Item>Flush list item 1</ListGroup.Item>
|
|
27
|
+
<ListGroup.Item>Flush list item 2</ListGroup.Item>
|
|
28
|
+
<ListGroup.Item>Flush list item 3</ListGroup.Item>
|
|
29
|
+
</ListGroup.Root>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
#### Horizontal list group
|
|
33
|
+
```svelte
|
|
34
|
+
<ListGroup.Root isHorizontal={true}>
|
|
35
|
+
<ListGroup.Item>Horizontal item 1</ListGroup.Item>
|
|
36
|
+
<ListGroup.Item>Horizontal item 2</ListGroup.Item>
|
|
37
|
+
<ListGroup.Item>Horizontal item 3</ListGroup.Item>
|
|
38
|
+
</ListGroup.Root>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
#### Numbered list group
|
|
42
|
+
```svelte
|
|
43
|
+
<ListGroup.Root isNumbered={true}>
|
|
44
|
+
<ListGroup.Item>Numbered item 1</ListGroup.Item>
|
|
45
|
+
<ListGroup.Item>Numbered item 2</ListGroup.Item>
|
|
46
|
+
<ListGroup.Item>Numbered item 3</ListGroup.Item>
|
|
47
|
+
</ListGroup.Root>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
#### Combined properties
|
|
51
|
+
```svelte
|
|
52
|
+
<ListGroup.Root isFlush={true} isNumbered={true}>
|
|
53
|
+
<ListGroup.Item>Flush and numbered item 1</ListGroup.Item>
|
|
54
|
+
<ListGroup.Item>Flush and numbered item 2</ListGroup.Item>
|
|
55
|
+
</ListGroup.Root>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Props
|
|
59
|
+
- `class` (string): Optional. CSS classes for styling the list group
|
|
60
|
+
- `elementRef` (HTMLElement): Optional. Reference to the list group DOM element
|
|
61
|
+
- `id` (string): Optional. ID for the list group element
|
|
62
|
+
- `isFlush` (boolean): Optional. Removes outer borders and rounded corners
|
|
63
|
+
- `isHorizontal` (boolean): Optional. Changes list group direction to horizontal
|
|
64
|
+
- `isNumbered` (boolean): Optional. Creates a numbered list with `<ol>` instead of `<ul>`
|
|
65
|
+
-->
|
|
66
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
67
|
+
// Generate a unique ID for the card element, in case one is not provided...
|
|
68
|
+
const uid = $props.id();
|
|
69
|
+
let { children, class: classValues, elementRef = $bindable(null), horizontalOnBreakpoint, id = `list-group-${uid}`, isFlush, isNumbered, ...restOfProps } = $props();
|
|
70
|
+
let elementType = $derived(isNumbered ? 'ol' : 'ul');
|
|
71
|
+
let hasHorizontalOnBreakpoint = $derived(!!horizontalOnBreakpoint); // !! to convert to boolean
|
|
72
|
+
let isAlwaysHorizontal = $derived(hasHorizontalOnBreakpoint && horizontalOnBreakpoint === 'xs'); // Check if always horizontal
|
|
73
|
+
let classes = $derived(uniqueClsx('list-group', {
|
|
74
|
+
'list-group-flush': isFlush,
|
|
75
|
+
'list-group-horizontal': isAlwaysHorizontal,
|
|
76
|
+
[`list-group-horizontal-${horizontalOnBreakpoint}`]: hasHorizontalOnBreakpoint && !isAlwaysHorizontal,
|
|
77
|
+
'list-group-numbered': isNumbered
|
|
78
|
+
}, classValues));
|
|
79
|
+
</script>
|
|
80
|
+
|
|
81
|
+
<svelte:element this={elementType} bind:this={elementRef} class={classes} {id} {...restOfProps}>
|
|
82
|
+
{@render children?.()}
|
|
83
|
+
</svelte:element>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { ListGroup } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## ListGroup.Root
|
|
4
|
+
* A component that serves as a container for list group items. It can be used to create a list of items with various styles and behaviors.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* <ListGroup.Root>
|
|
9
|
+
* <ListGroup.Item>Basic list item 1</ListGroup.Item>
|
|
10
|
+
* <ListGroup.Item>Basic list item 2</ListGroup.Item>
|
|
11
|
+
* </ListGroup.Root>
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* #### Standard list group
|
|
15
|
+
* ```svelte
|
|
16
|
+
* <ListGroup.Root>
|
|
17
|
+
* <ListGroup.Item>First item</ListGroup.Item>
|
|
18
|
+
* <ListGroup.Item>Second item</ListGroup.Item>
|
|
19
|
+
* <ListGroup.Item>Third item</ListGroup.Item>
|
|
20
|
+
* </ListGroup.Root>
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* #### Flush list group (without outer borders)
|
|
24
|
+
* ```svelte
|
|
25
|
+
* <ListGroup.Root isFlush={true}>
|
|
26
|
+
* <ListGroup.Item>Flush list item 1</ListGroup.Item>
|
|
27
|
+
* <ListGroup.Item>Flush list item 2</ListGroup.Item>
|
|
28
|
+
* <ListGroup.Item>Flush list item 3</ListGroup.Item>
|
|
29
|
+
* </ListGroup.Root>
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* #### Horizontal list group
|
|
33
|
+
* ```svelte
|
|
34
|
+
* <ListGroup.Root isHorizontal={true}>
|
|
35
|
+
* <ListGroup.Item>Horizontal item 1</ListGroup.Item>
|
|
36
|
+
* <ListGroup.Item>Horizontal item 2</ListGroup.Item>
|
|
37
|
+
* <ListGroup.Item>Horizontal item 3</ListGroup.Item>
|
|
38
|
+
* </ListGroup.Root>
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* #### Numbered list group
|
|
42
|
+
* ```svelte
|
|
43
|
+
* <ListGroup.Root isNumbered={true}>
|
|
44
|
+
* <ListGroup.Item>Numbered item 1</ListGroup.Item>
|
|
45
|
+
* <ListGroup.Item>Numbered item 2</ListGroup.Item>
|
|
46
|
+
* <ListGroup.Item>Numbered item 3</ListGroup.Item>
|
|
47
|
+
* </ListGroup.Root>
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* #### Combined properties
|
|
51
|
+
* ```svelte
|
|
52
|
+
* <ListGroup.Root isFlush={true} isNumbered={true}>
|
|
53
|
+
* <ListGroup.Item>Flush and numbered item 1</ListGroup.Item>
|
|
54
|
+
* <ListGroup.Item>Flush and numbered item 2</ListGroup.Item>
|
|
55
|
+
* </ListGroup.Root>
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* ### Props
|
|
59
|
+
* - `class` (string): Optional. CSS classes for styling the list group
|
|
60
|
+
* - `elementRef` (HTMLElement): Optional. Reference to the list group DOM element
|
|
61
|
+
* - `id` (string): Optional. ID for the list group element
|
|
62
|
+
* - `isFlush` (boolean): Optional. Removes outer borders and rounded corners
|
|
63
|
+
* - `isHorizontal` (boolean): Optional. Changes list group direction to horizontal
|
|
64
|
+
* - `isNumbered` (boolean): Optional. Creates a numbered list with `<ol>` instead of `<ul>`
|
|
65
|
+
*/
|
|
66
|
+
declare const ListGroup: import("svelte").Component<ListGroup.RootProps, {}, "elementRef">;
|
|
67
|
+
type ListGroup = ReturnType<typeof ListGroup>;
|
|
68
|
+
export default ListGroup;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AnchorElement, BaseBreakpoint, BaseColorVariant, ListElement, ListItemElement } from '../common/types.js';
|
|
2
|
+
import type { HTMLAnchorAttributes } from 'svelte/elements';
|
|
3
|
+
export type ListGroupItemColorVariant = BaseColorVariant;
|
|
4
|
+
export type ListGroupHorizontalBreakpoint = BaseBreakpoint;
|
|
5
|
+
export type ListGroupRootProps = ListElement & {
|
|
6
|
+
horizontalOnBreakpoint?: ListGroupHorizontalBreakpoint;
|
|
7
|
+
isFlush?: boolean;
|
|
8
|
+
isNumbered?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type ListGroupItemProps = ListItemElement & {
|
|
11
|
+
colorVariant?: ListGroupItemColorVariant;
|
|
12
|
+
isActive?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type ListGroupItemActionProps = AnchorElement & {
|
|
15
|
+
colorVariant?: ListGroupItemColorVariant;
|
|
16
|
+
href?: HTMLAnchorAttributes['href'];
|
|
17
|
+
isActive?: boolean;
|
|
18
|
+
isDisabled?: boolean;
|
|
19
|
+
onclick?: EventListener;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as Body } from './modal-body.svelte';
|
|
2
|
+
export { default as Content } from './modal-content.svelte';
|
|
3
|
+
export { default as Dialog } from './modal-dialog.svelte';
|
|
4
|
+
export { default as Footer } from './modal-footer.svelte';
|
|
5
|
+
export { default as Header } from './modal-header.svelte';
|
|
6
|
+
export { default as Title } from './modal-title.svelte';
|
|
7
|
+
export { default as Root } from './modal.svelte';
|
|
8
|
+
export type { ModalBodyProps as BodyProps, ModalContentProps as ContentProps, ModalDialogProps as DialogProps, ModalFooterProps as FooterProps, ModalHeaderProps as HeaderProps, ModalRootProps as RootProps, ModalTitleProps as TitleProps } from './types.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as Body } from './modal-body.svelte';
|
|
2
|
+
export { default as Content } from './modal-content.svelte';
|
|
3
|
+
export { default as Dialog } from './modal-dialog.svelte';
|
|
4
|
+
export { default as Footer } from './modal-footer.svelte';
|
|
5
|
+
export { default as Header } from './modal-header.svelte';
|
|
6
|
+
export { default as Title } from './modal-title.svelte';
|
|
7
|
+
export { default as Root } from './modal.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Modal from './composition.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Modal from './composition.js';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Modal.Body
|
|
4
|
+
Body component for the Modal content.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
<Modal.Body>
|
|
9
|
+
Content for the modal goes here. You can place just about any Bootstrap component or custom elements here.
|
|
10
|
+
</Modal.Body>
|
|
11
|
+
```
|
|
12
|
+
### Props
|
|
13
|
+
- `children` (slot): Content to display inside the body
|
|
14
|
+
- `class` (string): Optional. Additional CSS classes
|
|
15
|
+
- `elementRef` (HTMLElement): Optional. Reference to the body DOM element
|
|
16
|
+
- `id` (string): Optional. ID for the body element
|
|
17
|
+
-->
|
|
18
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
19
|
+
// Generate a unique ID for the modal body element, in case one is not provided...
|
|
20
|
+
const uid = $props.id();
|
|
21
|
+
let { children, class: classValues, elementRef = $bindable(null), id = `modal-body-${uid}`, ...restOfProps } = $props();
|
|
22
|
+
let classes = $derived(uniqueClsx('modal-body', classValues));
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<div bind:this={elementRef} class={classes} {id} {...restOfProps}>
|
|
26
|
+
{@render children?.()}
|
|
27
|
+
</div>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ## Modal.Body
|
|
3
|
+
* Body component for the Modal content.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```svelte
|
|
7
|
+
* <Modal.Body>
|
|
8
|
+
* Content for the modal goes here. You can place just about any Bootstrap component or custom elements here.
|
|
9
|
+
* </Modal.Body>
|
|
10
|
+
* ```
|
|
11
|
+
* ### Props
|
|
12
|
+
* - `children` (slot): Content to display inside the body
|
|
13
|
+
* - `class` (string): Optional. Additional CSS classes
|
|
14
|
+
* - `elementRef` (HTMLElement): Optional. Reference to the body DOM element
|
|
15
|
+
* - `id` (string): Optional. ID for the body element
|
|
16
|
+
*/
|
|
17
|
+
declare const ModalBody: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
|
|
18
|
+
type ModalBody = ReturnType<typeof ModalBody>;
|
|
19
|
+
export default ModalBody;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Modal.Content
|
|
4
|
+
Content component that wraps the modal's header, body, and footer.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
<Modal.Content>
|
|
9
|
+
<Modal.Header>
|
|
10
|
+
<Modal.Title>Modal Title</Modal.Title>
|
|
11
|
+
</Modal.Header>
|
|
12
|
+
<Modal.Body>
|
|
13
|
+
Content for the modal goes here.
|
|
14
|
+
</Modal.Body>
|
|
15
|
+
<Modal.Footer>
|
|
16
|
+
<Button>Close</Button>
|
|
17
|
+
</Modal.Footer>
|
|
18
|
+
</Modal.Content>
|
|
19
|
+
```
|
|
20
|
+
### Props
|
|
21
|
+
- `children` (slot): Content to display inside the modal content
|
|
22
|
+
- `class` (string): Optional. Additional CSS classes
|
|
23
|
+
- `elementRef` (HTMLElement): Optional. Reference to the content DOM element
|
|
24
|
+
- `id` (string): Optional. ID for the content element
|
|
25
|
+
-->
|
|
26
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
27
|
+
// Generate a unique ID for the modal content element, in case one is not provided...
|
|
28
|
+
const uid = $props.id();
|
|
29
|
+
let { children, class: classValues, elementRef = $bindable(null), id = `modal-content-${uid}`, ...restOfProps } = $props();
|
|
30
|
+
let classes = $derived(uniqueClsx('modal-content', classValues));
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<div bind:this={elementRef} class={classes} {id} {...restOfProps}>
|
|
34
|
+
{@render children?.()}
|
|
35
|
+
</div>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ## Modal.Content
|
|
3
|
+
* Content component that wraps the modal's header, body, and footer.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```svelte
|
|
7
|
+
* <Modal.Content>
|
|
8
|
+
* <Modal.Header>
|
|
9
|
+
* <Modal.Title>Modal Title</Modal.Title>
|
|
10
|
+
* </Modal.Header>
|
|
11
|
+
* <Modal.Body>
|
|
12
|
+
* Content for the modal goes here.
|
|
13
|
+
* </Modal.Body>
|
|
14
|
+
* <Modal.Footer>
|
|
15
|
+
* <Button>Close</Button>
|
|
16
|
+
* </Modal.Footer>
|
|
17
|
+
* </Modal.Content>
|
|
18
|
+
* ```
|
|
19
|
+
* ### Props
|
|
20
|
+
* - `children` (slot): Content to display inside the modal content
|
|
21
|
+
* - `class` (string): Optional. Additional CSS classes
|
|
22
|
+
* - `elementRef` (HTMLElement): Optional. Reference to the content DOM element
|
|
23
|
+
* - `id` (string): Optional. ID for the content element
|
|
24
|
+
*/
|
|
25
|
+
declare const ModalContent: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
|
|
26
|
+
type ModalContent = ReturnType<typeof ModalContent>;
|
|
27
|
+
export default ModalContent;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Modal.Dialog
|
|
4
|
+
Dialog component that wraps the modal content.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
<Modal.Dialog>
|
|
9
|
+
<Modal.Content>...</Modal.Content>
|
|
10
|
+
</Modal.Dialog>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
#### Different sizes
|
|
14
|
+
```svelte
|
|
15
|
+
<Modal.Dialog size="sm">...</Modal.Dialog>
|
|
16
|
+
<Modal.Dialog size="lg">...</Modal.Dialog>
|
|
17
|
+
<Modal.Dialog size="xl">...</Modal.Dialog>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
#### Scrollable
|
|
21
|
+
```svelte
|
|
22
|
+
<Modal.Dialog isScrollable={true}>...</Modal.Dialog>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
#### Vertically centered
|
|
26
|
+
```svelte
|
|
27
|
+
<Modal.Dialog isVerticallyCentered={true}>...</Modal.Dialog>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
#### Fullscreen
|
|
31
|
+
```svelte
|
|
32
|
+
<Modal.Dialog fullscreenOnBreakpoint="always">...</Modal.Dialog>
|
|
33
|
+
<Modal.Dialog fullscreenOnBreakpoint="sm">...</Modal.Dialog>
|
|
34
|
+
<Modal.Dialog fullscreenOnBreakpoint="md">...</Modal.Dialog>
|
|
35
|
+
<Modal.Dialog fullscreenOnBreakpoint="lg">...</Modal.Dialog>
|
|
36
|
+
<Modal.Dialog fullscreenOnBreakpoint="xl">...</Modal.Dialog>
|
|
37
|
+
<Modal.Dialog fullscreenOnBreakpoint="xxl">...</Modal.Dialog>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Props
|
|
41
|
+
- `children` (slot): Content to display inside the dialog.
|
|
42
|
+
- `class` (string): Optional. Additional CSS classes.
|
|
43
|
+
- `elementRef` (HTMLElement): Optional. Reference to the dialog DOM element.
|
|
44
|
+
- `fullscreenOnBreakpoint` (string): Optional. Makes the modal fullscreen at a breakpoint ('always', 'sm', 'md', 'lg', 'xl', 'xxl').
|
|
45
|
+
- `id` (string): Optional. ID for the dialog element.
|
|
46
|
+
- `isScrollable` (boolean): Optional. Makes the modal body scrollable.
|
|
47
|
+
- `isVerticallyCentered` (boolean): Optional. Centers the modal vertically.
|
|
48
|
+
- `size` (string): Optional. Size of the modal ('sm', 'lg', 'xl').
|
|
49
|
+
-->
|
|
50
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
51
|
+
// Generate a unique ID for the modal dialog element, in case one is not provided...
|
|
52
|
+
const uid = $props.id();
|
|
53
|
+
let { children, class: classValues, elementRef = $bindable(null), fullscreenOnBreakpoint, id = `modal-dialog-${uid}`, isScrollable = false, isVerticallyCentered = false, size, ...restOfProps } = $props();
|
|
54
|
+
let classes = $derived(uniqueClsx('modal-dialog', {
|
|
55
|
+
[`modal-${size}`]: !!size,
|
|
56
|
+
'modal-dialog-scrollable': isScrollable,
|
|
57
|
+
'modal-dialog-centered': isVerticallyCentered,
|
|
58
|
+
'modal-fullscreen': fullscreenOnBreakpoint === 'always',
|
|
59
|
+
[`modal-fullscreen-${fullscreenOnBreakpoint}-down`]: fullscreenOnBreakpoint && fullscreenOnBreakpoint !== 'always'
|
|
60
|
+
}, classValues));
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<div bind:this={elementRef} class={classes} {id} {...restOfProps}>
|
|
64
|
+
{@render children?.()}
|
|
65
|
+
</div>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Modal } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Modal.Dialog
|
|
4
|
+
* Dialog component that wraps the modal content.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* <Modal.Dialog>
|
|
9
|
+
* <Modal.Content>...</Modal.Content>
|
|
10
|
+
* </Modal.Dialog>
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* #### Different sizes
|
|
14
|
+
* ```svelte
|
|
15
|
+
* <Modal.Dialog size="sm">...</Modal.Dialog>
|
|
16
|
+
* <Modal.Dialog size="lg">...</Modal.Dialog>
|
|
17
|
+
* <Modal.Dialog size="xl">...</Modal.Dialog>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* #### Scrollable
|
|
21
|
+
* ```svelte
|
|
22
|
+
* <Modal.Dialog isScrollable={true}>...</Modal.Dialog>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* #### Vertically centered
|
|
26
|
+
* ```svelte
|
|
27
|
+
* <Modal.Dialog isVerticallyCentered={true}>...</Modal.Dialog>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* #### Fullscreen
|
|
31
|
+
* ```svelte
|
|
32
|
+
* <Modal.Dialog fullscreenOnBreakpoint="always">...</Modal.Dialog>
|
|
33
|
+
* <Modal.Dialog fullscreenOnBreakpoint="sm">...</Modal.Dialog>
|
|
34
|
+
* <Modal.Dialog fullscreenOnBreakpoint="md">...</Modal.Dialog>
|
|
35
|
+
* <Modal.Dialog fullscreenOnBreakpoint="lg">...</Modal.Dialog>
|
|
36
|
+
* <Modal.Dialog fullscreenOnBreakpoint="xl">...</Modal.Dialog>
|
|
37
|
+
* <Modal.Dialog fullscreenOnBreakpoint="xxl">...</Modal.Dialog>
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* ### Props
|
|
41
|
+
* - `children` (slot): Content to display inside the dialog.
|
|
42
|
+
* - `class` (string): Optional. Additional CSS classes.
|
|
43
|
+
* - `elementRef` (HTMLElement): Optional. Reference to the dialog DOM element.
|
|
44
|
+
* - `fullscreenOnBreakpoint` (string): Optional. Makes the modal fullscreen at a breakpoint ('always', 'sm', 'md', 'lg', 'xl', 'xxl').
|
|
45
|
+
* - `id` (string): Optional. ID for the dialog element.
|
|
46
|
+
* - `isScrollable` (boolean): Optional. Makes the modal body scrollable.
|
|
47
|
+
* - `isVerticallyCentered` (boolean): Optional. Centers the modal vertically.
|
|
48
|
+
* - `size` (string): Optional. Size of the modal ('sm', 'lg', 'xl').
|
|
49
|
+
*/
|
|
50
|
+
declare const ModalDialog: import("svelte").Component<Modal.DialogProps, {}, "elementRef">;
|
|
51
|
+
type ModalDialog = ReturnType<typeof ModalDialog>;
|
|
52
|
+
export default ModalDialog;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Modal.Footer
|
|
4
|
+
Footer component for the Modal content.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
<Modal.Footer>
|
|
9
|
+
<Button colorVariant="secondary" onclick={() => setIsShown(false)}>Close</Button>
|
|
10
|
+
<Button colorVariant="primary" onclick={() => handleSave()}>Save changes</Button>
|
|
11
|
+
</Modal.Footer>
|
|
12
|
+
```
|
|
13
|
+
### Props
|
|
14
|
+
- `children` (slot): Content to display inside the footer
|
|
15
|
+
- `class` (string): Optional. Additional CSS classes
|
|
16
|
+
- `elementRef` (HTMLElement): Optional. Reference to the footer DOM element
|
|
17
|
+
- `id` (string): Optional. ID for the footer element
|
|
18
|
+
-->
|
|
19
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
20
|
+
// Generate a unique ID for the modal footer element, in case one is not provided...
|
|
21
|
+
const uid = $props.id();
|
|
22
|
+
let { children, class: classValues, elementRef = $bindable(null), id = `modal-footer-${uid}`, ...restOfProps } = $props();
|
|
23
|
+
let classes = $derived(uniqueClsx('modal-footer', classValues));
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<div bind:this={elementRef} class={classes} {id} {...restOfProps}>
|
|
27
|
+
{@render children?.()}
|
|
28
|
+
</div>
|