diff --git a/src/_nav.js b/src/_nav.js index 62b332c..5aec933 100644 --- a/src/_nav.js +++ b/src/_nav.js @@ -121,6 +121,7 @@ const _nav = [ { component: 'CNavGroup', name: 'Buttons', + to: '/buttons', icon: , items: [ { diff --git a/src/reusable/DocsCallout.js b/src/components/DocsCallout.js similarity index 100% rename from src/reusable/DocsCallout.js rename to src/components/DocsCallout.js diff --git a/src/reusable/Example.js b/src/components/DocsExample.js similarity index 91% rename from src/reusable/Example.js rename to src/components/DocsExample.js index 789d500..66f5972 100644 --- a/src/reusable/Example.js +++ b/src/components/DocsExample.js @@ -5,7 +5,7 @@ import CIcon from '@coreui/icons-react' import packageJson from '../../package.json' -const Example = (props) => { +const DocsExample = (props) => { const { children, href } = props const _href = `https://coreui.io/react/docs/${packageJson.config.coreui_library_short_version}/${href}` @@ -35,9 +35,9 @@ const Example = (props) => { ) } -Example.propTypes = { +DocsExample.propTypes = { children: PropTypes.node, href: PropTypes.string, } -export default React.memo(Example) +export default React.memo(DocsExample) diff --git a/src/reusable/DocsLink.js b/src/components/DocsLink.js similarity index 100% rename from src/reusable/DocsLink.js rename to src/components/DocsLink.js diff --git a/src/components/index.js b/src/components/index.js index a4a1265..6cdf335 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -4,5 +4,18 @@ import AppFooter from './AppFooter' import AppHeader from './AppHeader' import AppHeaderDropdown from './header/AppHeaderDropdown' import AppSidebar from './AppSidebar' +import DocsCallout from './DocsCallout' +import DocsLink from './DocsLink' +import DocsExample from './DocsExample' -export { AppBreadcrumb, AppContent, AppFooter, AppHeader, AppHeaderDropdown, AppSidebar } +export { + AppBreadcrumb, + AppContent, + AppFooter, + AppHeader, + AppHeaderDropdown, + AppSidebar, + DocsCallout, + DocsLink, + DocsExample, +} diff --git a/src/reusable/index.js b/src/reusable/index.js deleted file mode 100644 index 098eab5..0000000 --- a/src/reusable/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import DocsCallout from './DocsCallout' -import DocsLink from './DocsLink' -import Example from './Example' - -export { DocsCallout, DocsLink, Example } diff --git a/src/views/components/base/accordion/Accordion.js b/src/views/components/base/accordion/Accordion.js index 53cfa20..b5a8790 100644 --- a/src/views/components/base/accordion/Accordion.js +++ b/src/views/components/base/accordion/Accordion.js @@ -12,7 +12,7 @@ import { CAccordionHeader, CAccordionItem, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Accordion = () => { const [activeKey, setActiveKey] = useState(0) @@ -32,7 +32,7 @@ const Accordion = () => {

Click the accordions below to expand/collapse the accordion content.

- + @@ -98,7 +98,7 @@ const Accordion = () => { - + @@ -111,7 +111,7 @@ const Accordion = () => { borders, and some rounded corners to render accordions edge-to-edge with their parent container.

- + @@ -177,7 +177,7 @@ const Accordion = () => { - +
diff --git a/src/views/components/base/breadcrumbs/Breadcrumbs.js b/src/views/components/base/breadcrumbs/Breadcrumbs.js index fc64dbe..dd8e85b 100644 --- a/src/views/components/base/breadcrumbs/Breadcrumbs.js +++ b/src/views/components/base/breadcrumbs/Breadcrumbs.js @@ -9,7 +9,7 @@ import { CRow, CLink, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Breadcrumbs = () => { return ( @@ -38,7 +38,7 @@ const Breadcrumbs = () => { .

- + Home @@ -66,7 +66,7 @@ const Breadcrumbs = () => { Bootstrap - + diff --git a/src/views/components/base/cards/Cards.js b/src/views/components/base/cards/Cards.js index 8836345..35b2350 100644 --- a/src/views/components/base/cards/Cards.js +++ b/src/views/components/base/cards/Cards.js @@ -19,7 +19,7 @@ import { CCol, CRow, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Cards = () => { return ( @@ -46,7 +46,7 @@ const Cards = () => { no fixed width to start, so they'll naturally fill the full width of its parent element.

- + { Go somewhere - + @@ -89,11 +89,11 @@ const Cards = () => { The main block of a card is the <CCardBody>. Use it whenever you need a padded section within a card.

- + This is some text within a card body. - + @@ -114,7 +114,7 @@ const Cards = () => { stored in a <CCardBody> item, the card title, and subtitle are arranged rightly.

- + Card title @@ -127,7 +127,7 @@ const Cards = () => { Another link - + @@ -142,7 +142,7 @@ const Cards = () => { .card-text, text can be added to the card. Text within{' '} .card-text can additionally be styled with the regular HTML tags.

- + { - + @@ -182,7 +182,7 @@ const Cards = () => {

Create lists of content in a card with a flush list group.

- + @@ -214,7 +214,7 @@ const Cards = () => { - + @@ -229,7 +229,7 @@ const Cards = () => { in there. Shown below are image styles, blocks, text styles, and a list group—all wrapped in a fixed-width card.

- + { Another link - + @@ -279,7 +279,7 @@ const Cards = () => {

Add an optional header and/or footer within a card.

- + Header @@ -290,11 +290,11 @@ const Cards = () => { Go somewhere - +

Card headers can be styled by adding ex. component="h5".

- + Header @@ -305,8 +305,8 @@ const Cards = () => { Go somewhere - - + + Quote @@ -321,8 +321,8 @@ const Cards = () => { - - + + Header @@ -334,7 +334,7 @@ const Cards = () => { 2 days ago - + @@ -353,7 +353,7 @@ const Cards = () => {

Using the grid, wrap cards in columns and rows as needed.

- + @@ -378,14 +378,14 @@ const Cards = () => { - +

Using utilities

Use some of{' '} available sizing utilities to rapidly set a card's width.

- + Card title @@ -404,12 +404,12 @@ const Cards = () => { Go somewhere - + Using custom CSS

Use custom CSS in your stylesheets or as inline styles to set a width.

- + Special title treatment @@ -419,7 +419,7 @@ const Cards = () => { Go somewhere - + @@ -435,7 +435,7 @@ const Cards = () => { text align classes .

- + Special title treatment @@ -463,7 +463,7 @@ const Cards = () => { Go somewhere - + @@ -477,7 +477,7 @@ const Cards = () => { Add some navigation to a <CCardHeader> with our{' '} <CNav> component.

- + @@ -504,8 +504,8 @@ const Cards = () => { Go somewhere - - + + @@ -532,7 +532,7 @@ const Cards = () => { Go somewhere - + @@ -546,7 +546,7 @@ const Cards = () => { Similar to headers and footers, cards can include top and bottom "image caps"—images at the top or bottom of a card.

- + @@ -613,7 +613,7 @@ const Cards = () => { - + @@ -630,7 +630,7 @@ const Cards = () => {

Use color property to change the appearance of a card.

- + {[ { color: 'primary', textColor: 'white' }, @@ -656,7 +656,7 @@ const Cards = () => { ))} - +

Border

Use border utilities to change @@ -664,7 +664,7 @@ const Cards = () => { textColor property on the <CCard> or a subset of the card's contents as shown below.

- + {[ { color: 'primary', textColor: 'primary' }, @@ -690,7 +690,7 @@ const Cards = () => { ))} - +

Top border

Use border utilities to change @@ -698,7 +698,7 @@ const Cards = () => { textColor property on the <CCard> or a subset of the card's contents as shown below.

- + {[ { color: 'primary', textColor: 'primary' }, @@ -727,7 +727,7 @@ const Cards = () => { ))} - + @@ -742,7 +742,7 @@ const Cards = () => { height columns. Card groups start off stacked and use display: flex; to become attached with uniform dimensions starting at the sm breakpoint.

- + { - +

When using card groups with footers, their content will automatically line up.

- + { - + @@ -952,7 +952,7 @@ const Cards = () => { cards on one column, and md={{cols: 1}} splitting four cards to equal width across multiple rows, from the medium breakpoint up.

- + @@ -1083,12 +1083,12 @@ const Cards = () => { - +

Change it to md={{ cols: 3}} and you'll see the fourth card wrap.

- + @@ -1219,7 +1219,7 @@ const Cards = () => { - + diff --git a/src/views/components/base/carousels/Carousels.js b/src/views/components/base/carousels/Carousels.js index 62c49fe..0e277a0 100644 --- a/src/views/components/base/carousels/Carousels.js +++ b/src/views/components/base/carousels/Carousels.js @@ -9,7 +9,7 @@ import { CCol, CRow, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const slides = [ 'data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%22800%22%20height%3D%22400%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20800%20400%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%23holder_1607923e7e2%20text%20%7B%20fill%3A%23555%3Bfont-weight%3Anormal%3Bfont-family%3AHelvetica%2C%20monospace%3Bfont-size%3A40pt%20%7D%20%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22holder_1607923e7e2%22%3E%3Crect%20width%3D%22800%22%20height%3D%22400%22%20fill%3D%22%23777%22%3E%3C%2Frect%3E%3Cg%3E%3Ctext%20x%3D%22285.9296875%22%20y%3D%22217.75625%22%3EFirst%20slide%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E', @@ -36,7 +36,7 @@ const Carousels = () => {

Here’s a carousel with slides

- + slide 1 @@ -48,7 +48,7 @@ const Carousels = () => { slide 3 - +
@@ -61,7 +61,7 @@ const Carousels = () => {

Adding in the previous and next controls by controls property.

- + slide 1 @@ -73,7 +73,7 @@ const Carousels = () => { slide 3 - + @@ -86,7 +86,7 @@ const Carousels = () => {

You can attach the indicators to the carousel, lengthwise the controls, too.

- + slide 1 @@ -98,7 +98,7 @@ const Carousels = () => { slide 3 - + @@ -116,7 +116,7 @@ const Carousels = () => { with .d-none and draw them back on medium-sized devices with{' '} .d-md-block.

- + slide 1 @@ -140,7 +140,7 @@ const Carousels = () => { - + @@ -154,7 +154,7 @@ const Carousels = () => { Add transition="crossfade" to your carousel to animate slides with a fade transition instead of a slide.

- + slide 1 @@ -166,7 +166,7 @@ const Carousels = () => { slide 3 - + @@ -182,7 +182,7 @@ const Carousels = () => { with the filter CSS property. Captions and controls have additional Sass variables that customize the color and background-color.

- + slide 1 @@ -206,7 +206,7 @@ const Carousels = () => { - + diff --git a/src/views/components/base/collapses/Collapses.js b/src/views/components/base/collapses/Collapses.js index 1da1f42..301b7f0 100644 --- a/src/views/components/base/collapses/Collapses.js +++ b/src/views/components/base/collapses/Collapses.js @@ -1,6 +1,6 @@ import React, { useState } from 'react' import { CButton, CCard, CCardBody, CCardHeader, CCol, CCollapse, CRow } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Collapses = () => { const [visible, setVisible] = useState(false) @@ -19,7 +19,7 @@ const Collapses = () => {

You can use a link or a button component.

- + { @@ -39,7 +39,7 @@ const Collapses = () => {
- + @@ -52,7 +52,7 @@ const Collapses = () => {

A <CButton> can show and hide multiple elements.

- + setVisibleA(!visibleA)}>Toggle first element setVisibleB(!visibleB)}>Toggle second element { - + diff --git a/src/views/components/base/jumbotrons/Jumbotrons.js b/src/views/components/base/jumbotrons/Jumbotrons.js index 1129668..5606813 100644 --- a/src/views/components/base/jumbotrons/Jumbotrons.js +++ b/src/views/components/base/jumbotrons/Jumbotrons.js @@ -1,6 +1,6 @@ import React from 'react' import { CButton, CCard, CCardBody, CCardHeader, CCol, CContainer, CRow } from '@coreui/react' -import { DocsLink } from 'src/reusable' +import { DocsLink } from 'src/components' const Jumbotrons = () => { return ( @@ -29,7 +29,7 @@ const Jumbotrons = () => { jumbotron look. Then, mix and match with additional component themes and more.

- Example button + DocsExample button @@ -42,7 +42,7 @@ const Jumbotrons = () => { adjusted the alignment and sizing of both column's content for equal-height.

- Example button + DocsExample button diff --git a/src/views/components/base/list-groups/ListGroups.js b/src/views/components/base/list-groups/ListGroups.js index bc23661..282e40c 100644 --- a/src/views/components/base/list-groups/ListGroups.js +++ b/src/views/components/base/list-groups/ListGroups.js @@ -10,7 +10,7 @@ import { CListGroupItem, CRow, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const ListGroups = () => { return ( @@ -28,7 +28,7 @@ const ListGroups = () => { The default list group is an unordered list with items and the proper CSS classes. Build upon it with the options that follow, or with your CSS as required.

- + Cras justo odio Dapibus ac facilisis in @@ -36,7 +36,7 @@ const ListGroups = () => { Porta ac consectetur ac Vestibulum at eros - + @@ -50,7 +50,7 @@ const ListGroups = () => { Add active boolean property to a <CListGroupItem> to show the current active selection.

- + Cras justo odio Dapibus ac facilisis in @@ -58,7 +58,7 @@ const ListGroups = () => { Porta ac consectetur ac Vestibulum at eros - + @@ -72,7 +72,7 @@ const ListGroups = () => { Add disabled boolean property to a <CListGroupItem> to make it appear disabled.

- + Cras justo odio Dapibus ac facilisis in @@ -80,7 +80,7 @@ const ListGroups = () => { Porta ac consectetur ac Vestibulum at eros - + @@ -98,7 +98,7 @@ const ListGroups = () => { <div> s) don'tprovide a click or tap affordance.

- + Cras justo odio @@ -116,7 +116,7 @@ const ListGroups = () => { Vestibulum at eros - + @@ -130,7 +130,7 @@ const ListGroups = () => { Add flush boolean property to remove some borders and rounded corners to render list group items edge-to-edge in a parent container (e.g., cards).

- + Cras justo odio Dapibus ac facilisis in @@ -138,7 +138,7 @@ const ListGroups = () => { Porta ac consectetur ac Vestibulum at eros - + @@ -156,7 +156,7 @@ const ListGroups = () => { min-width. Currently{' '} horizontal list groups cannot be combined with flush list groups.

- + {['', '-sm', '-md', '-lg', '-xl', '-xxl'].map((breakpoint, index) => ( Cras justo odio @@ -164,7 +164,7 @@ const ListGroups = () => { Morbi leo risus ))} - + @@ -177,7 +177,7 @@ const ListGroups = () => {

Use contextual classes to style list items with a stateful background and color.

- + Dapibus ac facilisis in {[ @@ -195,14 +195,14 @@ const ListGroups = () => { ))} - +

Contextual classes also work with <a>s or{' '} <button>s. Note the addition of the hover styles here not present in the previous example. Also supported is the active state; apply it to indicate an active selection on a contextual list group item.

- + Dapibus ac facilisis in @@ -222,7 +222,7 @@ const ListGroups = () => { ))} - + @@ -235,7 +235,7 @@ const ListGroups = () => {

Add badges to any list group item to show unread counts, activity, and more.

- + Cras justo odio @@ -256,7 +256,7 @@ const ListGroups = () => { - + @@ -270,7 +270,7 @@ const ListGroups = () => { Add nearly any HTML within, even for linked list groups like the one below, with the help of flexbox utilities.

- +
@@ -306,7 +306,7 @@ const ListGroups = () => { Donec id elit non mi porta. - + @@ -320,7 +320,7 @@ const ListGroups = () => { Place CoreUI's checkboxes and radios within list group items and customize as needed.

- + @@ -338,7 +338,7 @@ const ListGroups = () => { - + diff --git a/src/views/components/base/navbars/Navbars.js b/src/views/components/base/navbars/Navbars.js index 5bd3647..e8b9fd0 100644 --- a/src/views/components/base/navbars/Navbars.js +++ b/src/views/components/base/navbars/Navbars.js @@ -19,7 +19,7 @@ import { CDropdown, CButton, } from '@coreui/react' -import { DocsLink } from 'src/reusable' +import { DocsLink } from 'src/components' const CNavbars = () => { const [visible, setVisible] = useState(false) diff --git a/src/views/components/base/navs/Navs.js b/src/views/components/base/navs/Navs.js index d45c7a2..5beadd0 100644 --- a/src/views/components/base/navs/Navs.js +++ b/src/views/components/base/navs/Navs.js @@ -13,7 +13,7 @@ import { CNavItem, CNavLink, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Navs = () => { return ( @@ -33,7 +33,7 @@ const Navs = () => { overrides (for working with lists), some link padding for larger hit areas, and basic disabled styling.

- + @@ -52,7 +52,7 @@ const Navs = () => { - +

Classes are used throughout, so your markup can be super flexible. Use{' '} <ul>s like above, <ol> if the order of your @@ -60,7 +60,7 @@ const Navs = () => { the .nav uses display: flex, the nav links behave the same as nav items would, but without the extra markup.

- + Active @@ -71,7 +71,7 @@ const Navs = () => { Disabled - + @@ -92,7 +92,7 @@ const Navs = () => {

Centered with .justify-content-center:

- + @@ -111,11 +111,11 @@ const Navs = () => { - +

Right-aligned with .justify-content-end:

- + @@ -134,7 +134,7 @@ const Navs = () => { - + @@ -149,7 +149,7 @@ const Navs = () => { .flex-column utility. Need to stack them on some viewports but not others? Use the responsive versions (e.g., .flex-sm-column).

- + @@ -168,7 +168,7 @@ const Navs = () => { - + @@ -182,7 +182,7 @@ const Navs = () => { Takes the basic nav from above and adds the variant="tabs" class to generate a tabbed interface

- + @@ -201,7 +201,7 @@ const Navs = () => { - + @@ -214,7 +214,7 @@ const Navs = () => {

Take that same HTML, but use variant="pills" instead:

- + @@ -233,7 +233,7 @@ const Navs = () => { - + @@ -249,7 +249,7 @@ const Navs = () => { .nav-items, use layout="fill". Notice that all horizontal space is occupied, but not every nav item has the same width.

- + @@ -268,13 +268,13 @@ const Navs = () => { - +

For equal-width elements, use layout="justified". All horizontal space will be occupied by nav links, but unlike the .nav-fill above, every nav item will be the same width.

- + @@ -293,7 +293,7 @@ const Navs = () => { - + @@ -310,7 +310,7 @@ const Navs = () => { the example below, our nav will be stacked on the lowest breakpoint, then adapt to a horizontal layout that fills the available width starting from the small breakpoint.

- + Active @@ -321,7 +321,7 @@ const Navs = () => { Disabled - + @@ -331,7 +331,7 @@ const Navs = () => { React Navs Tabs with dropdowns - + @@ -355,7 +355,7 @@ const Navs = () => { - + @@ -365,7 +365,7 @@ const Navs = () => { React Navs Pills with dropdowns - + @@ -389,7 +389,7 @@ const Navs = () => { - + diff --git a/src/views/components/base/paginations/Paginations.js b/src/views/components/base/paginations/Paginations.js index 9863820..cf14e0a 100644 --- a/src/views/components/base/paginations/Paginations.js +++ b/src/views/components/base/paginations/Paginations.js @@ -8,7 +8,7 @@ import { CPaginationItem, CRow, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Paginations = () => { return ( @@ -36,7 +36,7 @@ const Paginations = () => { component is used to navigate between a set of search results, an appropriate label could be aria-label="Search results pages".

- + Previous 1 @@ -44,7 +44,7 @@ const Paginations = () => { 3 Next - + @@ -58,7 +58,7 @@ const Paginations = () => { Looking to use an icon or symbol in place of text for some pagination links? Be sure to provide proper screen reader support with aria attributes.

- + @@ -70,7 +70,7 @@ const Paginations = () => { - + @@ -92,7 +92,7 @@ const Paginations = () => { such, we always add tabindex="-1" on disabled links and use custom JavaScript to fully disable their functionality.

- + @@ -104,7 +104,7 @@ const Paginations = () => { - + @@ -118,7 +118,7 @@ const Paginations = () => { Fancy larger or smaller pagination? Add size="lg" or{' '} size="sm" for additional sizes.

- + Previous 1 @@ -126,8 +126,8 @@ const Paginations = () => { 3 Next - - + + Previous 1 @@ -135,7 +135,7 @@ const Paginations = () => { 3 Next - + @@ -149,7 +149,7 @@ const Paginations = () => { Change the alignment of pagination components with{' '} flexbox utilities.

- + Previous 1 @@ -157,8 +157,8 @@ const Paginations = () => { 3 Next - - + + Previous 1 @@ -166,7 +166,7 @@ const Paginations = () => { 3 Next - + diff --git a/src/views/components/base/popovers/Popovers.js b/src/views/components/base/popovers/Popovers.js index 002b6a9..277f546 100644 --- a/src/views/components/base/popovers/Popovers.js +++ b/src/views/components/base/popovers/Popovers.js @@ -1,6 +1,6 @@ import React from 'react' import { CButton, CCard, CCardBody, CCardHeader, CPopover, CRow, CCol } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Popovers = () => { return ( @@ -14,7 +14,7 @@ const Popovers = () => { React Popover Basic example - + { Click to toggle popover - + @@ -38,7 +38,7 @@ const Popovers = () => { Four options are available: top, right, bottom, and left aligned. Directions are mirrored when using CoreUI for React in RTL.

- + { > Popover on left - + diff --git a/src/views/components/base/progress/Progress.js b/src/views/components/base/progress/Progress.js index c24bbe5..07cd7d2 100644 --- a/src/views/components/base/progress/Progress.js +++ b/src/views/components/base/progress/Progress.js @@ -1,6 +1,6 @@ import React from 'react' import { CCard, CCardBody, CCardHeader, CCol, CProgress, CProgressBar, CRow } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Progress = () => { return ( @@ -22,7 +22,7 @@ const Progress = () => { , ensuring you can stack progress bars, animate them, and place text labels over them.

- + @@ -38,7 +38,7 @@ const Progress = () => { - + @@ -52,11 +52,11 @@ const Progress = () => { Add labels to your progress bars by placing text within the{' '} <CProgressBar>.

- + 25% - + @@ -71,14 +71,14 @@ const Progress = () => { you change that value the inner <CProgressBar> will automatically resize accordingly.

- + - + @@ -91,7 +91,7 @@ const Progress = () => {

Use color prop to change the appearance of individual progress bars.

- + @@ -104,7 +104,7 @@ const Progress = () => { - + @@ -117,13 +117,13 @@ const Progress = () => {

Include multiple progress bars in a progress component if you need.

- + - + @@ -137,7 +137,7 @@ const Progress = () => { Add variant="striped" to any <CProgressBar> to apply a stripe via CSS gradient over the progress bar's background color.

- + @@ -150,7 +150,7 @@ const Progress = () => { - + @@ -165,7 +165,7 @@ const Progress = () => { <CProgressBar> to animate the stripes right to left via CSS3 animations.

- + @@ -178,7 +178,7 @@ const Progress = () => { - + diff --git a/src/views/components/base/spinners/Spinners.js b/src/views/components/base/spinners/Spinners.js index 31eece6..8833aa7 100644 --- a/src/views/components/base/spinners/Spinners.js +++ b/src/views/components/base/spinners/Spinners.js @@ -1,6 +1,6 @@ import React from 'react' import { CButton, CCard, CCardBody, CCardHeader, CCol, CSpinner, CRow } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Accordion = () => { return ( @@ -17,14 +17,14 @@ const Accordion = () => {

Use the border spinners for a lightweight loading indicator.

- + - +

The border spinner uses currentColor for its border-color. You can use any of our text color utilities on the standard spinner.

- + @@ -33,7 +33,7 @@ const Accordion = () => { - + @@ -47,14 +47,14 @@ const Accordion = () => { If you don'tfancy a border spinner, switch to the grow spinner. While it doesn't technically spin, it does repeatedly grow!

- + - +

Once again, this spinner is built with currentColor, so you can easily change its appearance. Here it is in blue, along with the supported variants.

- + @@ -63,7 +63,7 @@ const Accordion = () => { - + @@ -77,10 +77,10 @@ const Accordion = () => { Add size="sm" property to make a smaller spinner that can quickly be used within other components.

- + - + @@ -95,7 +95,7 @@ const Accordion = () => { place. You may also swap the text out of the spinner element and utilize button text as needed.

- + @@ -103,8 +103,8 @@ const Accordion = () => { - + + @@ -112,7 +112,7 @@ const Accordion = () => { + diff --git a/src/views/components/base/tables/Tables.js b/src/views/components/base/tables/Tables.js index 8f1d9c4..5799751 100644 --- a/src/views/components/base/tables/Tables.js +++ b/src/views/components/base/tables/Tables.js @@ -13,7 +13,7 @@ import { CTableHeaderCell, CTableRow, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Tables = () => { return ( @@ -31,7 +31,7 @@ const Tables = () => { Using the most basic table CoreUI, here's how <CTable>-based tables look in CoreUI.

- + @@ -61,7 +61,7 @@ const Tables = () => { - + @@ -74,7 +74,7 @@ const Tables = () => {

Use contextual classes to color tables, table rows or individual cells.

- + @@ -131,7 +131,7 @@ const Tables = () => { - + @@ -145,7 +145,7 @@ const Tables = () => { Use striped property to add zebra-striping to any table row within the{' '} <CTableBody>.

- + @@ -175,11 +175,11 @@ const Tables = () => { - +

These classes can also be added to table variants:

- + @@ -209,8 +209,8 @@ const Tables = () => { - - + + @@ -240,7 +240,7 @@ const Tables = () => { - + @@ -254,7 +254,7 @@ const Tables = () => { Use hover property to enable a hover state on table rows within a{' '} <CTableBody>.

- + @@ -284,8 +284,8 @@ const Tables = () => { - - + + @@ -315,8 +315,8 @@ const Tables = () => { - - + + @@ -346,7 +346,7 @@ const Tables = () => { - + @@ -356,7 +356,7 @@ const Tables = () => { React Table Active tables - + @@ -388,8 +388,8 @@ const Tables = () => { - - + + @@ -421,7 +421,7 @@ const Tables = () => { - + @@ -434,7 +434,7 @@ const Tables = () => {

Add bordered property for borders on all sides of the table and cells.

- + @@ -464,14 +464,14 @@ const Tables = () => { - +

Border color utilities {' '} can be added to change colors:

- + @@ -501,7 +501,7 @@ const Tables = () => { - + @@ -514,7 +514,7 @@ const Tables = () => {

Add borderless property for a table without borders.

- + @@ -544,8 +544,8 @@ const Tables = () => { - - + + @@ -575,7 +575,7 @@ const Tables = () => { - + @@ -589,7 +589,7 @@ const Tables = () => { Add small property to make any <CTable> more compact by cutting all cell padding in half.

- + @@ -619,7 +619,7 @@ const Tables = () => { - + @@ -635,7 +635,7 @@ const Tables = () => { <CTable> and are aligned to the the top by default. Use the align property to re-align where needed.

- + @@ -702,7 +702,7 @@ const Tables = () => { - + @@ -715,7 +715,7 @@ const Tables = () => {

Border styles, active styles, and table variants are not inherited by nested tables.

- + @@ -769,7 +769,7 @@ const Tables = () => { - + @@ -784,7 +784,7 @@ const Tables = () => { color="light" or color="dark" to make{' '} <CTableHead>s appear light or dark gray.

- + @@ -815,8 +815,8 @@ const Tables = () => { - - + + @@ -846,7 +846,7 @@ const Tables = () => { - + @@ -856,7 +856,7 @@ const Tables = () => { React Table Table foot - + @@ -894,7 +894,7 @@ const Tables = () => { - + @@ -909,7 +909,7 @@ const Tables = () => { users with screen readers to find a table and understand what it's about and decide if they want to read it.

- + List of users @@ -941,12 +941,12 @@ const Tables = () => { - +

You can also put the <CTableCaption> on the top of the table with{' '} caption="top".

- + List of users @@ -978,7 +978,7 @@ const Tables = () => { - + diff --git a/src/views/components/base/tooltips/Tooltips.js b/src/views/components/base/tooltips/Tooltips.js index 9125540..de6020b 100644 --- a/src/views/components/base/tooltips/Tooltips.js +++ b/src/views/components/base/tooltips/Tooltips.js @@ -1,6 +1,6 @@ import React from 'react' import { CButton, CCard, CCardBody, CCardHeader, CLink, CTooltip, CRow, CCol } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Tooltips = () => { return ( @@ -17,7 +17,7 @@ const Tooltips = () => {

Hover over the links below to see tooltips:

- +

Tight pants next level keffiyeh @@ -41,12 +41,12 @@ const Tooltips = () => { freegan cred raw denim single-origin coffee viral.

-
+

Hover over the buttons below to see the four tooltips directions: top, right, bottom, and left. Directions are mirrored when using CoreUI in RTL.

- + { > Tooltip on left - + diff --git a/src/views/components/buttons/button-groups/ButtonGroups.js b/src/views/components/buttons/button-groups/ButtonGroups.js index a529a3b..fb3a0fe 100644 --- a/src/views/components/buttons/button-groups/ButtonGroups.js +++ b/src/views/components/buttons/button-groups/ButtonGroups.js @@ -18,7 +18,7 @@ import { CInputGroupText, CRow, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const ButtonGroups = () => { return ( @@ -36,18 +36,18 @@ const ButtonGroups = () => { Wrap a series of <CButton> components in{' '} <CButtonGroup>.{' '}

- + Left Middle Right - +

These classes can also be added to groups of links, as an alternative to the{' '} <CNav> components.

- + Active link @@ -59,7 +59,7 @@ const ButtonGroups = () => { Link - + @@ -69,13 +69,13 @@ const ButtonGroups = () => { React Button Group Mixed styles - + Left Middle Right - + @@ -85,7 +85,7 @@ const ButtonGroups = () => { React Button Group Outlined styles - + Left @@ -97,7 +97,7 @@ const ButtonGroups = () => { Right - + @@ -111,7 +111,7 @@ const ButtonGroups = () => { Combine button-like checkbox and radio toggle buttons into a seamless looking button group.

- + { label="Checkbox 3" /> - - + + { label="Radio 3" /> - + @@ -180,7 +180,7 @@ const ButtonGroups = () => { Join sets of button groups into button toolbars for more complicated components. Use utility classes as needed to space out groups, buttons, and more.

- + 1 @@ -197,12 +197,12 @@ const ButtonGroups = () => { 8 - +

Feel free to combine input groups with button groups in your toolbars. Similar to the example above, you’ll likely need some utilities through to space items correctly.

- + @@ -255,7 +255,7 @@ const ButtonGroups = () => { /> - + @@ -270,7 +270,7 @@ const ButtonGroups = () => { size property to all <CButtonGroup>'s, including each one when nesting multiple groups.

- + Left @@ -306,7 +306,7 @@ const ButtonGroups = () => { Right - + @@ -321,7 +321,7 @@ const ButtonGroups = () => { <CButtonGroup> when you need dropdown menus combined with a series of buttons.

- + 1 2 @@ -336,7 +336,7 @@ const ButtonGroups = () => { - + @@ -350,7 +350,7 @@ const ButtonGroups = () => { Create a set of buttons that appear vertically stacked rather than horizontally.{' '} Split button dropdowns are not supported here.

- + Button Button @@ -360,8 +360,8 @@ const ButtonGroups = () => { Button Button - - + + Button Button @@ -408,8 +408,8 @@ const ButtonGroups = () => { - - + + { label="Radio 3" /> - + diff --git a/src/views/components/buttons/buttons/Buttons.js b/src/views/components/buttons/buttons/Buttons.js index 3cdfdf7..4b73ca5 100644 --- a/src/views/components/buttons/buttons/Buttons.js +++ b/src/views/components/buttons/buttons/Buttons.js @@ -1,7 +1,7 @@ import React from 'react' import { CButton, CCard, CCardBody, CCardHeader, CCol, CRow } from '@coreui/react' import CIcon from '@coreui/icons-react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Buttons = () => { return ( @@ -21,7 +21,7 @@ const Buttons = () => { it. CoreUI buttons are used to initialize operations, both in the background or foreground of an experience.

- + {['normal', 'active', 'disabled'].map((state, index) => ( @@ -51,7 +51,7 @@ const Buttons = () => { ))} - + @@ -64,7 +64,7 @@ const Buttons = () => {

You can combine button with our CoreUI Icons.

- + {['normal', 'active', 'disabled'].map((state, index) => ( @@ -98,7 +98,7 @@ const Buttons = () => { ))} - + @@ -119,7 +119,7 @@ const Buttons = () => { should be given a role="button" to adequately communicate their meaning to assistive technologies such as screen readers.

- + Link @@ -129,7 +129,7 @@ const Buttons = () => { - + @@ -143,7 +143,7 @@ const Buttons = () => { If you need a button, but without the strong background colors. Set{' '} variant="outline" prop to remove all background colors.

- + {['normal', 'active', 'disabled'].map((state, index) => ( @@ -173,7 +173,7 @@ const Buttons = () => { ))} - + @@ -187,7 +187,7 @@ const Buttons = () => { If you need a ghost variant of button, set variant="ghost" prop to remove all background colors.

- + {['normal', 'active', 'disabled'].map((state, index) => ( @@ -217,7 +217,7 @@ const Buttons = () => { ))} - + @@ -231,22 +231,22 @@ const Buttons = () => { Larger or smaller buttons? Add size="lg" or{' '} size="sm" for additional sizes.

- + Large button Large button - - + + Small button Small button - + @@ -256,7 +256,7 @@ const Buttons = () => { React Button Pill - + {[ 'primary', 'secondary', @@ -271,7 +271,7 @@ const Buttons = () => { {color.charAt(0).toUpperCase() + color.slice(1)} ))} - + @@ -281,7 +281,7 @@ const Buttons = () => { React Button Square - + {[ 'primary', 'secondary', @@ -296,7 +296,7 @@ const Buttons = () => { {color.charAt(0).toUpperCase() + color.slice(1)} ))} - + @@ -312,14 +312,14 @@ const Buttons = () => { pointer-events: none applied to, disabling hover and active states from triggering.

- + Primary button Button - +

Disabled buttons using the <a> component act a little different:

@@ -330,14 +330,14 @@ const Buttons = () => { aria-disabled="true" attribute to show the state of the component to assistive technologies.

- + Primary link Link - + @@ -350,49 +350,49 @@ const Buttons = () => {

Create buttons that span the full width of a parent—by using utilities.

- +
Button Button
-
+

Here we create a responsive variation, starting with vertically stacked buttons until the md breakpoint, where .d-md-block replaces the{' '} .d-grid class, thus nullifying the gap-2 utility. Resize your browser to see them change.

- +
Button Button
-
+

You can adjust the width of your block buttons with grid column width classes. For example, for a half-width "block button", use .col-6. Center it horizontally with .mx-auto, too.

- +
Button Button
-
+

Additional utilities can be used to adjust the alignment of buttons when horizontal. Here we've taken our previous responsive example and added some flex utilities and a margin utility on the button to right align the buttons when they're no longer stacked.

- +
Button Button
-
+ diff --git a/src/views/components/buttons/dropdowns/Dropdowns.js b/src/views/components/buttons/dropdowns/Dropdowns.js index 8a1c18b..bc68895 100644 --- a/src/views/components/buttons/dropdowns/Dropdowns.js +++ b/src/views/components/buttons/dropdowns/Dropdowns.js @@ -13,7 +13,7 @@ import { CDropdownToggle, CRow, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Dropdowns = () => { return ( @@ -31,7 +31,7 @@ const Dropdowns = () => { Here's how you can put them to work with either <button>{' '} elements:

- + Dropdown button @@ -40,11 +40,11 @@ const Dropdowns = () => { Something else here - +

The best part is you can do this with any button variant, too:

- + <> {['primary', 'secondary', 'success', 'info', 'warning', 'danger'].map( (color, index) => ( @@ -61,7 +61,7 @@ const Dropdowns = () => { ), )} - + @@ -82,7 +82,7 @@ const Dropdowns = () => { normal button dropdowns. Those additional changes hold the caret centered in the split button and implement a more properly sized hit area next to the main button.

- + <> {['primary', 'secondary', 'success', 'info', 'warning', 'danger'].map( (color, index) => ( @@ -100,7 +100,7 @@ const Dropdowns = () => { ), )} - + @@ -114,7 +114,7 @@ const Dropdowns = () => { Button dropdowns work with buttons of all sizes, including default and split dropdown buttons.

- + Large button @@ -140,8 +140,8 @@ const Dropdowns = () => { Separated link - - + + Small button @@ -167,7 +167,7 @@ const Dropdowns = () => { Separated link - + @@ -181,7 +181,7 @@ const Dropdowns = () => { Opt into darker dropdowns to match a dark navbar or custom style by set{' '} dark property. No changes are required to the dropdown items.

- + Dropdown button @@ -192,9 +192,9 @@ const Dropdowns = () => { Separated link - +

And putting it to use in a navbar:

- +
-
+ @@ -242,7 +242,7 @@ const Dropdowns = () => { direction="dropup" to the <CDropdown>{' '} component.

- + Dropdown @@ -264,7 +264,7 @@ const Dropdowns = () => { Separated link - + @@ -279,7 +279,7 @@ const Dropdowns = () => { direction="dropend" to the <CDropdown>{' '} component.

- + Dropdown @@ -301,7 +301,7 @@ const Dropdowns = () => { Separated link - + @@ -316,7 +316,7 @@ const Dropdowns = () => { direction="dropstart" to the <CDropdown>{' '} component.

- + @@ -330,7 +330,7 @@ const Dropdowns = () => { Small split button - + diff --git a/src/views/components/charts/Charts.js b/src/views/components/charts/Charts.js index 13bb5cd..76b082f 100644 --- a/src/views/components/charts/Charts.js +++ b/src/views/components/charts/Charts.js @@ -8,7 +8,7 @@ import { CChartPolarArea, CChartRadar, } from '@coreui/react-chartjs' -import { DocsLink } from 'src/reusable' +import { DocsLink } from 'src/components' const Charts = () => { const random = () => Math.round(Math.random() * 100) diff --git a/src/views/components/forms/checks-radios/ChecksRadios.js b/src/views/components/forms/checks-radios/ChecksRadios.js index 805ecdb..3430d14 100644 --- a/src/views/components/forms/checks-radios/ChecksRadios.js +++ b/src/views/components/forms/checks-radios/ChecksRadios.js @@ -1,6 +1,6 @@ import React from 'react' import { CCard, CCardBody, CCardHeader, CCol, CFormCheck, CFormSwitch, CRow } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const ChecksRadios = () => { return ( @@ -14,10 +14,10 @@ const ChecksRadios = () => { React Checkbox - + - + @@ -32,10 +32,10 @@ const ChecksRadios = () => { are automatically styled to match with a lighter color to help indicate the input's state.

- + - + @@ -50,7 +50,7 @@ const ChecksRadios = () => { are automatically styled to match with a lighter color to help indicate the input's state.

- + { label="Checked radio" defaultChecked /> - + @@ -74,7 +74,7 @@ const ChecksRadios = () => { React Radio Disabled - + { defaultChecked disabled /> - + @@ -105,7 +105,7 @@ const ChecksRadios = () => { properly to render a toggle switch. Switches also support the disabled{' '} attribute.

- + { defaultChecked disabled /> - + @@ -133,7 +133,7 @@ const ChecksRadios = () => { React Switches Sizes - + { label="Extra large switch checkbox input" id="formSwitchCheckDefaultXL" /> - + @@ -159,11 +159,11 @@ const ChecksRadios = () => { By default, any number of checkboxes and radios that are immediate sibling will be vertically stacked and appropriately spaced.

- + - - + + { label="Disabled radio" disabled /> - + @@ -201,7 +201,7 @@ const ChecksRadios = () => { Group checkboxes or radios on the same horizontal row by adding inline{' '} boolean property to any <CFormCheck>.

- + { label="3 (disabled)" disabled /> - - + + { label="3 (disabled)" disabled /> - + @@ -252,7 +252,7 @@ const ChecksRadios = () => { Remember to still provide some form of accessible name for assistive technologies (for instance, using aria-label).

- +
@@ -265,7 +265,7 @@ const ChecksRadios = () => { aria-label="..." /> -
+ @@ -280,10 +280,10 @@ const ChecksRadios = () => { property on the <CFormCheck> component. These toggle buttons can further be grouped in a button group if needed.

- + - - + + { label="Checked" defaultChecked /> - - + + - +

Radio toggle buttons

- + { autoComplete="off" label="Radio" /> - +

Outlined styles

Different variants of button, such at the various outlined styles, are supported.

- +
{ label="Radio" />
-
+ diff --git a/src/views/components/forms/floating-labels/FloatingLabels.js b/src/views/components/forms/floating-labels/FloatingLabels.js index c25aebf..1acafb4 100644 --- a/src/views/components/forms/floating-labels/FloatingLabels.js +++ b/src/views/components/forms/floating-labels/FloatingLabels.js @@ -11,7 +11,7 @@ import { CFormTextarea, CRow, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const FloatingLabels = () => { return ( @@ -33,7 +33,7 @@ const FloatingLabels = () => { pseudo-element. Also note that the <CFormInput> must come first so we can utilize a sibling selector (e.g., ~).

- + Email address @@ -42,12 +42,12 @@ const FloatingLabels = () => { Password - +

When there's a value already defined, <CFormLabel> s will automatically adjust to their floated position.

- + { /> Input with value - + @@ -71,7 +71,7 @@ const FloatingLabels = () => { By default, <CFormTextarea>s will be the same height as{' '} <CFormInput>s.

- + { > Comments - +

To set a custom height on your <CFormTextarea;>, do not use the{' '} rows attribute. Instead, set an explicit height (either inline or via custom CSS).

- + { > Comments - + @@ -113,7 +113,7 @@ const FloatingLabels = () => { Selects with size and multiple are not supported.

- + @@ -123,7 +123,7 @@ const FloatingLabels = () => { Works with selects - + @@ -137,7 +137,7 @@ const FloatingLabels = () => { When working with the CoreUI for Bootstrap grid system, be sure to place form elements within column classes.

- + @@ -162,7 +162,7 @@ const FloatingLabels = () => { - + diff --git a/src/views/components/forms/form-control/FormControl.js b/src/views/components/forms/form-control/FormControl.js index be0189a..b064bff 100644 --- a/src/views/components/forms/form-control/FormControl.js +++ b/src/views/components/forms/form-control/FormControl.js @@ -11,7 +11,7 @@ import { CFormTextarea, CRow, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const FormControl = () => { return ( @@ -25,7 +25,7 @@ const FormControl = () => { React Form Control - +
Email address @@ -40,7 +40,7 @@ const FormControl = () => {
-
+
@@ -54,7 +54,7 @@ const FormControl = () => { Set heights using size property like size="lg" and{' '} size="sm".

- + { placeholder="Small input" aria-label="sm input example" /> - + @@ -88,7 +88,7 @@ const FormControl = () => { Add the disabled boolean attribute on an input to give it a grayed out appearance and remove pointer events.

- + { readOnly />
-
+ @@ -119,14 +119,14 @@ const FormControl = () => { the input's value. Read-only inputs appear lighter (just like disabled inputs), but retain the standard cursor.

- + - + @@ -141,7 +141,7 @@ const FormControl = () => { as plain text, use the plainText boolean property to remove the default form field styling and preserve the correct margin and padding.

- + Email @@ -164,8 +164,8 @@ const FormControl = () => { - - + +
@@ -191,7 +191,7 @@ const FormControl = () => {
-
+ @@ -201,7 +201,7 @@ const FormControl = () => { React Form Control File input - +
Default file input example @@ -222,7 +222,7 @@ const FormControl = () => { Large file input example
-
+
@@ -232,7 +232,7 @@ const FormControl = () => { React Form Control Color - + Color picker { defaultValue="#563d7c" title="Choose your color" /> - + diff --git a/src/views/components/forms/input-group/InputGroup.js b/src/views/components/forms/input-group/InputGroup.js index c4e85a7..427714a 100644 --- a/src/views/components/forms/input-group/InputGroup.js +++ b/src/views/components/forms/input-group/InputGroup.js @@ -19,7 +19,7 @@ import { CInputGroupText, CRow, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Select = () => { return ( @@ -38,7 +38,7 @@ const Select = () => { sides of an input. Remember to place <CFormLabel>s outside the input group.

- + @ { With textarea - + @@ -89,7 +89,7 @@ const Select = () => { custom form field validation within an input group. You may disable this with{' '} .flex-nowrap.

- + @ { aria-describedby="addon-wrapping" /> - + @@ -116,7 +116,7 @@ const Select = () => {

Sizing on the individual input group elements isn'tsupported.

- + Small { aria-describedby="inputGroup-sizing-lg" /> - + @@ -151,7 +151,7 @@ const Select = () => {

Place any checkbox or radio option within an input group's addon instead of text.

- + { - + @@ -187,13 +187,13 @@ const Select = () => { styles are only available for input groups with a single{' '} <CFormInput>.

- + First and last name - + @@ -207,7 +207,7 @@ const Select = () => { Multiple add-ons are supported and can be mixed with checkbox and radio input versions..

- + $ 0.00 @@ -218,7 +218,7 @@ const Select = () => { $ 0.00 - + @@ -232,7 +232,7 @@ const Select = () => { Multiple add-ons are supported and can be mixed with checkbox and radio input versions..

- + Button @@ -274,7 +274,7 @@ const Select = () => { Button - + @@ -284,7 +284,7 @@ const Select = () => { React Input group Buttons with dropdowns - + @@ -342,7 +342,7 @@ const Select = () => { - + @@ -352,7 +352,7 @@ const Select = () => { React Input group Segmented buttons - + @@ -385,7 +385,7 @@ const Select = () => { - + @@ -395,7 +395,7 @@ const Select = () => { React Input group Custom select - + Options @@ -440,7 +440,7 @@ const Select = () => { Button - + @@ -450,7 +450,7 @@ const Select = () => { React Input group Custom file input - + Upload @@ -495,7 +495,7 @@ const Select = () => { Button - + diff --git a/src/views/components/forms/layout/Layout.js b/src/views/components/forms/layout/Layout.js index 86bcba5..27bae19 100644 --- a/src/views/components/forms/layout/Layout.js +++ b/src/views/components/forms/layout/Layout.js @@ -14,7 +14,7 @@ import { CInputGroupText, CRow, } from '@coreui/react' -import { Example } from 'src/reusable' +import { DocsExample } from 'src/components' const Layout = () => { return ( @@ -29,7 +29,7 @@ const Layout = () => { More complex forms can be built using our grid classes. Use these for form layouts that require multiple columns, varied widths, and additional alignment options.

- + @@ -38,7 +38,7 @@ const Layout = () => { - + @@ -52,7 +52,7 @@ const Layout = () => { By adding
gutter modifier classes , you can have control over the gutter width in as well the inline as block direction.

- + @@ -61,11 +61,11 @@ const Layout = () => { - +

More complex layouts can also be created with the grid system.

- + Email @@ -105,7 +105,7 @@ const Layout = () => { Sign in - + @@ -127,7 +127,7 @@ const Layout = () => { alignment you need. For example, we've removed the padding-top on our stacked radio inputs label to better align the text baseline.

- + @@ -180,7 +180,7 @@ const Layout = () => { Sign in - + @@ -195,7 +195,7 @@ const Layout = () => { your <CFormLabel>s or <legend>s to correctly follow the size of .form-control-lg and .form-control-sm.

- + { /> - + @@ -254,7 +254,7 @@ const Layout = () => { split the rest, with specific column classes like{' '} <CCol sm="7">.

- + @@ -266,7 +266,7 @@ const Layout = () => { - + @@ -282,7 +282,7 @@ const Layout = () => { columns only take up as much space as needed. Put another way, the column sizes itself based on the contents.

- + @@ -317,11 +317,11 @@ const Layout = () => { Submit - +

You can then remix that once again with size-specific column classes.

- + @@ -356,7 +356,7 @@ const Layout = () => { Submit - + @@ -374,7 +374,7 @@ const Layout = () => { .align-items-center aligns the form elements to the middle, making the{' '} <CFormCheck> align properly.

- + @@ -403,7 +403,7 @@ const Layout = () => { Submit - + diff --git a/src/views/components/forms/range/Range.js b/src/views/components/forms/range/Range.js index 163525c..0cdb5b6 100644 --- a/src/views/components/forms/range/Range.js +++ b/src/views/components/forms/range/Range.js @@ -1,6 +1,6 @@ import React from 'react' import { CCard, CCardBody, CCardHeader, CCol, CFormLabel, CFormRange, CRow } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Range = () => { return ( @@ -18,10 +18,10 @@ const Range = () => { Create custom <input type="range"> controls with{' '} <CFormRange>.

- + Example range - + @@ -35,10 +35,10 @@ const Range = () => { Add the disabled boolean attribute on an input to give it a grayed out appearance and remove pointer events.

- + Disabled range - + @@ -53,10 +53,10 @@ const Range = () => { 0 and 100, respectively. You may specify new values for those using the min and max attributes.

- + Example range - + @@ -71,10 +71,10 @@ const Range = () => { specify a step value. In the example below, we double the number of steps by using step="0.5".

- + Example range - + diff --git a/src/views/components/forms/select/Select.js b/src/views/components/forms/select/Select.js index 8b91c5f..dc03a77 100644 --- a/src/views/components/forms/select/Select.js +++ b/src/views/components/forms/select/Select.js @@ -1,6 +1,6 @@ import React from 'react' import { CCard, CCardBody, CCardHeader, CCol, CFormSelect, CRow } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Select = () => { return ( @@ -14,14 +14,14 @@ const Select = () => { React Select Default - + - + @@ -35,7 +35,7 @@ const Select = () => { You may also choose from small and large custom selects to match our similarly sized text inputs.

- + @@ -48,29 +48,29 @@ const Select = () => { - +

The multiple attribute is also supported:

- + - +

As is the htmlSize property:

- + - + @@ -84,14 +84,14 @@ const Select = () => { Add the disabled boolean attribute on a select to give it a grayed out appearance and remove pointer events.

- + - + @@ -101,9 +101,9 @@ const Select = () => { React Select - + - + */} diff --git a/src/views/components/forms/validation/Validation.js b/src/views/components/forms/validation/Validation.js index 28538d8..160fa95 100644 --- a/src/views/components/forms/validation/Validation.js +++ b/src/views/components/forms/validation/Validation.js @@ -16,7 +16,7 @@ import { CInputGroupText, CRow, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const CustomStyles = () => { const [validated, setValidated] = useState(false) @@ -274,7 +274,7 @@ const Validation = () => { Custom feedback styles apply custom colors, borders, focus styles, and background icons to better communicate feedback.{' '}

- {CustomStyles()} + {CustomStyles()} @@ -294,7 +294,7 @@ const Validation = () => { While these feedback styles cannot be styled with CSS, you can still customize the feedback text through JavaScript.

- {BrowserDefaults()} + {BrowserDefaults()} @@ -315,7 +315,7 @@ const Validation = () => { attribute allows more than one id to be referenced, in case the field already points to additional form text).

- + Email @@ -388,7 +388,7 @@ const Validation = () => { - + @@ -412,7 +412,7 @@ const Validation = () => { <CFormCheck>s - +
@@ -478,7 +478,7 @@ const Validation = () => {
-
+ @@ -495,7 +495,7 @@ const Validation = () => { our column classes have this already, but your project may require an alternative setup.

- {Tooltips()} + {Tooltips()} diff --git a/src/views/components/icons/brands/Brands.js b/src/views/components/icons/brands/Brands.js index d9b308f..29bcc58 100644 --- a/src/views/components/icons/brands/Brands.js +++ b/src/views/components/icons/brands/Brands.js @@ -2,7 +2,7 @@ import React from 'react' import { CCard, CCardBody, CCardHeader, CCol, CRow } from '@coreui/react' import CIcon from '@coreui/icons-react' import { brandSet } from '@coreui/icons' -import { DocsLink } from 'src/reusable' +import { DocsLink } from 'src/components' const toKebabCase = (str) => { return str.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase() diff --git a/src/views/components/icons/coreui-icons/CoreUIIcons.js b/src/views/components/icons/coreui-icons/CoreUIIcons.js index 2145cec..cb66a3a 100644 --- a/src/views/components/icons/coreui-icons/CoreUIIcons.js +++ b/src/views/components/icons/coreui-icons/CoreUIIcons.js @@ -2,7 +2,7 @@ import React from 'react' import { CCard, CCardBody, CCardHeader, CRow } from '@coreui/react' import { freeSet } from '@coreui/icons' import { getIconsView } from '../brands/Brands.js' -import { DocsLink } from 'src/reusable' +import { DocsLink } from 'src/components' const CoreUIIcons = () => { return ( diff --git a/src/views/components/icons/flags/Flags.js b/src/views/components/icons/flags/Flags.js index 146930b..d86495a 100644 --- a/src/views/components/icons/flags/Flags.js +++ b/src/views/components/icons/flags/Flags.js @@ -2,7 +2,7 @@ import React from 'react' import { CCard, CCardBody, CCardHeader, CRow } from '@coreui/react' import { getIconsView } from '../brands/Brands.js' import { flagSet } from '@coreui/icons' -import { DocsLink } from 'src/reusable' +import { DocsLink } from 'src/components' const CoreUIIcons = () => { return ( diff --git a/src/views/components/notifications/alerts/Alerts.js b/src/views/components/notifications/alerts/Alerts.js index b4b60fa..234fb8f 100644 --- a/src/views/components/notifications/alerts/Alerts.js +++ b/src/views/components/notifications/alerts/Alerts.js @@ -9,7 +9,7 @@ import { CCol, CRow, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Alerts = () => { return ( @@ -32,7 +32,7 @@ const Alerts = () => { .

- + A simple primary alert—check it out! A simple secondary alert—check it out! A simple success alert—check it out! @@ -41,7 +41,7 @@ const Alerts = () => { A simple info alert—check it out! A simple light alert—check it out! A simple dark alert—check it out! - + @@ -55,7 +55,7 @@ const Alerts = () => { Use the <CAlertLink> component to immediately give matching colored links inside any alert.

- + A simple primary alert with an example link. Give it a click if you like. @@ -88,7 +88,7 @@ const Alerts = () => { A simple dark alert with an example link. Give it a click if you like. - + @@ -102,7 +102,7 @@ const Alerts = () => { Alert can also incorporate supplementary components & elements like heading, paragraph, and divider.

- + Well done!

@@ -116,7 +116,7 @@ const Alerts = () => { tidy.

-
+ @@ -129,7 +129,7 @@ const Alerts = () => {

Alerts can also be easily dismissed. Just add the dismissible prop.

- + { > Go right ahead and click that dimiss over there on the right. - + diff --git a/src/views/components/notifications/badges/Badges.js b/src/views/components/notifications/badges/Badges.js index 1297c91..f8d4c0d 100644 --- a/src/views/components/notifications/badges/Badges.js +++ b/src/views/components/notifications/badges/Badges.js @@ -1,6 +1,6 @@ import React from 'react' import { CButton, CCard, CCardBody, CCardHeader, CCol, CBadge, CRow } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const Badges = () => { return ( @@ -18,7 +18,7 @@ const Badges = () => { Bootstrap badge scale to suit the size of the parent element by using relative font sizing and em units.

- +

Example heading New

@@ -37,15 +37,15 @@ const Badges = () => {
Example heading New
-
+

Badges can be used as part of links or buttons to provide a counter.

- + Notifications 4 - +

Remark that depending on how you use them, badges may be complicated for users of screen readers and related assistive technologies. @@ -54,12 +54,12 @@ const Badges = () => { Unless the context is clear, consider including additional context with a visually hidden piece of additional text.

- + Profile 9 unread messages - + @@ -73,7 +73,7 @@ const Badges = () => { Add any of the below-mentioned color props to modify the presentation of a badge.

- + primary success danger @@ -81,7 +81,7 @@ const Badges = () => { info light dark - + @@ -92,7 +92,7 @@ const Badges = () => {

Apply the shape="rounded-pill" prop to make badges rounded.

- + primary @@ -114,7 +114,7 @@ const Badges = () => { dark - +
diff --git a/src/views/components/notifications/modals/Modals.js b/src/views/components/notifications/modals/Modals.js index 7631f0f..e7b3a93 100644 --- a/src/views/components/notifications/modals/Modals.js +++ b/src/views/components/notifications/modals/Modals.js @@ -15,7 +15,7 @@ import { CRow, CTooltip, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const LiveDemo = () => { const [visible, setVisible] = useState(false) @@ -476,7 +476,7 @@ const Modals = () => { include modal headers with dismiss actions whenever possible, or provide another explicit dismiss action.

- + { Save changes - + @@ -507,7 +507,7 @@ const Modals = () => { Toggle a working modal demo by clicking the button below. It will slide down and fade in from the top of the page.

- {LiveDemo()} + {LiveDemo()} @@ -522,7 +522,7 @@ const Modals = () => { modal will behave as though the backdrop is static, meaning it will not close when clicking outside it. Click the button below to try it.

- {StaticBackdrop()} + {StaticBackdrop()} @@ -537,16 +537,16 @@ const Modals = () => { modal will behave as though the backdrop is static, meaning it will not close when clicking outside it. Click the button below to try it.

- + {ScrollingLongContent()} - +

You can also create a scrollable modal that allows scroll the modal body by adding{' '} scrollable prop.

- + {ScrollingLongContent2()} - + @@ -560,8 +560,12 @@ const Modals = () => { Add alignment="center" to <CModal> to vertically center the modal.

- {VerticallyCentered()} - {VerticallyCentered2()} + + {VerticallyCentered()} + + + {VerticallyCentered2()} + @@ -576,7 +580,9 @@ const Modals = () => { modals as needed. When modals are closed, any tooltips and popovers within are also automatically dismissed.

- {TooltipsPopovers()} + + {TooltipsPopovers()} + @@ -636,7 +642,7 @@ const Modals = () => { - {OptionalSizes()} + {OptionalSizes()} @@ -706,7 +712,7 @@ const Modals = () => { - {FullscreenModal()} + {FullscreenModal()} diff --git a/src/views/components/notifications/toasts/Toasts.js b/src/views/components/notifications/toasts/Toasts.js index 1cdcf90..25cfebf 100644 --- a/src/views/components/notifications/toasts/Toasts.js +++ b/src/views/components/notifications/toasts/Toasts.js @@ -12,7 +12,7 @@ import { CToastHeader, CToaster, } from '@coreui/react' -import { DocsCallout, Example } from 'src/reusable' +import { DocsCallout, DocsExample } from 'src/components' const ExampleToast = () => { const [toast, addToast] = useState(0) @@ -62,7 +62,7 @@ const Toasts = () => { we require a single element to contain your “toasted” content and strongly encourage a dismiss button.

- + { Hello, world! This is a toast message. - - {ExampleToast()} + + {ExampleToast()} @@ -95,7 +95,7 @@ const Toasts = () => {

Toasts are slightly translucent to blend in with what's below them.

- +
@@ -116,7 +116,7 @@ const Toasts = () => { Hello, world! This is a toast message.
-
+ @@ -130,7 +130,7 @@ const Toasts = () => { You can stack toasts by wrapping them in a toast container, which will vertically add some spacing.

- + @@ -169,7 +169,7 @@ const Toasts = () => { Hello, world! This is a toast message. - + @@ -188,18 +188,18 @@ const Toasts = () => { flexbox utilities to adjust the layout.

- +
Hello, world! This is a toast message.
-
+

Alternatively, you can also add additional controls and components to toasts.

- + Hello, world! This is a toast message. @@ -213,7 +213,7 @@ const Toasts = () => { - + @@ -232,14 +232,14 @@ const Toasts = () => { white property to our close button. For a crisp edge, we remove the default border with .border-0.

- +
Hello, world! This is a toast message.
-
+ diff --git a/src/views/theme/colors/Colors.js b/src/views/theme/colors/Colors.js index a6fef82..9e51a98 100644 --- a/src/views/theme/colors/Colors.js +++ b/src/views/theme/colors/Colors.js @@ -3,7 +3,7 @@ import React, { useEffect, useState, createRef } from 'react' import classNames from 'classnames' import { CRow, CCol, CCard, CCardHeader, CCardBody } from '@coreui/react' import { rgbToHex } from '@coreui/utils' -import { DocsLink } from 'src/reusable' +import { DocsLink } from 'src/components' const ThemeView = () => { const [color, setColor] = useState('rgb(255, 255, 255)') diff --git a/src/views/theme/typography/Typography.js b/src/views/theme/typography/Typography.js index 81bbefb..1cae4f6 100644 --- a/src/views/theme/typography/Typography.js +++ b/src/views/theme/typography/Typography.js @@ -1,6 +1,6 @@ import React from 'react' import { CCard, CCardHeader, CCardBody } from '@coreui/react' -import { DocsLink } from 'src/reusable' +import { DocsLink } from 'src/components' const Typography = () => { return (