Open
Show file tree
Hide file tree
Changes from 1 commit
Show all changes
58 commits
Select commit Hold shift + click to select a range
746377d
docs: improve internal linking
mrholekDec 29, 2024
72ec01f
feat(CSidebar): add 'as' prop to CSidebar
Dec 30, 2024
caa1007
Merge pull request #421 from matt-jb/add-as-prop-to-sidebar
mrholekDec 31, 2024
8d2d46b
docs: update `@coreui/react` library imports
mrholekJan 2, 2025
b14949c
Merge pull request #422 from mrholek/main
mrholekJan 2, 2025
c54a0ab
chore: update dependencies and devDependencies
mrholekJan 2, 2025
36814f6
chore: update dependencies and devDependencies
mrholekJan 2, 2025
c2d2e7d
fix: lock the version of `@types/prop-types` to prevent `children` pr…
mrholekJan 2, 2025
b1ede20
tests: update tests
mrholekJan 3, 2025
e457ffe
fix(CModal): disable emitting the `onClose` event twice
mrholekJan 3, 2025
454be70
Merge pull request #423 from mrholek/main
mrholekJan 3, 2025
cdb4712
chore: clean-up
mrholekJan 3, 2025
3f03770
refactor(useColorModes): replace `window` with `globalThis`
mrholekJan 3, 2025
4bfeee2
Merge pull request #424 from mrholek/main
mrholekJan 3, 2025
d5b9a4d
chore: clean-up
mrholekJan 3, 2025
acceb01
build: update ESLint to v9.x
mrholekJan 8, 2025
3a57192
build: migrate `.prettierrc.js` to `eslint.config.mjs`
mrholekJan 8, 2025
cb1ef1f
Merge pull request #429 from mrholek/main
mrholekJan 8, 2025
7c91c99
feat(CDropdown, CPopover, CTooltip): allow passing custom popper conf…
mrholekJan 28, 2025
161bbd1
fix(CAccordion): add a missing ID attribute to the accordion collapse…
mrholekJan 28, 2025
35276cb
docs: update API documentation
mrholekFeb 6, 2025
58ace1b
fix(useColorModes): replace `globalThis` with `window` for SSR support
mrholekFeb 6, 2025
d2ca48d
chore: update dependencies and devDependencies
mrholekFeb 6, 2025
92609b2
refactor(CDropdown): remove `aria-hidden` to improve component access…
mrholekFeb 6, 2025
9f24e2f
chore: update the current year to 2025
mrholekFeb 7, 2025
be8ae22
release: v5.5.0
mrholekFeb 7, 2025
ef0e750
docs: update content
mrholekFeb 16, 2025
e53f0fe
chore: update dependencies and devDependencies
mrholekFeb 16, 2025
9d74c9c
refactor: migrate to Sass modules
mrholekFeb 16, 2025
d260367
docs: remove double # in links
mrholekApr 16, 2025
bb614f2
docs: update link to features
mrholekApr 16, 2025
25e8ff4
fix(CDropdown): incorrect menu positioning when the toggler is re-ren…
mrholekApr 29, 2025
46c4007
chore: update dependencies and devDependencies
mrholekApr 29, 2025
57b0f90
tests: update tests
mrholekApr 29, 2025
f451d62
refactor: improve typings
mrholekApr 29, 2025
e0f155f
refactor(CTabs): fully implement a controlled/uncontrolled pattern
mrholekApr 29, 2025
d8fd24a
chore: clean-up
mrholekApr 29, 2025
adc116d
refactor(CAccordion): move the context outside the component
mrholekApr 30, 2025
c719c6e
refactor(CToast): move the context outside the component
mrholekApr 30, 2025
b6dc072
refactor(CSidebarNav): move the context outside the component
mrholekApr 30, 2025
ad0ef5e
refactor(CProgress): move the context outside the component
mrholekApr 30, 2025
de2290b
refactor(CCarousel): move the context outside the component
mrholekApr 30, 2025
56e615d
refactor(CModal): move the context outside the component
mrholekApr 30, 2025
08dde3d
refactor(CModal): move the context outside the component
mrholekApr 30, 2025
cb15c39
docs: upadte API documentation
mrholekApr 30, 2025
e1ab484
docs: add "use with Bootstrap"
mrholekMay 1, 2025
4f128a0
docs: update bootstrap styles
mrholekMay 1, 2025
f80bc4a
release: v5.6.0
mrholekMay 1, 2025
fd9f2a8
docs: add withPrefix to urls
mrholekMay 15, 2025
07027d1
docs: update links to API
mrholekMay 15, 2025
0b7cbd8
feat(CButton): add support for unthemed outline and ghost buttons
mrholekMay 19, 2025
1ad29c6
feat(CNav): add enclosed variants
mrholekMay 19, 2025
bee8617
feat(CTabs): add enclosed variants
mrholekMay 19, 2025
3b37bd9
chore: update dependencies and devDependencies
mrholekMay 19, 2025
932d00f
release: v5.7.0
mrholekMay 19, 2025
c727396
refactor(CButton): improve variants handling
mrholekMay 29, 2025
38fc15a
docs: update content
mrholekJun 8, 2025
90d8100
refactor: update tabs component
mrholekJun 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
Previous commit
Next commit
refactor(CProgress): move the context outside the component
  • Loading branch information
@mrholek
mrholek committedApr 30, 2025
commit ad0ef5e89ffa6fbb00e54e3a2f1f9dc079daaca4
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,7 +2,7 @@ import React, { forwardRef, HTMLAttributes, useContext } from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'

import { CProgressStackedContext } from './CProgressStacked'
import { CProgressStackedContext } from './CProgressStackedContext'
import { CProgressBar, CProgressBarProps } from './CProgressBar'

export interface CProgressProps
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,10 +2,11 @@ import React, { forwardRef, HTMLAttributes, useContext } from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'

import { CProgressStackedContext } from './CProgressStacked'
import { colorPropType } from '../../props'
import type { Colors } from '../../types'

import { CProgressStackedContext } from './CProgressStackedContext'

export interface CProgressBarProps extends HTMLAttributes<HTMLDivElement> {
/**
* Use to animate the stripes right to left via CSS3 animations.
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
import React, { createContext, forwardRef, HTMLAttributes } from 'react'
import React, { forwardRef, HTMLAttributes } from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'

import { CProgressStackedContext } from './CProgressStackedContext'

export interface CProgressStackedProps extends HTMLAttributes<HTMLDivElement> {
/**
* A string of all className you want applied to the component.
*/
className?: string
}

export interface CProgressStackedContextProps {
stacked?: boolean
}

export const CProgressStackedContext = createContext({} as CProgressStackedContextProps)

export const CProgressStacked = forwardRef<HTMLDivElement, CProgressStackedProps>(
({ children, className, ...rest }, ref) => {
return (
Expand All@@ -28,7 +24,7 @@ export const CProgressStacked = forwardRef<HTMLDivElement, CProgressStackedProps
</CProgressStackedContext.Provider>
</div>
)
},
}
)

CProgressStacked.propTypes = {
Expand Down
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
import { createContext } from 'react'

export interface CProgressStackedContextProps {
stacked?: boolean
}

export const CProgressStackedContext = createContext({} as CProgressStackedContextProps)