@coreui/react 4.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +144 -0
- package/dist/components/Types.d.ts +12 -0
- package/dist/components/accordion/CAccordion.d.ts +12 -0
- package/dist/components/accordion/CAccordionBody.d.ts +8 -0
- package/dist/components/accordion/CAccordionButton.d.ts +12 -0
- package/dist/components/accordion/CAccordionCollapse.d.ts +3 -0
- package/dist/components/accordion/CAccordionHeader.d.ts +8 -0
- package/dist/components/accordion/CAccordionItem.d.ts +8 -0
- package/dist/components/alert/CAlert.d.ts +38 -0
- package/dist/components/alert/CAlertHeading.d.ts +14 -0
- package/dist/components/alert/CAlertLink.d.ts +8 -0
- package/dist/components/avatar/CAvatar.d.ts +41 -0
- package/dist/components/backdrop/CBackdrop.d.ts +12 -0
- package/dist/components/badge/CBadge.d.ts +39 -0
- package/dist/components/breadcrumb/CBreadcrumb.d.ts +8 -0
- package/dist/components/breadcrumb/CBreadcrumbItem.d.ts +16 -0
- package/dist/components/button/CButton.d.ts +58 -0
- package/dist/components/button-group/CButtonGroup.d.ts +18 -0
- package/dist/components/button-group/CButtonToolbar.d.ts +8 -0
- package/dist/components/callout/CCallout.d.ts +15 -0
- package/dist/components/card/CCard.d.ts +21 -0
- package/dist/components/card/CCardBody.d.ts +8 -0
- package/dist/components/card/CCardFooter.d.ts +8 -0
- package/dist/components/card/CCardGroup.d.ts +8 -0
- package/dist/components/card/CCardHeader.d.ts +14 -0
- package/dist/components/card/CCardImage.d.ts +18 -0
- package/dist/components/card/CCardImageOverlay.d.ts +8 -0
- package/dist/components/card/CCardLink.d.ts +12 -0
- package/dist/components/card/CCardSubtitle.d.ts +14 -0
- package/dist/components/card/CCardText.d.ts +14 -0
- package/dist/components/card/CCardTitle.d.ts +14 -0
- package/dist/components/carousel/CCarousel.d.ts +53 -0
- package/dist/components/carousel/CCarouselCaption.d.ts +8 -0
- package/dist/components/carousel/CCarouselControl.d.ts +16 -0
- package/dist/components/carousel/CCarouselIndicators.d.ts +12 -0
- package/dist/components/carousel/CCarouselInner.d.ts +8 -0
- package/dist/components/carousel/CCarouselItem.d.ts +12 -0
- package/dist/components/close-button/CCloseButton.d.ts +16 -0
- package/dist/components/collapse/CCollapse.d.ts +12 -0
- package/dist/components/dropdown/CDropdown.d.ts +72 -0
- package/dist/components/dropdown/CDropdownDivider.d.ts +8 -0
- package/dist/components/dropdown/CDropdownHeader.d.ts +14 -0
- package/dist/components/dropdown/CDropdownItem.d.ts +15 -0
- package/dist/components/dropdown/CDropdownItemPlain.d.ts +14 -0
- package/dist/components/dropdown/CDropdownMenu.d.ts +15 -0
- package/dist/components/dropdown/CDropdownToggle.d.ts +20 -0
- package/dist/components/footer/CFooter.d.ts +12 -0
- package/dist/components/form/CForm.d.ts +12 -0
- package/dist/components/form/CFormCheck.d.ts +68 -0
- package/dist/components/form/CFormFeedback.d.ts +26 -0
- package/dist/components/form/CFormFloating.d.ts +8 -0
- package/dist/components/form/CFormInput.d.ts +51 -0
- package/dist/components/form/CFormLabel.d.ts +12 -0
- package/dist/components/form/CFormRange.d.ts +38 -0
- package/dist/components/form/CFormSelect.d.ts +26 -0
- package/dist/components/form/CFormSwitch.d.ts +37 -0
- package/dist/components/form/CFormText.d.ts +14 -0
- package/dist/components/form/CFormTextarea.d.ts +38 -0
- package/dist/components/form/CInputGroup.d.ts +14 -0
- package/dist/components/form/CInputGroupText.d.ts +14 -0
- package/dist/components/grid/CCol.d.ts +52 -0
- package/dist/components/grid/CContainer.d.ts +32 -0
- package/dist/components/grid/CRow.d.ts +50 -0
- package/dist/components/header/CHeader.d.ts +18 -0
- package/dist/components/header/CHeaderBrand.d.ts +14 -0
- package/dist/components/header/CHeaderDivider.d.ts +8 -0
- package/dist/components/header/CHeaderNav.d.ts +14 -0
- package/dist/components/header/CHeaderText.d.ts +8 -0
- package/dist/components/header/CHeaderToggler.d.ts +8 -0
- package/dist/components/image/CImage.d.ts +24 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/link/CLink.d.ts +26 -0
- package/dist/components/list-group/CListGroup.d.ts +22 -0
- package/dist/components/list-group/CListGroupItem.d.ts +29 -0
- package/dist/components/modal/CModal.d.ts +56 -0
- package/dist/components/modal/CModalBody.d.ts +8 -0
- package/dist/components/modal/CModalContent.d.ts +8 -0
- package/dist/components/modal/CModalDialog.d.ts +26 -0
- package/dist/components/modal/CModalFooter.d.ts +8 -0
- package/dist/components/modal/CModalHeader.d.ts +12 -0
- package/dist/components/modal/CModalTitle.d.ts +14 -0
- package/dist/components/nav/CNav.d.ts +22 -0
- package/dist/components/nav/CNavGroup.d.ts +25 -0
- package/dist/components/nav/CNavGroupItems.d.ts +8 -0
- package/dist/components/nav/CNavItem.d.ts +3 -0
- package/dist/components/nav/CNavLink.d.ts +31 -0
- package/dist/components/nav/CNavTitle.d.ts +8 -0
- package/dist/components/navbar/CNavbar.d.ts +43 -0
- package/dist/components/navbar/CNavbarBrand.d.ts +17 -0
- package/dist/components/navbar/CNavbarNav.d.ts +14 -0
- package/dist/components/navbar/CNavbarText.d.ts +8 -0
- package/dist/components/navbar/CNavbarToggler.d.ts +8 -0
- package/dist/components/offcanvas/COffcanvas.d.ts +37 -0
- package/dist/components/offcanvas/COffcanvasBody.d.ts +8 -0
- package/dist/components/offcanvas/COffcanvasHeader.d.ts +8 -0
- package/dist/components/offcanvas/COffcanvasTitle.d.ts +14 -0
- package/dist/components/pagination/CPagination.d.ts +16 -0
- package/dist/components/pagination/CPaginationItem.d.ts +16 -0
- package/dist/components/popover/CPopover.d.ts +36 -0
- package/dist/components/popover/CPopoverContent.d.ts +10 -0
- package/dist/components/progress/CProgress.d.ts +26 -0
- package/dist/components/progress/CProgressBar.d.ts +29 -0
- package/dist/components/sidebar/CSidebar.d.ts +36 -0
- package/dist/components/sidebar/CSidebarBrand.d.ts +8 -0
- package/dist/components/sidebar/CSidebarFooter.d.ts +8 -0
- package/dist/components/sidebar/CSidebarHeader.d.ts +8 -0
- package/dist/components/sidebar/CSidebarNav.d.ts +14 -0
- package/dist/components/sidebar/CSidebarToggler.d.ts +8 -0
- package/dist/components/spinner/CSpinner.d.ts +37 -0
- package/dist/components/table/CTable.d.ts +53 -0
- package/dist/components/table/CTableBody.d.ts +15 -0
- package/dist/components/table/CTableCaption.d.ts +2 -0
- package/dist/components/table/CTableDataCell.d.ts +23 -0
- package/dist/components/table/CTableFoot.d.ts +15 -0
- package/dist/components/table/CTableHead.d.ts +15 -0
- package/dist/components/table/CTableHeaderCell.d.ts +15 -0
- package/dist/components/table/CTableRow.d.ts +23 -0
- package/dist/components/tabs/CTabContent.d.ts +8 -0
- package/dist/components/tabs/CTabPane.d.ts +12 -0
- package/dist/components/toast/CToast.d.ts +53 -0
- package/dist/components/toast/CToastBody.d.ts +8 -0
- package/dist/components/toast/CToastClose.d.ts +9 -0
- package/dist/components/toast/CToastHeader.d.ts +12 -0
- package/dist/components/toast/CToaster.d.ts +18 -0
- package/dist/components/tooltip/CTooltip.d.ts +27 -0
- package/dist/components/tooltip/CTooltipContent.d.ts +10 -0
- package/dist/components/widgets/CWidgetStatsA.d.ts +31 -0
- package/dist/components/widgets/CWidgetStatsB.d.ts +38 -0
- package/dist/components/widgets/CWidgetStatsC.d.ts +38 -0
- package/dist/components/widgets/CWidgetStatsD.d.ts +32 -0
- package/dist/components/widgets/CWidgetStatsE.d.ts +20 -0
- package/dist/components/widgets/CWidgetStatsF.d.ts +35 -0
- package/dist/components/widgets/index.d.ts +7 -0
- package/dist/docs/components/CodeBlock copy.d.ts +3 -0
- package/dist/docs/components/CodeBlock.d.ts +3 -0
- package/dist/docs/components/Example.d.ts +6 -0
- package/dist/docs/components/Footer.d.ts +3 -0
- package/dist/docs/components/Header.d.ts +3 -0
- package/dist/docs/components/Seo.d.ts +22 -0
- package/dist/docs/components/Sidebar.d.ts +6 -0
- package/dist/docs/components/SidebarNav.d.ts +24 -0
- package/dist/docs/components/index.d.ts +9 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/nav.d.ts +20 -0
- package/dist/docs/templates/Docs.d.ts +6 -0
- package/dist/docs/templates/Layout.d.ts +4 -0
- package/dist/index.d.ts +125 -0
- package/dist/index.es.js +7539 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +7696 -0
- package/dist/index.js.map +1 -0
- package/dist/pages/404.d.ts +2 -0
- package/dist/utils/hooks/index.d.ts +2 -0
- package/dist/utils/hooks/useForkedRef.d.ts +7 -0
- package/package.json +99 -0
- package/src/components/Types.tsx +107 -0
- package/src/components/accordion/CAccordion.tsx +33 -0
- package/src/components/accordion/CAccordionBody.tsx +29 -0
- package/src/components/accordion/CAccordionButton.tsx +34 -0
- package/src/components/accordion/CAccordionCollapse.tsx +19 -0
- package/src/components/accordion/CAccordionHeader.tsx +29 -0
- package/src/components/accordion/CAccordionItem.tsx +29 -0
- package/src/components/accordion/__tests__/CAccordion.spec.tsx +36 -0
- package/src/components/accordion/__tests__/CAccordionBody.spec.tsx +16 -0
- package/src/components/accordion/__tests__/CAccordionButton.spec.tsx +21 -0
- package/src/components/accordion/__tests__/CAccordionCollapse.spec.tsx +10 -0
- package/src/components/accordion/__tests__/CAccordionHeader.spec.tsx +16 -0
- package/src/components/accordion/__tests__/CAccordionItem.spec.tsx +16 -0
- package/src/components/accordion/__tests__/__snapshots__/CAccordion.spec.tsx.snap +21 -0
- package/src/components/accordion/__tests__/__snapshots__/CAccordionBody.spec.tsx.snap +21 -0
- package/src/components/accordion/__tests__/__snapshots__/CAccordionButton.spec.tsx.snap +23 -0
- package/src/components/accordion/__tests__/__snapshots__/CAccordionCollapse.spec.tsx.snap +11 -0
- package/src/components/accordion/__tests__/__snapshots__/CAccordionHeader.spec.tsx.snap +21 -0
- package/src/components/accordion/__tests__/__snapshots__/CAccordionItem.spec.tsx.snap +21 -0
- package/src/components/alert/CAlert.tsx +100 -0
- package/src/components/alert/CAlertHeading.tsx +36 -0
- package/src/components/alert/CAlertLink.tsx +31 -0
- package/src/components/alert/__tests__/CAlert.spec.tsx +45 -0
- package/src/components/alert/__tests__/CAlertHeading.spec.tsx +20 -0
- package/src/components/alert/__tests__/CAlertLink.spec.tsx +20 -0
- package/src/components/alert/__tests__/__snapshots__/CAlert.spec.tsx.snap +27 -0
- package/src/components/alert/__tests__/__snapshots__/CAlertHeading.spec.tsx.snap +21 -0
- package/src/components/alert/__tests__/__snapshots__/CAlertLink.spec.tsx.snap +22 -0
- package/src/components/avatar/CAvatar.tsx +87 -0
- package/src/components/avatar/__tests__/CAvatar.spec.tsx +54 -0
- package/src/components/avatar/__tests__/__snapshots__/CAvatar.spec.tsx.snap +40 -0
- package/src/components/backdrop/CBackdrop.tsx +41 -0
- package/src/components/backdrop/__tests__/CBackdrop.spec.tsx +31 -0
- package/src/components/backdrop/__tests__/__snapshots__/CBackdrop.spec.tsx.snap +23 -0
- package/src/components/badge/CBadge.tsx +84 -0
- package/src/components/badge/__tests__/CBadge.spec.tsx +22 -0
- package/src/components/badge/__tests__/__snapshots__/CBadge.spec.tsx.snap +21 -0
- package/src/components/breadcrumb/CBreadcrumb.tsx +30 -0
- package/src/components/breadcrumb/CBreadcrumbItem.tsx +46 -0
- package/src/components/breadcrumb/__tests__/CBreadcrumb.spec.tsx +22 -0
- package/src/components/breadcrumb/__tests__/CBreadcrumbItem.spec.tsx +21 -0
- package/src/components/breadcrumb/__tests__/__snapshots__/CBreadcrumb.spec.tsx.snap +42 -0
- package/src/components/breadcrumb/__tests__/__snapshots__/CBreadcrumbItem.spec.tsx.snap +22 -0
- package/src/components/button/CButton.tsx +112 -0
- package/src/components/button/__tests__/CButton.spec.tsx +44 -0
- package/src/components/button/__tests__/CButtonClose.spec.tsx +23 -0
- package/src/components/button/__tests__/__snapshots__/CButton.spec.tsx.snap +38 -0
- package/src/components/button/__tests__/__snapshots__/CButtonClose.spec.tsx.snap +24 -0
- package/src/components/button-group/CButtonGroup.tsx +45 -0
- package/src/components/button-group/CButtonToolbar.tsx +29 -0
- package/src/components/button-group/__tests__/CButtonGroup.spec.tsx +37 -0
- package/src/components/button-group/__tests__/CButtonToolbar.spec.tsx +29 -0
- package/src/components/button-group/__tests__/__snapshots__/CButtonGroup.spec.tsx.snap +63 -0
- package/src/components/button-group/__tests__/__snapshots__/CButtonToolbar.spec.tsx.snap +66 -0
- package/src/components/callout/CCallout.tsx +44 -0
- package/src/components/callout/__tests__/CCallout.spec.tsx +21 -0
- package/src/components/callout/__tests__/__snapshots__/CCallout.spec.tsx.snap +21 -0
- package/src/components/card/CCard.tsx +52 -0
- package/src/components/card/CCardBody.tsx +29 -0
- package/src/components/card/CCardFooter.tsx +29 -0
- package/src/components/card/CCardGroup.tsx +29 -0
- package/src/components/card/CCardHeader.tsx +36 -0
- package/src/components/card/CCardImage.tsx +43 -0
- package/src/components/card/CCardImageOverlay.tsx +29 -0
- package/src/components/card/CCardLink.tsx +35 -0
- package/src/components/card/CCardSubtitle.tsx +35 -0
- package/src/components/card/CCardText.tsx +36 -0
- package/src/components/card/CCardTitle.tsx +36 -0
- package/src/components/card/__tests__/CCard.spec.tsx +22 -0
- package/src/components/card/__tests__/CCardBody.spec.tsx +16 -0
- package/src/components/card/__tests__/CCardFooter.spec.tsx +16 -0
- package/src/components/card/__tests__/CCardGroup.spec.tsx +51 -0
- package/src/components/card/__tests__/CCardHeader.spec.tsx +20 -0
- package/src/components/card/__tests__/CCardImage.spec.tsx +18 -0
- package/src/components/card/__tests__/CCardImageOverlay.spec.tsx +17 -0
- package/src/components/card/__tests__/CCardLink.spec.tsx +20 -0
- package/src/components/card/__tests__/CCardSubtitle.spec.tsx +20 -0
- package/src/components/card/__tests__/CCardText.spec.tsx +20 -0
- package/src/components/card/__tests__/CCardTitle.spec.tsx +20 -0
- package/src/components/card/__tests__/__snapshots__/CCard.spec.tsx.snap +21 -0
- package/src/components/card/__tests__/__snapshots__/CCardBody.spec.tsx.snap +21 -0
- package/src/components/card/__tests__/__snapshots__/CCardFooter.spec.tsx.snap +21 -0
- package/src/components/card/__tests__/__snapshots__/CCardGroup.spec.tsx.snap +86 -0
- package/src/components/card/__tests__/__snapshots__/CCardHeader.spec.tsx.snap +21 -0
- package/src/components/card/__tests__/__snapshots__/CCardImage.spec.tsx.snap +17 -0
- package/src/components/card/__tests__/__snapshots__/CCardImageOverlay.spec.tsx.snap +19 -0
- package/src/components/card/__tests__/__snapshots__/CCardLink.spec.tsx.snap +22 -0
- package/src/components/card/__tests__/__snapshots__/CCardSubtitle.spec.tsx.snap +21 -0
- package/src/components/card/__tests__/__snapshots__/CCardText.spec.tsx.snap +21 -0
- package/src/components/card/__tests__/__snapshots__/CCardTitle.spec.tsx.snap +21 -0
- package/src/components/carousel/CCarousel.tsx +168 -0
- package/src/components/carousel/CCarouselCaption.tsx +24 -0
- package/src/components/carousel/CCarouselControl.tsx +56 -0
- package/src/components/carousel/CCarouselIndicators.tsx +49 -0
- package/src/components/carousel/CCarouselInner.tsx +41 -0
- package/src/components/carousel/CCarouselItem.tsx +110 -0
- package/src/components/carousel/__tests__/CCarousel.spec.tsx +275 -0
- package/src/components/carousel/__tests__/__snapshots__/CCarousel.spec.tsx.snap +376 -0
- package/src/components/close-button/CCloseButton.tsx +43 -0
- package/src/components/close-button/__tests__/CCloseButton.spec.tsx +24 -0
- package/src/components/close-button/__tests__/__snapshots__/CCloseButton.spec.tsx.snap +20 -0
- package/src/components/collapse/CCollapse.tsx +92 -0
- package/src/components/collapse/__tests__/CCollapse.spec.tsx +41 -0
- package/src/components/collapse/__tests__/__snapshots__/CCollapse.spec.tsx.snap +21 -0
- package/src/components/dropdown/CDropdown.tsx +205 -0
- package/src/components/dropdown/CDropdownDivider.tsx +24 -0
- package/src/components/dropdown/CDropdownHeader.tsx +36 -0
- package/src/components/dropdown/CDropdownItem.tsx +39 -0
- package/src/components/dropdown/CDropdownItemPlain.tsx +36 -0
- package/src/components/dropdown/CDropdownMenu.tsx +111 -0
- package/src/components/dropdown/CDropdownToggle.tsx +91 -0
- package/src/components/dropdown/__tests__/CDropdown.spec.tsx +95 -0
- package/src/components/dropdown/__tests__/CDropdownDivider.spec.tsx +16 -0
- package/src/components/dropdown/__tests__/CDropdownHeader.spec.tsx +20 -0
- package/src/components/dropdown/__tests__/CDropdownItem.spec.tsx +20 -0
- package/src/components/dropdown/__tests__/CDropdownItemPlain.spec.tsx +20 -0
- package/src/components/dropdown/__tests__/CDropdownMenu.spec.tsx +23 -0
- package/src/components/dropdown/__tests__/CDropdownToggle.spec.tsx +20 -0
- package/src/components/dropdown/__tests__/__snapshots__/CDropdown.spec.tsx.snap +77 -0
- package/src/components/dropdown/__tests__/__snapshots__/CDropdownDivider.spec.tsx.snap +17 -0
- package/src/components/dropdown/__tests__/__snapshots__/CDropdownHeader.spec.tsx.snap +21 -0
- package/src/components/dropdown/__tests__/__snapshots__/CDropdownItem.spec.tsx.snap +21 -0
- package/src/components/dropdown/__tests__/__snapshots__/CDropdownItemPlain.spec.tsx.snap +21 -0
- package/src/components/dropdown/__tests__/__snapshots__/CDropdownMenu.spec.tsx.snap +29 -0
- package/src/components/dropdown/__tests__/__snapshots__/CDropdownToggle.spec.tsx.snap +30 -0
- package/src/components/footer/CFooter.tsx +34 -0
- package/src/components/footer/__tests__/CFooter.spec.tsx +21 -0
- package/src/components/footer/__tests__/__snapshots__/CFooter.spec.tsx.snap +21 -0
- package/src/components/form/CForm.tsx +33 -0
- package/src/components/form/CFormCheck.tsx +156 -0
- package/src/components/form/CFormFeedback.tsx +59 -0
- package/src/components/form/CFormFloating.tsx +28 -0
- package/src/components/form/CFormInput.tsx +87 -0
- package/src/components/form/CFormLabel.tsx +33 -0
- package/src/components/form/CFormRange.tsx +53 -0
- package/src/components/form/CFormSelect.tsx +58 -0
- package/src/components/form/CFormSwitch.tsx +84 -0
- package/src/components/form/CFormText.tsx +35 -0
- package/src/components/form/CFormTextarea.tsx +68 -0
- package/src/components/form/CInputGroup.tsx +41 -0
- package/src/components/form/CInputGroupText.tsx +35 -0
- package/src/components/form/__tests__/CForm.spec.tsx +35 -0
- package/src/components/form/__tests__/CFormCheck.spec.tsx +33 -0
- package/src/components/form/__tests__/CFormControl.spec.tsx +44 -0
- package/src/components/form/__tests__/CFormFeedback.spec.tsx +29 -0
- package/src/components/form/__tests__/CFormFloating.spec.tsx +17 -0
- package/src/components/form/__tests__/CFormInput.spec.tsx +42 -0
- package/src/components/form/__tests__/CFormLabel.spec.tsx +17 -0
- package/src/components/form/__tests__/CFormRange.spec.tsx +33 -0
- package/src/components/form/__tests__/CFormSelect.spec.tsx +22 -0
- package/src/components/form/__tests__/CFormSwitch.spec.tsx +42 -0
- package/src/components/form/__tests__/CFormText.spec.tsx +20 -0
- package/src/components/form/__tests__/CFormTextarea.spec.tsx +32 -0
- package/src/components/form/__tests__/CInputGroup.spec.tsx +21 -0
- package/src/components/form/__tests__/CInputGroupText.spec.tsx +16 -0
- package/src/components/form/__tests__/__snapshots__/CForm.spec.tsx.snap +64 -0
- package/src/components/form/__tests__/__snapshots__/CFormCheck.spec.tsx.snap +46 -0
- package/src/components/form/__tests__/__snapshots__/CFormControl.spec.tsx.snap +22 -0
- package/src/components/form/__tests__/__snapshots__/CFormFeedback.spec.tsx.snap +25 -0
- package/src/components/form/__tests__/__snapshots__/CFormFloating.spec.tsx.snap +19 -0
- package/src/components/form/__tests__/__snapshots__/CFormInput.spec.tsx.snap +31 -0
- package/src/components/form/__tests__/__snapshots__/CFormLabel.spec.tsx.snap +21 -0
- package/src/components/form/__tests__/__snapshots__/CFormRange.spec.tsx.snap +26 -0
- package/src/components/form/__tests__/__snapshots__/CFormSelect.spec.tsx.snap +26 -0
- package/src/components/form/__tests__/__snapshots__/CFormSwitch.spec.tsx.snap +34 -0
- package/src/components/form/__tests__/__snapshots__/CFormText.spec.tsx.snap +21 -0
- package/src/components/form/__tests__/__snapshots__/CFormTextarea.spec.tsx.snap +23 -0
- package/src/components/form/__tests__/__snapshots__/CInputGroup.spec.tsx.snap +21 -0
- package/src/components/form/__tests__/__snapshots__/CInputGroupText.spec.tsx.snap +21 -0
- package/src/components/grid/CCol.tsx +144 -0
- package/src/components/grid/CContainer.tsx +80 -0
- package/src/components/grid/CRow.tsx +118 -0
- package/src/components/grid/__tests__/CCol.spec.tsx +42 -0
- package/src/components/grid/__tests__/CContainer.spec.tsx +31 -0
- package/src/components/grid/__tests__/CRow.spec.tsx +116 -0
- package/src/components/grid/__tests__/__snapshots__/CCol.spec.tsx.snap +31 -0
- package/src/components/grid/__tests__/__snapshots__/CContainer.spec.tsx.snap +31 -0
- package/src/components/grid/__tests__/__snapshots__/CRow.spec.tsx.snap +61 -0
- package/src/components/header/CHeader.tsx +60 -0
- package/src/components/header/CHeaderBrand.tsx +36 -0
- package/src/components/header/CHeaderDivider.tsx +24 -0
- package/src/components/header/CHeaderNav.tsx +36 -0
- package/src/components/header/CHeaderText.tsx +29 -0
- package/src/components/header/CHeaderToggler.tsx +29 -0
- package/src/components/header/__tests__/CHeader.spec.tsx +21 -0
- package/src/components/header/__tests__/CHeaderBrand.spec.tsx +20 -0
- package/src/components/header/__tests__/CHeaderDivider.spec.tsx +16 -0
- package/src/components/header/__tests__/CHeaderNav.spec.tsx +20 -0
- package/src/components/header/__tests__/CHeaderText.spec.tsx +16 -0
- package/src/components/header/__tests__/CHeaderToggler.spec.tsx +16 -0
- package/src/components/header/__tests__/__snapshots__/CHeader.spec.tsx.snap +25 -0
- package/src/components/header/__tests__/__snapshots__/CHeaderBrand.spec.tsx.snap +21 -0
- package/src/components/header/__tests__/__snapshots__/CHeaderDivider.spec.tsx.snap +21 -0
- package/src/components/header/__tests__/__snapshots__/CHeaderNav.spec.tsx.snap +23 -0
- package/src/components/header/__tests__/__snapshots__/CHeaderText.spec.tsx.snap +21 -0
- package/src/components/header/__tests__/__snapshots__/CHeaderToggler.spec.tsx.snap +23 -0
- package/src/components/image/CImage.tsx +52 -0
- package/src/components/image/__tests__/CImage.spec.tsx +28 -0
- package/src/components/image/__tests__/__snapshots__/CImage.spec.tsx.snap +25 -0
- package/src/components/index.ts +1 -0
- package/src/components/link/CLink.tsx +64 -0
- package/src/components/link/__tests__/CLink.spec.tsx +51 -0
- package/src/components/link/__tests__/__snapshots__/CLink.spec.tsx.snap +24 -0
- package/src/components/list-group/CListGroup.tsx +66 -0
- package/src/components/list-group/CListGroupItem.tsx +81 -0
- package/src/components/list-group/__tests__/CListGroup.spec.tsx +33 -0
- package/src/components/list-group/__tests__/CListGroupItem.spec.tsx +29 -0
- package/src/components/list-group/__tests__/__snapshots__/CListGroup.spec.tsx.snap +45 -0
- package/src/components/list-group/__tests__/__snapshots__/CListGroupItem.spec.tsx.snap +24 -0
- package/src/components/modal/CModal.tsx +221 -0
- package/src/components/modal/CModalBody.tsx +29 -0
- package/src/components/modal/CModalContent.tsx +29 -0
- package/src/components/modal/CModalDialog.tsx +65 -0
- package/src/components/modal/CModalFooter.tsx +29 -0
- package/src/components/modal/CModalHeader.tsx +36 -0
- package/src/components/modal/CModalTitle.tsx +36 -0
- package/src/components/modal/__tests__/CModal.spec.tsx +67 -0
- package/src/components/modal/__tests__/CModalBody.spec.tsx +16 -0
- package/src/components/modal/__tests__/CModalContent.spec.tsx +16 -0
- package/src/components/modal/__tests__/CModalDialog.spec.tsx +30 -0
- package/src/components/modal/__tests__/CModalFooter.spec.tsx +16 -0
- package/src/components/modal/__tests__/CModalHeader.spec.tsx +31 -0
- package/src/components/modal/__tests__/CModalTitle.spec.tsx +20 -0
- package/src/components/modal/__tests__/__snapshots__/CModal.spec.tsx.snap +13 -0
- package/src/components/modal/__tests__/__snapshots__/CModalBody.spec.tsx.snap +21 -0
- package/src/components/modal/__tests__/__snapshots__/CModalContent.spec.tsx.snap +21 -0
- package/src/components/modal/__tests__/__snapshots__/CModalDialog.spec.tsx.snap +21 -0
- package/src/components/modal/__tests__/__snapshots__/CModalFooter.spec.tsx.snap +21 -0
- package/src/components/modal/__tests__/__snapshots__/CModalHeader.spec.tsx.snap +21 -0
- package/src/components/modal/__tests__/__snapshots__/CModalTitle.spec.tsx.snap +21 -0
- package/src/components/nav/CNav.tsx +54 -0
- package/src/components/nav/CNavGroup.tsx +147 -0
- package/src/components/nav/CNavGroupItems.tsx +28 -0
- package/src/components/nav/CNavItem.tsx +29 -0
- package/src/components/nav/CNavLink.tsx +66 -0
- package/src/components/nav/CNavTitle.tsx +28 -0
- package/src/components/nav/__tests__/CNav.spec.tsx +62 -0
- package/src/components/nav/__tests__/CNavGroup.spec.tsx +25 -0
- package/src/components/nav/__tests__/CNavGroupItems.spec.tsx +16 -0
- package/src/components/nav/__tests__/CNavItem.spec.tsx +22 -0
- package/src/components/nav/__tests__/CNavLink.spec.tsx +25 -0
- package/src/components/nav/__tests__/CNavTitle.spec.tsx +16 -0
- package/src/components/nav/__tests__/__snapshots__/CNav.spec.tsx.snap +118 -0
- package/src/components/nav/__tests__/__snapshots__/CNavGroup.spec.tsx.snap +36 -0
- package/src/components/nav/__tests__/__snapshots__/CNavGroupItems.spec.tsx.snap +21 -0
- package/src/components/nav/__tests__/__snapshots__/CNavItem.spec.tsx.snap +45 -0
- package/src/components/nav/__tests__/__snapshots__/CNavLink.spec.tsx.snap +35 -0
- package/src/components/nav/__tests__/__snapshots__/CNavTitle.spec.tsx.snap +21 -0
- package/src/components/navbar/CNavbar.tsx +115 -0
- package/src/components/navbar/CNavbarBrand.tsx +40 -0
- package/src/components/navbar/CNavbarNav.tsx +36 -0
- package/src/components/navbar/CNavbarText.tsx +29 -0
- package/src/components/navbar/CNavbarToggler.tsx +29 -0
- package/src/components/navbar/__tests__/CNavbar.spec.tsx +46 -0
- package/src/components/navbar/__tests__/CNavbarBrand.spec.tsx +25 -0
- package/src/components/navbar/__tests__/CNavbarNav.spec.tsx +21 -0
- package/src/components/navbar/__tests__/CNavbarText.spec.tsx +16 -0
- package/src/components/navbar/__tests__/CNavbarToggler.spec.tsx +23 -0
- package/src/components/navbar/__tests__/__snapshots__/CNavbar.spec.tsx.snap +39 -0
- package/src/components/navbar/__tests__/__snapshots__/CNavbarBrand.spec.tsx.snap +33 -0
- package/src/components/navbar/__tests__/__snapshots__/CNavbarNav.spec.tsx.snap +23 -0
- package/src/components/navbar/__tests__/__snapshots__/CNavbarText.spec.tsx.snap +21 -0
- package/src/components/navbar/__tests__/__snapshots__/CNavbarToggler.spec.tsx.snap +38 -0
- package/src/components/offcanvas/COffcanvas.tsx +146 -0
- package/src/components/offcanvas/COffcanvasBody.tsx +29 -0
- package/src/components/offcanvas/COffcanvasHeader.tsx +29 -0
- package/src/components/offcanvas/COffcanvasTitle.tsx +36 -0
- package/src/components/offcanvas/__tests__/COffcanvas.spec.tsx +97 -0
- package/src/components/offcanvas/__tests__/COffcanvasBody.spec.tsx +17 -0
- package/src/components/offcanvas/__tests__/COffcanvasHeader.spec.tsx +17 -0
- package/src/components/offcanvas/__tests__/COffcanvasTitle.spec.tsx +21 -0
- package/src/components/offcanvas/__tests__/__snapshots__/COffcanvas.spec.tsx.snap +45 -0
- package/src/components/offcanvas/__tests__/__snapshots__/COffcanvasBody.spec.tsx.snap +19 -0
- package/src/components/offcanvas/__tests__/__snapshots__/COffcanvasHeader.spec.tsx.snap +19 -0
- package/src/components/offcanvas/__tests__/__snapshots__/COffcanvasTitle.spec.tsx.snap +19 -0
- package/src/components/pagination/CPagination.tsx +45 -0
- package/src/components/pagination/CPaginationItem.tsx +57 -0
- package/src/components/pagination/__tests__/CPagination.spec.tsx +38 -0
- package/src/components/pagination/__tests__/CPaginationItem.spec.tsx +29 -0
- package/src/components/pagination/__tests__/__snapshots__/CPagination.spec.tsx.snap +65 -0
- package/src/components/pagination/__tests__/__snapshots__/CPaginationItem.spec.tsx.snap +30 -0
- package/src/components/popover/CPopover.tsx +137 -0
- package/src/components/popover/CPopoverContent.tsx +41 -0
- package/src/components/popover/__tests__/CPopover.spec.tsx +84 -0
- package/src/components/popover/__tests__/__snapshots__/CPopover.spec.tsx.snap +43 -0
- package/src/components/progress/CProgress.tsx +66 -0
- package/src/components/progress/CProgressBar.tsx +70 -0
- package/src/components/progress/__tests__/CProgress.spec.tsx +21 -0
- package/src/components/progress/__tests__/CProgressBar.spec.tsx +25 -0
- package/src/components/progress/__tests__/__snapshots__/CProgress.spec.tsx.snap +31 -0
- package/src/components/progress/__tests__/__snapshots__/CProgressBar.spec.tsx.snap +31 -0
- package/src/components/sidebar/CSidebar.tsx +197 -0
- package/src/components/sidebar/CSidebarBrand.tsx +28 -0
- package/src/components/sidebar/CSidebarFooter.tsx +28 -0
- package/src/components/sidebar/CSidebarHeader.tsx +28 -0
- package/src/components/sidebar/CSidebarNav.tsx +47 -0
- package/src/components/sidebar/CSidebarToggler.tsx +28 -0
- package/src/components/sidebar/__tests__/CSidebar.spec.tsx +55 -0
- package/src/components/sidebar/__tests__/CSidebarBrand.spec.tsx +16 -0
- package/src/components/sidebar/__tests__/CSidebarFooter.spec.tsx +16 -0
- package/src/components/sidebar/__tests__/CSidebarHeader.spec.tsx +16 -0
- package/src/components/sidebar/__tests__/CSidebarNav.spec.tsx +16 -0
- package/src/components/sidebar/__tests__/CSidebarToggler.spec.tsx +17 -0
- package/src/components/sidebar/__tests__/__snapshots__/CSidebar.spec.tsx.snap +31 -0
- package/src/components/sidebar/__tests__/__snapshots__/CSidebarBrand.spec.tsx.snap +22 -0
- package/src/components/sidebar/__tests__/__snapshots__/CSidebarFooter.spec.tsx.snap +21 -0
- package/src/components/sidebar/__tests__/__snapshots__/CSidebarHeader.spec.tsx.snap +21 -0
- package/src/components/sidebar/__tests__/__snapshots__/CSidebarNav.spec.tsx.snap +17 -0
- package/src/components/sidebar/__tests__/__snapshots__/CSidebarToggler.spec.tsx.snap +19 -0
- package/src/components/spinner/CSpinner.tsx +79 -0
- package/src/components/spinner/__tests__/CSpinner.spec.tsx +22 -0
- package/src/components/spinner/__tests__/__snapshots__/CSpinner.spec.tsx.snap +31 -0
- package/src/components/table/CTable.tsx +129 -0
- package/src/components/table/CTableBody.tsx +43 -0
- package/src/components/table/CTableCaption.tsx +19 -0
- package/src/components/table/CTableDataCell.tsx +56 -0
- package/src/components/table/CTableFoot.tsx +43 -0
- package/src/components/table/CTableHead.tsx +43 -0
- package/src/components/table/CTableHeaderCell.tsx +43 -0
- package/src/components/table/CTableRow.tsx +55 -0
- package/src/components/table/__tests__/CTable.spec.tsx +105 -0
- package/src/components/table/__tests__/CTableBody.spec.tsx +30 -0
- package/src/components/table/__tests__/CTableCaption.spec.tsx +21 -0
- package/src/components/table/__tests__/CTableDataCell.spec.tsx +43 -0
- package/src/components/table/__tests__/CTableFoot.spec.tsx +30 -0
- package/src/components/table/__tests__/CTableHead.spec.tsx +30 -0
- package/src/components/table/__tests__/CTableHeaderCell.spec.tsx +39 -0
- package/src/components/table/__tests__/CTableRow.spec.tsx +37 -0
- package/src/components/table/__tests__/__snapshots__/CTable.spec.tsx.snap +117 -0
- package/src/components/table/__tests__/__snapshots__/CTableBody.spec.tsx.snap +21 -0
- package/src/components/table/__tests__/__snapshots__/CTableCaption.spec.tsx.snap +15 -0
- package/src/components/table/__tests__/__snapshots__/CTableDataCell.spec.tsx.snap +25 -0
- package/src/components/table/__tests__/__snapshots__/CTableFoot.spec.tsx.snap +21 -0
- package/src/components/table/__tests__/__snapshots__/CTableHead.spec.tsx.snap +21 -0
- package/src/components/table/__tests__/__snapshots__/CTableHeaderCell.spec.tsx.snap +25 -0
- package/src/components/table/__tests__/__snapshots__/CTableRow.spec.tsx.snap +23 -0
- package/src/components/tabs/CTabContent.tsx +28 -0
- package/src/components/tabs/CTabPane.tsx +60 -0
- package/src/components/tabs/__tests__/CTabContent.spec.tsx +16 -0
- package/src/components/tabs/__tests__/CTabPane.spec.tsx +51 -0
- package/src/components/tabs/__tests__/__snapshots__/CTabContent.spec.tsx.snap +21 -0
- package/src/components/tabs/__tests__/__snapshots__/CTabPane.spec.tsx.snap +23 -0
- package/src/components/toast/CToast.tsx +177 -0
- package/src/components/toast/CToastBody.tsx +28 -0
- package/src/components/toast/CToastClose.tsx +31 -0
- package/src/components/toast/CToastHeader.tsx +36 -0
- package/src/components/toast/CToaster.tsx +103 -0
- package/src/components/toast/__tests__/CToast.spec.tsx +87 -0
- package/src/components/toast/__tests__/CToastBody.spec.tsx +16 -0
- package/src/components/toast/__tests__/CToastHeader.spec.tsx +16 -0
- package/src/components/toast/__tests__/CToaster.spec.tsx +47 -0
- package/src/components/toast/__tests__/__snapshots__/CToast.spec.tsx.snap +27 -0
- package/src/components/toast/__tests__/__snapshots__/CToastBody.spec.tsx.snap +21 -0
- package/src/components/toast/__tests__/__snapshots__/CToastHeader.spec.tsx.snap +21 -0
- package/src/components/toast/__tests__/__snapshots__/CToaster.spec.tsx.snap +25 -0
- package/src/components/tooltip/CTooltip.tsx +116 -0
- package/src/components/tooltip/CTooltipContent.tsx +37 -0
- package/src/components/tooltip/__tests__/CTooltip.spec.tsx +50 -0
- package/src/components/tooltip/__tests__/__snapshots__/CTooltip.spec.tsx.snap +21 -0
- package/src/components/widgets/CWidgetStatsA.tsx +70 -0
- package/src/components/widgets/CWidgetStatsB.tsx +80 -0
- package/src/components/widgets/CWidgetStatsC.tsx +93 -0
- package/src/components/widgets/CWidgetStatsD.tsx +85 -0
- package/src/components/widgets/CWidgetStatsE.tsx +53 -0
- package/src/components/widgets/CWidgetStatsF.tsx +73 -0
- package/src/components/widgets/__tests__/CWidgetStatsA.spec.tsx +47 -0
- package/src/components/widgets/__tests__/CWidgetStatsB.spec.tsx +38 -0
- package/src/components/widgets/__tests__/CWidgetStatsC.spec.tsx +39 -0
- package/src/components/widgets/__tests__/CWidgetStatsD.spec.tsx +51 -0
- package/src/components/widgets/__tests__/CWidgetStatsE.spec.tsx +30 -0
- package/src/components/widgets/__tests__/CWidgetStatsF.spec.tsx +59 -0
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsA.spec.tsx.snap +40 -0
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsB.spec.tsx.snap +57 -0
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsC.spec.tsx.snap +59 -0
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsD.spec.tsx.snap +63 -0
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsE.spec.tsx.snap +36 -0
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsF.spec.tsx.snap +60 -0
- package/src/components/widgets/index.ts +8 -0
- package/src/index.ts +251 -0
- package/src/utils/hooks/index.ts +3 -0
- package/src/utils/hooks/useForkedRef.ts +45 -0
- package/tsconfig.json +25 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 creativeLabs Łukasz Holeczek
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://coreui.io/">
|
|
3
|
+
<img
|
|
4
|
+
src="https://coreui.io/images/brand/coreui-signet.svg"
|
|
5
|
+
alt="CoreUI logo"
|
|
6
|
+
width="200"
|
|
7
|
+
/>
|
|
8
|
+
</a>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<h3 align="center">CoreUI</h3>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
React.js Components Library built on top of Bootstrap 5 and TypeScript.
|
|
15
|
+
<br>
|
|
16
|
+
<a href="https://coreui.io/react/docs/4.0/getting-started/introduction"><strong>Explore CoreUI docs »</strong></a>
|
|
17
|
+
<br>
|
|
18
|
+
<br>
|
|
19
|
+
<a href="https://github.com/coreui/coreui-react/issues/new?template=bug_report.md">Report bug</a>
|
|
20
|
+
·
|
|
21
|
+
<a href="https://github.com/coreui/coreui-react/issues/new?template=feature_request.md">Request feature</a>
|
|
22
|
+
·
|
|
23
|
+
<a href="https://community.coreui.io/">Community</a>
|
|
24
|
+
·
|
|
25
|
+
<a href="https://blog.coreui.io/">Blog</a>
|
|
26
|
+
</p>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## Table of contents
|
|
30
|
+
|
|
31
|
+
- [Quick start](#quick-start)
|
|
32
|
+
- [Status](#status)
|
|
33
|
+
- [What's included](#whats-included)
|
|
34
|
+
- [Bugs and feature requests](#bugs-and-feature-requests)
|
|
35
|
+
- [Documentation](#documentation)
|
|
36
|
+
- [Contributing](#contributing)
|
|
37
|
+
- [Community](#community)
|
|
38
|
+
- [Versioning](#versioning)
|
|
39
|
+
- [Creators](#creators)
|
|
40
|
+
- [Copyright and license](#copyright-and-license)
|
|
41
|
+
|
|
42
|
+
## Quick start
|
|
43
|
+
|
|
44
|
+
### Instalation
|
|
45
|
+
|
|
46
|
+
Several quick start options are available:
|
|
47
|
+
|
|
48
|
+
- [Download the latest release](https://github.com/coreui/coreui-react/archive/v4.0.0-alpha.0.zip)
|
|
49
|
+
- Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
|
|
50
|
+
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/react@next`
|
|
51
|
+
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react@next`
|
|
52
|
+
|
|
53
|
+
Read the [Getting started page](https://coreui.io/react/docs/4.0/getting-started/introduction/) for information on the framework contents, templates and examples, and more.
|
|
54
|
+
|
|
55
|
+
### Stylesheets
|
|
56
|
+
|
|
57
|
+
React components are styled using `@coreui/coreui` CSS library, but you can use them also with bootstrap CSS library. That is possible because `@coreui/coreui` library is compatible with bootstrap, it just extends its functionalities. The only exception is custom CoreUI components, which don't exist in the Bootstrap ecosystem.
|
|
58
|
+
|
|
59
|
+
#### CoreUI CSS files
|
|
60
|
+
|
|
61
|
+
##### Installation
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npm install @coreui/coreui@next
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
##### Basic usage
|
|
68
|
+
|
|
69
|
+
```js
|
|
70
|
+
import "@coreui/dist/css/coreui.min.css";
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
#### Bootstrap CSS files
|
|
74
|
+
|
|
75
|
+
##### Installation
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npm install bootstrap@next
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
##### Basic usage
|
|
82
|
+
|
|
83
|
+
```js
|
|
84
|
+
import "bootstrap/dist/css/bootstrap.min.css";
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Status
|
|
88
|
+
|
|
89
|
+
[](https://github.com/coreui/coreui-react/actions?query=workflow%3AJS+Tests+branch%3Amain)
|
|
90
|
+
[](https://www.npmjs.com/package/@coreui/react)
|
|
91
|
+
[](https://david-dm.org/coreui/coreui?type=peer)
|
|
92
|
+
[](https://david-dm.org/coreui/coreui?type=dev)
|
|
93
|
+
[](https://coveralls.io/github/coreui/coreui-react?branch=v4-dev)
|
|
94
|
+
|
|
95
|
+
## Bugs and feature requests
|
|
96
|
+
|
|
97
|
+
Have a bug or a feature request? Please first read the [issue guidelines](https://github.com/coreui/coreui-react/blob/v4-dev/.github/CONTRIBUTING.md#using-the-issue-tracker) and search for existing and closed issues. If your problem or idea is not addressed yet, [please open a new issue](https://github.com/coreui/coreui-react/issues/new).
|
|
98
|
+
|
|
99
|
+
## Documentation
|
|
100
|
+
|
|
101
|
+
The documentation for the CoreUI & CoreUI PRO is hosted at our website [CoreUI for React](https://coreui.io/react/docs/4.0/getting-started/introduction)
|
|
102
|
+
|
|
103
|
+
### Running documentation locally
|
|
104
|
+
|
|
105
|
+
1. Run `yarn install` to install the Node.js dependencies, including Hugo (the site builder).
|
|
106
|
+
2. Run `yarn docz:build` (or a specific npm script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
|
|
107
|
+
3. From the root directory, run `yarn docz:serve` in the command line.
|
|
108
|
+
4. Open `http://localhost:3000/` in your browser, and voilà.
|
|
109
|
+
|
|
110
|
+
## Contributing
|
|
111
|
+
|
|
112
|
+
Please read through our [contributing guidelines](https://github.com/coreui/coreui-react/blob/v4-dev/.github/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
|
|
113
|
+
|
|
114
|
+
Editor preferences are available in the [editor config](https://github.com/coreui/coreui-react/blob/v4-dev/.editorconfig) for easy use in common text editors. Read more and download plugins at <https://editorconfig.org/>.
|
|
115
|
+
|
|
116
|
+
## Community
|
|
117
|
+
|
|
118
|
+
Stay up to date on the development of CoreUI and reach out to the community with these helpful resources.
|
|
119
|
+
|
|
120
|
+
- Read and subscribe to [The Official CoreUI Blog](https://coreui.io/blog/).
|
|
121
|
+
- Join [the official Community](https://community.coreui.io/).
|
|
122
|
+
|
|
123
|
+
You can also follow [@core_ui on Twitter](https://twitter.com/core_ui).
|
|
124
|
+
|
|
125
|
+
## Versioning
|
|
126
|
+
|
|
127
|
+
For transparency into our release cycle and in striving to maintain backward compatibility, CoreUI is maintained under [the Semantic Versioning guidelines](http://semver.org/).
|
|
128
|
+
|
|
129
|
+
See [the Releases section of our project](https://github.com/coreui/coreui-react/releases) for changelogs for each release version.
|
|
130
|
+
|
|
131
|
+
## Creators
|
|
132
|
+
|
|
133
|
+
**Łukasz Holeczek**
|
|
134
|
+
|
|
135
|
+
- <https://twitter.com/lukaszholeczek>
|
|
136
|
+
- <https://github.com/mrholek>
|
|
137
|
+
|
|
138
|
+
**Andrzej Kopański**
|
|
139
|
+
|
|
140
|
+
- <https://github.com/xidedix>
|
|
141
|
+
|
|
142
|
+
## Copyright and license
|
|
143
|
+
|
|
144
|
+
Copyright 2021 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-react/blob/v4-dev/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export declare type Breakpoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
3
|
+
export declare type Colors = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string;
|
|
4
|
+
export declare const colorPropType: PropTypes.Requireable<string>;
|
|
5
|
+
export declare type Placements = 'auto' | 'auto-start' | 'auto-end' | 'top-end' | 'top' | 'top-start' | 'bottom-end' | 'bottom' | 'bottom-start' | 'right-start' | 'right' | 'right-end' | 'left-start' | 'left' | 'left-end' | undefined;
|
|
6
|
+
export declare const placementPropType: PropTypes.Requireable<Placements>;
|
|
7
|
+
export declare type Shapes = 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string;
|
|
8
|
+
export declare const shapePropType: PropTypes.Requireable<string>;
|
|
9
|
+
export declare type TextColors = Colors | 'white' | 'muted' | string;
|
|
10
|
+
export declare const textColorsPropType: PropTypes.Requireable<string>;
|
|
11
|
+
export declare type Triggers = 'hover' | 'focus' | 'click';
|
|
12
|
+
export declare const triggerPropType: PropTypes.Requireable<Triggers>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CAccordionProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Removes the default background-color, some borders, and some rounded corners to render accordions edge-to-edge with their parent container. [docs]
|
|
9
|
+
*/
|
|
10
|
+
flush?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const CAccordion: React.ForwardRefExoticComponent<CAccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CAccordionBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CAccordionBody: React.ForwardRefExoticComponent<CAccordionBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CAccordionButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Set button state to collapsed. [docs]
|
|
9
|
+
*/
|
|
10
|
+
collapsed?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const CAccordionButton: React.ForwardRefExoticComponent<CAccordionButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CAccordionHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CAccordionHeader: React.ForwardRefExoticComponent<CAccordionHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CAccordionItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CAccordionItem: React.ForwardRefExoticComponent<CAccordionItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
import { Colors } from '../Types';
|
|
3
|
+
export interface CAlertProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* A string of all className you want applied to the component. [docs]
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
|
|
10
|
+
*
|
|
11
|
+
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string }
|
|
12
|
+
* @default 'primary'
|
|
13
|
+
*/
|
|
14
|
+
color: Colors;
|
|
15
|
+
/**
|
|
16
|
+
* Optionally add a close button to alert and allow it to self dismiss. [docs]
|
|
17
|
+
*/
|
|
18
|
+
dismissible?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Method called before the dissmiss animation has started. [docs]
|
|
21
|
+
*/
|
|
22
|
+
onDismiss?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Method called after the dissmiss animation has completed and the component is removed from the dom. [docs]
|
|
25
|
+
*/
|
|
26
|
+
onDismissed?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Set the alert variant to a solid. [docs]
|
|
29
|
+
*/
|
|
30
|
+
variant?: 'solid' | string;
|
|
31
|
+
/**
|
|
32
|
+
* Toggle the visibility of component. [docs]
|
|
33
|
+
*
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
visible?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare const CAlert: React.ForwardRefExoticComponent<CAlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ElementType, HTMLAttributes } from 'react';
|
|
2
|
+
export interface CAlertHeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Component used for the root node. Either a string to use a HTML element or a component. [docs]
|
|
9
|
+
*
|
|
10
|
+
* @default 'h4'
|
|
11
|
+
*/
|
|
12
|
+
component?: string | ElementType;
|
|
13
|
+
}
|
|
14
|
+
export declare const CAlertHeading: React.ForwardRefExoticComponent<CAlertHeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
export interface CAlertLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CAlertLink: React.ForwardRefExoticComponent<CAlertLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
import { Colors, Shapes, TextColors } from '../Types';
|
|
3
|
+
export interface CAvatarProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* A string of all className you want applied to the component. [docs]
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
|
|
10
|
+
*
|
|
11
|
+
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string}
|
|
12
|
+
*/
|
|
13
|
+
color?: Colors;
|
|
14
|
+
/**
|
|
15
|
+
* Select the shape of the component. [docs]
|
|
16
|
+
*
|
|
17
|
+
* @type {'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string}
|
|
18
|
+
*/
|
|
19
|
+
shape?: Shapes;
|
|
20
|
+
/**
|
|
21
|
+
* Size the component small, large, or extra large. [docs]
|
|
22
|
+
*/
|
|
23
|
+
size?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The src attribute for the img element. [docs]
|
|
26
|
+
*/
|
|
27
|
+
src?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the color context of the status indicator to one of CoreUI’s themed colors. [docs]
|
|
30
|
+
*
|
|
31
|
+
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string}
|
|
32
|
+
*/
|
|
33
|
+
status?: Colors;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the text color of the component to one of CoreUI’s themed colors. [docs]
|
|
36
|
+
*
|
|
37
|
+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'white' | 'muted' | string
|
|
38
|
+
*/
|
|
39
|
+
textColor?: TextColors;
|
|
40
|
+
}
|
|
41
|
+
export declare const CAvatar: React.ForwardRefExoticComponent<CAvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CBackdropProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Toggle the visibility of modal component. [docs]
|
|
9
|
+
*/
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const CBackdrop: React.ForwardRefExoticComponent<CBackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { ElementType, HTMLAttributes } from 'react';
|
|
2
|
+
import { Colors, Shapes, TextColors } from '../Types';
|
|
3
|
+
export interface CBadgeProps extends HTMLAttributes<HTMLDivElement | HTMLSpanElement> {
|
|
4
|
+
/**
|
|
5
|
+
* A string of all className you want applied to the component. [docs]
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
|
|
10
|
+
*
|
|
11
|
+
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string}
|
|
12
|
+
*/
|
|
13
|
+
color?: Colors;
|
|
14
|
+
/**
|
|
15
|
+
* Component used for the root node. Either a string to use a HTML element or a component. [docs]
|
|
16
|
+
*
|
|
17
|
+
* @default 'span'
|
|
18
|
+
*/
|
|
19
|
+
component?: string | ElementType;
|
|
20
|
+
/**
|
|
21
|
+
* Select the shape of the component. [docs]
|
|
22
|
+
*
|
|
23
|
+
* @type 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string
|
|
24
|
+
*/
|
|
25
|
+
shape?: Shapes;
|
|
26
|
+
/**
|
|
27
|
+
* Size the component small. [docs]
|
|
28
|
+
*
|
|
29
|
+
* @type 'sm'
|
|
30
|
+
*/
|
|
31
|
+
size?: 'sm';
|
|
32
|
+
/**
|
|
33
|
+
* Sets the text color of the component to one of CoreUI’s themed colors. [docs]
|
|
34
|
+
*
|
|
35
|
+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'white' | 'muted' | string
|
|
36
|
+
*/
|
|
37
|
+
textColor?: TextColors;
|
|
38
|
+
}
|
|
39
|
+
export declare const CBadge: React.ForwardRefExoticComponent<CBadgeProps & React.RefAttributes<HTMLDivElement | HTMLSpanElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CBreadcrumbProps extends HTMLAttributes<HTMLOListElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CBreadcrumb: React.ForwardRefExoticComponent<CBreadcrumbProps & React.RefAttributes<HTMLOListElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CBreadcrumbItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Toggle the active state for the component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
active?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* A string of all className you want applied to the base component. [docs]
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The `href` attribute for the inner `<CLink>` component. [docs]
|
|
13
|
+
*/
|
|
14
|
+
href?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const CBreadcrumbItem: React.ForwardRefExoticComponent<CBreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React, { ButtonHTMLAttributes, ElementType } from 'react';
|
|
2
|
+
import { Colors, Shapes } from '../Types';
|
|
3
|
+
export interface CButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Toggle the active state for the component. [docs]
|
|
6
|
+
*/
|
|
7
|
+
active?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* A string of all className you want applied to the base component. [docs]
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
|
|
14
|
+
*
|
|
15
|
+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
|
|
16
|
+
*/
|
|
17
|
+
color?: Colors;
|
|
18
|
+
/**
|
|
19
|
+
* Component used for the root node. Either a string to use a HTML element or a component. [docs]
|
|
20
|
+
*/
|
|
21
|
+
component?: string | ElementType;
|
|
22
|
+
/**
|
|
23
|
+
* Toggle the disabled state for the component. [docs]
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The href attribute specifies the URL of the page the link goes to. [docs]
|
|
28
|
+
*/
|
|
29
|
+
href?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The role attribute describes the role of an element in programs that can make use of it, such as screen readers or magnifiers. [docs]
|
|
32
|
+
*/
|
|
33
|
+
role?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Select the shape of the component. [docs]
|
|
36
|
+
*
|
|
37
|
+
* @type 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string
|
|
38
|
+
*/
|
|
39
|
+
shape?: Shapes;
|
|
40
|
+
/**
|
|
41
|
+
* Size the component small or large. [docs]
|
|
42
|
+
*
|
|
43
|
+
* @type 'sm' | 'lg'
|
|
44
|
+
*/
|
|
45
|
+
size?: 'sm' | 'lg';
|
|
46
|
+
/**
|
|
47
|
+
* Specifies the type of button. Always specify the type attribute for the `<button>` element.
|
|
48
|
+
* Different browsers may use different default types for the `<button>` element. [docs]
|
|
49
|
+
*
|
|
50
|
+
* @type 'button' | 'submit' | 'reset'
|
|
51
|
+
*/
|
|
52
|
+
type?: 'button' | 'submit' | 'reset';
|
|
53
|
+
/**
|
|
54
|
+
* Set the button variant to an outlined button or a ghost button. [docs]
|
|
55
|
+
*/
|
|
56
|
+
variant?: 'outline' | 'ghost';
|
|
57
|
+
}
|
|
58
|
+
export declare const CButton: React.ForwardRefExoticComponent<CButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Size the component small or large. [docs]
|
|
9
|
+
*
|
|
10
|
+
* @type {'sm' | 'lg'}
|
|
11
|
+
*/
|
|
12
|
+
size?: 'sm' | 'lg';
|
|
13
|
+
/**
|
|
14
|
+
* Create a set of buttons that appear vertically stacked rather than horizontally. Split button dropdowns are not supported here. [docs]
|
|
15
|
+
*/
|
|
16
|
+
vertical?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const CButtonGroup: React.ForwardRefExoticComponent<CButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CButtonToolbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CButtonToolbar: React.ForwardRefExoticComponent<CButtonToolbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
import { Colors } from '../Types';
|
|
3
|
+
export interface CCalloutProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* A string of all className you want applied to the base component. [docs]
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
|
|
10
|
+
*
|
|
11
|
+
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string}
|
|
12
|
+
*/
|
|
13
|
+
color?: Colors;
|
|
14
|
+
}
|
|
15
|
+
export declare const CCallout: React.ForwardRefExoticComponent<CCalloutProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
import { Colors } from '../Types';
|
|
3
|
+
export interface CCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* A string of all className you want applied to the base component. [docs]
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
|
|
10
|
+
*
|
|
11
|
+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
|
|
12
|
+
*/
|
|
13
|
+
color?: Colors;
|
|
14
|
+
/**
|
|
15
|
+
* Sets the text color context of the component to one of CoreUI’s themed colors. [docs]
|
|
16
|
+
*
|
|
17
|
+
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'white' | 'muted' | string
|
|
18
|
+
*/
|
|
19
|
+
textColor?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const CCard: React.ForwardRefExoticComponent<CCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CCardBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CCardBody: React.ForwardRefExoticComponent<CCardBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CCardFooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CCardFooter: React.ForwardRefExoticComponent<CCardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CCardGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CCardGroup: React.ForwardRefExoticComponent<CCardGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ElementType, HTMLAttributes } from 'react';
|
|
2
|
+
export interface CCardHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Component used for the root node. Either a string to use a HTML element or a component. [docs]
|
|
9
|
+
*
|
|
10
|
+
* @default 'div'
|
|
11
|
+
*/
|
|
12
|
+
component?: string | ElementType;
|
|
13
|
+
}
|
|
14
|
+
export declare const CCardHeader: React.ForwardRefExoticComponent<CCardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ElementType, HTMLAttributes } from 'react';
|
|
2
|
+
export interface CCardImageProps extends HTMLAttributes<HTMLImageElement | HTMLOrSVGElement | HTMLOrSVGImageElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Component used for the root node. Either a string to use a HTML element or a component. [docs]
|
|
9
|
+
*
|
|
10
|
+
* @default 'img'
|
|
11
|
+
*/
|
|
12
|
+
component?: string | ElementType;
|
|
13
|
+
/**
|
|
14
|
+
* Optionally orientate the image to the top, bottom, or make it overlaid across the card. [docs]
|
|
15
|
+
*/
|
|
16
|
+
orientation?: 'top' | 'bottom';
|
|
17
|
+
}
|
|
18
|
+
export declare const CCardImage: React.ForwardRefExoticComponent<CCardImageProps & React.RefAttributes<HTMLOrSVGElement | HTMLOrSVGImageElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface CCardImageOverlayProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CCardImageOverlay: React.ForwardRefExoticComponent<CCardImageOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
export interface CCardLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A string of all className you want applied to the base component. [docs]
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The href attribute specifies the URL of the page the link goes to. [docs]
|
|
9
|
+
*/
|
|
10
|
+
href?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const CCardLink: React.ForwardRefExoticComponent<CCardLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|