Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b14949c

Browse filesBrowse files
authored
Merge pull request #422 from mrholek/main
docs: update `@coreui/react` library imports
2 parents caa1007 + 8d2d46b commit b14949c
Copy full SHA for b14949c

23 files changed

+21
-40
lines changed

‎packages/docs/content/components/close-button/index.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/components/close-button/index.mdx
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ route: /components/close-button/
66
other_frameworks: close-button
77
---
88

9-
import { CCloseButton } from '@coreui/react/src/index'
10-
119
## Example
1210

1311
Provide an option to dismiss or close a component with `<CCloseButton>`. Default styling is limited, but highly customizable. Modify the Sass variables to replace the default `background-image`.

‎packages/docs/content/components/footer.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/components/footer.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ route: /components/footer
77
other_frameworks: footer
88
---
99

10-
import { CFooter, CLink } from '@coreui/react/src/index'
10+
import { CFooter, CLink } from '@coreui/react'
1111

1212
## Example
1313

‎packages/docs/content/components/header.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/components/header.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
CHeaderNav,
3232
CHeaderText,
3333
CHeaderToggler,
34-
} from '@coreui/react/src/index'
34+
} from '@coreui/react'
3535

3636
## Supported content
3737

‎packages/docs/content/components/icon.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/components/icon.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
CNavLink,
1515
CRow,
1616
CTabContent,
17-
CTabPane } from '@coreui/react/src/index'
17+
CTabPane } from '@coreui/react'
1818
import {CIcon, CIconSvg} from '@coreui/icons-react/src/index'
1919
import { cilList, cilShieldAlt } from '@coreui/icons'
2020
import * as icon from '@coreui/icons';

‎packages/docs/content/components/sidebar/index.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/components/sidebar/index.mdx
-18Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,6 @@ route: /components/sidebar/
66
other_frameworks: sidebar
77
---
88

9-
import CIcon from '@coreui/icons-react'
10-
import { cilCloudDownload, cilLayers, cilPuzzle, cilSpeedometer } from '@coreui/icons'
11-
12-
import {
13-
CBadge,
14-
CSidebar,
15-
CSidebarBrand,
16-
CSidebarFooter,
17-
CSidebarHeader,
18-
CSidebarNav,
19-
CSidebarToggler,
20-
CNavGroup,
21-
CNavGroupItems,
22-
CNavItem,
23-
CNavLink,
24-
CNavTitle,
25-
} from '@coreui/react/src/index'
26-
279
## Supported content
2810

2911
Sidebar come with built-in support for a handful of sub-components. Choose from the following as needed:

‎packages/docs/content/components/table/index.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/components/table/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
CTableHead,
1717
CTableHeaderCell,
1818
CTableRow,
19-
} from '@coreui/react/src/index'
19+
} from '@coreui/react'
2020

2121
## How to use React Table Component
2222

‎packages/docs/content/forms/checks-radios.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/forms/checks-radios.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
CFormLabel,
1515
CFormSwitch,
1616
CFormText,
17-
} from '@coreui/react/src/index'
17+
} from '@coreui/react'
1818

1919
## Approach
2020

‎packages/docs/content/forms/form-control.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/forms/form-control.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
CFormTextarea,
1515
CCol,
1616
CRow
17-
} from '@coreui/react/src/index'
17+
} from '@coreui/react'
1818

1919
## Example
2020

‎packages/docs/content/forms/overview.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/forms/overview.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
CFormText,
1717
CCol,
1818
CRow,
19-
} from '@coreui/react/src/index'
19+
} from '@coreui/react'
2020

2121
## Overview
2222

‎packages/docs/content/layout/columns.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/layout/columns.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ menu: Layout
66
route: '/layout/columns'
77
---
88

9-
import { CCol, CContainer, CRow } from '@coreui/react/src/index'
9+
import { CCol, CContainer, CRow } from '@coreui/react'
1010

1111
## How they work
1212

‎packages/docs/content/layout/containers.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/layout/containers.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ menu: Layout
66
route: "/layout/containers"
77
---
88

9-
import { CCol, CContainer, CRow } from '@coreui/react/src/index'
9+
import { CCol, CContainer, CRow } from '@coreui/react'
1010

1111
## How they work
1212

‎packages/docs/content/layout/grid.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/layout/grid.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ menu: Layout
66
route: "/layout/grid"
77
---
88

9-
import { CCol, CContainer, CRow } from '@coreui/react/src/index'
9+
import { CCol, CContainer, CRow } from '@coreui/react'
1010

1111
## Example
1212

‎packages/docs/content/layout/gutters.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/layout/gutters.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ menu: Layout
66
route: "/layout/gutters"
77
---
88

9-
import { CCol, CContainer, CRow } from '@coreui/react/src/index'
9+
import { CCol, CContainer, CRow } from '@coreui/react'
1010

1111
## How they work
1212

‎packages/docs/content/templates/admin-dashboard.mdx

Copy file name to clipboardExpand all lines: packages/docs/content/templates/admin-dashboard.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
CImage,
1616
CLink,
1717
CRow
18-
} from '@coreui/react/src/index'
18+
} from '@coreui/react'
1919

2020
## React Admin & Dashboard Templates
2121

‎packages/docs/gatsby-node.mjs

Copy file name to clipboardExpand all lines: packages/docs/gatsby-node.mjs
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const onCreateWebpackConfig = ({ actions }) => {
1515
setWebpackConfig({
1616
resolve: {
1717
alias: {
18+
'@coreui/react': resolve(__dirname, '..', 'coreui-react/src/index.ts'),
1819
'@example': examplePaths, // Adds all paths to a single alias
1920
},
2021
},

‎packages/docs/src/components/ExampleSnippet.tsx

Copy file name to clipboardExpand all lines: packages/docs/src/components/ExampleSnippet.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { FC, lazy, Suspense, useEffect, useMemo, useState } from 'react'
22
import { Highlight, Language } from 'prism-react-renderer'
33
import CIcon from '@coreui/icons-react'
44
import { cibCodesandbox, cilCheckAlt, cilCopy } from '@coreui/icons'
5-
import { CNav, CNavLink, CTooltip, useClipboard } from '@coreui/react/src/'
5+
import { CNav, CNavLink, CTooltip, useClipboard } from '@coreui/react'
66
import { openStackBlitzProject } from '../utils/stackblitz'
77
import { openCodeSandboxProject } from '../utils/codesandbox'
88

‎packages/docs/src/components/ExampleSnippetLazy.tsx

Copy file name to clipboardExpand all lines: packages/docs/src/components/ExampleSnippetLazy.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { cibCodesandbox, cilCheckAlt, cilCopy } from '@coreui/icons'
55
import { CNav, CNavLink, CTooltip, useClipboard } from '@coreui/react'
66
import { openStackBlitzProject } from '../utils/stackblitz'
77
import { openCodeSandboxProject } from '../utils/codesandbox'
8-
import { isInViewport } from '@coreui/react/src/utils'
8+
import { isInViewport } from '@coreui/react'
99

1010
interface CodeSnippets {
1111
js?: string

‎packages/docs/src/components/Footer.tsx

Copy file name to clipboardExpand all lines: packages/docs/src/components/Footer.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { FC } from 'react'
22

3-
import { CContainer, CFooter } from '@coreui/react/src/index'
3+
import { CContainer, CFooter } from '@coreui/react'
44

55
// @ts-expect-error json file
66
import pkg from './../../package.json'

‎packages/docs/src/components/Header.tsx

Copy file name to clipboardExpand all lines: packages/docs/src/components/Header.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
CHeaderToggler,
2626
CNavItem,
2727
useColorModes,
28-
} from '@coreui/react/src'
28+
} from '@coreui/react'
2929
import { AppContext } from './../AppContext'
3030

3131
const Header = forwardRef<HTMLDivElement>(({}, ref) => {

‎packages/docs/src/components/Sidebar.tsx

Copy file name to clipboardExpand all lines: packages/docs/src/components/Sidebar.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
CDropdownItem,
99
CSidebar,
1010
CSidebarBrand,
11-
} from '@coreui/react/src'
11+
} from '@coreui/react'
1212
import { SidebarNav } from '.'
1313

1414
import { AppContext } from './../AppContext'

‎packages/docs/src/components/SidebarNav.tsx

Copy file name to clipboardExpand all lines: packages/docs/src/components/SidebarNav.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { ReactNode } from 'react'
22
import { Link } from 'gatsby'
33

4-
import { CBadge, CNavGroup, CNavItem, CNavLink, CSidebarNav } from '@coreui/react/src/index'
4+
import { CBadge, CNavGroup, CNavItem, CNavLink, CSidebarNav } from '@coreui/react'
55
import CIcon from '@coreui/icons-react'
66

77
export type Badge = {

‎packages/docs/src/components/Toc.tsx

Copy file name to clipboardExpand all lines: packages/docs/src/components/Toc.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { CSSProperties, forwardRef, useState } from 'react'
2-
import { CCollapse, CNav } from '@coreui/react/src/index'
2+
import { CCollapse, CNav } from '@coreui/react'
33

44
export type TocItem = {
55
url: string

‎packages/docs/src/pages/404.tsx

Copy file name to clipboardExpand all lines: packages/docs/src/pages/404.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react'
22
import { graphql, useStaticQuery } from 'gatsby'
3-
import { CButton } from '@coreui/react/src/index'
3+
import { CButton } from '@coreui/react'
44

55
import Seo from '../components/Seo'
66

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.