@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,63 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.MonthInput
|
|
4
|
+
Bootstrap-styled month input component for selecting a specific month and year.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Default month input
|
|
9
|
+
<Form.MonthInput title="Choose a month" value="2025-06" />
|
|
10
|
+
|
|
11
|
+
// Disabled month input
|
|
12
|
+
<Form.MonthInput disabled title="Choose a month" value="2025-06" />
|
|
13
|
+
|
|
14
|
+
// Readonly month input
|
|
15
|
+
<Form.MonthInput readonly title="Choose a month" value="2025-06" />
|
|
16
|
+
|
|
17
|
+
// Readonly plaintext month input
|
|
18
|
+
<Form.MonthInput isPlaintext readonly title="Choose a month" value="2025-06" />
|
|
19
|
+
|
|
20
|
+
// Small sizing
|
|
21
|
+
<Form.MonthInput sizing="sm" title="Choose a month" value="2025-06" />
|
|
22
|
+
|
|
23
|
+
// Large sizing
|
|
24
|
+
<Form.MonthInput sizing="lg" title="Choose a month" value="2025-06" />
|
|
25
|
+
|
|
26
|
+
// With datalist
|
|
27
|
+
<Form.MonthInput list="listOfMonths" title="Choose a month" />
|
|
28
|
+
<datalist id="listOfMonths">
|
|
29
|
+
<option value="2025-01"></option>
|
|
30
|
+
<option value="2025-02"></option>
|
|
31
|
+
<option value="2025-03"></option>
|
|
32
|
+
<option value="2025-04"></option>
|
|
33
|
+
<option value="2025-05"></option>
|
|
34
|
+
<option value="2025-06"></option>
|
|
35
|
+
</datalist>
|
|
36
|
+
```
|
|
37
|
+
### Props
|
|
38
|
+
- `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
39
|
+
- `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
40
|
+
- `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
41
|
+
- `isPlaintext` (boolean): Optional. When true, renders as plaintext (no input border).
|
|
42
|
+
- `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
43
|
+
- `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
44
|
+
- `value` (string): Optional. The month value in the format "YYYY-MM". If undefined, the input is empty.
|
|
45
|
+
-->
|
|
46
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
47
|
+
let { class: classValues, elementRef = $bindable(null), isInvalid, isPlaintext = false, isValid, sizing, value = $bindable(undefined), ...restOfProps } = $props();
|
|
48
|
+
let classes = $derived(uniqueClsx({
|
|
49
|
+
'form-control': !isPlaintext,
|
|
50
|
+
'form-control-plaintext': isPlaintext,
|
|
51
|
+
[`form-control-${sizing}`]: !!sizing,
|
|
52
|
+
'is-valid': isValid,
|
|
53
|
+
'is-invalid': isInvalid
|
|
54
|
+
}, classValues));
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
<input
|
|
58
|
+
aria-invalid={isInvalid === true ? 'true' : isValid === true ? 'false' : undefined}
|
|
59
|
+
bind:this={elementRef}
|
|
60
|
+
bind:value
|
|
61
|
+
class={classes}
|
|
62
|
+
type="month"
|
|
63
|
+
{...restOfProps} />
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.MonthInput
|
|
4
|
+
* Bootstrap-styled month input component for selecting a specific month and year.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Default month input
|
|
9
|
+
* <Form.MonthInput title="Choose a month" value="2025-06" />
|
|
10
|
+
*
|
|
11
|
+
* // Disabled month input
|
|
12
|
+
* <Form.MonthInput disabled title="Choose a month" value="2025-06" />
|
|
13
|
+
*
|
|
14
|
+
* // Readonly month input
|
|
15
|
+
* <Form.MonthInput readonly title="Choose a month" value="2025-06" />
|
|
16
|
+
*
|
|
17
|
+
* // Readonly plaintext month input
|
|
18
|
+
* <Form.MonthInput isPlaintext readonly title="Choose a month" value="2025-06" />
|
|
19
|
+
*
|
|
20
|
+
* // Small sizing
|
|
21
|
+
* <Form.MonthInput sizing="sm" title="Choose a month" value="2025-06" />
|
|
22
|
+
*
|
|
23
|
+
* // Large sizing
|
|
24
|
+
* <Form.MonthInput sizing="lg" title="Choose a month" value="2025-06" />
|
|
25
|
+
*
|
|
26
|
+
* // With datalist
|
|
27
|
+
* <Form.MonthInput list="listOfMonths" title="Choose a month" />
|
|
28
|
+
* <datalist id="listOfMonths">
|
|
29
|
+
* <option value="2025-01"></option>
|
|
30
|
+
* <option value="2025-02"></option>
|
|
31
|
+
* <option value="2025-03"></option>
|
|
32
|
+
* <option value="2025-04"></option>
|
|
33
|
+
* <option value="2025-05"></option>
|
|
34
|
+
* <option value="2025-06"></option>
|
|
35
|
+
* </datalist>
|
|
36
|
+
* ```
|
|
37
|
+
* ### Props
|
|
38
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
39
|
+
* - `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
40
|
+
* - `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
41
|
+
* - `isPlaintext` (boolean): Optional. When true, renders as plaintext (no input border).
|
|
42
|
+
* - `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
43
|
+
* - `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
44
|
+
* - `value` (string): Optional. The month value in the format "YYYY-MM". If undefined, the input is empty.
|
|
45
|
+
*/
|
|
46
|
+
declare const FormMonthInput: import("svelte").Component<Form.MonthInputProps, {}, "value" | "elementRef">;
|
|
47
|
+
type FormMonthInput = ReturnType<typeof FormMonthInput>;
|
|
48
|
+
export default FormMonthInput;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.NumberInput
|
|
4
|
+
Bootstrap-styled numeric input component for entering numbers.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Default number input
|
|
9
|
+
<Form.NumberInput max="5" min="1" title="Set a number" value="1" />
|
|
10
|
+
|
|
11
|
+
// Disabled number input
|
|
12
|
+
<Form.NumberInput disabled max="5" min="1" title="Set a number" value="1" />
|
|
13
|
+
|
|
14
|
+
// Readonly number input
|
|
15
|
+
<Form.NumberInput max="5" min="1" readonly title="Set a number" value="1" />
|
|
16
|
+
|
|
17
|
+
// Readonly plaintext number input
|
|
18
|
+
<Form.NumberInput isPlaintext max="5" min="1" readonly title="Set a number" value="1" />
|
|
19
|
+
|
|
20
|
+
// Small sizing
|
|
21
|
+
<Form.NumberInput max="5" min="1" sizing="sm" title="Set a number" value="1" />
|
|
22
|
+
|
|
23
|
+
// Large sizing
|
|
24
|
+
<Form.NumberInput max="5" min="1" sizing="lg" title="Set a number" value="1" />
|
|
25
|
+
|
|
26
|
+
// With datalist
|
|
27
|
+
<Form.NumberInput list="listOfNumbers" max="5" min="1" title="Set a number" />
|
|
28
|
+
<datalist id="listOfNumbers">
|
|
29
|
+
<option value="1"></option>
|
|
30
|
+
<option value="2"></option>
|
|
31
|
+
<option value="3"></option>
|
|
32
|
+
<option value="4"></option>
|
|
33
|
+
<option value="5"></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` (number): Optional. The numeric value of the input. 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="number"
|
|
62
|
+
{...restOfProps} />
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.NumberInput
|
|
4
|
+
* Bootstrap-styled numeric input component for entering numbers.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Default number input
|
|
9
|
+
* <Form.NumberInput max="5" min="1" title="Set a number" value="1" />
|
|
10
|
+
*
|
|
11
|
+
* // Disabled number input
|
|
12
|
+
* <Form.NumberInput disabled max="5" min="1" title="Set a number" value="1" />
|
|
13
|
+
*
|
|
14
|
+
* // Readonly number input
|
|
15
|
+
* <Form.NumberInput max="5" min="1" readonly title="Set a number" value="1" />
|
|
16
|
+
*
|
|
17
|
+
* // Readonly plaintext number input
|
|
18
|
+
* <Form.NumberInput isPlaintext max="5" min="1" readonly title="Set a number" value="1" />
|
|
19
|
+
*
|
|
20
|
+
* // Small sizing
|
|
21
|
+
* <Form.NumberInput max="5" min="1" sizing="sm" title="Set a number" value="1" />
|
|
22
|
+
*
|
|
23
|
+
* // Large sizing
|
|
24
|
+
* <Form.NumberInput max="5" min="1" sizing="lg" title="Set a number" value="1" />
|
|
25
|
+
*
|
|
26
|
+
* // With datalist
|
|
27
|
+
* <Form.NumberInput list="listOfNumbers" max="5" min="1" title="Set a number" />
|
|
28
|
+
* <datalist id="listOfNumbers">
|
|
29
|
+
* <option value="1"></option>
|
|
30
|
+
* <option value="2"></option>
|
|
31
|
+
* <option value="3"></option>
|
|
32
|
+
* <option value="4"></option>
|
|
33
|
+
* <option value="5"></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` (number): Optional. The numeric value of the input. If undefined, the input is empty.
|
|
44
|
+
*/
|
|
45
|
+
declare const FormNumberInput: import("svelte").Component<Form.NumberInputProps, {}, "value" | "elementRef">;
|
|
46
|
+
type FormNumberInput = ReturnType<typeof FormNumberInput>;
|
|
47
|
+
export default FormNumberInput;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.PasswordInput
|
|
4
|
+
Bootstrap-styled password input component with support for various states.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Default password input
|
|
9
|
+
<Form.PasswordInput title="Set a password" value="myP@55w0rd" />
|
|
10
|
+
|
|
11
|
+
// Disabled password input
|
|
12
|
+
<Form.PasswordInput disabled title="Set a password" value="myP@55w0rd" />
|
|
13
|
+
|
|
14
|
+
// Readonly password input
|
|
15
|
+
<Form.PasswordInput readonly title="Set a password" value="myP@55w0rd" />
|
|
16
|
+
|
|
17
|
+
// Readonly plaintext password input
|
|
18
|
+
<Form.PasswordInput isPlaintext readonly title="Set a password" value="myP@55w0rd" />
|
|
19
|
+
|
|
20
|
+
// Small sizing
|
|
21
|
+
<Form.PasswordInput sizing="sm" title="Set a password" value="myP@55w0rd" />
|
|
22
|
+
|
|
23
|
+
// Large sizing
|
|
24
|
+
<Form.PasswordInput sizing="lg" title="Set a password" value="myP@55w0rd" />
|
|
25
|
+
|
|
26
|
+
// Show password as plain text
|
|
27
|
+
<Form.PasswordInput showPassword title="Set a password" value="myP@55w0rd" />
|
|
28
|
+
```
|
|
29
|
+
### Props
|
|
30
|
+
- `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
31
|
+
- `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
32
|
+
- `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
33
|
+
- `isPlaintext` (boolean): Optional. When true, renders as plaintext (no input border).
|
|
34
|
+
- `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
35
|
+
- `showPassword` (boolean): Optional. When true, shows the password as plain text instead of obscured characters.
|
|
36
|
+
- `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
37
|
+
- `value` (string): Optional. The password value. If undefined, the input is empty.
|
|
38
|
+
-->
|
|
39
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
40
|
+
let { autocomplete = 'off', class: classValues, 'data-form-type': dataFormType = 'password', 'data-lpignore': dataLpignore = undefined, elementRef = $bindable(null), isInvalid, isPlaintext = false, isValid, sizing, showPassword = false, value = $bindable(undefined), ...restOfProps } = $props();
|
|
41
|
+
let classes = $derived(uniqueClsx({
|
|
42
|
+
'form-control': !isPlaintext,
|
|
43
|
+
'form-control-plaintext': isPlaintext,
|
|
44
|
+
[`form-control-${sizing}`]: !!sizing,
|
|
45
|
+
'is-valid': isValid,
|
|
46
|
+
'is-invalid': isInvalid
|
|
47
|
+
}, classValues));
|
|
48
|
+
let inputType = $derived(showPassword ? 'text' : 'password');
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<input
|
|
52
|
+
aria-invalid={isInvalid === true ? 'true' : isValid === true ? 'false' : undefined}
|
|
53
|
+
{autocomplete}
|
|
54
|
+
bind:this={elementRef}
|
|
55
|
+
bind:value
|
|
56
|
+
class={classes}
|
|
57
|
+
data-form-type={autocomplete == 'off' ? 'other' : dataFormType}
|
|
58
|
+
data-lpignore={autocomplete == 'off' ? 'true' : dataLpignore}
|
|
59
|
+
type={inputType}
|
|
60
|
+
{...restOfProps} />
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.PasswordInput
|
|
4
|
+
* Bootstrap-styled password input component with support for various states.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Default password input
|
|
9
|
+
* <Form.PasswordInput title="Set a password" value="myP@55w0rd" />
|
|
10
|
+
*
|
|
11
|
+
* // Disabled password input
|
|
12
|
+
* <Form.PasswordInput disabled title="Set a password" value="myP@55w0rd" />
|
|
13
|
+
*
|
|
14
|
+
* // Readonly password input
|
|
15
|
+
* <Form.PasswordInput readonly title="Set a password" value="myP@55w0rd" />
|
|
16
|
+
*
|
|
17
|
+
* // Readonly plaintext password input
|
|
18
|
+
* <Form.PasswordInput isPlaintext readonly title="Set a password" value="myP@55w0rd" />
|
|
19
|
+
*
|
|
20
|
+
* // Small sizing
|
|
21
|
+
* <Form.PasswordInput sizing="sm" title="Set a password" value="myP@55w0rd" />
|
|
22
|
+
*
|
|
23
|
+
* // Large sizing
|
|
24
|
+
* <Form.PasswordInput sizing="lg" title="Set a password" value="myP@55w0rd" />
|
|
25
|
+
*
|
|
26
|
+
* // Show password as plain text
|
|
27
|
+
* <Form.PasswordInput showPassword title="Set a password" value="myP@55w0rd" />
|
|
28
|
+
* ```
|
|
29
|
+
* ### Props
|
|
30
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the input.
|
|
31
|
+
* - `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
32
|
+
* - `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
33
|
+
* - `isPlaintext` (boolean): Optional. When true, renders as plaintext (no input border).
|
|
34
|
+
* - `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
35
|
+
* - `showPassword` (boolean): Optional. When true, shows the password as plain text instead of obscured characters.
|
|
36
|
+
* - `sizing` ('sm' | 'lg'): Optional. Controls the size of the input element.
|
|
37
|
+
* - `value` (string): Optional. The password value. If undefined, the input is empty.
|
|
38
|
+
*/
|
|
39
|
+
declare const FormPasswordInput: import("svelte").Component<Form.PasswordInputProps, {}, "value" | "elementRef">;
|
|
40
|
+
type FormPasswordInput = ReturnType<typeof FormPasswordInput>;
|
|
41
|
+
export default FormPasswordInput;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.RadioInput
|
|
4
|
+
Bootstrap-styled radio input component for single selection options.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Default radio
|
|
9
|
+
<Form.Check>
|
|
10
|
+
<Form.RadioInput id="radioDefault" value="" />
|
|
11
|
+
<Form.RadioLabel for="radioDefault">Default radio</Form.RadioLabel>
|
|
12
|
+
</Form.Check>
|
|
13
|
+
|
|
14
|
+
// Checked radio
|
|
15
|
+
<Form.Check>
|
|
16
|
+
<Form.RadioInput checked id="radioChecked" value="" />
|
|
17
|
+
<Form.RadioLabel for="radioChecked">Checked radio</Form.RadioLabel>
|
|
18
|
+
</Form.Check>
|
|
19
|
+
|
|
20
|
+
// Disabled radio
|
|
21
|
+
<Form.Check>
|
|
22
|
+
<Form.RadioInput disabled id="radioDisabled" value="" />
|
|
23
|
+
<Form.RadioLabel for="radioDisabled">Disabled radio</Form.RadioLabel>
|
|
24
|
+
</Form.Check>
|
|
25
|
+
|
|
26
|
+
// Disabled checked radio
|
|
27
|
+
<Form.Check>
|
|
28
|
+
<Form.RadioInput checked disabled id="radioDisabledChecked" value="" />
|
|
29
|
+
<Form.RadioLabel for="radioDisabledChecked">Disabled checked radio</Form.RadioLabel>
|
|
30
|
+
</Form.Check>
|
|
31
|
+
```
|
|
32
|
+
### Props
|
|
33
|
+
- `class` (string): Optional. Additional CSS classes to apply to the radio.
|
|
34
|
+
- `elementRef` (HTMLInputElement): Optional. Reference to the radio DOM element.
|
|
35
|
+
- `group` (string): Optional. Name of the radio group to which this input belongs. If undefined, the radio input is not grouped.
|
|
36
|
+
- `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
37
|
+
- `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
38
|
+
-->
|
|
39
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
40
|
+
let { class: classValues, elementRef = $bindable(null), group = $bindable(undefined), isInvalid, isValid, ...restOfProps } = $props();
|
|
41
|
+
let classes = $derived(uniqueClsx('form-check-input', {
|
|
42
|
+
'is-valid': isValid,
|
|
43
|
+
'is-invalid': isInvalid
|
|
44
|
+
}, classValues));
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<input bind:this={elementRef} bind:group class={classes} type="radio" {...restOfProps} />
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Form } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Form.RadioInput
|
|
4
|
+
* Bootstrap-styled radio input component for single selection options.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* // Default radio
|
|
9
|
+
* <Form.Check>
|
|
10
|
+
* <Form.RadioInput id="radioDefault" value="" />
|
|
11
|
+
* <Form.RadioLabel for="radioDefault">Default radio</Form.RadioLabel>
|
|
12
|
+
* </Form.Check>
|
|
13
|
+
*
|
|
14
|
+
* // Checked radio
|
|
15
|
+
* <Form.Check>
|
|
16
|
+
* <Form.RadioInput checked id="radioChecked" value="" />
|
|
17
|
+
* <Form.RadioLabel for="radioChecked">Checked radio</Form.RadioLabel>
|
|
18
|
+
* </Form.Check>
|
|
19
|
+
*
|
|
20
|
+
* // Disabled radio
|
|
21
|
+
* <Form.Check>
|
|
22
|
+
* <Form.RadioInput disabled id="radioDisabled" value="" />
|
|
23
|
+
* <Form.RadioLabel for="radioDisabled">Disabled radio</Form.RadioLabel>
|
|
24
|
+
* </Form.Check>
|
|
25
|
+
*
|
|
26
|
+
* // Disabled checked radio
|
|
27
|
+
* <Form.Check>
|
|
28
|
+
* <Form.RadioInput checked disabled id="radioDisabledChecked" value="" />
|
|
29
|
+
* <Form.RadioLabel for="radioDisabledChecked">Disabled checked radio</Form.RadioLabel>
|
|
30
|
+
* </Form.Check>
|
|
31
|
+
* ```
|
|
32
|
+
* ### Props
|
|
33
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the radio.
|
|
34
|
+
* - `elementRef` (HTMLInputElement): Optional. Reference to the radio DOM element.
|
|
35
|
+
* - `group` (string): Optional. Name of the radio group to which this input belongs. If undefined, the radio input is not grouped.
|
|
36
|
+
* - `isInvalid` (boolean): Optional. Indicates whether the input is invalid. If undefined, no validation styles are applied.
|
|
37
|
+
* - `isValid` (boolean): Optional. Indicates whether the input is valid. If undefined, no validation styles are applied.
|
|
38
|
+
*/
|
|
39
|
+
declare const FormRadioInput: import("svelte").Component<Form.RadioInputProps, {}, "elementRef" | "group">;
|
|
40
|
+
type FormRadioInput = ReturnType<typeof FormRadioInput>;
|
|
41
|
+
export default FormRadioInput;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.RadioLabel
|
|
4
|
+
Bootstrap-styled label component specifically for radio inputs.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Radio with label
|
|
9
|
+
<Form.Check>
|
|
10
|
+
<Form.RadioInput id="radioExample" name="radioExample" value="option1" />
|
|
11
|
+
<Form.RadioLabel for="radioExample">Radio example</Form.RadioLabel>
|
|
12
|
+
</Form.Check>
|
|
13
|
+
|
|
14
|
+
// Radio group with labels
|
|
15
|
+
<div>
|
|
16
|
+
<Form.Check>
|
|
17
|
+
<Form.RadioInput id="radio1" name="radioGroup" value="option1" />
|
|
18
|
+
<Form.RadioLabel for="radio1">First radio</Form.RadioLabel>
|
|
19
|
+
</Form.Check>
|
|
20
|
+
<Form.Check>
|
|
21
|
+
<Form.RadioInput id="radio2" name="radioGroup" value="option2" />
|
|
22
|
+
<Form.RadioLabel for="radio2">Second radio</Form.RadioLabel>
|
|
23
|
+
</Form.Check>
|
|
24
|
+
<Form.Check>
|
|
25
|
+
<Form.RadioInput id="radio3" name="radioGroup" value="option3" />
|
|
26
|
+
<Form.RadioLabel for="radio3">Third radio</Form.RadioLabel>
|
|
27
|
+
</Form.Check>
|
|
28
|
+
</div>
|
|
29
|
+
```
|
|
30
|
+
### Props
|
|
31
|
+
- `class` (string): Optional. Additional CSS classes to apply to the label.
|
|
32
|
+
- `elementRef` (HTMLLabelElement): Optional. Reference to the label DOM element.
|
|
33
|
+
-->
|
|
34
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
35
|
+
let { children, class: classValues, elementRef = $bindable(null), ...restOfProps } = $props();
|
|
36
|
+
let classes = $derived(uniqueClsx('form-check-label', classValues));
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<label bind:this={elementRef} class={classes} {...restOfProps}>
|
|
40
|
+
{@render children?.()}
|
|
41
|
+
</label>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ## Form.RadioLabel
|
|
3
|
+
* Bootstrap-styled label component specifically for radio inputs.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```svelte
|
|
7
|
+
* // Radio with label
|
|
8
|
+
* <Form.Check>
|
|
9
|
+
* <Form.RadioInput id="radioExample" name="radioExample" value="option1" />
|
|
10
|
+
* <Form.RadioLabel for="radioExample">Radio example</Form.RadioLabel>
|
|
11
|
+
* </Form.Check>
|
|
12
|
+
*
|
|
13
|
+
* // Radio group with labels
|
|
14
|
+
* <div>
|
|
15
|
+
* <Form.Check>
|
|
16
|
+
* <Form.RadioInput id="radio1" name="radioGroup" value="option1" />
|
|
17
|
+
* <Form.RadioLabel for="radio1">First radio</Form.RadioLabel>
|
|
18
|
+
* </Form.Check>
|
|
19
|
+
* <Form.Check>
|
|
20
|
+
* <Form.RadioInput id="radio2" name="radioGroup" value="option2" />
|
|
21
|
+
* <Form.RadioLabel for="radio2">Second radio</Form.RadioLabel>
|
|
22
|
+
* </Form.Check>
|
|
23
|
+
* <Form.Check>
|
|
24
|
+
* <Form.RadioInput id="radio3" name="radioGroup" value="option3" />
|
|
25
|
+
* <Form.RadioLabel for="radio3">Third radio</Form.RadioLabel>
|
|
26
|
+
* </Form.Check>
|
|
27
|
+
* </div>
|
|
28
|
+
* ```
|
|
29
|
+
* ### Props
|
|
30
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the label.
|
|
31
|
+
* - `elementRef` (HTMLLabelElement): Optional. Reference to the label DOM element.
|
|
32
|
+
*/
|
|
33
|
+
declare const FormRadioLabel: import("svelte").Component<import("../index.js").LabelElement, {}, "elementRef">;
|
|
34
|
+
type FormRadioLabel = ReturnType<typeof FormRadioLabel>;
|
|
35
|
+
export default FormRadioLabel;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.RangeInput
|
|
4
|
+
Bootstrap-styled range slider input component for selecting a value within a range.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
<script>
|
|
9
|
+
import { Form } from '..';
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
// Default range input
|
|
13
|
+
<Form.RangeInput max="5" min="0" step="0.5" title="Set a number" value="1" />
|
|
14
|
+
|
|
15
|
+
// Disabled range input
|
|
16
|
+
<Form.RangeInput disabled max="5" min="0" step="0.5" title="Set a number" value="1" />
|
|
17
|
+
|
|
18
|
+
// With label and current value display
|
|
19
|
+
<Form.Group>
|
|
20
|
+
<Form.InputLabel for="customRange">Example range</Form.InputLabel>
|
|
21
|
+
<Form.RangeInput id="customRange" max="10" min="0" />
|
|
22
|
+
</Form.Group>
|
|
23
|
+
|
|
24
|
+
// With steps and ticks
|
|
25
|
+
<Form.Group>
|
|
26
|
+
<Form.InputLabel for="stepRange">Range with steps</Form.InputLabel>
|
|
27
|
+
<Form.RangeInput id="stepRange" max="5" min="0" step="1" />
|
|
28
|
+
<div class="d-flex justify-content-between">
|
|
29
|
+
<span>0</span><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span>
|
|
30
|
+
</div>
|
|
31
|
+
</Form.Group>
|
|
32
|
+
```
|
|
33
|
+
### Props
|
|
34
|
+
- `class` (string): Optional. Additional CSS classes to apply to the range input.
|
|
35
|
+
- `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
36
|
+
- `value` (number): Optional. The numeric value of the input. If undefined, the input is empty.
|
|
37
|
+
-->
|
|
38
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
39
|
+
let { class: classValues, elementRef = $bindable(null), value = $bindable(undefined), ...restOfProps } = $props();
|
|
40
|
+
let classes = $derived(uniqueClsx('form-range', classValues));
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<input bind:this={elementRef} bind:value class={classes} type="range" {...restOfProps} />
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ## Form.RangeInput
|
|
3
|
+
* Bootstrap-styled range slider input component for selecting a value within a range.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```svelte
|
|
7
|
+
* <script>
|
|
8
|
+
* import { Form } from '..';
|
|
9
|
+
* </script>
|
|
10
|
+
*
|
|
11
|
+
* // Default range input
|
|
12
|
+
* <Form.RangeInput max="5" min="0" step="0.5" title="Set a number" value="1" />
|
|
13
|
+
*
|
|
14
|
+
* // Disabled range input
|
|
15
|
+
* <Form.RangeInput disabled max="5" min="0" step="0.5" title="Set a number" value="1" />
|
|
16
|
+
*
|
|
17
|
+
* // With label and current value display
|
|
18
|
+
* <Form.Group>
|
|
19
|
+
* <Form.InputLabel for="customRange">Example range</Form.InputLabel>
|
|
20
|
+
* <Form.RangeInput id="customRange" max="10" min="0" />
|
|
21
|
+
* </Form.Group>
|
|
22
|
+
*
|
|
23
|
+
* // With steps and ticks
|
|
24
|
+
* <Form.Group>
|
|
25
|
+
* <Form.InputLabel for="stepRange">Range with steps</Form.InputLabel>
|
|
26
|
+
* <Form.RangeInput id="stepRange" max="5" min="0" step="1" />
|
|
27
|
+
* <div class="d-flex justify-content-between">
|
|
28
|
+
* <span>0</span><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span>
|
|
29
|
+
* </div>
|
|
30
|
+
* </Form.Group>
|
|
31
|
+
* ```
|
|
32
|
+
* ### Props
|
|
33
|
+
* - `class` (string): Optional. Additional CSS classes to apply to the range input.
|
|
34
|
+
* - `elementRef` (HTMLInputElement): Optional. Reference to the input DOM element.
|
|
35
|
+
* - `value` (number): Optional. The numeric value of the input. If undefined, the input is empty.
|
|
36
|
+
*/
|
|
37
|
+
declare const FormRangeInput: import("svelte").Component<import("../index.js").InputElement, {}, "value" | "elementRef">;
|
|
38
|
+
type FormRangeInput = ReturnType<typeof FormRangeInput>;
|
|
39
|
+
export default FormRangeInput;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
## Form.SearchInput
|
|
4
|
+
Bootstrap-styled search input component with search-specific features.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```svelte
|
|
8
|
+
// Default search input
|
|
9
|
+
<Form.SearchInput title="Set a search value" value="search value" />
|
|
10
|
+
|
|
11
|
+
// Disabled search input
|
|
12
|
+
<Form.SearchInput disabled title="Set a search value" value="search value" />
|
|
13
|
+
|
|
14
|
+
// Readonly search input
|
|
15
|
+
<Form.SearchInput readonly title="Set a search value" value="search value" />
|
|
16
|
+
|
|
17
|
+
// Readonly plaintext search input
|
|
18
|
+
<Form.SearchInput isPlaintext readonly title="Set a search value" value="search value" />
|
|
19
|
+
|
|
20
|
+
// Small sizing
|
|
21
|
+
<Form.SearchInput sizing="sm" title="Set a search value" value="search value" />
|
|
22
|
+
|
|
23
|
+
// Large sizing
|
|
24
|
+
<Form.SearchInput sizing="lg" title="Set a search value" value="search value" />
|
|
25
|
+
|
|
26
|
+
// With datalist
|
|
27
|
+
<Form.SearchInput list="listOfSearchValues" title="Set a search value" value="search value" />
|
|
28
|
+
<datalist id="listOfSearchValues">
|
|
29
|
+
<option value="search value 1"></option>
|
|
30
|
+
<option value="search value 2"></option>
|
|
31
|
+
<option value="search value 3"></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 search value. If undefined, the input is empty.
|
|
42
|
+
-->
|
|
43
|
+
<script lang="ts">import { uniqueClsx } from '../common/css.js';
|
|
44
|
+
let { autocomplete = 'off', class: classValues, 'data-form-type': dataFormType = 'search', 'data-lpignore': dataLpignore = undefined, 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
|
+
{autocomplete}
|
|
57
|
+
bind:this={elementRef}
|
|
58
|
+
bind:value
|
|
59
|
+
class={classes}
|
|
60
|
+
data-form-type={autocomplete == 'off' ? 'other' : dataFormType}
|
|
61
|
+
data-lpignore={autocomplete == 'off' ? 'true' : dataLpignore}
|
|
62
|
+
type="search"
|
|
63
|
+
{...restOfProps} />
|