@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,55 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.TextInput
|
|
4
|
+
Input field component for standard text values with Bootstrap styling.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Default
|
|
9
|
+
<Form.TextInput title="Set a text value" value="text value" />
|
|
10
|
+
|
|
11
|
+
// With variations
|
|
12
|
+
<Form.TextInput disabled title="Set a text value" value="text value" />
|
|
13
|
+
<Form.TextInput readonly title="Set a text value" value="text value" />
|
|
14
|
+
<Form.TextInput isPlaintext readonly title="Set a text value" value="text value" />
|
|
15
|
+
<Form.TextInput sizing="sm" title="Set a text value" value="text value" />
|
|
16
|
+
<Form.TextInput sizing="lg" title="Set a text value" value="text value" />
|
|
17
|
+
|
|
18
|
+
// With datalist
|
|
19
|
+
<Form.TextInput list="listOfTextValues" title="Set a text value" value="text value" />
|
|
20
|
+
<datalist id="listOfTextValues">
|
|
21
|
+
<option value="text value 1"></option>
|
|
22
|
+
<option value="text value 2"></option>
|
|
23
|
+
<option value="text value 3"></option>
|
|
24
|
+
</datalist>
|
|
25
|
+
```
|
|
26
|
+
### Props
|
|
27
|
+
- `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
28
|
+
- `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
29
|
+
- `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
30
|
+
- `isPlaintext` (boolean): Optional. When true, renders as plaintext (no input border).
|
|
31
|
+
- `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
32
|
+
- `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
33
|
+
- `value` (string): Optional. The text value of the input. If undefined, the input is empty.
|
|
34
|
+
-->
|
|
35
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
36
|
+
let { autocomplete = 'off', class: classValues, 'data-form-type': dataFormType = undefined, 'data-lpignore': dataLpignore = undefined, elementRef = $bindable(null), isInvalid, isPlaintext = false, isValid, sizing, value = $bindable(undefined), ...restOfProps } = $props();
|
|
37
|
+
let classes = $derived(uniqueClsx({
|
|
38
|
+
'form-control': !isPlaintext,
|
|
39
|
+
'form-control-plaintext': isPlaintext,
|
|
40
|
+
[`form-control-${sizing}`]: !!sizing,
|
|
41
|
+
'is-valid': isValid,
|
|
42
|
+
'is-invalid': isInvalid
|
|
43
|
+
}, classValues));
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
<input
|
|
47
|
+
aria-invalid={isInvalid === true ? 'true' : isValid === true ? 'false' : undefined}
|
|
48
|
+
{autocomplete}
|
|
49
|
+
bind:this={elementRef}
|
|
50
|
+
bind:value
|
|
51
|
+
class={classes}
|
|
52
|
+
data-form-type={autocomplete == 'off' ? 'other' : dataFormType}
|
|
53
|
+
data-lpignore={autocomplete == 'off' ? 'true' : dataLpignore}
|
|
54
|
+
type="text"
|
|
55
|
+
{...restOfProps} />
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.TextInput
|
|
4
|
+
* Input field component for standard text values with Bootstrap styling.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Default
|
|
9
|
+
* <Form.TextInput title="Set a text value" value="text value" />
|
|
10
|
+
*
|
|
11
|
+
* // With variations
|
|
12
|
+
* <Form.TextInput disabled title="Set a text value" value="text value" />
|
|
13
|
+
* <Form.TextInput readonly title="Set a text value" value="text value" />
|
|
14
|
+
* <Form.TextInput isPlaintext readonly title="Set a text value" value="text value" />
|
|
15
|
+
* <Form.TextInput sizing="sm" title="Set a text value" value="text value" />
|
|
16
|
+
* <Form.TextInput sizing="lg" title="Set a text value" value="text value" />
|
|
17
|
+
*
|
|
18
|
+
* // With datalist
|
|
19
|
+
* <Form.TextInput list="listOfTextValues" title="Set a text value" value="text value" />
|
|
20
|
+
* <datalist id="listOfTextValues">
|
|
21
|
+
* <option value="text value 1"></option>
|
|
22
|
+
* <option value="text value 2"></option>
|
|
23
|
+
* <option value="text value 3"></option>
|
|
24
|
+
* </datalist>
|
|
25
|
+
* ```
|
|
26
|
+
* ### Props
|
|
27
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
28
|
+
* - `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
29
|
+
* - `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
30
|
+
* - `isPlaintext` (boolean): Optional. When true, renders as plaintext (no input border).
|
|
31
|
+
* - `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
32
|
+
* - `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
33
|
+
* - `value` (string): Optional. The text value of the input. If undefined, the input is empty.
|
|
34
|
+
*/
|
|
35
|
+
declare const FormTextInput: import("svelte").Component<Form.TextInputProps, {}, "value" | "elementRef">;
|
|
36
|
+
type FormTextInput = ReturnType<typeof FormTextInput>;
|
|
37
|
+
export default FormTextInput;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.TimeInput
|
|
4
|
+
Bootstrap-styled time input component for selecting a specific time.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Default time input
|
|
9
|
+
<Form.TimeInput max="12:00" min="00:00" title="Set a time" value="07:32" />
|
|
10
|
+
|
|
11
|
+
// Disabled time input
|
|
12
|
+
<Form.TimeInput disabled max="12:00" min="00:00" title="Set a time" value="07:32" />
|
|
13
|
+
|
|
14
|
+
// Readonly time input
|
|
15
|
+
<Form.TimeInput readonly max="12:00" min="00:00" title="Set a time" value="07:32" />
|
|
16
|
+
|
|
17
|
+
// Readonly plaintext time input
|
|
18
|
+
<Form.TimeInput isPlaintext readonly max="12:00" min="00:00" title="Set a time" value="07:32" />
|
|
19
|
+
|
|
20
|
+
// Small sizing
|
|
21
|
+
<Form.TimeInput sizing="sm" max="12:00" min="00:00" title="Set a time" value="07:32" />
|
|
22
|
+
|
|
23
|
+
// Large sizing
|
|
24
|
+
<Form.TimeInput sizing="lg" max="12:00" min="00:00" title="Set a time" value="07:32" />
|
|
25
|
+
|
|
26
|
+
// With datalist
|
|
27
|
+
<Form.TimeInput list="listOfTimes" max="12:00" min="00:00" title="Set a time" />
|
|
28
|
+
<datalist id="listOfTimes">
|
|
29
|
+
<option value="08:00"></option>
|
|
30
|
+
<option value="09:00"></option>
|
|
31
|
+
<option value="10:00"></option>
|
|
32
|
+
<option value="11:00"></option>
|
|
33
|
+
<option value="12:00"></option>
|
|
34
|
+
</datalist>
|
|
35
|
+
```
|
|
36
|
+
### Props
|
|
37
|
+
- `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
38
|
+
- `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
39
|
+
- `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
40
|
+
- `isPlaintext` (boolean): Optional. When true, renders as plaintext (no input border).
|
|
41
|
+
- `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
42
|
+
- `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
43
|
+
- `value` (string): Optional. The time value in the format "HH:MM". If undefined, the input is empty.
|
|
44
|
+
-->
|
|
45
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
46
|
+
let { class: classValues, elementRef = $bindable(null), isInvalid, isPlaintext = false, isValid, sizing, value = $bindable(undefined), ...restOfProps } = $props();
|
|
47
|
+
let classes = $derived(uniqueClsx({
|
|
48
|
+
'form-control': !isPlaintext,
|
|
49
|
+
'form-control-plaintext': isPlaintext,
|
|
50
|
+
[`form-control-${sizing}`]: !!sizing,
|
|
51
|
+
'is-valid': isValid,
|
|
52
|
+
'is-invalid': isInvalid
|
|
53
|
+
}, classValues));
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<input
|
|
57
|
+
aria-invalid={isInvalid === true ? 'true' : isValid === true ? 'false' : undefined}
|
|
58
|
+
bind:this={elementRef}
|
|
59
|
+
bind:value
|
|
60
|
+
class={classes}
|
|
61
|
+
type="time"
|
|
62
|
+
{...restOfProps} />
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.TimeInput
|
|
4
|
+
* Bootstrap-styled time input component for selecting a specific time.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Default time input
|
|
9
|
+
* <Form.TimeInput max="12:00" min="00:00" title="Set a time" value="07:32" />
|
|
10
|
+
*
|
|
11
|
+
* // Disabled time input
|
|
12
|
+
* <Form.TimeInput disabled max="12:00" min="00:00" title="Set a time" value="07:32" />
|
|
13
|
+
*
|
|
14
|
+
* // Readonly time input
|
|
15
|
+
* <Form.TimeInput readonly max="12:00" min="00:00" title="Set a time" value="07:32" />
|
|
16
|
+
*
|
|
17
|
+
* // Readonly plaintext time input
|
|
18
|
+
* <Form.TimeInput isPlaintext readonly max="12:00" min="00:00" title="Set a time" value="07:32" />
|
|
19
|
+
*
|
|
20
|
+
* // Small sizing
|
|
21
|
+
* <Form.TimeInput sizing="sm" max="12:00" min="00:00" title="Set a time" value="07:32" />
|
|
22
|
+
*
|
|
23
|
+
* // Large sizing
|
|
24
|
+
* <Form.TimeInput sizing="lg" max="12:00" min="00:00" title="Set a time" value="07:32" />
|
|
25
|
+
*
|
|
26
|
+
* // With datalist
|
|
27
|
+
* <Form.TimeInput list="listOfTimes" max="12:00" min="00:00" title="Set a time" />
|
|
28
|
+
* <datalist id="listOfTimes">
|
|
29
|
+
* <option value="08:00"></option>
|
|
30
|
+
* <option value="09:00"></option>
|
|
31
|
+
* <option value="10:00"></option>
|
|
32
|
+
* <option value="11:00"></option>
|
|
33
|
+
* <option value="12:00"></option>
|
|
34
|
+
* </datalist>
|
|
35
|
+
* ```
|
|
36
|
+
* ### Props
|
|
37
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
38
|
+
* - `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
39
|
+
* - `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
40
|
+
* - `isPlaintext` (boolean): Optional. When true, renders as plaintext (no input border).
|
|
41
|
+
* - `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
42
|
+
* - `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
43
|
+
* - `value` (string): Optional. The time value in the format "HH:MM". If undefined, the input is empty.
|
|
44
|
+
*/
|
|
45
|
+
declare const FormTimeInput: import("svelte").Component<Form.TimeInputProps, {}, "value" | "elementRef">;
|
|
46
|
+
type FormTimeInput = ReturnType<typeof FormTimeInput>;
|
|
47
|
+
export default FormTimeInput;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.UrlInput
|
|
4
|
+
Bootstrap-styled URL input component for entering website addresses.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Default URL input
|
|
9
|
+
<Form.UrlInput pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
10
|
+
|
|
11
|
+
// Disabled URL input
|
|
12
|
+
<Form.UrlInput disabled pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
13
|
+
|
|
14
|
+
// Readonly URL input
|
|
15
|
+
<Form.UrlInput readonly pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
16
|
+
|
|
17
|
+
// Readonly plaintext URL input
|
|
18
|
+
<Form.UrlInput isPlaintext readonly pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
19
|
+
|
|
20
|
+
// Small sizing
|
|
21
|
+
<Form.UrlInput sizing="sm" pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
22
|
+
|
|
23
|
+
// Large sizing
|
|
24
|
+
<Form.UrlInput sizing="lg" pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
25
|
+
|
|
26
|
+
// With datalist
|
|
27
|
+
<Form.UrlInput list="listOfUrls" pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
28
|
+
<datalist id="listOfUrls">
|
|
29
|
+
<option value="https://example.com"></option>
|
|
30
|
+
<option value="https://example.org"></option>
|
|
31
|
+
<option value="https://example.net"></option>
|
|
32
|
+
</datalist>
|
|
33
|
+
```
|
|
34
|
+
### Props
|
|
35
|
+
- `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
36
|
+
- `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
37
|
+
- `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
38
|
+
- `isPlaintext` (boolean): Optional. When true, renders as plaintext (no input border).
|
|
39
|
+
- `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
40
|
+
- `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
41
|
+
- `value` (string): Optional. The URL value. If undefined, the input is empty.
|
|
42
|
+
-->
|
|
43
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
44
|
+
let { class: classValues, elementRef = $bindable(null), isInvalid, isPlaintext = false, isValid, sizing, value = $bindable(undefined), ...restOfProps } = $props();
|
|
45
|
+
let classes = $derived(uniqueClsx({
|
|
46
|
+
'form-control': !isPlaintext,
|
|
47
|
+
'form-control-plaintext': isPlaintext,
|
|
48
|
+
[`form-control-${sizing}`]: !!sizing,
|
|
49
|
+
'is-valid': isValid,
|
|
50
|
+
'is-invalid': isInvalid
|
|
51
|
+
}, classValues));
|
|
52
|
+
</script>
|
|
53
|
+
|
|
54
|
+
<input
|
|
55
|
+
aria-invalid={isInvalid === true ? 'true' : isValid === true ? 'false' : undefined}
|
|
56
|
+
bind:this={elementRef}
|
|
57
|
+
bind:value
|
|
58
|
+
class={classes}
|
|
59
|
+
type="url"
|
|
60
|
+
{...restOfProps} />
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.UrlInput
|
|
4
|
+
* Bootstrap-styled URL input component for entering website addresses.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Default URL input
|
|
9
|
+
* <Form.UrlInput pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
10
|
+
*
|
|
11
|
+
* // Disabled URL input
|
|
12
|
+
* <Form.UrlInput disabled pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
13
|
+
*
|
|
14
|
+
* // Readonly URL input
|
|
15
|
+
* <Form.UrlInput readonly pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
16
|
+
*
|
|
17
|
+
* // Readonly plaintext URL input
|
|
18
|
+
* <Form.UrlInput isPlaintext readonly pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
19
|
+
*
|
|
20
|
+
* // Small sizing
|
|
21
|
+
* <Form.UrlInput sizing="sm" pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
22
|
+
*
|
|
23
|
+
* // Large sizing
|
|
24
|
+
* <Form.UrlInput sizing="lg" pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
25
|
+
*
|
|
26
|
+
* // With datalist
|
|
27
|
+
* <Form.UrlInput list="listOfUrls" pattern="https://.*" placeholder="https://example.com" title="Set a URL" />
|
|
28
|
+
* <datalist id="listOfUrls">
|
|
29
|
+
* <option value="https://example.com"></option>
|
|
30
|
+
* <option value="https://example.org"></option>
|
|
31
|
+
* <option value="https://example.net"></option>
|
|
32
|
+
* </datalist>
|
|
33
|
+
* ```
|
|
34
|
+
* ### Props
|
|
35
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
36
|
+
* - `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
37
|
+
* - `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
38
|
+
* - `isPlaintext` (boolean): Optional. When true, renders as plaintext (no input border).
|
|
39
|
+
* - `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
40
|
+
* - `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
41
|
+
* - `value` (string): Optional. The URL value. If undefined, the input is empty.
|
|
42
|
+
*/
|
|
43
|
+
declare const FormUrlInput: import("svelte").Component<Form.UrlInputProps, {}, "value" | "elementRef">;
|
|
44
|
+
type FormUrlInput = ReturnType<typeof FormUrlInput>;
|
|
45
|
+
export default FormUrlInput;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.WeekInput
|
|
4
|
+
Bootstrap-styled week input component for selecting a specific week of a year.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Default week input
|
|
9
|
+
<Form.WeekInput title="Set a week" value="2025-W07" />
|
|
10
|
+
|
|
11
|
+
// Disabled week input
|
|
12
|
+
<Form.WeekInput disabled title="Set a week" value="2025-W07" />
|
|
13
|
+
|
|
14
|
+
// Readonly week input
|
|
15
|
+
<Form.WeekInput readonly title="Set a week" value="2025-W07" />
|
|
16
|
+
|
|
17
|
+
// Readonly plaintext week input
|
|
18
|
+
<Form.WeekInput isPlaintext readonly title="Set a week" value="2025-W07" />
|
|
19
|
+
|
|
20
|
+
// Small sizing
|
|
21
|
+
<Form.WeekInput sizing="sm" title="Set a week" value="2025-W07" />
|
|
22
|
+
|
|
23
|
+
// Large sizing
|
|
24
|
+
<Form.WeekInput sizing="lg" title="Set a week" value="2025-W07" />
|
|
25
|
+
|
|
26
|
+
// With datalist
|
|
27
|
+
<Form.WeekInput list="listOfWeeks" title="Set a week" />
|
|
28
|
+
<datalist id="listOfWeeks">
|
|
29
|
+
<option value="2025-W01"></option>
|
|
30
|
+
<option value="2025-W02"></option>
|
|
31
|
+
<option value="2025-W03"></option>
|
|
32
|
+
<option value="2025-W04"></option>
|
|
33
|
+
<option value="2025-W05"></option>
|
|
34
|
+
</datalist>
|
|
35
|
+
```
|
|
36
|
+
### Props
|
|
37
|
+
- `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
38
|
+
- `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
39
|
+
- `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
40
|
+
- `isPlaintext` (boolean): Optional. When true, renders as plaintext (no input border).
|
|
41
|
+
- `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
42
|
+
- `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
43
|
+
- `value` (string): Optional. The week value in the format "YYYY-Www". If undefined, the input is empty.
|
|
44
|
+
-->
|
|
45
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
46
|
+
let { class: classValues, elementRef = $bindable(null), isInvalid, isPlaintext = false, isValid, sizing, value = $bindable(undefined), ...restOfProps } = $props();
|
|
47
|
+
let classes = $derived(uniqueClsx({
|
|
48
|
+
'form-control': !isPlaintext,
|
|
49
|
+
'form-control-plaintext': isPlaintext,
|
|
50
|
+
[`form-control-${sizing}`]: !!sizing,
|
|
51
|
+
'is-valid': isValid,
|
|
52
|
+
'is-invalid': isInvalid
|
|
53
|
+
}, classValues));
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<input
|
|
57
|
+
aria-invalid={isInvalid === true ? 'true' : isValid === true ? 'false' : undefined}
|
|
58
|
+
bind:this={elementRef}
|
|
59
|
+
bind:value
|
|
60
|
+
class={classes}
|
|
61
|
+
type="week"
|
|
62
|
+
{...restOfProps} />
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.WeekInput
|
|
4
|
+
* Bootstrap-styled week input component for selecting a specific week of a year.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Default week input
|
|
9
|
+
* <Form.WeekInput title="Set a week" value="2025-W07" />
|
|
10
|
+
*
|
|
11
|
+
* // Disabled week input
|
|
12
|
+
* <Form.WeekInput disabled title="Set a week" value="2025-W07" />
|
|
13
|
+
*
|
|
14
|
+
* // Readonly week input
|
|
15
|
+
* <Form.WeekInput readonly title="Set a week" value="2025-W07" />
|
|
16
|
+
*
|
|
17
|
+
* // Readonly plaintext week input
|
|
18
|
+
* <Form.WeekInput isPlaintext readonly title="Set a week" value="2025-W07" />
|
|
19
|
+
*
|
|
20
|
+
* // Small sizing
|
|
21
|
+
* <Form.WeekInput sizing="sm" title="Set a week" value="2025-W07" />
|
|
22
|
+
*
|
|
23
|
+
* // Large sizing
|
|
24
|
+
* <Form.WeekInput sizing="lg" title="Set a week" value="2025-W07" />
|
|
25
|
+
*
|
|
26
|
+
* // With datalist
|
|
27
|
+
* <Form.WeekInput list="listOfWeeks" title="Set a week" />
|
|
28
|
+
* <datalist id="listOfWeeks">
|
|
29
|
+
* <option value="2025-W01"></option>
|
|
30
|
+
* <option value="2025-W02"></option>
|
|
31
|
+
* <option value="2025-W03"></option>
|
|
32
|
+
* <option value="2025-W04"></option>
|
|
33
|
+
* <option value="2025-W05"></option>
|
|
34
|
+
* </datalist>
|
|
35
|
+
* ```
|
|
36
|
+
* ### Props
|
|
37
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
38
|
+
* - `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
39
|
+
* - `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
40
|
+
* - `isPlaintext` (boolean): Optional. When true, renders as plaintext (no input border).
|
|
41
|
+
* - `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
42
|
+
* - `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
43
|
+
* - `value` (string): Optional. The week value in the format "YYYY-Www". If undefined, the input is empty.
|
|
44
|
+
*/
|
|
45
|
+
declare const FormWeekInput: import("svelte").Component<Form.WeekInputProps, {}, "value" | "elementRef">;
|
|
46
|
+
type FormWeekInput = ReturnType<typeof FormWeekInput>;
|
|
47
|
+
export default FormWeekInput;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.Root
|
|
4
|
+
Bootstrap-styled hidden input component for passing data in forms without visual representation.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
<Form.Root action="/submit" method="post">
|
|
9
|
+
<Form.Input name="username" placeholder="Enter your username" />
|
|
10
|
+
<Form.Input name="password" type="password" placeholder="Enter your password" />
|
|
11
|
+
<Form.Button type="submit">Submit</Form.Button>
|
|
12
|
+
</Form.Root>
|
|
13
|
+
```
|
|
14
|
+
### Props
|
|
15
|
+
- `class` (string): Optional. Additional CSS classes to apply to the form.
|
|
16
|
+
- `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
17
|
+
- `enhance` (function): Optional. Function to enhance the form with additional behavior, such as validation.
|
|
18
|
+
- `needsValidation` (boolean): Optional. Indicates if the form needs validation styles.
|
|
19
|
+
- `wasValidated` (boolean): Optional. Indicates if the form has been validated.
|
|
20
|
+
-->
|
|
21
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
22
|
+
let { children, class: classValues, elementRef = $bindable(null), enhance = undefined, needsValidation = false, wasValidated = false, ...restOfProps } = $props();
|
|
23
|
+
let classes = $derived(uniqueClsx({
|
|
24
|
+
'needs-validation': needsValidation,
|
|
25
|
+
'was-validated': wasValidated
|
|
26
|
+
}, classValues));
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
{#if enhance}
|
|
30
|
+
<form bind:this={elementRef} use:enhance class={classes} {...restOfProps}>
|
|
31
|
+
{@render children?.()}
|
|
32
|
+
</form>
|
|
33
|
+
{:else}
|
|
34
|
+
<form bind:this={elementRef} class={classes} {...restOfProps}>
|
|
35
|
+
{@render children?.()}
|
|
36
|
+
</form>
|
|
37
|
+
{/if}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.Root
|
|
4
|
+
* Bootstrap-styled hidden input component for passing data in forms without visual representation.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* <Form.Root action="/submit" method="post">
|
|
9
|
+
* <Form.Input name="username" placeholder="Enter your username" />
|
|
10
|
+
* <Form.Input name="password" type="password" placeholder="Enter your password" />
|
|
11
|
+
* <Form.Button type="submit">Submit</Form.Button>
|
|
12
|
+
* </Form.Root>
|
|
13
|
+
* ```
|
|
14
|
+
* ### Props
|
|
15
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the form.
|
|
16
|
+
* - `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
17
|
+
* - `enhance` (function): Optional. Function to enhance the form with additional behavior, such as validation.
|
|
18
|
+
* - `needsValidation` (boolean): Optional. Indicates if the form needs validation styles.
|
|
19
|
+
* - `wasValidated` (boolean): Optional. Indicates if the form has been validated.
|
|
20
|
+
*/
|
|
21
|
+
declare const Form: import("svelte").Component<Form.RootProps, {}, "elementRef">;
|
|
22
|
+
type Form = ReturnType<typeof Form>;
|
|
23
|
+
export default Form;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Form from './composition.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Form from './composition.js';
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import type { enhance } from '$app/forms';
|
|
2
|
+
import type { DivElement, FormControlSize, FormElement, FormInputGroupSize, InputElement, LabelElement, SelectElement, SpanElement, TextAreaElement } from '../common/types.js';
|
|
3
|
+
export type FormCheckInputProps = InputElement & {
|
|
4
|
+
isIndeterminate?: boolean;
|
|
5
|
+
isInvalid?: boolean;
|
|
6
|
+
isValid?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type FormCheckLabelProps = (SpanElement | LabelElement) & {
|
|
9
|
+
elementType?: 'label' | 'span';
|
|
10
|
+
};
|
|
11
|
+
export type FormCheckProps = DivElement & {
|
|
12
|
+
isInline?: boolean;
|
|
13
|
+
isSwitch?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type FormColorInputProps = InputElement & {
|
|
16
|
+
isInvalid?: boolean;
|
|
17
|
+
isValid?: boolean;
|
|
18
|
+
sizing?: FormControlSize;
|
|
19
|
+
};
|
|
20
|
+
export type FormDateInputProps = InputElement & {
|
|
21
|
+
isInvalid?: boolean;
|
|
22
|
+
isPlaintext?: boolean;
|
|
23
|
+
isValid?: boolean;
|
|
24
|
+
sizing?: FormControlSize;
|
|
25
|
+
};
|
|
26
|
+
export type FormDatetimeLocalInputProps = InputElement & {
|
|
27
|
+
isInvalid?: boolean;
|
|
28
|
+
isPlaintext?: boolean;
|
|
29
|
+
isValid?: boolean;
|
|
30
|
+
sizing?: FormControlSize;
|
|
31
|
+
};
|
|
32
|
+
export type FormEmailInputProps = InputElement & {
|
|
33
|
+
'data-form-type'?: string;
|
|
34
|
+
'data-lpignore'?: string;
|
|
35
|
+
isInvalid?: boolean;
|
|
36
|
+
isPlaintext?: boolean;
|
|
37
|
+
isValid?: boolean;
|
|
38
|
+
sizing?: FormControlSize;
|
|
39
|
+
};
|
|
40
|
+
export type FormFeedbackProps = DivElement & {
|
|
41
|
+
isInvalid?: boolean;
|
|
42
|
+
isTooltip?: boolean;
|
|
43
|
+
isValid?: boolean;
|
|
44
|
+
};
|
|
45
|
+
export type FormFileInputProps = InputElement & {
|
|
46
|
+
isInvalid?: boolean;
|
|
47
|
+
isValid?: boolean;
|
|
48
|
+
sizing?: FormControlSize;
|
|
49
|
+
};
|
|
50
|
+
export type FormFloatingProps = DivElement;
|
|
51
|
+
export type FormHelperTextProps = DivElement;
|
|
52
|
+
export type FormHiddenInputProps = InputElement;
|
|
53
|
+
export type FormImageInputProps = InputElement;
|
|
54
|
+
export type FormInputGroupProps = DivElement & {
|
|
55
|
+
hasValidation?: boolean;
|
|
56
|
+
noWrap?: boolean;
|
|
57
|
+
sizing?: FormInputGroupSize;
|
|
58
|
+
};
|
|
59
|
+
export type FormInputGroupTextProps = (SpanElement | LabelElement) & {
|
|
60
|
+
elementType?: 'span' | 'label';
|
|
61
|
+
};
|
|
62
|
+
export type FormInputLabelProps = LabelElement & {
|
|
63
|
+
isFloating?: boolean;
|
|
64
|
+
};
|
|
65
|
+
export type FormMonthInputProps = InputElement & {
|
|
66
|
+
isInvalid?: boolean;
|
|
67
|
+
isPlaintext?: boolean;
|
|
68
|
+
isValid?: boolean;
|
|
69
|
+
sizing?: FormControlSize;
|
|
70
|
+
};
|
|
71
|
+
export type FormNumberInputProps = InputElement & {
|
|
72
|
+
isInvalid?: boolean;
|
|
73
|
+
isPlaintext?: boolean;
|
|
74
|
+
isValid?: boolean;
|
|
75
|
+
sizing?: FormControlSize;
|
|
76
|
+
};
|
|
77
|
+
export type FormPasswordInputProps = InputElement & {
|
|
78
|
+
autocomplete?: 'current-password' | 'new-password' | 'off' | 'on';
|
|
79
|
+
'data-form-type'?: string;
|
|
80
|
+
'data-lpignore'?: string;
|
|
81
|
+
isInvalid?: boolean;
|
|
82
|
+
isPlaintext?: boolean;
|
|
83
|
+
isValid?: boolean;
|
|
84
|
+
sizing?: FormControlSize;
|
|
85
|
+
showPassword?: boolean;
|
|
86
|
+
};
|
|
87
|
+
export type FormRadioInputProps = InputElement & {
|
|
88
|
+
isInvalid?: boolean;
|
|
89
|
+
isValid?: boolean;
|
|
90
|
+
};
|
|
91
|
+
export type FormRangeInputProps = InputElement;
|
|
92
|
+
export type FormRadioLabelProps = LabelElement;
|
|
93
|
+
export type FormRootProps = FormElement & {
|
|
94
|
+
enhance?: typeof enhance | ((el: HTMLFormElement, events?: any) => ReturnType<typeof enhance>);
|
|
95
|
+
needsValidation?: boolean;
|
|
96
|
+
wasValidated?: boolean;
|
|
97
|
+
};
|
|
98
|
+
export type FormSearchInputProps = InputElement & {
|
|
99
|
+
'data-form-type'?: string;
|
|
100
|
+
'data-lpignore'?: string;
|
|
101
|
+
isInvalid?: boolean;
|
|
102
|
+
isPlaintext?: boolean;
|
|
103
|
+
isValid?: boolean;
|
|
104
|
+
sizing?: FormControlSize;
|
|
105
|
+
};
|
|
106
|
+
export type FormSelectProps = SelectElement & {
|
|
107
|
+
isInvalid?: boolean;
|
|
108
|
+
isValid?: boolean;
|
|
109
|
+
sizing?: FormControlSize;
|
|
110
|
+
};
|
|
111
|
+
export type FormSwitchInputProps = InputElement & {
|
|
112
|
+
isInvalid?: boolean;
|
|
113
|
+
isValid?: boolean;
|
|
114
|
+
};
|
|
115
|
+
export type FormSwitchLabelProps = LabelElement;
|
|
116
|
+
export type FormTelephoneInputProps = InputElement & {
|
|
117
|
+
isInvalid?: boolean;
|
|
118
|
+
isPlaintext?: boolean;
|
|
119
|
+
isValid?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Optional input mask template (or list of templates) applied as the user types.
|
|
122
|
+
* Use `#` as the digit placeholder; any other character (`(`, `)`, `-`, `.`,
|
|
123
|
+
* space, `+`, etc.) is treated as a literal and inserted automatically. When
|
|
124
|
+
* provided as an array, the mask whose digit-slot count fits the typed digit
|
|
125
|
+
* count is chosen; the last mask in the array is used as the fallback when
|
|
126
|
+
* the user types more digits than any mask can hold.
|
|
127
|
+
*
|
|
128
|
+
* `mask` is independent of `pattern` — `pattern` is left untouched and
|
|
129
|
+
* continues to drive native browser validation only.
|
|
130
|
+
*
|
|
131
|
+
* @example "(###) ###-####"
|
|
132
|
+
* @example ["###-###-####", "(###) ###-####"]
|
|
133
|
+
*/
|
|
134
|
+
mask?: string | string[];
|
|
135
|
+
sizing?: FormControlSize;
|
|
136
|
+
};
|
|
137
|
+
export type FormTextAreaProps = TextAreaElement & {
|
|
138
|
+
isInvalid?: boolean;
|
|
139
|
+
isResizable?: boolean;
|
|
140
|
+
isValid?: boolean;
|
|
141
|
+
sizing?: FormControlSize;
|
|
142
|
+
};
|
|
143
|
+
export type FormTextInputProps = InputElement & {
|
|
144
|
+
'data-form-type'?: string;
|
|
145
|
+
'data-lpignore'?: string;
|
|
146
|
+
isInvalid?: boolean;
|
|
147
|
+
isPlaintext?: boolean;
|
|
148
|
+
isValid?: boolean;
|
|
149
|
+
sizing?: FormControlSize;
|
|
150
|
+
};
|
|
151
|
+
export type FormTimeInputProps = InputElement & {
|
|
152
|
+
isInvalid?: boolean;
|
|
153
|
+
isPlaintext?: boolean;
|
|
154
|
+
isValid?: boolean;
|
|
155
|
+
sizing?: FormControlSize;
|
|
156
|
+
};
|
|
157
|
+
export type FormUrlInputProps = InputElement & {
|
|
158
|
+
isInvalid?: boolean;
|
|
159
|
+
isPlaintext?: boolean;
|
|
160
|
+
isValid?: boolean;
|
|
161
|
+
sizing?: FormControlSize;
|
|
162
|
+
};
|
|
163
|
+
export type FormWeekInputProps = InputElement & {
|
|
164
|
+
isInvalid?: boolean;
|
|
165
|
+
isPlaintext?: boolean;
|
|
166
|
+
isValid?: boolean;
|
|
167
|
+
sizing?: FormControlSize;
|
|
168
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as ItemAction } from './list-group-item-action.svelte';
|
|
2
|
+
export { default as Item } from './list-group-item.svelte';
|
|
3
|
+
export { default as Root } from './list-group.svelte';
|
|
4
|
+
export type { ListGroupItemActionProps as ItemActionProps, ListGroupItemProps as ItemProps, ListGroupRootProps as RootProps } from './types.js';
|