From 8c1ad991ee878c9829f4aed596035af227c81850 Mon Sep 17 00:00:00 2001 From: mrholek Date: Thu, 28 Mar 2024 12:24:31 +0100 Subject: [PATCH 1/2] chore: update dependencies and devDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @coreui/chartjs ^4.0.0-rc.0 → ^4.0.0 @coreui/coreui ^5.0.0-rc.3 → ^5.0.0 @coreui/react-chartjs ^3.0.0-rc.0 → ^3.0.0 @types/react 18.2.67 → 18.2.73 @typescript-eslint/eslint-plugin ^7.3.1 → ^7.4.0 @typescript-eslint/parser ^7.3.1 → ^7.4.0 rollup ^4.13.0 → ^4.13.1 --- package.json | 4 ++-- packages/coreui-icons-react | 2 +- packages/coreui-react-chartjs | 2 +- packages/coreui-react/package.json | 6 +++--- packages/docs/package.json | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index e331742e..00387841 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "test:update": "npm-run-all charts:test:update icons:test:update lib:test:update" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^7.3.1", - "@typescript-eslint/parser": "^7.3.1", + "@typescript-eslint/eslint-plugin": "^7.4.0", + "@typescript-eslint/parser": "^7.4.0", "eslint": "8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", diff --git a/packages/coreui-icons-react b/packages/coreui-icons-react index f2a34f48..bcbe37d7 160000 --- a/packages/coreui-icons-react +++ b/packages/coreui-icons-react @@ -1 +1 @@ -Subproject commit f2a34f48c9135bd15fe0588a905b5a76f121faab +Subproject commit bcbe37d75c46bfa18e8c1b3c903d60fe8f0b1222 diff --git a/packages/coreui-react-chartjs b/packages/coreui-react-chartjs index 1d65312f..c6077716 160000 --- a/packages/coreui-react-chartjs +++ b/packages/coreui-react-chartjs @@ -1 +1 @@ -Subproject commit 1d65312f25e85def26557a7a508de387873a1179 +Subproject commit c6077716da130a1ba8f97346f2d98c60ea2cca3e diff --git a/packages/coreui-react/package.json b/packages/coreui-react/package.json index 1753f000..99a538b4 100644 --- a/packages/coreui-react/package.json +++ b/packages/coreui-react/package.json @@ -41,7 +41,7 @@ "test:update": "jest --coverage --updateSnapshot" }, "dependencies": { - "@coreui/coreui": "^5.0.0-rc.3", + "@coreui/coreui": "^5.0.0", "@popperjs/core": "^2.11.8", "prop-types": "^15.8.1" }, @@ -52,7 +52,7 @@ "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^14.2.2", "@types/jest": "^29.5.12", - "@types/react": "18.2.67", + "@types/react": "18.2.73", "@types/react-dom": "^18.2.22", "@types/react-transition-group": "^4.4.10", "classnames": "^2.5.1", @@ -62,7 +62,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-transition-group": "^4.4.5", - "rollup": "^4.13.0", + "rollup": "^4.13.1", "ts-jest": "^29.1.2", "tslib": "^2.6.2", "typescript": "^5.4.3" diff --git a/packages/docs/package.json b/packages/docs/package.json index df3cbf53..d2a2fa9b 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -24,11 +24,11 @@ "clean": "gatsby clean" }, "dependencies": { - "@coreui/chartjs": "^4.0.0-rc.0", - "@coreui/coreui": "^5.0.0-rc.3", + "@coreui/chartjs": "^4.0.0", + "@coreui/coreui": "^5.0.0", "@coreui/icons": "^3.0.1", "@coreui/icons-react": "^2.2.1", - "@coreui/react-chartjs": "^3.0.0-rc.0", + "@coreui/react-chartjs": "^3.0.0", "@coreui/utils": "^2.0.2", "@docsearch/css": "^3.6.0", "@mdx-js/mdx": "^2.3.0", From 1888df5246e3a53f4fd43f383c3709fd24f24356 Mon Sep 17 00:00:00 2001 From: mrholek Date: Thu, 28 Mar 2024 12:49:28 +0100 Subject: [PATCH 2/2] release: v5.0.0 --- README.md | 2 +- lerna.json | 2 +- packages/coreui-react/README.md | 2 +- packages/coreui-react/package.json | 2 +- packages/coreui-react/src/components/badge/CBadge.tsx | 2 +- packages/coreui-react/src/components/card/CCard.tsx | 2 +- .../coreui-react/src/components/dropdown/CDropdownToggle.tsx | 2 +- packages/coreui-react/src/components/nav/CNavGroup.tsx | 2 +- packages/coreui-react/src/components/nav/CNavGroupItems.tsx | 2 +- packages/coreui-react/src/components/nav/CNavItem.tsx | 2 +- packages/coreui-react/src/components/sidebar/CSidebarBrand.tsx | 2 +- packages/coreui-react/src/components/sidebar/CSidebarNav.tsx | 2 +- packages/docs/content/api/CBadge.api.mdx | 2 +- packages/docs/content/api/CCard.api.mdx | 2 +- packages/docs/content/api/CDropdownToggle.api.mdx | 2 +- packages/docs/content/api/CNavGroup.api.mdx | 2 +- packages/docs/content/api/CNavGroupItems.api.mdx | 2 +- packages/docs/content/api/CNavItem.api.mdx | 2 +- packages/docs/content/api/CSidebarBrand.api.mdx | 2 +- packages/docs/content/api/CSidebarNav.api.mdx | 2 +- packages/docs/package.json | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 713850cb..3a12a807 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Several quick start options are available: -- [Download the latest release](https://github.com/coreui/coreui-react/archive/v5.0.0-rc.3.zip) +- [Download the latest release](https://github.com/coreui/coreui-react/archive/v5.0.0.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` diff --git a/lerna.json b/lerna.json index 2a068bcd..194343e3 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "npmClient": "yarn", "packages": ["packages/*"], - "version": "5.0.0-rc.3", + "version": "5.0.0", "$schema": "node_modules/lerna/schemas/lerna-schema.json" } diff --git a/packages/coreui-react/README.md b/packages/coreui-react/README.md index 32365b52..9b4f7007 100644 --- a/packages/coreui-react/README.md +++ b/packages/coreui-react/README.md @@ -46,7 +46,7 @@ Several quick start options are available: -- [Download the latest release](https://github.com/coreui/coreui-react/archive/v5.0.0-rc.3.zip) +- [Download the latest release](https://github.com/coreui/coreui-react/archive/v5.0.0.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` diff --git a/packages/coreui-react/package.json b/packages/coreui-react/package.json index 99a538b4..90f90185 100644 --- a/packages/coreui-react/package.json +++ b/packages/coreui-react/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/react", - "version": "5.0.0-rc.3", + "version": "5.0.0", "description": "UI Components Library for React.js", "keywords": [ "react", diff --git a/packages/coreui-react/src/components/badge/CBadge.tsx b/packages/coreui-react/src/components/badge/CBadge.tsx index a38a8aeb..c874f0e0 100644 --- a/packages/coreui-react/src/components/badge/CBadge.tsx +++ b/packages/coreui-react/src/components/badge/CBadge.tsx @@ -39,7 +39,7 @@ export interface CBadgeProps extends HTMLAttributes { * Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility. * * @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string - * @since 5.0.0-rc.3 + * @since 5.0.0 */ textBgColor?: Colors } diff --git a/packages/coreui-react/src/components/dropdown/CDropdownToggle.tsx b/packages/coreui-react/src/components/dropdown/CDropdownToggle.tsx index e3abc6ad..68c1cdef 100644 --- a/packages/coreui-react/src/components/dropdown/CDropdownToggle.tsx +++ b/packages/coreui-react/src/components/dropdown/CDropdownToggle.tsx @@ -21,7 +21,7 @@ export interface CDropdownToggleProps extends Omit { /** * If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button. * - * @since v5.0.0-rc.3 + * @since v5.0.0 */ navLink?: boolean /** diff --git a/packages/coreui-react/src/components/nav/CNavGroup.tsx b/packages/coreui-react/src/components/nav/CNavGroup.tsx index b94b8e26..776bf104 100644 --- a/packages/coreui-react/src/components/nav/CNavGroup.tsx +++ b/packages/coreui-react/src/components/nav/CNavGroup.tsx @@ -22,7 +22,7 @@ export interface CNavGroupProps extends HTMLAttributes { /** * Component used for the root node. Either a string to use a HTML element or a component. * - * @since 5.0.0-rc.3 + * @since 5.0.0 */ as?: ElementType } diff --git a/packages/coreui-react/src/components/sidebar/CSidebarBrand.tsx b/packages/coreui-react/src/components/sidebar/CSidebarBrand.tsx index 9f9e76e7..597818cd 100644 --- a/packages/coreui-react/src/components/sidebar/CSidebarBrand.tsx +++ b/packages/coreui-react/src/components/sidebar/CSidebarBrand.tsx @@ -8,7 +8,7 @@ export interface CSidebarBrandProps extends HTMLAttributes { /** * Component used for the root node. Either a string to use a HTML element or a component. * - * @since 5.0.0-rc.3 + * @since 5.0.0 */ as?: ElementType /** diff --git a/packages/docs/content/api/CBadge.api.mdx b/packages/docs/content/api/CBadge.api.mdx index 286a33c2..b8231272 100644 --- a/packages/docs/content/api/CBadge.api.mdx +++ b/packages/docs/content/api/CBadge.api.mdx @@ -13,5 +13,5 @@ import CBadge from '@coreui/react/src/components/badge/CBadge' | **position** | Position badge in one of the corners of a link or button. | `'top-start'` \| `'top-end'` \| `'bottom-end'` \| `'bottom-start'` | - | | **shape** | Select the shape of the component. | `'rounded'` \| `'rounded-top'` \| `'rounded-end'` \| `'rounded-bottom'` \| `'rounded-start'` \| `'rounded-circle'` \| `'rounded-pill'` \| `'rounded-0'` \| `'rounded-1'` \| `'rounded-2'` \| `'rounded-3'` \| `string` | - | | **size** | Size the component small. | `'sm'` | - | -| **textBgColor** **_5.0.0-rc.3+_** | Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility. | `'primary'` \| `'secondary'` \| `'success'` \| `'danger'` \| `'warning'` \| `'info'` \| `'dark'` \| `'light'` \| `string` | - | +| **textBgColor** **_5.0.0+_** | Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility. | `'primary'` \| `'secondary'` \| `'success'` \| `'danger'` \| `'warning'` \| `'info'` \| `'dark'` \| `'light'` \| `string` | - | | **textColor** | Sets the text color of the component to one of CoreUI’s themed colors. | `'primary'` \| `'secondary'` \| `'success'` \| `'danger'` \| `'warning'` \| `'info'` \| `'dark'` \| `'light'` \| `'primary-emphasis'` \| `'secondary-emphasis'` \| `'success-emphasis'` \| `'danger-emphasis'` \| `'warning-emphasis'` \| `'info-emphasis'` \| `'light-emphasis'` \| `'body'` \| `'body-emphasis'` \| `'body-secondary'` \| `'body-tertiary'` \| `'black'` \| `'black-50'` \| `'white'` \| `'white-50'` \| `string` | - | diff --git a/packages/docs/content/api/CCard.api.mdx b/packages/docs/content/api/CCard.api.mdx index 1478ea52..ea056e72 100644 --- a/packages/docs/content/api/CCard.api.mdx +++ b/packages/docs/content/api/CCard.api.mdx @@ -9,5 +9,5 @@ import CCard from '@coreui/react/src/components/card/CCard' | --- | --- | --- | --- | | **className** | A string of all className you want applied to the base component. | `string` | - | | **color** | Sets the color context of the component to one of CoreUI’s themed colors. | `'primary'` \| `'secondary'` \| `'success'` \| `'danger'` \| `'warning'` \| `'info'` \| `'dark'` \| `'light'` \| `string` | - | -| **textBgColor** **_5.0.0-rc.3+_** | Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility. | `'primary'` \| `'secondary'` \| `'success'` \| `'danger'` \| `'warning'` \| `'info'` \| `'dark'` \| `'light'` \| `string` | - | +| **textBgColor** **_5.0.0+_** | Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility. | `'primary'` \| `'secondary'` \| `'success'` \| `'danger'` \| `'warning'` \| `'info'` \| `'dark'` \| `'light'` \| `string` | - | | **textColor** | Sets the text color context of the component to one of CoreUI’s themed colors. | `'primary'` \| `'secondary'` \| `'success'` \| `'danger'` \| `'warning'` \| `'info'` \| `'dark'` \| `'light'` \| `'primary-emphasis'` \| `'secondary-emphasis'` \| `'success-emphasis'` \| `'danger-emphasis'` \| `'warning-emphasis'` \| `'info-emphasis'` \| `'light-emphasis'` \| `'body'` \| `'body-emphasis'` \| `'body-secondary'` \| `'body-tertiary'` \| `'black'` \| `'black-50'` \| `'white'` \| `'white-50'` \| `string` | - | diff --git a/packages/docs/content/api/CDropdownToggle.api.mdx b/packages/docs/content/api/CDropdownToggle.api.mdx index 1c555290..cdc7d534 100644 --- a/packages/docs/content/api/CDropdownToggle.api.mdx +++ b/packages/docs/content/api/CDropdownToggle.api.mdx @@ -15,7 +15,7 @@ import CDropdownToggle from '@coreui/react/src/components/dropdown/CDropdownTogg | **custom** | Create a custom toggler which accepts any content. | `boolean` | - | | **disabled** | Toggle the disabled state for the component. | `boolean` | - | | **href** | The href attribute specifies the URL of the page the link goes to. | `string` | - | -| **navLink** **_v5.0.0-rc.3+_** | If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button. | `boolean` | true | +| **navLink** **_v5.0.0+_** | If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button. | `boolean` | true | | **role** | The role attribute describes the role of an element in programs that can make use of it, such as screen readers or magnifiers. | `string` | - | | **shape** | Select the shape of the component. | `'rounded'` \| `'rounded-top'` \| `'rounded-end'` \| `'rounded-bottom'` \| `'rounded-start'` \| `'rounded-circle'` \| `'rounded-pill'` \| `'rounded-0'` \| `'rounded-1'` \| `'rounded-2'` \| `'rounded-3'` \| `string` | - | | **size** | Size the component small or large. | `'sm'` \| `'lg'` | - | diff --git a/packages/docs/content/api/CNavGroup.api.mdx b/packages/docs/content/api/CNavGroup.api.mdx index 348eeed5..31413677 100644 --- a/packages/docs/content/api/CNavGroup.api.mdx +++ b/packages/docs/content/api/CNavGroup.api.mdx @@ -7,7 +7,7 @@ import CNavGroup from '@coreui/react/src/components/nav/CNavGroup' | Property | Description | Type | Default | | --- | --- | --- | --- | -| **as** **_5.0.0-rc.3+_** | Component used for the root node. Either a string to use a HTML element or a component. | `(ElementType & 'symbol')` \| `(ElementType & 'object')` \| `(ElementType & 'li')` \| `(ElementType & 'slot')` \| `(ElementType & 'style')` \| `... 174 more ...` \| `(ElementType & FunctionComponent<...>)` | - | +| **as** **_5.0.0+_** | Component used for the root node. Either a string to use a HTML element or a component. | `(ElementType & 'symbol')` \| `(ElementType & 'object')` \| `(ElementType & 'li')` \| `(ElementType & 'slot')` \| `(ElementType & 'style')` \| `... 174 more ...` \| `(ElementType & FunctionComponent<...>)` | - | | **className** | A string of all className you want applied to the component. | `string` | - | | **compact** | Make nav group more compact by cutting all `padding` in half. | `boolean` | - | | **toggler** | Set group toggler label. | `ReactNode` | - | diff --git a/packages/docs/content/api/CNavGroupItems.api.mdx b/packages/docs/content/api/CNavGroupItems.api.mdx index f70340b1..467622bc 100644 --- a/packages/docs/content/api/CNavGroupItems.api.mdx +++ b/packages/docs/content/api/CNavGroupItems.api.mdx @@ -7,5 +7,5 @@ import CNavGroupItems from '@coreui/react/src/components/nav/CNavGroupItems' | Property | Description | Type | Default | | --- | --- | --- | --- | -| **as** **_5.0.0-rc.3+_** | Component used for the root node. Either a string to use a HTML element or a component. | `(ElementType & 'symbol')` \| `(ElementType & 'object')` \| `(ElementType & 'ul')` \| `(ElementType & 'slot')` \| `(ElementType & 'style')` \| `... 174 more ...` \| `(ElementType & FunctionComponent<...>)` | - | +| **as** **_5.0.0+_** | Component used for the root node. Either a string to use a HTML element or a component. | `(ElementType & 'symbol')` \| `(ElementType & 'object')` \| `(ElementType & 'ul')` \| `(ElementType & 'slot')` \| `(ElementType & 'style')` \| `... 174 more ...` \| `(ElementType & FunctionComponent<...>)` | - | | **className** | A string of all className you want applied to the component. | `string` | - | diff --git a/packages/docs/content/api/CNavItem.api.mdx b/packages/docs/content/api/CNavItem.api.mdx index fccc32e1..426df0b1 100644 --- a/packages/docs/content/api/CNavItem.api.mdx +++ b/packages/docs/content/api/CNavItem.api.mdx @@ -8,7 +8,7 @@ import CNavItem from '@coreui/react/src/components/nav/CNavItem' | Property | Description | Type | Default | | --- | --- | --- | --- | | **active** | Toggle the active state for the component. | `boolean` | - | -| **as** **_5.0.0-rc.3+_** | Component used for the root node. Either a string to use a HTML element or a component. | `(ElementType & 'symbol')` \| `(ElementType & 'object')` \| `(ElementType & 'li')` \| `(ElementType & 'cite')` \| `(ElementType & 'data')` \| `... 174 more ...` \| `(ElementType & FunctionComponent<...>)` | - | +| **as** **_5.0.0+_** | Component used for the root node. Either a string to use a HTML element or a component. | `(ElementType & 'symbol')` \| `(ElementType & 'object')` \| `(ElementType & 'li')` \| `(ElementType & 'cite')` \| `(ElementType & 'data')` \| `... 174 more ...` \| `(ElementType & FunctionComponent<...>)` | - | | **className** | A string of all className you want applied to the component. | `string` | - | | **disabled** | Toggle the disabled state for the component. | `boolean` | - | | **href** | The href attribute specifies the URL of the page the link goes to. | `string` | - | diff --git a/packages/docs/content/api/CSidebarBrand.api.mdx b/packages/docs/content/api/CSidebarBrand.api.mdx index 13402f46..bd665b8c 100644 --- a/packages/docs/content/api/CSidebarBrand.api.mdx +++ b/packages/docs/content/api/CSidebarBrand.api.mdx @@ -7,5 +7,5 @@ import CSidebarBrand from '@coreui/react/src/components/sidebar/CSidebarBrand' | Property | Description | Type | Default | | --- | --- | --- | --- | -| **as** **_5.0.0-rc.3+_** | Component used for the root node. Either a string to use a HTML element or a component. | `(ElementType & 'symbol')` \| `(ElementType & 'object')` \| `(ElementType & 'a')` \| `(ElementType & 'slot')` \| `(ElementType & 'style')` \| `... 174 more ...` \| `(ElementType & FunctionComponent<...>)` | - | +| **as** **_5.0.0+_** | Component used for the root node. Either a string to use a HTML element or a component. | `(ElementType & 'symbol')` \| `(ElementType & 'object')` \| `(ElementType & 'a')` \| `(ElementType & 'slot')` \| `(ElementType & 'style')` \| `... 174 more ...` \| `(ElementType & FunctionComponent<...>)` | - | | **className** | A string of all className you want applied to the component. | `string` | - | diff --git a/packages/docs/content/api/CSidebarNav.api.mdx b/packages/docs/content/api/CSidebarNav.api.mdx index db24a79e..52cc8df7 100644 --- a/packages/docs/content/api/CSidebarNav.api.mdx +++ b/packages/docs/content/api/CSidebarNav.api.mdx @@ -7,5 +7,5 @@ import CSidebarNav from '@coreui/react/src/components/sidebar/CSidebarNav' | Property | Description | Type | Default | | --- | --- | --- | --- | -| **as** **_5.0.0-rc.3+_** | Component used for the root node. Either a string to use a HTML element or a component. | `(ElementType & 'symbol')` \| `(ElementType & 'object')` \| `(ElementType & 'ul')` \| `(ElementType & 'slot')` \| `(ElementType & 'style')` \| `... 174 more ...` \| `(ElementType & FunctionComponent<...>)` | - | +| **as** **_5.0.0+_** | Component used for the root node. Either a string to use a HTML element or a component. | `(ElementType & 'symbol')` \| `(ElementType & 'object')` \| `(ElementType & 'ul')` \| `(ElementType & 'slot')` \| `(ElementType & 'style')` \| `... 174 more ...` \| `(ElementType & FunctionComponent<...>)` | - | | **className** | A string of all className you want applied to the component. | `string` | - | diff --git a/packages/docs/package.json b/packages/docs/package.json index d2a2fa9b..e8b587d9 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/react-docs", - "version": "5.0.0-rc.3", + "version": "5.0.0", "private": true, "description": "", "homepage": "https://coreui.io/react/",