8000 docs: update `@coreui/react` library imports by mrholek · Pull Request #422 · coreui/coreui-react · GitHub
[go: up one dir, main page]

Skip to content

docs: update @coreui/react library imports #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/docs/content/components/close-button/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ route: /components/close-button/
other_frameworks: close-button
---

import { CCloseButton } from '@coreui/react/src/index'

## Example

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`.
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/components/footer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ route: /components/footer
other_frameworks: footer
---

import { CFooter, CLink } from '@coreui/react/src/index'
import { CFooter, CLink } from '@coreui/react'

## Example

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/components/header.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
CHeaderNav,
CHeaderText,
CHeaderToggler,
} from '@coreui/react/src/index'
} from '@coreui/react'

## Supported content

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/components/icon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
CNavLink,
CRow,
CTabContent,
CTabPane } from '@coreui/react/src/index'
CTabPane } from '@coreui/react'
import {CIcon, CIconSvg} from '@coreui/icons-react/src/index'
import { cilList, cilShieldAlt } from '@coreui/icons'
import * as icon from '@coreui/icons';
Expand Down
18 changes: 0 additions & 18 deletions packages/docs/content/components/sidebar/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,6 @@ route: /components/sidebar/
other_frameworks: sidebar
---

import CIcon from '@coreui/icons-react'
import { cilCloudDownload, cilLayers, cilPuzzle, cilSpeedometer } from '@coreui/icons'

import {
CBadge,
CSidebar,
CSidebarBrand,
CSidebarFooter,
CSidebarHeader,
CSidebarNav,
CSidebarToggler,
CNavGroup,
CNavGroupItems,
CNavItem,
CNavLink,
CNavTitle,
} from '@coreui/react/src/index'

## Supported content

Sidebar come with built-in support for a handful of sub-components. Choose from the following as needed:
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/components/table/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
CTableHead,
CTableHeaderCell,
CTableRow,
} from '@coreui/react/src/index'
} from '@coreui/react'

## How to use React Table Component

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/forms/checks-radios.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
CFormLabel,
CFormSwitch,
CFormText,
} from '@coreui/react/src/index'
} from '@coreui/react'

## Approach

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/forms/form-control.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
CFormTextarea,
CCol,
CRow
} from '@coreui/react/src/index'
} from '@coreui/react'

## Example

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/forms/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
CFormText,
CCol,
CRow,
} from '@coreui/react/src/index'
} from '@coreui/react'

## Overview

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/layout/columns.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ menu: Layout
route: '/layout/columns'
---

import { CCol, CContainer, CRow } from '@coreui/react/src/index'
import { CCol, CContainer, CRow } from '@coreui/react'

## How they work

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/layout/containers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ menu: Layout
route: "/layout/containers"
---

import { CCol, CContainer, CRow } from '@coreui/react/src/index'
import { CCol, CContainer, CRow } from '@coreui/react'

## How they work

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/layout/grid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ menu: Layout
route: "/layout/grid"
---

import { CCol, CContainer, CRow } from '@coreui/react/src/index'
import { CCol, CContainer, CRow } from '@coreui/react'

## Example

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/layout/gutters.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ menu: Layout
route: "/layout/gutters"
---

import { CCol, CContainer, CRow } from '@coreui/react/src/index'
import { CCol, CContainer, CRow } from '@coreui/react'

## How they work

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/content/templates/admin-dashboard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
CImage,
CLink,
CRow
} from '@coreui/react/src/index'
} from '@coreui/react'

## React Admin & Dashboard Templates

Expand Down
1 change: 1 addition & 0 deletions packages/docs/gatsby-node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const onCreateWebpackConfig = ({ actions }) => {
setWebpackConfig({
resolve: {
alias: {
'@coreui/react': resolve(__dirname, '..', 'coreui-react/src/index.ts'),
'@example': examplePaths, // Adds all paths to a single alias
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/ExampleSnippet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { FC, lazy, Suspense, useEffect, useMemo, useState } from 'react'
import { Highlight, Language } from 'prism-react-renderer'
import CIcon from '@coreui/icons-react'
import { cibCodesandbox, cilCheckAlt, cilCopy } from '@coreui/icons'
import { CNav, CNavLink, CTooltip, useClipboard } from '@coreui/react/src/'
import { CNav, CNavLink, CTooltip, useClipboard } from '@coreui/react'
import { openStackBlitzProject } from '../utils/stackblitz'
import { openCodeSandboxProject } from '../utils/codesandbox'

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/ExampleSnippetLazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { cibCodesandbox, cilCheckAlt, cilCopy } from '@coreui/icons'
import { CNav, CNavLink, CTooltip, useClipboard } from '@coreui/react'
import { openStackBlitzProject } from '../utils/stackblitz'
import { openCodeSandboxProject } from '../utils/codesandbox'
import { isInViewport } from '@coreui/react/src/utils'
import { isInViewport } from '@coreui/react'

interface CodeSnippets {
js?: string
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC } from 'react'

import { CContainer, CFooter } from '@coreui/react/src/index'
import { CContainer, CFooter } from '@coreui/react'

// @ts-expect-error json file
import pkg from './../../package.json'
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
CHeaderToggler,
CNavItem,
useColorModes,
} from '@coreui/react/src'
} from '@coreui/react'
import { AppContext } from './../AppContext'

const Header = forwardRef<HTMLDivElement>(({}, ref) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
CDropdownItem,
CSidebar,
CSidebarBrand,
} from '@coreui/react/src'
} from '@coreui/react'
import { SidebarNav } from '.'

import { AppContext } from './../AppContext'
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/SidebarNav.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ReactNode } from 'react'
import { Link } from 'gatsby'

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

export type Badge = {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/Toc.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { CSSProperties, forwardRef, useState } from 'react'
import { CCollapse, CNav } from '@coreui/react/src/index'
import { CCollapse, CNav } from '@coreui/react'

export type TocItem = {
url: string
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react'
import { graphql, useStaticQuery } from 'gatsby'
import { CButton } from '@coreui/react/src/index'
import { CButton } from '@coreui/react'

import Seo from '../components/Seo'

Expand Down
0