Skip to content

Commit 7cd4900

Browse files
committed
chore: change Shared folder name to utils
1 parent 54dc1c6 commit 7cd4900

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+46
-46
lines changed

src/CBadge.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55
import CLink from './CLink'
66

77
//component - CoreUI / CBadge

src/CBrand.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55
import CLink from './CLink'
66

77
//component - CoreUI / CBrand

src/CButton.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55
import CLink from './CLink'
66
//component - CoreUI / CButton
77

src/CCard.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CCard
77

src/CCardBody.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55
import { sharedPropTypes } from './CCard'
66
//component - CoreUI / CCardBody
77

src/CCardFooter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55
import { sharedPropTypes } from './CCard.js'
66

77
//component - CoreUI / CCardFooter

src/CCardGroup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import {tagPropType} from './Shared/helper.js'
4+
import {tagPropType} from './utils/helper.js'
55

66
//component - CoreUI / CCardGroup
77

src/CCardHeader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55
import { sharedPropTypes } from './CCard'
66

77
//component - CoreUI / CCardHeader

src/CCardImgOverlay.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './Shared/helper.js';
4+
import {tagPropType} from './utils/helper.js';
55

66
//component - CoreUI / CCardImgOverlay
77

src/CCardSubtitle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './Shared/helper.js';
4+
import {tagPropType} from './utils/helper.js';
55

66
//component - CoreUI / CCardSubtitle
77

src/CCardText.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './Shared/helper.js';
4+
import {tagPropType} from './utils/helper.js';
55

66
//component - CoreUI / CCardText
77

src/CCardTitle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './Shared/helper.js';
4+
import {tagPropType} from './utils/helper.js';
55

66
//component - CoreUI / CCardTitle
77

src/CCol.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './Shared/helper.js';
4+
import {tagPropType} from './utils/helper.js';
55

66
const colWidths = ['xs', 'sm', 'md', 'lg', 'xl'];
77
const stringOrNumberProp = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);

src/CCollapse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, {useState} from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
44
import { pickByKeys } from '@coreui/utils/src'
5-
import { TransitionPropTypeKeys } from './Shared/helper.js'
5+
import { TransitionPropTypeKeys } from './utils/helper.js'
66
import { Transition } from 'react-transition-group'
77

88
const transitionStatusToClassHash = {

src/CContainer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './Shared/helper.js';
4+
import {tagPropType} from './utils/helper.js';
55

66
//component - CoreUI / CContainer
77

src/CDropdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
export const Context = React.createContext({})
77

src/CDropdownItem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useContext } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55
import { Context } from './CDropdown'
66
import CLink from './CLink'
77

src/CDropdownToggle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useContext, useEffect } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55
import CButton from './CButton'
66
import CLink from './CLink'
77
import { Context } from './CDropdown'

src/CEmbed.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CEmbed
77

src/CEmbedItem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CEmbedItem
77

src/CFade.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
44
import { pickByKeys } from '@coreui/utils/src'
5-
import { TransitionPropTypeKeys, tagPropType } from './Shared/helper.js'
5+
import { TransitionPropTypeKeys, tagPropType } from './utils/helper.js'
66
import { Transition } from 'react-transition-group'
77

88
//component - CoreUI / CFade

src/CForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './Shared/helper.js';
4+
import {tagPropType} from './utils/helper.js';
55

66
//component - CoreUI / CForm
77

src/CFormText.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CFormText
77
const CFormText = props => {

src/CImg.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CImg
77
const CImg = props => {

src/CInputGroupText.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CInputGroupText
77
const CInputGroupText = props => {

src/CJumbotron.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './Shared/helper.js';
4+
import {tagPropType} from './utils/helper.js';
55

66
//component - CoreUI / CJumbotron
77

src/CLabel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55
import CCol from './CCol'
66

77
//component - CoreUI / CLabel

src/CListGroup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import {tagPropType} from './Shared/helper.js'
4+
import {tagPropType} from './utils/helper.js'
55

66
//component - CoreUI / CListGroup
77

src/CListGroupItem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55
import CLink from './CLink'
66

77
//component - CoreUI / CListGroupItem

src/CListGroupItemHeading.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CListGroupItemHeading
77
const CListGroupItemHeading = props => {

src/CListGroupItemText.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CListGroupItemText
77
const CListGroupItemText = props => {

src/CModalBody.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './Shared/helper.js';
4+
import {tagPropType} from './utils/helper.js';
55

66
//component - CoreUI / CModalBody
77

src/CModalFooter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType} from './Shared/helper.js';
4+
import {tagPropType} from './utils/helper.js';
55

66
//component - CoreUI / CModalFooter
77

src/CModalHeader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useContext } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55
import { Context } from './CModal'
66
import CButtonClose from './CButtonClose'
77
//component - CoreUI / CModalHeader

src/CModalTitle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CModalTitle
77
const CModalTitle = props => {

src/CNav.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CNav
77

src/CNavItem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CNavItem
77

src/CNavbar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CNavbar
77

src/CNavbarNav.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CNavbarNav
77

src/CNavbarText.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CNavbarText
77

src/CPortal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// import {useEffect, useRef} from 'react';
22
// import ReactDOM from 'react-dom';
33
// import PropTypes from 'prop-types';
4-
// import {canUseDOM} from './Shared/helper.js';
4+
// import {canUseDOM} from './utils/helper.js';
55

66
// //component - CoreUI / CPortal
77

src/CRow.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CRow
77
const CRow = props => {

src/CSpinner.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CSpinner
77

src/CSubheader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4-
import { tagPropType } from './Shared/helper.js'
4+
import { tagPropType } from './utils/helper.js'
55

66
//component - CoreUI / CSubheader
77
const CSubheader = props => {

0 commit comments

Comments
 (0)