refactor: update components to CoreUI 4
This commit is contained in:
parent
9870bfdf7e
commit
2a2fc79524
@ -4,11 +4,12 @@ import {
|
|||||||
Route,
|
Route,
|
||||||
Switch
|
Switch
|
||||||
} from 'react-router-dom'
|
} from 'react-router-dom'
|
||||||
import { CContainer, CFade } from '@coreui/react'
|
import { CFade } from '@coreui/react'
|
||||||
|
import { CContainer } from '@coreui/react-ts'
|
||||||
|
|
||||||
// routes config
|
// routes config
|
||||||
import routes from '../routes'
|
import routes from '../routes'
|
||||||
|
|
||||||
const loading = (
|
const loading = (
|
||||||
<div className="pt-3 text-center">
|
<div className="pt-3 text-center">
|
||||||
<div className="sk-spinner sk-spinner-pulse"></div>
|
<div className="sk-spinner sk-spinner-pulse"></div>
|
||||||
|
@ -5,6 +5,8 @@ import {
|
|||||||
CDropdownItem,
|
CDropdownItem,
|
||||||
CDropdownMenu,
|
CDropdownMenu,
|
||||||
CDropdownToggle,
|
CDropdownToggle,
|
||||||
|
} from '@coreui/react-ts'
|
||||||
|
import {
|
||||||
CImg
|
CImg
|
||||||
} from '@coreui/react'
|
} from '@coreui/react'
|
||||||
import CIcon from '@coreui/icons-react'
|
import CIcon from '@coreui/icons-react'
|
||||||
@ -17,7 +19,7 @@ const TheHeaderDropdownMssg = () => {
|
|||||||
direction="down"
|
direction="down"
|
||||||
>
|
>
|
||||||
<CDropdownToggle className="c-header-nav-link" caret={false}>
|
<CDropdownToggle className="c-header-nav-link" caret={false}>
|
||||||
<CIcon name="cil-envelope-open" /><CBadge shape="pill" color="info">{itemsCount}</CBadge>
|
<CIcon name="cil-envelope-open" /><CBadge shape="rounded-pill" color="info">{itemsCount}</CBadge>
|
||||||
</CDropdownToggle>
|
</CDropdownToggle>
|
||||||
<CDropdownMenu className="pt-0" placement="bottom-end">
|
<CDropdownMenu className="pt-0" placement="bottom-end">
|
||||||
<CDropdownItem
|
<CDropdownItem
|
||||||
|
@ -17,7 +17,7 @@ const TheHeaderDropdownNotif = () => {
|
|||||||
>
|
>
|
||||||
<CDropdownToggle className="c-header-nav-link" caret={false}>
|
<CDropdownToggle className="c-header-nav-link" caret={false}>
|
||||||
<CIcon name="cil-bell"/>
|
<CIcon name="cil-bell"/>
|
||||||
<CBadge shape="pill" color="danger">{itemsCount}</CBadge>
|
<CBadge shape="rounded-pill" color="danger">{itemsCount}</CBadge>
|
||||||
</CDropdownToggle>
|
</CDropdownToggle>
|
||||||
<CDropdownMenu placement="bottom-end" className="pt-0">
|
<CDropdownMenu placement="bottom-end" className="pt-0">
|
||||||
<CDropdownItem
|
<CDropdownItem
|
||||||
|
@ -17,7 +17,7 @@ const TheHeaderDropdownTasks = () => {
|
|||||||
>
|
>
|
||||||
<CDropdownToggle>
|
<CDropdownToggle>
|
||||||
<CIcon name="cil-list" />
|
<CIcon name="cil-list" />
|
||||||
<CBadge shape="pill" color="warning">{itemsCount}</CBadge>
|
<CBadge shape="rounded-pill" color="warning">{itemsCount}</CBadge>
|
||||||
</CDropdownToggle>
|
</CDropdownToggle>
|
||||||
<CDropdownMenu placement="bottom-end" className="pt-0">
|
<CDropdownMenu placement="bottom-end" className="pt-0">
|
||||||
<CDropdownItem
|
<CDropdownItem
|
||||||
|
@ -8,7 +8,7 @@ const _nav = [
|
|||||||
as: NavLink,
|
as: NavLink,
|
||||||
anchor: 'Dashboard',
|
anchor: 'Dashboard',
|
||||||
to: '/dashboard',
|
to: '/dashboard',
|
||||||
icon: <CIcon name="cil-speedometer" customClasses="c-sidebar-nav-icon"/>,
|
icon: <CIcon name="cil-speedometer" customClasses="nav-icon"/>,
|
||||||
badge: {
|
badge: {
|
||||||
color: 'info',
|
color: 'info',
|
||||||
text: 'NEW',
|
text: 'NEW',
|
||||||
@ -23,14 +23,14 @@ const _nav = [
|
|||||||
as: NavLink,
|
as: NavLink,
|
||||||
anchor: 'Colors',
|
anchor: 'Colors',
|
||||||
to: '/theme/colors',
|
to: '/theme/colors',
|
||||||
icon: 'cil-drop',
|
icon: <CIcon name="cil-drop" customClasses="nav-icon"/>,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
_component: 'CNavItem',
|
_component: 'CNavItem',
|
||||||
as: NavLink,
|
as: NavLink,
|
||||||
anchor: 'Typography',
|
anchor: 'Typography',
|
||||||
to: '/theme/typography',
|
to: '/theme/typography',
|
||||||
icon: 'cil-pencil',
|
icon: <CIcon name="cil-pencil" customClasses="nav-icon"/>,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
_component: 'CNavTitle',
|
_component: 'CNavTitle',
|
||||||
@ -41,7 +41,7 @@ const _nav = [
|
|||||||
as: NavLink,
|
as: NavLink,
|
||||||
anchor: 'Base',
|
anchor: 'Base',
|
||||||
to: '/to',
|
to: '/to',
|
||||||
icon: 'cil-puzzle',
|
icon: <CIcon name="cil-puzzle" customClasses="nav-icon"/>,
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
_component: 'CNavItem',
|
_component: 'CNavItem',
|
||||||
@ -145,7 +145,7 @@ const _nav = [
|
|||||||
_component: 'CNavGroup',
|
_component: 'CNavGroup',
|
||||||
anchor: 'Buttons',
|
anchor: 'Buttons',
|
||||||
// route: '/buttons',
|
// route: '/buttons',
|
||||||
icon: 'cil-cursor',
|
icon: <CIcon name="cil-cursor" customClasses="nav-icon"/>,
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
_component: 'CNavItem',
|
_component: 'CNavItem',
|
||||||
@ -178,13 +178,13 @@ const _nav = [
|
|||||||
as: NavLink,
|
as: NavLink,
|
||||||
anchor: 'Charts',
|
anchor: 'Charts',
|
||||||
to: '/charts',
|
to: '/charts',
|
||||||
icon: 'cil-chart-pie'
|
icon: <CIcon name="cil-chart-pie" customClasses="nav-icon"/>
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
_component: 'CNavGroup',
|
_component: 'CNavGroup',
|
||||||
anchor: 'Icons',
|
anchor: 'Icons',
|
||||||
// route: '/icons',
|
// route: '/icons',
|
||||||
icon: 'cil-star',
|
icon: <CIcon name="cil-star" customClasses="nav-icon"/>,
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
_component: 'CNavItem',
|
_component: 'CNavItem',
|
||||||
@ -214,7 +214,7 @@ const _nav = [
|
|||||||
_component: 'CNavGroup',
|
_component: 'CNavGroup',
|
||||||
anchor: 'Notifications',
|
anchor: 'Notifications',
|
||||||
// route: '/notifications',
|
// route: '/notifications',
|
||||||
icon: 'cil-bell',
|
icon: <CIcon name="cil-bell" customClasses="nav-icon"/>,
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
_component: 'CNavItem',
|
_component: 'CNavItem',
|
||||||
@ -247,7 +247,7 @@ const _nav = [
|
|||||||
as: NavLink,
|
as: NavLink,
|
||||||
anchor: 'Widgets',
|
anchor: 'Widgets',
|
||||||
to: '/widgets',
|
to: '/widgets',
|
||||||
icon: 'cil-calculator',
|
icon: <CIcon name="cil-calculator" customClasses="nav-icon"/>,
|
||||||
badge: {
|
badge: {
|
||||||
color: 'info',
|
color: 'info',
|
||||||
text: 'NEW',
|
text: 'NEW',
|
||||||
@ -263,7 +263,7 @@ const _nav = [
|
|||||||
{
|
{
|
||||||
_component: 'CNavGroup',
|
_component: 'CNavGroup',
|
||||||
anchor: 'Pages',
|
anchor: 'Pages',
|
||||||
icon: 'cil-star',
|
icon: <CIcon name="cil-star" customClasses="nav-icon"/>,
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
_component: 'CNavItem',
|
_component: 'CNavItem',
|
||||||
@ -294,7 +294,7 @@ const _nav = [
|
|||||||
// {
|
// {
|
||||||
// _component: 'CNavItem',
|
// _component: 'CNavItem',
|
||||||
// anchor: 'Disabled',
|
// anchor: 'Disabled',
|
||||||
// icon: 'cil-ban',
|
// icon: <CIcon name="cil-ban" customClasses="nav-icon"/>,
|
||||||
// badge: {
|
// badge: {
|
||||||
// color: 'secondary',
|
// color: 'secondary',
|
||||||
// text: 'NEW',
|
// text: 'NEW',
|
||||||
@ -315,7 +315,7 @@ const _nav = [
|
|||||||
// anchor: 'Label danger',
|
// anchor: 'Label danger',
|
||||||
// to: '',
|
// to: '',
|
||||||
// icon: {
|
// icon: {
|
||||||
// anchor: 'cil-star',
|
// anchor: <CIcon name="cil-star" customClasses="nav-icon"/>,
|
||||||
// classanchor: 'text-danger'
|
// classanchor: 'text-danger'
|
||||||
// },
|
// },
|
||||||
// label: true
|
// label: true
|
||||||
@ -325,7 +325,7 @@ const _nav = [
|
|||||||
// anchor: 'Label info',
|
// anchor: 'Label info',
|
||||||
// to: '',
|
// to: '',
|
||||||
// icon: {
|
// icon: {
|
||||||
// anchor: 'cil-star',
|
// anchor: <CIcon name="cil-star" customClasses="nav-icon"/>,
|
||||||
// classanchor: 'text-info'
|
// classanchor: 'text-info'
|
||||||
// },
|
// },
|
||||||
// label: true
|
// label: true
|
||||||
@ -335,7 +335,7 @@ const _nav = [
|
|||||||
// anchor: 'Label warning',
|
// anchor: 'Label warning',
|
||||||
// to: '',
|
// to: '',
|
||||||
// icon: {
|
// icon: {
|
||||||
// anchor: 'cil-star',
|
// anchor: <CIcon name="cil-star" customClasses="nav-icon"/>,
|
||||||
// classanchor: 'text-warning'
|
// classanchor: 'text-warning'
|
||||||
// },
|
// },
|
||||||
// label: true
|
// label: true
|
||||||
|
@ -88,7 +88,7 @@ const Cards = () => {
|
|||||||
<CCard className="mb-4">
|
<CCard className="mb-4">
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
Card with label
|
Card with label
|
||||||
<CBadge shape="pill" color="danger" className="float-end">42</CBadge>
|
<CBadge shape="rounded-pill" color="danger" className="float-end">42</CBadge>
|
||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody>
|
<CCardBody>
|
||||||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut
|
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut
|
||||||
|
@ -11,7 +11,7 @@ import {
|
|||||||
CCarouselItem,
|
CCarouselItem,
|
||||||
CCol,
|
CCol,
|
||||||
CRow
|
CRow
|
||||||
} from '@coreui/react'
|
} from '@coreui/react-ts'
|
||||||
import { DocsLink } from 'src/reusable'
|
import { DocsLink } from 'src/reusable'
|
||||||
|
|
||||||
const slides = [
|
const slides = [
|
||||||
|
@ -7,8 +7,10 @@ import {
|
|||||||
CCardHeader,
|
CCardHeader,
|
||||||
CCol,
|
CCol,
|
||||||
CCollapse,
|
CCollapse,
|
||||||
CFade,
|
|
||||||
CRow
|
CRow
|
||||||
|
} from '@coreui/react-ts';
|
||||||
|
import {
|
||||||
|
CFade,
|
||||||
} from '@coreui/react';
|
} from '@coreui/react';
|
||||||
import { DocsLink } from 'src/reusable'
|
import { DocsLink } from 'src/reusable'
|
||||||
|
|
||||||
|
@ -309,20 +309,20 @@ const BasicForms = () => {
|
|||||||
className="me-1"
|
className="me-1"
|
||||||
color="danger"
|
color="danger"
|
||||||
defaultChecked
|
defaultChecked
|
||||||
shape="pill"
|
shape="rounded-pill"
|
||||||
/>
|
/>
|
||||||
<CSwitch
|
<CSwitch
|
||||||
className="me-1"
|
className="me-1"
|
||||||
color="info"
|
color="info"
|
||||||
defaultChecked
|
defaultChecked
|
||||||
shape="pill"
|
shape="rounded-pill"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
/>
|
/>
|
||||||
<CSwitch
|
<CSwitch
|
||||||
className="me-1"
|
className="me-1"
|
||||||
color="dark"
|
color="dark"
|
||||||
defaultChecked
|
defaultChecked
|
||||||
shape="pill"
|
shape="rounded-pill"
|
||||||
variant="opposite"
|
variant="opposite"
|
||||||
/>
|
/>
|
||||||
</CCol>
|
</CCol>
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
import {
|
||||||
|
CJumbotron,
|
||||||
|
CEmbed,
|
||||||
|
CEmbedItem
|
||||||
|
} from '@coreui/react'
|
||||||
import {
|
import {
|
||||||
CButton,
|
CButton,
|
||||||
CCard,
|
CCard,
|
||||||
@ -6,11 +11,8 @@ import {
|
|||||||
CCardHeader,
|
CCardHeader,
|
||||||
CCol,
|
CCol,
|
||||||
CContainer,
|
CContainer,
|
||||||
CJumbotron,
|
|
||||||
CRow,
|
CRow,
|
||||||
CEmbed,
|
} from '@coreui/react-ts'
|
||||||
CEmbedItem
|
|
||||||
} from '@coreui/react'
|
|
||||||
import { DocsLink } from 'src/reusable'
|
import { DocsLink } from 'src/reusable'
|
||||||
|
|
||||||
const Jumbotrons = () => {
|
const Jumbotrons = () => {
|
||||||
|
@ -159,15 +159,15 @@ const ListGroups = () => {
|
|||||||
<CListGroup>
|
<CListGroup>
|
||||||
<CListGroupItem className="justify-content-between">
|
<CListGroupItem className="justify-content-between">
|
||||||
Cras justo odio
|
Cras justo odio
|
||||||
<CBadge className="float-end" shape="pill" color="primary">14</CBadge>
|
<CBadge className="float-end" shape="rounded-pill" color="primary">14</CBadge>
|
||||||
</CListGroupItem>
|
</CListGroupItem>
|
||||||
<CListGroupItem className="justify-content-between">
|
<CListGroupItem className="justify-content-between">
|
||||||
Dapibus ac facilisis in
|
Dapibus ac facilisis in
|
||||||
<CBadge className="float-end" shape="pill" color="primary">2</CBadge>
|
<CBadge className="float-end" shape="rounded-pill" color="primary">2</CBadge>
|
||||||
</CListGroupItem>
|
</CListGroupItem>
|
||||||
<CListGroupItem className="justify-content-between">
|
<CListGroupItem className="justify-content-between">
|
||||||
Morbi leo risus
|
Morbi leo risus
|
||||||
<CBadge className="float-end" shape="pill" color="primary">1</CBadge>
|
<CBadge className="float-end" shape="rounded-pill" color="primary">1</CBadge>
|
||||||
</CListGroupItem>
|
</CListGroupItem>
|
||||||
</CListGroup>
|
</CListGroup>
|
||||||
</CCardBody>
|
</CCardBody>
|
||||||
|
@ -3,8 +3,9 @@ import {
|
|||||||
CCard,
|
CCard,
|
||||||
CCardBody,
|
CCardBody,
|
||||||
CCardHeader,
|
CCardHeader,
|
||||||
CPagination
|
CPagination,
|
||||||
} from '@coreui/react'
|
CPaginationItem
|
||||||
|
} from '@coreui/react-ts'
|
||||||
import { DocsLink } from 'src/reusable'
|
import { DocsLink } from 'src/reusable'
|
||||||
|
|
||||||
|
|
||||||
@ -20,11 +21,13 @@ const Paginations = () => {
|
|||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody>
|
<CCardBody>
|
||||||
<h6>Default</h6>
|
<h6>Default</h6>
|
||||||
<CPagination
|
<CPagination>
|
||||||
activePage={currentPage}
|
<CPaginationItem>Previous</CPaginationItem>
|
||||||
pages={10}
|
<CPaginationItem>1</CPaginationItem>
|
||||||
onActivePageChange={setCurrentPage}
|
<CPaginationItem>2</CPaginationItem>
|
||||||
/>
|
<CPaginationItem>3</CPaginationItem>
|
||||||
|
<CPaginationItem>Next</CPaginationItem>
|
||||||
|
</CPagination>
|
||||||
<br></br>
|
<br></br>
|
||||||
|
|
||||||
<h6>Small</h6>
|
<h6>Small</h6>
|
||||||
|
@ -4,11 +4,11 @@ import {
|
|||||||
CCard,
|
CCard,
|
||||||
CCardBody,
|
CCardBody,
|
||||||
CCardHeader,
|
CCardHeader,
|
||||||
|
CLink,
|
||||||
CPopover,
|
CPopover,
|
||||||
CRow,
|
CRow,
|
||||||
CCol,
|
CCol,
|
||||||
} from '@coreui/react-ts'
|
} from '@coreui/react-ts'
|
||||||
import { CLink } from '@coreui/react'
|
|
||||||
import { DocsLink } from 'src/reusable'
|
import { DocsLink } from 'src/reusable'
|
||||||
|
|
||||||
const Popovers = () => {
|
const Popovers = () => {
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
import {
|
||||||
|
CDataTable,
|
||||||
|
} from '@coreui/react'
|
||||||
import {
|
import {
|
||||||
CBadge,
|
CBadge,
|
||||||
CCard,
|
CCard,
|
||||||
CCardBody,
|
CCardBody,
|
||||||
CCardHeader,
|
CCardHeader,
|
||||||
CCol,
|
CCol,
|
||||||
CDataTable,
|
|
||||||
CRow
|
CRow
|
||||||
} from '@coreui/react'
|
} from '@coreui/react-ts'
|
||||||
import { DocsLink } from 'src/reusable'
|
import { DocsLink } from 'src/reusable'
|
||||||
|
|
||||||
import usersData from '../../users/UsersData'
|
import usersData from '../../users/UsersData'
|
||||||
|
@ -4,13 +4,11 @@ import {
|
|||||||
CCard,
|
CCard,
|
||||||
CCardBody,
|
CCardBody,
|
||||||
CCardHeader,
|
CCardHeader,
|
||||||
|
CLink,
|
||||||
CTooltip,
|
CTooltip,
|
||||||
CRow,
|
CRow,
|
||||||
CCol,
|
CCol,
|
||||||
} from '@coreui/react-ts'
|
} from '@coreui/react-ts'
|
||||||
import {
|
|
||||||
CLink
|
|
||||||
} from '@coreui/react'
|
|
||||||
import { DocsLink } from 'src/reusable'
|
import { DocsLink } from 'src/reusable'
|
||||||
|
|
||||||
const Tooltips = () => {
|
const Tooltips = () => {
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
CCardHeader,
|
CCardHeader,
|
||||||
CCol,
|
CCol,
|
||||||
CRow
|
CRow
|
||||||
} from '@coreui/react'
|
} from '@coreui/react-ts'
|
||||||
import CIcon from '@coreui/icons-react'
|
import CIcon from '@coreui/icons-react'
|
||||||
|
|
||||||
const BrandButtons = () => {
|
const BrandButtons = () => {
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
CButton,
|
CButton,
|
||||||
|
CCallout,
|
||||||
CDropdown,
|
CDropdown,
|
||||||
CButtonGroup,
|
CButtonGroup,
|
||||||
|
CButtonToolbar,
|
||||||
CCard,
|
CCard,
|
||||||
CCardBody,
|
CCardBody,
|
||||||
CCardHeader,
|
CCardHeader,
|
||||||
@ -15,10 +17,6 @@ import {
|
|||||||
CInputGroupText,
|
CInputGroupText,
|
||||||
CRow,
|
CRow,
|
||||||
} from '@coreui/react-ts'
|
} from '@coreui/react-ts'
|
||||||
import {
|
|
||||||
CButtonToolbar,
|
|
||||||
CCallout
|
|
||||||
} from '@coreui/react'
|
|
||||||
import { DocsLink } from 'src/reusable'
|
import { DocsLink } from 'src/reusable'
|
||||||
|
|
||||||
const ButtonGroups = () => {
|
const ButtonGroups = () => {
|
||||||
|
@ -436,31 +436,31 @@ const Buttons = () => {
|
|||||||
Normal
|
Normal
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="primary">Primary</CButton>
|
<CButton shape="rounded-pill" color="primary">Primary</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="secondary">Secondary</CButton>
|
<CButton shape="rounded-pill" color="secondary">Secondary</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="success">Success</CButton>
|
<CButton shape="rounded-pill" color="success">Success</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="warning">Warning</CButton>
|
<CButton shape="rounded-pill" color="warning">Warning</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="danger">Danger</CButton>
|
<CButton shape="rounded-pill" color="danger">Danger</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="info">Info</CButton>
|
<CButton shape="rounded-pill" color="info">Info</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="light">Light</CButton>
|
<CButton shape="rounded-pill" color="light">Light</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="dark">Dark</CButton>
|
<CButton shape="rounded-pill" color="dark">Dark</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="link">Link</CButton>
|
<CButton shape="rounded-pill" color="link">Link</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
<CRow className="align-items-center mt-3">
|
<CRow className="align-items-center mt-3">
|
||||||
@ -468,31 +468,31 @@ const Buttons = () => {
|
|||||||
Active State
|
Active State
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton active shape="pill" color="primary" aria-pressed="true">Primary</CButton>
|
<CButton active shape="rounded-pill" color="primary" aria-pressed="true">Primary</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton active shape="pill" color="secondary" aria-pressed="true">Secondary</CButton>
|
<CButton active shape="rounded-pill" color="secondary" aria-pressed="true">Secondary</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton active shape="pill" color="success" aria-pressed="true">Success</CButton>
|
<CButton active shape="rounded-pill" color="success" aria-pressed="true">Success</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton active shape="pill" color="warning" aria-pressed="true">Warning</CButton>
|
<CButton active shape="rounded-pill" color="warning" aria-pressed="true">Warning</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton active shape="pill" color="danger" aria-pressed="true">Danger</CButton>
|
<CButton active shape="rounded-pill" color="danger" aria-pressed="true">Danger</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton active shape="pill" color="info" aria-pressed="true">Info</CButton>
|
<CButton active shape="rounded-pill" color="info" aria-pressed="true">Info</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton active shape="pill" color="light" aria-pressed="true">Light</CButton>
|
<CButton active shape="rounded-pill" color="light" aria-pressed="true">Light</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton active shape="pill" color="dark" aria-pressed="true">Dark</CButton>
|
<CButton active shape="rounded-pill" color="dark" aria-pressed="true">Dark</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton active shape="pill" color="link" aria-pressed="true">Link</CButton>
|
<CButton active shape="rounded-pill" color="link" aria-pressed="true">Link</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
<CRow className="align-items-center mt-3">
|
<CRow className="align-items-center mt-3">
|
||||||
@ -500,31 +500,31 @@ const Buttons = () => {
|
|||||||
Disabled
|
Disabled
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="primary" disabled>Primary</CButton>
|
<CButton shape="rounded-pill" color="primary" disabled>Primary</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="secondary" disabled>Secondary</CButton>
|
<CButton shape="rounded-pill" color="secondary" disabled>Secondary</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="success" disabled>Success</CButton>
|
<CButton shape="rounded-pill" color="success" disabled>Success</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="warning" disabled>Warning</CButton>
|
<CButton shape="rounded-pill" color="warning" disabled>Warning</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="danger" disabled>Danger</CButton>
|
<CButton shape="rounded-pill" color="danger" disabled>Danger</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="info" disabled>Info</CButton>
|
<CButton shape="rounded-pill" color="info" disabled>Info</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="light" disabled>Light</CButton>
|
<CButton shape="rounded-pill" color="light" disabled>Light</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="dark" disabled>Dark</CButton>
|
<CButton shape="rounded-pill" color="dark" disabled>Dark</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
<CCol col="6" sm="4" md="2" xl className="mb-3 mb-xl-0">
|
||||||
<CButton shape="pill" color="link" disabled>Link</CButton>
|
<CButton shape="rounded-pill" color="link" disabled>Link</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
</CCardBody>
|
</CCardBody>
|
||||||
@ -553,7 +553,7 @@ const Buttons = () => {
|
|||||||
<CButton shape="square" color="warning" size="sm">Square Button</CButton>
|
<CButton shape="square" color="warning" size="sm">Square Button</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="2" className="mb-3 mb-xl-0 text-center">
|
<CCol col="2" className="mb-3 mb-xl-0 text-center">
|
||||||
<CButton shape="pill" color="danger" size="sm">Pill Button</CButton>
|
<CButton shape="rounded-pill" color="danger" size="sm">Pill Button</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
<CRow className="align-items-center mt-3">
|
<CRow className="align-items-center mt-3">
|
||||||
@ -573,7 +573,7 @@ const Buttons = () => {
|
|||||||
<CButton shape="square" color="warning">Square Button</CButton>
|
<CButton shape="square" color="warning">Square Button</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="2" className="mb-3 mb-xl-0 text-center">
|
<CCol col="2" className="mb-3 mb-xl-0 text-center">
|
||||||
<CButton shape="pill" color="danger">Pill Button</CButton>
|
<CButton shape="rounded-pill" color="danger">Pill Button</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
<CRow className="align-items-center mt-3">
|
<CRow className="align-items-center mt-3">
|
||||||
@ -593,7 +593,7 @@ const Buttons = () => {
|
|||||||
<CButton shape="square" color="warning" size="lg">Square Button</CButton>
|
<CButton shape="square" color="warning" size="lg">Square Button</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="2" className="mb-3 mb-xl-0 text-center">
|
<CCol col="2" className="mb-3 mb-xl-0 text-center">
|
||||||
<CButton shape="pill" color="danger" size="lg">Pill Button</CButton>
|
<CButton shape="rounded-pill" color="danger" size="lg">Pill Button</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
</CCardBody>
|
</CCardBody>
|
||||||
@ -626,7 +626,7 @@ const Buttons = () => {
|
|||||||
</CButton>
|
</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="2" className="text-center mt-3">
|
<CCol col="2" className="text-center mt-3">
|
||||||
<CButton shape="pill" color="danger">
|
<CButton shape="rounded-pill" color="danger">
|
||||||
<CIcon name="cil-lightbulb" />Pill Button
|
<CIcon name="cil-lightbulb" />Pill Button
|
||||||
</CButton>
|
</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
|
@ -4,7 +4,7 @@ import {
|
|||||||
CCardBody,
|
CCardBody,
|
||||||
CCardGroup,
|
CCardGroup,
|
||||||
CCardHeader
|
CCardHeader
|
||||||
} from '@coreui/react'
|
} from '@coreui/react-ts'
|
||||||
import {
|
import {
|
||||||
CChartBar,
|
CChartBar,
|
||||||
CChartLine,
|
CChartLine,
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
import React, { lazy } from 'react'
|
import React, { lazy } from 'react'
|
||||||
import {
|
|
||||||
CCallout
|
|
||||||
} from '@coreui/react'
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
CAvatar,
|
CAvatar,
|
||||||
CBadge,
|
CBadge,
|
||||||
CButton,
|
CButton,
|
||||||
CButtonGroup,
|
CButtonGroup,
|
||||||
|
CCallout,
|
||||||
CCard,
|
CCard,
|
||||||
CCardBody,
|
CCardBody,
|
||||||
CCardFooter,
|
CCardFooter,
|
||||||
@ -221,10 +219,10 @@ const Dashboard = () => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="legend text-center">
|
<div className="legend text-center">
|
||||||
<small>
|
<small>
|
||||||
<sup className="px-1"><CBadge shape="pill" color="info"> </CBadge></sup>
|
<sup className="px-1"><CBadge shape="rounded-pill" color="info"> </CBadge></sup>
|
||||||
New clients
|
New clients
|
||||||
|
|
||||||
<sup className="px-1"><CBadge shape="pill" color="danger"> </CBadge></sup>
|
<sup className="px-1"><CBadge shape="rounded-pill" color="danger"> </CBadge></sup>
|
||||||
Recurring clients
|
Recurring clients
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
|
||||||
CLink,
|
|
||||||
} from '@coreui/react'
|
|
||||||
import {
|
import {
|
||||||
CAlert,
|
CAlert,
|
||||||
CAlertHeading,
|
CAlertHeading,
|
||||||
@ -10,6 +7,7 @@ import {
|
|||||||
CCardBody,
|
CCardBody,
|
||||||
CCardHeader,
|
CCardHeader,
|
||||||
CCol,
|
CCol,
|
||||||
|
CLink,
|
||||||
CProgress,
|
CProgress,
|
||||||
CRow,
|
CRow,
|
||||||
} from '@coreui/react-ts'
|
} from '@coreui/react-ts'
|
||||||
|
@ -30,7 +30,7 @@ const Badges = () => {
|
|||||||
</CCardBody>
|
</CCardBody>
|
||||||
<CCardFooter>
|
<CCardFooter>
|
||||||
<CButton color="secondary">
|
<CButton color="secondary">
|
||||||
Notifications <CBadge color="primary" shape="pill" style={{ position: 'static' }}>9</CBadge>
|
Notifications <CBadge color="primary" shape="rounded-pill" style={{ position: 'static' }}>9</CBadge>
|
||||||
</CButton>
|
</CButton>
|
||||||
</CCardFooter>
|
</CCardFooter>
|
||||||
</CCard>
|
</CCard>
|
||||||
|
@ -3,13 +3,11 @@ import {
|
|||||||
CButton,
|
CButton,
|
||||||
CCol,
|
CCol,
|
||||||
CContainer,
|
CContainer,
|
||||||
CInput,
|
CFormControl,
|
||||||
CInputGroup,
|
CInputGroup,
|
||||||
CInputGroupPrepend,
|
|
||||||
CInputGroupAppend,
|
|
||||||
CInputGroupText,
|
CInputGroupText,
|
||||||
CRow
|
CRow,
|
||||||
} from '@coreui/react'
|
} from '@coreui/react-ts'
|
||||||
import CIcon from '@coreui/icons-react'
|
import CIcon from '@coreui/icons-react'
|
||||||
|
|
||||||
const Page404 = () => {
|
const Page404 = () => {
|
||||||
@ -24,15 +22,13 @@ const Page404 = () => {
|
|||||||
<p className="text-muted float-start">The page you are looking for was not found.</p>
|
<p className="text-muted float-start">The page you are looking for was not found.</p>
|
||||||
</div>
|
</div>
|
||||||
<CInputGroup className="input-prepend">
|
<CInputGroup className="input-prepend">
|
||||||
<CInputGroupPrepend>
|
<CInputGroupText>
|
||||||
<CInputGroupText>
|
<CIcon name="cil-magnifying-glass" />
|
||||||
<CIcon name="cil-magnifying-glass" />
|
</CInputGroupText>
|
||||||
</CInputGroupText>
|
<CFormControl size="16" type="text" placeholder="What are you looking for?" />
|
||||||
</CInputGroupPrepend>
|
<CInputGroupText>
|
||||||
<CInput size="16" type="text" placeholder="What are you looking for?" />
|
|
||||||
<CInputGroupAppend>
|
|
||||||
<CButton color="info">Search</CButton>
|
<CButton color="info">Search</CButton>
|
||||||
</CInputGroupAppend>
|
</CInputGroupText>
|
||||||
</CInputGroup>
|
</CInputGroup>
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
|
@ -3,13 +3,11 @@ import {
|
|||||||
CButton,
|
CButton,
|
||||||
CCol,
|
CCol,
|
||||||
CContainer,
|
CContainer,
|
||||||
CInput,
|
CFormControl,
|
||||||
CInputGroup,
|
CInputGroup,
|
||||||
CInputGroupAppend,
|
|
||||||
CInputGroupPrepend,
|
|
||||||
CInputGroupText,
|
CInputGroupText,
|
||||||
CRow
|
CRow
|
||||||
} from '@coreui/react'
|
} from '@coreui/react-ts'
|
||||||
import CIcon from '@coreui/icons-react'
|
import CIcon from '@coreui/icons-react'
|
||||||
|
|
||||||
const Page500 = () => {
|
const Page500 = () => {
|
||||||
@ -24,15 +22,13 @@ const Page500 = () => {
|
|||||||
<p className="text-muted float-start">The page you are looking for is temporarily unavailable.</p>
|
<p className="text-muted float-start">The page you are looking for is temporarily unavailable.</p>
|
||||||
</span>
|
</span>
|
||||||
<CInputGroup className="input-prepend">
|
<CInputGroup className="input-prepend">
|
||||||
<CInputGroupPrepend>
|
<CInputGroupText>
|
||||||
<CInputGroupText>
|
<CIcon name="cil-magnifying-glass" />
|
||||||
<CIcon name="cil-magnifying-glass" />
|
</CInputGroupText>
|
||||||
</CInputGroupText>
|
<CFormControl size="16" type="text" placeholder="What are you looking for?" />
|
||||||
</CInputGroupPrepend>
|
<CInputGroupText>
|
||||||
<CInput size="16" type="text" placeholder="What are you looking for?" />
|
|
||||||
<CInputGroupAppend>
|
|
||||||
<CButton color="info">Search</CButton>
|
<CButton color="info">Search</CButton>
|
||||||
</CInputGroupAppend>
|
</CInputGroupText>
|
||||||
</CInputGroup>
|
</CInputGroup>
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
CCard,
|
CCard,
|
||||||
CCardHeader,
|
CCardHeader,
|
||||||
CCardBody
|
CCardBody
|
||||||
} from '@coreui/react'
|
} from '@coreui/react-ts'
|
||||||
import { rgbToHex } from '@coreui/utils'
|
import { rgbToHex } from '@coreui/utils'
|
||||||
import { DocsLink } from 'src/reusable'
|
import { DocsLink } from 'src/reusable'
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import {
|
|||||||
CCard,
|
CCard,
|
||||||
CCardHeader,
|
CCardHeader,
|
||||||
CCardBody
|
CCardBody
|
||||||
} from '@coreui/react'
|
} from '@coreui/react-ts'
|
||||||
import { DocsLink } from 'src/reusable'
|
import { DocsLink } from 'src/reusable'
|
||||||
|
|
||||||
const Typography = () => {
|
const Typography = () => {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { CCard, CCardBody, CCardHeader, CCol, CRow } from '@coreui/react'
|
import { CCard, CCardBody, CCardHeader, CCol, CRow } from '@coreui/react-ts'
|
||||||
import CIcon from '@coreui/icons-react'
|
import CIcon from '@coreui/icons-react'
|
||||||
|
|
||||||
import usersData from './UsersData'
|
import usersData from './UsersData'
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
CCardFooter,
|
CCardFooter,
|
||||||
|
CCardGroup,
|
||||||
CCol,
|
CCol,
|
||||||
|
CLink,
|
||||||
CRow,
|
CRow,
|
||||||
CProgress
|
CProgress
|
||||||
} from '@coreui/react-ts'
|
} from '@coreui/react-ts'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
CCardGroup,
|
|
||||||
CLink,
|
|
||||||
CWidgetProgress,
|
CWidgetProgress,
|
||||||
CWidgetIcon,
|
CWidgetIcon,
|
||||||
CWidgetProgressIcon,
|
CWidgetProgressIcon,
|
||||||
|
Loading…
Reference in New Issue
Block a user