@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,32 @@
|
|
|
1
|
+
import type { PortalRootProps } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Portal
|
|
4
|
+
* Render a component into a different part of the DOM tree.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* <Portal target="body">
|
|
9
|
+
* <div>
|
|
10
|
+
* <h1>Hello from the portal!</h1>
|
|
11
|
+
* <p>This content is rendered as a child of the <code>body</code> element.</p>
|
|
12
|
+
* </div>
|
|
13
|
+
* </Portal>
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* #### Disabled prop
|
|
17
|
+
* ```svelte
|
|
18
|
+
* <Portal target="body" disabled={true}>
|
|
19
|
+
* <div>
|
|
20
|
+
* <p>This content will be rendered inline instead of as a child of the <code>body</code> element.</p>
|
|
21
|
+
* </div>
|
|
22
|
+
* </Portal>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ### Props
|
|
26
|
+
* - `children`: The content to render inside the portal. This can be any valid Svelte component or HTML element.
|
|
27
|
+
* - `disabled`: If true, the portal will not be rendered. This is useful for conditionally rendering the portal based on some state.
|
|
28
|
+
* - `target`: The target element to render the portal into. This can be a string selector or an element reference.
|
|
29
|
+
*/
|
|
30
|
+
declare const Portal: import("svelte").Component<PortalRootProps, {}, "">;
|
|
31
|
+
type Portal = ReturnType<typeof Portal>;
|
|
32
|
+
export default Portal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## ProgressBar
|
|
4
|
+
A visual indicator component that displays progress towards completion of a task or operation.
|
|
5
|
+
Supports percentage-based progress visualization with customizable styling, theming, and accessibility attributes.
|
|
6
|
+
|
|
7
|
+
@example
|
|
8
|
+
```svelte
|
|
9
|
+
<ProgressBar valueNow={60} />
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
### Variants
|
|
13
|
+
```svelte
|
|
14
|
+
<ProgressBar valueNow={25} backgroundColorVariant="success" />
|
|
15
|
+
<ProgressBar valueNow={50} backgroundColorVariant="info" />
|
|
16
|
+
<ProgressBar valueNow={75} backgroundColorVariant="warning" />
|
|
17
|
+
<ProgressBar valueNow={100} backgroundColorVariant="danger" />
|
|
18
|
+
|
|
19
|
+
<ProgressBar valueNow={25}>25%</ProgressBar>
|
|
20
|
+
|
|
21
|
+
<ProgressStacked>
|
|
22
|
+
<ProgressBar valueNow={30} backgroundColorVariant="success" />
|
|
23
|
+
<ProgressBar valueNow={20} backgroundColorVariant="warning" />
|
|
24
|
+
</ProgressStacked>
|
|
25
|
+
```
|
|
26
|
+
### Props
|
|
27
|
+
- `ariaLabel` (string): Accessible label for screen readers. Defaults to 'Progress Bar'.
|
|
28
|
+
- `backgroundColorVariant` (string): Bootstrap color variant for the progress bar (primary, success, warning, etc.).
|
|
29
|
+
- `barProps` (object): Additional props to pass to the inner progress bar element.
|
|
30
|
+
- `class` (string): Additional CSS classes to apply to the progress container.
|
|
31
|
+
- `elementRef` (HTMLDivElement): Reference to the underlying DOM element.
|
|
32
|
+
- `style` (string): CSS styles to apply to the progress container.
|
|
33
|
+
- `valueMax` (number): Maximum value for the progress bar. Defaults to 100.
|
|
34
|
+
- `valueMin` (number): Minimum value for the progress bar. Defaults to 0.
|
|
35
|
+
- `valueNow` (number): Current progress value. Defaults to 0.
|
|
36
|
+
-->
|
|
37
|
+
<script lang="ts">import { fromStyle, toStyle, uniqueClsx } from '../common/css.js';
|
|
38
|
+
import { initProgressState, ProgressState } from './progress.svelte.js';
|
|
39
|
+
let { ariaLabel = 'Progress Bar', backgroundColorVariant, children, class: classValues, barProps = {}, elementRef = $bindable(null), style, valueMax = 100, valueMin = 0, valueNow = 0, ...restOfProps } = $props();
|
|
40
|
+
let { class: barClassValues, isAnimated = false, isStriped = false, style: barStyle, ...restOfBarProps } = $derived(barProps);
|
|
41
|
+
// Initialize state and detect if this progress bar is part of a stacked container
|
|
42
|
+
const barState = initProgressState({
|
|
43
|
+
get barProps() {
|
|
44
|
+
return barProps;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
// Determine where to apply width - when in a stacked layout, width is on the root element,
|
|
48
|
+
// otherwise it's applied to the inner bar element
|
|
49
|
+
let widthPlacement = $derived(barState.isStacked ? 'root' : 'bar');
|
|
50
|
+
// Root element...
|
|
51
|
+
let classes = $derived(uniqueClsx('progress', classValues));
|
|
52
|
+
// Conditionally apply width to the root element's style if this bar is part of a stacked layout
|
|
53
|
+
let styles = $derived.by(() => {
|
|
54
|
+
if (widthPlacement === 'root') {
|
|
55
|
+
let cssProps = fromStyle(style);
|
|
56
|
+
return toStyle({
|
|
57
|
+
...cssProps,
|
|
58
|
+
width: `${valueNow}%`
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return style;
|
|
62
|
+
});
|
|
63
|
+
// Bar element...
|
|
64
|
+
// Apply styles and classes to the inner bar element...
|
|
65
|
+
let barClasses = $derived(uniqueClsx('progress-bar', backgroundColorVariant && `bg-${backgroundColorVariant}`, {
|
|
66
|
+
'progress-bar-animated': isAnimated,
|
|
67
|
+
'progress-bar-striped': isStriped
|
|
68
|
+
}, barClassValues));
|
|
69
|
+
// Apply width to the inner bar element when not in a stacked layout
|
|
70
|
+
let barStyles = $derived.by(() => {
|
|
71
|
+
if (widthPlacement === 'bar') {
|
|
72
|
+
let cssProps = fromStyle(barStyle);
|
|
73
|
+
return toStyle({
|
|
74
|
+
...cssProps,
|
|
75
|
+
width: `${valueNow}%`
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return barStyle;
|
|
79
|
+
});
|
|
80
|
+
// Apply Bootstrap's theme attribute for proper text contrast on dark backgrounds
|
|
81
|
+
// This ensures text remains visible when placed inside colored progress bars
|
|
82
|
+
let theme = $derived.by(() => {
|
|
83
|
+
const darkVariants = ['dark', 'primary', 'secondary', 'success', 'danger'];
|
|
84
|
+
return darkVariants.includes(backgroundColorVariant ?? '') ? 'dark' : undefined;
|
|
85
|
+
});
|
|
86
|
+
</script>
|
|
87
|
+
|
|
88
|
+
<div
|
|
89
|
+
aria-label={ariaLabel}
|
|
90
|
+
aria-valuemax={valueMax}
|
|
91
|
+
aria-valuemin={valueMin}
|
|
92
|
+
aria-valuenow={valueNow}
|
|
93
|
+
bind:this={elementRef}
|
|
94
|
+
class={classes}
|
|
95
|
+
role="progressbar"
|
|
96
|
+
style={styles}
|
|
97
|
+
{...restOfProps}>
|
|
98
|
+
<div class={barClasses} data-bs-theme={theme} style={barStyles} {...restOfBarProps}>
|
|
99
|
+
{@render children?.()}
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ProgressProps } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## ProgressBar
|
|
4
|
+
* A visual indicator component that displays progress towards completion of a task or operation.
|
|
5
|
+
* Supports percentage-based progress visualization with customizable styling, theming, and accessibility attributes.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```svelte
|
|
9
|
+
* <ProgressBar valueNow={60} />
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* ### Variants
|
|
13
|
+
* ```svelte
|
|
14
|
+
* <ProgressBar valueNow={25} backgroundColorVariant="success" />
|
|
15
|
+
* <ProgressBar valueNow={50} backgroundColorVariant="info" />
|
|
16
|
+
* <ProgressBar valueNow={75} backgroundColorVariant="warning" />
|
|
17
|
+
* <ProgressBar valueNow={100} backgroundColorVariant="danger" />
|
|
18
|
+
*
|
|
19
|
+
* <ProgressBar valueNow={25}>25%</ProgressBar>
|
|
20
|
+
*
|
|
21
|
+
* <ProgressStacked>
|
|
22
|
+
* <ProgressBar valueNow={30} backgroundColorVariant="success" />
|
|
23
|
+
* <ProgressBar valueNow={20} backgroundColorVariant="warning" />
|
|
24
|
+
* </ProgressStacked>
|
|
25
|
+
* ```
|
|
26
|
+
* ### Props
|
|
27
|
+
* - `ariaLabel` (string): Accessible label for screen readers. Defaults to 'Progress Bar'.
|
|
28
|
+
* - `backgroundColorVariant` (string): Bootstrap color variant for the progress bar (primary, success, warning, etc.).
|
|
29
|
+
* - `barProps` (object): Additional props to pass to the inner progress bar element.
|
|
30
|
+
* - `class` (string): Additional CSS classes to apply to the progress container.
|
|
31
|
+
* - `elementRef` (HTMLDivElement): Reference to the underlying DOM element.
|
|
32
|
+
* - `style` (string): CSS styles to apply to the progress container.
|
|
33
|
+
* - `valueMax` (number): Maximum value for the progress bar. Defaults to 100.
|
|
34
|
+
* - `valueMin` (number): Minimum value for the progress bar. Defaults to 0.
|
|
35
|
+
* - `valueNow` (number): Current progress value. Defaults to 0.
|
|
36
|
+
*/
|
|
37
|
+
declare const ProgressBar: import("svelte").Component<ProgressProps, {}, "elementRef">;
|
|
38
|
+
type ProgressBar = ReturnType<typeof ProgressBar>;
|
|
39
|
+
export default ProgressBar;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## ProgressStacked
|
|
4
|
+
A container component that enables multiple progress bars to be stacked horizontally in a single visual element.
|
|
5
|
+
When progress bars are placed within this component, they automatically adapt their styling to function as part
|
|
6
|
+
of a stacked group rather than individual progress elements.
|
|
7
|
+
|
|
8
|
+
Note: This component provides visual grouping without requiring manual style adjustments or explicit parent-child prop
|
|
9
|
+
passing - child ProgressBar components automatically detect they're within a stacked context.
|
|
10
|
+
|
|
11
|
+
@example
|
|
12
|
+
```svelte
|
|
13
|
+
<ProgressStacked>
|
|
14
|
+
<ProgressBar value={30} colorVariant="success" striped />
|
|
15
|
+
<ProgressBar value={20} colorVariant="warning" />
|
|
16
|
+
<ProgressBar value={10} colorVariant="danger" animated />
|
|
17
|
+
</ProgressStacked>
|
|
18
|
+
```
|
|
19
|
+
### Props
|
|
20
|
+
- `class` (string): Optional. Additional CSS classes to apply to the container.
|
|
21
|
+
- `elementRef` (HTMLDivElement): Optional. Reference to the underlying DOM element.
|
|
22
|
+
-->
|
|
23
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
24
|
+
import { initProgressStackedState } from './progress.svelte.js';
|
|
25
|
+
let { children, class: classValues, elementRef = $bindable(null), ...restOfProps } = $props();
|
|
26
|
+
let classes = $derived(uniqueClsx('progress-stacked', classValues));
|
|
27
|
+
// Initialize context for child ProgressBar components to detect they're within a stacked container
|
|
28
|
+
// This enables automatic layout adjustments without requiring explicit parent-child prop passing
|
|
29
|
+
initProgressStackedState({});
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<div bind:this={elementRef} class={classes} {...restOfProps}>
|
|
33
|
+
{@render children?.()}
|
|
34
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ## ProgressStacked
|
|
3
|
+
* A container component that enables multiple progress bars to be stacked horizontally in a single visual element.
|
|
4
|
+
* When progress bars are placed within this component, they automatically adapt their styling to function as part
|
|
5
|
+
* of a stacked group rather than individual progress elements.
|
|
6
|
+
*
|
|
7
|
+
* Note: This component provides visual grouping without requiring manual style adjustments or explicit parent-child prop
|
|
8
|
+
* passing - child ProgressBar components automatically detect they're within a stacked context.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```svelte
|
|
12
|
+
* <ProgressStacked>
|
|
13
|
+
* <ProgressBar value={30} colorVariant="success" striped />
|
|
14
|
+
* <ProgressBar value={20} colorVariant="warning" />
|
|
15
|
+
* <ProgressBar value={10} colorVariant="danger" animated />
|
|
16
|
+
* </ProgressStacked>
|
|
17
|
+
* ```
|
|
18
|
+
* ### Props
|
|
19
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the container.
|
|
20
|
+
* - `elementRef` (HTMLDivElement): Optional. Reference to the underlying DOM element.
|
|
21
|
+
*/
|
|
22
|
+
declare const ProgressStacked: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
|
|
23
|
+
type ProgressStacked = ReturnType<typeof ProgressStacked>;
|
|
24
|
+
export default ProgressStacked;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ProgressProps, ProgressStackedProps } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Manages state for a stacked progress component that can contain multiple
|
|
4
|
+
* progress bars aligned horizontally in the same container
|
|
5
|
+
*/
|
|
6
|
+
export declare class ProgressStackedState {
|
|
7
|
+
readonly props: ProgressStackedProps;
|
|
8
|
+
constructor(props: ProgressStackedProps);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Manages state for the progress components and it's child progress bar component,
|
|
12
|
+
* which can be used standalone or as part of a stacked progress group
|
|
13
|
+
*/
|
|
14
|
+
export declare class ProgressState {
|
|
15
|
+
readonly props: ProgressProps;
|
|
16
|
+
readonly root: ProgressStackedState | null;
|
|
17
|
+
readonly isStacked: boolean;
|
|
18
|
+
constructor(props: ProgressProps, root?: ProgressStackedState | null);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Initializes a stacked progress context and registers it for child components
|
|
22
|
+
* to discover. Any ProgressBar components rendered within this context will
|
|
23
|
+
* automatically detect they are part of a stacked group.
|
|
24
|
+
*/
|
|
25
|
+
export declare function initProgressStackedState(props: ProgressStackedProps): ProgressStackedState;
|
|
26
|
+
/**
|
|
27
|
+
* Initializes a progress bar state, automatically detecting if it's within
|
|
28
|
+
* a stacked progress context. This allows the same ProgressBar component
|
|
29
|
+
* to be used both as a standalone bar or as part of a stacked group.
|
|
30
|
+
*/
|
|
31
|
+
export declare function initProgressState(props: ProgressProps): ProgressState;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Context } from '../common/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Manages state for a stacked progress component that can contain multiple
|
|
4
|
+
* progress bars aligned horizontally in the same container
|
|
5
|
+
*/
|
|
6
|
+
export class ProgressStackedState {
|
|
7
|
+
props;
|
|
8
|
+
constructor(props) {
|
|
9
|
+
this.props = props;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Manages state for the progress components and it's child progress bar component,
|
|
14
|
+
* which can be used standalone or as part of a stacked progress group
|
|
15
|
+
*/
|
|
16
|
+
export class ProgressState {
|
|
17
|
+
props;
|
|
18
|
+
root;
|
|
19
|
+
// Reactive state to track whether this progress bar is part of a stacked group
|
|
20
|
+
isStacked = $state(false);
|
|
21
|
+
constructor(props, root = null) {
|
|
22
|
+
this.props = props;
|
|
23
|
+
this.root = root;
|
|
24
|
+
this.isStacked = this.root !== null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
// Context provides a way for child progress bars to discover if they're
|
|
28
|
+
// inside a stacked container without explicit prop passing
|
|
29
|
+
const ProgressStackedContext = new Context('progress-stacked');
|
|
30
|
+
/**
|
|
31
|
+
* Initializes a stacked progress context and registers it for child components
|
|
32
|
+
* to discover. Any ProgressBar components rendered within this context will
|
|
33
|
+
* automatically detect they are part of a stacked group.
|
|
34
|
+
*/
|
|
35
|
+
export function initProgressStackedState(props) {
|
|
36
|
+
const rootState = new ProgressStackedState(props);
|
|
37
|
+
return ProgressStackedContext.set(rootState);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Initializes a progress bar state, automatically detecting if it's within
|
|
41
|
+
* a stacked progress context. This allows the same ProgressBar component
|
|
42
|
+
* to be used both as a standalone bar or as part of a stacked group.
|
|
43
|
+
*/
|
|
44
|
+
export function initProgressState(props) {
|
|
45
|
+
if (ProgressStackedContext.exists()) {
|
|
46
|
+
const rootState = ProgressStackedContext.get();
|
|
47
|
+
return new ProgressState(props, rootState);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
return new ProgressState(props);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { BaseColorVariant, DivElement } from '../common/types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Color variants for the Progress component's background.
|
|
4
|
+
* Uses the same color scheme as Bootstrap's base color variants.
|
|
5
|
+
*/
|
|
6
|
+
export type ProgressBackgroundColorVariant = BaseColorVariant;
|
|
7
|
+
/**
|
|
8
|
+
* Props for stacked progress bars, allowing multiple bars to be
|
|
9
|
+
* combined in a single progress component.
|
|
10
|
+
*/
|
|
11
|
+
export type ProgressStackedProps = DivElement;
|
|
12
|
+
/**
|
|
13
|
+
* Props for the main Progress component.
|
|
14
|
+
* Follows the WAI-ARIA pattern for progress indicators with appropriate
|
|
15
|
+
* accessibility attributes (min, max, now).
|
|
16
|
+
*/
|
|
17
|
+
export type ProgressProps = DivElement & {
|
|
18
|
+
/** Accessible label for screen readers describing the progress bar */
|
|
19
|
+
ariaLabel?: string;
|
|
20
|
+
/** Color variant for the progress track (background) */
|
|
21
|
+
backgroundColorVariant?: ProgressBackgroundColorVariant;
|
|
22
|
+
/** Props passed to the inner progress bar element */
|
|
23
|
+
barProps?: ProgressBarProps;
|
|
24
|
+
/** Maximum value of the progress bar (defaults to 100) */
|
|
25
|
+
valueMax?: number;
|
|
26
|
+
/** Minimum value of the progress bar (defaults to 0) */
|
|
27
|
+
valueMin?: number;
|
|
28
|
+
/** Current value of the progress bar, used to calculate the percentage completion */
|
|
29
|
+
valueNow?: number;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Props for the inner bar element of the Progress component.
|
|
33
|
+
* Allows customization of the actual progress indicator.
|
|
34
|
+
*/
|
|
35
|
+
export type ProgressBarProps = DivElement & {
|
|
36
|
+
/** Apply a striped pattern to the progress bar */
|
|
37
|
+
isStriped?: boolean;
|
|
38
|
+
/** Apply an animated effect to the striped progress bar */
|
|
39
|
+
isAnimated?: boolean;
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Row
|
|
4
|
+
A component that implements Bootstrap's grid row functionality.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
<Row>
|
|
9
|
+
<Col>Content</Col>
|
|
10
|
+
</Row>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
#### With column count
|
|
14
|
+
```svelte
|
|
15
|
+
<Row cols={3}>
|
|
16
|
+
<Col>Content</Col>
|
|
17
|
+
<Col>Content</Col>
|
|
18
|
+
<Col>Content</Col>
|
|
19
|
+
</Row>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
#### With responsive column count
|
|
23
|
+
```svelte
|
|
24
|
+
<Row cols={{ xs: 1, sm: 2, md: 3 }}>
|
|
25
|
+
<Col>Content</Col>
|
|
26
|
+
<Col>Content</Col>
|
|
27
|
+
<Col>Content</Col>
|
|
28
|
+
</Row>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
#### With auto column count
|
|
32
|
+
```svelte
|
|
33
|
+
<Row cols="auto">
|
|
34
|
+
<Col>Content</Col>
|
|
35
|
+
<Col>Content</Col>
|
|
36
|
+
</Row>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Props
|
|
40
|
+
- `class` (string): Optional. Additional CSS classes.
|
|
41
|
+
- `cols` (RowColsMap | OneToSix | 'auto'): Optional. Define the number of equal-width columns in the row. Can be a number between 1 and 6, 'auto', or a breakpoint map.
|
|
42
|
+
- `elementRef` (HTMLElement): Optional. Reference to the row DOM element.
|
|
43
|
+
-->
|
|
44
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
45
|
+
let { children, class: classValues, cols, elementRef = $bindable(null), ...restOfProps } = $props();
|
|
46
|
+
// Generate cols classes based on the cols prop
|
|
47
|
+
let colsClasses = $derived.by(() => {
|
|
48
|
+
// If cols is a string (e.g., 'auto'), return a single row-cols-auto class
|
|
49
|
+
if (typeof cols === 'string' && cols === 'auto') {
|
|
50
|
+
return [`row-cols-${cols}`];
|
|
51
|
+
}
|
|
52
|
+
// If cols is a number (OneToSix type), generate a simple row-cols-n class
|
|
53
|
+
if (typeof cols === 'number') {
|
|
54
|
+
return [`row-cols-${cols}`];
|
|
55
|
+
}
|
|
56
|
+
// If cols is an object (RowColsMap type), generate breakpoint-specific classes
|
|
57
|
+
else if (cols && typeof cols === 'object') {
|
|
58
|
+
return Object.entries(cols).map(([breakpoint, value]) => {
|
|
59
|
+
// If the breakpoint is 'xs', return 'row-col-{value}'
|
|
60
|
+
if (breakpoint === 'xs') {
|
|
61
|
+
return `row-col-${value}`;
|
|
62
|
+
}
|
|
63
|
+
// Otherwise, return 'row-cols-{breakpoint}-{value}'
|
|
64
|
+
return `row-cols-${breakpoint}-${value}`;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
// Default: no row-cols classes
|
|
68
|
+
return [];
|
|
69
|
+
});
|
|
70
|
+
let classes = $derived(uniqueClsx('row', ...colsClasses, classValues));
|
|
71
|
+
</script>
|
|
72
|
+
|
|
73
|
+
<div bind:this={elementRef} class={classes} {...restOfProps}>
|
|
74
|
+
{@render children?.()}
|
|
75
|
+
</div>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { RowRootProps } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Row
|
|
4
|
+
* A component that implements Bootstrap's grid row functionality.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* <Row>
|
|
9
|
+
* <Col>Content</Col>
|
|
10
|
+
* </Row>
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* #### With column count
|
|
14
|
+
* ```svelte
|
|
15
|
+
* <Row cols={3}>
|
|
16
|
+
* <Col>Content</Col>
|
|
17
|
+
* <Col>Content</Col>
|
|
18
|
+
* <Col>Content</Col>
|
|
19
|
+
* </Row>
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* #### With responsive column count
|
|
23
|
+
* ```svelte
|
|
24
|
+
* <Row cols={{ xs: 1, sm: 2, md: 3 }}>
|
|
25
|
+
* <Col>Content</Col>
|
|
26
|
+
* <Col>Content</Col>
|
|
27
|
+
* <Col>Content</Col>
|
|
28
|
+
* </Row>
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* #### With auto column count
|
|
32
|
+
* ```svelte
|
|
33
|
+
* <Row cols="auto">
|
|
34
|
+
* <Col>Content</Col>
|
|
35
|
+
* <Col>Content</Col>
|
|
36
|
+
* </Row>
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ### Props
|
|
40
|
+
* - `class` (string): Optional. Additional CSS classes.
|
|
41
|
+
* - `cols` (RowColsMap | OneToSix | 'auto'): Optional. Define the number of equal-width columns in the row. Can be a number between 1 and 6, 'auto', or a breakpoint map.
|
|
42
|
+
* - `elementRef` (HTMLElement): Optional. Reference to the row DOM element.
|
|
43
|
+
*/
|
|
44
|
+
declare const Row: import("svelte").Component<RowRootProps, {}, "elementRef">;
|
|
45
|
+
type Row = ReturnType<typeof Row>;
|
|
46
|
+
export default Row;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DivElement, OneToSix } from '../common/types.js';
|
|
2
|
+
export type RowColsMap = {
|
|
3
|
+
xs?: OneToSix;
|
|
4
|
+
sm?: OneToSix;
|
|
5
|
+
md?: OneToSix;
|
|
6
|
+
lg?: OneToSix;
|
|
7
|
+
xl?: OneToSix;
|
|
8
|
+
xxl?: OneToSix;
|
|
9
|
+
};
|
|
10
|
+
export type RowRootProps = DivElement & {
|
|
11
|
+
cols?: RowColsMap | OneToSix | 'auto';
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Attachment } from 'svelte/attachments';
|
|
2
|
+
import type { ScrollspyOptions } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a scrollspy attachment that monitors elements matching a target selector
|
|
5
|
+
* and triggers a callback when they intersect with the scrolling container.
|
|
6
|
+
*
|
|
7
|
+
* @param options Configuration options for the scrollspy behavior
|
|
8
|
+
* @returns An Attachment function compatible with Svelte 5's {@attach ...} directive
|
|
9
|
+
*/
|
|
10
|
+
export declare function scrollspy(options: ScrollspyOptions): Attachment<HTMLElement>;
|