Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[pull] main from coreui:main#19

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
pull wants to merge63 commits intocode:main
base:main
Choose a base branch
Loading
fromcoreui:main
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
63 commits
Select commitHold 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
a2d3eb5
fix(CDropdown): prevent unnecessary re-rendering
mrholekJul 6, 2025
5688b61
refactor(CDropdown): optimize menu visibility toggling
mrholekJul 12, 2025
a6d3bb5
chore: update dependencies and devDependencies
mrholekJul 12, 2025
1969a64
release: v5.7.1
mrholekJul 13, 2025
44a6c98
docs: update schema markup
mrholekJul 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions.eslintignore
View file
Open in desktop

This file was deleted.

72 changes: 0 additions & 72 deletions.eslintrc.js
View file
Open in desktop

This file was deleted.

7 changes: 0 additions & 7 deletions.prettierrc.js
View file
Open in desktop

This file was deleted.

2 changes: 1 addition & 1 deletionLICENSE
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c)2024 creativeLabs Łukasz Holeczek
Copyright (c)2025 creativeLabs Łukasz Holeczek

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletionsREADME.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -46,7 +46,7 @@

Several quick start options are available:

- [Download the latest release](https://github.com/coreui/coreui-react/archive/v5.4.1.zip)
- [Download the latest release](https://github.com/coreui/coreui-react/archive/v5.7.1.zip)
- Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/react`
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react`
Expand DownExpand Up@@ -227,4 +227,4 @@ CoreUI is an MIT-licensed open source project and is completely free to use. How

## Copyright and license

Copyright2024 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-react/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
Copyright2025 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-react/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
104 changes: 104 additions & 0 deletionseslint.config.mjs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
import eslint from '@eslint/js'
import tsParser from '@typescript-eslint/parser'
import eslintPluginUnicorn from 'eslint-plugin-unicorn'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
import eslintPluginReact from 'eslint-plugin-react'
import eslintPluginReactHooks from 'eslint-plugin-react-hooks'
import globals from 'globals'
import typescriptEslint from 'typescript-eslint'

export default typescriptEslint.config(
{ ignores: ['**/*.d.ts', '**/coverage', '**/dist', 'eslint.config.mjs'] },
{
extends: [
eslint.configs.recommended,
...typescriptEslint.configs.recommended,
eslintPluginUnicorn.configs['flat/recommended'],
eslintPluginReact.configs.flat.recommended,
eslintPluginReact.configs.flat['jsx-runtime'],
],
plugins: {
'react-hooks': eslintPluginReactHooks,
},
files: ['packages/**/src/**/*.{js,ts,tsx}'],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
parser: tsParser,
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
settings: {
react: {
pragma: 'React',
version: 'detect',
},
},
rules: {
...eslintPluginReactHooks.configs.recommended.rules,
'no-console': 'off',
'no-debugger': 'off',
'unicorn/filename-case': 'off',
'unicorn/no-array-for-each': 'off',
'unicorn/no-null': 'off',
'unicorn/prefer-dom-node-append': 'off',
'unicorn/prefer-export-from': 'off',
'unicorn/prefer-query-selector': 'off',
'unicorn/prevent-abbreviations': 'off',
'vue/require-default-prop': 'off',
},
},
{
files: ['**/*.mjs'],
languageOptions: {
globals: {
...Object.fromEntries(Object.entries(globals.browser).map(([key]) => [key, 'off'])),
...globals.node,
},

ecmaVersion: 5,
sourceType: 'module',
},
},
{
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
languageOptions: {
globals: {
...globals.jest,
},
},
},
{
files: ['packages/docs/build/**'],
languageOptions: {
globals: {
...Object.fromEntries(Object.entries(globals.browser).map(([key]) => [key, 'off'])),
...globals.node,
},

ecmaVersion: 5,
sourceType: 'commonjs',
},
rules: {
'@typescript-eslint/no-var-requires': 'off',
'no-console': 'off',
'unicorn/prefer-module': 'off',
'unicorn/prefer-top-level-await': 'off',
},
},
{
files: ['packages/docs/**'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
'unicorn/prefer-module': 'off',
},
},
eslintPluginPrettierRecommended,
)
2 changes: 1 addition & 1 deletionlerna.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"npmClient": "yarn",
"packages": ["packages/*"],
"version": "5.4.1",
"version": "5.7.1",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
21 changes: 11 additions & 10 deletionspackage.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -22,17 +22,18 @@
"test:update": "npm-run-all charts:test:update icons:test:update lib:test:update"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"eslint": "8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-unicorn": "^56.0.1",
"lerna": "^8.1.9",
"@typescript-eslint/parser": "^8.36.0",
"eslint": "^9.31.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.5.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-unicorn": "^59.0.1",
"globals": "^16.3.0",
"lerna": "^8.2.3",
"npm-run-all": "^4.1.5",
"prettier": "^3.4.2"
"prettier": "^3.6.2",
"typescript-eslint": "^8.36.0"
},
"overrides": {
"gatsby-remark-external-links": {
Expand Down
2 changes: 1 addition & 1 deletionpackages/coreui-react/LICENSE
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c)2024 creativeLabs Łukasz Holeczek
Copyright (c)2025 creativeLabs Łukasz Holeczek

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletionspackages/coreui-react/README.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -46,7 +46,7 @@

Several quick start options are available:

- [Download the latest release](https://github.com/coreui/coreui-react/archive/v5.4.1.zip)
- [Download the latest release](https://github.com/coreui/coreui-react/archive/v5.7.1.zip)
- Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/react`
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react`
Expand DownExpand Up@@ -259,4 +259,4 @@ Thanks to all the backers and sponsors! Support this project by [becoming a back

## Copyright and license

Copyright2024 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-react/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
Copyright2025 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-react/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
24 changes: 13 additions & 11 deletionspackages/coreui-react/package.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@coreui/react",
"version": "5.4.1",
"version": "5.7.1",
"description": "UI Components Library for React.js",
"keywords": [
"react",
Expand DownExpand Up@@ -41,19 +41,21 @@
"test:update": "jest --coverage --updateSnapshot"
},
"dependencies": {
"@coreui/coreui": "^5.2.0",
"@coreui/coreui": "^5.4.1",
"@popperjs/core": "^2.11.8",
"prop-types": "^15.8.1"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-typescript": "^12.1.2",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-typescript": "^12.1.4",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@testing-library/react": "^16.3.0",
"@types/jest": "^29.5.14",
"@types/react": "18.3.17",
"@types/react-dom": "^18.3.5",
"@types/prop-types": "15.7.15",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@types/react-transition-group": "^4.4.12",
"classnames": "^2.5.1",
"cross-env": "^7.0.3",
Expand All@@ -62,10 +64,10 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-transition-group": "^4.4.5",
"rollup": "^4.28.1",
"ts-jest": "^29.2.5",
"rollup": "^4.45.0",
"ts-jest": "^29.4.0",
"tslib": "^2.8.1",
"typescript": "^5.7.2"
"typescript": "^5.8.3"
},
"peerDependencies": {
"react": ">=17",
Expand Down
14 changes: 4 additions & 10 deletionspackages/coreui-react/src/components/accordion/CAccordion.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
import React, {createContext,forwardRef, HTMLAttributes, useState } from 'react'
import React, { forwardRef, HTMLAttributes, useState } from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'

import { CAccordionContext } from './CAccordionContext'

export interface CAccordionProps extends HTMLAttributes<HTMLDivElement> {
/**
* The active item key.
Expand All@@ -21,14 +23,6 @@ export interface CAccordionProps extends HTMLAttributes<HTMLDivElement> {
flush?: boolean
}

export interface CAccordionContextProps {
_activeItemKey?: number | string
alwaysOpen?: boolean
setActiveKey: React.Dispatch<React.SetStateAction<number | string | undefined>>
}

export const CAccordionContext = createContext({} as CAccordionContextProps)

export const CAccordion = forwardRef<HTMLDivElement, CAccordionProps>(
({ children, activeItemKey, alwaysOpen = false, className, flush, ...rest }, ref) => {
const [_activeItemKey, setActiveKey] = useState(activeItemKey)
Expand All@@ -48,8 +42,8 @@ export const CAccordion = forwardRef<HTMLDivElement, CAccordionProps>(
)

CAccordion.propTypes = {
alwaysOpen: PropTypes.bool,
activeItemKey: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
alwaysOpen: PropTypes.bool,
children: PropTypes.node,
className: PropTypes.string,
flush: PropTypes.bool,
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,9 +2,8 @@ import React, { forwardRef, HTMLAttributes, useContext } from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'

import { CAccordionItemContext } from './CAccordionItem'

import { CCollapse } from './../collapse/CCollapse'
import { CAccordionItemContext } from './CAccordionItemContext'

export interface CAccordionBodyProps extends HTMLAttributes<HTMLDivElement> {
/**
Expand All@@ -15,16 +14,16 @@ export interface CAccordionBodyProps extends HTMLAttributes<HTMLDivElement> {

export const CAccordionBody = forwardRef<HTMLDivElement, CAccordionBodyProps>(
({ children, className, ...rest }, ref) => {
const { visible } = useContext(CAccordionItemContext)
const {id,visible } = useContext(CAccordionItemContext)

return (
<CCollapse className="accordion-collapse" visible={visible}>
<CCollapse className="accordion-collapse"id={id}visible={visible}>
<div className={classNames('accordion-body', className)} {...rest} ref={ref}>
{children}
</div>
</CCollapse>
)
},
}
)

CAccordionBody.propTypes = {
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp