@mintplayer/react-bootstrap 19.31.0 → 19.33.0
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/accordion/index.mjs +90 -65
- package/accordion/src/generated/BsAccordion.generated.d.ts +17 -0
- package/accordion/src/generated/BsAccordionTab.generated.d.ts +16 -0
- package/accordion/src/generated/accordion-tab.view.generated.d.ts +16 -0
- package/accordion/src/generated/accordion.view.generated.d.ts +14 -0
- package/accordion/src/generated/index.d.ts +2 -0
- package/accordion/src/index.d.ts +1 -2
- package/alert/index.mjs +54 -0
- package/alert/src/generated/BsAlert.generated.d.ts +17 -0
- package/alert/src/generated/alert.view.generated.d.ts +14 -0
- package/alert/src/generated/index.d.ts +1 -0
- package/alert/src/index.d.ts +1 -0
- package/badge/index.mjs +48 -0
- package/badge/src/generated/BsBadge.generated.d.ts +10 -0
- package/badge/src/generated/badge.view.generated.d.ts +15 -0
- package/badge/src/generated/index.d.ts +1 -0
- package/badge/src/index.d.ts +1 -0
- package/breadcrumb/index.mjs +81 -0
- package/breadcrumb/src/generated/BsBreadcrumb.generated.d.ts +8 -0
- package/breadcrumb/src/generated/BsBreadcrumbItem.generated.d.ts +8 -0
- package/breadcrumb/src/generated/breadcrumb-item.view.generated.d.ts +14 -0
- package/breadcrumb/src/generated/breadcrumb.view.generated.d.ts +14 -0
- package/breadcrumb/src/generated/index.d.ts +2 -0
- package/breadcrumb/src/index.d.ts +1 -0
- package/button-group/index.mjs +44 -0
- package/button-group/src/generated/BsButtonGroup.generated.d.ts +10 -0
- package/button-group/src/generated/button-group.view.generated.d.ts +14 -0
- package/button-group/src/generated/index.d.ts +1 -0
- package/button-group/src/index.d.ts +1 -0
- package/calendar/index.mjs +5 -4
- package/calendar/src/generated/BsCalendar.generated.d.ts +5 -5
- package/card/index.mjs +237 -106
- package/card/src/generated/BsCard.generated.d.ts +9 -0
- package/card/src/generated/BsCardBody.generated.d.ts +6 -0
- package/card/src/generated/BsCardFooter.generated.d.ts +8 -0
- package/card/src/generated/BsCardGroup.generated.d.ts +6 -0
- package/card/src/generated/BsCardHeader.generated.d.ts +8 -0
- package/card/src/generated/BsCardImg.generated.d.ts +10 -0
- package/card/src/generated/BsCardLink.generated.d.ts +8 -0
- package/card/src/generated/BsCardSubtitle.generated.d.ts +6 -0
- package/card/src/generated/BsCardText.generated.d.ts +6 -0
- package/card/src/generated/BsCardTitle.generated.d.ts +8 -0
- package/card/src/generated/card-img.view.generated.d.ts +14 -0
- package/card/src/generated/card-link.view.generated.d.ts +14 -0
- package/card/src/generated/card-part.view.generated.d.ts +14 -0
- package/card/src/generated/index.d.ts +10 -0
- package/card/src/index.d.ts +3 -10
- package/carousel/index.mjs +32 -29
- package/carousel/src/generated/BsCarousel.generated.d.ts +4 -4
- package/charts/hierarchy/index.mjs +48 -45
- package/charts/hierarchy/src/generated/BsHierarchyChart.generated.d.ts +4 -4
- package/charts/sparkline/index.mjs +58 -31
- package/charts/sparkline/src/generated/BsSparkline.generated.d.ts +20 -0
- package/charts/sparkline/src/generated/index.d.ts +1 -0
- package/charts/sparkline/src/generated/sparkline.view.generated.d.ts +14 -0
- package/charts/sparkline/src/index.d.ts +2 -1
- package/charts/trend/index.mjs +31 -32
- package/checkbox/index.mjs +149 -1
- package/checkbox/src/generated/BsCheckbox.generated.d.ts +28 -0
- package/checkbox/src/generated/BsCheckboxGroup.generated.d.ts +16 -0
- package/checkbox/src/generated/BsToggleButton.generated.d.ts +21 -0
- package/checkbox/src/generated/checkbox-group.view.generated.d.ts +14 -0
- package/checkbox/src/generated/checkbox.view.generated.d.ts +14 -0
- package/checkbox/src/generated/index.d.ts +3 -0
- package/checkbox/src/index.d.ts +1 -2
- package/chunks/{BsDatatable.generated-DqNW60JA.mjs → BsDatatable.generated-D1zmdG4J.mjs} +123 -106
- package/chunks/{BsDatetimePicker.generated-CxaiRt79.mjs → BsDatetimePicker.generated-DIuQcY1l.mjs} +53 -50
- package/chunks/{BsSplitterPanel.generated-C7r4Nedd.mjs → BsSplitterPanel.generated-C9jE6reT.mjs} +1 -2
- package/chunks/{BsTreeview.generated-djXBc8bl.mjs → BsTreeview.generated-GSdEEc7k.mjs} +18 -15
- package/close/index.mjs +46 -0
- package/close/src/generated/BsClose.generated.d.ts +9 -0
- package/close/src/generated/close.view.generated.d.ts +14 -0
- package/close/src/generated/index.d.ts +1 -0
- package/close/src/index.d.ts +1 -0
- package/code-snippet/index.mjs +1 -2
- package/color-picker/index.mjs +121 -0
- package/color-picker/src/generated/BsColorPicker.generated.d.ts +24 -0
- package/color-picker/src/generated/color-picker.view.generated.d.ts +14 -0
- package/color-picker/src/generated/index.d.ts +1 -0
- package/color-picker/src/index.d.ts +2 -0
- package/context-menu/index.mjs +65 -0
- package/context-menu/src/generated/BsContextMenuPanel.generated.d.ts +11 -0
- package/context-menu/src/generated/context-menu-panel.view.generated.d.ts +14 -0
- package/context-menu/src/generated/context-menu.directive.generated.d.ts +17 -0
- package/context-menu/src/generated/index.d.ts +2 -0
- package/context-menu/src/index.d.ts +1 -0
- package/datatable/index.mjs +1 -1
- package/datatable/src/generated/BsDatatable.generated.d.ts +16 -14
- package/datepicker/index.mjs +38 -35
- package/datepicker/src/generated/BsDatepicker.generated.d.ts +6 -6
- package/datetime-picker/index.mjs +1 -1
- package/datetime-picker/src/generated/BsDatetimePicker.generated.d.ts +4 -4
- package/dock/index.mjs +50 -47
- package/dock/src/generated/BsDockManager.generated.d.ts +4 -4
- package/dropdown/index.mjs +234 -0
- package/dropdown/src/generated/BsDropdownDivider.generated.d.ts +6 -0
- package/dropdown/src/generated/BsDropdownHeader.generated.d.ts +6 -0
- package/dropdown/src/generated/BsDropdownItem.generated.d.ts +11 -0
- package/dropdown/src/generated/BsDropdownMenu.generated.d.ts +22 -0
- package/dropdown/src/generated/BsDropdownPanel.generated.d.ts +15 -0
- package/dropdown/src/generated/dropdown-divider.view.generated.d.ts +14 -0
- package/dropdown/src/generated/dropdown-header.view.generated.d.ts +14 -0
- package/dropdown/src/generated/dropdown-item.view.generated.d.ts +14 -0
- package/dropdown/src/generated/dropdown-menu.view.generated.d.ts +19 -0
- package/dropdown/src/generated/dropdown-panel.view.generated.d.ts +14 -0
- package/dropdown/src/generated/dropdown.directive.generated.d.ts +19 -0
- package/dropdown/src/generated/index.d.ts +6 -0
- package/dropdown/src/index.d.ts +1 -0
- package/file-manager/index.mjs +28 -19
- package/file-manager/src/generated/BsFileManager.generated.d.ts +12 -12
- package/file-upload/index.mjs +125 -0
- package/file-upload/src/generated/BsFileUpload.generated.d.ts +32 -0
- package/file-upload/src/generated/file-upload.view.generated.d.ts +18 -0
- package/file-upload/src/generated/index.d.ts +1 -0
- package/file-upload/src/index.d.ts +3 -0
- package/floating-labels/index.mjs +40 -0
- package/floating-labels/src/generated/BsFloatingLabel.generated.d.ts +6 -0
- package/floating-labels/src/generated/floating-label.view.generated.d.ts +14 -0
- package/floating-labels/src/generated/index.d.ts +1 -0
- package/floating-labels/src/index.d.ts +1 -0
- package/form/index.mjs +84 -0
- package/form/src/generated/BsForm.generated.d.ts +14 -0
- package/form/src/generated/col-form-label.directive.generated.d.ts +6 -0
- package/form/src/generated/form-control.directive.generated.d.ts +6 -0
- package/form/src/generated/form.view.generated.d.ts +14 -0
- package/form/src/generated/index.d.ts +3 -0
- package/form/src/index.d.ts +1 -0
- package/grid/index.mjs +100 -0
- package/grid/src/generated/BsGrid.generated.d.ts +8 -0
- package/grid/src/generated/col.directive.generated.d.ts +6 -0
- package/grid/src/generated/column.directive.generated.d.ts +21 -0
- package/grid/src/generated/grid.view.generated.d.ts +14 -0
- package/grid/src/generated/index.d.ts +4 -0
- package/grid/src/generated/row.directive.generated.d.ts +6 -0
- package/grid/src/index.d.ts +1 -0
- package/input-group/index.mjs +40 -18
- package/input-group/src/generated/BsInputGroup.generated.d.ts +9 -0
- package/input-group/src/generated/index.d.ts +1 -0
- package/input-group/src/generated/input-group.view.generated.d.ts +14 -0
- package/input-group/src/index.d.ts +1 -1
- package/list-group/index.mjs +77 -0
- package/list-group/src/generated/BsListGroup.generated.d.ts +8 -0
- package/list-group/src/generated/BsListGroupItem.generated.d.ts +10 -0
- package/list-group/src/generated/index.d.ts +2 -0
- package/list-group/src/generated/list-group-item.view.generated.d.ts +14 -0
- package/list-group/src/generated/list-group.view.generated.d.ts +14 -0
- package/list-group/src/index.d.ts +1 -0
- package/machine/index.mjs +173 -67
- package/machine/src/body-portal.d.ts +17 -0
- package/machine/src/content.d.ts +11 -0
- package/machine/src/core.d.ts +3 -0
- package/machine/src/index.d.ts +2 -0
- package/machine/src/mark-links.d.ts +4 -4
- package/machine/src/merge-props.d.ts +18 -0
- package/machine/src/react-props.d.ts +4 -2
- package/marquee/index.mjs +55 -0
- package/marquee/src/generated/BsMarquee.generated.d.ts +10 -0
- package/marquee/src/generated/index.d.ts +1 -0
- package/marquee/src/generated/marquee.view.generated.d.ts +14 -0
- package/marquee/src/index.d.ts +1 -0
- package/modal/index.mjs +100 -0
- package/modal/src/generated/BsModal.generated.d.ts +23 -0
- package/modal/src/generated/index.d.ts +1 -0
- package/modal/src/generated/modal.view.generated.d.ts +17 -0
- package/modal/src/index.d.ts +2 -0
- package/multi-range/index.mjs +13 -10
- package/multi-range/src/generated/BsMultiRange.generated.d.ts +7 -7
- package/nav/index.mjs +11 -12
- package/navbar/index.mjs +86 -132
- package/navbar/src/generated/BsNavbar.generated.d.ts +3 -3
- package/navbar/src/generated/BsNavbarItem.generated.d.ts +1 -1
- package/navbar/src/generated/BsNavbarNav.generated.d.ts +4 -1
- package/navbar/src/generated/index.d.ts +0 -1
- package/navbar/src/index.d.ts +1 -1
- package/navbar-toggler/index.mjs +66 -0
- package/navbar-toggler/src/generated/BsNavbarToggler.generated.d.ts +16 -0
- package/navbar-toggler/src/generated/index.d.ts +1 -0
- package/navbar-toggler/src/generated/navbar-toggler.view.generated.d.ts +14 -0
- package/navbar-toggler/src/index.d.ts +1 -0
- package/offcanvas/index.mjs +83 -0
- package/offcanvas/src/generated/BsOffcanvas.generated.d.ts +24 -0
- package/offcanvas/src/generated/index.d.ts +1 -0
- package/offcanvas/src/generated/offcanvas.view.generated.d.ts +16 -0
- package/offcanvas/src/index.d.ts +2 -0
- package/otp-input/index.mjs +18 -15
- package/otp-input/src/generated/BsOtpInput.generated.d.ts +4 -4
- package/package.json +123 -11
- package/pagination/index.mjs +70 -48
- package/pagination/src/generated/BsPagination.generated.d.ts +22 -0
- package/pagination/src/generated/index.d.ts +1 -0
- package/pagination/src/generated/pagination.view.generated.d.ts +14 -0
- package/pagination/src/index.d.ts +2 -1
- package/parallax/index.mjs +46 -0
- package/parallax/src/generated/BsParallax.generated.d.ts +9 -0
- package/parallax/src/generated/index.d.ts +1 -0
- package/parallax/src/generated/parallax.view.generated.d.ts +14 -0
- package/parallax/src/index.d.ts +1 -0
- package/phone-input/index.mjs +28 -25
- package/phone-input/src/generated/BsPhoneInput.generated.d.ts +6 -6
- package/placeholder/index.mjs +47 -0
- package/placeholder/src/generated/BsPlaceholder.generated.d.ts +12 -0
- package/placeholder/src/generated/index.d.ts +1 -0
- package/placeholder/src/generated/placeholder.view.generated.d.ts +14 -0
- package/placeholder/src/index.d.ts +1 -0
- package/playlist-toggler/index.mjs +65 -0
- package/playlist-toggler/src/generated/BsPlaylistToggler.generated.d.ts +16 -0
- package/playlist-toggler/src/generated/index.d.ts +1 -0
- package/playlist-toggler/src/generated/playlist-toggler.view.generated.d.ts +14 -0
- package/playlist-toggler/src/index.d.ts +1 -0
- package/popover/index.mjs +85 -0
- package/popover/src/generated/BsPopoverPanel.generated.d.ts +15 -0
- package/popover/src/generated/index.d.ts +2 -0
- package/popover/src/generated/popover-panel.view.generated.d.ts +14 -0
- package/popover/src/generated/popover.directive.generated.d.ts +17 -0
- package/popover/src/index.d.ts +1 -0
- package/priority-nav/index.mjs +142 -0
- package/priority-nav/src/generated/BsPriorityNav.generated.d.ts +20 -0
- package/priority-nav/src/generated/index.d.ts +1 -0
- package/priority-nav/src/generated/priority-nav.view.generated.d.ts +21 -0
- package/priority-nav/src/index.d.ts +2 -0
- package/progress-bar/index.mjs +94 -0
- package/progress-bar/src/generated/BsProgress.generated.d.ts +13 -0
- package/progress-bar/src/generated/BsProgressBar.generated.d.ts +15 -0
- package/progress-bar/src/generated/index.d.ts +2 -0
- package/progress-bar/src/generated/progress-bar.view.generated.d.ts +14 -0
- package/progress-bar/src/generated/progress.view.generated.d.ts +14 -0
- package/progress-bar/src/index.d.ts +1 -0
- package/query-builder/index.mjs +121 -113
- package/query-builder/src/generated/BsQueryBuilder.generated.d.ts +10 -10
- package/radio/index.mjs +119 -1
- package/radio/src/generated/BsRadio.generated.d.ts +26 -0
- package/radio/src/generated/BsRadioGroup.generated.d.ts +17 -0
- package/radio/src/generated/index.d.ts +2 -0
- package/radio/src/generated/radio-group.view.generated.d.ts +14 -0
- package/radio/src/generated/radio.view.generated.d.ts +14 -0
- package/radio/src/index.d.ts +1 -1
- package/range/index.mjs +58 -0
- package/range/src/generated/BsRange.generated.d.ts +15 -0
- package/range/src/generated/index.d.ts +1 -0
- package/range/src/generated/range.view.generated.d.ts +14 -0
- package/range/src/index.d.ts +1 -0
- package/rating/index.mjs +67 -0
- package/rating/src/generated/BsRating.generated.d.ts +20 -0
- package/rating/src/generated/index.d.ts +1 -0
- package/rating/src/generated/rating.view.generated.d.ts +14 -0
- package/rating/src/index.d.ts +1 -0
- package/resizable/index.mjs +56 -0
- package/resizable/src/generated/BsResizable.generated.d.ts +19 -0
- package/resizable/src/generated/index.d.ts +1 -0
- package/resizable/src/generated/resizable.view.generated.d.ts +14 -0
- package/resizable/src/index.d.ts +2 -0
- package/ribbon/index.mjs +170 -150
- package/ribbon/src/generated/BsRibbon.generated.d.ts +6 -6
- package/ribbon/src/generated/BsRibbonCheckBox.generated.d.ts +3 -3
- package/ribbon/src/generated/BsRibbonColorPicker.generated.d.ts +3 -3
- package/ribbon/src/generated/BsRibbonComboBox.generated.d.ts +3 -3
- package/ribbon/src/generated/BsRibbonGroupButton.generated.d.ts +3 -3
- package/ribbon/src/generated/BsRibbonMenuItem.generated.d.ts +4 -4
- package/ribbon/src/generated/BsRibbonToggleButton.generated.d.ts +3 -3
- package/scheduler/index.mjs +246 -226
- package/scheduler/src/generated/BsScheduler.generated.d.ts +9 -9
- package/scrollspy/index.mjs +63 -0
- package/scrollspy/src/generated/BsScrollspy.generated.d.ts +17 -0
- package/scrollspy/src/generated/index.d.ts +1 -0
- package/scrollspy/src/generated/scrollspy.view.generated.d.ts +14 -0
- package/scrollspy/src/index.d.ts +1 -0
- package/select/index.mjs +30 -29
- package/select/src/generated/BsSelect.generated.d.ts +6 -4
- package/shell/index.mjs +78 -70
- package/shell/src/generated/BsShell.generated.d.ts +25 -0
- package/shell/src/generated/index.d.ts +1 -0
- package/shell/src/generated/shell.view.generated.d.ts +17 -0
- package/shell/src/index.d.ts +2 -3
- package/signature-pad/index.mjs +12 -11
- package/signature-pad/src/generated/BsSignaturePad.generated.d.ts +3 -3
- package/spinner/index.mjs +1 -2
- package/splitter/index.mjs +1 -1
- package/sticky-footer/index.mjs +60 -0
- package/sticky-footer/src/generated/BsStickyFooter.generated.d.ts +6 -0
- package/sticky-footer/src/generated/index.d.ts +2 -0
- package/sticky-footer/src/generated/sticky-footer-parent.directive.generated.d.ts +6 -0
- package/sticky-footer/src/generated/sticky-footer.view.generated.d.ts +14 -0
- package/sticky-footer/src/index.d.ts +1 -0
- package/tab-control/index.mjs +108 -86
- package/tab-control/src/generated/BsTabControl.generated.d.ts +20 -0
- package/tab-control/src/generated/BsTabPage.generated.d.ts +15 -0
- package/tab-control/src/generated/index.d.ts +2 -0
- package/tab-control/src/generated/tab-control.view.generated.d.ts +16 -0
- package/tab-control/src/index.d.ts +2 -1
- package/table/index.mjs +49 -0
- package/table/src/generated/BsTable.generated.d.ts +14 -0
- package/table/src/generated/index.d.ts +1 -0
- package/table/src/generated/table.view.generated.d.ts +14 -0
- package/table/src/index.d.ts +1 -0
- package/theming/index.mjs +1 -2
- package/tile-manager/index.mjs +103 -187
- package/tile-manager/src/generated/BsTileManager.generated.d.ts +41 -0
- package/tile-manager/src/generated/index.d.ts +1 -0
- package/tile-manager/src/generated/tile-manager.view.generated.d.ts +21 -0
- package/tile-manager/src/index.d.ts +2 -3
- package/timeline/index.mjs +29 -26
- package/timeline/src/generated/BsTimeline.generated.d.ts +3 -3
- package/timepicker/index.mjs +35 -30
- package/timepicker/src/generated/BsTimeList.generated.d.ts +3 -3
- package/timepicker/src/generated/BsTimepicker.generated.d.ts +4 -4
- package/toast/index.mjs +162 -0
- package/toast/src/generated/BsToast.generated.d.ts +14 -0
- package/toast/src/generated/BsToastBody.generated.d.ts +6 -0
- package/toast/src/generated/BsToastHeader.generated.d.ts +9 -0
- package/toast/src/generated/BsToaster.generated.d.ts +15 -0
- package/toast/src/generated/index.d.ts +4 -0
- package/toast/src/generated/toast-body.view.generated.d.ts +14 -0
- package/toast/src/generated/toast-header.view.generated.d.ts +15 -0
- package/toast/src/generated/toast.view.generated.d.ts +14 -0
- package/toast/src/generated/toaster.view.generated.d.ts +18 -0
- package/toast/src/index.d.ts +1 -0
- package/tooltip/index.mjs +72 -0
- package/tooltip/src/generated/BsTooltipPanel.generated.d.ts +12 -0
- package/tooltip/src/generated/index.d.ts +2 -0
- package/tooltip/src/generated/tooltip-panel.view.generated.d.ts +14 -0
- package/tooltip/src/generated/tooltip.directive.generated.d.ts +15 -0
- package/tooltip/src/index.d.ts +1 -0
- package/tree-select/index.mjs +31 -22
- package/tree-select/src/generated/BsTreeSelect.generated.d.ts +4 -4
- package/treeview/index.mjs +1 -1
- package/treeview/src/generated/BsTreeview.generated.d.ts +6 -6
- package/typeahead/index.mjs +93 -113
- package/typeahead/src/generated/BsTypeahead.generated.d.ts +40 -0
- package/typeahead/src/generated/index.d.ts +1 -0
- package/typeahead/src/generated/typeahead.view.generated.d.ts +19 -0
- package/typeahead/src/index.d.ts +2 -3
- package/accordion/src/BsAccordion.d.ts +0 -43
- package/card/src/BsCard.d.ts +0 -17
- package/card/src/BsCardBody.d.ts +0 -7
- package/card/src/BsCardFooter.d.ts +0 -14
- package/card/src/BsCardGroup.d.ts +0 -9
- package/card/src/BsCardHeader.d.ts +0 -16
- package/card/src/BsCardImg.d.ts +0 -19
- package/card/src/BsCardLink.d.ts +0 -13
- package/card/src/BsCardSubtitle.d.ts +0 -8
- package/card/src/BsCardText.d.ts +0 -7
- package/card/src/BsCardTitle.d.ts +0 -7
- package/charts/sparkline/src/BsSparkline.d.ts +0 -21
- package/checkbox/src/BsCheckbox.d.ts +0 -31
- package/chunks/BsCheckbox-BZkPJ13E.mjs +0 -66
- package/chunks/BsRadio-Bw_MhAOq.mjs +0 -57
- package/chunks/react-props-C2O2_2V2.mjs +0 -33
- package/chunks/useMachine-CpK1VckL.mjs +0 -12
- package/dropdown-menu/index.mjs +0 -72
- package/dropdown-menu/src/BsDropdownDivider.d.ts +0 -7
- package/dropdown-menu/src/BsDropdownHeader.d.ts +0 -7
- package/dropdown-menu/src/BsDropdownItem.d.ts +0 -18
- package/dropdown-menu/src/BsDropdownMenu.d.ts +0 -25
- package/dropdown-menu/src/index.d.ts +0 -7
- package/input-group/src/BsInputGroup.d.ts +0 -17
- package/navbar/src/generated/BsNavbarDropdown.generated.d.ts +0 -11
- package/navbar/src/generated/navbar-dropdown.view.generated.d.ts +0 -17
- package/pagination/src/BsPagination.d.ts +0 -25
- package/radio/src/BsRadio.d.ts +0 -39
- package/radio-group/index.mjs +0 -39
- package/radio-group/src/BsRadioGroup.d.ts +0 -21
- package/radio-group/src/index.d.ts +0 -1
- package/shell/src/BsShell.d.ts +0 -45
- package/tab-control/src/BsTabControl.d.ts +0 -43
- package/tile-manager/src/BsTileManager.d.ts +0 -78
- package/toggle-button/index.mjs +0 -13
- package/toggle-button/src/BsToggleButton.d.ts +0 -8
- package/toggle-button/src/index.d.ts +0 -1
- package/typeahead/src/BsTypeahead.d.ts +0 -48
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { reactFormProps as e, reactProps as t, reactStyle as n, useCore as r } from "../machine/index.mjs";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { forwardRef as a, useImperativeHandle as o, useRef as s } from "react";
|
|
4
|
+
import { installLightStyles as c } from "@mintplayer/ui-core/scoped-styles";
|
|
5
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
|
+
import { fileUploadCore as f, fileUploadScopedStyles as p, formatBytes as m } from "@mintplayer/ui-core/file-upload";
|
|
7
|
+
import { bootstrapProgress as h } from "@mintplayer/ui-core/bootstrap/progress";
|
|
8
|
+
import { bootstrapListGroup as g } from "@mintplayer/ui-core/bootstrap/list-group";
|
|
9
|
+
//#region libs/mintplayer-react-bootstrap/file-upload/src/generated/file-upload.view.generated.tsx
|
|
10
|
+
function _(e, t) {
|
|
11
|
+
return typeof e == "function" ? e(t) : e;
|
|
12
|
+
}
|
|
13
|
+
function v({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
|
|
14
|
+
return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
|
|
15
|
+
"data-mps": "file-upload",
|
|
16
|
+
...t(r.root),
|
|
17
|
+
ref: f,
|
|
18
|
+
className: [r.root.class, s].filter(Boolean).join(" ") || void 0,
|
|
19
|
+
children: [/* @__PURE__ */ d("div", {
|
|
20
|
+
"data-mps": "file-upload",
|
|
21
|
+
...t(r.zone),
|
|
22
|
+
...c,
|
|
23
|
+
role: r.zone.role ?? c?.role,
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ u("input", {
|
|
26
|
+
"data-mps": "file-upload",
|
|
27
|
+
...e(r.input)
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ u("span", {
|
|
30
|
+
"data-mps": "file-upload",
|
|
31
|
+
...t(r.caption),
|
|
32
|
+
children: r.dropFilesCaption
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ u("label", {
|
|
35
|
+
"data-mps": "file-upload",
|
|
36
|
+
...t(r.browse),
|
|
37
|
+
children: r.browseFilesCaption
|
|
38
|
+
})
|
|
39
|
+
]
|
|
40
|
+
}), /* @__PURE__ */ u("ul", {
|
|
41
|
+
"data-mps": "file-upload",
|
|
42
|
+
...t(r.list),
|
|
43
|
+
children: r.rows.map((e, r) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u("li", {
|
|
44
|
+
"data-mps": "file-upload",
|
|
45
|
+
...t(e.item),
|
|
46
|
+
children: a.fileTemplate === void 0 ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
|
|
47
|
+
"data-mps": "file-upload",
|
|
48
|
+
className: "file-upload-row d-flex flex-row",
|
|
49
|
+
children: [/* @__PURE__ */ u("div", {
|
|
50
|
+
"data-mps": "file-upload",
|
|
51
|
+
className: "file-upload-icon",
|
|
52
|
+
"aria-hidden": "true"
|
|
53
|
+
}), /* @__PURE__ */ d("div", {
|
|
54
|
+
"data-mps": "file-upload",
|
|
55
|
+
className: "flex-grow-1 text-start px-2",
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ u("span", {
|
|
58
|
+
"data-mps": "file-upload",
|
|
59
|
+
className: "d-block text-truncate text-secondary",
|
|
60
|
+
children: e.name
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ u("span", {
|
|
63
|
+
"data-mps": "file-upload",
|
|
64
|
+
className: "d-block text-body-secondary mb-0",
|
|
65
|
+
children: e.size
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ u("div", {
|
|
68
|
+
"data-mps": "file-upload",
|
|
69
|
+
...t(e.progress),
|
|
70
|
+
children: /* @__PURE__ */ u("div", {
|
|
71
|
+
"data-mps": "file-upload",
|
|
72
|
+
...t(e.bar),
|
|
73
|
+
style: n(e.barStyle)
|
|
74
|
+
})
|
|
75
|
+
})
|
|
76
|
+
]
|
|
77
|
+
})]
|
|
78
|
+
}) }) : _(a.fileTemplate, { upload: e.upload })
|
|
79
|
+
}) }, e.key))
|
|
80
|
+
})]
|
|
81
|
+
}) });
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region libs/mintplayer-react-bootstrap/file-upload/src/generated/BsFileUpload.generated.tsx
|
|
85
|
+
var y = [], b = a(function({ files: e = y, name: t = null, accept: n = null, multiple: i = !0, disabled: a = !1, dropFilesCaption: l = "Drop your files here", browseFilesCaption: d = "Browse for files", label: m = "File upload drop zone", inputLabel: _ = "Choose files to upload", fileAddedAnnouncement: b = (e) => `Added ${e}`, filesAddedAnnouncement: x = (e) => `Added ${e} files`, progressLabel: S = (e) => `Upload progress for ${e}`, formatSize: C = null, onFilesDropped: w, onFilesChange: T, fileTemplate: E, className: D, children: O, ...k }, A) {
|
|
86
|
+
c(h.key, h.css, { order: h.order }), c(g.key, g.css, { order: g.order }), c("file-upload", p);
|
|
87
|
+
let j = s(null);
|
|
88
|
+
o(A, () => j.current);
|
|
89
|
+
let M = r(f, {
|
|
90
|
+
files: e,
|
|
91
|
+
name: t,
|
|
92
|
+
accept: n,
|
|
93
|
+
multiple: i,
|
|
94
|
+
disabled: a,
|
|
95
|
+
dropFilesCaption: l,
|
|
96
|
+
browseFilesCaption: d,
|
|
97
|
+
label: m,
|
|
98
|
+
inputLabel: _,
|
|
99
|
+
fileAddedAnnouncement: b,
|
|
100
|
+
filesAddedAnnouncement: x,
|
|
101
|
+
progressLabel: S,
|
|
102
|
+
formatSize: C
|
|
103
|
+
}, {
|
|
104
|
+
idPrefix: "bs-file-upload",
|
|
105
|
+
label: k["aria-label"],
|
|
106
|
+
rootRef: j,
|
|
107
|
+
emit: (e, t) => {
|
|
108
|
+
e === "filesDropped" && w?.(t);
|
|
109
|
+
},
|
|
110
|
+
models: ["files"],
|
|
111
|
+
writeModel: (e, t) => {
|
|
112
|
+
e === "files" && T?.(t);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
return /* @__PURE__ */ u(v, {
|
|
116
|
+
...M.props,
|
|
117
|
+
slots: { fileTemplate: E },
|
|
118
|
+
className: D,
|
|
119
|
+
attrs: k,
|
|
120
|
+
rootRef: j,
|
|
121
|
+
children: O
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
//#endregion
|
|
125
|
+
export { b as BsFileUpload, m as formatBytes };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FileUpload, fileUploadCore, FileUploadInputs } from '@mintplayer/ui-core/file-upload';
|
|
2
|
+
import { FileUploadTemplateProps } from './file-upload.view.generated';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface BsFileUploadProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'files' | 'name' | 'accept' | 'multiple' | 'disabled' | 'dropFilesCaption' | 'browseFilesCaption' | 'label' | 'inputLabel' | 'fileAddedAnnouncement' | 'filesAddedAnnouncement' | 'progressLabel' | 'formatSize' | 'onFilesDropped' | 'onFilesChange' | 'fileTemplate'> {
|
|
5
|
+
files?: FileUploadInputs['files'];
|
|
6
|
+
name?: FileUploadInputs['name'];
|
|
7
|
+
accept?: FileUploadInputs['accept'];
|
|
8
|
+
multiple?: FileUploadInputs['multiple'];
|
|
9
|
+
disabled?: FileUploadInputs['disabled'];
|
|
10
|
+
dropFilesCaption?: FileUploadInputs['dropFilesCaption'];
|
|
11
|
+
browseFilesCaption?: FileUploadInputs['browseFilesCaption'];
|
|
12
|
+
label?: FileUploadInputs['label'];
|
|
13
|
+
inputLabel?: FileUploadInputs['inputLabel'];
|
|
14
|
+
fileAddedAnnouncement?: FileUploadInputs['fileAddedAnnouncement'];
|
|
15
|
+
filesAddedAnnouncement?: FileUploadInputs['filesAddedAnnouncement'];
|
|
16
|
+
progressLabel?: FileUploadInputs['progressLabel'];
|
|
17
|
+
formatSize?: FileUploadInputs['formatSize'];
|
|
18
|
+
/** Files were chosen or dropped: the batch just added. */
|
|
19
|
+
onFilesDropped?: (detail: FileUpload[]) => void;
|
|
20
|
+
/** `files` changed from inside (two-way: pass the value back as `files`). */
|
|
21
|
+
onFilesChange?: (value: ReturnType<NonNullable<(typeof fileUploadCore)['state']>>['files']) => void;
|
|
22
|
+
fileTemplate?: NonNullable<FileUploadTemplateProps['slots']>['fileTemplate'];
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A file drop zone over a native file input, with the list of files added. Drop files on it, click
|
|
27
|
+
* it or use the browse button; each batch is added to the two-way `files` list, emitted as
|
|
28
|
+
* `filesDropped` and announced. Rows show the name, size and a progress bar the consumer updates;
|
|
29
|
+
* the `fileTemplate` slot replaces a row. With `name` the input submits its files with a form, no
|
|
30
|
+
* JavaScript needed.
|
|
31
|
+
*/
|
|
32
|
+
export declare const BsFileUpload: React.ForwardRefExoticComponent<BsFileUploadProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FileUpload, FileUploadView } from '@mintplayer/ui-core/file-upload';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type FileUploadTemplateProps = {
|
|
4
|
+
view: FileUploadView;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {
|
|
7
|
+
fileTemplate?: React.ReactNode | ((args: {
|
|
8
|
+
upload: FileUpload;
|
|
9
|
+
}) => React.ReactNode);
|
|
10
|
+
};
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
/** Merged onto the root element after the bag. */
|
|
13
|
+
className?: string;
|
|
14
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
15
|
+
attrs?: Record<string, unknown>;
|
|
16
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
|
|
17
|
+
};
|
|
18
|
+
export declare function FileUploadTemplate({ view, slots, children, className, attrs, rootRef }: FileUploadTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsFileUpload, type BsFileUploadProps } from './BsFileUpload.generated';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { reactProps as e, useCore as t } from "../machine/index.mjs";
|
|
2
|
+
import { forwardRef as n, useImperativeHandle as r, useRef as i } from "react";
|
|
3
|
+
import { installLightStyles as a } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { Fragment as o, jsx as s } from "react/jsx-runtime";
|
|
5
|
+
import { bootstrapForms as c } from "@mintplayer/ui-core/bootstrap/forms";
|
|
6
|
+
import { floatingLabelCore as l, floatingLabelsScopedStyles as u } from "@mintplayer/ui-core/floating-labels";
|
|
7
|
+
//#region libs/mintplayer-react-bootstrap/floating-labels/src/generated/floating-label.view.generated.tsx
|
|
8
|
+
function d({ root: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: c }) {
|
|
9
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
10
|
+
"data-mps": "floating-labels",
|
|
11
|
+
...e(t),
|
|
12
|
+
ref: c,
|
|
13
|
+
...a,
|
|
14
|
+
role: t.role ?? a?.role,
|
|
15
|
+
className: [t.class, i].filter(Boolean).join(" ") || void 0,
|
|
16
|
+
children: r ?? null
|
|
17
|
+
}) });
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region libs/mintplayer-react-bootstrap/floating-labels/src/generated/BsFloatingLabel.generated.tsx
|
|
21
|
+
var f = n(function({ className: e, children: n, ...o }, f) {
|
|
22
|
+
a(c.key, c.css, { order: c.order }), a("floating-labels", u);
|
|
23
|
+
let p = i(null);
|
|
24
|
+
r(f, () => p.current);
|
|
25
|
+
let m = t(l, {}, {
|
|
26
|
+
idPrefix: "bs-floating-label",
|
|
27
|
+
label: o["aria-label"],
|
|
28
|
+
rootRef: p,
|
|
29
|
+
emit: () => void 0
|
|
30
|
+
});
|
|
31
|
+
return /* @__PURE__ */ s(d, {
|
|
32
|
+
...m.props,
|
|
33
|
+
className: e,
|
|
34
|
+
attrs: o,
|
|
35
|
+
rootRef: p,
|
|
36
|
+
children: n
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
export { f as BsFloatingLabel };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface BsFloatingLabelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, never> {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/** Bootstrap's `.form-floating` around a control and then its `<label>`; a label without `for` is associated with the control. */
|
|
6
|
+
export declare const BsFloatingLabel: React.ForwardRefExoticComponent<BsFloatingLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CoreBag } from '@mintplayer/ui-core/component';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type FloatingLabelTemplateProps = {
|
|
4
|
+
root: CoreBag;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Merged onto the root element after the bag. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
11
|
+
attrs?: Record<string, unknown>;
|
|
12
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
|
|
13
|
+
};
|
|
14
|
+
export declare function FloatingLabelTemplate({ root, slots, children, className, attrs, rootRef }: FloatingLabelTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsFloatingLabel, type BsFloatingLabelProps } from './BsFloatingLabel.generated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|
package/form/index.mjs
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { reactProps as e, useCore as t } from "../machine/index.mjs";
|
|
2
|
+
import { forwardRef as n, useImperativeHandle as r, useRef as i, useState as a } from "react";
|
|
3
|
+
import { installLightStyles as o } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { Fragment as s, jsx as c } from "react/jsx-runtime";
|
|
5
|
+
import { bootstrapForms as l } from "@mintplayer/ui-core/bootstrap/forms";
|
|
6
|
+
import { colFormLabelCore as u, formControlCore as d, formCore as f, formScopedStyles as p } from "@mintplayer/ui-core/form";
|
|
7
|
+
//#region libs/mintplayer-react-bootstrap/form/src/generated/form.view.generated.tsx
|
|
8
|
+
function m({ view: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: o }) {
|
|
9
|
+
return /* @__PURE__ */ c(s, { children: /* @__PURE__ */ c("div", {
|
|
10
|
+
"data-mps": "form",
|
|
11
|
+
...e(t.root),
|
|
12
|
+
ref: o,
|
|
13
|
+
className: [t.root.class, i].filter(Boolean).join(" ") || void 0,
|
|
14
|
+
children: /* @__PURE__ */ c("form", {
|
|
15
|
+
"data-mps": "form",
|
|
16
|
+
...e(t.form),
|
|
17
|
+
action: t.action,
|
|
18
|
+
...a,
|
|
19
|
+
role: t.form.role ?? a?.role,
|
|
20
|
+
children: r ?? null
|
|
21
|
+
})
|
|
22
|
+
}) });
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region libs/mintplayer-react-bootstrap/form/src/generated/BsForm.generated.tsx
|
|
26
|
+
var h = n(function({ action: e = null, method: n = null, onSubmitted: a, className: s, children: u, ...d }, h) {
|
|
27
|
+
o(l.key, l.css, { order: l.order }), o("form", p);
|
|
28
|
+
let g = i(null);
|
|
29
|
+
r(h, () => g.current);
|
|
30
|
+
let _ = t(f, {
|
|
31
|
+
action: e,
|
|
32
|
+
method: n
|
|
33
|
+
}, {
|
|
34
|
+
idPrefix: "bs-form",
|
|
35
|
+
label: d["aria-label"],
|
|
36
|
+
rootRef: g,
|
|
37
|
+
emit: (e, t) => {
|
|
38
|
+
e === "submitted" && a?.(t);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return /* @__PURE__ */ c(m, {
|
|
42
|
+
..._.props,
|
|
43
|
+
className: s,
|
|
44
|
+
attrs: d,
|
|
45
|
+
rootRef: g,
|
|
46
|
+
children: u
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region libs/mintplayer-react-bootstrap/form/src/generated/form-control.directive.generated.ts
|
|
51
|
+
function g(n = {}) {
|
|
52
|
+
o(l.key, l.css, { order: l.order }), o("form", p);
|
|
53
|
+
let r = i(null), [s] = a(() => (e) => void (r.current = e)), c = t(d, {}, {
|
|
54
|
+
idPrefix: "bs-form-control",
|
|
55
|
+
rootRef: r,
|
|
56
|
+
emit: () => void 0
|
|
57
|
+
});
|
|
58
|
+
return {
|
|
59
|
+
...e({
|
|
60
|
+
...c.props,
|
|
61
|
+
"data-mps": "form"
|
|
62
|
+
}),
|
|
63
|
+
ref: s
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region libs/mintplayer-react-bootstrap/form/src/generated/col-form-label.directive.generated.ts
|
|
68
|
+
function _(n = {}) {
|
|
69
|
+
o(l.key, l.css, { order: l.order }), o("form", p);
|
|
70
|
+
let r = i(null), [s] = a(() => (e) => void (r.current = e)), c = t(u, {}, {
|
|
71
|
+
idPrefix: "bs-col-form-label",
|
|
72
|
+
rootRef: r,
|
|
73
|
+
emit: () => void 0
|
|
74
|
+
});
|
|
75
|
+
return {
|
|
76
|
+
...e({
|
|
77
|
+
...c.props,
|
|
78
|
+
"data-mps": "form"
|
|
79
|
+
}),
|
|
80
|
+
ref: s
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
export { h as BsForm, _ as useBsColFormLabel, g as useBsFormControl };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormInputs, FormSubmitEvent } from '@mintplayer/ui-core/form';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsFormProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['form']>, 'action' | 'method' | 'onSubmitted'> {
|
|
4
|
+
action?: FormInputs['action'];
|
|
5
|
+
method?: FormInputs['method'];
|
|
6
|
+
/** The form was submitted. */
|
|
7
|
+
onSubmitted?: (detail: FormSubmitEvent) => void;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A real `<form>` that anchors Bootstrap's forms part for everything inside it. `submitted` reports a submit;
|
|
12
|
+
* without an `action` the native submit is cancelled.
|
|
13
|
+
*/
|
|
14
|
+
export declare const BsForm: React.ForwardRefExoticComponent<BsFormProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface BsColFormLabelOptions {
|
|
2
|
+
}
|
|
3
|
+
/** Bootstrap's `.col-form-label` on a label that lines up with a control in a grid row. */
|
|
4
|
+
export declare function useBsColFormLabel(_options?: BsColFormLabelOptions): {
|
|
5
|
+
ref: (element: HTMLElement | null) => undefined;
|
|
6
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormView } from '@mintplayer/ui-core/form';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type FormTemplateProps = {
|
|
4
|
+
view: FormView;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Merged onto the root element after the bag. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
11
|
+
attrs?: Record<string, unknown>;
|
|
12
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
|
|
13
|
+
};
|
|
14
|
+
export declare function FormTemplate({ view, slots, children, className, attrs, rootRef }: FormTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|
package/grid/index.mjs
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { reactProps as e, useCore as t } from "../machine/index.mjs";
|
|
2
|
+
import { forwardRef as n, useImperativeHandle as r, useRef as i, useState as a } from "react";
|
|
3
|
+
import { installLightStyles as o } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { Fragment as s, jsx as c } from "react/jsx-runtime";
|
|
5
|
+
import { gridColCore as l, gridColumnCore as u, gridCore as d, gridRowCore as f, gridScopedStyles as p } from "@mintplayer/ui-core/grid";
|
|
6
|
+
import { bootstrapContainers as m } from "@mintplayer/ui-core/bootstrap/containers";
|
|
7
|
+
import { bootstrapGrid as h } from "@mintplayer/ui-core/bootstrap/grid";
|
|
8
|
+
//#region libs/mintplayer-react-bootstrap/grid/src/generated/grid.view.generated.tsx
|
|
9
|
+
function g({ root: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: o }) {
|
|
10
|
+
return /* @__PURE__ */ c(s, { children: /* @__PURE__ */ c("div", {
|
|
11
|
+
"data-mps": "grid",
|
|
12
|
+
...e(t),
|
|
13
|
+
ref: o,
|
|
14
|
+
...a,
|
|
15
|
+
role: t.role ?? a?.role,
|
|
16
|
+
className: [t.class, i].filter(Boolean).join(" ") || void 0,
|
|
17
|
+
children: r ?? null
|
|
18
|
+
}) });
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region libs/mintplayer-react-bootstrap/grid/src/generated/BsGrid.generated.tsx
|
|
22
|
+
var _ = n(function({ stopFullWidthAt: e = "sm", className: n, children: a, ...s }, l) {
|
|
23
|
+
o(m.key, m.css, { order: m.order }), o(h.key, h.css, { order: h.order }), o("grid", p);
|
|
24
|
+
let u = i(null);
|
|
25
|
+
r(l, () => u.current);
|
|
26
|
+
let f = t(d, { stopFullWidthAt: e }, {
|
|
27
|
+
idPrefix: "bs-grid",
|
|
28
|
+
label: s["aria-label"],
|
|
29
|
+
rootRef: u,
|
|
30
|
+
emit: () => void 0
|
|
31
|
+
});
|
|
32
|
+
return /* @__PURE__ */ c(g, {
|
|
33
|
+
...f.props,
|
|
34
|
+
className: n,
|
|
35
|
+
attrs: s,
|
|
36
|
+
rootRef: u,
|
|
37
|
+
children: a
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region libs/mintplayer-react-bootstrap/grid/src/generated/row.directive.generated.ts
|
|
42
|
+
function v(n = {}) {
|
|
43
|
+
o(m.key, m.css, { order: m.order }), o(h.key, h.css, { order: h.order }), o("grid", p);
|
|
44
|
+
let r = i(null), [s] = a(() => (e) => void (r.current = e)), c = t(f, {}, {
|
|
45
|
+
idPrefix: "bs-row",
|
|
46
|
+
rootRef: r,
|
|
47
|
+
emit: () => void 0
|
|
48
|
+
});
|
|
49
|
+
return {
|
|
50
|
+
...e({
|
|
51
|
+
...c.props,
|
|
52
|
+
"data-mps": "grid"
|
|
53
|
+
}),
|
|
54
|
+
ref: s
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region libs/mintplayer-react-bootstrap/grid/src/generated/col.directive.generated.ts
|
|
59
|
+
function y(n = {}) {
|
|
60
|
+
o(m.key, m.css, { order: m.order }), o(h.key, h.css, { order: h.order }), o("grid", p);
|
|
61
|
+
let r = i(null), [s] = a(() => (e) => void (r.current = e)), c = t(l, {}, {
|
|
62
|
+
idPrefix: "bs-col",
|
|
63
|
+
rootRef: r,
|
|
64
|
+
emit: () => void 0
|
|
65
|
+
});
|
|
66
|
+
return {
|
|
67
|
+
...e({
|
|
68
|
+
...c.props,
|
|
69
|
+
"data-mps": "grid"
|
|
70
|
+
}),
|
|
71
|
+
ref: s
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region libs/mintplayer-react-bootstrap/grid/src/generated/column.directive.generated.ts
|
|
76
|
+
function b({ xxs: n, xs: r, sm: s, md: c, lg: l, xl: d, xxl: f } = {}) {
|
|
77
|
+
o(m.key, m.css, { order: m.order }), o(h.key, h.css, { order: h.order }), o("grid", p);
|
|
78
|
+
let g = i(null), [_] = a(() => (e) => void (g.current = e)), v = t(u, {
|
|
79
|
+
xxs: n,
|
|
80
|
+
xs: r,
|
|
81
|
+
sm: s,
|
|
82
|
+
md: c,
|
|
83
|
+
lg: l,
|
|
84
|
+
xl: d,
|
|
85
|
+
xxl: f
|
|
86
|
+
}, {
|
|
87
|
+
idPrefix: "bs-column",
|
|
88
|
+
rootRef: g,
|
|
89
|
+
emit: () => void 0
|
|
90
|
+
});
|
|
91
|
+
return {
|
|
92
|
+
...e({
|
|
93
|
+
...v.props,
|
|
94
|
+
"data-mps": "grid"
|
|
95
|
+
}),
|
|
96
|
+
ref: _
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
export { _ as BsGrid, y as useBsCol, b as useBsColumn, v as useBsRow };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GridInputs } from '@mintplayer/ui-core/grid';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsGridProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'stopFullWidthAt'> {
|
|
4
|
+
stopFullWidthAt?: GridInputs['stopFullWidthAt'];
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/** Bootstrap's container around the page's rows: full width below `stopFullWidthAt`, fixed widths from it up (`never`: always full width). */
|
|
8
|
+
export declare const BsGrid: React.ForwardRefExoticComponent<BsGridProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GridColumnInputs } from '@mintplayer/ui-core/grid';
|
|
2
|
+
export interface BsColumnOptions {
|
|
3
|
+
/** The column span (1–12) at every width: `col-N`. */
|
|
4
|
+
xxs?: GridColumnInputs['xxs'];
|
|
5
|
+
/** The column span (1–12) from the `xs` breakpoint up: `col-xs-N`. */
|
|
6
|
+
xs?: GridColumnInputs['xs'];
|
|
7
|
+
/** The column span (1–12) from the `sm` breakpoint up: `col-sm-N`. */
|
|
8
|
+
sm?: GridColumnInputs['sm'];
|
|
9
|
+
/** The column span (1–12) from the `md` breakpoint up: `col-md-N`. */
|
|
10
|
+
md?: GridColumnInputs['md'];
|
|
11
|
+
/** The column span (1–12) from the `lg` breakpoint up: `col-lg-N`. */
|
|
12
|
+
lg?: GridColumnInputs['lg'];
|
|
13
|
+
/** The column span (1–12) from the `xl` breakpoint up: `col-xl-N`. */
|
|
14
|
+
xl?: GridColumnInputs['xl'];
|
|
15
|
+
/** The column span (1–12) from the `xxl` breakpoint up: `col-xxl-N`. */
|
|
16
|
+
xxl?: GridColumnInputs['xxl'];
|
|
17
|
+
}
|
|
18
|
+
/** A column with a span per breakpoint: `<div md="6" lg="4">`. */
|
|
19
|
+
export declare function useBsColumn({ xxs, xs, sm, md, lg, xl, xxl }?: BsColumnOptions): {
|
|
20
|
+
ref: (element: HTMLElement | null) => undefined;
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CoreBag } from '@mintplayer/ui-core/component';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type GridTemplateProps = {
|
|
4
|
+
root: CoreBag;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Merged onto the root element after the bag. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
11
|
+
attrs?: Record<string, unknown>;
|
|
12
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
|
|
13
|
+
};
|
|
14
|
+
export declare function GridTemplate({ root, slots, children, className, attrs, rootRef }: GridTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { BsGrid, type BsGridProps } from './BsGrid.generated';
|
|
2
|
+
export { useBsRow, type BsRowOptions } from './row.directive.generated';
|
|
3
|
+
export { useBsCol, type BsColOptions } from './col.directive.generated';
|
|
4
|
+
export { useBsColumn, type BsColumnOptions } from './column.directive.generated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|
package/input-group/index.mjs
CHANGED
|
@@ -1,21 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { installLightStyles as
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { bootstrapForms as
|
|
6
|
-
import {
|
|
7
|
-
//#region libs/mintplayer-react-bootstrap/input-group/src/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
ref:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { reactProps as e, useCore as t } from "../machine/index.mjs";
|
|
2
|
+
import { forwardRef as n, useImperativeHandle as r, useRef as i } from "react";
|
|
3
|
+
import { installLightStyles as a } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { Fragment as o, jsx as s } from "react/jsx-runtime";
|
|
5
|
+
import { bootstrapForms as c } from "@mintplayer/ui-core/bootstrap/forms";
|
|
6
|
+
import { inputGroupCore as l, inputGroupScopedStyles as u } from "@mintplayer/ui-core/input-group";
|
|
7
|
+
//#region libs/mintplayer-react-bootstrap/input-group/src/generated/input-group.view.generated.tsx
|
|
8
|
+
function d({ root: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: c }) {
|
|
9
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
10
|
+
"data-mps": "input-group",
|
|
11
|
+
...e(t),
|
|
12
|
+
ref: c,
|
|
13
|
+
...a,
|
|
14
|
+
role: t.role ?? a?.role,
|
|
15
|
+
className: [t.class, i].filter(Boolean).join(" ") || void 0,
|
|
16
|
+
children: r ?? null
|
|
17
|
+
}) });
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region libs/mintplayer-react-bootstrap/input-group/src/generated/BsInputGroup.generated.tsx
|
|
21
|
+
var f = n(function({ size: e = "md", label: n = null, className: o, children: f, ...p }, m) {
|
|
22
|
+
a(c.key, c.css, { order: c.order }), a("input-group", u);
|
|
23
|
+
let h = i(null);
|
|
24
|
+
r(m, () => h.current);
|
|
25
|
+
let g = t(l, {
|
|
26
|
+
size: e,
|
|
27
|
+
label: n
|
|
28
|
+
}, {
|
|
29
|
+
idPrefix: "bs-input-group",
|
|
30
|
+
label: p["aria-label"],
|
|
31
|
+
rootRef: h,
|
|
32
|
+
emit: () => void 0
|
|
33
|
+
});
|
|
34
|
+
return /* @__PURE__ */ s(d, {
|
|
35
|
+
...g.props,
|
|
36
|
+
className: o,
|
|
37
|
+
attrs: p,
|
|
38
|
+
rootRef: h,
|
|
39
|
+
children: f
|
|
17
40
|
});
|
|
18
41
|
});
|
|
19
|
-
u.displayName = "BsInputGroup";
|
|
20
42
|
//#endregion
|
|
21
|
-
export {
|
|
43
|
+
export { f as BsInputGroup };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InputGroupInputs } from '@mintplayer/ui-core/input-group';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsInputGroupProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'size' | 'label'> {
|
|
4
|
+
size?: InputGroupInputs['size'];
|
|
5
|
+
label?: InputGroupInputs['label'];
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/** Bootstrap's input group: joins its children into one visually continuous control. A `label` names it and makes it a `group`. */
|
|
9
|
+
export declare const BsInputGroup: React.ForwardRefExoticComponent<BsInputGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsInputGroup, type BsInputGroupProps } from './BsInputGroup.generated';
|