@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
package/pagination/index.mjs
CHANGED
|
@@ -1,56 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
let [y, b] = r(d), x = u ?? y, S = o({
|
|
12
|
-
pageNumbers: l,
|
|
13
|
-
selectedPageNumber: x,
|
|
14
|
-
numberOfBoxes: f,
|
|
15
|
-
showArrows: p,
|
|
16
|
-
size: m,
|
|
17
|
-
labels: h,
|
|
18
|
-
hrefFor: g
|
|
19
|
-
}), C = (e) => {
|
|
20
|
-
e !== null && e !== x && (b(e), _?.(e));
|
|
21
|
-
};
|
|
22
|
-
return /* @__PURE__ */ i("nav", {
|
|
1
|
+
import { reactProps as e, useCore as t } from "../machine/index.mjs";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { forwardRef as r, useImperativeHandle as i, useRef as a } from "react";
|
|
4
|
+
import { installLightStyles as o } from "@mintplayer/ui-core/scoped-styles";
|
|
5
|
+
import { Fragment as s, jsx as c } from "react/jsx-runtime";
|
|
6
|
+
import { bootstrapPagination as l } from "@mintplayer/ui-core/bootstrap/pagination";
|
|
7
|
+
import { paginationCore as u, paginationScopedStyles as d } from "@mintplayer/ui-core/pagination";
|
|
8
|
+
//#region libs/mintplayer-react-bootstrap/pagination/src/generated/pagination.view.generated.tsx
|
|
9
|
+
function f({ view: t, slots: r = {}, children: i, className: a, attrs: o, rootRef: l }) {
|
|
10
|
+
return /* @__PURE__ */ c(s, { children: /* @__PURE__ */ c("div", {
|
|
23
11
|
"data-mps": "pagination",
|
|
24
|
-
...e(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
children: /* @__PURE__ */
|
|
12
|
+
...e(t.root),
|
|
13
|
+
ref: l,
|
|
14
|
+
className: [t.root.class, a].filter(Boolean).join(" ") || void 0,
|
|
15
|
+
children: /* @__PURE__ */ c("nav", {
|
|
28
16
|
"data-mps": "pagination",
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
...e(t.nav),
|
|
18
|
+
...o,
|
|
19
|
+
role: t.nav.role ?? o?.role,
|
|
20
|
+
children: /* @__PURE__ */ c("ul", {
|
|
31
21
|
"data-mps": "pagination",
|
|
32
|
-
|
|
33
|
-
children: t.
|
|
34
|
-
"data-mps": "pagination",
|
|
35
|
-
...e(t.attrs),
|
|
36
|
-
children: t.text
|
|
37
|
-
}) : S.tag === "a" ? /* @__PURE__ */ i("a", {
|
|
38
|
-
"data-mps": "pagination",
|
|
39
|
-
...e(t.attrs),
|
|
40
|
-
href: t.href ?? void 0,
|
|
41
|
-
onClick: (e) => {
|
|
42
|
-
s(e.nativeEvent) && (e.preventDefault(), C(t.target));
|
|
43
|
-
},
|
|
44
|
-
children: t.text
|
|
45
|
-
}) : /* @__PURE__ */ i("button", {
|
|
22
|
+
...e(t.list),
|
|
23
|
+
children: t.entries.map((t, r) => /* @__PURE__ */ c(n.Fragment, { children: /* @__PURE__ */ c("li", {
|
|
46
24
|
"data-mps": "pagination",
|
|
47
|
-
...e(t.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
25
|
+
...e(t.item),
|
|
26
|
+
children: t.gap ? /* @__PURE__ */ c(s, { children: /* @__PURE__ */ c("span", {
|
|
27
|
+
"data-mps": "pagination",
|
|
28
|
+
...e(t.link),
|
|
29
|
+
children: t.text
|
|
30
|
+
}) }) : t.anchor ? /* @__PURE__ */ c(s, { children: /* @__PURE__ */ c("a", {
|
|
31
|
+
"data-mps": "pagination",
|
|
32
|
+
...e(t.link),
|
|
33
|
+
href: t.href,
|
|
34
|
+
children: t.text
|
|
35
|
+
}) }) : /* @__PURE__ */ c(s, { children: /* @__PURE__ */ c("button", {
|
|
36
|
+
"data-mps": "pagination",
|
|
37
|
+
...e(t.link),
|
|
38
|
+
children: t.text
|
|
39
|
+
}) })
|
|
40
|
+
}) }, t.key))
|
|
41
|
+
})
|
|
52
42
|
})
|
|
43
|
+
}) });
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region libs/mintplayer-react-bootstrap/pagination/src/generated/BsPagination.generated.tsx
|
|
47
|
+
var p = [], m = r(function({ pageNumbers: e = p, selectedPageNumber: n = 1, numberOfBoxes: r = 0, showArrows: s = !0, size: m = "medium", labels: h = null, hrefFor: g = null, onSelectedPageNumberChange: _, className: v, children: y, ...b }, x) {
|
|
48
|
+
o(l.key, l.css, { order: l.order }), o("pagination", d);
|
|
49
|
+
let S = a(null);
|
|
50
|
+
i(x, () => S.current);
|
|
51
|
+
let C = t(u, {
|
|
52
|
+
pageNumbers: e,
|
|
53
|
+
selectedPageNumber: n,
|
|
54
|
+
numberOfBoxes: r,
|
|
55
|
+
showArrows: s,
|
|
56
|
+
size: m,
|
|
57
|
+
labels: h,
|
|
58
|
+
hrefFor: g
|
|
59
|
+
}, {
|
|
60
|
+
idPrefix: "bs-pagination",
|
|
61
|
+
label: b["aria-label"],
|
|
62
|
+
rootRef: S,
|
|
63
|
+
emit: () => void 0,
|
|
64
|
+
models: ["selectedPageNumber"],
|
|
65
|
+
writeModel: (e, t) => {
|
|
66
|
+
e === "selectedPageNumber" && _?.(t);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
return /* @__PURE__ */ c(f, {
|
|
70
|
+
...C.props,
|
|
71
|
+
className: v,
|
|
72
|
+
attrs: b,
|
|
73
|
+
rootRef: S,
|
|
74
|
+
children: y
|
|
53
75
|
});
|
|
54
76
|
});
|
|
55
77
|
//#endregion
|
|
56
|
-
export {
|
|
78
|
+
export { m as BsPagination };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { paginationCore, PaginationInputs } from '@mintplayer/ui-core/pagination';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsPaginationProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['nav']>, 'pageNumbers' | 'selectedPageNumber' | 'numberOfBoxes' | 'showArrows' | 'size' | 'labels' | 'hrefFor' | 'onSelectedPageNumberChange'> {
|
|
4
|
+
pageNumbers?: PaginationInputs['pageNumbers'];
|
|
5
|
+
selectedPageNumber?: PaginationInputs['selectedPageNumber'];
|
|
6
|
+
numberOfBoxes?: PaginationInputs['numberOfBoxes'];
|
|
7
|
+
showArrows?: PaginationInputs['showArrows'];
|
|
8
|
+
size?: PaginationInputs['size'];
|
|
9
|
+
labels?: PaginationInputs['labels'];
|
|
10
|
+
hrefFor?: PaginationInputs['hrefFor'];
|
|
11
|
+
/** `selectedPageNumber` changed from inside (two-way: pass the value back as `selectedPageNumber`). */
|
|
12
|
+
onSelectedPageNumberChange?: (value: ReturnType<NonNullable<(typeof paginationCore)['state']>>['selectedPageNumber']) => void;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Bootstrap's pagination in a `<nav>` landmark (#458). `selectedPageNumber` is two-way.
|
|
17
|
+
*
|
|
18
|
+
* Pages are buttons; with `hrefFor` they are real links, so the server-rendered page navigates
|
|
19
|
+
* with JavaScript off, and a plain click selects in place once hydrated. A consumer
|
|
20
|
+
* `aria-label` names the `<nav>`; `labels` localizes the arrows and page names.
|
|
21
|
+
*/
|
|
22
|
+
export declare const BsPagination: React.ForwardRefExoticComponent<BsPaginationProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsPagination, type BsPaginationProps } from './BsPagination.generated';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PaginationRenderView } from '@mintplayer/ui-core/pagination';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type PaginationTemplateProps = {
|
|
4
|
+
view: PaginationRenderView;
|
|
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 PaginationTemplate({ view, slots, children, className, attrs, rootRef }: PaginationTemplateProps): React.ReactElement;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './generated';
|
|
2
|
+
export type { PaginationLabels, PaginationSize } from '@mintplayer/ui-core/pagination';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { reactProps as e, reactStyle as t, useCore as n } from "../machine/index.mjs";
|
|
2
|
+
import { forwardRef as r, useImperativeHandle as i, useRef 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 { parallaxCore as l, parallaxScopedStyles as u } from "@mintplayer/ui-core/parallax";
|
|
6
|
+
//#region libs/mintplayer-react-bootstrap/parallax/src/generated/parallax.view.generated.tsx
|
|
7
|
+
function d({ view: n, slots: r = {}, children: i, className: a, attrs: o, rootRef: l }) {
|
|
8
|
+
return /* @__PURE__ */ c(s, { children: /* @__PURE__ */ c("div", {
|
|
9
|
+
"data-mps": "parallax",
|
|
10
|
+
...e(n.root),
|
|
11
|
+
ref: l,
|
|
12
|
+
...o,
|
|
13
|
+
role: n.root.role ?? o?.role,
|
|
14
|
+
className: [n.root.class, a].filter(Boolean).join(" ") || void 0,
|
|
15
|
+
children: /* @__PURE__ */ c("div", {
|
|
16
|
+
"data-mps": "parallax",
|
|
17
|
+
...e(n.band),
|
|
18
|
+
style: t(n.bandStyle)
|
|
19
|
+
})
|
|
20
|
+
}) });
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region libs/mintplayer-react-bootstrap/parallax/src/generated/BsParallax.generated.tsx
|
|
24
|
+
var f = r(function({ height: e = 150, image: t = null, className: r, children: s, ...f }, p) {
|
|
25
|
+
o("parallax", u);
|
|
26
|
+
let m = a(null);
|
|
27
|
+
i(p, () => m.current);
|
|
28
|
+
let h = n(l, {
|
|
29
|
+
height: e,
|
|
30
|
+
image: t
|
|
31
|
+
}, {
|
|
32
|
+
idPrefix: "bs-parallax",
|
|
33
|
+
label: f["aria-label"],
|
|
34
|
+
rootRef: m,
|
|
35
|
+
emit: () => void 0
|
|
36
|
+
});
|
|
37
|
+
return /* @__PURE__ */ c(d, {
|
|
38
|
+
...h.props,
|
|
39
|
+
className: r,
|
|
40
|
+
attrs: f,
|
|
41
|
+
rootRef: m,
|
|
42
|
+
children: s
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { f as BsParallax };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ParallaxInputs } from '@mintplayer/ui-core/parallax';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsParallaxProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'height' | 'image'> {
|
|
4
|
+
height?: ParallaxInputs['height'];
|
|
5
|
+
image?: ParallaxInputs['image'];
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/** A decorative band `height` pixels tall whose background `image` stays fixed while the page scrolls (it scrolls along under reduced motion). */
|
|
9
|
+
export declare const BsParallax: React.ForwardRefExoticComponent<BsParallaxProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsParallax, type BsParallaxProps } from './BsParallax.generated';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ParallaxView } from '@mintplayer/ui-core/parallax';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type ParallaxTemplateProps = {
|
|
4
|
+
view: ParallaxView;
|
|
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 ParallaxTemplate({ view, slots, children, className, attrs, rootRef }: ParallaxTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|
package/phone-input/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCore as r } from "../machine/index.mjs";
|
|
1
|
+
import { reactFormProps as e, reactOptionProps as t, reactProps as n, useCore as r } from "../machine/index.mjs";
|
|
3
2
|
import * as i from "react";
|
|
4
3
|
import { forwardRef as a, useImperativeHandle as o, useRef as s } from "react";
|
|
5
4
|
import { installLightStyles as c } from "@mintplayer/ui-core/scoped-styles";
|
|
@@ -10,64 +9,64 @@ import { phoneInputCore as p, phoneInputScopedStyles as m } from "@mintplayer/ui
|
|
|
10
9
|
function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
|
|
11
10
|
return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
|
|
12
11
|
"data-mps": "phone-input",
|
|
13
|
-
...
|
|
12
|
+
...n(r.root),
|
|
14
13
|
ref: f,
|
|
15
14
|
className: [r.root.class, s].filter(Boolean).join(" ") || void 0,
|
|
16
15
|
children: [
|
|
17
16
|
/* @__PURE__ */ d("div", {
|
|
18
17
|
"data-mps": "phone-input",
|
|
19
|
-
...
|
|
18
|
+
...n(r.group),
|
|
20
19
|
children: [
|
|
21
20
|
/* @__PURE__ */ d("select", {
|
|
22
21
|
"data-mps": "phone-input",
|
|
23
|
-
...
|
|
22
|
+
...e(r.select),
|
|
24
23
|
children: [r.rich ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("button", {
|
|
25
24
|
"data-mps": "phone-input",
|
|
26
25
|
type: "button",
|
|
27
26
|
children: i.createElement("selectedcontent")
|
|
28
|
-
}) }) : null, r.options.map((
|
|
27
|
+
}) }) : null, r.options.map((e, a) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u("option", {
|
|
29
28
|
"data-mps": "phone-input",
|
|
30
|
-
...e
|
|
29
|
+
...t(e.bag),
|
|
31
30
|
children: r.rich ? /* @__PURE__ */ d(l, { children: [
|
|
32
31
|
/* @__PURE__ */ u("span", {
|
|
33
32
|
"data-mps": "phone-input",
|
|
34
|
-
...
|
|
35
|
-
dangerouslySetInnerHTML: { __html:
|
|
33
|
+
...n(r.flagBox),
|
|
34
|
+
dangerouslySetInnerHTML: { __html: e.flag }
|
|
36
35
|
}),
|
|
37
36
|
/* @__PURE__ */ u("span", {
|
|
38
37
|
"data-mps": "phone-input",
|
|
39
|
-
...
|
|
40
|
-
children:
|
|
38
|
+
...n(r.richLabel),
|
|
39
|
+
children: e.name
|
|
41
40
|
}),
|
|
42
41
|
/* @__PURE__ */ u("span", {
|
|
43
42
|
"data-mps": "phone-input",
|
|
44
|
-
...
|
|
45
|
-
children:
|
|
43
|
+
...n(r.listOnly),
|
|
44
|
+
children: e.dial
|
|
46
45
|
}),
|
|
47
46
|
/* @__PURE__ */ u("span", {
|
|
48
47
|
"data-mps": "phone-input",
|
|
49
|
-
...
|
|
50
|
-
children:
|
|
48
|
+
...n(r.closedOnly),
|
|
49
|
+
children: e.iso
|
|
51
50
|
})
|
|
52
|
-
] }) : /* @__PURE__ */ u(l, { children:
|
|
53
|
-
}) },
|
|
51
|
+
] }) : /* @__PURE__ */ u(l, { children: e.label })
|
|
52
|
+
}) }, e.key))]
|
|
54
53
|
}),
|
|
55
54
|
/* @__PURE__ */ d("span", {
|
|
56
55
|
"data-mps": "phone-input",
|
|
57
|
-
...
|
|
56
|
+
...n(r.addon),
|
|
58
57
|
children: [/* @__PURE__ */ u("span", {
|
|
59
58
|
"data-mps": "phone-input",
|
|
60
|
-
...
|
|
59
|
+
...n(r.flag),
|
|
61
60
|
dangerouslySetInnerHTML: { __html: r.flagHtml }
|
|
62
61
|
}), /* @__PURE__ */ u("span", {
|
|
63
62
|
"data-mps": "phone-input",
|
|
64
|
-
...
|
|
63
|
+
...n(r.dial),
|
|
65
64
|
children: r.dialText
|
|
66
65
|
})]
|
|
67
66
|
}),
|
|
68
67
|
/* @__PURE__ */ u("input", {
|
|
69
68
|
"data-mps": "phone-input",
|
|
70
|
-
...
|
|
69
|
+
...e(r.input),
|
|
71
70
|
...c,
|
|
72
71
|
role: r.input.role ?? c?.role
|
|
73
72
|
})
|
|
@@ -75,11 +74,11 @@ function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
|
|
|
75
74
|
}),
|
|
76
75
|
r.hidden ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("input", {
|
|
77
76
|
"data-mps": "phone-input",
|
|
78
|
-
...
|
|
77
|
+
...e(r.hidden)
|
|
79
78
|
}) }) : null,
|
|
80
79
|
r.showFeedback ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("div", {
|
|
81
80
|
"data-mps": "phone-input",
|
|
82
|
-
...
|
|
81
|
+
...n(r.feedback.attrs),
|
|
83
82
|
children: r.feedback.text
|
|
84
83
|
}) }) : null
|
|
85
84
|
]
|
|
@@ -87,7 +86,7 @@ function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
|
|
|
87
86
|
}
|
|
88
87
|
//#endregion
|
|
89
88
|
//#region libs/mintplayer-react-bootstrap/phone-input/src/generated/BsPhoneInput.generated.tsx
|
|
90
|
-
var g = a(function({ value: e = null, country: t = null, defaultCountry: n, locale: i, preferredCountries: a = null, allowedCountries: l = null, disabled: d = !1, required: g = !1, invalid: _ = !1, errorText: v, placeholder: y, autocomplete: b = "tel-national", name: x, inputLabel: S, countryLabel: C,
|
|
89
|
+
var g = a(function({ value: e = null, country: t = null, defaultCountry: n, locale: i, preferredCountries: a = null, allowedCountries: l = null, disabled: d = !1, required: g = !1, invalid: _ = !1, errorText: v, placeholder: y, autocomplete: b = "tel-national", name: x, inputLabel: S, countryLabel: C, onPhoneChange: w, onValueChange: T, onCountryChange: E, className: D, children: O, ...k }, A) {
|
|
91
90
|
c(f.key, f.css, { order: f.order }), c("phone-input", m);
|
|
92
91
|
let j = s(null);
|
|
93
92
|
o(A, () => j.current);
|
|
@@ -112,7 +111,11 @@ var g = a(function({ value: e = null, country: t = null, defaultCountry: n, loca
|
|
|
112
111
|
label: k["aria-label"],
|
|
113
112
|
rootRef: j,
|
|
114
113
|
emit: (e, t) => {
|
|
115
|
-
e === "
|
|
114
|
+
e === "phoneChange" && w?.(t);
|
|
115
|
+
},
|
|
116
|
+
models: ["value", "country"],
|
|
117
|
+
writeModel: (e, t) => {
|
|
118
|
+
e === "value" && T?.(t), e === "country" && E?.(t);
|
|
116
119
|
}
|
|
117
120
|
});
|
|
118
121
|
return /* @__PURE__ */ u(h, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PhoneChangeEventDetail, PhoneInputInputs } from '@mintplayer/ui-core/phone-input';
|
|
1
|
+
import { PhoneChangeEventDetail, phoneInputCore, PhoneInputInputs } from '@mintplayer/ui-core/phone-input';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export interface BsPhoneInputProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['input']>, 'value' | 'country' | 'defaultCountry' | 'locale' | 'preferredCountries' | 'allowedCountries' | 'disabled' | 'required' | 'invalid' | 'errorText' | 'placeholder' | 'autocomplete' | 'name' | 'inputLabel' | 'countryLabel' | '
|
|
3
|
+
export interface BsPhoneInputProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['input']>, 'value' | 'country' | 'defaultCountry' | 'locale' | 'preferredCountries' | 'allowedCountries' | 'disabled' | 'required' | 'invalid' | 'errorText' | 'placeholder' | 'autocomplete' | 'name' | 'inputLabel' | 'countryLabel' | 'onPhoneChange' | 'onValueChange' | 'onCountryChange'> {
|
|
4
4
|
value?: PhoneInputInputs['value'];
|
|
5
5
|
country?: PhoneInputInputs['country'];
|
|
6
6
|
defaultCountry?: PhoneInputInputs['defaultCountry'];
|
|
@@ -16,12 +16,12 @@ export interface BsPhoneInputProps extends Omit<React.HTMLAttributes<HTMLElement
|
|
|
16
16
|
name?: PhoneInputInputs['name'];
|
|
17
17
|
inputLabel?: PhoneInputInputs['inputLabel'];
|
|
18
18
|
countryLabel?: PhoneInputInputs['countryLabel'];
|
|
19
|
-
/** The E.164 value changed (null while empty). */
|
|
20
|
-
onValueChange?: (detail: string | null) => void;
|
|
21
|
-
/** The user picked a country, or typed a `+XX` that switched it. */
|
|
22
|
-
onCountryChange?: (detail: string) => void;
|
|
23
19
|
/** Every edit, pick and rules load: the value with its parts and validity. */
|
|
24
20
|
onPhoneChange?: (detail: PhoneChangeEventDetail) => void;
|
|
21
|
+
/** `value` changed from inside (two-way: pass the value back as `value`). */
|
|
22
|
+
onValueChange?: (value: ReturnType<NonNullable<(typeof phoneInputCore)['state']>>['value']) => void;
|
|
23
|
+
/** `country` changed from inside (two-way: pass the value back as `country`). */
|
|
24
|
+
onCountryChange?: (value: ReturnType<NonNullable<(typeof phoneInputCore)['state']>>['country']) => void;
|
|
25
25
|
children?: React.ReactNode;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
@@ -0,0 +1,47 @@
|
|
|
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, jsxs as c } from "react/jsx-runtime";
|
|
5
|
+
import { placeholderCore as l, placeholderScopedStyles as u } from "@mintplayer/ui-core/placeholder";
|
|
6
|
+
import { bootstrapPlaceholders as d } from "@mintplayer/ui-core/bootstrap/placeholders";
|
|
7
|
+
//#region libs/mintplayer-react-bootstrap/placeholder/src/generated/placeholder.view.generated.tsx
|
|
8
|
+
function f({ view: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: l }) {
|
|
9
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ c("div", {
|
|
10
|
+
"data-mps": "placeholder",
|
|
11
|
+
...e(t.root),
|
|
12
|
+
ref: l,
|
|
13
|
+
...a,
|
|
14
|
+
role: t.root.role ?? a?.role,
|
|
15
|
+
className: [t.root.class, i].filter(Boolean).join(" ") || void 0,
|
|
16
|
+
children: [r ?? null, /* @__PURE__ */ s("span", {
|
|
17
|
+
"data-mps": "placeholder",
|
|
18
|
+
...e(t.status),
|
|
19
|
+
children: t.message
|
|
20
|
+
})]
|
|
21
|
+
}) });
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region libs/mintplayer-react-bootstrap/placeholder/src/generated/BsPlaceholder.generated.tsx
|
|
25
|
+
var p = n(function({ loading: e = !1, loadedText: n = "Loading complete", className: o, children: c, ...p }, m) {
|
|
26
|
+
a(d.key, d.css, { order: d.order }), a("placeholder", u);
|
|
27
|
+
let h = i(null);
|
|
28
|
+
r(m, () => h.current);
|
|
29
|
+
let g = t(l, {
|
|
30
|
+
loading: e,
|
|
31
|
+
loadedText: n
|
|
32
|
+
}, {
|
|
33
|
+
idPrefix: "bs-placeholder",
|
|
34
|
+
label: p["aria-label"],
|
|
35
|
+
rootRef: h,
|
|
36
|
+
emit: () => void 0
|
|
37
|
+
});
|
|
38
|
+
return /* @__PURE__ */ s(f, {
|
|
39
|
+
...g.props,
|
|
40
|
+
className: o,
|
|
41
|
+
attrs: p,
|
|
42
|
+
rootRef: h,
|
|
43
|
+
children: c
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { p as BsPlaceholder };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PlaceholderInputs } from '@mintplayer/ui-core/placeholder';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsPlaceholderProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'loading' | 'loadedText'> {
|
|
4
|
+
loading?: PlaceholderInputs['loading'];
|
|
5
|
+
loadedText?: PlaceholderInputs['loadedText'];
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A loading region: while `loading`, the content's elements marked `data-placeholder-field` render as
|
|
10
|
+
* Bootstrap's glowing skeleton bars and the region is `aria-busy`; when it ends, `loadedText` is said once.
|
|
11
|
+
*/
|
|
12
|
+
export declare const BsPlaceholder: React.ForwardRefExoticComponent<BsPlaceholderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsPlaceholder, type BsPlaceholderProps } from './BsPlaceholder.generated';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PlaceholderView } from '@mintplayer/ui-core/placeholder';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type PlaceholderTemplateProps = {
|
|
4
|
+
view: PlaceholderView;
|
|
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 PlaceholderTemplate({ view, slots, children, className, attrs, rootRef }: PlaceholderTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|
|
@@ -0,0 +1,65 @@
|
|
|
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, jsxs as c } from "react/jsx-runtime";
|
|
5
|
+
import { playlistTogglerCore as l, playlistTogglerScopedStyles as u } from "@mintplayer/ui-core/playlist-toggler";
|
|
6
|
+
//#region libs/mintplayer-react-bootstrap/playlist-toggler/src/generated/playlist-toggler.view.generated.tsx
|
|
7
|
+
function d({ view: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: l }) {
|
|
8
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("span", {
|
|
9
|
+
"data-mps": "playlist-toggler",
|
|
10
|
+
...e(t.root),
|
|
11
|
+
ref: l,
|
|
12
|
+
className: [t.root.class, i].filter(Boolean).join(" ") || void 0,
|
|
13
|
+
children: /* @__PURE__ */ c("button", {
|
|
14
|
+
"data-mps": "playlist-toggler",
|
|
15
|
+
...e(t.button),
|
|
16
|
+
...a,
|
|
17
|
+
role: t.button.role ?? a?.role,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ s("span", {
|
|
20
|
+
"data-mps": "playlist-toggler",
|
|
21
|
+
...e(t.line)
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ s("span", {
|
|
24
|
+
"data-mps": "playlist-toggler",
|
|
25
|
+
...e(t.line)
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ s("span", {
|
|
28
|
+
"data-mps": "playlist-toggler",
|
|
29
|
+
...e(t.line)
|
|
30
|
+
})
|
|
31
|
+
]
|
|
32
|
+
})
|
|
33
|
+
}) });
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region libs/mintplayer-react-bootstrap/playlist-toggler/src/generated/BsPlaylistToggler.generated.tsx
|
|
37
|
+
var f = n(function({ open: e = !1, toggleOnClick: n = !0, label: o = "Toggle playlist", controls: c = null, onOpenChange: f, className: p, children: m, ...h }, g) {
|
|
38
|
+
a("playlist-toggler", u);
|
|
39
|
+
let _ = i(null);
|
|
40
|
+
r(g, () => _.current);
|
|
41
|
+
let v = t(l, {
|
|
42
|
+
open: e,
|
|
43
|
+
toggleOnClick: n,
|
|
44
|
+
label: o,
|
|
45
|
+
controls: c
|
|
46
|
+
}, {
|
|
47
|
+
idPrefix: "bs-playlist-toggler",
|
|
48
|
+
label: h["aria-label"],
|
|
49
|
+
rootRef: _,
|
|
50
|
+
emit: () => void 0,
|
|
51
|
+
models: ["open"],
|
|
52
|
+
writeModel: (e, t) => {
|
|
53
|
+
e === "open" && f?.(t);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return /* @__PURE__ */ s(d, {
|
|
57
|
+
...v.props,
|
|
58
|
+
className: p,
|
|
59
|
+
attrs: h,
|
|
60
|
+
rootRef: _,
|
|
61
|
+
children: m
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
export { f as BsPlaylistToggler };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { playlistTogglerCore, PlaylistTogglerInputs } from '@mintplayer/ui-core/playlist-toggler';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsPlaylistTogglerProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['button']>, 'open' | 'toggleOnClick' | 'label' | 'controls' | 'onOpenChange'> {
|
|
4
|
+
open?: PlaylistTogglerInputs['open'];
|
|
5
|
+
toggleOnClick?: PlaylistTogglerInputs['toggleOnClick'];
|
|
6
|
+
label?: PlaylistTogglerInputs['label'];
|
|
7
|
+
controls?: PlaylistTogglerInputs['controls'];
|
|
8
|
+
/** `open` changed from inside (two-way: pass the value back as `open`). */
|
|
9
|
+
onOpenChange?: (value: ReturnType<NonNullable<(typeof playlistTogglerCore)['state']>>['open']) => void;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A button whose bars show a play arrow while closed and a cross while `open` (two-way). `controls`
|
|
14
|
+
* names the playlist it shows and hides; with `toggleOnClick` off it only reports state its owner drives.
|
|
15
|
+
*/
|
|
16
|
+
export declare const BsPlaylistToggler: React.ForwardRefExoticComponent<BsPlaylistTogglerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsPlaylistToggler, type BsPlaylistTogglerProps } from './BsPlaylistToggler.generated';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PlaylistTogglerView } from '@mintplayer/ui-core/playlist-toggler';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type PlaylistTogglerTemplateProps = {
|
|
4
|
+
view: PlaylistTogglerView;
|
|
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['span']>;
|
|
13
|
+
};
|
|
14
|
+
export declare function PlaylistTogglerTemplate({ view, slots, children, className, attrs, rootRef }: PlaylistTogglerTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|