@coreui/react 4.6.0 → 4.8.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/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/components/accordion/index.d.ts +1 -2
- package/dist/components/alert/CAlert.d.ts +1 -1
- package/dist/components/avatar/CAvatar.d.ts +1 -1
- package/dist/components/badge/CBadge.d.ts +1 -1
- package/dist/components/button/CButton.d.ts +1 -1
- package/dist/components/callout/CCallout.d.ts +1 -1
- package/dist/components/card/CCard.d.ts +1 -1
- package/dist/components/conditional-portal/CConditionalPortal.d.ts +12 -0
- package/dist/components/conditional-portal/index.d.ts +2 -0
- package/dist/components/dropdown/CDropdown.d.ts +8 -1
- package/dist/components/dropdown/CDropdownToggle.d.ts +1 -1
- package/dist/components/form/CFormCheck.d.ts +8 -2
- package/dist/components/form/CFormSwitch.d.ts +6 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/list-group/CListGroupItem.d.ts +1 -1
- package/dist/components/navbar/CNavbar.d.ts +1 -1
- package/dist/components/placeholder/CPlaceholder.d.ts +1 -1
- package/dist/components/popover/CPopover.d.ts +1 -1
- package/dist/components/progress/CProgressBar.d.ts +1 -1
- package/dist/components/spinner/CSpinner.d.ts +1 -1
- package/dist/components/table/CTable.d.ts +2 -18
- package/dist/components/table/CTableBody.d.ts +1 -1
- package/dist/components/table/CTableDataCell.d.ts +1 -1
- package/dist/components/table/CTableFoot.d.ts +1 -1
- package/dist/components/table/CTableHead.d.ts +1 -1
- package/dist/components/table/CTableHeaderCell.d.ts +1 -1
- package/dist/components/table/CTableResponsiveWrapper.d.ts +0 -1
- package/dist/components/table/CTableRow.d.ts +1 -1
- package/dist/components/table/types.d.ts +17 -0
- package/dist/components/table/utils.d.ts +5 -0
- package/dist/components/toast/CToast.d.ts +1 -1
- package/dist/components/toast/CToastClose.d.ts +1 -1
- package/dist/components/tooltip/CTooltip.d.ts +1 -1
- package/dist/components/widgets/CWidgetStatsA.d.ts +1 -1
- package/dist/components/widgets/CWidgetStatsB.d.ts +1 -1
- package/dist/components/widgets/CWidgetStatsC.d.ts +1 -1
- package/dist/components/widgets/CWidgetStatsD.d.ts +1 -1
- package/dist/components/widgets/CWidgetStatsF.d.ts +1 -1
- package/dist/index.es.js +496 -691
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +495 -690
- package/dist/index.js.map +1 -1
- package/dist/props.d.ts +7 -0
- package/dist/{components/Types.d.ts → types.d.ts} +0 -6
- package/package.json +11 -6
- package/src/components/accordion/CAccordion.tsx +7 -3
- package/src/components/accordion/CAccordionBody.tsx +2 -2
- package/src/components/accordion/CAccordionButton.tsx +1 -3
- package/src/components/accordion/CAccordionHeader.tsx +1 -3
- package/src/components/accordion/CAccordionItem.tsx +2 -4
- package/src/components/accordion/__tests__/__snapshots__/CAccordionBody.spec.tsx.snap +2 -2
- package/src/components/accordion/index.ts +0 -2
- package/src/components/alert/CAlert.tsx +21 -28
- package/src/components/alert/CAlertHeading.tsx +1 -3
- package/src/components/alert/CAlertLink.tsx +1 -3
- package/src/components/alert/__tests__/__snapshots__/CAlert.spec.tsx.snap +1 -1
- package/src/components/avatar/CAvatar.tsx +16 -19
- package/src/components/backdrop/CBackdrop.tsx +10 -13
- package/src/components/badge/CBadge.tsx +21 -25
- package/src/components/breadcrumb/CBreadcrumb.tsx +1 -2
- package/src/components/breadcrumb/CBreadcrumbItem.tsx +12 -8
- package/src/components/button/CButton.tsx +10 -10
- package/src/components/button-group/CButtonGroup.tsx +9 -7
- package/src/components/button-group/CButtonToolbar.tsx +1 -3
- package/src/components/callout/CCallout.tsx +13 -10
- package/src/components/card/CCard.tsx +14 -11
- package/src/components/card/CCardBody.tsx +1 -3
- package/src/components/card/CCardFooter.tsx +1 -3
- package/src/components/card/CCardGroup.tsx +1 -3
- package/src/components/card/CCardHeader.tsx +1 -3
- package/src/components/card/CCardImage.tsx +5 -3
- package/src/components/card/CCardImageOverlay.tsx +1 -3
- package/src/components/card/CCardLink.tsx +1 -3
- package/src/components/card/CCardSubtitle.tsx +1 -3
- package/src/components/card/CCardText.tsx +1 -3
- package/src/components/card/CCardTitle.tsx +1 -3
- package/src/components/carousel/CCarousel.tsx +8 -8
- package/src/components/carousel/CCarouselCaption.tsx +1 -3
- package/src/components/carousel/CCarouselItem.tsx +11 -9
- package/src/components/close-button/CCloseButton.tsx +9 -10
- package/src/components/collapse/CCollapse.tsx +8 -20
- package/src/components/collapse/__tests__/CCollapse.spec.tsx +2 -3
- package/src/components/conditional-portal/CConditionalPortal.tsx +29 -0
- package/src/components/conditional-portal/index.ts +3 -0
- package/src/components/dropdown/CDropdown.tsx +42 -31
- package/src/components/dropdown/CDropdownDivider.tsx +1 -3
- package/src/components/dropdown/CDropdownHeader.tsx +1 -3
- package/src/components/dropdown/CDropdownItem.tsx +7 -5
- package/src/components/dropdown/CDropdownItemPlain.tsx +1 -3
- package/src/components/dropdown/CDropdownMenu.tsx +32 -31
- package/src/components/dropdown/CDropdownToggle.tsx +34 -27
- package/src/components/dropdown/__tests__/CDropdown.spec.tsx +2 -4
- package/src/components/dropdown/__tests__/__snapshots__/CDropdown.spec.tsx.snap +1 -1
- package/src/components/footer/CFooter.tsx +5 -3
- package/src/components/form/CForm.tsx +5 -2
- package/src/components/form/CFormCheck.tsx +90 -66
- package/src/components/form/CFormControlValidation.tsx +0 -1
- package/src/components/form/CFormControlWrapper.tsx +3 -4
- package/src/components/form/CFormFeedback.tsx +11 -8
- package/src/components/form/CFormFloating.tsx +1 -2
- package/src/components/form/CFormInput.tsx +18 -16
- package/src/components/form/CFormLabel.tsx +1 -2
- package/src/components/form/CFormRange.tsx +2 -4
- package/src/components/form/CFormSelect.tsx +16 -12
- package/src/components/form/CFormSwitch.tsx +31 -20
- package/src/components/form/CFormText.tsx +1 -2
- package/src/components/form/CFormTextarea.tsx +14 -11
- package/src/components/form/CInputGroup.tsx +11 -8
- package/src/components/form/CInputGroupText.tsx +1 -2
- package/src/components/form/__tests__/CFormRange.spec.tsx +1 -1
- package/src/components/form/__tests__/__snapshots__/CForm.spec.tsx.snap +2 -6
- package/src/components/form/__tests__/__snapshots__/CFormRange.spec.tsx.snap +2 -2
- package/src/components/grid/CCol.tsx +8 -6
- package/src/components/grid/CContainer.tsx +8 -6
- package/src/components/grid/CRow.tsx +4 -3
- package/src/components/header/CHeader.tsx +12 -13
- package/src/components/header/CHeaderBrand.tsx +1 -3
- package/src/components/header/CHeaderDivider.tsx +1 -3
- package/src/components/header/CHeaderNav.tsx +6 -3
- package/src/components/header/CHeaderText.tsx +1 -3
- package/src/components/header/CHeaderToggler.tsx +2 -4
- package/src/components/image/CImage.tsx +17 -10
- package/src/components/image/__tests__/__snapshots__/CImage.spec.tsx.snap +1 -3
- package/src/components/index.ts +1 -0
- package/src/components/link/CLink.tsx +2 -4
- package/src/components/list-group/CListGroup.tsx +11 -10
- package/src/components/list-group/CListGroupItem.tsx +16 -13
- package/src/components/modal/CModal.tsx +57 -72
- package/src/components/modal/CModalBody.tsx +1 -3
- package/src/components/modal/CModalContent.tsx +1 -3
- package/src/components/modal/CModalDialog.tsx +16 -14
- package/src/components/modal/CModalFooter.tsx +1 -3
- package/src/components/modal/CModalHeader.tsx +4 -4
- package/src/components/modal/CModalTitle.tsx +1 -3
- package/src/components/modal/__tests__/CModal.spec.tsx +19 -20
- package/src/components/nav/CNav.tsx +13 -10
- package/src/components/nav/CNavGroup.tsx +1 -3
- package/src/components/nav/CNavGroupItems.tsx +1 -2
- package/src/components/nav/CNavItem.tsx +9 -10
- package/src/components/nav/CNavLink.tsx +4 -5
- package/src/components/nav/CNavTitle.tsx +1 -2
- package/src/components/navbar/CNavbar.tsx +23 -23
- package/src/components/navbar/CNavbarBrand.tsx +2 -3
- package/src/components/navbar/CNavbarNav.tsx +6 -3
- package/src/components/navbar/CNavbarText.tsx +1 -3
- package/src/components/navbar/CNavbarToggler.tsx +2 -4
- package/src/components/offcanvas/COffcanvas.tsx +45 -73
- package/src/components/offcanvas/COffcanvasBody.tsx +1 -3
- package/src/components/offcanvas/COffcanvasHeader.tsx +1 -3
- package/src/components/offcanvas/COffcanvasTitle.tsx +1 -3
- package/src/components/offcanvas/__tests__/COffcanvas.spec.tsx +7 -2
- package/src/components/offcanvas/__tests__/__snapshots__/COffcanvas.spec.tsx.snap +9 -4
- package/src/components/pagination/CPagination.tsx +12 -9
- package/src/components/pagination/CPaginationItem.tsx +12 -11
- package/src/components/pagination/__tests__/CPagination.spec.tsx +3 -3
- package/src/components/pagination/__tests__/CPaginationItem.spec.tsx +3 -3
- package/src/components/placeholder/CPlaceholder.tsx +15 -12
- package/src/components/popover/CPopover.tsx +24 -34
- package/src/components/progress/CProgress.tsx +13 -10
- package/src/components/progress/CProgressBar.tsx +12 -12
- package/src/components/sidebar/CSidebar.tsx +20 -17
- package/src/components/sidebar/CSidebarBrand.tsx +1 -2
- package/src/components/sidebar/CSidebarFooter.tsx +1 -2
- package/src/components/sidebar/CSidebarHeader.tsx +1 -2
- package/src/components/sidebar/CSidebarNav.tsx +2 -2
- package/src/components/sidebar/CSidebarToggler.tsx +1 -2
- package/src/components/spinner/CSpinner.tsx +13 -9
- package/src/components/table/CTable.tsx +45 -77
- package/src/components/table/CTableBody.tsx +14 -9
- package/src/components/table/CTableDataCell.tsx +16 -11
- package/src/components/table/CTableFoot.tsx +14 -9
- package/src/components/table/CTableHead.tsx +14 -9
- package/src/components/table/CTableHeaderCell.tsx +14 -9
- package/src/components/table/CTableResponsiveWrapper.tsx +2 -3
- package/src/components/table/CTableRow.tsx +16 -11
- package/src/components/table/__tests__/__snapshots__/CTable.spec.tsx.snap +1 -5
- package/src/components/table/types.ts +20 -0
- package/src/components/table/utils.ts +24 -0
- package/src/components/tabs/CTabContent.tsx +1 -2
- package/src/components/tabs/CTabPane.tsx +18 -20
- package/src/components/tabs/__tests__/CTabPane.spec.tsx +2 -5
- package/src/components/tabs/__tests__/__snapshots__/CTabPane.spec.tsx.snap +1 -1
- package/src/components/toast/CToast.tsx +32 -45
- package/src/components/toast/CToastBody.tsx +1 -2
- package/src/components/toast/CToastClose.tsx +4 -2
- package/src/components/toast/CToastHeader.tsx +1 -2
- package/src/components/toast/CToaster.tsx +27 -26
- package/src/components/toast/__tests__/CToast.spec.tsx +2 -1
- package/src/components/toast/__tests__/__snapshots__/CToast.spec.tsx.snap +1 -66
- package/src/components/tooltip/CTooltip.tsx +24 -34
- package/src/components/widgets/CWidgetStatsA.tsx +11 -9
- package/src/components/widgets/CWidgetStatsB.tsx +4 -4
- package/src/components/widgets/CWidgetStatsC.tsx +4 -4
- package/src/components/widgets/CWidgetStatsD.tsx +13 -15
- package/src/components/widgets/CWidgetStatsE.tsx +2 -5
- package/src/components/widgets/CWidgetStatsF.tsx +4 -8
- package/src/{components/Types.tsx → props.ts} +1 -58
- package/src/types.ts +58 -0
- package/dist/esm/_virtual/index.js +0 -8
- package/dist/esm/_virtual/index.js.map +0 -1
- package/dist/esm/_virtual/index2.js +0 -8
- package/dist/esm/_virtual/index2.js.map +0 -1
- package/dist/esm/_virtual/index3.js +0 -8
- package/dist/esm/_virtual/index3.js.map +0 -1
- package/dist/esm/_virtual/react-is.development.js +0 -4
- package/dist/esm/_virtual/react-is.development.js.map +0 -1
- package/dist/esm/_virtual/react-is.production.min.js +0 -4
- package/dist/esm/_virtual/react-is.production.min.js.map +0 -1
- package/dist/esm/components/Types.d.ts +0 -12
- package/dist/esm/components/Types.js +0 -58
- package/dist/esm/components/Types.js.map +0 -1
- package/dist/esm/components/accordion/CAccordion.d.ts +0 -26
- package/dist/esm/components/accordion/CAccordion.js +0 -25
- package/dist/esm/components/accordion/CAccordion.js.map +0 -1
- package/dist/esm/components/accordion/CAccordionBody.d.ts +0 -8
- package/dist/esm/components/accordion/CAccordionBody.js +0 -23
- package/dist/esm/components/accordion/CAccordionBody.js.map +0 -1
- package/dist/esm/components/accordion/CAccordionButton.d.ts +0 -8
- package/dist/esm/components/accordion/CAccordionButton.js +0 -21
- package/dist/esm/components/accordion/CAccordionButton.js.map +0 -1
- package/dist/esm/components/accordion/CAccordionCollapse.d.ts +0 -3
- package/dist/esm/components/accordion/CAccordionCollapse.js +0 -17
- package/dist/esm/components/accordion/CAccordionCollapse.js.map +0 -1
- package/dist/esm/components/accordion/CAccordionHeader.d.ts +0 -8
- package/dist/esm/components/accordion/CAccordionHeader.js +0 -21
- package/dist/esm/components/accordion/CAccordionHeader.js.map +0 -1
- package/dist/esm/components/accordion/CAccordionItem.d.ts +0 -17
- package/dist/esm/components/accordion/CAccordionItem.js +0 -32
- package/dist/esm/components/accordion/CAccordionItem.js.map +0 -1
- package/dist/esm/components/accordion/index.d.ts +0 -7
- package/dist/esm/components/alert/CAlert.d.ts +0 -31
- package/dist/esm/components/alert/CAlert.js +0 -48
- package/dist/esm/components/alert/CAlert.js.map +0 -1
- package/dist/esm/components/alert/CAlertHeading.d.ts +0 -12
- package/dist/esm/components/alert/CAlertHeading.js +0 -20
- package/dist/esm/components/alert/CAlertHeading.js.map +0 -1
- package/dist/esm/components/alert/CAlertLink.d.ts +0 -8
- package/dist/esm/components/alert/CAlertLink.js +0 -20
- package/dist/esm/components/alert/CAlertLink.js.map +0 -1
- package/dist/esm/components/alert/index.d.ts +0 -4
- package/dist/esm/components/avatar/CAvatar.d.ts +0 -41
- package/dist/esm/components/avatar/CAvatar.js +0 -34
- package/dist/esm/components/avatar/CAvatar.js.map +0 -1
- package/dist/esm/components/avatar/index.d.ts +0 -2
- package/dist/esm/components/backdrop/CBackdrop.d.ts +0 -12
- package/dist/esm/components/backdrop/CBackdrop.js +0 -33
- package/dist/esm/components/backdrop/CBackdrop.js.map +0 -1
- package/dist/esm/components/backdrop/index.d.ts +0 -2
- package/dist/esm/components/badge/CBadge.d.ts +0 -39
- package/dist/esm/components/badge/CBadge.js +0 -36
- package/dist/esm/components/badge/CBadge.js.map +0 -1
- package/dist/esm/components/badge/index.d.ts +0 -2
- package/dist/esm/components/breadcrumb/CBreadcrumb.d.ts +0 -8
- package/dist/esm/components/breadcrumb/CBreadcrumb.js +0 -20
- package/dist/esm/components/breadcrumb/CBreadcrumb.js.map +0 -1
- package/dist/esm/components/breadcrumb/CBreadcrumbItem.d.ts +0 -16
- package/dist/esm/components/breadcrumb/CBreadcrumbItem.js +0 -24
- package/dist/esm/components/breadcrumb/CBreadcrumbItem.js.map +0 -1
- package/dist/esm/components/breadcrumb/index.d.ts +0 -3
- package/dist/esm/components/button/CButton.d.ts +0 -55
- package/dist/esm/components/button/CButton.js +0 -28
- package/dist/esm/components/button/CButton.js.map +0 -1
- package/dist/esm/components/button/index.d.ts +0 -2
- package/dist/esm/components/button-group/CButtonGroup.d.ts +0 -16
- package/dist/esm/components/button-group/CButtonGroup.js +0 -22
- package/dist/esm/components/button-group/CButtonGroup.js.map +0 -1
- package/dist/esm/components/button-group/CButtonToolbar.d.ts +0 -8
- package/dist/esm/components/button-group/CButtonToolbar.js +0 -19
- package/dist/esm/components/button-group/CButtonToolbar.js.map +0 -1
- package/dist/esm/components/button-group/index.d.ts +0 -3
- package/dist/esm/components/callout/CCallout.d.ts +0 -15
- package/dist/esm/components/callout/CCallout.js +0 -24
- package/dist/esm/components/callout/CCallout.js.map +0 -1
- package/dist/esm/components/callout/index.d.ts +0 -2
- package/dist/esm/components/card/CCard.d.ts +0 -21
- package/dist/esm/components/card/CCard.js +0 -26
- package/dist/esm/components/card/CCard.js.map +0 -1
- package/dist/esm/components/card/CCardBody.d.ts +0 -8
- package/dist/esm/components/card/CCardBody.js +0 -19
- package/dist/esm/components/card/CCardBody.js.map +0 -1
- package/dist/esm/components/card/CCardFooter.d.ts +0 -8
- package/dist/esm/components/card/CCardFooter.js +0 -19
- package/dist/esm/components/card/CCardFooter.js.map +0 -1
- package/dist/esm/components/card/CCardGroup.d.ts +0 -8
- package/dist/esm/components/card/CCardGroup.js +0 -19
- package/dist/esm/components/card/CCardGroup.js.map +0 -1
- package/dist/esm/components/card/CCardHeader.d.ts +0 -12
- package/dist/esm/components/card/CCardHeader.js +0 -20
- package/dist/esm/components/card/CCardHeader.js.map +0 -1
- package/dist/esm/components/card/CCardImage.d.ts +0 -16
- package/dist/esm/components/card/CCardImage.js +0 -21
- package/dist/esm/components/card/CCardImage.js.map +0 -1
- package/dist/esm/components/card/CCardImageOverlay.d.ts +0 -8
- package/dist/esm/components/card/CCardImageOverlay.js +0 -19
- package/dist/esm/components/card/CCardImageOverlay.js.map +0 -1
- package/dist/esm/components/card/CCardLink.d.ts +0 -12
- package/dist/esm/components/card/CCardLink.js +0 -20
- package/dist/esm/components/card/CCardLink.js.map +0 -1
- package/dist/esm/components/card/CCardSubtitle.d.ts +0 -12
- package/dist/esm/components/card/CCardSubtitle.js +0 -20
- package/dist/esm/components/card/CCardSubtitle.js.map +0 -1
- package/dist/esm/components/card/CCardText.d.ts +0 -12
- package/dist/esm/components/card/CCardText.js +0 -20
- package/dist/esm/components/card/CCardText.js.map +0 -1
- package/dist/esm/components/card/CCardTitle.d.ts +0 -12
- package/dist/esm/components/card/CCardTitle.js +0 -20
- package/dist/esm/components/card/CCardTitle.js.map +0 -1
- package/dist/esm/components/card/index.d.ts +0 -12
- package/dist/esm/components/carousel/CCarousel.d.ts +0 -59
- package/dist/esm/components/carousel/CCarousel.js +0 -157
- package/dist/esm/components/carousel/CCarousel.js.map +0 -1
- package/dist/esm/components/carousel/CCarouselCaption.d.ts +0 -8
- package/dist/esm/components/carousel/CCarouselCaption.js +0 -18
- package/dist/esm/components/carousel/CCarouselCaption.js.map +0 -1
- package/dist/esm/components/carousel/CCarouselItem.d.ts +0 -20
- package/dist/esm/components/carousel/CCarouselItem.js +0 -90
- package/dist/esm/components/carousel/CCarouselItem.js.map +0 -1
- package/dist/esm/components/carousel/index.d.ts +0 -4
- package/dist/esm/components/close-button/CCloseButton.d.ts +0 -16
- package/dist/esm/components/close-button/CCloseButton.js +0 -22
- package/dist/esm/components/close-button/CCloseButton.js.map +0 -1
- package/dist/esm/components/close-button/index.d.ts +0 -2
- package/dist/esm/components/collapse/CCollapse.d.ts +0 -24
- package/dist/esm/components/collapse/CCollapse.js +0 -86
- package/dist/esm/components/collapse/CCollapse.js.map +0 -1
- package/dist/esm/components/collapse/index.d.ts +0 -2
- package/dist/esm/components/dropdown/CDropdown.d.ts +0 -82
- package/dist/esm/components/dropdown/CDropdown.js +0 -87
- package/dist/esm/components/dropdown/CDropdown.js.map +0 -1
- package/dist/esm/components/dropdown/CDropdownDivider.d.ts +0 -8
- package/dist/esm/components/dropdown/CDropdownDivider.js +0 -18
- package/dist/esm/components/dropdown/CDropdownDivider.js.map +0 -1
- package/dist/esm/components/dropdown/CDropdownHeader.d.ts +0 -12
- package/dist/esm/components/dropdown/CDropdownHeader.js +0 -20
- package/dist/esm/components/dropdown/CDropdownHeader.js.map +0 -1
- package/dist/esm/components/dropdown/CDropdownItem.d.ts +0 -13
- package/dist/esm/components/dropdown/CDropdownItem.js +0 -21
- package/dist/esm/components/dropdown/CDropdownItem.js.map +0 -1
- package/dist/esm/components/dropdown/CDropdownItemPlain.d.ts +0 -12
- package/dist/esm/components/dropdown/CDropdownItemPlain.js +0 -20
- package/dist/esm/components/dropdown/CDropdownItemPlain.js.map +0 -1
- package/dist/esm/components/dropdown/CDropdownMenu.d.ts +0 -13
- package/dist/esm/components/dropdown/CDropdownMenu.js +0 -102
- package/dist/esm/components/dropdown/CDropdownMenu.js.map +0 -1
- package/dist/esm/components/dropdown/CDropdownToggle.d.ts +0 -24
- package/dist/esm/components/dropdown/CDropdownToggle.js +0 -55
- package/dist/esm/components/dropdown/CDropdownToggle.js.map +0 -1
- package/dist/esm/components/dropdown/index.d.ts +0 -8
- package/dist/esm/components/footer/CFooter.d.ts +0 -12
- package/dist/esm/components/footer/CFooter.js +0 -21
- package/dist/esm/components/footer/CFooter.js.map +0 -1
- package/dist/esm/components/footer/index.d.ts +0 -2
- package/dist/esm/components/form/CForm.d.ts +0 -12
- package/dist/esm/components/form/CForm.js +0 -20
- package/dist/esm/components/form/CForm.js.map +0 -1
- package/dist/esm/components/form/CFormCheck.d.ts +0 -68
- package/dist/esm/components/form/CFormCheck.js +0 -58
- package/dist/esm/components/form/CFormCheck.js.map +0 -1
- package/dist/esm/components/form/CFormControlValidation.d.ts +0 -46
- package/dist/esm/components/form/CFormControlValidation.js +0 -26
- package/dist/esm/components/form/CFormControlValidation.js.map +0 -1
- package/dist/esm/components/form/CFormControlWrapper.d.ts +0 -37
- package/dist/esm/components/form/CFormControlWrapper.js +0 -27
- package/dist/esm/components/form/CFormControlWrapper.js.map +0 -1
- package/dist/esm/components/form/CFormFeedback.d.ts +0 -24
- package/dist/esm/components/form/CFormFeedback.js +0 -27
- package/dist/esm/components/form/CFormFeedback.js.map +0 -1
- package/dist/esm/components/form/CFormFloating.d.ts +0 -8
- package/dist/esm/components/form/CFormFloating.js +0 -19
- package/dist/esm/components/form/CFormFloating.js.map +0 -1
- package/dist/esm/components/form/CFormInput.d.ts +0 -43
- package/dist/esm/components/form/CFormInput.js +0 -29
- package/dist/esm/components/form/CFormInput.js.map +0 -1
- package/dist/esm/components/form/CFormLabel.d.ts +0 -12
- package/dist/esm/components/form/CFormLabel.js +0 -20
- package/dist/esm/components/form/CFormLabel.js.map +0 -1
- package/dist/esm/components/form/CFormRange.d.ts +0 -44
- package/dist/esm/components/form/CFormRange.js +0 -22
- package/dist/esm/components/form/CFormRange.js.map +0 -1
- package/dist/esm/components/form/CFormSelect.d.ts +0 -40
- package/dist/esm/components/form/CFormSelect.js +0 -28
- package/dist/esm/components/form/CFormSelect.js.map +0 -1
- package/dist/esm/components/form/CFormSwitch.d.ts +0 -32
- package/dist/esm/components/form/CFormSwitch.js +0 -37
- package/dist/esm/components/form/CFormSwitch.js.map +0 -1
- package/dist/esm/components/form/CFormText.d.ts +0 -12
- package/dist/esm/components/form/CFormText.js +0 -20
- package/dist/esm/components/form/CFormText.js.map +0 -1
- package/dist/esm/components/form/CFormTextarea.d.ts +0 -31
- package/dist/esm/components/form/CFormTextarea.js +0 -21
- package/dist/esm/components/form/CFormTextarea.js.map +0 -1
- package/dist/esm/components/form/CInputGroup.d.ts +0 -12
- package/dist/esm/components/form/CInputGroup.js +0 -23
- package/dist/esm/components/form/CInputGroup.js.map +0 -1
- package/dist/esm/components/form/CInputGroupText.d.ts +0 -12
- package/dist/esm/components/form/CInputGroupText.js +0 -20
- package/dist/esm/components/form/CInputGroupText.js.map +0 -1
- package/dist/esm/components/form/index.d.ts +0 -16
- package/dist/esm/components/grid/CCol.d.ts +0 -52
- package/dist/esm/components/grid/CCol.js +0 -73
- package/dist/esm/components/grid/CCol.js.map +0 -1
- package/dist/esm/components/grid/CContainer.d.ts +0 -32
- package/dist/esm/components/grid/CContainer.js +0 -39
- package/dist/esm/components/grid/CContainer.js.map +0 -1
- package/dist/esm/components/grid/CRow.d.ts +0 -50
- package/dist/esm/components/grid/CRow.js +0 -59
- package/dist/esm/components/grid/CRow.js.map +0 -1
- package/dist/esm/components/grid/index.d.ts +0 -4
- package/dist/esm/components/header/CHeader.d.ts +0 -16
- package/dist/esm/components/header/CHeader.js +0 -39
- package/dist/esm/components/header/CHeader.js.map +0 -1
- package/dist/esm/components/header/CHeaderBrand.d.ts +0 -12
- package/dist/esm/components/header/CHeaderBrand.js +0 -20
- package/dist/esm/components/header/CHeaderBrand.js.map +0 -1
- package/dist/esm/components/header/CHeaderDivider.d.ts +0 -8
- package/dist/esm/components/header/CHeaderDivider.js +0 -18
- package/dist/esm/components/header/CHeaderDivider.js.map +0 -1
- package/dist/esm/components/header/CHeaderNav.d.ts +0 -12
- package/dist/esm/components/header/CHeaderNav.js +0 -20
- package/dist/esm/components/header/CHeaderNav.js.map +0 -1
- package/dist/esm/components/header/CHeaderText.d.ts +0 -8
- package/dist/esm/components/header/CHeaderText.js +0 -19
- package/dist/esm/components/header/CHeaderText.js.map +0 -1
- package/dist/esm/components/header/CHeaderToggler.d.ts +0 -8
- package/dist/esm/components/header/CHeaderToggler.js +0 -19
- package/dist/esm/components/header/CHeaderToggler.js.map +0 -1
- package/dist/esm/components/header/index.d.ts +0 -7
- package/dist/esm/components/image/CImage.d.ts +0 -24
- package/dist/esm/components/image/CImage.js +0 -29
- package/dist/esm/components/image/CImage.js.map +0 -1
- package/dist/esm/components/image/index.d.ts +0 -2
- package/dist/esm/components/index.d.ts +0 -36
- package/dist/esm/components/link/CLink.d.ts +0 -24
- package/dist/esm/components/link/CLink.js +0 -28
- package/dist/esm/components/link/CLink.js.map +0 -1
- package/dist/esm/components/link/index.d.ts +0 -2
- package/dist/esm/components/list-group/CListGroup.d.ts +0 -20
- package/dist/esm/components/list-group/CListGroup.js +0 -33
- package/dist/esm/components/list-group/CListGroup.js.map +0 -1
- package/dist/esm/components/list-group/CListGroupItem.d.ts +0 -27
- package/dist/esm/components/list-group/CListGroupItem.js +0 -38
- package/dist/esm/components/list-group/CListGroupItem.js.map +0 -1
- package/dist/esm/components/list-group/index.d.ts +0 -3
- package/dist/esm/components/modal/CModal.d.ts +0 -70
- package/dist/esm/components/modal/CModal.js +0 -143
- package/dist/esm/components/modal/CModal.js.map +0 -1
- package/dist/esm/components/modal/CModalBody.d.ts +0 -8
- package/dist/esm/components/modal/CModalBody.js +0 -19
- package/dist/esm/components/modal/CModalBody.js.map +0 -1
- package/dist/esm/components/modal/CModalContent.d.ts +0 -8
- package/dist/esm/components/modal/CModalContent.js +0 -19
- package/dist/esm/components/modal/CModalContent.js.map +0 -1
- package/dist/esm/components/modal/CModalDialog.d.ts +0 -24
- package/dist/esm/components/modal/CModalDialog.js +0 -35
- package/dist/esm/components/modal/CModalDialog.js.map +0 -1
- package/dist/esm/components/modal/CModalFooter.d.ts +0 -8
- package/dist/esm/components/modal/CModalFooter.js +0 -19
- package/dist/esm/components/modal/CModalFooter.js.map +0 -1
- package/dist/esm/components/modal/CModalHeader.d.ts +0 -12
- package/dist/esm/components/modal/CModalHeader.js +0 -25
- package/dist/esm/components/modal/CModalHeader.js.map +0 -1
- package/dist/esm/components/modal/CModalTitle.d.ts +0 -12
- package/dist/esm/components/modal/CModalTitle.js +0 -20
- package/dist/esm/components/modal/CModalTitle.js.map +0 -1
- package/dist/esm/components/modal/index.d.ts +0 -8
- package/dist/esm/components/nav/CNav.d.ts +0 -20
- package/dist/esm/components/nav/CNav.js +0 -26
- package/dist/esm/components/nav/CNav.js.map +0 -1
- package/dist/esm/components/nav/CNavGroup.d.ts +0 -25
- package/dist/esm/components/nav/CNavGroup.js +0 -81
- package/dist/esm/components/nav/CNavGroup.js.map +0 -1
- package/dist/esm/components/nav/CNavGroupItems.d.ts +0 -8
- package/dist/esm/components/nav/CNavGroupItems.js +0 -19
- package/dist/esm/components/nav/CNavGroupItems.js.map +0 -1
- package/dist/esm/components/nav/CNavItem.d.ts +0 -3
- package/dist/esm/components/nav/CNavItem.js +0 -23
- package/dist/esm/components/nav/CNavItem.js.map +0 -1
- package/dist/esm/components/nav/CNavLink.d.ts +0 -29
- package/dist/esm/components/nav/CNavLink.js +0 -31
- package/dist/esm/components/nav/CNavLink.js.map +0 -1
- package/dist/esm/components/nav/CNavTitle.d.ts +0 -8
- package/dist/esm/components/nav/CNavTitle.js +0 -19
- package/dist/esm/components/nav/CNavTitle.js.map +0 -1
- package/dist/esm/components/nav/index.d.ts +0 -7
- package/dist/esm/components/navbar/CNavbar.d.ts +0 -35
- package/dist/esm/components/navbar/CNavbar.js +0 -51
- package/dist/esm/components/navbar/CNavbar.js.map +0 -1
- package/dist/esm/components/navbar/CNavbarBrand.d.ts +0 -17
- package/dist/esm/components/navbar/CNavbarBrand.js +0 -21
- package/dist/esm/components/navbar/CNavbarBrand.js.map +0 -1
- package/dist/esm/components/navbar/CNavbarNav.d.ts +0 -12
- package/dist/esm/components/navbar/CNavbarNav.js +0 -20
- package/dist/esm/components/navbar/CNavbarNav.js.map +0 -1
- package/dist/esm/components/navbar/CNavbarText.d.ts +0 -8
- package/dist/esm/components/navbar/CNavbarText.js +0 -19
- package/dist/esm/components/navbar/CNavbarText.js.map +0 -1
- package/dist/esm/components/navbar/CNavbarToggler.d.ts +0 -8
- package/dist/esm/components/navbar/CNavbarToggler.js +0 -19
- package/dist/esm/components/navbar/CNavbarToggler.js.map +0 -1
- package/dist/esm/components/navbar/index.d.ts +0 -6
- package/dist/esm/components/offcanvas/COffcanvas.d.ts +0 -40
- package/dist/esm/components/offcanvas/COffcanvas.js +0 -86
- package/dist/esm/components/offcanvas/COffcanvas.js.map +0 -1
- package/dist/esm/components/offcanvas/COffcanvasBody.d.ts +0 -8
- package/dist/esm/components/offcanvas/COffcanvasBody.js +0 -19
- package/dist/esm/components/offcanvas/COffcanvasBody.js.map +0 -1
- package/dist/esm/components/offcanvas/COffcanvasHeader.d.ts +0 -8
- package/dist/esm/components/offcanvas/COffcanvasHeader.js +0 -19
- package/dist/esm/components/offcanvas/COffcanvasHeader.js.map +0 -1
- package/dist/esm/components/offcanvas/COffcanvasTitle.d.ts +0 -12
- package/dist/esm/components/offcanvas/COffcanvasTitle.js +0 -20
- package/dist/esm/components/offcanvas/COffcanvasTitle.js.map +0 -1
- package/dist/esm/components/offcanvas/index.d.ts +0 -5
- package/dist/esm/components/pagination/CPagination.d.ts +0 -16
- package/dist/esm/components/pagination/CPagination.js +0 -26
- package/dist/esm/components/pagination/CPagination.js.map +0 -1
- package/dist/esm/components/pagination/CPaginationItem.d.ts +0 -16
- package/dist/esm/components/pagination/CPaginationItem.js +0 -25
- package/dist/esm/components/pagination/CPaginationItem.js.map +0 -1
- package/dist/esm/components/pagination/index.d.ts +0 -3
- package/dist/esm/components/placeholder/CPlaceholder.d.ts +0 -51
- package/dist/esm/components/placeholder/CPlaceholder.js +0 -48
- package/dist/esm/components/placeholder/CPlaceholder.js.map +0 -1
- package/dist/esm/components/placeholder/index.d.ts +0 -2
- package/dist/esm/components/popover/CPopover.d.ts +0 -43
- package/dist/esm/components/popover/CPopover.js +0 -85
- package/dist/esm/components/popover/CPopover.js.map +0 -1
- package/dist/esm/components/popover/index.d.ts +0 -2
- package/dist/esm/components/progress/CProgress.d.ts +0 -25
- package/dist/esm/components/progress/CProgress.js +0 -27
- package/dist/esm/components/progress/CProgress.js.map +0 -1
- package/dist/esm/components/progress/CProgressBar.d.ts +0 -27
- package/dist/esm/components/progress/CProgressBar.js +0 -29
- package/dist/esm/components/progress/CProgressBar.js.map +0 -1
- package/dist/esm/components/progress/index.d.ts +0 -3
- package/dist/esm/components/sidebar/CSidebar.d.ts +0 -44
- package/dist/esm/components/sidebar/CSidebar.js +0 -117
- package/dist/esm/components/sidebar/CSidebar.js.map +0 -1
- package/dist/esm/components/sidebar/CSidebarBrand.d.ts +0 -8
- package/dist/esm/components/sidebar/CSidebarBrand.js +0 -19
- package/dist/esm/components/sidebar/CSidebarBrand.js.map +0 -1
- package/dist/esm/components/sidebar/CSidebarFooter.d.ts +0 -8
- package/dist/esm/components/sidebar/CSidebarFooter.js +0 -19
- package/dist/esm/components/sidebar/CSidebarFooter.js.map +0 -1
- package/dist/esm/components/sidebar/CSidebarHeader.d.ts +0 -8
- package/dist/esm/components/sidebar/CSidebarHeader.js +0 -19
- package/dist/esm/components/sidebar/CSidebarHeader.js.map +0 -1
- package/dist/esm/components/sidebar/CSidebarNav.d.ts +0 -14
- package/dist/esm/components/sidebar/CSidebarNav.js +0 -34
- package/dist/esm/components/sidebar/CSidebarNav.js.map +0 -1
- package/dist/esm/components/sidebar/CSidebarToggler.d.ts +0 -8
- package/dist/esm/components/sidebar/CSidebarToggler.js +0 -19
- package/dist/esm/components/sidebar/CSidebarToggler.js.map +0 -1
- package/dist/esm/components/sidebar/index.d.ts +0 -7
- package/dist/esm/components/spinner/CSpinner.d.ts +0 -31
- package/dist/esm/components/spinner/CSpinner.js +0 -25
- package/dist/esm/components/spinner/CSpinner.js.map +0 -1
- package/dist/esm/components/spinner/index.d.ts +0 -2
- package/dist/esm/components/table/CTable.d.ts +0 -132
- package/dist/esm/components/table/CTable.js +0 -94
- package/dist/esm/components/table/CTable.js.map +0 -1
- package/dist/esm/components/table/CTableBody.d.ts +0 -15
- package/dist/esm/components/table/CTableBody.js +0 -24
- package/dist/esm/components/table/CTableBody.js.map +0 -1
- package/dist/esm/components/table/CTableCaption.d.ts +0 -2
- package/dist/esm/components/table/CTableCaption.js +0 -16
- package/dist/esm/components/table/CTableCaption.js.map +0 -1
- package/dist/esm/components/table/CTableDataCell.d.ts +0 -27
- package/dist/esm/components/table/CTableDataCell.js +0 -29
- package/dist/esm/components/table/CTableDataCell.js.map +0 -1
- package/dist/esm/components/table/CTableFoot.d.ts +0 -15
- package/dist/esm/components/table/CTableFoot.js +0 -24
- package/dist/esm/components/table/CTableFoot.js.map +0 -1
- package/dist/esm/components/table/CTableHead.d.ts +0 -15
- package/dist/esm/components/table/CTableHead.js +0 -24
- package/dist/esm/components/table/CTableHead.js.map +0 -1
- package/dist/esm/components/table/CTableHeaderCell.d.ts +0 -15
- package/dist/esm/components/table/CTableHeaderCell.js +0 -24
- package/dist/esm/components/table/CTableHeaderCell.js.map +0 -1
- package/dist/esm/components/table/CTableResponsiveWrapper.d.ts +0 -9
- package/dist/esm/components/table/CTableResponsiveWrapper.js +0 -20
- package/dist/esm/components/table/CTableResponsiveWrapper.js.map +0 -1
- package/dist/esm/components/table/CTableRow.d.ts +0 -23
- package/dist/esm/components/table/CTableRow.js +0 -28
- package/dist/esm/components/table/CTableRow.js.map +0 -1
- package/dist/esm/components/table/index.d.ts +0 -9
- package/dist/esm/components/tabs/CTabContent.d.ts +0 -8
- package/dist/esm/components/tabs/CTabContent.js +0 -19
- package/dist/esm/components/tabs/CTabContent.js.map +0 -1
- package/dist/esm/components/tabs/CTabPane.d.ts +0 -20
- package/dist/esm/components/tabs/CTabPane.js +0 -38
- package/dist/esm/components/tabs/CTabPane.js.map +0 -1
- package/dist/esm/components/tabs/index.d.ts +0 -3
- package/dist/esm/components/toast/CToast.d.ts +0 -53
- package/dist/esm/components/toast/CToast.js +0 -79
- package/dist/esm/components/toast/CToast.js.map +0 -1
- package/dist/esm/components/toast/CToastBody.d.ts +0 -8
- package/dist/esm/components/toast/CToastBody.js +0 -19
- package/dist/esm/components/toast/CToastBody.js.map +0 -1
- package/dist/esm/components/toast/CToastClose.d.ts +0 -12
- package/dist/esm/components/toast/CToastClose.js +0 -17
- package/dist/esm/components/toast/CToastClose.js.map +0 -1
- package/dist/esm/components/toast/CToastHeader.d.ts +0 -12
- package/dist/esm/components/toast/CToastHeader.js +0 -23
- package/dist/esm/components/toast/CToastHeader.js.map +0 -1
- package/dist/esm/components/toast/CToaster.d.ts +0 -18
- package/dist/esm/components/toast/CToaster.js +0 -67
- package/dist/esm/components/toast/CToaster.js.map +0 -1
- package/dist/esm/components/toast/index.d.ts +0 -6
- package/dist/esm/components/tooltip/CTooltip.d.ts +0 -39
- package/dist/esm/components/tooltip/CTooltip.js +0 -82
- package/dist/esm/components/tooltip/CTooltip.js.map +0 -1
- package/dist/esm/components/tooltip/index.d.ts +0 -2
- package/dist/esm/components/widgets/CWidgetStatsA.d.ts +0 -31
- package/dist/esm/components/widgets/CWidgetStatsA.js +0 -33
- package/dist/esm/components/widgets/CWidgetStatsA.js.map +0 -1
- package/dist/esm/components/widgets/CWidgetStatsB.d.ts +0 -38
- package/dist/esm/components/widgets/CWidgetStatsB.js +0 -31
- package/dist/esm/components/widgets/CWidgetStatsB.js.map +0 -1
- package/dist/esm/components/widgets/CWidgetStatsC.d.ts +0 -38
- package/dist/esm/components/widgets/CWidgetStatsC.js +0 -31
- package/dist/esm/components/widgets/CWidgetStatsC.js.map +0 -1
- package/dist/esm/components/widgets/CWidgetStatsD.d.ts +0 -32
- package/dist/esm/components/widgets/CWidgetStatsD.js +0 -42
- package/dist/esm/components/widgets/CWidgetStatsD.js.map +0 -1
- package/dist/esm/components/widgets/CWidgetStatsE.d.ts +0 -20
- package/dist/esm/components/widgets/CWidgetStatsE.js +0 -28
- package/dist/esm/components/widgets/CWidgetStatsE.js.map +0 -1
- package/dist/esm/components/widgets/CWidgetStatsF.d.ts +0 -35
- package/dist/esm/components/widgets/CWidgetStatsF.js +0 -34
- package/dist/esm/components/widgets/CWidgetStatsF.js.map +0 -1
- package/dist/esm/components/widgets/index.d.ts +0 -7
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -128
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -9
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/extends.js +0 -17
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -10
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -10
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/createPopper.js +0 -259
- package/dist/esm/node_modules/@popperjs/core/lib/createPopper.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/contains.js +0 -27
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/contains.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +0 -45
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +0 -73
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +0 -61
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +0 -8
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +0 -10
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +0 -33
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +0 -9
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +0 -29
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +0 -6
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +0 -15
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +0 -72
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +0 -23
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +0 -20
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +0 -35
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +0 -15
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getWindow.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +0 -14
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +0 -17
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +0 -24
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +0 -8
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +0 -14
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +0 -8
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +0 -30
- package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/enums.js +0 -34
- package/dist/esm/node_modules/@popperjs/core/lib/enums.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +0 -88
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/applyStyles.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/arrow.js +0 -104
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/arrow.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +0 -184
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/computeStyles.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +0 -52
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/eventListeners.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/flip.js +0 -150
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/flip.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/hide.js +0 -64
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/hide.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/offset.js +0 -57
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/offset.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +0 -28
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +0 -145
- package/dist/esm/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/popper.js +0 -28
- package/dist/esm/node_modules/@popperjs/core/lib/popper.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +0 -51
- package/dist/esm/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/computeOffsets.js +0 -72
- package/dist/esm/node_modules/@popperjs/core/lib/utils/computeOffsets.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/debounce.js +0 -18
- package/dist/esm/node_modules/@popperjs/core/lib/utils/debounce.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/detectOverflow.js +0 -68
- package/dist/esm/node_modules/@popperjs/core/lib/utils/detectOverflow.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +0 -9
- package/dist/esm/node_modules/@popperjs/core/lib/utils/expandToHashMap.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/format.js +0 -12
- package/dist/esm/node_modules/@popperjs/core/lib/utils/format.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getAltAxis.js +0 -6
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getAltAxis.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +0 -6
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getBasePlacement.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +0 -11
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +0 -6
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +0 -14
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +0 -12
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getVariation.js +0 -6
- package/dist/esm/node_modules/@popperjs/core/lib/utils/getVariation.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/math.js +0 -6
- package/dist/esm/node_modules/@popperjs/core/lib/utils/math.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/mergeByName.js +0 -17
- package/dist/esm/node_modules/@popperjs/core/lib/utils/mergeByName.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +0 -8
- package/dist/esm/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/orderModifiers.js +0 -47
- package/dist/esm/node_modules/@popperjs/core/lib/utils/orderModifiers.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +0 -11
- package/dist/esm/node_modules/@popperjs/core/lib/utils/rectToClientRect.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/uniqueBy.js +0 -14
- package/dist/esm/node_modules/@popperjs/core/lib/utils/uniqueBy.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/userAgent.js +0 -14
- package/dist/esm/node_modules/@popperjs/core/lib/utils/userAgent.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/validateModifiers.js +0 -85
- package/dist/esm/node_modules/@popperjs/core/lib/utils/validateModifiers.js.map +0 -1
- package/dist/esm/node_modules/@popperjs/core/lib/utils/within.js +0 -12
- package/dist/esm/node_modules/@popperjs/core/lib/utils/within.js.map +0 -1
- package/dist/esm/node_modules/classnames/index.js +0 -63
- package/dist/esm/node_modules/classnames/index.js.map +0 -1
- package/dist/esm/node_modules/dom-helpers/esm/addClass.js +0 -15
- package/dist/esm/node_modules/dom-helpers/esm/addClass.js.map +0 -1
- package/dist/esm/node_modules/dom-helpers/esm/hasClass.js +0 -13
- package/dist/esm/node_modules/dom-helpers/esm/hasClass.js.map +0 -1
- package/dist/esm/node_modules/dom-helpers/esm/removeClass.js +0 -23
- package/dist/esm/node_modules/dom-helpers/esm/removeClass.js.map +0 -1
- package/dist/esm/node_modules/object-assign/index.js +0 -100
- package/dist/esm/node_modules/object-assign/index.js.map +0 -1
- package/dist/esm/node_modules/prop-types/checkPropTypes.js +0 -116
- package/dist/esm/node_modules/prop-types/checkPropTypes.js.map +0 -1
- package/dist/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -75
- package/dist/esm/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
- package/dist/esm/node_modules/prop-types/factoryWithTypeCheckers.js +0 -626
- package/dist/esm/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
- package/dist/esm/node_modules/prop-types/index.js +0 -26
- package/dist/esm/node_modules/prop-types/index.js.map +0 -1
- package/dist/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -22
- package/dist/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
- package/dist/esm/node_modules/prop-types/lib/has.js +0 -12
- package/dist/esm/node_modules/prop-types/lib/has.js.map +0 -1
- package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -191
- package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -27
- package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/dist/esm/node_modules/prop-types/node_modules/react-is/index.js +0 -22
- package/dist/esm/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
- package/dist/esm/node_modules/react-fast-compare/index.js +0 -137
- package/dist/esm/node_modules/react-fast-compare/index.js.map +0 -1
- package/dist/esm/node_modules/react-popper/lib/esm/Manager.js +0 -31
- package/dist/esm/node_modules/react-popper/lib/esm/Manager.js.map +0 -1
- package/dist/esm/node_modules/react-popper/lib/esm/Popper.js +0 -79
- package/dist/esm/node_modules/react-popper/lib/esm/Popper.js.map +0 -1
- package/dist/esm/node_modules/react-popper/lib/esm/Reference.js +0 -30
- package/dist/esm/node_modules/react-popper/lib/esm/Reference.js.map +0 -1
- package/dist/esm/node_modules/react-popper/lib/esm/usePopper.js +0 -106
- package/dist/esm/node_modules/react-popper/lib/esm/usePopper.js.map +0 -1
- package/dist/esm/node_modules/react-popper/lib/esm/utils.js +0 -56
- package/dist/esm/node_modules/react-popper/lib/esm/utils.js.map +0 -1
- package/dist/esm/node_modules/react-transition-group/esm/CSSTransition.js +0 -415
- package/dist/esm/node_modules/react-transition-group/esm/CSSTransition.js.map +0 -1
- package/dist/esm/node_modules/react-transition-group/esm/ReplaceTransition.js +0 -140
- package/dist/esm/node_modules/react-transition-group/esm/ReplaceTransition.js.map +0 -1
- package/dist/esm/node_modules/react-transition-group/esm/SwitchTransition.js +0 -259
- package/dist/esm/node_modules/react-transition-group/esm/SwitchTransition.js.map +0 -1
- package/dist/esm/node_modules/react-transition-group/esm/Transition.js +0 -629
- package/dist/esm/node_modules/react-transition-group/esm/Transition.js.map +0 -1
- package/dist/esm/node_modules/react-transition-group/esm/TransitionGroup.js +0 -192
- package/dist/esm/node_modules/react-transition-group/esm/TransitionGroup.js.map +0 -1
- package/dist/esm/node_modules/react-transition-group/esm/TransitionGroupContext.js +0 -6
- package/dist/esm/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +0 -1
- package/dist/esm/node_modules/react-transition-group/esm/config.js +0 -6
- package/dist/esm/node_modules/react-transition-group/esm/config.js.map +0 -1
- package/dist/esm/node_modules/react-transition-group/esm/utils/ChildMapping.js +0 -144
- package/dist/esm/node_modules/react-transition-group/esm/utils/ChildMapping.js.map +0 -1
- package/dist/esm/node_modules/react-transition-group/esm/utils/PropTypes.js +0 -23
- package/dist/esm/node_modules/react-transition-group/esm/utils/PropTypes.js.map +0 -1
- package/dist/esm/node_modules/react-transition-group/esm/utils/reflow.js +0 -6
- package/dist/esm/node_modules/react-transition-group/esm/utils/reflow.js.map +0 -1
- package/dist/esm/node_modules/tslib/tslib.es6.js +0 -50
- package/dist/esm/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/esm/node_modules/warning/warning.js +0 -63
- package/dist/esm/node_modules/warning/warning.js.map +0 -1
- package/dist/esm/utils/hooks/index.d.ts +0 -2
- package/dist/esm/utils/hooks/useForkedRef.d.ts +0 -7
- package/dist/esm/utils/hooks/useForkedRef.js +0 -46
- package/dist/esm/utils/hooks/useForkedRef.js.map +0 -1
- package/dist/esm/utils/index.d.ts +0 -2
- package/dist/esm/utils/isVisible.d.ts +0 -2
- package/dist/esm/utils/isVisible.js +0 -10
- package/dist/esm/utils/isVisible.js.map +0 -1
- package/dist/utils/hooks/index.d.ts +0 -2
- package/dist/utils/hooks/useForkedRef.d.ts +0 -7
- package/dist/utils/isVisible.d.ts +0 -2
- package/src/components/accordion/CAccordionCollapse.tsx +0 -19
- package/src/components/accordion/__tests__/CAccordionCollapse.spec.tsx +0 -10
package/dist/index.js
CHANGED
|
@@ -1328,10 +1328,9 @@ var classNames = classnamesExports;
|
|
|
1328
1328
|
|
|
1329
1329
|
var CAccordionContext = React.createContext({});
|
|
1330
1330
|
var CAccordion = React.forwardRef(function (_a, ref) {
|
|
1331
|
-
var children = _a.children,
|
|
1332
|
-
var
|
|
1333
|
-
|
|
1334
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
1331
|
+
var children = _a.children, activeItemKey = _a.activeItemKey, _b = _a.alwaysOpen, alwaysOpen = _b === void 0 ? false : _b, className = _a.className, flush = _a.flush, rest = __rest(_a, ["children", "activeItemKey", "alwaysOpen", "className", "flush"]);
|
|
1332
|
+
var _c = React.useState(activeItemKey), _activeItemKey = _c[0], setActiveKey = _c[1];
|
|
1333
|
+
return (React.createElement("div", __assign({ className: classNames('accordion', { 'accordion-flush': flush }, className) }, rest, { ref: ref }),
|
|
1335
1334
|
React.createElement(CAccordionContext.Provider, { value: { _activeItemKey: _activeItemKey, alwaysOpen: alwaysOpen, setActiveKey: setActiveKey } }, children)));
|
|
1336
1335
|
});
|
|
1337
1336
|
CAccordion.propTypes = {
|
|
@@ -1346,7 +1345,7 @@ CAccordion.displayName = 'CAccordion';
|
|
|
1346
1345
|
var CAccordionItemContext = React.createContext({});
|
|
1347
1346
|
var CAccordionItem = React.forwardRef(function (_a, ref) {
|
|
1348
1347
|
var children = _a.children, className = _a.className, itemKey = _a.itemKey, rest = __rest(_a, ["children", "className", "itemKey"]);
|
|
1349
|
-
var _itemKey = React.useRef(itemKey ? itemKey : Math.random().toString(36).
|
|
1348
|
+
var _itemKey = React.useRef(itemKey !== null && itemKey !== void 0 ? itemKey : Math.random().toString(36).slice(2, 11));
|
|
1350
1349
|
var _b = React.useContext(CAccordionContext), _activeItemKey = _b._activeItemKey, alwaysOpen = _b.alwaysOpen, setActiveKey = _b.setActiveKey;
|
|
1351
1350
|
var _c = React.useState(Boolean(_activeItemKey === _itemKey.current)), visible = _c[0], setVisible = _c[1];
|
|
1352
1351
|
React.useEffect(function () {
|
|
@@ -1355,8 +1354,7 @@ var CAccordionItem = React.forwardRef(function (_a, ref) {
|
|
|
1355
1354
|
React.useEffect(function () {
|
|
1356
1355
|
setVisible(Boolean(_activeItemKey === _itemKey.current));
|
|
1357
1356
|
}, [_activeItemKey]);
|
|
1358
|
-
|
|
1359
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
1357
|
+
return (React.createElement("div", __assign({ className: classNames('accordion-item', className) }, rest, { ref: ref }),
|
|
1360
1358
|
React.createElement(CAccordionItemContext.Provider, { value: { setVisible: setVisible, visible: visible } }, children)));
|
|
1361
1359
|
});
|
|
1362
1360
|
CAccordionItem.propTypes = {
|
|
@@ -2542,19 +2540,10 @@ function isFunction(value) {
|
|
|
2542
2540
|
|
|
2543
2541
|
var CCollapse = React.forwardRef(function (_a, ref) {
|
|
2544
2542
|
var children = _a.children, className = _a.className, horizontal = _a.horizontal, onHide = _a.onHide, onShow = _a.onShow, visible = _a.visible, rest = __rest(_a, ["children", "className", "horizontal", "onHide", "onShow", "visible"]);
|
|
2545
|
-
var _b = React.useState(), height = _b[0], setHeight = _b[1];
|
|
2546
|
-
var _c = React.useState(), width = _c[0], setWidth = _c[1];
|
|
2547
2543
|
var collapseRef = React.useRef(null);
|
|
2548
2544
|
var forkedRef = useForkedRef(ref, collapseRef);
|
|
2549
|
-
var
|
|
2550
|
-
|
|
2551
|
-
? 'collapsing'
|
|
2552
|
-
: state === 'entered'
|
|
2553
|
-
? 'collapse show'
|
|
2554
|
-
: state === 'exiting'
|
|
2555
|
-
? 'collapsing'
|
|
2556
|
-
: 'collapse';
|
|
2557
|
-
};
|
|
2545
|
+
var _b = React.useState(), height = _b[0], setHeight = _b[1];
|
|
2546
|
+
var _c = React.useState(), width = _c[0], setWidth = _c[1];
|
|
2558
2547
|
var onEntering = function () {
|
|
2559
2548
|
onShow && onShow();
|
|
2560
2549
|
if (horizontal) {
|
|
@@ -2592,14 +2581,15 @@ var CCollapse = React.forwardRef(function (_a, ref) {
|
|
|
2592
2581
|
}
|
|
2593
2582
|
setHeight(0);
|
|
2594
2583
|
};
|
|
2595
|
-
var _className = classNames({
|
|
2596
|
-
'collapse-horizontal': horizontal,
|
|
2597
|
-
}, className);
|
|
2598
2584
|
return (React.createElement(CSSTransition$1, { in: visible, nodeRef: collapseRef, onEntering: onEntering, onEntered: onEntered, onExit: onExit, onExiting: onExiting, onExited: onExited, timeout: 350 }, function (state) {
|
|
2599
|
-
var transitionClass = getTransitionClass(state);
|
|
2600
2585
|
var currentHeight = height === 0 ? null : { height: height };
|
|
2601
2586
|
var currentWidth = width === 0 ? null : { width: width };
|
|
2602
|
-
return (React.createElement("div", __assign({ className: classNames(
|
|
2587
|
+
return (React.createElement("div", __assign({ className: classNames(className, {
|
|
2588
|
+
'collapse-horizontal': horizontal,
|
|
2589
|
+
collapsing: state === 'entering' || state === 'exiting',
|
|
2590
|
+
'collapse show': state === 'entered',
|
|
2591
|
+
collapse: state === 'exited',
|
|
2592
|
+
}), style: __assign(__assign({}, currentHeight), currentWidth) }, rest, { ref: forkedRef }), children));
|
|
2603
2593
|
}));
|
|
2604
2594
|
});
|
|
2605
2595
|
CCollapse.propTypes = {
|
|
@@ -2615,9 +2605,8 @@ CCollapse.displayName = 'CCollapse';
|
|
|
2615
2605
|
var CAccordionBody = React.forwardRef(function (_a, ref) {
|
|
2616
2606
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
2617
2607
|
var visible = React.useContext(CAccordionItemContext).visible;
|
|
2618
|
-
var _className = classNames('accordion-body', className);
|
|
2619
2608
|
return (React.createElement(CCollapse, { className: "accordion-collapse", visible: visible },
|
|
2620
|
-
React.createElement("div", __assign({ className:
|
|
2609
|
+
React.createElement("div", __assign({ className: classNames('accordion-body', className) }, rest, { ref: ref }), children)));
|
|
2621
2610
|
});
|
|
2622
2611
|
CAccordionBody.propTypes = {
|
|
2623
2612
|
children: propTypesExports.node,
|
|
@@ -2628,8 +2617,7 @@ CAccordionBody.displayName = 'CAccordionBody';
|
|
|
2628
2617
|
var CAccordionButton = React.forwardRef(function (_a, ref) {
|
|
2629
2618
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
2630
2619
|
var _b = React.useContext(CAccordionItemContext), visible = _b.visible, setVisible = _b.setVisible;
|
|
2631
|
-
|
|
2632
|
-
return (React.createElement("button", __assign({ type: "button", className: _className, "aria-expanded": !visible, onClick: function () { return setVisible(!visible); } }, rest, { ref: ref }), children));
|
|
2620
|
+
return (React.createElement("button", __assign({ type: "button", className: classNames('accordion-button', { collapsed: !visible }, className), "aria-expanded": !visible, onClick: function () { return setVisible(!visible); } }, rest, { ref: ref }), children));
|
|
2633
2621
|
});
|
|
2634
2622
|
CAccordionButton.propTypes = {
|
|
2635
2623
|
children: propTypesExports.node,
|
|
@@ -2637,19 +2625,9 @@ CAccordionButton.propTypes = {
|
|
|
2637
2625
|
};
|
|
2638
2626
|
CAccordionButton.displayName = 'CAccordionButton';
|
|
2639
2627
|
|
|
2640
|
-
var CAccordionCollapse = React.forwardRef(function (_a, ref) {
|
|
2641
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
|
2642
|
-
return (React.createElement(CCollapse, __assign({ className: "accordion-collapse" }, props, { ref: ref }), children));
|
|
2643
|
-
});
|
|
2644
|
-
CAccordionCollapse.propTypes = {
|
|
2645
|
-
children: propTypesExports.node,
|
|
2646
|
-
};
|
|
2647
|
-
CAccordionCollapse.displayName = 'CAccordionCollapse';
|
|
2648
|
-
|
|
2649
2628
|
var CAccordionHeader = React.forwardRef(function (_a, ref) {
|
|
2650
2629
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
2651
|
-
|
|
2652
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
2630
|
+
return (React.createElement("div", __assign({ className: classNames('accordion-header', className) }, rest, { ref: ref }),
|
|
2653
2631
|
React.createElement(CAccordionButton, null, children)));
|
|
2654
2632
|
});
|
|
2655
2633
|
CAccordionHeader.propTypes = {
|
|
@@ -2658,6 +2636,19 @@ CAccordionHeader.propTypes = {
|
|
|
2658
2636
|
};
|
|
2659
2637
|
CAccordionHeader.displayName = 'CAccordionHeader';
|
|
2660
2638
|
|
|
2639
|
+
var CCloseButton = React.forwardRef(function (_a, ref) {
|
|
2640
|
+
var className = _a.className, disabled = _a.disabled, white = _a.white, rest = __rest(_a, ["className", "disabled", "white"]);
|
|
2641
|
+
return (React.createElement("button", __assign({ type: "button", className: classNames('btn', 'btn-close', {
|
|
2642
|
+
'btn-close-white': white,
|
|
2643
|
+
}, disabled, className), "aria-label": "Close", disabled: disabled }, rest, { ref: ref })));
|
|
2644
|
+
});
|
|
2645
|
+
CCloseButton.propTypes = {
|
|
2646
|
+
className: propTypesExports.string,
|
|
2647
|
+
disabled: propTypesExports.bool,
|
|
2648
|
+
white: propTypesExports.bool,
|
|
2649
|
+
};
|
|
2650
|
+
CCloseButton.displayName = 'CCloseButton';
|
|
2651
|
+
|
|
2661
2652
|
var colorPropType = propTypesExports.oneOfType([
|
|
2662
2653
|
propTypesExports.oneOf([
|
|
2663
2654
|
'primary',
|
|
@@ -2711,20 +2702,6 @@ var textColorsPropType = propTypesExports.oneOfType([
|
|
|
2711
2702
|
]);
|
|
2712
2703
|
var triggerPropType = propTypesExports.oneOf(['hover', 'focus', 'click']);
|
|
2713
2704
|
|
|
2714
|
-
var CCloseButton = React.forwardRef(function (_a, ref) {
|
|
2715
|
-
var className = _a.className, disabled = _a.disabled, white = _a.white, rest = __rest(_a, ["className", "disabled", "white"]);
|
|
2716
|
-
var _className = classNames('btn', 'btn-close', {
|
|
2717
|
-
'btn-close-white': white,
|
|
2718
|
-
}, disabled, className);
|
|
2719
|
-
return (React.createElement("button", __assign({ type: "button", className: _className, "aria-label": "Close", disabled: disabled }, rest, { ref: ref })));
|
|
2720
|
-
});
|
|
2721
|
-
CCloseButton.propTypes = {
|
|
2722
|
-
className: propTypesExports.string,
|
|
2723
|
-
disabled: propTypesExports.bool,
|
|
2724
|
-
white: propTypesExports.bool,
|
|
2725
|
-
};
|
|
2726
|
-
CCloseButton.displayName = 'CCloseButton';
|
|
2727
|
-
|
|
2728
2705
|
var CAlert = React.forwardRef(function (_a, ref) {
|
|
2729
2706
|
var children = _a.children, className = _a.className, _b = _a.color, color = _b === void 0 ? 'primary' : _b, dismissible = _a.dismissible, variant = _a.variant, _c = _a.visible, visible = _c === void 0 ? true : _c, onClose = _a.onClose, rest = __rest(_a, ["children", "className", "color", "dismissible", "variant", "visible", "onClose"]);
|
|
2730
2707
|
var alertRef = React.useRef(null);
|
|
@@ -2733,18 +2710,12 @@ var CAlert = React.forwardRef(function (_a, ref) {
|
|
|
2733
2710
|
React.useEffect(function () {
|
|
2734
2711
|
setVisible(visible);
|
|
2735
2712
|
}, [visible]);
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
return (React.createElement(Transition$1, { in: _visible, mountOnEnter: true, nodeRef: alertRef, onExit: onClose, timeout: 150, unmountOnExit: true }, function (state) {
|
|
2743
|
-
var transitionClass = getTransitionClass(state);
|
|
2744
|
-
return (React.createElement("div", __assign({ className: classNames(_className, transitionClass), role: "alert" }, rest, { ref: forkedRef }),
|
|
2745
|
-
children,
|
|
2746
|
-
dismissible && React.createElement(CCloseButton, { onClick: function () { return setVisible(false); } })));
|
|
2747
|
-
}));
|
|
2713
|
+
return (React.createElement(Transition$1, { in: _visible, mountOnEnter: true, nodeRef: alertRef, onExit: onClose, timeout: 150, unmountOnExit: true }, function (state) { return (React.createElement("div", __assign({ className: classNames('alert', variant === 'solid' ? "bg-".concat(color, " text-white") : "alert-".concat(color), {
|
|
2714
|
+
'alert-dismissible fade': dismissible,
|
|
2715
|
+
show: state === 'entered',
|
|
2716
|
+
}, className), role: "alert" }, rest, { ref: forkedRef }),
|
|
2717
|
+
children,
|
|
2718
|
+
dismissible && React.createElement(CCloseButton, { onClick: function () { return setVisible(false); } }))); }));
|
|
2748
2719
|
});
|
|
2749
2720
|
CAlert.propTypes = {
|
|
2750
2721
|
children: propTypesExports.node,
|
|
@@ -2759,8 +2730,7 @@ CAlert.displayName = 'CAlert';
|
|
|
2759
2730
|
|
|
2760
2731
|
var CAlertHeading = React.forwardRef(function (_a, ref) {
|
|
2761
2732
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'h4' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
2762
|
-
|
|
2763
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2733
|
+
return (React.createElement(Component, __assign({ className: classNames('alert-heading', className) }, rest, { ref: ref }), children));
|
|
2764
2734
|
});
|
|
2765
2735
|
CAlertHeading.propTypes = {
|
|
2766
2736
|
children: propTypesExports.node,
|
|
@@ -2771,9 +2741,11 @@ CAlertHeading.displayName = 'CAlertHeading';
|
|
|
2771
2741
|
|
|
2772
2742
|
var CLink = React.forwardRef(function (_a, ref) {
|
|
2773
2743
|
var children = _a.children, active = _a.active, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'a' : _b, disabled = _a.disabled, rest = __rest(_a, ["children", "active", "className", "component", "disabled"]);
|
|
2744
|
+
return (React.createElement(Component
|
|
2774
2745
|
// TODO: remove duplicated classes ex. `active active` in `<CListGroupItem>`
|
|
2775
|
-
|
|
2776
|
-
|
|
2746
|
+
, __assign({
|
|
2747
|
+
// TODO: remove duplicated classes ex. `active active` in `<CListGroupItem>`
|
|
2748
|
+
className: classNames(className, { active: active, disabled: disabled }) }, (active && { 'aria-current': 'page' }), (Component === 'a' && disabled && { 'aria-disabled': true, tabIndex: -1 }), ((Component === 'a' || Component === 'button') && {
|
|
2777
2749
|
onClick: function (event) {
|
|
2778
2750
|
event.preventDefault;
|
|
2779
2751
|
!disabled && rest.onClick && rest.onClick(event);
|
|
@@ -2791,8 +2763,7 @@ CLink.displayName = 'CLink';
|
|
|
2791
2763
|
|
|
2792
2764
|
var CAlertLink = React.forwardRef(function (_a, ref) {
|
|
2793
2765
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
2794
|
-
|
|
2795
|
-
return (React.createElement(CLink, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2766
|
+
return (React.createElement(CLink, __assign({ className: classNames('alert-link', className) }, rest, { ref: ref }), children));
|
|
2796
2767
|
});
|
|
2797
2768
|
CAlertLink.propTypes = {
|
|
2798
2769
|
children: propTypesExports.node,
|
|
@@ -2803,13 +2774,12 @@ CAlertLink.displayName = 'CAlertLink';
|
|
|
2803
2774
|
var CAvatar = React.forwardRef(function (_a, ref) {
|
|
2804
2775
|
var _b;
|
|
2805
2776
|
var children = _a.children, className = _a.className, color = _a.color, shape = _a.shape, size = _a.size, src = _a.src, status = _a.status, textColor = _a.textColor, rest = __rest(_a, ["children", "className", "color", "shape", "size", "src", "status", "textColor"]);
|
|
2806
|
-
var _className = classNames('avatar', (_b = {},
|
|
2807
|
-
_b["bg-".concat(color)] = color,
|
|
2808
|
-
_b["avatar-".concat(size)] = size,
|
|
2809
|
-
_b["text-".concat(textColor)] = textColor,
|
|
2810
|
-
_b), shape, className);
|
|
2811
2777
|
var statusClassName = status && classNames('avatar-status', "bg-".concat(status));
|
|
2812
|
-
return (React.createElement("div", __assign({ className:
|
|
2778
|
+
return (React.createElement("div", __assign({ className: classNames('avatar', (_b = {},
|
|
2779
|
+
_b["bg-".concat(color)] = color,
|
|
2780
|
+
_b["avatar-".concat(size)] = size,
|
|
2781
|
+
_b["text-".concat(textColor)] = textColor,
|
|
2782
|
+
_b), shape, className) }, rest, { ref: ref }),
|
|
2813
2783
|
src ? React.createElement("img", { src: src, className: "avatar-img" }) : children,
|
|
2814
2784
|
status && React.createElement("span", { className: statusClassName })));
|
|
2815
2785
|
});
|
|
@@ -2829,14 +2799,9 @@ var CBackdrop = React.forwardRef(function (_a, ref) {
|
|
|
2829
2799
|
var _b = _a.className, className = _b === void 0 ? 'modal-backdrop' : _b, visible = _a.visible, rest = __rest(_a, ["className", "visible"]);
|
|
2830
2800
|
var backdropRef = React.useRef(null);
|
|
2831
2801
|
var forkedRef = useForkedRef(ref, backdropRef);
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
};
|
|
2836
|
-
return (React.createElement(Transition$1, { in: visible, mountOnEnter: true, nodeRef: backdropRef, timeout: 150, unmountOnExit: true }, function (state) {
|
|
2837
|
-
var transitionClass = getTransitionClass(state);
|
|
2838
|
-
return (React.createElement("div", __assign({ className: classNames(_className, transitionClass) }, rest, { ref: forkedRef })));
|
|
2839
|
-
}));
|
|
2802
|
+
return (React.createElement(Transition$1, { in: visible, mountOnEnter: true, nodeRef: backdropRef, timeout: 150, unmountOnExit: true }, function (state) { return (React.createElement("div", __assign({ className: classNames(className, 'fade', {
|
|
2803
|
+
show: state === 'entered',
|
|
2804
|
+
}) }, rest, { ref: forkedRef }))); }));
|
|
2840
2805
|
});
|
|
2841
2806
|
CBackdrop.propTypes = {
|
|
2842
2807
|
className: propTypesExports.string,
|
|
@@ -2847,17 +2812,16 @@ CBackdrop.displayName = 'CBackdrop';
|
|
|
2847
2812
|
var CBadge = React.forwardRef(function (_a, ref) {
|
|
2848
2813
|
var _b;
|
|
2849
2814
|
var children = _a.children, className = _a.className, color = _a.color, _c = _a.component, Component = _c === void 0 ? 'span' : _c, position = _a.position, shape = _a.shape, size = _a.size, textColor = _a.textColor, rest = __rest(_a, ["children", "className", "color", "component", "position", "shape", "size", "textColor"]);
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2815
|
+
return (React.createElement(Component, __assign({ className: classNames('badge', (_b = {},
|
|
2816
|
+
_b["bg-".concat(color)] = color,
|
|
2817
|
+
_b['position-absolute translate-middle'] = position,
|
|
2818
|
+
_b['top-0'] = position === null || position === void 0 ? void 0 : position.includes('top'),
|
|
2819
|
+
_b['top-100'] = position === null || position === void 0 ? void 0 : position.includes('bottom'),
|
|
2820
|
+
_b['start-100'] = position === null || position === void 0 ? void 0 : position.includes('end'),
|
|
2821
|
+
_b['start-0'] = position === null || position === void 0 ? void 0 : position.includes('start'),
|
|
2822
|
+
_b["badge-".concat(size)] = size,
|
|
2823
|
+
_b["text-".concat(textColor)] = textColor,
|
|
2824
|
+
_b), shape, className) }, rest, { ref: ref }), children));
|
|
2861
2825
|
});
|
|
2862
2826
|
CBadge.propTypes = {
|
|
2863
2827
|
children: propTypesExports.node,
|
|
@@ -2873,9 +2837,8 @@ CBadge.displayName = 'CBadge';
|
|
|
2873
2837
|
|
|
2874
2838
|
var CBreadcrumb = React.forwardRef(function (_a, ref) {
|
|
2875
2839
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
2876
|
-
var _className = classNames('breadcrumb', className);
|
|
2877
2840
|
return (React.createElement("nav", { "aria-label": "breadcrumb" },
|
|
2878
|
-
React.createElement("ol", __assign({ className:
|
|
2841
|
+
React.createElement("ol", __assign({ className: classNames('breadcrumb', className) }, rest, { ref: ref }), children)));
|
|
2879
2842
|
});
|
|
2880
2843
|
CBreadcrumb.propTypes = {
|
|
2881
2844
|
children: propTypesExports.node,
|
|
@@ -2885,10 +2848,9 @@ CBreadcrumb.displayName = 'CBreadcrumb';
|
|
|
2885
2848
|
|
|
2886
2849
|
var CBreadcrumbItem = React.forwardRef(function (_a, ref) {
|
|
2887
2850
|
var children = _a.children, active = _a.active, className = _a.className, href = _a.href, rest = __rest(_a, ["children", "active", "className", "href"]);
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
return (React.createElement("li", __assign({ className: _className }, (active && { 'aria-current': 'page' }), rest, { ref: ref }), href ? React.createElement(CLink, { href: href }, children) : children));
|
|
2851
|
+
return (React.createElement("li", __assign({ className: classNames('breadcrumb-item', {
|
|
2852
|
+
active: active,
|
|
2853
|
+
}, className) }, (active && { 'aria-current': 'page' }), rest, { ref: ref }), href ? React.createElement(CLink, { href: href }, children) : children));
|
|
2892
2854
|
});
|
|
2893
2855
|
CBreadcrumbItem.propTypes = {
|
|
2894
2856
|
active: propTypesExports.bool,
|
|
@@ -2901,8 +2863,7 @@ CBreadcrumbItem.displayName = 'CBreadcrumbItem';
|
|
|
2901
2863
|
var CButton = React.forwardRef(function (_a, ref) {
|
|
2902
2864
|
var _b;
|
|
2903
2865
|
var children = _a.children, className = _a.className, _c = _a.color, color = _c === void 0 ? 'primary' : _c, _d = _a.component, component = _d === void 0 ? 'button' : _d, shape = _a.shape, size = _a.size, _e = _a.type, type = _e === void 0 ? 'button' : _e, variant = _a.variant, rest = __rest(_a, ["children", "className", "color", "component", "shape", "size", "type", "variant"]);
|
|
2904
|
-
|
|
2905
|
-
return (React.createElement(CLink, __assign({ component: rest.href ? 'a' : component, type: type, className: _className }, rest, { ref: ref }), children));
|
|
2866
|
+
return (React.createElement(CLink, __assign({ component: rest.href ? 'a' : component, type: type, className: classNames('btn', variant ? "btn-".concat(variant, "-").concat(color) : "btn-".concat(color), (_b = {}, _b["btn-".concat(size)] = size, _b), shape, className) }, rest, { ref: ref }), children));
|
|
2906
2867
|
});
|
|
2907
2868
|
CButton.propTypes = {
|
|
2908
2869
|
children: propTypesExports.node,
|
|
@@ -2918,8 +2879,7 @@ CButton.displayName = 'CButton';
|
|
|
2918
2879
|
|
|
2919
2880
|
var CButtonToolbar = React.forwardRef(function (_a, ref) {
|
|
2920
2881
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
2921
|
-
|
|
2922
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2882
|
+
return (React.createElement("div", __assign({ className: classNames('btn-toolbar', className) }, rest, { ref: ref }), children));
|
|
2923
2883
|
});
|
|
2924
2884
|
CButtonToolbar.propTypes = {
|
|
2925
2885
|
children: propTypesExports.node,
|
|
@@ -2930,8 +2890,7 @@ CButtonToolbar.displayName = 'CButtonToolbar';
|
|
|
2930
2890
|
var CButtonGroup = React.forwardRef(function (_a, ref) {
|
|
2931
2891
|
var _b;
|
|
2932
2892
|
var children = _a.children, className = _a.className, size = _a.size, vertical = _a.vertical, rest = __rest(_a, ["children", "className", "size", "vertical"]);
|
|
2933
|
-
|
|
2934
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2893
|
+
return (React.createElement("div", __assign({ className: classNames(vertical ? 'btn-group-vertical' : 'btn-group', (_b = {}, _b["btn-group-".concat(size)] = size, _b), className) }, rest, { ref: ref }), children));
|
|
2935
2894
|
});
|
|
2936
2895
|
CButtonGroup.propTypes = {
|
|
2937
2896
|
children: propTypesExports.node,
|
|
@@ -2944,10 +2903,9 @@ CButtonGroup.displayName = 'CButtonGroup';
|
|
|
2944
2903
|
var CCallout = React.forwardRef(function (_a, ref) {
|
|
2945
2904
|
var _b;
|
|
2946
2905
|
var children = _a.children, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "className", "color"]);
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2906
|
+
return (React.createElement("div", __assign({ className: classNames('callout', (_b = {},
|
|
2907
|
+
_b["callout-".concat(color)] = color,
|
|
2908
|
+
_b), className) }, rest, { ref: ref }), children));
|
|
2951
2909
|
});
|
|
2952
2910
|
CCallout.propTypes = {
|
|
2953
2911
|
children: propTypesExports.node,
|
|
@@ -2959,11 +2917,10 @@ CCallout.displayName = 'CCallout';
|
|
|
2959
2917
|
var CCard = React.forwardRef(function (_a, ref) {
|
|
2960
2918
|
var _b;
|
|
2961
2919
|
var children = _a.children, className = _a.className, color = _a.color, textColor = _a.textColor, rest = __rest(_a, ["children", "className", "color", "textColor"]);
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2920
|
+
return (React.createElement("div", __assign({ className: classNames('card', (_b = {},
|
|
2921
|
+
_b["bg-".concat(color)] = color,
|
|
2922
|
+
_b["text-".concat(textColor)] = textColor,
|
|
2923
|
+
_b), className) }, rest, { ref: ref }), children));
|
|
2967
2924
|
});
|
|
2968
2925
|
CCard.propTypes = {
|
|
2969
2926
|
children: propTypesExports.node,
|
|
@@ -2975,8 +2932,7 @@ CCard.displayName = 'CCard';
|
|
|
2975
2932
|
|
|
2976
2933
|
var CCardBody = React.forwardRef(function (_a, ref) {
|
|
2977
2934
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
2978
|
-
|
|
2979
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2935
|
+
return (React.createElement("div", __assign({ className: classNames('card-body', className) }, rest, { ref: ref }), children));
|
|
2980
2936
|
});
|
|
2981
2937
|
CCardBody.propTypes = {
|
|
2982
2938
|
children: propTypesExports.node,
|
|
@@ -2986,8 +2942,7 @@ CCardBody.displayName = 'CCardBody';
|
|
|
2986
2942
|
|
|
2987
2943
|
var CCardFooter = React.forwardRef(function (_a, ref) {
|
|
2988
2944
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
2989
|
-
|
|
2990
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2945
|
+
return (React.createElement("div", __assign({ className: classNames('card-footer', className) }, rest, { ref: ref }), children));
|
|
2991
2946
|
});
|
|
2992
2947
|
CCardFooter.propTypes = {
|
|
2993
2948
|
children: propTypesExports.node,
|
|
@@ -2997,8 +2952,7 @@ CCardFooter.displayName = 'CCardFooter';
|
|
|
2997
2952
|
|
|
2998
2953
|
var CCardGroup = React.forwardRef(function (_a, ref) {
|
|
2999
2954
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3000
|
-
|
|
3001
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2955
|
+
return (React.createElement("div", __assign({ className: classNames('card-group', className) }, rest, { ref: ref }), children));
|
|
3002
2956
|
});
|
|
3003
2957
|
CCardGroup.propTypes = {
|
|
3004
2958
|
children: propTypesExports.node,
|
|
@@ -3008,8 +2962,7 @@ CCardGroup.displayName = 'CCardGroup';
|
|
|
3008
2962
|
|
|
3009
2963
|
var CCardHeader = React.forwardRef(function (_a, ref) {
|
|
3010
2964
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'div' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
3011
|
-
|
|
3012
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2965
|
+
return (React.createElement(Component, __assign({ className: classNames('card-header', className) }, rest, { ref: ref }), children));
|
|
3013
2966
|
});
|
|
3014
2967
|
CCardHeader.propTypes = {
|
|
3015
2968
|
children: propTypesExports.node,
|
|
@@ -3020,8 +2973,7 @@ CCardHeader.displayName = 'CCardHeader';
|
|
|
3020
2973
|
|
|
3021
2974
|
var CCardImage = React.forwardRef(function (_a, ref) {
|
|
3022
2975
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'img' : _b, orientation = _a.orientation, rest = __rest(_a, ["children", "className", "component", "orientation"]);
|
|
3023
|
-
|
|
3024
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2976
|
+
return (React.createElement(Component, __assign({ className: classNames(orientation ? "card-img-".concat(orientation) : 'card-img', className) }, rest, { ref: ref }), children));
|
|
3025
2977
|
});
|
|
3026
2978
|
CCardImage.propTypes = {
|
|
3027
2979
|
children: propTypesExports.node,
|
|
@@ -3033,8 +2985,7 @@ CCardImage.displayName = 'CCardImage';
|
|
|
3033
2985
|
|
|
3034
2986
|
var CCardImageOverlay = React.forwardRef(function (_a, ref) {
|
|
3035
2987
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3036
|
-
|
|
3037
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2988
|
+
return (React.createElement("div", __assign({ className: classNames('card-img-overlay', className) }, rest, { ref: ref }), children));
|
|
3038
2989
|
});
|
|
3039
2990
|
CCardImageOverlay.propTypes = {
|
|
3040
2991
|
children: propTypesExports.node,
|
|
@@ -3044,8 +2995,7 @@ CCardImageOverlay.displayName = 'CCardImageOverlay';
|
|
|
3044
2995
|
|
|
3045
2996
|
var CCardLink = React.forwardRef(function (_a, ref) {
|
|
3046
2997
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
3047
|
-
|
|
3048
|
-
return (React.createElement(CLink, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
2998
|
+
return (React.createElement(CLink, __assign({ className: classNames('card-link', className) }, rest, { ref: ref }), children));
|
|
3049
2999
|
});
|
|
3050
3000
|
CCardLink.propTypes = {
|
|
3051
3001
|
children: propTypesExports.node,
|
|
@@ -3055,8 +3005,7 @@ CCardLink.displayName = 'CCardLink';
|
|
|
3055
3005
|
|
|
3056
3006
|
var CCardSubtitle = React.forwardRef(function (_a, ref) {
|
|
3057
3007
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'h6' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
3058
|
-
|
|
3059
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3008
|
+
return (React.createElement(Component, __assign({ className: classNames('card-subtitle', className) }, rest, { ref: ref }), children));
|
|
3060
3009
|
});
|
|
3061
3010
|
CCardSubtitle.propTypes = {
|
|
3062
3011
|
children: propTypesExports.node,
|
|
@@ -3067,8 +3016,7 @@ CCardSubtitle.displayName = 'CCardSubtitle';
|
|
|
3067
3016
|
|
|
3068
3017
|
var CCardText = React.forwardRef(function (_a, ref) {
|
|
3069
3018
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'p' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
3070
|
-
|
|
3071
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3019
|
+
return (React.createElement(Component, __assign({ className: classNames('card-text', className) }, rest, { ref: ref }), children));
|
|
3072
3020
|
});
|
|
3073
3021
|
CCardText.propTypes = {
|
|
3074
3022
|
children: propTypesExports.node,
|
|
@@ -3079,8 +3027,7 @@ CCardText.displayName = 'CCardText';
|
|
|
3079
3027
|
|
|
3080
3028
|
var CCardTitle = React.forwardRef(function (_a, ref) {
|
|
3081
3029
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'h5' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
3082
|
-
|
|
3083
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
3030
|
+
return (React.createElement(Component, __assign({ className: classNames('card-title', className) }, rest, { ref: ref }), children));
|
|
3084
3031
|
});
|
|
3085
3032
|
CCardTitle.propTypes = {
|
|
3086
3033
|
children: propTypesExports.node,
|
|
@@ -3127,7 +3074,6 @@ var CCarousel = React.forwardRef(function (_a, ref) {
|
|
|
3127
3074
|
window.removeEventListener('scroll', handleScroll);
|
|
3128
3075
|
};
|
|
3129
3076
|
});
|
|
3130
|
-
var _className = classNames('carousel slide', transition === 'crossfade' && 'carousel-fade', dark && 'carousel-dark', className);
|
|
3131
3077
|
var cycle = function () {
|
|
3132
3078
|
_pause();
|
|
3133
3079
|
if (!wrap && active === itemsNumber - 1) {
|
|
@@ -3201,7 +3147,10 @@ var CCarousel = React.forwardRef(function (_a, ref) {
|
|
|
3201
3147
|
var touchDown = e.touches[0].clientX;
|
|
3202
3148
|
setTouchPosition(touchDown);
|
|
3203
3149
|
};
|
|
3204
|
-
return (React.createElement("div", __assign({ className:
|
|
3150
|
+
return (React.createElement("div", __assign({ className: classNames('carousel slide', {
|
|
3151
|
+
'carousel-dark': dark,
|
|
3152
|
+
'carousel-fade': transition === 'crossfade',
|
|
3153
|
+
}, className), onMouseEnter: _pause, onMouseLeave: cycle }, (touch && { onTouchStart: handleTouchStart, onTouchMove: handleTouchMove }), rest, { ref: forkedRef }),
|
|
3205
3154
|
React.createElement(CCarouselContext.Provider, { value: {
|
|
3206
3155
|
setAnimating: setAnimating,
|
|
3207
3156
|
setCustomInterval: setCustomInterval,
|
|
@@ -3246,8 +3195,7 @@ CCarousel.displayName = 'CCarousel';
|
|
|
3246
3195
|
|
|
3247
3196
|
var CCarouselCaption = React.forwardRef(function (_a, ref) {
|
|
3248
3197
|
var className = _a.className, rest = __rest(_a, ["className"]);
|
|
3249
|
-
|
|
3250
|
-
return React.createElement("div", __assign({ className: _className }, rest, { ref: ref }));
|
|
3198
|
+
return React.createElement("div", __assign({ className: classNames('carousel-caption', className) }, rest, { ref: ref }));
|
|
3251
3199
|
});
|
|
3252
3200
|
CCarouselCaption.propTypes = {
|
|
3253
3201
|
className: propTypesExports.string,
|
|
@@ -3322,8 +3270,7 @@ var CCarouselItem = React.forwardRef(function (_a, ref) {
|
|
|
3322
3270
|
});
|
|
3323
3271
|
};
|
|
3324
3272
|
});
|
|
3325
|
-
|
|
3326
|
-
return (React.createElement("div", __assign({ className: _className, ref: forkedRef }, rest), children));
|
|
3273
|
+
return (React.createElement("div", __assign({ className: classNames('carousel-item', activeClassName, directionClassName, orderClassName, className), ref: forkedRef }, rest), children));
|
|
3327
3274
|
});
|
|
3328
3275
|
CCarouselItem.propTypes = {
|
|
3329
3276
|
active: propTypesExports.bool,
|
|
@@ -3334,6 +3281,16 @@ CCarouselItem.propTypes = {
|
|
|
3334
3281
|
};
|
|
3335
3282
|
CCarouselItem.displayName = 'CCarouselItem';
|
|
3336
3283
|
|
|
3284
|
+
var CConditionalPortal = function (_a) {
|
|
3285
|
+
var children = _a.children, portal = _a.portal;
|
|
3286
|
+
return typeof window !== 'undefined' && portal ? (ReactDOM.createPortal(children, document.body)) : (React.createElement(React.Fragment, null, children));
|
|
3287
|
+
};
|
|
3288
|
+
CConditionalPortal.propTypes = {
|
|
3289
|
+
children: propTypesExports.node,
|
|
3290
|
+
portal: propTypesExports.bool.isRequired,
|
|
3291
|
+
};
|
|
3292
|
+
CConditionalPortal.displayName = 'CConditionalPortal';
|
|
3293
|
+
|
|
3337
3294
|
var ManagerReferenceNodeContext = React__namespace.createContext();
|
|
3338
3295
|
var ManagerReferenceNodeSetterContext = React__namespace.createContext();
|
|
3339
3296
|
function Manager(_ref) {
|
|
@@ -5397,7 +5354,7 @@ var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
|
5397
5354
|
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
5398
5355
|
|
|
5399
5356
|
function equal(a, b) {
|
|
5400
|
-
// START: fast-deep-equal es6/index.js 3.1.
|
|
5357
|
+
// START: fast-deep-equal es6/index.js 3.1.3
|
|
5401
5358
|
if (a === b) return true;
|
|
5402
5359
|
|
|
5403
5360
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
@@ -5462,8 +5419,13 @@ function equal(a, b) {
|
|
|
5462
5419
|
}
|
|
5463
5420
|
|
|
5464
5421
|
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
5465
|
-
|
|
5466
|
-
|
|
5422
|
+
// START: Modifications:
|
|
5423
|
+
// Apply guards for `Object.create(null)` handling. See:
|
|
5424
|
+
// - https://github.com/FormidableLabs/react-fast-compare/issues/64
|
|
5425
|
+
// - https://github.com/epoberezkin/fast-deep-equal/issues/49
|
|
5426
|
+
if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();
|
|
5427
|
+
if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();
|
|
5428
|
+
// END: Modifications
|
|
5467
5429
|
|
|
5468
5430
|
keys = Object.keys(a);
|
|
5469
5431
|
length = keys.length;
|
|
@@ -5776,13 +5738,18 @@ function Reference(_ref) {
|
|
|
5776
5738
|
});
|
|
5777
5739
|
}
|
|
5778
5740
|
|
|
5741
|
+
var PopperManagerWrapper = function (_a) {
|
|
5742
|
+
var children = _a.children, popper = _a.popper;
|
|
5743
|
+
return popper ? React.createElement(Manager, null, children) : React.createElement(React.Fragment, null, children);
|
|
5744
|
+
};
|
|
5779
5745
|
var CDropdownContext = React.createContext({});
|
|
5780
5746
|
var CDropdown = React.forwardRef(function (_a, ref) {
|
|
5781
|
-
var
|
|
5782
|
-
var _h =
|
|
5747
|
+
var _b;
|
|
5748
|
+
var children = _a.children, alignment = _a.alignment, _c = _a.autoClose, autoClose = _c === void 0 ? true : _c, className = _a.className, dark = _a.dark, direction = _a.direction, onHide = _a.onHide, onShow = _a.onShow, _d = _a.placement, placement = _d === void 0 ? 'bottom-start' : _d, _e = _a.popper, popper = _e === void 0 ? true : _e, _f = _a.portal, portal = _f === void 0 ? false : _f, _g = _a.variant, variant = _g === void 0 ? 'btn-group' : _g, _h = _a.component, component = _h === void 0 ? 'div' : _h, _j = _a.visible, visible = _j === void 0 ? false : _j, rest = __rest(_a, ["children", "alignment", "autoClose", "className", "dark", "direction", "onHide", "onShow", "placement", "popper", "portal", "variant", "component", "visible"]);
|
|
5783
5749
|
var dropdownRef = React.useRef(null);
|
|
5784
5750
|
var dropdownToggleRef = React.useRef(null);
|
|
5785
5751
|
var forkedRef = useForkedRef(ref, dropdownRef);
|
|
5752
|
+
var _k = React.useState(visible), _visible = _k[0], setVisible = _k[1];
|
|
5786
5753
|
var Component = variant === 'nav-item' ? 'li' : component;
|
|
5787
5754
|
// Disable popper if responsive aligment is set.
|
|
5788
5755
|
if (typeof alignment === 'object') {
|
|
@@ -5796,17 +5763,11 @@ var CDropdown = React.forwardRef(function (_a, ref) {
|
|
|
5796
5763
|
dropdownToggleRef: dropdownToggleRef,
|
|
5797
5764
|
placement: placement,
|
|
5798
5765
|
popper: popper,
|
|
5766
|
+
portal: portal,
|
|
5799
5767
|
variant: variant,
|
|
5800
5768
|
visible: _visible,
|
|
5801
5769
|
setVisible: setVisible,
|
|
5802
5770
|
};
|
|
5803
|
-
var _className = classNames(variant === 'nav-item' ? 'nav-item dropdown' : variant, {
|
|
5804
|
-
show: _visible,
|
|
5805
|
-
}, direction === 'center'
|
|
5806
|
-
? 'dropdown-center'
|
|
5807
|
-
: direction === 'dropup-center'
|
|
5808
|
-
? 'dropup dropup-center'
|
|
5809
|
-
: direction, className);
|
|
5810
5771
|
React.useEffect(function () {
|
|
5811
5772
|
setVisible(visible);
|
|
5812
5773
|
}, [visible]);
|
|
@@ -5814,11 +5775,14 @@ var CDropdown = React.forwardRef(function (_a, ref) {
|
|
|
5814
5775
|
_visible && onShow && onShow();
|
|
5815
5776
|
!_visible && onHide && onHide();
|
|
5816
5777
|
}, [_visible]);
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5778
|
+
return (React.createElement(CDropdownContext.Provider, { value: contextValues },
|
|
5779
|
+
React.createElement(PopperManagerWrapper, { popper: popper }, variant === 'input-group' ? (React.createElement(React.Fragment, null, children)) : (React.createElement(Component, __assign({ className: classNames(variant === 'nav-item' ? 'nav-item dropdown' : variant, (_b = {
|
|
5780
|
+
'dropdown-center': direction === 'center',
|
|
5781
|
+
'dropup dropup-center': direction === 'dropup-center'
|
|
5782
|
+
},
|
|
5783
|
+
_b["".concat(direction)] = direction && direction !== 'center' && direction !== 'dropup-center',
|
|
5784
|
+
_b.show = _visible,
|
|
5785
|
+
_b), className) }, rest, { ref: forkedRef }), children)))));
|
|
5822
5786
|
});
|
|
5823
5787
|
var alignmentDirection = propTypesExports.oneOf(['start', 'end']);
|
|
5824
5788
|
CDropdown.propTypes = {
|
|
@@ -5845,6 +5809,7 @@ CDropdown.propTypes = {
|
|
|
5845
5809
|
onShow: propTypesExports.func,
|
|
5846
5810
|
placement: placementPropType,
|
|
5847
5811
|
popper: propTypesExports.bool,
|
|
5812
|
+
portal: propTypesExports.bool,
|
|
5848
5813
|
variant: propTypesExports.oneOf(['btn-group', 'dropdown', 'input-group', 'nav-item']),
|
|
5849
5814
|
visible: propTypesExports.bool,
|
|
5850
5815
|
};
|
|
@@ -5852,8 +5817,7 @@ CDropdown.displayName = 'CDropdown';
|
|
|
5852
5817
|
|
|
5853
5818
|
var CDropdownDivider = React.forwardRef(function (_a, ref) {
|
|
5854
5819
|
var className = _a.className, rest = __rest(_a, ["className"]);
|
|
5855
|
-
|
|
5856
|
-
return React.createElement("hr", __assign({ className: _className }, rest, { ref: ref }));
|
|
5820
|
+
return React.createElement("hr", __assign({ className: classNames('dropdown-divider', className) }, rest, { ref: ref }));
|
|
5857
5821
|
});
|
|
5858
5822
|
CDropdownDivider.propTypes = {
|
|
5859
5823
|
className: propTypesExports.string,
|
|
@@ -5862,8 +5826,7 @@ CDropdownDivider.displayName = 'CDropdownDivider';
|
|
|
5862
5826
|
|
|
5863
5827
|
var CDropdownHeader = React.forwardRef(function (_a, ref) {
|
|
5864
5828
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'h6' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
5865
|
-
|
|
5866
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
5829
|
+
return (React.createElement(Component, __assign({ className: classNames('dropdown-header', className) }, rest, { ref: ref }), children));
|
|
5867
5830
|
});
|
|
5868
5831
|
CDropdownHeader.propTypes = {
|
|
5869
5832
|
children: propTypesExports.node,
|
|
@@ -5874,8 +5837,7 @@ CDropdownHeader.displayName = 'CDropdownHeader';
|
|
|
5874
5837
|
|
|
5875
5838
|
var CDropdownItem = React.forwardRef(function (_a, ref) {
|
|
5876
5839
|
var children = _a.children, className = _a.className, _b = _a.component, component = _b === void 0 ? 'a' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
5877
|
-
|
|
5878
|
-
return (React.createElement(CLink, __assign({ className: _className, component: component }, rest, { ref: ref }), children));
|
|
5840
|
+
return (React.createElement(CLink, __assign({ className: classNames('dropdown-item', className), component: component }, rest, { ref: ref }), children));
|
|
5879
5841
|
});
|
|
5880
5842
|
CDropdownItem.propTypes = {
|
|
5881
5843
|
children: propTypesExports.node,
|
|
@@ -5886,8 +5848,7 @@ CDropdownItem.displayName = 'CDropdownItem';
|
|
|
5886
5848
|
|
|
5887
5849
|
var CDropdownItemPlain = React.forwardRef(function (_a, ref) {
|
|
5888
5850
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'span' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
5889
|
-
|
|
5890
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
5851
|
+
return (React.createElement(Component, __assign({ className: classNames('dropdown-item-text', className) }, rest, { ref: ref }), children));
|
|
5891
5852
|
});
|
|
5892
5853
|
CDropdownItemPlain.propTypes = {
|
|
5893
5854
|
children: propTypesExports.node,
|
|
@@ -5896,9 +5857,21 @@ CDropdownItemPlain.propTypes = {
|
|
|
5896
5857
|
};
|
|
5897
5858
|
CDropdownItemPlain.displayName = 'CDropdownItemPlain';
|
|
5898
5859
|
|
|
5860
|
+
var alignmentClassNames = function (alignment) {
|
|
5861
|
+
var classNames = [];
|
|
5862
|
+
if (typeof alignment === 'object') {
|
|
5863
|
+
Object.keys(alignment).map(function (key) {
|
|
5864
|
+
classNames.push("dropdown-menu".concat(key === 'xs' ? '' : "-".concat(key), "-").concat(alignment[key]));
|
|
5865
|
+
});
|
|
5866
|
+
}
|
|
5867
|
+
if (typeof alignment === 'string') {
|
|
5868
|
+
classNames.push("dropdown-menu-".concat(alignment));
|
|
5869
|
+
}
|
|
5870
|
+
return classNames;
|
|
5871
|
+
};
|
|
5899
5872
|
var CDropdownMenu = function (_a) {
|
|
5900
5873
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'ul' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
5901
|
-
var _c = React.useContext(CDropdownContext), alignment = _c.alignment, autoClose = _c.autoClose, dark = _c.dark, direction = _c.direction, dropdownToggleRef = _c.dropdownToggleRef, placement = _c.placement, popper = _c.popper, visible = _c.visible, setVisible = _c.setVisible;
|
|
5874
|
+
var _c = React.useContext(CDropdownContext), alignment = _c.alignment, autoClose = _c.autoClose, dark = _c.dark, direction = _c.direction, dropdownToggleRef = _c.dropdownToggleRef, placement = _c.placement, popper = _c.popper, portal = _c.portal, visible = _c.visible, setVisible = _c.setVisible;
|
|
5902
5875
|
var dropdownMenuRef = React.useRef(null);
|
|
5903
5876
|
React.useEffect(function () {
|
|
5904
5877
|
visible && window.addEventListener('mouseup', handleMouseUp);
|
|
@@ -5947,32 +5920,18 @@ var CDropdownMenu = function (_a) {
|
|
|
5947
5920
|
if (alignment === 'end') {
|
|
5948
5921
|
_placement = 'bottom-end';
|
|
5949
5922
|
}
|
|
5950
|
-
var
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
});
|
|
5956
|
-
}
|
|
5957
|
-
if (typeof alignment === 'string') {
|
|
5958
|
-
classNames.push("dropdown-menu-".concat(alignment));
|
|
5959
|
-
}
|
|
5960
|
-
return classNames;
|
|
5961
|
-
};
|
|
5962
|
-
var _className = classNames('dropdown-menu', {
|
|
5963
|
-
'dropdown-menu-dark': dark,
|
|
5964
|
-
show: visible,
|
|
5965
|
-
}, alignment && alignmentClassNames(alignment), className);
|
|
5966
|
-
var dropdownMenuComponent = function (style, ref) {
|
|
5967
|
-
return (React.createElement(Component, __assign({ className: _className, ref: ref, style: style, role: "menu", "aria-hidden": !visible }, (!popper && { 'data-coreui-popper': 'static' }), rest), Component === 'ul'
|
|
5923
|
+
var dropdownMenuComponent = function (style, ref) { return (React.createElement(CConditionalPortal, { portal: portal !== null && portal !== void 0 ? portal : false },
|
|
5924
|
+
React.createElement(Component, __assign({ className: classNames('dropdown-menu', {
|
|
5925
|
+
'dropdown-menu-dark': dark,
|
|
5926
|
+
show: visible,
|
|
5927
|
+
}, alignment && alignmentClassNames(alignment), className), ref: ref, style: style, role: "menu", "aria-hidden": !visible }, (!popper && { 'data-coreui-popper': 'static' }), rest), Component === 'ul'
|
|
5968
5928
|
? React.Children.map(children, function (child, index) {
|
|
5969
5929
|
if (React.isValidElement(child)) {
|
|
5970
5930
|
return React.createElement("li", { key: index }, React.cloneElement(child));
|
|
5971
5931
|
}
|
|
5972
5932
|
return;
|
|
5973
5933
|
})
|
|
5974
|
-
: children));
|
|
5975
|
-
};
|
|
5934
|
+
: children))); };
|
|
5976
5935
|
return popper && visible ? (React.createElement(Popper, { innerRef: dropdownMenuRef, placement: _placement }, function (_a) {
|
|
5977
5936
|
var ref = _a.ref, style = _a.style;
|
|
5978
5937
|
return dropdownMenuComponent(style, ref);
|
|
@@ -5988,11 +5947,6 @@ CDropdownMenu.displayName = 'CDropdownMenu';
|
|
|
5988
5947
|
var CDropdownToggle = function (_a) {
|
|
5989
5948
|
var children = _a.children, _b = _a.caret, caret = _b === void 0 ? true : _b, custom = _a.custom, className = _a.className, split = _a.split, _c = _a.trigger, trigger = _c === void 0 ? 'click' : _c, rest = __rest(_a, ["children", "caret", "custom", "className", "split", "trigger"]);
|
|
5990
5949
|
var _d = React.useContext(CDropdownContext), dropdownToggleRef = _d.dropdownToggleRef, popper = _d.popper, variant = _d.variant, visible = _d.visible, setVisible = _d.setVisible;
|
|
5991
|
-
var _className = classNames({
|
|
5992
|
-
'dropdown-toggle': caret,
|
|
5993
|
-
'dropdown-toggle-split': split,
|
|
5994
|
-
'nav-link': variant === 'nav-item',
|
|
5995
|
-
}, className);
|
|
5996
5950
|
var triggers = __assign(__assign({}, ((trigger === 'click' || trigger.includes('click')) && {
|
|
5997
5951
|
onClick: function (event) {
|
|
5998
5952
|
event.preventDefault();
|
|
@@ -6002,11 +5956,21 @@ var CDropdownToggle = function (_a) {
|
|
|
6002
5956
|
onFocus: function () { return setVisible(true); },
|
|
6003
5957
|
onBlur: function () { return setVisible(false); },
|
|
6004
5958
|
}));
|
|
6005
|
-
var togglerProps = __assign(
|
|
5959
|
+
var togglerProps = __assign({ className: classNames({
|
|
5960
|
+
'dropdown-toggle': caret,
|
|
5961
|
+
'dropdown-toggle-split': split,
|
|
5962
|
+
'nav-link': variant === 'nav-item',
|
|
5963
|
+
}, className), 'aria-expanded': visible }, (!rest.disabled && __assign({}, triggers)));
|
|
6006
5964
|
// We use any because Toggler can be `a` as well as `button`.
|
|
6007
5965
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6008
5966
|
var Toggler = function (ref) {
|
|
6009
|
-
|
|
5967
|
+
if (custom && React.isValidElement(children)) {
|
|
5968
|
+
return (React.createElement(React.Fragment, null, React.cloneElement(children, __assign(__assign({ 'aria-expanded': visible }, (!rest.disabled && __assign({}, triggers))), { ref: useForkedRef(ref, dropdownToggleRef) }))));
|
|
5969
|
+
}
|
|
5970
|
+
if (variant === 'nav-item') {
|
|
5971
|
+
return (React.createElement("a", __assign({ href: "#" }, togglerProps, { ref: useForkedRef(ref, dropdownToggleRef) }), children));
|
|
5972
|
+
}
|
|
5973
|
+
return (React.createElement(CButton, __assign({ type: "button" }, togglerProps, { tabIndex: 0 }, rest, { ref: useForkedRef(ref, dropdownToggleRef) }),
|
|
6010
5974
|
children,
|
|
6011
5975
|
split && React.createElement("span", { className: "visually-hidden" }, "Toggle Dropdown")));
|
|
6012
5976
|
};
|
|
@@ -6028,8 +5992,7 @@ CDropdownToggle.displayName = 'CDropdownToggle';
|
|
|
6028
5992
|
var CFooter = React.forwardRef(function (_a, ref) {
|
|
6029
5993
|
var _b;
|
|
6030
5994
|
var children = _a.children, className = _a.className, position = _a.position, rest = __rest(_a, ["children", "className", "position"]);
|
|
6031
|
-
|
|
6032
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
5995
|
+
return (React.createElement("div", __assign({ className: classNames('footer', (_b = {}, _b["footer-".concat(position)] = position, _b), className) }, rest, { ref: ref }), children));
|
|
6033
5996
|
});
|
|
6034
5997
|
CFooter.propTypes = {
|
|
6035
5998
|
children: propTypesExports.node,
|
|
@@ -6040,8 +6003,7 @@ CFooter.displayName = 'CFooter';
|
|
|
6040
6003
|
|
|
6041
6004
|
var CForm = React.forwardRef(function (_a, ref) {
|
|
6042
6005
|
var children = _a.children, className = _a.className, validated = _a.validated, rest = __rest(_a, ["children", "className", "validated"]);
|
|
6043
|
-
|
|
6044
|
-
return (React.createElement("form", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6006
|
+
return (React.createElement("form", __assign({ className: classNames({ 'was-validated': validated }, className) || undefined }, rest, { ref: ref }), children));
|
|
6045
6007
|
});
|
|
6046
6008
|
CForm.propTypes = {
|
|
6047
6009
|
children: propTypesExports.node,
|
|
@@ -6053,11 +6015,10 @@ CForm.displayName = 'CForm';
|
|
|
6053
6015
|
var CFormFeedback = React.forwardRef(function (_a, ref) {
|
|
6054
6016
|
var _b;
|
|
6055
6017
|
var children = _a.children, className = _a.className, _c = _a.component, Component = _c === void 0 ? 'div' : _c, invalid = _a.invalid, tooltip = _a.tooltip, valid = _a.valid, rest = __rest(_a, ["children", "className", "component", "invalid", "tooltip", "valid"]);
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6018
|
+
return (React.createElement(Component, __assign({ className: classNames((_b = {},
|
|
6019
|
+
_b["invalid-".concat(tooltip ? 'tooltip' : 'feedback')] = invalid,
|
|
6020
|
+
_b["valid-".concat(tooltip ? 'tooltip' : 'feedback')] = valid,
|
|
6021
|
+
_b), className) }, rest, { ref: ref }), children));
|
|
6061
6022
|
});
|
|
6062
6023
|
CFormFeedback.propTypes = {
|
|
6063
6024
|
children: propTypesExports.node,
|
|
@@ -6089,8 +6050,7 @@ CFormControlValidation.displayName = 'CFormControlValidation';
|
|
|
6089
6050
|
|
|
6090
6051
|
var CFormLabel = React.forwardRef(function (_a, ref) {
|
|
6091
6052
|
var children = _a.children, className = _a.className, customClassName = _a.customClassName, rest = __rest(_a, ["children", "className", "customClassName"]);
|
|
6092
|
-
|
|
6093
|
-
return (React.createElement("label", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6053
|
+
return (React.createElement("label", __assign({ className: customClassName !== null && customClassName !== void 0 ? customClassName : classNames('form-label', className) }, rest, { ref: ref }), children));
|
|
6094
6054
|
});
|
|
6095
6055
|
CFormLabel.propTypes = {
|
|
6096
6056
|
children: propTypesExports.node,
|
|
@@ -6100,8 +6060,7 @@ CFormLabel.propTypes = {
|
|
|
6100
6060
|
CFormLabel.displayName = 'CFormLabel';
|
|
6101
6061
|
|
|
6102
6062
|
var CFormCheck = React.forwardRef(function (_a, ref) {
|
|
6103
|
-
var _b;
|
|
6104
|
-
var className = _a.className, button = _a.button, feedback = _a.feedback, feedbackInvalid = _a.feedbackInvalid, feedbackValid = _a.feedbackValid, floatingLabel = _a.floatingLabel, tooltipFeedback = _a.tooltipFeedback, hitArea = _a.hitArea, id = _a.id, indeterminate = _a.indeterminate, inline = _a.inline, invalid = _a.invalid, label = _a.label, _c = _a.type, type = _c === void 0 ? 'checkbox' : _c, valid = _a.valid, rest = __rest(_a, ["className", "button", "feedback", "feedbackInvalid", "feedbackValid", "floatingLabel", "tooltipFeedback", "hitArea", "id", "indeterminate", "inline", "invalid", "label", "type", "valid"]);
|
|
6063
|
+
var className = _a.className, button = _a.button, feedback = _a.feedback, feedbackInvalid = _a.feedbackInvalid, feedbackValid = _a.feedbackValid, floatingLabel = _a.floatingLabel, tooltipFeedback = _a.tooltipFeedback, hitArea = _a.hitArea, id = _a.id, indeterminate = _a.indeterminate, inline = _a.inline, invalid = _a.invalid, label = _a.label, reverse = _a.reverse, _b = _a.type, type = _b === void 0 ? 'checkbox' : _b, valid = _a.valid, rest = __rest(_a, ["className", "button", "feedback", "feedbackInvalid", "feedbackValid", "floatingLabel", "tooltipFeedback", "hitArea", "id", "indeterminate", "inline", "invalid", "label", "reverse", "type", "valid"]);
|
|
6105
6064
|
var inputRef = React.useRef(null);
|
|
6106
6065
|
var forkedRef = useForkedRef(ref, inputRef);
|
|
6107
6066
|
React.useEffect(function () {
|
|
@@ -6109,47 +6068,51 @@ var CFormCheck = React.forwardRef(function (_a, ref) {
|
|
|
6109
6068
|
inputRef.current.indeterminate = indeterminate;
|
|
6110
6069
|
}
|
|
6111
6070
|
}, [indeterminate]);
|
|
6112
|
-
var
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
var
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
_b), "".concat(button.shape))
|
|
6126
|
-
: 'form-check-label');
|
|
6127
|
-
var formControl = function () {
|
|
6128
|
-
return React.createElement("input", __assign({ type: type, className: inputClassName, id: id }, rest, { ref: forkedRef }));
|
|
6071
|
+
var FormControl = function () { return (React.createElement("input", __assign({ type: type, className: classNames(button ? 'btn-check' : 'form-check-input', {
|
|
6072
|
+
'is-invalid': invalid,
|
|
6073
|
+
'is-valid': valid,
|
|
6074
|
+
'me-2': hitArea,
|
|
6075
|
+
}), id: id }, rest, { ref: forkedRef }))); };
|
|
6076
|
+
var FormValidation = function () { return (React.createElement(CFormControlValidation, { describedby: rest['aria-describedby'], feedback: feedback, feedbackInvalid: feedbackInvalid, feedbackValid: feedbackValid, floatingLabel: floatingLabel, invalid: invalid, tooltipFeedback: tooltipFeedback, valid: valid })); };
|
|
6077
|
+
var FormLabel = function () {
|
|
6078
|
+
var _a;
|
|
6079
|
+
return (React.createElement(CFormLabel, __assign({ customClassName: classNames(button
|
|
6080
|
+
? classNames('btn', button.variant ? "btn-".concat(button.variant, "-").concat(button.color) : "btn-".concat(button.color), (_a = {},
|
|
6081
|
+
_a["btn-".concat(button.size)] = button.size,
|
|
6082
|
+
_a), "".concat(button.shape))
|
|
6083
|
+
: 'form-check-label') }, (id && { htmlFor: id })), label));
|
|
6129
6084
|
};
|
|
6130
|
-
var
|
|
6131
|
-
|
|
6132
|
-
|
|
6085
|
+
var FormCheck = function () {
|
|
6086
|
+
if (button) {
|
|
6087
|
+
return (React.createElement(React.Fragment, null,
|
|
6088
|
+
React.createElement(FormControl, null),
|
|
6089
|
+
label && React.createElement(FormLabel, null),
|
|
6090
|
+
React.createElement(FormValidation, null)));
|
|
6091
|
+
}
|
|
6092
|
+
if (label) {
|
|
6093
|
+
return hitArea ? (React.createElement(React.Fragment, null,
|
|
6094
|
+
React.createElement(FormControl, null),
|
|
6095
|
+
React.createElement(CFormLabel, __assign({ customClassName: classNames('form-check-label stretched-link', className) }, (id && { htmlFor: id })), label),
|
|
6096
|
+
React.createElement(FormValidation, null))) : (React.createElement("div", { className: classNames('form-check', {
|
|
6097
|
+
'form-check-inline': inline,
|
|
6098
|
+
'form-check-reverse': reverse,
|
|
6099
|
+
'is-invalid': invalid,
|
|
6100
|
+
'is-valid': valid,
|
|
6101
|
+
}, className) },
|
|
6102
|
+
React.createElement(FormControl, null),
|
|
6103
|
+
React.createElement(FormLabel, null),
|
|
6104
|
+
React.createElement(FormValidation, null)));
|
|
6105
|
+
}
|
|
6106
|
+
return React.createElement(FormControl, null);
|
|
6133
6107
|
};
|
|
6134
|
-
return
|
|
6135
|
-
formControl(),
|
|
6136
|
-
label && formLabel(),
|
|
6137
|
-
formValidation())) : label ? (hitArea ? (React.createElement(React.Fragment, null,
|
|
6138
|
-
React.createElement(CFormLabel, __assign({ customClassName: className }, (id && { htmlFor: id })),
|
|
6139
|
-
formControl(),
|
|
6140
|
-
label),
|
|
6141
|
-
formValidation())) : (React.createElement("div", { className: _className },
|
|
6142
|
-
formControl(),
|
|
6143
|
-
formLabel(),
|
|
6144
|
-
formValidation()))) : (formControl());
|
|
6108
|
+
return React.createElement(FormCheck, null);
|
|
6145
6109
|
});
|
|
6146
|
-
CFormCheck.propTypes = __assign({ button: propTypesExports.object, className: propTypesExports.string, hitArea: propTypesExports.oneOf(['full']), id: propTypesExports.string, indeterminate: propTypesExports.bool, inline: propTypesExports.bool, label: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.node]), type: propTypesExports.oneOf(['checkbox', 'radio']) }, CFormControlValidation.propTypes);
|
|
6110
|
+
CFormCheck.propTypes = __assign({ button: propTypesExports.object, className: propTypesExports.string, hitArea: propTypesExports.oneOf(['full']), id: propTypesExports.string, indeterminate: propTypesExports.bool, inline: propTypesExports.bool, label: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.node]), reverse: propTypesExports.bool, type: propTypesExports.oneOf(['checkbox', 'radio']) }, CFormControlValidation.propTypes);
|
|
6147
6111
|
CFormCheck.displayName = 'CFormCheck';
|
|
6148
6112
|
|
|
6149
6113
|
var CFormFloating = React.forwardRef(function (_a, ref) {
|
|
6150
6114
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
6151
|
-
|
|
6152
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6115
|
+
return (React.createElement("div", __assign({ className: classNames('form-floating', className) }, rest, { ref: ref }), children));
|
|
6153
6116
|
});
|
|
6154
6117
|
CFormFloating.propTypes = {
|
|
6155
6118
|
children: propTypesExports.node,
|
|
@@ -6159,8 +6122,7 @@ CFormFloating.displayName = 'CFormFloating';
|
|
|
6159
6122
|
|
|
6160
6123
|
var CFormText = React.forwardRef(function (_a, ref) {
|
|
6161
6124
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'div' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
6162
|
-
|
|
6163
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6125
|
+
return (React.createElement(Component, __assign({ className: classNames('form-text', className) }, rest, { ref: ref }), children));
|
|
6164
6126
|
});
|
|
6165
6127
|
CFormText.propTypes = {
|
|
6166
6128
|
children: propTypesExports.node,
|
|
@@ -6171,16 +6133,16 @@ CFormText.displayName = 'CFormText';
|
|
|
6171
6133
|
|
|
6172
6134
|
var CFormControlWrapper = function (_a) {
|
|
6173
6135
|
var children = _a.children, describedby = _a.describedby, feedback = _a.feedback, feedbackInvalid = _a.feedbackInvalid, feedbackValid = _a.feedbackValid, floatingClassName = _a.floatingClassName, floatingLabel = _a.floatingLabel, id = _a.id, invalid = _a.invalid, label = _a.label, text = _a.text, tooltipFeedback = _a.tooltipFeedback, valid = _a.valid;
|
|
6174
|
-
var
|
|
6136
|
+
var FormControlValidation = function () { return (React.createElement(CFormControlValidation, { describedby: describedby, feedback: feedback, feedbackInvalid: feedbackInvalid, feedbackValid: feedbackValid, floatingLabel: floatingLabel, invalid: invalid, tooltipFeedback: tooltipFeedback, valid: valid })); };
|
|
6175
6137
|
return floatingLabel ? (React.createElement(CFormFloating, { className: floatingClassName },
|
|
6176
6138
|
children,
|
|
6177
6139
|
React.createElement(CFormLabel, { htmlFor: id }, label || floatingLabel),
|
|
6178
6140
|
text && React.createElement(CFormText, { id: describedby }, text),
|
|
6179
|
-
|
|
6141
|
+
React.createElement(FormControlValidation, null))) : (React.createElement(React.Fragment, null,
|
|
6180
6142
|
label && React.createElement(CFormLabel, { htmlFor: id }, label),
|
|
6181
6143
|
children,
|
|
6182
6144
|
text && React.createElement(CFormText, { id: describedby }, text),
|
|
6183
|
-
|
|
6145
|
+
React.createElement(FormControlValidation, null)));
|
|
6184
6146
|
};
|
|
6185
6147
|
CFormControlWrapper.propTypes = __assign({ children: propTypesExports.node, floatingClassName: propTypesExports.string, floatingLabel: propTypesExports.oneOfType([propTypesExports.node, propTypesExports.string]), label: propTypesExports.oneOfType([propTypesExports.node, propTypesExports.string]), text: propTypesExports.oneOfType([propTypesExports.node, propTypesExports.string]) }, CFormControlValidation.propTypes);
|
|
6186
6148
|
CFormControlWrapper.displayName = 'CFormControlWrapper';
|
|
@@ -6193,24 +6155,22 @@ var CFormInput = React.forwardRef(function (_a, ref) {
|
|
|
6193
6155
|
var timeOutId = setTimeout(function () { return value && onChange && onChange(value); }, typeof delay === 'number' ? delay : 500);
|
|
6194
6156
|
return function () { return clearTimeout(timeOutId); };
|
|
6195
6157
|
}, [value]);
|
|
6196
|
-
var _className = classNames(plainText ? 'form-control-plaintext' : 'form-control', (_b = {},
|
|
6197
|
-
_b["form-control-".concat(size)] = size,
|
|
6198
|
-
_b['form-control-color'] = type === 'color',
|
|
6199
|
-
_b['is-invalid'] = invalid,
|
|
6200
|
-
_b['is-valid'] = valid,
|
|
6201
|
-
_b), className);
|
|
6202
6158
|
return (React.createElement(CFormControlWrapper, { describedby: rest['aria-describedby'], feedback: feedback, feedbackInvalid: feedbackInvalid, feedbackValid: feedbackValid, floatingClassName: floatingClassName, floatingLabel: floatingLabel, id: id, invalid: invalid, label: label, text: text, tooltipFeedback: tooltipFeedback, valid: valid },
|
|
6203
|
-
React.createElement("input", __assign({ className:
|
|
6159
|
+
React.createElement("input", __assign({ className: classNames(plainText ? 'form-control-plaintext' : 'form-control', (_b = {},
|
|
6160
|
+
_b["form-control-".concat(size)] = size,
|
|
6161
|
+
_b['form-control-color'] = type === 'color',
|
|
6162
|
+
_b['is-invalid'] = invalid,
|
|
6163
|
+
_b['is-valid'] = valid,
|
|
6164
|
+
_b), className), id: id, type: type, onChange: function (event) { return (delay ? setValue(event) : onChange && onChange(event)); } }, rest, { ref: ref }), children)));
|
|
6204
6165
|
});
|
|
6205
6166
|
CFormInput.propTypes = __assign({ className: propTypesExports.string, id: propTypesExports.string, delay: propTypesExports.oneOfType([propTypesExports.bool, propTypesExports.number]), plainText: propTypesExports.bool, size: propTypesExports.oneOf(['sm', 'lg']), type: propTypesExports.oneOfType([propTypesExports.oneOf(['color', 'file', 'text']), propTypesExports.string]) }, CFormControlWrapper.propTypes);
|
|
6206
6167
|
CFormInput.displayName = 'CFormInput';
|
|
6207
6168
|
|
|
6208
6169
|
var CFormRange = React.forwardRef(function (_a, ref) {
|
|
6209
6170
|
var className = _a.className, label = _a.label, rest = __rest(_a, ["className", "label"]);
|
|
6210
|
-
var _className = classNames('form-range', className);
|
|
6211
6171
|
return (React.createElement(React.Fragment, null,
|
|
6212
6172
|
label && React.createElement(CFormLabel, { htmlFor: rest.id }, label),
|
|
6213
|
-
React.createElement("input", __assign({ type: "range", className:
|
|
6173
|
+
React.createElement("input", __assign({ type: "range", className: classNames('form-range', className) }, rest, { ref: ref }))));
|
|
6214
6174
|
});
|
|
6215
6175
|
CFormRange.propTypes = {
|
|
6216
6176
|
className: propTypesExports.string,
|
|
@@ -6221,13 +6181,12 @@ CFormRange.displayName = 'CFormRange';
|
|
|
6221
6181
|
var CFormSelect = React.forwardRef(function (_a, ref) {
|
|
6222
6182
|
var _b;
|
|
6223
6183
|
var children = _a.children, className = _a.className, feedback = _a.feedback, feedbackInvalid = _a.feedbackInvalid, feedbackValid = _a.feedbackValid, floatingClassName = _a.floatingClassName, floatingLabel = _a.floatingLabel, htmlSize = _a.htmlSize, id = _a.id, invalid = _a.invalid, label = _a.label, options = _a.options, size = _a.size, text = _a.text, tooltipFeedback = _a.tooltipFeedback, valid = _a.valid, rest = __rest(_a, ["children", "className", "feedback", "feedbackInvalid", "feedbackValid", "floatingClassName", "floatingLabel", "htmlSize", "id", "invalid", "label", "options", "size", "text", "tooltipFeedback", "valid"]);
|
|
6224
|
-
var _className = classNames('form-select', (_b = {},
|
|
6225
|
-
_b["form-select-".concat(size)] = size,
|
|
6226
|
-
_b['is-invalid'] = invalid,
|
|
6227
|
-
_b['is-valid'] = valid,
|
|
6228
|
-
_b), className);
|
|
6229
6184
|
return (React.createElement(CFormControlWrapper, { describedby: rest['aria-describedby'], feedback: feedback, feedbackInvalid: feedbackInvalid, feedbackValid: feedbackValid, floatingClassName: floatingClassName, floatingLabel: floatingLabel, id: id, invalid: invalid, label: label, text: text, tooltipFeedback: tooltipFeedback, valid: valid },
|
|
6230
|
-
React.createElement("select", __assign({ id: id, className:
|
|
6185
|
+
React.createElement("select", __assign({ id: id, className: classNames('form-select', (_b = {},
|
|
6186
|
+
_b["form-select-".concat(size)] = size,
|
|
6187
|
+
_b['is-invalid'] = invalid,
|
|
6188
|
+
_b['is-valid'] = valid,
|
|
6189
|
+
_b), className), size: htmlSize }, rest, { ref: ref }), options
|
|
6231
6190
|
? options.map(function (option, index) {
|
|
6232
6191
|
return (React.createElement("option", __assign({}, (typeof option === 'object' &&
|
|
6233
6192
|
option.disabled && { disabled: option.disabled }), (typeof option === 'object' && option.value && { value: option.value }), { key: index }), typeof option === 'string' ? option : option.label));
|
|
@@ -6239,26 +6198,26 @@ CFormSelect.displayName = 'CFormSelect';
|
|
|
6239
6198
|
|
|
6240
6199
|
var CFormSwitch = React.forwardRef(function (_a, ref) {
|
|
6241
6200
|
var _b;
|
|
6242
|
-
var className = _a.className, id = _a.id, invalid = _a.invalid, label = _a.label, size = _a.size, _c = _a.type, type = _c === void 0 ? 'checkbox' : _c, valid = _a.valid, rest = __rest(_a, ["className", "id", "invalid", "label", "size", "type", "valid"]);
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
'
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
React.createElement(
|
|
6255
|
-
label && (React.createElement(CFormLabel, __assign({ customClassName: labelClassName }, (id && { htmlFor: id })), label))));
|
|
6201
|
+
var className = _a.className, id = _a.id, invalid = _a.invalid, label = _a.label, reverse = _a.reverse, size = _a.size, _c = _a.type, type = _c === void 0 ? 'checkbox' : _c, valid = _a.valid, rest = __rest(_a, ["className", "id", "invalid", "label", "reverse", "size", "type", "valid"]);
|
|
6202
|
+
return (React.createElement("div", { className: classNames('form-check form-switch', (_b = {
|
|
6203
|
+
'form-check-reverse': reverse
|
|
6204
|
+
},
|
|
6205
|
+
_b["form-switch-".concat(size)] = size,
|
|
6206
|
+
_b['is-invalid'] = invalid,
|
|
6207
|
+
_b['is-valid'] = valid,
|
|
6208
|
+
_b), className) },
|
|
6209
|
+
React.createElement("input", __assign({ type: type, className: classNames('form-check-input', {
|
|
6210
|
+
'is-invalid': invalid,
|
|
6211
|
+
'is-valid': valid,
|
|
6212
|
+
}), id: id }, rest, { ref: ref })),
|
|
6213
|
+
label && (React.createElement(CFormLabel, __assign({ customClassName: "form-check-label" }, (id && { htmlFor: id })), label))));
|
|
6256
6214
|
});
|
|
6257
6215
|
CFormSwitch.propTypes = {
|
|
6258
6216
|
className: propTypesExports.string,
|
|
6259
6217
|
id: propTypesExports.string,
|
|
6260
6218
|
invalid: propTypesExports.bool,
|
|
6261
6219
|
label: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.node]),
|
|
6220
|
+
reverse: propTypesExports.bool,
|
|
6262
6221
|
size: propTypesExports.oneOf(['lg', 'xl']),
|
|
6263
6222
|
type: propTypesExports.oneOf(['checkbox', 'radio']),
|
|
6264
6223
|
valid: propTypesExports.bool,
|
|
@@ -6267,12 +6226,11 @@ CFormSwitch.displayName = 'CFormSwitch';
|
|
|
6267
6226
|
|
|
6268
6227
|
var CFormTextarea = React.forwardRef(function (_a, ref) {
|
|
6269
6228
|
var children = _a.children, className = _a.className, feedback = _a.feedback, feedbackInvalid = _a.feedbackInvalid, feedbackValid = _a.feedbackValid, floatingClassName = _a.floatingClassName, floatingLabel = _a.floatingLabel, id = _a.id, invalid = _a.invalid, label = _a.label, plainText = _a.plainText, text = _a.text, tooltipFeedback = _a.tooltipFeedback, valid = _a.valid, rest = __rest(_a, ["children", "className", "feedback", "feedbackInvalid", "feedbackValid", "floatingClassName", "floatingLabel", "id", "invalid", "label", "plainText", "text", "tooltipFeedback", "valid"]);
|
|
6270
|
-
var _className = classNames(plainText ? 'form-control-plaintext' : 'form-control', {
|
|
6271
|
-
'is-invalid': invalid,
|
|
6272
|
-
'is-valid': valid,
|
|
6273
|
-
}, className);
|
|
6274
6229
|
return (React.createElement(CFormControlWrapper, { describedby: rest['aria-describedby'], feedback: feedback, feedbackInvalid: feedbackInvalid, feedbackValid: feedbackValid, floatingClassName: floatingClassName, floatingLabel: floatingLabel, id: id, invalid: invalid, label: label, text: text, tooltipFeedback: tooltipFeedback, valid: valid },
|
|
6275
|
-
React.createElement("textarea", __assign({ className:
|
|
6230
|
+
React.createElement("textarea", __assign({ className: classNames(plainText ? 'form-control-plaintext' : 'form-control', {
|
|
6231
|
+
'is-invalid': invalid,
|
|
6232
|
+
'is-valid': valid,
|
|
6233
|
+
}, className), id: id }, rest, { ref: ref }), children)));
|
|
6276
6234
|
});
|
|
6277
6235
|
CFormTextarea.propTypes = __assign({ className: propTypesExports.string, id: propTypesExports.string, plainText: propTypesExports.bool }, CFormControlWrapper.propTypes);
|
|
6278
6236
|
CFormTextarea.displayName = 'CFormTextarea';
|
|
@@ -6280,10 +6238,9 @@ CFormTextarea.displayName = 'CFormTextarea';
|
|
|
6280
6238
|
var CInputGroup = React.forwardRef(function (_a, ref) {
|
|
6281
6239
|
var _b;
|
|
6282
6240
|
var children = _a.children, className = _a.className, size = _a.size, rest = __rest(_a, ["children", "className", "size"]);
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6241
|
+
return (React.createElement("div", __assign({ className: classNames('input-group', (_b = {},
|
|
6242
|
+
_b["input-group-".concat(size)] = size,
|
|
6243
|
+
_b), className) }, rest, { ref: ref }), children));
|
|
6287
6244
|
});
|
|
6288
6245
|
CInputGroup.propTypes = {
|
|
6289
6246
|
children: propTypesExports.node,
|
|
@@ -6294,8 +6251,7 @@ CInputGroup.displayName = 'CInputGroup';
|
|
|
6294
6251
|
|
|
6295
6252
|
var CInputGroupText = React.forwardRef(function (_a, ref) {
|
|
6296
6253
|
var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'span' : _b, rest = __rest(_a, ["children", "className", "component"]);
|
|
6297
|
-
|
|
6298
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6254
|
+
return (React.createElement(Component, __assign({ className: classNames('input-group-text', className) }, rest, { ref: ref }), children));
|
|
6299
6255
|
});
|
|
6300
6256
|
CInputGroupText.propTypes = {
|
|
6301
6257
|
children: propTypesExports.node,
|
|
@@ -6340,8 +6296,7 @@ var CCol = React.forwardRef(function (_a, ref) {
|
|
|
6340
6296
|
}
|
|
6341
6297
|
}
|
|
6342
6298
|
});
|
|
6343
|
-
|
|
6344
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6299
|
+
return (React.createElement("div", __assign({ className: classNames(repsonsiveClassNames.length > 0 ? repsonsiveClassNames : 'col', className) }, rest, { ref: ref }), children));
|
|
6345
6300
|
});
|
|
6346
6301
|
var span = propTypesExports.oneOfType([
|
|
6347
6302
|
propTypesExports.bool,
|
|
@@ -6389,8 +6344,7 @@ var CContainer = React.forwardRef(function (_a, ref) {
|
|
|
6389
6344
|
delete rest[bp];
|
|
6390
6345
|
breakpoint && repsonsiveClassNames.push("container-".concat(bp));
|
|
6391
6346
|
});
|
|
6392
|
-
|
|
6393
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6347
|
+
return (React.createElement("div", __assign({ className: classNames(repsonsiveClassNames.length > 0 ? repsonsiveClassNames : 'container', className) }, rest, { ref: ref }), children));
|
|
6394
6348
|
});
|
|
6395
6349
|
CContainer.propTypes = {
|
|
6396
6350
|
children: propTypesExports.node,
|
|
@@ -6434,8 +6388,7 @@ var CRow = React.forwardRef(function (_a, ref) {
|
|
|
6434
6388
|
}
|
|
6435
6389
|
}
|
|
6436
6390
|
});
|
|
6437
|
-
|
|
6438
|
-
return (React.createElement("div", { className: _className, ref: ref }, children));
|
|
6391
|
+
return (React.createElement("div", { className: classNames('row', repsonsiveClassNames, className), ref: ref }, children));
|
|
6439
6392
|
});
|
|
6440
6393
|
var bp = propTypesExports.shape({
|
|
6441
6394
|
cols: propTypesExports.oneOfType([propTypesExports.oneOf(['auto']), propTypesExports.number, propTypesExports.string]),
|
|
@@ -6458,15 +6411,7 @@ CRow.displayName = 'CRow';
|
|
|
6458
6411
|
var CHeader = React.forwardRef(function (_a, ref) {
|
|
6459
6412
|
var _b;
|
|
6460
6413
|
var children = _a.children, className = _a.className, container = _a.container, position = _a.position, rest = __rest(_a, ["children", "className", "container", "position"]);
|
|
6461
|
-
|
|
6462
|
-
var content;
|
|
6463
|
-
if (container) {
|
|
6464
|
-
content = (React.createElement("div", { className: "container".concat(container !== true ? '-' + container : '') }, children));
|
|
6465
|
-
}
|
|
6466
|
-
else {
|
|
6467
|
-
content = children;
|
|
6468
|
-
}
|
|
6469
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), content));
|
|
6414
|
+
return (React.createElement("div", __assign({ className: classNames('header', (_b = {}, _b["header-".concat(position)] = position, _b), className) }, rest, { ref: ref }), container ? (React.createElement("div", { className: typeof container === 'string' ? "container-".concat(container) : 'container' }, children)) : (React.createElement(React.Fragment, null, children))));
|
|
6470
6415
|
});
|
|
6471
6416
|
CHeader.propTypes = {
|
|
6472
6417
|
children: propTypesExports.node,
|
|
@@ -6488,8 +6433,7 @@ CHeader.displayName = 'CHeader';
|
|
|
6488
6433
|
|
|
6489
6434
|
var CHeaderBrand = React.forwardRef(function (_a, ref) {
|
|
6490
6435
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'a' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
6491
|
-
|
|
6492
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6436
|
+
return (React.createElement(Component, __assign({ className: classNames('header-brand', className) }, rest, { ref: ref }), children));
|
|
6493
6437
|
});
|
|
6494
6438
|
CHeaderBrand.propTypes = {
|
|
6495
6439
|
children: propTypesExports.node,
|
|
@@ -6500,8 +6444,7 @@ CHeaderBrand.displayName = 'CHeaderBrand';
|
|
|
6500
6444
|
|
|
6501
6445
|
var CHeaderDivider = React.forwardRef(function (_a, ref) {
|
|
6502
6446
|
var className = _a.className, rest = __rest(_a, ["className"]);
|
|
6503
|
-
|
|
6504
|
-
return React.createElement("div", __assign({ className: _className }, rest, { ref: ref }));
|
|
6447
|
+
return React.createElement("div", __assign({ className: classNames('header-divider', className) }, rest, { ref: ref }));
|
|
6505
6448
|
});
|
|
6506
6449
|
CHeaderDivider.propTypes = {
|
|
6507
6450
|
className: propTypesExports.string,
|
|
@@ -6510,8 +6453,7 @@ CHeaderDivider.displayName = 'CHeaderDivider';
|
|
|
6510
6453
|
|
|
6511
6454
|
var CHeaderNav = React.forwardRef(function (_a, ref) {
|
|
6512
6455
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'ul' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
6513
|
-
|
|
6514
|
-
return (React.createElement(Component, __assign({ className: _className, role: "navigation" }, rest, { ref: ref }), children));
|
|
6456
|
+
return (React.createElement(Component, __assign({ className: classNames('header-nav', className), role: "navigation" }, rest, { ref: ref }), children));
|
|
6515
6457
|
});
|
|
6516
6458
|
CHeaderNav.propTypes = {
|
|
6517
6459
|
children: propTypesExports.node,
|
|
@@ -6522,8 +6464,7 @@ CHeaderNav.displayName = 'CHeaderNav';
|
|
|
6522
6464
|
|
|
6523
6465
|
var CHeaderText = React.forwardRef(function (_a, ref) {
|
|
6524
6466
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
6525
|
-
|
|
6526
|
-
return (React.createElement("span", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6467
|
+
return (React.createElement("span", __assign({ className: classNames('header-text', className) }, rest, { ref: ref }), children));
|
|
6527
6468
|
});
|
|
6528
6469
|
CHeaderText.propTypes = {
|
|
6529
6470
|
children: propTypesExports.node,
|
|
@@ -6533,8 +6474,7 @@ CHeaderText.displayName = 'CHeaderText';
|
|
|
6533
6474
|
|
|
6534
6475
|
var CHeaderToggler = React.forwardRef(function (_a, ref) {
|
|
6535
6476
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
6536
|
-
|
|
6537
|
-
return (React.createElement("button", __assign({ type: "button", className: _className }, rest, { ref: ref }), children ? children : React.createElement("span", { className: "header-toggler-icon" })));
|
|
6477
|
+
return (React.createElement("button", __assign({ type: "button", className: classNames('header-toggler', className) }, rest, { ref: ref }), children !== null && children !== void 0 ? children : React.createElement("span", { className: "header-toggler-icon" })));
|
|
6538
6478
|
});
|
|
6539
6479
|
CHeaderToggler.propTypes = {
|
|
6540
6480
|
children: propTypesExports.node,
|
|
@@ -6545,14 +6485,13 @@ CHeaderToggler.displayName = 'CHeaderToggler';
|
|
|
6545
6485
|
var CImage = React.forwardRef(function (_a, ref) {
|
|
6546
6486
|
var _b;
|
|
6547
6487
|
var align = _a.align, className = _a.className, fluid = _a.fluid, rounded = _a.rounded, thumbnail = _a.thumbnail, rest = __rest(_a, ["align", "className", "fluid", "rounded", "thumbnail"]);
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
return React.createElement("img", __assign({ className: _className }, rest, { ref: ref }));
|
|
6488
|
+
return (React.createElement("img", __assign({ className: classNames((_b = {},
|
|
6489
|
+
_b["float-".concat(align)] = align && (align === 'start' || align === 'end'),
|
|
6490
|
+
_b['d-block mx-auto'] = align && align === 'center',
|
|
6491
|
+
_b['img-fluid'] = fluid,
|
|
6492
|
+
_b.rounded = rounded,
|
|
6493
|
+
_b['img-thumbnail'] = thumbnail,
|
|
6494
|
+
_b), className) || undefined }, rest, { ref: ref })));
|
|
6556
6495
|
});
|
|
6557
6496
|
CImage.propTypes = {
|
|
6558
6497
|
align: propTypesExports.oneOf(['start', 'center', 'end']),
|
|
@@ -6566,12 +6505,11 @@ CImage.displayName = 'CImage';
|
|
|
6566
6505
|
var CListGroup = React.forwardRef(function (_a, ref) {
|
|
6567
6506
|
var _b;
|
|
6568
6507
|
var children = _a.children, className = _a.className, _c = _a.component, Component = _c === void 0 ? 'ul' : _c, flush = _a.flush, layout = _a.layout;
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
return (React.createElement(Component, { className: _className, ref: ref }, children));
|
|
6508
|
+
return (React.createElement(Component, { className: classNames('list-group', (_b = {
|
|
6509
|
+
'list-group-flush': flush
|
|
6510
|
+
},
|
|
6511
|
+
_b["list-group-".concat(layout)] = layout,
|
|
6512
|
+
_b), className), ref: ref }, children));
|
|
6575
6513
|
});
|
|
6576
6514
|
CListGroup.propTypes = {
|
|
6577
6515
|
children: propTypesExports.node,
|
|
@@ -6592,12 +6530,6 @@ CListGroup.displayName = 'CListGroup';
|
|
|
6592
6530
|
var CListGroupItem = React.forwardRef(function (_a, ref) {
|
|
6593
6531
|
var _b;
|
|
6594
6532
|
var children = _a.children, active = _a.active, className = _a.className, disabled = _a.disabled, color = _a.color, _c = _a.component, component = _c === void 0 ? 'li' : _c, rest = __rest(_a, ["children", "active", "className", "disabled", "color", "component"]);
|
|
6595
|
-
var _className = classNames('list-group-item', (_b = {},
|
|
6596
|
-
_b["list-group-item-".concat(color)] = color,
|
|
6597
|
-
_b['list-group-item-action'] = component === 'a' || component === 'button',
|
|
6598
|
-
_b.active = active,
|
|
6599
|
-
_b.disabled = disabled,
|
|
6600
|
-
_b), className);
|
|
6601
6533
|
var Component = component === 'a' || component === 'button' ? CLink : component;
|
|
6602
6534
|
rest = __assign(__assign(__assign(__assign({}, ((component === 'a' || component === 'button') && {
|
|
6603
6535
|
active: active,
|
|
@@ -6605,7 +6537,12 @@ var CListGroupItem = React.forwardRef(function (_a, ref) {
|
|
|
6605
6537
|
component: component,
|
|
6606
6538
|
ref: ref,
|
|
6607
6539
|
})), (active && { 'aria-current': true })), (disabled && { 'aria-disabled': true })), rest);
|
|
6608
|
-
return (React.createElement(Component, __assign({ className:
|
|
6540
|
+
return (React.createElement(Component, __assign({ className: classNames('list-group-item', (_b = {},
|
|
6541
|
+
_b["list-group-item-".concat(color)] = color,
|
|
6542
|
+
_b['list-group-item-action'] = component === 'a' || component === 'button',
|
|
6543
|
+
_b.active = active,
|
|
6544
|
+
_b.disabled = disabled,
|
|
6545
|
+
_b), className) }, rest), children));
|
|
6609
6546
|
});
|
|
6610
6547
|
CListGroupItem.propTypes = {
|
|
6611
6548
|
active: propTypesExports.bool,
|
|
@@ -6619,8 +6556,7 @@ CListGroupItem.displayName = 'CListGroupItem';
|
|
|
6619
6556
|
|
|
6620
6557
|
var CModalContent = React.forwardRef(function (_a, ref) {
|
|
6621
6558
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
6622
|
-
|
|
6623
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6559
|
+
return (React.createElement("div", __assign({ className: classNames('modal-content', className) }, rest, { ref: ref }), children));
|
|
6624
6560
|
});
|
|
6625
6561
|
CModalContent.propTypes = {
|
|
6626
6562
|
children: propTypesExports.node,
|
|
@@ -6631,16 +6567,15 @@ CModalContent.displayName = 'CModalContent';
|
|
|
6631
6567
|
var CModalDialog = React.forwardRef(function (_a, ref) {
|
|
6632
6568
|
var _b;
|
|
6633
6569
|
var children = _a.children, alignment = _a.alignment, className = _a.className, fullscreen = _a.fullscreen, scrollable = _a.scrollable, size = _a.size, rest = __rest(_a, ["children", "alignment", "className", "fullscreen", "scrollable", "size"]);
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6570
|
+
return (React.createElement("div", __assign({ className: classNames('modal-dialog', (_b = {
|
|
6571
|
+
'modal-dialog-centered': alignment === 'center'
|
|
6572
|
+
},
|
|
6573
|
+
_b[typeof fullscreen === 'boolean'
|
|
6574
|
+
? 'modal-fullscreen'
|
|
6575
|
+
: "modal-fullscreen-".concat(fullscreen, "-down")] = fullscreen,
|
|
6576
|
+
_b['modal-dialog-scrollable'] = scrollable,
|
|
6577
|
+
_b["modal-".concat(size)] = size,
|
|
6578
|
+
_b), className) }, rest, { ref: ref }), children));
|
|
6644
6579
|
});
|
|
6645
6580
|
CModalDialog.propTypes = {
|
|
6646
6581
|
alignment: propTypesExports.oneOf(['top', 'center']),
|
|
@@ -6663,19 +6598,19 @@ var CModal = React.forwardRef(function (_a, ref) {
|
|
|
6663
6598
|
var forkedRef = useForkedRef(ref, modalRef);
|
|
6664
6599
|
var _h = React.useState(visible), _visible = _h[0], setVisible = _h[1];
|
|
6665
6600
|
var _j = React.useState(false), staticBackdrop = _j[0], setStaticBackdrop = _j[1];
|
|
6666
|
-
React.useEffect(function () {
|
|
6667
|
-
setVisible(visible);
|
|
6668
|
-
}, [visible]);
|
|
6669
6601
|
var contextValues = {
|
|
6670
6602
|
visible: _visible,
|
|
6671
6603
|
setVisible: setVisible,
|
|
6672
6604
|
};
|
|
6673
6605
|
React.useEffect(function () {
|
|
6674
|
-
|
|
6675
|
-
|
|
6606
|
+
setVisible(visible);
|
|
6607
|
+
}, [visible]);
|
|
6608
|
+
React.useEffect(function () {
|
|
6609
|
+
document.addEventListener('click', handleClickOutside);
|
|
6610
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
6676
6611
|
return function () {
|
|
6677
|
-
|
|
6678
|
-
|
|
6612
|
+
document.removeEventListener('click', handleClickOutside);
|
|
6613
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
6679
6614
|
};
|
|
6680
6615
|
}, [_visible]);
|
|
6681
6616
|
var handleDismiss = function () {
|
|
@@ -6688,19 +6623,6 @@ var CModal = React.forwardRef(function (_a, ref) {
|
|
|
6688
6623
|
onClosePrevented && onClosePrevented();
|
|
6689
6624
|
setTimeout(function () { return setStaticBackdrop(false); }, duration);
|
|
6690
6625
|
}, [staticBackdrop]);
|
|
6691
|
-
var getTransitionClass = function (state) {
|
|
6692
|
-
return state === 'entering'
|
|
6693
|
-
? 'd-block'
|
|
6694
|
-
: state === 'entered'
|
|
6695
|
-
? 'show d-block'
|
|
6696
|
-
: state === 'exiting'
|
|
6697
|
-
? 'd-block'
|
|
6698
|
-
: '';
|
|
6699
|
-
};
|
|
6700
|
-
var _className = classNames('modal', {
|
|
6701
|
-
'modal-static': staticBackdrop,
|
|
6702
|
-
fade: transition,
|
|
6703
|
-
}, className);
|
|
6704
6626
|
// Set focus to modal after open
|
|
6705
6627
|
React.useLayoutEffect(function () {
|
|
6706
6628
|
if (_visible) {
|
|
@@ -6712,7 +6634,7 @@ var CModal = React.forwardRef(function (_a, ref) {
|
|
|
6712
6634
|
setTimeout(function () {
|
|
6713
6635
|
var _a;
|
|
6714
6636
|
(_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
6715
|
-
},
|
|
6637
|
+
}, transition ? duration : 0);
|
|
6716
6638
|
}
|
|
6717
6639
|
else {
|
|
6718
6640
|
document.body.classList.remove('modal-open');
|
|
@@ -6735,27 +6657,23 @@ var CModal = React.forwardRef(function (_a, ref) {
|
|
|
6735
6657
|
handleDismiss();
|
|
6736
6658
|
}
|
|
6737
6659
|
};
|
|
6738
|
-
var handleKeyDown =
|
|
6660
|
+
var handleKeyDown = function (event) {
|
|
6739
6661
|
if (event.key === 'Escape' && keyboard) {
|
|
6740
|
-
|
|
6662
|
+
handleDismiss();
|
|
6741
6663
|
}
|
|
6742
|
-
}, [modalRef, handleDismiss]);
|
|
6743
|
-
var modal = function (ref, transitionClass) {
|
|
6744
|
-
return (React.createElement(CModalContext.Provider, { value: contextValues },
|
|
6745
|
-
React.createElement("div", { className: classNames(_className, transitionClass), tabIndex: -1, role: "dialog", ref: ref },
|
|
6746
|
-
React.createElement(CModalDialog, { alignment: alignment, fullscreen: fullscreen, scrollable: scrollable, size: size },
|
|
6747
|
-
React.createElement(CModalContent, __assign({}, rest, { ref: modalContentRef }), children)))));
|
|
6748
6664
|
};
|
|
6749
6665
|
return (React.createElement(React.Fragment, null,
|
|
6750
|
-
React.createElement(Transition$1, { in: _visible, mountOnEnter: true, nodeRef: modalRef, onEnter: onShow, onExit: onClose, unmountOnExit: unmountOnClose, timeout:
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6666
|
+
React.createElement(Transition$1, { in: _visible, mountOnEnter: true, nodeRef: modalRef, onEnter: onShow, onExit: onClose, unmountOnExit: unmountOnClose, timeout: transition ? duration : 0 }, function (state) { return (React.createElement(CConditionalPortal, { portal: portal },
|
|
6667
|
+
React.createElement(CModalContext.Provider, { value: contextValues },
|
|
6668
|
+
React.createElement("div", { className: classNames('modal', {
|
|
6669
|
+
'modal-static': staticBackdrop,
|
|
6670
|
+
fade: transition,
|
|
6671
|
+
show: state === 'entered',
|
|
6672
|
+
}, className), tabIndex: -1, role: "dialog", style: __assign({}, (state !== 'exited' && { display: 'block' })), ref: forkedRef },
|
|
6673
|
+
React.createElement(CModalDialog, { alignment: alignment, fullscreen: fullscreen, scrollable: scrollable, size: size },
|
|
6674
|
+
React.createElement(CModalContent, __assign({}, rest, { ref: modalContentRef }), children)))))); }),
|
|
6675
|
+
backdrop && (React.createElement(CConditionalPortal, { portal: portal },
|
|
6676
|
+
React.createElement(CBackdrop, { visible: _visible })))));
|
|
6759
6677
|
});
|
|
6760
6678
|
CModal.propTypes = {
|
|
6761
6679
|
alignment: propTypesExports.oneOf(['top', 'center']),
|
|
@@ -6782,8 +6700,7 @@ CModal.displayName = 'CModal';
|
|
|
6782
6700
|
|
|
6783
6701
|
var CModalBody = React.forwardRef(function (_a, ref) {
|
|
6784
6702
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
6785
|
-
|
|
6786
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6703
|
+
return (React.createElement("div", __assign({ className: classNames('modal-body', className) }, rest, { ref: ref }), children));
|
|
6787
6704
|
});
|
|
6788
6705
|
CModalBody.propTypes = {
|
|
6789
6706
|
children: propTypesExports.node,
|
|
@@ -6793,8 +6710,7 @@ CModalBody.displayName = 'CModalBody';
|
|
|
6793
6710
|
|
|
6794
6711
|
var CModalFooter = React.forwardRef(function (_a, ref) {
|
|
6795
6712
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
6796
|
-
|
|
6797
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6713
|
+
return (React.createElement("div", __assign({ className: classNames('modal-footer', className) }, rest, { ref: ref }), children));
|
|
6798
6714
|
});
|
|
6799
6715
|
CModalFooter.propTypes = {
|
|
6800
6716
|
children: propTypesExports.node,
|
|
@@ -6805,8 +6721,7 @@ CModalFooter.displayName = 'CModalFooter';
|
|
|
6805
6721
|
var CModalHeader = React.forwardRef(function (_a, ref) {
|
|
6806
6722
|
var children = _a.children, className = _a.className, _b = _a.closeButton, closeButton = _b === void 0 ? true : _b, rest = __rest(_a, ["children", "className", "closeButton"]);
|
|
6807
6723
|
var setVisible = React.useContext(CModalContext).setVisible;
|
|
6808
|
-
|
|
6809
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
6724
|
+
return (React.createElement("div", __assign({ className: classNames('modal-header', className) }, rest, { ref: ref }),
|
|
6810
6725
|
children,
|
|
6811
6726
|
closeButton && React.createElement(CCloseButton, { onClick: function () { return setVisible(false); } })));
|
|
6812
6727
|
});
|
|
@@ -6819,8 +6734,7 @@ CModalHeader.displayName = 'CModalHeader';
|
|
|
6819
6734
|
|
|
6820
6735
|
var CModalTitle = React.forwardRef(function (_a, ref) {
|
|
6821
6736
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'h5' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
6822
|
-
|
|
6823
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6737
|
+
return (React.createElement(Component, __assign({ className: classNames('modal-title', className) }, rest, { ref: ref }), children));
|
|
6824
6738
|
});
|
|
6825
6739
|
CModalTitle.propTypes = {
|
|
6826
6740
|
children: propTypesExports.node,
|
|
@@ -6832,11 +6746,10 @@ CModalTitle.displayName = 'CModalTitle';
|
|
|
6832
6746
|
var CNav = React.forwardRef(function (_a, ref) {
|
|
6833
6747
|
var _b;
|
|
6834
6748
|
var children = _a.children, className = _a.className, _c = _a.component, Component = _c === void 0 ? 'ul' : _c, layout = _a.layout, variant = _a.variant, rest = __rest(_a, ["children", "className", "component", "layout", "variant"]);
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
return (React.createElement(Component, __assign({ className: _className, role: "navigation" }, rest, { ref: ref }), children));
|
|
6749
|
+
return (React.createElement(Component, __assign({ className: classNames('nav', (_b = {},
|
|
6750
|
+
_b["nav-".concat(layout)] = layout,
|
|
6751
|
+
_b["nav-".concat(variant)] = variant,
|
|
6752
|
+
_b), className), role: "navigation" }, rest, { ref: ref }), children));
|
|
6840
6753
|
});
|
|
6841
6754
|
CNav.propTypes = {
|
|
6842
6755
|
children: propTypesExports.node,
|
|
@@ -6849,8 +6762,7 @@ CNav.displayName = 'CNav';
|
|
|
6849
6762
|
|
|
6850
6763
|
var CNavGroupItems = React.forwardRef(function (_a, ref) {
|
|
6851
6764
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
6852
|
-
|
|
6853
|
-
return (React.createElement("ul", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6765
|
+
return (React.createElement("ul", __assign({ className: classNames('nav-group-items', className) }, rest, { ref: ref }), children));
|
|
6854
6766
|
});
|
|
6855
6767
|
CNavGroupItems.propTypes = {
|
|
6856
6768
|
children: propTypesExports.node,
|
|
@@ -6866,8 +6778,7 @@ var CSidebarNav = React.forwardRef(function (_a, ref) {
|
|
|
6866
6778
|
visibleGroup: visibleGroup,
|
|
6867
6779
|
setVisibleGroup: setVisibleGroup,
|
|
6868
6780
|
};
|
|
6869
|
-
|
|
6870
|
-
return (React.createElement("ul", __assign({ className: classes, ref: ref }, rest),
|
|
6781
|
+
return (React.createElement("ul", __assign({ className: classNames('sidebar-nav', className), ref: ref }, rest),
|
|
6871
6782
|
React.createElement(CNavContext.Provider, { value: CNavContextValues }, React.Children.map(children, function (child, index) {
|
|
6872
6783
|
if (React.isValidElement(child)) {
|
|
6873
6784
|
return React.cloneElement(child, {
|
|
@@ -6926,8 +6837,7 @@ var CNavGroup = React.forwardRef(function (_a, ref) {
|
|
|
6926
6837
|
exiting: { display: 'block', height: height },
|
|
6927
6838
|
exited: { height: height },
|
|
6928
6839
|
};
|
|
6929
|
-
|
|
6930
|
-
return (React.createElement("li", __assign({ className: _className }, rest, { ref: ref }),
|
|
6840
|
+
return (React.createElement("li", __assign({ className: classNames('nav-group', { show: _visible }, className) }, rest, { ref: ref }),
|
|
6931
6841
|
toggler && (React.createElement("a", { className: "nav-link nav-group-toggle", onClick: function (event) { return handleTogglerOnCLick(event); } }, toggler)),
|
|
6932
6842
|
React.createElement(Transition$1, { in: _visible, nodeRef: navItemsRef, onEntering: onEntering, onEntered: onEntered, onExit: onExit, onExiting: onExiting, onExited: onExited, timeout: 300 }, function (state) { return (React.createElement("ul", { className: classNames('nav-group-items', {
|
|
6933
6843
|
compact: compact,
|
|
@@ -6956,13 +6866,12 @@ var CNavLink = React.forwardRef(function (_a, ref) {
|
|
|
6956
6866
|
var navLinkRef = React.useRef(null);
|
|
6957
6867
|
var forkedRef = useForkedRef(ref, navLinkRef);
|
|
6958
6868
|
var setVisibleGroup = React.useContext(CNavContext).setVisibleGroup;
|
|
6959
|
-
var _className = classNames('nav-link', className);
|
|
6960
6869
|
React.useEffect(function () {
|
|
6961
6870
|
var _a;
|
|
6962
6871
|
rest.active = (_a = navLinkRef.current) === null || _a === void 0 ? void 0 : _a.classList.contains('active');
|
|
6963
6872
|
idx && rest.active && setVisibleGroup(idx);
|
|
6964
6873
|
}, [rest.active, className]);
|
|
6965
|
-
return (React.createElement(CLink, __assign({ className:
|
|
6874
|
+
return (React.createElement(CLink, __assign({ className: classNames('nav-link', className) }, rest, { ref: forkedRef }), children));
|
|
6966
6875
|
});
|
|
6967
6876
|
CNavLink.propTypes = {
|
|
6968
6877
|
children: propTypesExports.node,
|
|
@@ -6973,11 +6882,7 @@ CNavLink.displayName = 'CNavLink';
|
|
|
6973
6882
|
|
|
6974
6883
|
var CNavItem = React.forwardRef(function (_a, ref) {
|
|
6975
6884
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
6976
|
-
|
|
6977
|
-
if (rest.href || rest.to) {
|
|
6978
|
-
children = (React.createElement(CNavLink, __assign({ className: className }, rest), children));
|
|
6979
|
-
}
|
|
6980
|
-
return (React.createElement("li", { className: _className, ref: ref }, children));
|
|
6885
|
+
return (React.createElement("li", { className: classNames('nav-item', className), ref: ref }, rest.href || rest.to ? (React.createElement(CNavLink, __assign({ className: className }, rest), children)) : (children)));
|
|
6981
6886
|
});
|
|
6982
6887
|
CNavItem.propTypes = {
|
|
6983
6888
|
children: propTypesExports.node,
|
|
@@ -6987,8 +6892,7 @@ CNavItem.displayName = 'CNavItem';
|
|
|
6987
6892
|
|
|
6988
6893
|
var CNavTitle = React.forwardRef(function (_a, ref) {
|
|
6989
6894
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
6990
|
-
|
|
6991
|
-
return (React.createElement("li", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6895
|
+
return (React.createElement("li", __assign({ className: classNames('nav-title', className) }, rest, { ref: ref }), children));
|
|
6992
6896
|
});
|
|
6993
6897
|
CNavTitle.propTypes = {
|
|
6994
6898
|
children: propTypesExports.node,
|
|
@@ -6999,19 +6903,11 @@ CNavTitle.displayName = 'CNavTitle';
|
|
|
6999
6903
|
var CNavbar = React.forwardRef(function (_a, ref) {
|
|
7000
6904
|
var _b;
|
|
7001
6905
|
var children = _a.children, className = _a.className, color = _a.color, colorScheme = _a.colorScheme, _c = _a.component, Component = _c === void 0 ? 'nav' : _c, container = _a.container, expand = _a.expand, placement = _a.placement, rest = __rest(_a, ["children", "className", "color", "colorScheme", "component", "container", "expand", "placement"]);
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
var content;
|
|
7008
|
-
if (container) {
|
|
7009
|
-
content = (React.createElement("div", { className: "container".concat(container !== true ? '-' + container : '') }, children));
|
|
7010
|
-
}
|
|
7011
|
-
else {
|
|
7012
|
-
content = children;
|
|
7013
|
-
}
|
|
7014
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), content));
|
|
6906
|
+
return (React.createElement(Component, __assign({ className: classNames('navbar', (_b = {},
|
|
6907
|
+
_b["bg-".concat(color)] = color,
|
|
6908
|
+
_b["navbar-".concat(colorScheme)] = colorScheme,
|
|
6909
|
+
_b[typeof expand === 'boolean' ? 'navbar-expand' : "navbar-expand-".concat(expand)] = expand,
|
|
6910
|
+
_b), placement, className) }, rest, { ref: ref }), container ? (React.createElement("div", { className: typeof container === 'string' ? "container-".concat(container) : 'container' }, children)) : (React.createElement(React.Fragment, null, children))));
|
|
7015
6911
|
});
|
|
7016
6912
|
CNavbar.propTypes = {
|
|
7017
6913
|
children: propTypesExports.node,
|
|
@@ -7040,9 +6936,8 @@ CNavbar.displayName = 'CNavbar';
|
|
|
7040
6936
|
|
|
7041
6937
|
var CNavbarBrand = React.forwardRef(function (_a, ref) {
|
|
7042
6938
|
var children = _a.children, component = _a.component, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7043
|
-
var Component = component ? component : rest.href ? 'a' : 'span';
|
|
7044
|
-
|
|
7045
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6939
|
+
var Component = component !== null && component !== void 0 ? component : (rest.href ? 'a' : 'span');
|
|
6940
|
+
return (React.createElement(Component, __assign({ className: classNames('navbar-brand', className) }, rest, { ref: ref }), children));
|
|
7046
6941
|
});
|
|
7047
6942
|
CNavbarBrand.propTypes = {
|
|
7048
6943
|
children: propTypesExports.node,
|
|
@@ -7053,8 +6948,7 @@ CNavbarBrand.displayName = 'CNavbarBrand';
|
|
|
7053
6948
|
|
|
7054
6949
|
var CNavbarNav = React.forwardRef(function (_a, ref) {
|
|
7055
6950
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'ul' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7056
|
-
|
|
7057
|
-
return (React.createElement(Component, __assign({ className: _className, role: "navigation" }, rest, { ref: ref }), children));
|
|
6951
|
+
return (React.createElement(Component, __assign({ className: classNames('navbar-nav', className), role: "navigation" }, rest, { ref: ref }), children));
|
|
7058
6952
|
});
|
|
7059
6953
|
CNavbarNav.propTypes = {
|
|
7060
6954
|
children: propTypesExports.node,
|
|
@@ -7065,8 +6959,7 @@ CNavbarNav.displayName = 'CNavbarNav';
|
|
|
7065
6959
|
|
|
7066
6960
|
var CNavbarText = React.forwardRef(function (_a, ref) {
|
|
7067
6961
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7068
|
-
|
|
7069
|
-
return (React.createElement("span", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
6962
|
+
return (React.createElement("span", __assign({ className: classNames('navbar-text', className) }, rest, { ref: ref }), children));
|
|
7070
6963
|
});
|
|
7071
6964
|
CNavbarText.propTypes = {
|
|
7072
6965
|
children: propTypesExports.node,
|
|
@@ -7076,8 +6969,7 @@ CNavbarText.displayName = 'CNavbarText';
|
|
|
7076
6969
|
|
|
7077
6970
|
var CNavbarToggler = React.forwardRef(function (_a, ref) {
|
|
7078
6971
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7079
|
-
|
|
7080
|
-
return (React.createElement("button", __assign({ type: "button", className: _className }, rest, { ref: ref }), children ? children : React.createElement("span", { className: "navbar-toggler-icon" })));
|
|
6972
|
+
return (React.createElement("button", __assign({ type: "button", className: classNames('navbar-toggler', className) }, rest, { ref: ref }), children !== null && children !== void 0 ? children : React.createElement("span", { className: "navbar-toggler-icon" })));
|
|
7081
6973
|
});
|
|
7082
6974
|
CNavbarToggler.propTypes = {
|
|
7083
6975
|
children: propTypesExports.node,
|
|
@@ -7086,20 +6978,17 @@ CNavbarToggler.propTypes = {
|
|
|
7086
6978
|
CNavbarToggler.displayName = 'CNavbarToggler';
|
|
7087
6979
|
|
|
7088
6980
|
var COffcanvas = React.forwardRef(function (_a, ref) {
|
|
7089
|
-
var _b;
|
|
7090
|
-
var
|
|
7091
|
-
var _j = React.useState(visible), _visible = _j[0], setVisible = _j[1];
|
|
6981
|
+
var children = _a.children, _b = _a.backdrop, backdrop = _b === void 0 ? true : _b, className = _a.className, _c = _a.keyboard, keyboard = _c === void 0 ? true : _c, onHide = _a.onHide, onShow = _a.onShow, placement = _a.placement, _d = _a.portal, portal = _d === void 0 ? false : _d, _e = _a.responsive, responsive = _e === void 0 ? true : _e, _f = _a.scroll, scroll = _f === void 0 ? false : _f, _g = _a.visible, visible = _g === void 0 ? false : _g, rest = __rest(_a, ["children", "backdrop", "className", "keyboard", "onHide", "onShow", "placement", "portal", "responsive", "scroll", "visible"]);
|
|
6982
|
+
var _h = React.useState(visible), _visible = _h[0], setVisible = _h[1];
|
|
7092
6983
|
var offcanvasRef = React.useRef(null);
|
|
7093
6984
|
var forkedRef = useForkedRef(ref, offcanvasRef);
|
|
7094
6985
|
React.useEffect(function () {
|
|
7095
6986
|
setVisible(visible);
|
|
7096
6987
|
}, [visible]);
|
|
7097
6988
|
React.useEffect(function () {
|
|
7098
|
-
if (_visible) {
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
document.body.style.paddingRight = '0px';
|
|
7102
|
-
}
|
|
6989
|
+
if (_visible && !scroll) {
|
|
6990
|
+
document.body.style.overflow = 'hidden';
|
|
6991
|
+
document.body.style.paddingRight = '0px';
|
|
7103
6992
|
return;
|
|
7104
6993
|
}
|
|
7105
6994
|
if (!scroll) {
|
|
@@ -7107,19 +6996,6 @@ var COffcanvas = React.forwardRef(function (_a, ref) {
|
|
|
7107
6996
|
document.body.style.removeProperty('padding-right');
|
|
7108
6997
|
}
|
|
7109
6998
|
}, [_visible]);
|
|
7110
|
-
var getTransitionClass = function (state) {
|
|
7111
|
-
return state === 'entering'
|
|
7112
|
-
? 'showing'
|
|
7113
|
-
: state === 'entered'
|
|
7114
|
-
? 'show'
|
|
7115
|
-
: state === 'exiting'
|
|
7116
|
-
? 'show hiding'
|
|
7117
|
-
: '';
|
|
7118
|
-
};
|
|
7119
|
-
var _className = classNames((_b = {},
|
|
7120
|
-
_b["offcanvas".concat(typeof responsive !== 'boolean' ? '-' + responsive : '')] = responsive,
|
|
7121
|
-
_b["offcanvas-".concat(placement)] = placement,
|
|
7122
|
-
_b), className);
|
|
7123
6999
|
var handleDismiss = function () {
|
|
7124
7000
|
setVisible(false);
|
|
7125
7001
|
};
|
|
@@ -7128,25 +7004,25 @@ var COffcanvas = React.forwardRef(function (_a, ref) {
|
|
|
7128
7004
|
setVisible(false);
|
|
7129
7005
|
}
|
|
7130
7006
|
};
|
|
7131
|
-
var handleKeyDown =
|
|
7007
|
+
var handleKeyDown = function (event) {
|
|
7132
7008
|
if (event.key === 'Escape' && keyboard) {
|
|
7133
7009
|
return handleDismiss();
|
|
7134
7010
|
}
|
|
7135
|
-
}, [ref, handleDismiss]);
|
|
7136
|
-
var offcanvas = function (ref, state) {
|
|
7137
|
-
return (React.createElement(React.Fragment, null,
|
|
7138
|
-
React.createElement("div", __assign({ className: classNames(_className, getTransitionClass(state)), role: "dialog", tabIndex: -1, onKeyDown: handleKeyDown }, rest, { ref: ref }), children)));
|
|
7139
7011
|
};
|
|
7140
7012
|
return (React.createElement(React.Fragment, null,
|
|
7141
7013
|
React.createElement(Transition$1, { in: _visible, nodeRef: offcanvasRef, onEnter: onShow, onEntered: function () { var _a; return (_a = offcanvasRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, onExit: onHide, timeout: 300 }, function (state) {
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
:
|
|
7014
|
+
var _a;
|
|
7015
|
+
return (React.createElement(CConditionalPortal, { portal: portal },
|
|
7016
|
+
React.createElement("div", __assign({ className: classNames((_a = {},
|
|
7017
|
+
_a["offcanvas".concat(typeof responsive === 'string' ? '-' + responsive : '')] = responsive,
|
|
7018
|
+
_a["offcanvas-".concat(placement)] = placement,
|
|
7019
|
+
_a.showing = state === 'entering',
|
|
7020
|
+
_a.show = state === 'entered',
|
|
7021
|
+
_a['show hiding'] = state === 'exiting',
|
|
7022
|
+
_a), className), role: "dialog", tabIndex: -1, onKeyDown: handleKeyDown }, rest, { ref: forkedRef }), children)));
|
|
7145
7023
|
}),
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
ReactDOM.createPortal(React.createElement(CBackdrop, { className: "offcanvas-backdrop", onClick: handleBackdropDismiss, visible: _visible }), document.body)
|
|
7149
|
-
: backdrop && (React.createElement(CBackdrop, { className: "offcanvas-backdrop", onClick: handleBackdropDismiss, visible: _visible }))));
|
|
7024
|
+
backdrop && (React.createElement(CConditionalPortal, { portal: portal },
|
|
7025
|
+
React.createElement(CBackdrop, { className: "offcanvas-backdrop", onClick: handleBackdropDismiss, visible: _visible })))));
|
|
7150
7026
|
});
|
|
7151
7027
|
COffcanvas.propTypes = {
|
|
7152
7028
|
backdrop: propTypesExports.oneOfType([propTypesExports.bool, propTypesExports.oneOf(['static'])]),
|
|
@@ -7169,8 +7045,7 @@ COffcanvas.displayName = 'COffcanvas';
|
|
|
7169
7045
|
|
|
7170
7046
|
var COffcanvasBody = React.forwardRef(function (_a, ref) {
|
|
7171
7047
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7172
|
-
|
|
7173
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7048
|
+
return (React.createElement("div", __assign({ className: classNames('offcanvas-body', className) }, rest, { ref: ref }), children));
|
|
7174
7049
|
});
|
|
7175
7050
|
COffcanvasBody.propTypes = {
|
|
7176
7051
|
children: propTypesExports.node,
|
|
@@ -7180,8 +7055,7 @@ COffcanvasBody.displayName = 'COffcanvasBody';
|
|
|
7180
7055
|
|
|
7181
7056
|
var COffcanvasHeader = React.forwardRef(function (_a, ref) {
|
|
7182
7057
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7183
|
-
|
|
7184
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7058
|
+
return (React.createElement("div", __assign({ className: classNames('offcanvas-header', className) }, rest, { ref: ref }), children));
|
|
7185
7059
|
});
|
|
7186
7060
|
COffcanvasHeader.propTypes = {
|
|
7187
7061
|
children: propTypesExports.node,
|
|
@@ -7191,8 +7065,7 @@ COffcanvasHeader.displayName = 'COffcanvasHeader';
|
|
|
7191
7065
|
|
|
7192
7066
|
var COffcanvasTitle = React.forwardRef(function (_a, ref) {
|
|
7193
7067
|
var children = _a.children, _b = _a.component, Component = _b === void 0 ? 'h5' : _b, className = _a.className, rest = __rest(_a, ["children", "component", "className"]);
|
|
7194
|
-
|
|
7195
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7068
|
+
return (React.createElement(Component, __assign({ className: classNames('offcanvas-title', className) }, rest, { ref: ref }), children));
|
|
7196
7069
|
});
|
|
7197
7070
|
COffcanvasTitle.propTypes = {
|
|
7198
7071
|
children: propTypesExports.node,
|
|
@@ -7204,12 +7077,11 @@ COffcanvasTitle.displayName = 'COffcanvasTitle';
|
|
|
7204
7077
|
var CPagination = React.forwardRef(function (_a, ref) {
|
|
7205
7078
|
var _b;
|
|
7206
7079
|
var children = _a.children, align = _a.align, className = _a.className, size = _a.size, rest = __rest(_a, ["children", "align", "className", "size"]);
|
|
7207
|
-
var _className = classNames('pagination', (_b = {},
|
|
7208
|
-
_b["justify-content-".concat(align)] = align,
|
|
7209
|
-
_b["pagination-".concat(size)] = size,
|
|
7210
|
-
_b), className);
|
|
7211
7080
|
return (React.createElement("nav", __assign({ ref: ref }, rest),
|
|
7212
|
-
React.createElement("ul", { className:
|
|
7081
|
+
React.createElement("ul", { className: classNames('pagination', (_b = {},
|
|
7082
|
+
_b["justify-content-".concat(align)] = align,
|
|
7083
|
+
_b["pagination-".concat(size)] = size,
|
|
7084
|
+
_b), className) }, children)));
|
|
7213
7085
|
});
|
|
7214
7086
|
CPagination.propTypes = {
|
|
7215
7087
|
align: propTypesExports.oneOf(['start', 'center', 'end']),
|
|
@@ -7221,12 +7093,11 @@ CPagination.displayName = 'CPagination';
|
|
|
7221
7093
|
|
|
7222
7094
|
var CPaginationItem = React.forwardRef(function (_a, ref) {
|
|
7223
7095
|
var children = _a.children, className = _a.className, component = _a.component, rest = __rest(_a, ["children", "className", "component"]);
|
|
7224
|
-
var
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
return (React.createElement("li", __assign({ className: _className }, (rest.active && { 'aria-current': 'page' })), Component === 'a' ? (React.createElement(CLink, __assign({ className: "page-link", component: Component }, rest, { ref: ref }), children)) : (React.createElement(Component, { className: "page-link", ref: ref }, children))));
|
|
7096
|
+
var Component = component !== null && component !== void 0 ? component : (rest.active ? 'span' : 'a');
|
|
7097
|
+
return (React.createElement("li", __assign({ className: classNames('page-item', {
|
|
7098
|
+
active: rest.active,
|
|
7099
|
+
disabled: rest.disabled,
|
|
7100
|
+
}, className) }, (rest.active && { 'aria-current': 'page' })), Component === 'a' ? (React.createElement(CLink, __assign({ className: "page-link", component: Component }, rest, { ref: ref }), children)) : (React.createElement(Component, { className: "page-link", ref: ref }, children))));
|
|
7230
7101
|
});
|
|
7231
7102
|
CPaginationItem.propTypes = {
|
|
7232
7103
|
children: propTypesExports.node,
|
|
@@ -7258,11 +7129,10 @@ var CPlaceholder = React.forwardRef(function (_a, ref) {
|
|
|
7258
7129
|
repsonsiveClassNames.push("col".concat(infix));
|
|
7259
7130
|
}
|
|
7260
7131
|
});
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
return (React.createElement(Component, __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7132
|
+
return (React.createElement(Component, __assign({ className: classNames(animation ? "placeholder-".concat(animation) : 'placeholder', (_b = {},
|
|
7133
|
+
_b["bg-".concat(color)] = color,
|
|
7134
|
+
_b["placeholder-".concat(size)] = size,
|
|
7135
|
+
_b), repsonsiveClassNames, className) }, rest, { ref: ref }), children));
|
|
7266
7136
|
});
|
|
7267
7137
|
CPlaceholder.propTypes = {
|
|
7268
7138
|
animation: propTypesExports.oneOf(['glow', 'wave']),
|
|
@@ -7277,12 +7147,11 @@ CPlaceholder.displayName = 'CPlaceholder';
|
|
|
7277
7147
|
var CProgressBar = React.forwardRef(function (_a, ref) {
|
|
7278
7148
|
var _b;
|
|
7279
7149
|
var children = _a.children, animated = _a.animated, className = _a.className, color = _a.color, _c = _a.value, value = _c === void 0 ? 0 : _c, variant = _a.variant, rest = __rest(_a, ["children", "animated", "className", "color", "value", "variant"]);
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
return (React.createElement("div", __assign({ className: _className, role: "progressbar", style: { width: "".concat(value, "%") }, "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": 100 }, rest, { ref: ref }), children));
|
|
7150
|
+
return (React.createElement("div", __assign({ className: classNames('progress-bar', (_b = {},
|
|
7151
|
+
_b["bg-".concat(color)] = color,
|
|
7152
|
+
_b["progress-bar-".concat(variant)] = variant,
|
|
7153
|
+
_b['progress-bar-animated'] = animated,
|
|
7154
|
+
_b), className), role: "progressbar", style: { width: "".concat(value, "%") }, "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": 100 }, rest, { ref: ref }), children));
|
|
7286
7155
|
});
|
|
7287
7156
|
CProgressBar.propTypes = {
|
|
7288
7157
|
animated: propTypesExports.bool,
|
|
@@ -7296,11 +7165,10 @@ CProgressBar.displayName = 'CProgressBar';
|
|
|
7296
7165
|
|
|
7297
7166
|
var CProgress = React.forwardRef(function (_a, ref) {
|
|
7298
7167
|
var children = _a.children, className = _a.className, height = _a.height, thin = _a.thin, _b = _a.value, value = _b === void 0 ? 0 : _b, white = _a.white, rest = __rest(_a, ["children", "className", "height", "thin", "value", "white"]);
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
return (React.createElement("div", { className: _className, style: height ? { height: "".concat(height, "px") } : {}, ref: ref }, value ? (React.createElement(CProgressBar, __assign({ value: value }, rest), children)) : (children)));
|
|
7168
|
+
return (React.createElement("div", { className: classNames('progress', {
|
|
7169
|
+
'progress-thin': thin,
|
|
7170
|
+
'progress-white': white,
|
|
7171
|
+
}, className), style: height ? { height: "".concat(height, "px") } : {}, ref: ref }, value ? (React.createElement(CProgressBar, __assign({ value: value }, rest), children)) : (children)));
|
|
7304
7172
|
});
|
|
7305
7173
|
CProgress.propTypes = {
|
|
7306
7174
|
children: propTypesExports.node,
|
|
@@ -7334,15 +7202,6 @@ var CPopover = function (_a) {
|
|
|
7334
7202
|
React.useEffect(function () {
|
|
7335
7203
|
setVisible(visible);
|
|
7336
7204
|
}, [visible]);
|
|
7337
|
-
var getTransitionClass = function (state) {
|
|
7338
|
-
return state === 'entering'
|
|
7339
|
-
? 'fade'
|
|
7340
|
-
: state === 'entered'
|
|
7341
|
-
? 'fade show'
|
|
7342
|
-
: state === 'exiting'
|
|
7343
|
-
? 'fade'
|
|
7344
|
-
: 'fade';
|
|
7345
|
-
};
|
|
7346
7205
|
return (React.createElement(React.Fragment, null,
|
|
7347
7206
|
React.cloneElement(children, __assign(__assign(__assign({ ref: setReferenceElement }, ((trigger === 'click' || trigger.includes('click')) && {
|
|
7348
7207
|
onClick: function () { return setVisible(!_visible); },
|
|
@@ -7357,13 +7216,12 @@ var CPopover = function (_a) {
|
|
|
7357
7216
|
ReactDOM.createPortal(React.createElement(Transition$1, { in: _visible, mountOnEnter: true, nodeRef: popoverRef, onEnter: onShow, onExit: onHide, timeout: {
|
|
7358
7217
|
enter: 0,
|
|
7359
7218
|
exit: 200,
|
|
7360
|
-
}, unmountOnExit: true }, function (state) {
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
}), document.body)));
|
|
7219
|
+
}, unmountOnExit: true }, function (state) { return (React.createElement("div", __assign({ className: classNames('popover', "bs-popover-".concat(placement.replace('left', 'start').replace('right', 'end')), 'fade', {
|
|
7220
|
+
show: state === 'entered',
|
|
7221
|
+
}, className), ref: setPopperElement, role: "tooltip", style: styles.popper }, attributes.popper, rest),
|
|
7222
|
+
React.createElement("div", { className: "popover-arrow", style: styles.arrow, ref: setArrowElement }),
|
|
7223
|
+
React.createElement("div", { className: "popover-header" }, title),
|
|
7224
|
+
React.createElement("div", { className: "popover-body" }, content))); }), document.body)));
|
|
7367
7225
|
};
|
|
7368
7226
|
CPopover.propTypes = {
|
|
7369
7227
|
children: propTypesExports.node,
|
|
@@ -7395,7 +7253,7 @@ var CSidebar = React.forwardRef(function (_a, ref) {
|
|
|
7395
7253
|
setVisible(visible);
|
|
7396
7254
|
}, [visible]);
|
|
7397
7255
|
React.useEffect(function () {
|
|
7398
|
-
|
|
7256
|
+
inViewport !== undefined && onVisibleChange && onVisibleChange(inViewport);
|
|
7399
7257
|
!inViewport && onHide && onHide();
|
|
7400
7258
|
inViewport && onShow && onShow();
|
|
7401
7259
|
}, [inViewport]);
|
|
@@ -7453,18 +7311,17 @@ var CSidebar = React.forwardRef(function (_a, ref) {
|
|
|
7453
7311
|
mobile &&
|
|
7454
7312
|
handleHide();
|
|
7455
7313
|
};
|
|
7456
|
-
var _className = classNames('sidebar', (_b = {
|
|
7457
|
-
'sidebar-narrow': narrow,
|
|
7458
|
-
'sidebar-overlaid': overlaid
|
|
7459
|
-
},
|
|
7460
|
-
_b["sidebar-".concat(position)] = position,
|
|
7461
|
-
_b["sidebar-".concat(size)] = size,
|
|
7462
|
-
_b['sidebar-narrow-unfoldable'] = unfoldable,
|
|
7463
|
-
_b.show = _visible === true && mobile,
|
|
7464
|
-
_b.hide = _visible === false && !mobile,
|
|
7465
|
-
_b), className);
|
|
7466
7314
|
return (React.createElement(React.Fragment, null,
|
|
7467
|
-
React.createElement("div", __assign({ className:
|
|
7315
|
+
React.createElement("div", __assign({ className: classNames('sidebar', (_b = {
|
|
7316
|
+
'sidebar-narrow': narrow,
|
|
7317
|
+
'sidebar-overlaid': overlaid
|
|
7318
|
+
},
|
|
7319
|
+
_b["sidebar-".concat(position)] = position,
|
|
7320
|
+
_b["sidebar-".concat(size)] = size,
|
|
7321
|
+
_b['sidebar-narrow-unfoldable'] = unfoldable,
|
|
7322
|
+
_b.show = _visible === true && mobile,
|
|
7323
|
+
_b.hide = _visible === false && !mobile,
|
|
7324
|
+
_b), className) }, rest, { ref: forkedRef }), children),
|
|
7468
7325
|
typeof window !== 'undefined' &&
|
|
7469
7326
|
mobile &&
|
|
7470
7327
|
ReactDOM.createPortal(React.createElement(CBackdrop, { className: "sidebar-backdrop", visible: _visible }), document.body)));
|
|
@@ -7486,8 +7343,7 @@ CSidebar.displayName = 'CSidebar';
|
|
|
7486
7343
|
|
|
7487
7344
|
var CSidebarBrand = React.forwardRef(function (_a, ref) {
|
|
7488
7345
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7489
|
-
|
|
7490
|
-
return (React.createElement("div", __assign({ className: _className, ref: ref }, rest), children));
|
|
7346
|
+
return (React.createElement("div", __assign({ className: classNames('sidebar-brand', className), ref: ref }, rest), children));
|
|
7491
7347
|
});
|
|
7492
7348
|
CSidebarBrand.propTypes = {
|
|
7493
7349
|
children: propTypesExports.node,
|
|
@@ -7497,8 +7353,7 @@ CSidebarBrand.displayName = 'CSidebarBrand';
|
|
|
7497
7353
|
|
|
7498
7354
|
var CSidebarFooter = React.forwardRef(function (_a, ref) {
|
|
7499
7355
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7500
|
-
|
|
7501
|
-
return (React.createElement("div", __assign({ className: _className, ref: ref }, rest), children));
|
|
7356
|
+
return (React.createElement("div", __assign({ className: classNames('sidebar-footer', className), ref: ref }, rest), children));
|
|
7502
7357
|
});
|
|
7503
7358
|
CSidebarFooter.propTypes = {
|
|
7504
7359
|
children: propTypesExports.node,
|
|
@@ -7508,8 +7363,7 @@ CSidebarFooter.displayName = 'CSidebarFooter';
|
|
|
7508
7363
|
|
|
7509
7364
|
var CSidebarToggler = React.forwardRef(function (_a, ref) {
|
|
7510
7365
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7511
|
-
|
|
7512
|
-
return (React.createElement("button", __assign({ className: _className, ref: ref }, rest), children));
|
|
7366
|
+
return (React.createElement("button", __assign({ className: classNames('sidebar-toggler', className), ref: ref }, rest), children));
|
|
7513
7367
|
});
|
|
7514
7368
|
CSidebarToggler.propTypes = {
|
|
7515
7369
|
children: propTypesExports.node,
|
|
@@ -7519,8 +7373,7 @@ CSidebarToggler.displayName = 'CSidebarToggler';
|
|
|
7519
7373
|
|
|
7520
7374
|
var CSidebarHeader = React.forwardRef(function (_a, ref) {
|
|
7521
7375
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7522
|
-
|
|
7523
|
-
return (React.createElement("div", __assign({ className: _className, ref: ref }, rest), children));
|
|
7376
|
+
return (React.createElement("div", __assign({ className: classNames('sidebar-header', className), ref: ref }, rest), children));
|
|
7524
7377
|
});
|
|
7525
7378
|
CSidebarHeader.propTypes = {
|
|
7526
7379
|
children: propTypesExports.node,
|
|
@@ -7530,8 +7383,7 @@ CSidebarHeader.displayName = 'CSidebarHeader';
|
|
|
7530
7383
|
|
|
7531
7384
|
var CSpinner = React.forwardRef(function (_a, ref) {
|
|
7532
7385
|
var className = _a.className, color = _a.color, _b = _a.component, Component = _b === void 0 ? 'div' : _b, size = _a.size, _c = _a.variant, variant = _c === void 0 ? 'border' : _c, _d = _a.visuallyHiddenLabel, visuallyHiddenLabel = _d === void 0 ? 'Loading...' : _d, rest = __rest(_a, ["className", "color", "component", "size", "variant", "visuallyHiddenLabel"]);
|
|
7533
|
-
|
|
7534
|
-
return (React.createElement(Component, __assign({ className: _className, role: "status" }, rest, { ref: ref }),
|
|
7386
|
+
return (React.createElement(Component, __assign({ className: classNames("spinner-".concat(variant), "text-".concat(color), size && "spinner-".concat(variant, "-").concat(size), className), role: "status" }, rest, { ref: ref }),
|
|
7535
7387
|
React.createElement("span", { className: "visually-hidden" }, visuallyHiddenLabel)));
|
|
7536
7388
|
});
|
|
7537
7389
|
CSpinner.propTypes = {
|
|
@@ -7547,10 +7399,9 @@ CSpinner.displayName = 'CSpinner';
|
|
|
7547
7399
|
var CTableHead = React.forwardRef(function (_a, ref) {
|
|
7548
7400
|
var _b;
|
|
7549
7401
|
var children = _a.children, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "className", "color"]);
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
return (React.createElement("thead", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
7402
|
+
return (React.createElement("thead", __assign({ className: classNames((_b = {},
|
|
7403
|
+
_b["table-".concat(color)] = color,
|
|
7404
|
+
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7554
7405
|
});
|
|
7555
7406
|
CTableHead.propTypes = {
|
|
7556
7407
|
children: propTypesExports.node,
|
|
@@ -7562,10 +7413,9 @@ CTableHead.displayName = 'CTableHead';
|
|
|
7562
7413
|
var CTableHeaderCell = React.forwardRef(function (_a, ref) {
|
|
7563
7414
|
var _b;
|
|
7564
7415
|
var children = _a.children, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "className", "color"]);
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
return (React.createElement("th", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
7416
|
+
return (React.createElement("th", __assign({ className: classNames((_b = {},
|
|
7417
|
+
_b["table-".concat(color)] = color,
|
|
7418
|
+
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7569
7419
|
});
|
|
7570
7420
|
CTableHeaderCell.propTypes = {
|
|
7571
7421
|
children: propTypesExports.node,
|
|
@@ -7577,10 +7427,9 @@ CTableHeaderCell.displayName = 'CTableHeaderCell';
|
|
|
7577
7427
|
var CTableBody = React.forwardRef(function (_a, ref) {
|
|
7578
7428
|
var _b;
|
|
7579
7429
|
var children = _a.children, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "className", "color"]);
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
return (React.createElement("tbody", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
7430
|
+
return (React.createElement("tbody", __assign({ className: classNames((_b = {},
|
|
7431
|
+
_b["table-".concat(color)] = color,
|
|
7432
|
+
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7584
7433
|
});
|
|
7585
7434
|
CTableBody.propTypes = {
|
|
7586
7435
|
children: propTypesExports.node,
|
|
@@ -7592,13 +7441,12 @@ CTableBody.displayName = 'CTableBody';
|
|
|
7592
7441
|
var CTableDataCell = React.forwardRef(function (_a, ref) {
|
|
7593
7442
|
var _b;
|
|
7594
7443
|
var children = _a.children, active = _a.active, align = _a.align, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "active", "align", "className", "color"]);
|
|
7595
|
-
var _className = classNames((_b = {},
|
|
7596
|
-
_b["align-".concat(align)] = align,
|
|
7597
|
-
_b['table-active'] = active,
|
|
7598
|
-
_b["table-".concat(color)] = color,
|
|
7599
|
-
_b), className);
|
|
7600
7444
|
var Component = rest.scope ? 'th' : 'td';
|
|
7601
|
-
return (React.createElement(Component, __assign({ className:
|
|
7445
|
+
return (React.createElement(Component, __assign({ className: classNames((_b = {},
|
|
7446
|
+
_b["align-".concat(align)] = align,
|
|
7447
|
+
_b['table-active'] = active,
|
|
7448
|
+
_b["table-".concat(color)] = color,
|
|
7449
|
+
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7602
7450
|
});
|
|
7603
7451
|
CTableDataCell.propTypes = {
|
|
7604
7452
|
active: propTypesExports.bool,
|
|
@@ -7612,12 +7460,11 @@ CTableDataCell.displayName = 'CTableDataCell';
|
|
|
7612
7460
|
var CTableRow = React.forwardRef(function (_a, ref) {
|
|
7613
7461
|
var _b;
|
|
7614
7462
|
var children = _a.children, active = _a.active, align = _a.align, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "active", "align", "className", "color"]);
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
return (React.createElement("tr", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
7463
|
+
return (React.createElement("tr", __assign({ className: classNames((_b = {},
|
|
7464
|
+
_b["align-".concat(align)] = align,
|
|
7465
|
+
_b['table-active'] = active,
|
|
7466
|
+
_b["table-".concat(color)] = color,
|
|
7467
|
+
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7621
7468
|
});
|
|
7622
7469
|
CTableRow.propTypes = {
|
|
7623
7470
|
active: propTypesExports.bool,
|
|
@@ -7631,10 +7478,9 @@ CTableRow.displayName = 'CTableRow';
|
|
|
7631
7478
|
var CTableFoot = React.forwardRef(function (_a, ref) {
|
|
7632
7479
|
var _b;
|
|
7633
7480
|
var children = _a.children, className = _a.className, color = _a.color, rest = __rest(_a, ["children", "className", "color"]);
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
return (React.createElement("tfoot", __assign({ className: _className ? _className : undefined }, rest, { ref: ref }), children));
|
|
7481
|
+
return (React.createElement("tfoot", __assign({ className: classNames((_b = {},
|
|
7482
|
+
_b["table-".concat(color)] = color,
|
|
7483
|
+
_b), className) || undefined }, rest, { ref: ref }), children));
|
|
7638
7484
|
});
|
|
7639
7485
|
CTableFoot.propTypes = {
|
|
7640
7486
|
children: propTypesExports.node,
|
|
@@ -7654,10 +7500,10 @@ CTableCaption.displayName = 'CTableCaption';
|
|
|
7654
7500
|
|
|
7655
7501
|
var CTableResponsiveWrapper = function (_a) {
|
|
7656
7502
|
var children = _a.children, responsive = _a.responsive, rest = __rest(_a, ["children", "responsive"]);
|
|
7657
|
-
return responsive ? (React.createElement("div", __assign({ className: typeof responsive === 'boolean' ? 'table-responsive' : "table-responsive-".concat(responsive) }, rest), children)) : (children);
|
|
7503
|
+
return responsive ? (React.createElement("div", __assign({ className: typeof responsive === 'boolean' ? 'table-responsive' : "table-responsive-".concat(responsive) }, rest), children)) : (React.createElement(React.Fragment, null, children));
|
|
7658
7504
|
};
|
|
7659
7505
|
CTableResponsiveWrapper.propTypes = {
|
|
7660
|
-
children: propTypesExports.
|
|
7506
|
+
children: propTypesExports.node,
|
|
7661
7507
|
responsive: propTypesExports.oneOfType([
|
|
7662
7508
|
propTypesExports.bool,
|
|
7663
7509
|
propTypesExports.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
@@ -7665,53 +7511,51 @@ CTableResponsiveWrapper.propTypes = {
|
|
|
7665
7511
|
};
|
|
7666
7512
|
CTableResponsiveWrapper.displayName = 'CTableResponsiveWrapper';
|
|
7667
7513
|
|
|
7514
|
+
var pretifyName = function (name) {
|
|
7515
|
+
return name
|
|
7516
|
+
.replace(/[-_.]/g, ' ')
|
|
7517
|
+
.replace(/ +/g, ' ')
|
|
7518
|
+
.replace(/([a-z0-9])([A-Z])/g, '$1 $2')
|
|
7519
|
+
.split(' ')
|
|
7520
|
+
.map(function (word) { return word.charAt(0).toUpperCase() + word.slice(1); })
|
|
7521
|
+
.join(' ');
|
|
7522
|
+
};
|
|
7523
|
+
var getColumnLabel = function (column) { var _a; return typeof column === 'object' ? (_a = column.label) !== null && _a !== void 0 ? _a : pretifyName(column.key) : pretifyName(column); };
|
|
7524
|
+
var getColumnNames = function (columns, items) {
|
|
7525
|
+
return columns
|
|
7526
|
+
? columns.map(function (column) {
|
|
7527
|
+
return typeof column === 'object' ? column.key : column;
|
|
7528
|
+
})
|
|
7529
|
+
: items && getColumnNamesFromItems(items);
|
|
7530
|
+
};
|
|
7531
|
+
var getColumnNamesFromItems = function (items) {
|
|
7532
|
+
return Object.keys(items[0] || {}).filter(function (el) { return el.charAt(0) !== '_'; });
|
|
7533
|
+
};
|
|
7534
|
+
|
|
7668
7535
|
var CTable = React.forwardRef(function (_a, ref) {
|
|
7669
7536
|
var _b;
|
|
7670
7537
|
var children = _a.children, align = _a.align, borderColor = _a.borderColor, bordered = _a.bordered, borderless = _a.borderless, caption = _a.caption, captionTop = _a.captionTop, className = _a.className, color = _a.color, columns = _a.columns, footer = _a.footer, hover = _a.hover, items = _a.items, responsive = _a.responsive, small = _a.small, striped = _a.striped, stripedColumns = _a.stripedColumns, tableFootProps = _a.tableFootProps, tableHeadProps = _a.tableHeadProps, rest = __rest(_a, ["children", "align", "borderColor", "bordered", "borderless", "caption", "captionTop", "className", "color", "columns", "footer", "hover", "items", "responsive", "small", "striped", "stripedColumns", "tableFootProps", "tableHeadProps"]);
|
|
7671
|
-
var
|
|
7672
|
-
_b["align-".concat(align)] = align,
|
|
7673
|
-
_b["border-".concat(borderColor)] = borderColor,
|
|
7674
|
-
_b["caption-top"] = captionTop || caption === 'top',
|
|
7675
|
-
_b['table-bordered'] = bordered,
|
|
7676
|
-
_b['table-borderless'] = borderless,
|
|
7677
|
-
_b["table-".concat(color)] = color,
|
|
7678
|
-
_b['table-hover'] = hover,
|
|
7679
|
-
_b['table-sm'] = small,
|
|
7680
|
-
_b['table-striped'] = striped,
|
|
7681
|
-
_b['table-striped-columns'] = stripedColumns,
|
|
7682
|
-
_b), className);
|
|
7683
|
-
var rawColumnNames = columns
|
|
7684
|
-
? columns.map(function (column) {
|
|
7685
|
-
if (typeof column === 'object')
|
|
7686
|
-
return column.key;
|
|
7687
|
-
else
|
|
7688
|
-
return column;
|
|
7689
|
-
})
|
|
7690
|
-
: Object.keys((items && items[0]) || {}).filter(function (el) { return el.charAt(0) !== '_'; });
|
|
7691
|
-
var pretifyName = function (name) {
|
|
7692
|
-
return name
|
|
7693
|
-
.replace(/[-_.]/g, ' ')
|
|
7694
|
-
.replace(/ +/g, ' ')
|
|
7695
|
-
.replace(/([a-z0-9])([A-Z])/g, '$1 $2')
|
|
7696
|
-
.split(' ')
|
|
7697
|
-
.map(function (word) { return word.charAt(0).toUpperCase() + word.slice(1); })
|
|
7698
|
-
.join(' ');
|
|
7699
|
-
};
|
|
7700
|
-
var label = function (column) {
|
|
7701
|
-
return typeof column === 'object'
|
|
7702
|
-
? column.label !== undefined
|
|
7703
|
-
? column.label
|
|
7704
|
-
: pretifyName(column.key)
|
|
7705
|
-
: pretifyName(column);
|
|
7706
|
-
};
|
|
7538
|
+
var columnNames = React.useMemo(function () { return getColumnNames(columns, items); }, [columns, items]);
|
|
7707
7539
|
return (React.createElement(CTableResponsiveWrapper, { responsive: responsive },
|
|
7708
|
-
React.createElement("table", __assign({ className:
|
|
7540
|
+
React.createElement("table", __assign({ className: classNames('table', (_b = {},
|
|
7541
|
+
_b["align-".concat(align)] = align,
|
|
7542
|
+
_b["border-".concat(borderColor)] = borderColor,
|
|
7543
|
+
_b["caption-top"] = captionTop || caption === 'top',
|
|
7544
|
+
_b['table-bordered'] = bordered,
|
|
7545
|
+
_b['table-borderless'] = borderless,
|
|
7546
|
+
_b["table-".concat(color)] = color,
|
|
7547
|
+
_b['table-hover'] = hover,
|
|
7548
|
+
_b['table-sm'] = small,
|
|
7549
|
+
_b['table-striped'] = striped,
|
|
7550
|
+
_b['table-striped-columns'] = stripedColumns,
|
|
7551
|
+
_b), className) }, rest, { ref: ref }),
|
|
7709
7552
|
((caption && caption !== 'top') || captionTop) && (React.createElement(CTableCaption, null, caption || captionTop)),
|
|
7710
7553
|
columns && (React.createElement(CTableHead, __assign({}, tableHeadProps),
|
|
7711
|
-
React.createElement(CTableRow, null, columns.map(function (column, index) { return (React.createElement(CTableHeaderCell, __assign({}, (column._props && __assign({}, column._props)), (column._style && { style: __assign({}, column._style) }), { key: index }),
|
|
7712
|
-
items && (React.createElement(CTableBody, null, items.map(function (item, index) { return (React.createElement(CTableRow, __assign({}, (item._props && __assign({}, item._props)), { key: index }),
|
|
7713
|
-
|
|
7714
|
-
|
|
7554
|
+
React.createElement(CTableRow, null, columns.map(function (column, index) { return (React.createElement(CTableHeaderCell, __assign({}, (column._props && __assign({}, column._props)), (column._style && { style: __assign({}, column._style) }), { key: index }), getColumnLabel(column))); })))),
|
|
7555
|
+
items && (React.createElement(CTableBody, null, items.map(function (item, index) { return (React.createElement(CTableRow, __assign({}, (item._props && __assign({}, item._props)), { key: index }), columnNames &&
|
|
7556
|
+
columnNames.map(function (colName, index) {
|
|
7557
|
+
return item[colName] ? (React.createElement(CTableDataCell, __assign({}, (item._cellProps && __assign(__assign({}, (item._cellProps['all'] && __assign({}, item._cellProps['all']))), (item._cellProps[colName] && __assign({}, item._cellProps[colName])))), { key: index }), item[colName])) : null;
|
|
7558
|
+
}))); }))),
|
|
7715
7559
|
children,
|
|
7716
7560
|
footer && (React.createElement(CTableFoot, __assign({}, tableFootProps),
|
|
7717
7561
|
React.createElement(CTableRow, null, footer.map(function (item, index) { return (React.createElement(CTableDataCell, __assign({}, (typeof item === 'object' && item._props && __assign({}, item._props)), { key: index }), typeof item === 'object' ? item.label : item)); })))))));
|
|
@@ -7744,8 +7588,7 @@ CTable.displayName = 'CTable';
|
|
|
7744
7588
|
|
|
7745
7589
|
var CTabContent = React.forwardRef(function (_a, ref) {
|
|
7746
7590
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7747
|
-
|
|
7748
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7591
|
+
return (React.createElement("div", __assign({ className: classNames('tab-content', className) }, rest, { ref: ref }), children));
|
|
7749
7592
|
});
|
|
7750
7593
|
CTabContent.propTypes = {
|
|
7751
7594
|
children: propTypesExports.node,
|
|
@@ -7757,16 +7600,10 @@ var CTabPane = React.forwardRef(function (_a, ref) {
|
|
|
7757
7600
|
var children = _a.children, className = _a.className, onHide = _a.onHide, onShow = _a.onShow, visible = _a.visible, rest = __rest(_a, ["children", "className", "onHide", "onShow", "visible"]);
|
|
7758
7601
|
var tabPaneRef = React.useRef();
|
|
7759
7602
|
var forkedRef = useForkedRef(ref, tabPaneRef);
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
active: visible,
|
|
7765
|
-
}, className);
|
|
7766
|
-
return (React.createElement(Transition$1, { in: visible, nodeRef: tabPaneRef, onEnter: onShow, onExit: onHide, timeout: 150 }, function (state) {
|
|
7767
|
-
var transitionClass = getTransitionClass(state);
|
|
7768
|
-
return (React.createElement("div", __assign({ className: classNames(_className, transitionClass) }, rest, { ref: forkedRef }), children));
|
|
7769
|
-
}));
|
|
7603
|
+
return (React.createElement(Transition$1, { in: visible, nodeRef: tabPaneRef, onEnter: onShow, onExit: onHide, timeout: 150 }, function (state) { return (React.createElement("div", __assign({ className: classNames('tab-pane', 'fade', {
|
|
7604
|
+
active: visible,
|
|
7605
|
+
show: state === 'entered',
|
|
7606
|
+
}, className) }, rest, { ref: forkedRef }), children)); }));
|
|
7770
7607
|
});
|
|
7771
7608
|
CTabPane.propTypes = {
|
|
7772
7609
|
children: propTypesExports.node,
|
|
@@ -7779,11 +7616,10 @@ CTabPane.displayName = 'CTabPane';
|
|
|
7779
7616
|
|
|
7780
7617
|
var CToastContext = React.createContext({});
|
|
7781
7618
|
var CToast = React.forwardRef(function (_a, ref) {
|
|
7782
|
-
var _b;
|
|
7783
|
-
var children = _a.children, _c = _a.animation, animation = _c === void 0 ? true : _c, _d = _a.autohide, autohide = _d === void 0 ? true : _d, className = _a.className, color = _a.color, _e = _a.delay, delay = _e === void 0 ? 5000 : _e, index = _a.index, key = _a.key, _f = _a.visible, visible = _f === void 0 ? false : _f, onClose = _a.onClose, onShow = _a.onShow, rest = __rest(_a, ["children", "animation", "autohide", "className", "color", "delay", "index", "key", "visible", "onClose", "onShow"]);
|
|
7619
|
+
var children = _a.children, _b = _a.animation, animation = _b === void 0 ? true : _b, _c = _a.autohide, autohide = _c === void 0 ? true : _c, className = _a.className, color = _a.color, _d = _a.delay, delay = _d === void 0 ? 5000 : _d, index = _a.index, key = _a.key, _e = _a.visible, visible = _e === void 0 ? false : _e, onClose = _a.onClose, onShow = _a.onShow, rest = __rest(_a, ["children", "animation", "autohide", "className", "color", "delay", "index", "key", "visible", "onClose", "onShow"]);
|
|
7784
7620
|
var toastRef = React.useRef();
|
|
7785
7621
|
var forkedRef = useForkedRef(ref, toastRef);
|
|
7786
|
-
var
|
|
7622
|
+
var _f = React.useState(false), _visible = _f[0], setVisible = _f[1];
|
|
7787
7623
|
var timeout = React.useRef();
|
|
7788
7624
|
React.useEffect(function () {
|
|
7789
7625
|
setVisible(visible);
|
|
@@ -7805,25 +7641,17 @@ var CToast = React.forwardRef(function (_a, ref) {
|
|
|
7805
7641
|
}, delay);
|
|
7806
7642
|
}
|
|
7807
7643
|
};
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
},
|
|
7811
|
-
_b["bg-".concat(color)] = color,
|
|
7812
|
-
_b['border-0'] = color,
|
|
7813
|
-
_b), className);
|
|
7814
|
-
var getTransitionClass = function (state) {
|
|
7815
|
-
return state === 'entering'
|
|
7816
|
-
? 'showing'
|
|
7817
|
-
: state === 'entered'
|
|
7818
|
-
? 'show'
|
|
7819
|
-
: state === 'exiting'
|
|
7820
|
-
? 'showing'
|
|
7821
|
-
: 'fade';
|
|
7822
|
-
};
|
|
7823
|
-
return (React.createElement(Transition$1, { in: _visible, nodeRef: toastRef, onEnter: function () { return onShow && onShow(index ? index : null); }, onExited: function () { return onClose && onClose(index ? index : null); }, timeout: 250, unmountOnExit: true }, function (state) {
|
|
7824
|
-
var transitionClass = getTransitionClass(state);
|
|
7644
|
+
return (React.createElement(Transition$1, { in: _visible, nodeRef: toastRef, onEnter: function () { return onShow && onShow(index !== null && index !== void 0 ? index : null); }, onExited: function () { return onClose && onClose(index !== null && index !== void 0 ? index : null); }, timeout: 250, unmountOnExit: true }, function (state) {
|
|
7645
|
+
var _a;
|
|
7825
7646
|
return (React.createElement(CToastContext.Provider, { value: contextValues },
|
|
7826
|
-
React.createElement("div", __assign({ className: classNames(
|
|
7647
|
+
React.createElement("div", __assign({ className: classNames('toast', (_a = {
|
|
7648
|
+
fade: animation
|
|
7649
|
+
},
|
|
7650
|
+
_a["bg-".concat(color)] = color,
|
|
7651
|
+
_a['border-0'] = color,
|
|
7652
|
+
_a['show showing'] = state === 'entering' || state === 'exiting',
|
|
7653
|
+
_a.show = state === 'entered',
|
|
7654
|
+
_a), className), "aria-live": "assertive", "aria-atomic": "true", role: "alert", onMouseEnter: function () { return clearTimeout(timeout.current); }, onMouseLeave: function () { return _autohide(); } }, rest, { key: key, ref: forkedRef }), children)));
|
|
7827
7655
|
}));
|
|
7828
7656
|
});
|
|
7829
7657
|
CToast.propTypes = {
|
|
@@ -7843,8 +7671,7 @@ CToast.displayName = 'CToast';
|
|
|
7843
7671
|
|
|
7844
7672
|
var CToastBody = React.forwardRef(function (_a, ref) {
|
|
7845
7673
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
7846
|
-
|
|
7847
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }), children));
|
|
7674
|
+
return (React.createElement("div", __assign({ className: classNames('toast-body', className) }, rest, { ref: ref }), children));
|
|
7848
7675
|
});
|
|
7849
7676
|
CToastBody.propTypes = {
|
|
7850
7677
|
children: propTypesExports.node,
|
|
@@ -7862,8 +7689,7 @@ CToastClose.displayName = 'CToastClose';
|
|
|
7862
7689
|
|
|
7863
7690
|
var CToastHeader = React.forwardRef(function (_a, ref) {
|
|
7864
7691
|
var children = _a.children, className = _a.className, closeButton = _a.closeButton, rest = __rest(_a, ["children", "className", "closeButton"]);
|
|
7865
|
-
|
|
7866
|
-
return (React.createElement("div", __assign({ className: _className }, rest, { ref: ref }),
|
|
7692
|
+
return (React.createElement("div", __assign({ className: classNames('toast-header', className) }, rest, { ref: ref }),
|
|
7867
7693
|
children,
|
|
7868
7694
|
closeButton && React.createElement(CToastClose, null)));
|
|
7869
7695
|
});
|
|
@@ -7893,23 +7719,17 @@ var CToaster = React.forwardRef(function (_a, ref) {
|
|
|
7893
7719
|
}),
|
|
7894
7720
|
], false); });
|
|
7895
7721
|
};
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
children,
|
|
7908
|
-
toasts.map(function (toast) { return React.cloneElement(toast, { visible: true }); }))) : null;
|
|
7909
|
-
};
|
|
7910
|
-
return typeof window !== 'undefined' && placement
|
|
7911
|
-
? ReactDOM.createPortal(toaster(ref), document.body)
|
|
7912
|
-
: toaster(ref);
|
|
7722
|
+
return (React.createElement(CConditionalPortal, { portal: typeof placement === 'string' }, toasts.length > 0 || children ? (React.createElement("div", __assign({ className: classNames('toaster toast-container p-3', {
|
|
7723
|
+
'position-fixed': placement,
|
|
7724
|
+
'top-0': placement && placement.includes('top'),
|
|
7725
|
+
'top-50 translate-middle-y': placement && placement.includes('middle'),
|
|
7726
|
+
'bottom-0': placement && placement.includes('bottom'),
|
|
7727
|
+
'start-0': placement && placement.includes('start'),
|
|
7728
|
+
'start-50 translate-middle-x': placement && placement.includes('center'),
|
|
7729
|
+
'end-0': placement && placement.includes('end'),
|
|
7730
|
+
}, className) }, rest, { ref: ref }),
|
|
7731
|
+
children,
|
|
7732
|
+
toasts.map(function (toast) { return React.cloneElement(toast, { visible: true }); }))) : null));
|
|
7913
7733
|
});
|
|
7914
7734
|
CToaster.propTypes = {
|
|
7915
7735
|
children: propTypesExports.node,
|
|
@@ -7954,15 +7774,6 @@ var CTooltip = function (_a) {
|
|
|
7954
7774
|
React.useEffect(function () {
|
|
7955
7775
|
setVisible(visible);
|
|
7956
7776
|
}, [visible]);
|
|
7957
|
-
var getTransitionClass = function (state) {
|
|
7958
|
-
return state === 'entering'
|
|
7959
|
-
? 'fade'
|
|
7960
|
-
: state === 'entered'
|
|
7961
|
-
? 'fade show'
|
|
7962
|
-
: state === 'exiting'
|
|
7963
|
-
? 'fade'
|
|
7964
|
-
: 'fade';
|
|
7965
|
-
};
|
|
7966
7777
|
return (React.createElement(React.Fragment, null,
|
|
7967
7778
|
React.cloneElement(children, __assign(__assign(__assign({ ref: setReferenceElement }, ((trigger === 'click' || trigger.includes('click')) && {
|
|
7968
7779
|
onClick: function () { return setVisible(!_visible); },
|
|
@@ -7977,12 +7788,11 @@ var CTooltip = function (_a) {
|
|
|
7977
7788
|
ReactDOM.createPortal(React.createElement(Transition$1, { in: _visible, mountOnEnter: true, nodeRef: tooltipRef, onEnter: onShow, onExit: onHide, timeout: {
|
|
7978
7789
|
enter: 0,
|
|
7979
7790
|
exit: 200,
|
|
7980
|
-
}, unmountOnExit: true }, function (state) {
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
}), document.body)));
|
|
7791
|
+
}, unmountOnExit: true }, function (state) { return (React.createElement("div", __assign({ className: classNames('tooltip', "bs-popover-".concat(placement.replace('left', 'start').replace('right', 'end')), 'fade', {
|
|
7792
|
+
show: state === 'entered',
|
|
7793
|
+
}, className), ref: setPopperElement, role: "tooltip", style: styles.popper }, attributes.popper, rest),
|
|
7794
|
+
React.createElement("div", { className: "tooltip-arrow", style: styles.arrow, ref: setArrowElement }),
|
|
7795
|
+
React.createElement("div", { className: "tooltip-inner" }, content))); }), document.body)));
|
|
7986
7796
|
};
|
|
7987
7797
|
CTooltip.propTypes = {
|
|
7988
7798
|
children: propTypesExports.node,
|
|
@@ -7999,8 +7809,7 @@ CTooltip.displayName = 'CTooltip';
|
|
|
7999
7809
|
var CWidgetStatsA = React.forwardRef(function (_a, ref) {
|
|
8000
7810
|
var _b;
|
|
8001
7811
|
var action = _a.action, chart = _a.chart, className = _a.className, color = _a.color, title = _a.title, value = _a.value, rest = __rest(_a, ["action", "chart", "className", "color", "title", "value"]);
|
|
8002
|
-
|
|
8003
|
-
return (React.createElement(CCard, __assign({ className: _className }, rest, { ref: ref }),
|
|
7812
|
+
return (React.createElement(CCard, __assign({ className: classNames((_b = {}, _b["bg-".concat(color)] = color, _b['text-high-emphasis-inverse'] = color, _b), className) }, rest, { ref: ref }),
|
|
8004
7813
|
React.createElement(CCardBody, { className: "pb-0 d-flex justify-content-between align-items-start" },
|
|
8005
7814
|
React.createElement("div", null,
|
|
8006
7815
|
value && React.createElement("div", { className: "fs-4 fw-semibold" }, value),
|
|
@@ -8061,12 +7870,10 @@ CWidgetStatsC.displayName = 'CWidgetStatsCWidgetStatsC';
|
|
|
8061
7870
|
var CWidgetStatsD = React.forwardRef(function (_a, ref) {
|
|
8062
7871
|
var _b;
|
|
8063
7872
|
var className = _a.className, chart = _a.chart, color = _a.color, icon = _a.icon, values = _a.values, rest = __rest(_a, ["className", "chart", "color", "icon", "values"]);
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
return (React.createElement(CCard, __assign({ className: _className }, rest, { ref: ref }),
|
|
8069
|
-
React.createElement(CCardHeader, { className: classNameHeader },
|
|
7873
|
+
return (React.createElement(CCard, __assign({ className: className }, rest, { ref: ref }),
|
|
7874
|
+
React.createElement(CCardHeader, { className: classNames('position-relative d-flex justify-content-center align-items-center', (_b = {},
|
|
7875
|
+
_b["bg-".concat(color)] = color,
|
|
7876
|
+
_b)) },
|
|
8070
7877
|
icon,
|
|
8071
7878
|
chart),
|
|
8072
7879
|
React.createElement(CCardBody, { className: "row text-center" }, values &&
|
|
@@ -8089,8 +7896,7 @@ CWidgetStatsD.displayName = 'CWidgetStatsD';
|
|
|
8089
7896
|
|
|
8090
7897
|
var CWidgetStatsE = React.forwardRef(function (_a, ref) {
|
|
8091
7898
|
var chart = _a.chart, className = _a.className, title = _a.title, value = _a.value, rest = __rest(_a, ["chart", "className", "title", "value"]);
|
|
8092
|
-
|
|
8093
|
-
return (React.createElement(CCard, __assign({ className: _className }, rest, { ref: ref }),
|
|
7899
|
+
return (React.createElement(CCard, __assign({ className: classNames(className) }, rest, { ref: ref }),
|
|
8094
7900
|
React.createElement(CCardBody, { className: "text-center" },
|
|
8095
7901
|
title && (React.createElement("div", { className: "text-medium-emphasis small text-uppercase fw-semibold" }, title)),
|
|
8096
7902
|
value && React.createElement("div", { className: "fs-6 fw-semibold py-3" }, value),
|
|
@@ -8107,8 +7913,7 @@ CWidgetStatsE.displayName = 'CWidgetStatsE';
|
|
|
8107
7913
|
|
|
8108
7914
|
var CWidgetStatsF = React.forwardRef(function (_a, ref) {
|
|
8109
7915
|
var className = _a.className, color = _a.color, footer = _a.footer, icon = _a.icon, _b = _a.padding, padding = _b === void 0 ? true : _b, title = _a.title, value = _a.value, rest = __rest(_a, ["className", "color", "footer", "icon", "padding", "title", "value"]);
|
|
8110
|
-
|
|
8111
|
-
return (React.createElement(CCard, __assign({ className: _className }, rest, { ref: ref }),
|
|
7916
|
+
return (React.createElement(CCard, __assign({ className: className }, rest, { ref: ref }),
|
|
8112
7917
|
React.createElement(CCardBody, { className: "d-flex align-items-center ".concat(padding === false && 'p-0') },
|
|
8113
7918
|
React.createElement("div", { className: "me-3 text-white bg-".concat(color, " ").concat(padding ? 'p-3' : 'p-4') }, icon),
|
|
8114
7919
|
React.createElement("div", null,
|
|
@@ -8130,7 +7935,6 @@ CWidgetStatsF.displayName = 'CWidgetStatsF';
|
|
|
8130
7935
|
exports.CAccordion = CAccordion;
|
|
8131
7936
|
exports.CAccordionBody = CAccordionBody;
|
|
8132
7937
|
exports.CAccordionButton = CAccordionButton;
|
|
8133
|
-
exports.CAccordionCollapse = CAccordionCollapse;
|
|
8134
7938
|
exports.CAccordionHeader = CAccordionHeader;
|
|
8135
7939
|
exports.CAccordionItem = CAccordionItem;
|
|
8136
7940
|
exports.CAlert = CAlert;
|
|
@@ -8162,6 +7966,7 @@ exports.CCarouselItem = CCarouselItem;
|
|
|
8162
7966
|
exports.CCloseButton = CCloseButton;
|
|
8163
7967
|
exports.CCol = CCol;
|
|
8164
7968
|
exports.CCollapse = CCollapse;
|
|
7969
|
+
exports.CConditionalPortal = CConditionalPortal;
|
|
8165
7970
|
exports.CContainer = CContainer;
|
|
8166
7971
|
exports.CDropdown = CDropdown;
|
|
8167
7972
|
exports.CDropdownDivider = CDropdownDivider;
|