@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,26 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.Feedback
|
|
4
|
+
* Bootstrap-styled form validation messages to apply custom colors, borders, focus styles, and background icons.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Valid feedback
|
|
9
|
+
* <Form.Feedback isValid>Looks good!</Form.Feedback>
|
|
10
|
+
* // Invalid feedback
|
|
11
|
+
* <Form.Feedback isInvalid>Please check this field.</Form.Feedback>
|
|
12
|
+
* // Valid tooltip
|
|
13
|
+
* <Form.Feedback isValid isTooltip>Looks good!</Form.Feedback>
|
|
14
|
+
* // Invalid tooltip
|
|
15
|
+
* <Form.Feedback isInvalid isTooltip>Please check this field.</Form.Feedback>
|
|
16
|
+
* ```
|
|
17
|
+
* #### Props
|
|
18
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the feedback element.
|
|
19
|
+
* - `elementRef` (HTMLElement): Optional. Reference to the feedback DOM element.
|
|
20
|
+
* - `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
21
|
+
* - `isTooltip` (boolean): Optional. When true, renders as a tooltip instead of feedback.
|
|
22
|
+
* - `isValid` (boolean): Optional. Indicates whether the feedback is valid. If undefined, no validation styles are applied.
|
|
23
|
+
*/
|
|
24
|
+
declare const FormFeedback: import("svelte").Component<Form.FeedbackProps, {}, "elementRef">;
|
|
25
|
+
type FormFeedback = ReturnType<typeof FormFeedback>;
|
|
26
|
+
export default FormFeedback;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.FileInput
|
|
4
|
+
Bootstrap-styled file input component for file uploads.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Default file input
|
|
9
|
+
<Form.FileInput accept=".png, .jpg, image/png, image/jpeg" name="newFile" />
|
|
10
|
+
|
|
11
|
+
// Disabled file input
|
|
12
|
+
<Form.FileInput accept=".png, .jpg, image/png, image/jpeg" disabled name="newFile" />
|
|
13
|
+
|
|
14
|
+
// Small sizing
|
|
15
|
+
<Form.FileInput accept=".png, .jpg, image/png, image/jpeg" name="newFile" sizing="sm" />
|
|
16
|
+
|
|
17
|
+
// Large sizing
|
|
18
|
+
<Form.FileInput accept=".png, .jpg, image/png, image/jpeg" name="newFile" sizing="lg" />
|
|
19
|
+
```
|
|
20
|
+
### Props
|
|
21
|
+
- `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
22
|
+
- `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
23
|
+
- `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
24
|
+
- `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
25
|
+
- `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
26
|
+
- `value` (File | File[]): Optional. The file(s) selected in the input. If undefined, the input is empty.
|
|
27
|
+
-->
|
|
28
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
29
|
+
let { class: classValues, elementRef = $bindable(null), isInvalid, isValid, sizing, value = $bindable(undefined), ...restOfProps } = $props();
|
|
30
|
+
let classes = $derived(uniqueClsx('form-control', {
|
|
31
|
+
[`form-control-${sizing}`]: !!sizing,
|
|
32
|
+
'is-valid': isValid,
|
|
33
|
+
'is-invalid': isInvalid
|
|
34
|
+
}, classValues));
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<input
|
|
38
|
+
aria-invalid={isInvalid === true ? 'true' : isValid === true ? 'false' : undefined}
|
|
39
|
+
bind:this={elementRef}
|
|
40
|
+
bind:value
|
|
41
|
+
class={classes}
|
|
42
|
+
type="file"
|
|
43
|
+
{...restOfProps} />
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.FileInput
|
|
4
|
+
* Bootstrap-styled file input component for file uploads.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Default file input
|
|
9
|
+
* <Form.FileInput accept=".png, .jpg, image/png, image/jpeg" name="newFile" />
|
|
10
|
+
*
|
|
11
|
+
* // Disabled file input
|
|
12
|
+
* <Form.FileInput accept=".png, .jpg, image/png, image/jpeg" disabled name="newFile" />
|
|
13
|
+
*
|
|
14
|
+
* // Small sizing
|
|
15
|
+
* <Form.FileInput accept=".png, .jpg, image/png, image/jpeg" name="newFile" sizing="sm" />
|
|
16
|
+
*
|
|
17
|
+
* // Large sizing
|
|
18
|
+
* <Form.FileInput accept=".png, .jpg, image/png, image/jpeg" name="newFile" sizing="lg" />
|
|
19
|
+
* ```
|
|
20
|
+
* ### Props
|
|
21
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
22
|
+
* - `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
23
|
+
* - `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
24
|
+
* - `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
25
|
+
* - `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
26
|
+
* - `value` (File | File[]): Optional. The file(s) selected in the input. If undefined, the input is empty.
|
|
27
|
+
*/
|
|
28
|
+
declare const FormFileInput: import("svelte").Component<Form.FileInputProps, {}, "value" | "elementRef">;
|
|
29
|
+
type FormFileInput = ReturnType<typeof FormFileInput>;
|
|
30
|
+
export default FormFileInput;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.Floating
|
|
4
|
+
Bootstrap-styled floating label container for form inputs.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Default floating label
|
|
9
|
+
<Form.Floating>
|
|
10
|
+
<Form.EmailInput placeholder="name@example.com" id="floatingEmailInput" />
|
|
11
|
+
<Form.InputLabel for="floatingEmailInput" isFloating>Email address</Form.InputLabel>
|
|
12
|
+
</Form.Floating>
|
|
13
|
+
|
|
14
|
+
// Disabled floating label
|
|
15
|
+
<Form.Floating>
|
|
16
|
+
<Form.EmailInput disabled placeholder="name@example.com" id="floatingEmailInput" />
|
|
17
|
+
<Form.InputLabel for="floatingEmailInput" isFloating>Email address</Form.InputLabel>
|
|
18
|
+
</Form.Floating>
|
|
19
|
+
|
|
20
|
+
// Readonly floating label
|
|
21
|
+
<Form.Floating>
|
|
22
|
+
<Form.EmailInput placeholder="name@example.com" id="floatingEmailInput" readonly />
|
|
23
|
+
<Form.InputLabel for="floatingEmailInput" isFloating>Email address</Form.InputLabel>
|
|
24
|
+
</Form.Floating>
|
|
25
|
+
|
|
26
|
+
// Small sizing floating label
|
|
27
|
+
<Form.Floating>
|
|
28
|
+
<Form.EmailInput placeholder="name@example.com" id="floatingEmailInput" sizing="sm" />
|
|
29
|
+
<Form.InputLabel for="floatingEmailInput" isFloating>Email address</Form.InputLabel>
|
|
30
|
+
</Form.Floating>
|
|
31
|
+
```
|
|
32
|
+
### Props
|
|
33
|
+
- `children` (any): Required. Child elements to be rendered inside the floating container.
|
|
34
|
+
- `class` (string): Optional. Additional CSS classes to apply to the container.
|
|
35
|
+
- `elementRef` (HTMLDivElement): Optional. Reference to the container DOM element.
|
|
36
|
+
-->
|
|
37
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
38
|
+
let { children, class: classValues, elementRef = $bindable(null), ...restOfProps } = $props();
|
|
39
|
+
let classes = $derived(uniqueClsx('form-floating', classValues));
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<div bind:this={elementRef} class={classes} {...restOfProps}>
|
|
43
|
+
{@render children?.()}
|
|
44
|
+
</div>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ## Form.Floating
|
|
3
|
+
* Bootstrap-styled floating label container for form inputs.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```svelte
|
|
7
|
+
* // Default floating label
|
|
8
|
+
* <Form.Floating>
|
|
9
|
+
* <Form.EmailInput placeholder="name@example.com" id="floatingEmailInput" />
|
|
10
|
+
* <Form.InputLabel for="floatingEmailInput" isFloating>Email address</Form.InputLabel>
|
|
11
|
+
* </Form.Floating>
|
|
12
|
+
*
|
|
13
|
+
* // Disabled floating label
|
|
14
|
+
* <Form.Floating>
|
|
15
|
+
* <Form.EmailInput disabled placeholder="name@example.com" id="floatingEmailInput" />
|
|
16
|
+
* <Form.InputLabel for="floatingEmailInput" isFloating>Email address</Form.InputLabel>
|
|
17
|
+
* </Form.Floating>
|
|
18
|
+
*
|
|
19
|
+
* // Readonly floating label
|
|
20
|
+
* <Form.Floating>
|
|
21
|
+
* <Form.EmailInput placeholder="name@example.com" id="floatingEmailInput" readonly />
|
|
22
|
+
* <Form.InputLabel for="floatingEmailInput" isFloating>Email address</Form.InputLabel>
|
|
23
|
+
* </Form.Floating>
|
|
24
|
+
*
|
|
25
|
+
* // Small sizing floating label
|
|
26
|
+
* <Form.Floating>
|
|
27
|
+
* <Form.EmailInput placeholder="name@example.com" id="floatingEmailInput" sizing="sm" />
|
|
28
|
+
* <Form.InputLabel for="floatingEmailInput" isFloating>Email address</Form.InputLabel>
|
|
29
|
+
* </Form.Floating>
|
|
30
|
+
* ```
|
|
31
|
+
* ### Props
|
|
32
|
+
* - `children` (any): Required. Child elements to be rendered inside the floating container.
|
|
33
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the container.
|
|
34
|
+
* - `elementRef` (HTMLDivElement): Optional. Reference to the container DOM element.
|
|
35
|
+
*/
|
|
36
|
+
declare const FormFloating: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
|
|
37
|
+
type FormFloating = ReturnType<typeof FormFloating>;
|
|
38
|
+
export default FormFloating;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.HelperText
|
|
4
|
+
Bootstrap-styled helper text component for providing additional information about form controls.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Basic helper text
|
|
9
|
+
<Form.TextInput placeholder="Enter your username" />
|
|
10
|
+
<Form.HelperText>Your username must be 8-20 characters long.</Form.HelperText>
|
|
11
|
+
|
|
12
|
+
// With ID association for accessibility
|
|
13
|
+
<Form.TextInput id="emailInput" placeholder="Enter your email" aria-describedby="email-help" />
|
|
14
|
+
<Form.HelperText id="email-help">We'll never share your email with anyone else.</Form.HelperText>
|
|
15
|
+
|
|
16
|
+
// Inside a form group
|
|
17
|
+
<Form.Group>
|
|
18
|
+
<Form.InputLabel for="passwordInput">Password</Form.InputLabel>
|
|
19
|
+
<Form.PasswordInput id="passwordInput" />
|
|
20
|
+
<Form.HelperText>Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces or emoji.</Form.HelperText>
|
|
21
|
+
</Form.Group>
|
|
22
|
+
```
|
|
23
|
+
### Props
|
|
24
|
+
- `class` (string): Optional. Additional CSS classes to apply to the helper text.
|
|
25
|
+
- `elementRef` (HTMLDivElement): Optional. Reference to the helper text DOM element.
|
|
26
|
+
- `id` (string): Optional. Unique identifier for the helper text element, used with aria-describedby.
|
|
27
|
+
-->
|
|
28
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
29
|
+
let { children, class: classValues, elementRef = $bindable(null), ...restOfProps } = $props();
|
|
30
|
+
let classes = $derived(uniqueClsx('form-text', classValues));
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<div bind:this={elementRef} class={classes} {...restOfProps}>
|
|
34
|
+
{@render children?.()}
|
|
35
|
+
</div>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ## Form.HelperText
|
|
3
|
+
* Bootstrap-styled helper text component for providing additional information about form controls.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```svelte
|
|
7
|
+
* // Basic helper text
|
|
8
|
+
* <Form.TextInput placeholder="Enter your username" />
|
|
9
|
+
* <Form.HelperText>Your username must be 8-20 characters long.</Form.HelperText>
|
|
10
|
+
*
|
|
11
|
+
* // With ID association for accessibility
|
|
12
|
+
* <Form.TextInput id="emailInput" placeholder="Enter your email" aria-describedby="email-help" />
|
|
13
|
+
* <Form.HelperText id="email-help">We'll never share your email with anyone else.</Form.HelperText>
|
|
14
|
+
*
|
|
15
|
+
* // Inside a form group
|
|
16
|
+
* <Form.Group>
|
|
17
|
+
* <Form.InputLabel for="passwordInput">Password</Form.InputLabel>
|
|
18
|
+
* <Form.PasswordInput id="passwordInput" />
|
|
19
|
+
* <Form.HelperText>Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces or emoji.</Form.HelperText>
|
|
20
|
+
* </Form.Group>
|
|
21
|
+
* ```
|
|
22
|
+
* ### Props
|
|
23
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the helper text.
|
|
24
|
+
* - `elementRef` (HTMLDivElement): Optional. Reference to the helper text DOM element.
|
|
25
|
+
* - `id` (string): Optional. Unique identifier for the helper text element, used with aria-describedby.
|
|
26
|
+
*/
|
|
27
|
+
declare const FormHelperText: import("svelte").Component<import("../index.js").DivElement, {}, "elementRef">;
|
|
28
|
+
type FormHelperText = ReturnType<typeof FormHelperText>;
|
|
29
|
+
export default FormHelperText;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.HiddenInput
|
|
4
|
+
Bootstrap-styled hidden input component for passing data in forms without visual representation.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
<Form.HiddenInput name="hiddenInput" value="Nothing to see here" />
|
|
9
|
+
```
|
|
10
|
+
### Props
|
|
11
|
+
- `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
12
|
+
- `value` (any): Optional. The value of the hidden input. If undefined, the input is empty.
|
|
13
|
+
-->
|
|
14
|
+
<script lang="ts">let { elementRef = $bindable(null), value = $bindable(undefined), ...restOfProps } = $props();
|
|
15
|
+
export {};
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<input bind:this={elementRef} bind:value type="hidden" {...restOfProps} />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.HiddenInput
|
|
4
|
+
* Bootstrap-styled hidden input component for passing data in forms without visual representation.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* <Form.HiddenInput name="hiddenInput" value="Nothing to see here" />
|
|
9
|
+
* ```
|
|
10
|
+
* ### Props
|
|
11
|
+
* - `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
12
|
+
* - `value` (any): Optional. The value of the hidden input. If undefined, the input is empty.
|
|
13
|
+
*/
|
|
14
|
+
declare const FormHiddenInput: import("svelte").Component<Form.FileInputProps, {}, "value" | "elementRef">;
|
|
15
|
+
type FormHiddenInput = ReturnType<typeof FormHiddenInput>;
|
|
16
|
+
export default FormHiddenInput;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.ImageInput
|
|
4
|
+
Bootstrap-styled image input component that acts as a graphical submit button.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Basic image input
|
|
9
|
+
<Form.ImageInput src="https://www.w3schools.com/tags/img_submit.gif" alt="Submit" width="48" height="48" />
|
|
10
|
+
|
|
11
|
+
// Inside a form
|
|
12
|
+
<form action="/submit" method="post">
|
|
13
|
+
<Form.TextInput name="username" placeholder="Username" />
|
|
14
|
+
<Form.PasswordInput name="password" placeholder="Password" />
|
|
15
|
+
<Form.ImageInput src="/images/submit-button.png" alt="Submit" width="100" height="40" />
|
|
16
|
+
</form>
|
|
17
|
+
|
|
18
|
+
// With additional styling
|
|
19
|
+
<Form.ImageInput class="rounded shadow" src="/images/login-button.png" alt="Login" width="120" height="40" title="Click to login" />
|
|
20
|
+
```
|
|
21
|
+
### Props
|
|
22
|
+
- `class` (string): Optional. Additional CSS classes to apply to the image input.
|
|
23
|
+
- `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
24
|
+
-->
|
|
25
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
26
|
+
let { class: classValues, elementRef = $bindable(null), ...restOfProps } = $props();
|
|
27
|
+
let classes = $derived(uniqueClsx(classValues));
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<input bind:this={elementRef} class={classes} type="image" {...restOfProps} />
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ## Form.ImageInput
|
|
3
|
+
* Bootstrap-styled image input component that acts as a graphical submit button.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```svelte
|
|
7
|
+
* // Basic image input
|
|
8
|
+
* <Form.ImageInput src="https://www.w3schools.com/tags/img_submit.gif" alt="Submit" width="48" height="48" />
|
|
9
|
+
*
|
|
10
|
+
* // Inside a form
|
|
11
|
+
* <form action="/submit" method="post">
|
|
12
|
+
* <Form.TextInput name="username" placeholder="Username" />
|
|
13
|
+
* <Form.PasswordInput name="password" placeholder="Password" />
|
|
14
|
+
* <Form.ImageInput src="/images/submit-button.png" alt="Submit" width="100" height="40" />
|
|
15
|
+
* </form>
|
|
16
|
+
*
|
|
17
|
+
* // With additional styling
|
|
18
|
+
* <Form.ImageInput class="rounded shadow" src="/images/login-button.png" alt="Login" width="120" height="40" title="Click to login" />
|
|
19
|
+
* ```
|
|
20
|
+
* ### Props
|
|
21
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the image input.
|
|
22
|
+
* - `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
23
|
+
*/
|
|
24
|
+
declare const FormImageInput: import("svelte").Component<import("../index.js").InputElement, {}, "elementRef">;
|
|
25
|
+
type FormImageInput = ReturnType<typeof FormImageInput>;
|
|
26
|
+
export default FormImageInput;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.InputGroupText
|
|
4
|
+
Bootstrap-styled text component for input groups, typically used for prepending or appending text to form inputs.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Prepended text
|
|
9
|
+
<Form.InputGroup>
|
|
10
|
+
<Form.InputGroupText>@</Form.InputGroupText>
|
|
11
|
+
<Form.TextInput placeholder="Username" />
|
|
12
|
+
</Form.InputGroup>
|
|
13
|
+
|
|
14
|
+
// Appended text
|
|
15
|
+
<Form.InputGroup>
|
|
16
|
+
<Form.TextInput placeholder="Recipient's username" />
|
|
17
|
+
<Form.InputGroupText>@example.com</Form.InputGroupText>
|
|
18
|
+
</Form.InputGroup>
|
|
19
|
+
|
|
20
|
+
// Multiple addons
|
|
21
|
+
<Form.InputGroup>
|
|
22
|
+
<Form.InputGroupText>$</Form.InputGroupText>
|
|
23
|
+
<Form.TextInput placeholder="Amount" aria-label="Amount" />
|
|
24
|
+
<Form.InputGroupText>.00</Form.InputGroupText>
|
|
25
|
+
</Form.InputGroup>
|
|
26
|
+
|
|
27
|
+
// With checkbox
|
|
28
|
+
<Form.InputGroup>
|
|
29
|
+
<Form.InputGroupText>
|
|
30
|
+
<input type="checkbox" aria-label="Checkbox for following text input" />
|
|
31
|
+
</Form.InputGroupText>
|
|
32
|
+
<Form.TextInput placeholder="Check me out" aria-label="Text input with checkbox" />
|
|
33
|
+
</Form.InputGroup>
|
|
34
|
+
```
|
|
35
|
+
### Props
|
|
36
|
+
- `class` (string): Optional. Additional CSS classes to apply to the input group text.
|
|
37
|
+
- `elementRef` (HTMLSpanElement): Optional. Reference to the input group text DOM element.
|
|
38
|
+
- `elementType` (string): Optional. The type of element to render, either 'span' or 'label'. Defaults to 'span'.
|
|
39
|
+
-->
|
|
40
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
41
|
+
let { children, class: classValues, elementRef = $bindable(null), elementType = 'span', ...restOfProps } = $props();
|
|
42
|
+
let classes = $derived(uniqueClsx('input-group-text', classValues));
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<svelte:element this={elementType} bind:this={elementRef} class={classes} {...restOfProps}>
|
|
46
|
+
{@render children?.()}
|
|
47
|
+
</svelte:element>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.InputGroupText
|
|
4
|
+
* Bootstrap-styled text component for input groups, typically used for prepending or appending text to form inputs.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Prepended text
|
|
9
|
+
* <Form.InputGroup>
|
|
10
|
+
* <Form.InputGroupText>@</Form.InputGroupText>
|
|
11
|
+
* <Form.TextInput placeholder="Username" />
|
|
12
|
+
* </Form.InputGroup>
|
|
13
|
+
*
|
|
14
|
+
* // Appended text
|
|
15
|
+
* <Form.InputGroup>
|
|
16
|
+
* <Form.TextInput placeholder="Recipient's username" />
|
|
17
|
+
* <Form.InputGroupText>@example.com</Form.InputGroupText>
|
|
18
|
+
* </Form.InputGroup>
|
|
19
|
+
*
|
|
20
|
+
* // Multiple addons
|
|
21
|
+
* <Form.InputGroup>
|
|
22
|
+
* <Form.InputGroupText>$</Form.InputGroupText>
|
|
23
|
+
* <Form.TextInput placeholder="Amount" aria-label="Amount" />
|
|
24
|
+
* <Form.InputGroupText>.00</Form.InputGroupText>
|
|
25
|
+
* </Form.InputGroup>
|
|
26
|
+
*
|
|
27
|
+
* // With checkbox
|
|
28
|
+
* <Form.InputGroup>
|
|
29
|
+
* <Form.InputGroupText>
|
|
30
|
+
* <input type="checkbox" aria-label="Checkbox for following text input" />
|
|
31
|
+
* </Form.InputGroupText>
|
|
32
|
+
* <Form.TextInput placeholder="Check me out" aria-label="Text input with checkbox" />
|
|
33
|
+
* </Form.InputGroup>
|
|
34
|
+
* ```
|
|
35
|
+
* ### Props
|
|
36
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the input group text.
|
|
37
|
+
* - `elementRef` (HTMLSpanElement): Optional. Reference to the input group text DOM element.
|
|
38
|
+
* - `elementType` (string): Optional. The type of element to render, either 'span' or 'label'. Defaults to 'span'.
|
|
39
|
+
*/
|
|
40
|
+
declare const FormInputGroupText: import("svelte").Component<Form.InputGroupTextProps, {}, "elementRef">;
|
|
41
|
+
type FormInputGroupText = ReturnType<typeof FormInputGroupText>;
|
|
42
|
+
export default FormInputGroupText;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.InputGroup
|
|
4
|
+
Bootstrap-styled container for grouping form controls with additional elements like text, buttons, or other inputs.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Basic input group with text
|
|
9
|
+
<Form.InputGroup>
|
|
10
|
+
<span class="input-group-text">@</span>
|
|
11
|
+
<Form.TextInput placeholder="Username" />
|
|
12
|
+
</Form.InputGroup>
|
|
13
|
+
|
|
14
|
+
// Input with prefix and suffix
|
|
15
|
+
<Form.InputGroup>
|
|
16
|
+
<span class="input-group-text">$</span>
|
|
17
|
+
<Form.TextInput aria-label="Amount (to the nearest dollar)" />
|
|
18
|
+
<span class="input-group-text">.00</span>
|
|
19
|
+
</Form.InputGroup>
|
|
20
|
+
|
|
21
|
+
// Input with button
|
|
22
|
+
<Form.InputGroup>
|
|
23
|
+
<Form.TextInput placeholder="Recipient's username" aria-label="Recipient's username" />
|
|
24
|
+
<button class="btn btn-outline-secondary" type="button">Button</button>
|
|
25
|
+
</Form.InputGroup>
|
|
26
|
+
|
|
27
|
+
// Multiple inputs
|
|
28
|
+
<Form.InputGroup>
|
|
29
|
+
<span class="input-group-text">First and last name</span>
|
|
30
|
+
<Form.TextInput aria-label="First name" />
|
|
31
|
+
<Form.TextInput aria-label="Last name" />
|
|
32
|
+
</Form.InputGroup>
|
|
33
|
+
```
|
|
34
|
+
### Props
|
|
35
|
+
- `class` (string): Optional. Additional CSS classes to apply to the input group.
|
|
36
|
+
- `elementRef` (HTMLDivElement): Optional. Reference to the input group DOM element.
|
|
37
|
+
- `hasValidation` (boolean): Optional. Indicates if the input group has validation styles applied.
|
|
38
|
+
- `noWrap` (boolean): Optional. If true, prevents wrapping of the input group elements.
|
|
39
|
+
- `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
40
|
+
-->
|
|
41
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
42
|
+
let { children, class: classValues, elementRef = $bindable(null), hasValidation, noWrap, sizing, ...restOfProps } = $props();
|
|
43
|
+
let classes = $derived(uniqueClsx('input-group', {
|
|
44
|
+
[`input-group-${sizing}`]: !!sizing,
|
|
45
|
+
'has-validation': hasValidation,
|
|
46
|
+
'flex-nowrap': noWrap
|
|
47
|
+
}, classValues));
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<div bind:this={elementRef} class={classes} {...restOfProps}>
|
|
51
|
+
{@render children?.()}
|
|
52
|
+
</div>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.InputGroup
|
|
4
|
+
* Bootstrap-styled container for grouping form controls with additional elements like text, buttons, or other inputs.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Basic input group with text
|
|
9
|
+
* <Form.InputGroup>
|
|
10
|
+
* <span class="input-group-text">@</span>
|
|
11
|
+
* <Form.TextInput placeholder="Username" />
|
|
12
|
+
* </Form.InputGroup>
|
|
13
|
+
*
|
|
14
|
+
* // Input with prefix and suffix
|
|
15
|
+
* <Form.InputGroup>
|
|
16
|
+
* <span class="input-group-text">$</span>
|
|
17
|
+
* <Form.TextInput aria-label="Amount (to the nearest dollar)" />
|
|
18
|
+
* <span class="input-group-text">.00</span>
|
|
19
|
+
* </Form.InputGroup>
|
|
20
|
+
*
|
|
21
|
+
* // Input with button
|
|
22
|
+
* <Form.InputGroup>
|
|
23
|
+
* <Form.TextInput placeholder="Recipient's username" aria-label="Recipient's username" />
|
|
24
|
+
* <button class="btn btn-outline-secondary" type="button">Button</button>
|
|
25
|
+
* </Form.InputGroup>
|
|
26
|
+
*
|
|
27
|
+
* // Multiple inputs
|
|
28
|
+
* <Form.InputGroup>
|
|
29
|
+
* <span class="input-group-text">First and last name</span>
|
|
30
|
+
* <Form.TextInput aria-label="First name" />
|
|
31
|
+
* <Form.TextInput aria-label="Last name" />
|
|
32
|
+
* </Form.InputGroup>
|
|
33
|
+
* ```
|
|
34
|
+
* ### Props
|
|
35
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the input group.
|
|
36
|
+
* - `elementRef` (HTMLDivElement): Optional. Reference to the input group DOM element.
|
|
37
|
+
* - `hasValidation` (boolean): Optional. Indicates if the input group has validation styles applied.
|
|
38
|
+
* - `noWrap` (boolean): Optional. If true, prevents wrapping of the input group elements.
|
|
39
|
+
* - `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
40
|
+
*/
|
|
41
|
+
declare const FormInputGroup: import("svelte").Component<Form.InputGroupProps, {}, "elementRef">;
|
|
42
|
+
type FormInputGroup = ReturnType<typeof FormInputGroup>;
|
|
43
|
+
export default FormInputGroup;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.InputLabel
|
|
4
|
+
Bootstrap-styled label component for form input elements.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Standard label for input
|
|
9
|
+
<Form.Group>
|
|
10
|
+
<Form.InputLabel for="exampleInput">Email address</Form.InputLabel>
|
|
11
|
+
<Form.EmailInput id="exampleInput" placeholder="name@example.com" />
|
|
12
|
+
<Form.HelperText>We'll never share your email with anyone else.</Form.HelperText>
|
|
13
|
+
</Form.Group>
|
|
14
|
+
|
|
15
|
+
// Floating label (used with Form.Floating)
|
|
16
|
+
<Form.Floating>
|
|
17
|
+
<Form.EmailInput id="floatingInput" placeholder="name@example.com" />
|
|
18
|
+
<Form.InputLabel for="floatingInput" isFloating>Email address</Form.InputLabel>
|
|
19
|
+
</Form.Floating>
|
|
20
|
+
```
|
|
21
|
+
### Props
|
|
22
|
+
- `class` (string): Optional. Additional CSS classes to apply to the label.
|
|
23
|
+
- `elementRef` (HTMLLabelElement): Optional. Reference to the label DOM element.
|
|
24
|
+
- `isFloating` (boolean): Optional. When true, formats the label for use in floating label contexts.
|
|
25
|
+
-->
|
|
26
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
27
|
+
let { children, class: classValues, elementRef = $bindable(null), isFloating = false, ...restOfProps } = $props();
|
|
28
|
+
let classes = $derived(uniqueClsx({ 'form-label': !isFloating }, classValues));
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<label bind:this={elementRef} class={classes} {...restOfProps}>
|
|
32
|
+
{@render children?.()}
|
|
33
|
+
</label>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.InputLabel
|
|
4
|
+
* Bootstrap-styled label component for form input elements.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Standard label for input
|
|
9
|
+
* <Form.Group>
|
|
10
|
+
* <Form.InputLabel for="exampleInput">Email address</Form.InputLabel>
|
|
11
|
+
* <Form.EmailInput id="exampleInput" placeholder="name@example.com" />
|
|
12
|
+
* <Form.HelperText>We'll never share your email with anyone else.</Form.HelperText>
|
|
13
|
+
* </Form.Group>
|
|
14
|
+
*
|
|
15
|
+
* // Floating label (used with Form.Floating)
|
|
16
|
+
* <Form.Floating>
|
|
17
|
+
* <Form.EmailInput id="floatingInput" placeholder="name@example.com" />
|
|
18
|
+
* <Form.InputLabel for="floatingInput" isFloating>Email address</Form.InputLabel>
|
|
19
|
+
* </Form.Floating>
|
|
20
|
+
* ```
|
|
21
|
+
* ### Props
|
|
22
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the label.
|
|
23
|
+
* - `elementRef` (HTMLLabelElement): Optional. Reference to the label DOM element.
|
|
24
|
+
* - `isFloating` (boolean): Optional. When true, formats the label for use in floating label contexts.
|
|
25
|
+
*/
|
|
26
|
+
declare const FormInputLabel: import("svelte").Component<Form.InputLabelProps, {}, "elementRef">;
|
|
27
|
+
type FormInputLabel = ReturnType<typeof FormInputLabel>;
|
|
28
|
+
export default FormInputLabel;
|