From cfd927cf1b7c9315f5ab244368a909f4893464d2 Mon Sep 17 00:00:00 2001 From: adamviktora <84135613+adamviktora@users.noreply.github.com> Date: Wed, 20 Sep 2023 15:17:09 +0200 Subject: [PATCH 001/103] refactor(SliderStep): use token instead for hardcoded value (#9651) --- packages/react-core/src/components/Slider/SliderStep.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-core/src/components/Slider/SliderStep.tsx b/packages/react-core/src/components/Slider/SliderStep.tsx index 36c184fe8be..81ff4afa54b 100644 --- a/packages/react-core/src/components/Slider/SliderStep.tsx +++ b/packages/react-core/src/components/Slider/SliderStep.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import styles from '@patternfly/react-styles/css/components/Slider/slider'; import { css } from '@patternfly/react-styles'; +import sliderStepLeft from '@patternfly/react-tokens/dist/esm/c_slider__step_Left'; export interface SliderStepProps extends Omit, 'label'> { /** Additional classes added to the slider step. */ @@ -26,7 +27,7 @@ export const SliderStep: React.FunctionComponent = ({ isActive = false, ...props }: SliderStepProps) => { - const style = { '--pf-v5-c-slider__step--Left': `${value}%` } as React.CSSProperties; + const style = { [sliderStepLeft.name]: `${value ? value : sliderStepLeft.value}%` } as React.CSSProperties; return (
{!isTickHidden &&
} From e12b8726b9ebc2fec921b7316a270a9c09decf96 Mon Sep 17 00:00:00 2001 From: Titani Labaj <39532947+tlabaj@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:20:08 -0400 Subject: [PATCH 002/103] feat(Drawer): Added start and end to position props, updated resizing to work with RTL (#9627) * feat(Drawer): Added start and end to position props, updaed resizing to work with RTL * update logic for newsize --- .../src/components/Drawer/Drawer.tsx | 12 +-- .../components/Drawer/DrawerPanelContent.tsx | 98 ++++++++++++++----- .../src/components/Drawer/examples/Drawer.md | 24 ++--- ...anelRight.tsx => DrawerInlinePanelEnd.tsx} | 2 +- ...nelLeft.tsx => DrawerInlinePanelStart.tsx} | 4 +- ...DrawerPanelLeft.tsx => DrawerPanelEnd.tsx} | 4 +- ...werPanelRight.tsx => DrawerPanelStart.tsx} | 4 +- ...leOnRight.tsx => DrawerResizableAtEnd.tsx} | 6 +- ...eOnLeft.tsx => DrawerResizableAtStart.tsx} | 4 +- 9 files changed, 102 insertions(+), 56 deletions(-) rename packages/react-core/src/components/Drawer/examples/{DrawerInlinePanelRight.tsx => DrawerInlinePanelEnd.tsx} (96%) rename packages/react-core/src/components/Drawer/examples/{DrawerInlinePanelLeft.tsx => DrawerInlinePanelStart.tsx} (92%) rename packages/react-core/src/components/Drawer/examples/{DrawerPanelLeft.tsx => DrawerPanelEnd.tsx} (93%) rename packages/react-core/src/components/Drawer/examples/{DrawerPanelRight.tsx => DrawerPanelStart.tsx} (93%) rename packages/react-core/src/components/Drawer/examples/{DrawerResizableOnRight.tsx => DrawerResizableAtEnd.tsx} (91%) rename packages/react-core/src/components/Drawer/examples/{DrawerResizableOnLeft.tsx => DrawerResizableAtStart.tsx} (96%) diff --git a/packages/react-core/src/components/Drawer/Drawer.tsx b/packages/react-core/src/components/Drawer/Drawer.tsx index e7516cb4d78..c8ffba99f3c 100644 --- a/packages/react-core/src/components/Drawer/Drawer.tsx +++ b/packages/react-core/src/components/Drawer/Drawer.tsx @@ -11,7 +11,7 @@ export enum DrawerColorVariant { export interface DrawerProps extends React.HTMLProps { /** Additional classes added to the Drawer. */ className?: string; - /** Content rendered in the left hand panel */ + /** Content rendered in the drawer panel */ children?: React.ReactNode; /** Indicates if the drawer is expanded */ isExpanded?: boolean; @@ -19,8 +19,8 @@ export interface DrawerProps extends React.HTMLProps { isInline?: boolean; /** Indicates if the drawer will always show both content and panel. */ isStatic?: boolean; - /** Position of the drawer panel */ - position?: 'left' | 'right' | 'bottom'; + /** Position of the drawer panel. left and right are deprecated, use start and end instead. */ + position?: 'start' | 'end' | 'bottom' | 'left' | 'right'; /** Callback when drawer panel is expanded after waiting 250ms for animation to complete. */ onExpand?: (event: KeyboardEvent | React.MouseEvent | React.TransitionEvent) => void; } @@ -39,7 +39,7 @@ export const DrawerContext = React.createContext>({ isExpanded: false, isStatic: false, onExpand: () => {}, - position: 'right', + position: 'end', drawerRef: null, drawerContentRef: null, isInline: false @@ -51,7 +51,7 @@ export const Drawer: React.FunctionComponent = ({ isExpanded = false, isInline = false, isStatic = false, - position = 'right', + position = 'end', onExpand = () => {}, ...props }: DrawerProps) => { @@ -66,7 +66,7 @@ export const Drawer: React.FunctionComponent = ({ isExpanded && styles.modifiers.expanded, isInline && styles.modifiers.inline, isStatic && styles.modifiers.static, - position === 'left' && styles.modifiers.panelLeft, + (position === 'left' || position === 'start') && styles.modifiers.panelLeft, position === 'bottom' && styles.modifiers.panelBottom, className )} diff --git a/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx b/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx index 0a98f7c0fd2..a7069c01fa0 100644 --- a/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx +++ b/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx @@ -87,8 +87,8 @@ export const DrawerPanelContent: React.FunctionComponent { let splitterPos; let drawerSize; + const isRTL = window.getComputedStyle(panel.current).getPropertyValue('direction') === 'rtl'; - if (isInline && position === 'right') { - splitterPos = panel.current.getBoundingClientRect().right - splitterRef.current.getBoundingClientRect().left; - drawerSize = drawerRef.current.getBoundingClientRect().right - drawerRef.current.getBoundingClientRect().left; - } else if (isInline && position === 'left') { - splitterPos = splitterRef.current.getBoundingClientRect().right - panel.current.getBoundingClientRect().left; - drawerSize = drawerRef.current.getBoundingClientRect().right - drawerRef.current.getBoundingClientRect().left; - } else if (position === 'right') { - splitterPos = - drawerContentRef.current.getBoundingClientRect().right - splitterRef.current.getBoundingClientRect().left; - drawerSize = - drawerContentRef.current.getBoundingClientRect().right - drawerContentRef.current.getBoundingClientRect().left; - } else if (position === 'left') { - splitterPos = - splitterRef.current.getBoundingClientRect().right - drawerContentRef.current.getBoundingClientRect().left; - drawerSize = - drawerContentRef.current.getBoundingClientRect().right - drawerContentRef.current.getBoundingClientRect().left; + if (isInline && (position === 'end' || position === 'right')) { + if (isRTL) { + splitterPos = panel.current.getBoundingClientRect().left - splitterRef.current.getBoundingClientRect().right; + drawerSize = drawerRef.current.getBoundingClientRect().left - drawerRef.current.getBoundingClientRect().right; + } else { + splitterPos = panel.current.getBoundingClientRect().right - splitterRef.current.getBoundingClientRect().left; + drawerSize = drawerRef.current.getBoundingClientRect().right - drawerRef.current.getBoundingClientRect().left; + } + } else if (isInline && (position === 'start' || position === 'left')) { + if (isRTL) { + splitterPos = splitterRef.current.getBoundingClientRect().left - panel.current.getBoundingClientRect().right; + drawerSize = drawerRef.current.getBoundingClientRect().left - drawerRef.current.getBoundingClientRect().right; + } else { + splitterPos = splitterRef.current.getBoundingClientRect().right - panel.current.getBoundingClientRect().left; + drawerSize = drawerRef.current.getBoundingClientRect().right - drawerRef.current.getBoundingClientRect().left; + } + } else if (position === 'end' || position === 'right') { + if (isRTL) { + splitterPos = + drawerContentRef.current.getBoundingClientRect().left - splitterRef.current.getBoundingClientRect().right; + drawerSize = + drawerContentRef.current.getBoundingClientRect().left - + drawerContentRef.current.getBoundingClientRect().right; + } else { + splitterPos = + drawerContentRef.current.getBoundingClientRect().right - splitterRef.current.getBoundingClientRect().left; + drawerSize = + drawerContentRef.current.getBoundingClientRect().right - + drawerContentRef.current.getBoundingClientRect().left; + } + } else if (position === 'start' || position === 'left') { + if (isRTL) { + splitterPos = + splitterRef.current.getBoundingClientRect().left - drawerContentRef.current.getBoundingClientRect().right; + drawerSize = + drawerContentRef.current.getBoundingClientRect().left - + drawerContentRef.current.getBoundingClientRect().right; + } else { + splitterPos = + splitterRef.current.getBoundingClientRect().right - drawerContentRef.current.getBoundingClientRect().left; + drawerSize = + drawerContentRef.current.getBoundingClientRect().right - + drawerContentRef.current.getBoundingClientRect().left; + } } else if (position === 'bottom') { splitterPos = drawerContentRef.current.getBoundingClientRect().bottom - splitterRef.current.getBoundingClientRect().top; @@ -166,6 +195,8 @@ export const DrawerPanelContent: React.FunctionComponent { + const isRTL = window.getComputedStyle(panel.current).getPropertyValue('direction') === 'rtl'; + e.stopPropagation(); if (!isResizing) { return; @@ -173,17 +204,22 @@ export const DrawerPanelContent: React.FunctionComponent { + const isRTL = window.getComputedStyle(panel.current).getPropertyValue('direction') === 'rtl'; + const key = e.key; if ( key !== 'Escape' && @@ -248,9 +286,17 @@ export const DrawerPanelContent: React.FunctionComponent { +export const DrawerInlinePanelEnd: React.FunctionComponent = () => { const [isExpanded, setIsExpanded] = React.useState(false); const drawerRef = React.useRef(); diff --git a/packages/react-core/src/components/Drawer/examples/DrawerInlinePanelLeft.tsx b/packages/react-core/src/components/Drawer/examples/DrawerInlinePanelStart.tsx similarity index 92% rename from packages/react-core/src/components/Drawer/examples/DrawerInlinePanelLeft.tsx rename to packages/react-core/src/components/Drawer/examples/DrawerInlinePanelStart.tsx index c4ab29674ae..499f1ec7be3 100644 --- a/packages/react-core/src/components/Drawer/examples/DrawerInlinePanelLeft.tsx +++ b/packages/react-core/src/components/Drawer/examples/DrawerInlinePanelStart.tsx @@ -10,7 +10,7 @@ import { Button } from '@patternfly/react-core'; -export const DrawerInlinePanelLeft: React.FunctionComponent = () => { +export const DrawerInlinePanelStart: React.FunctionComponent = () => { const [isExpanded, setIsExpanded] = React.useState(false); const drawerRef = React.useRef(); @@ -47,7 +47,7 @@ export const DrawerInlinePanelLeft: React.FunctionComponent = () => { - + {drawerContent} diff --git a/packages/react-core/src/components/Drawer/examples/DrawerPanelLeft.tsx b/packages/react-core/src/components/Drawer/examples/DrawerPanelEnd.tsx similarity index 93% rename from packages/react-core/src/components/Drawer/examples/DrawerPanelLeft.tsx rename to packages/react-core/src/components/Drawer/examples/DrawerPanelEnd.tsx index 391b1ee953f..657a2bd0830 100644 --- a/packages/react-core/src/components/Drawer/examples/DrawerPanelLeft.tsx +++ b/packages/react-core/src/components/Drawer/examples/DrawerPanelEnd.tsx @@ -10,7 +10,7 @@ import { Button } from '@patternfly/react-core'; -export const DrawerPanelLeft: React.FunctionComponent = () => { +export const DrawerPanelEnd: React.FunctionComponent = () => { const [isExpanded, setIsExpanded] = React.useState(false); const drawerRef = React.useRef(); @@ -47,7 +47,7 @@ export const DrawerPanelLeft: React.FunctionComponent = () => { - + {drawerContent} diff --git a/packages/react-core/src/components/Drawer/examples/DrawerPanelRight.tsx b/packages/react-core/src/components/Drawer/examples/DrawerPanelStart.tsx similarity index 93% rename from packages/react-core/src/components/Drawer/examples/DrawerPanelRight.tsx rename to packages/react-core/src/components/Drawer/examples/DrawerPanelStart.tsx index abb563a9700..df0f1d7802f 100644 --- a/packages/react-core/src/components/Drawer/examples/DrawerPanelRight.tsx +++ b/packages/react-core/src/components/Drawer/examples/DrawerPanelStart.tsx @@ -10,7 +10,7 @@ import { Button } from '@patternfly/react-core'; -export const DrawerPanelRight: React.FunctionComponent = () => { +export const DrawerPanelStart: React.FunctionComponent = () => { const [isExpanded, setIsExpanded] = React.useState(false); const drawerRef = React.useRef(); @@ -47,7 +47,7 @@ export const DrawerPanelRight: React.FunctionComponent = () => { - + {drawerContent} diff --git a/packages/react-core/src/components/Drawer/examples/DrawerResizableOnRight.tsx b/packages/react-core/src/components/Drawer/examples/DrawerResizableAtEnd.tsx similarity index 91% rename from packages/react-core/src/components/Drawer/examples/DrawerResizableOnRight.tsx rename to packages/react-core/src/components/Drawer/examples/DrawerResizableAtEnd.tsx index 59a4cc30851..99ee9bdd29c 100644 --- a/packages/react-core/src/components/Drawer/examples/DrawerResizableOnRight.tsx +++ b/packages/react-core/src/components/Drawer/examples/DrawerResizableAtEnd.tsx @@ -10,7 +10,7 @@ import { Button } from '@patternfly/react-core'; -export const DrawerResizableOnRight: React.FunctionComponent = () => { +export const DrawerResizableAtEnd: React.FunctionComponent = () => { const [isExpanded, setIsExpanded] = React.useState(false); const drawerRef = React.useRef(); @@ -32,7 +32,7 @@ export const DrawerResizableOnRight: React.FunctionComponent = () => { }; const panelContent = ( - + drawer-panel @@ -52,7 +52,7 @@ export const DrawerResizableOnRight: React.FunctionComponent = () => { - + {drawerContent} diff --git a/packages/react-core/src/components/Drawer/examples/DrawerResizableOnLeft.tsx b/packages/react-core/src/components/Drawer/examples/DrawerResizableAtStart.tsx similarity index 96% rename from packages/react-core/src/components/Drawer/examples/DrawerResizableOnLeft.tsx rename to packages/react-core/src/components/Drawer/examples/DrawerResizableAtStart.tsx index 6e11e2525a8..d51cd308ef3 100644 --- a/packages/react-core/src/components/Drawer/examples/DrawerResizableOnLeft.tsx +++ b/packages/react-core/src/components/Drawer/examples/DrawerResizableAtStart.tsx @@ -10,7 +10,7 @@ import { Button } from '@patternfly/react-core'; -export const DrawerResizableOnLeft: React.FunctionComponent = () => { +export const DrawerResizableAtStart: React.FunctionComponent = () => { const [isExpanded, setIsExpanded] = React.useState(false); const drawerRef = React.useRef(); @@ -47,7 +47,7 @@ export const DrawerResizableOnLeft: React.FunctionComponent = () => { - + {drawerContent} From 2953b78290b3baee6cf506303c88dfc5ab9d0329 Mon Sep 17 00:00:00 2001 From: Austin Sullivan Date: Wed, 20 Sep 2023 11:48:17 -0400 Subject: [PATCH 003/103] fix(Modal): Prevent duplicate ids within Modal (#9555) --- .../react-core/src/components/Modal/ModalContent.tsx | 10 ++++------ .../cypress/integration/modal.spec.ts | 8 ++++++++ .../src/components/demos/ModalDemo/ModalDemo.tsx | 3 +++ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/react-core/src/components/Modal/ModalContent.tsx b/packages/react-core/src/components/Modal/ModalContent.tsx index 2ae5a134fce..af6050ee5f3 100644 --- a/packages/react-core/src/components/Modal/ModalContent.tsx +++ b/packages/react-core/src/components/Modal/ModalContent.tsx @@ -148,15 +148,13 @@ export const ModalContent: React.FunctionComponent = ({ const defaultModalBodyAriaRole = bodyAriaLabel ? 'region' : undefined; + const hasNoDescription = !description && !ariaDescribedby; + const id = hasNoDescription ? descriptorId : undefined; + const modalBody = hasNoBodyWrapper ? ( children ) : ( - + {children} ); diff --git a/packages/react-integration/cypress/integration/modal.spec.ts b/packages/react-integration/cypress/integration/modal.spec.ts index d5c08b00dac..e196b3bdc31 100644 --- a/packages/react-integration/cypress/integration/modal.spec.ts +++ b/packages/react-integration/cypress/integration/modal.spec.ts @@ -95,4 +95,12 @@ describe('Modal Test', () => { cy.get('#modal-custom-focus-confirm-button').should('have.focus'); cy.get('#modal-custom-focus-cancel-button').click(); }); + + it("Verify the same id doesn't appear multiple times", () => { + cy.get('#showDescriptionModalButton').click(); + + cy.get('body').find('div#test-modal-id').should('have.length', 1); + + cy.get('.pf-v5-c-modal-box__close > .pf-v5-c-button.pf-m-plain').click(); + }); }); diff --git a/packages/react-integration/demo-app-ts/src/components/demos/ModalDemo/ModalDemo.tsx b/packages/react-integration/demo-app-ts/src/components/demos/ModalDemo/ModalDemo.tsx index 24c94181eca..0bd620d3af0 100644 --- a/packages/react-integration/demo-app-ts/src/components/demos/ModalDemo/ModalDemo.tsx +++ b/packages/react-integration/demo-app-ts/src/components/demos/ModalDemo/ModalDemo.tsx @@ -18,8 +18,10 @@ interface ModalDemoState { isCustomFocusModalOpen: boolean; } +// eslint-disable-next-line patternfly-react/no-anonymous-functions export class ModalDemo extends React.Component, ModalDemoState> { static displayName = 'ModalDemo'; + state = { isModalOpen: false, isModalDescriptionOpen: false, @@ -158,6 +160,7 @@ export class ModalDemo extends React.Component, Confirm ]} + id="test-modal-id" > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo From e27aac2f35e0a8bb16fa5397eb5ef841b3ecc578 Mon Sep 17 00:00:00 2001 From: patternfly-build Date: Wed, 20 Sep 2023 16:11:13 +0000 Subject: [PATCH 004/103] chore(release): releasing packages [ci skip] - @patternfly/react-code-editor@5.1.1-prerelease.14 - @patternfly/react-core@5.1.1-prerelease.14 - @patternfly/react-docs@6.1.1-prerelease.15 - @patternfly/react-integration@5.1.1-prerelease.8 - demo-app-ts@5.1.1-prerelease.13 - @patternfly/react-table@5.1.1-prerelease.14 --- packages/react-code-editor/CHANGELOG.md | 4 ++++ packages/react-code-editor/package.json | 4 ++-- packages/react-core/CHANGELOG.md | 10 ++++++++++ packages/react-core/package.json | 2 +- packages/react-docs/CHANGELOG.md | 4 ++++ packages/react-docs/package.json | 8 ++++---- packages/react-integration/CHANGELOG.md | 6 ++++++ packages/react-integration/demo-app-ts/CHANGELOG.md | 6 ++++++ packages/react-integration/demo-app-ts/package.json | 4 ++-- packages/react-integration/package.json | 2 +- packages/react-table/CHANGELOG.md | 4 ++++ packages/react-table/package.json | 4 ++-- 12 files changed, 46 insertions(+), 12 deletions(-) diff --git a/packages/react-code-editor/CHANGELOG.md b/packages/react-code-editor/CHANGELOG.md index b395ff65413..9e423043cc0 100644 --- a/packages/react-code-editor/CHANGELOG.md +++ b/packages/react-code-editor/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.14](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.1.1-prerelease.13...@patternfly/react-code-editor@5.1.1-prerelease.14) (2023-09-20) + +**Note:** Version bump only for package @patternfly/react-code-editor + ## [5.1.1-prerelease.13](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.1.1-prerelease.12...@patternfly/react-code-editor@5.1.1-prerelease.13) (2023-09-19) ### Bug Fixes diff --git a/packages/react-code-editor/package.json b/packages/react-code-editor/package.json index b9e852d4908..bf4d38e9b7f 100644 --- a/packages/react-code-editor/package.json +++ b/packages/react-code-editor/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-code-editor", - "version": "5.1.1-prerelease.13", + "version": "5.1.1-prerelease.14", "description": "This package provides a PatternFly wrapper for the Monaco code editor\n", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -29,7 +29,7 @@ "clean": "rimraf dist" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.13", + "@patternfly/react-core": "^5.1.1-prerelease.14", "@patternfly/react-icons": "^5.1.1-prerelease.6", "@patternfly/react-styles": "^5.1.1-prerelease.6", "react-dropzone": "14.2.3", diff --git a/packages/react-core/CHANGELOG.md b/packages/react-core/CHANGELOG.md index 674bc9bbcb6..70662e386f8 100644 --- a/packages/react-core/CHANGELOG.md +++ b/packages/react-core/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.14](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.1.1-prerelease.13...@patternfly/react-core@5.1.1-prerelease.14) (2023-09-20) + +### Bug Fixes + +- **Modal:** Prevent duplicate ids within Modal ([#9555](https://github.com/patternfly/patternfly-react/issues/9555)) ([2953b78](https://github.com/patternfly/patternfly-react/commit/2953b78290b3baee6cf506303c88dfc5ab9d0329)) + +### Features + +- **Drawer:** Added start and end to position props, updated resizing to work with RTL ([#9627](https://github.com/patternfly/patternfly-react/issues/9627)) ([e12b872](https://github.com/patternfly/patternfly-react/commit/e12b8726b9ebc2fec921b7316a270a9c09decf96)) + ## [5.1.1-prerelease.13](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.1.1-prerelease.12...@patternfly/react-core@5.1.1-prerelease.13) (2023-09-19) ### Bug Fixes diff --git a/packages/react-core/package.json b/packages/react-core/package.json index 196eaa25dd6..360bd352668 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-core", - "version": "5.1.1-prerelease.13", + "version": "5.1.1-prerelease.14", "description": "This library provides a set of common React components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", diff --git a/packages/react-docs/CHANGELOG.md b/packages/react-docs/CHANGELOG.md index 682468257e6..896336c9e83 100644 --- a/packages/react-docs/CHANGELOG.md +++ b/packages/react-docs/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.1.1-prerelease.15](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.1.1-prerelease.14...@patternfly/react-docs@6.1.1-prerelease.15) (2023-09-20) + +**Note:** Version bump only for package @patternfly/react-docs + ## [6.1.1-prerelease.14](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.1.1-prerelease.13...@patternfly/react-docs@6.1.1-prerelease.14) (2023-09-19) **Note:** Version bump only for package @patternfly/react-docs diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index df5d97f50f4..6fae1e81890 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -1,7 +1,7 @@ { "name": "@patternfly/react-docs", "description": "PatternFly React Docs", - "version": "6.1.1-prerelease.14", + "version": "6.1.1-prerelease.15", "publishConfig": { "access": "public" }, @@ -24,11 +24,11 @@ "dependencies": { "@patternfly/patternfly": "5.1.0-prerelease.28", "@patternfly/react-charts": "^7.1.1-prerelease.7", - "@patternfly/react-code-editor": "^5.1.1-prerelease.13", - "@patternfly/react-core": "^5.1.1-prerelease.13", + "@patternfly/react-code-editor": "^5.1.1-prerelease.14", + "@patternfly/react-core": "^5.1.1-prerelease.14", "@patternfly/react-icons": "^5.1.1-prerelease.6", "@patternfly/react-styles": "^5.1.1-prerelease.6", - "@patternfly/react-table": "^5.1.1-prerelease.13", + "@patternfly/react-table": "^5.1.1-prerelease.14", "@patternfly/react-tokens": "^5.1.1-prerelease.6" }, "devDependencies": { diff --git a/packages/react-integration/CHANGELOG.md b/packages/react-integration/CHANGELOG.md index 196cb1ac9af..4ed89f7ff36 100644 --- a/packages/react-integration/CHANGELOG.md +++ b/packages/react-integration/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.8](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-integration@5.1.1-prerelease.7...@patternfly/react-integration@5.1.1-prerelease.8) (2023-09-20) + +### Bug Fixes + +- **Modal:** Prevent duplicate ids within Modal ([#9555](https://github.com/patternfly/patternfly-react/issues/9555)) ([2953b78](https://github.com/patternfly/patternfly-react/commit/2953b78290b3baee6cf506303c88dfc5ab9d0329)) + ## 5.1.1-prerelease.7 (2023-09-19) ### Features diff --git a/packages/react-integration/demo-app-ts/CHANGELOG.md b/packages/react-integration/demo-app-ts/CHANGELOG.md index 7bac3651053..6b35e9b16f1 100644 --- a/packages/react-integration/demo-app-ts/CHANGELOG.md +++ b/packages/react-integration/demo-app-ts/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.13](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.12...demo-app-ts@5.1.1-prerelease.13) (2023-09-20) + +### Bug Fixes + +- **Modal:** Prevent duplicate ids within Modal ([#9555](https://github.com/patternfly/patternfly-react/issues/9555)) ([2953b78](https://github.com/patternfly/patternfly-react/commit/2953b78290b3baee6cf506303c88dfc5ab9d0329)) + ## [5.1.1-prerelease.12](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.11...demo-app-ts@5.1.1-prerelease.12) (2023-09-19) ### Features diff --git a/packages/react-integration/demo-app-ts/package.json b/packages/react-integration/demo-app-ts/package.json index ee7b4ff2440..8293619e69c 100644 --- a/packages/react-integration/demo-app-ts/package.json +++ b/packages/react-integration/demo-app-ts/package.json @@ -1,7 +1,7 @@ { "name": "demo-app-ts", "private": true, - "version": "5.1.1-prerelease.12", + "version": "5.1.1-prerelease.13", "scripts": { "build:demo-app": "webpack --mode production", "start:demo-app": "webpack-dev-server", @@ -9,7 +9,7 @@ "serve:demo-app": "node scripts/serve" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.13", + "@patternfly/react-core": "^5.1.1-prerelease.14", "react": "^18", "react-dom": "^18", "react-router": "^5.3.3", diff --git a/packages/react-integration/package.json b/packages/react-integration/package.json index fb7cd189cd5..b8b2858d7aa 100644 --- a/packages/react-integration/package.json +++ b/packages/react-integration/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-integration", - "version": "5.1.1-prerelease.7", + "version": "5.1.1-prerelease.8", "private": true, "description": "Integration testing for PF5 using demo applications", "main": "lib/index.js", diff --git a/packages/react-table/CHANGELOG.md b/packages/react-table/CHANGELOG.md index 31957d0937e..f7680d22277 100644 --- a/packages/react-table/CHANGELOG.md +++ b/packages/react-table/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.14](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.1.1-prerelease.13...@patternfly/react-table@5.1.1-prerelease.14) (2023-09-20) + +**Note:** Version bump only for package @patternfly/react-table + ## [5.1.1-prerelease.13](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.1.1-prerelease.12...@patternfly/react-table@5.1.1-prerelease.13) (2023-09-19) **Note:** Version bump only for package @patternfly/react-table diff --git a/packages/react-table/package.json b/packages/react-table/package.json index 29234fce5b7..99528c1609d 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-table", - "version": "5.1.1-prerelease.13", + "version": "5.1.1-prerelease.14", "description": "This library provides a set of React table components for use with the PatternFly 4", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -39,7 +39,7 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.13", + "@patternfly/react-core": "^5.1.1-prerelease.14", "@patternfly/react-icons": "^5.1.1-prerelease.6", "@patternfly/react-styles": "^5.1.1-prerelease.6", "@patternfly/react-tokens": "^5.1.1-prerelease.6", From 255563b3095f3856f19a05877c0e254c8345e739 Mon Sep 17 00:00:00 2001 From: kmcfaul <45077788+kmcfaul@users.noreply.github.com> Date: Thu, 21 Sep 2023 08:44:17 -0400 Subject: [PATCH 005/103] chore(Brand): update tests (#9543) * chore(Brand): update tests * add more tests * add width test * test updates --- .../components/Brand/__tests__/Brand.test.tsx | 135 ++++++++++++++---- .../__snapshots__/Brand.test.tsx.snap | 11 -- 2 files changed, 105 insertions(+), 41 deletions(-) delete mode 100644 packages/react-core/src/components/Brand/__tests__/__snapshots__/Brand.test.tsx.snap diff --git a/packages/react-core/src/components/Brand/__tests__/Brand.test.tsx b/packages/react-core/src/components/Brand/__tests__/Brand.test.tsx index 08e4fd1051f..7ed327f91db 100644 --- a/packages/react-core/src/components/Brand/__tests__/Brand.test.tsx +++ b/packages/react-core/src/components/Brand/__tests__/Brand.test.tsx @@ -3,34 +3,109 @@ import { render, screen } from '@testing-library/react'; import { Brand } from '../Brand'; import '@testing-library/jest-dom'; -describe('Brand', () => { - test('simple brand', () => { - const { asFragment } = render(); - expect(asFragment()).toMatchSnapshot(); - }); - - test('passing children creates picture brand', () => { - render( - -
test
-
- ); - expect(screen.getByText('test')).toBeInTheDocument(); - }); - - test('styles get spread when there are children', () => { - render( - -
test width
-
- ); - expect(screen.getByTestId('brand')).toHaveStyle(`color: blue`); - }); - - test('styles get spread when there are no children', () => { - render( - - ); - expect(screen.getByAltText('brand no children')).toHaveStyle(`width: 30px`); - }); +test('simple brand', () => { + render(); + expect(screen.getByAltText('brand')).toBeInTheDocument(); +}); + +test('Renders with custom class name when className prop is provided', () => { + render(); + expect(screen.getByAltText('brand')).toHaveClass('custom-class'); +}); + +test('Renders with custom class name when className prop and children are provided', () => { + render( + +
test
+
+ ); + expect(screen.getByText('test')?.parentElement).toHaveClass('custom-class'); +}); + +test('Renders passed children', () => { + render( + +
test
+
+ ); + expect(screen.getByText('test')).toBeInTheDocument(); +}); + +test('Renders as picture when children are present', () => { + render( + +
test
+
+ ); + expect(screen.getByText('test')?.parentElement?.tagName).toBe('PICTURE'); +}); + +test('Renders as img when no children are present', () => { + render(); + expect(screen.getByAltText('brand')?.tagName).toBe('IMG'); +}); + +test('Has correct src with passed src prop', () => { + render(); + const image = screen.getByRole('img') as HTMLImageElement; + expect(image.src).toMatch('test.png'); +}); + +test('Has correct alt text with passed alt prop', () => { + render(); + + expect(screen.getByAltText('brand')).toBeTruthy(); +}); + +test('Has correct src with passed children', () => { + render( + +
test width
+
+ ); + const image = screen.getByRole('img') as HTMLImageElement; + expect(image.src).toMatch('test.png'); +}); + +test('Has correct alt text with passed children', () => { + render( + +
test width
+
+ ); + expect(screen.getByAltText('brand')).toBeTruthy(); +}); + +test('styles get spread when there are children', () => { + render( + +
test width
+
+ ); + expect(screen.getByTestId('brand')).toHaveStyle(`color: blue`); +}); + +test('styles get spread when there are no children', () => { + render(); + expect(screen.getByAltText('brand no children')).toHaveStyle(`width: 30px`); +}); + +test('width styles are present when passed', () => { + render( + + ); + expect(screen.getByAltText('brand with widths')).toHaveAttribute( + 'style', + '--pf-v5-c-brand--Width: 100px; --pf-v5-c-brand--Width-on-sm: 25px; --pf-v5-c-brand--Width-on-md: 50px; --pf-v5-c-brand--Width-on-lg: 100px; --pf-v5-c-brand--Width-on-xl: 125px; --pf-v5-c-brand--Width-on-2xl: 150px;' + ); }); diff --git a/packages/react-core/src/components/Brand/__tests__/__snapshots__/Brand.test.tsx.snap b/packages/react-core/src/components/Brand/__tests__/__snapshots__/Brand.test.tsx.snap deleted file mode 100644 index 11d5e553ce6..00000000000 --- a/packages/react-core/src/components/Brand/__tests__/__snapshots__/Brand.test.tsx.snap +++ /dev/null @@ -1,11 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Brand simple brand 1`] = ` - - brand - -`; From 2da108e030fba9d0a903c113cfc51d915d00a390 Mon Sep 17 00:00:00 2001 From: Maria Date: Thu, 21 Sep 2023 15:12:32 +0200 Subject: [PATCH 006/103] feat(Select) - add appendTo to SelectPopperProps (#9578) --- packages/react-core/src/components/Select/Select.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/react-core/src/components/Select/Select.tsx b/packages/react-core/src/components/Select/Select.tsx index d3f71d5862f..bee8089ef30 100644 --- a/packages/react-core/src/components/Select/Select.tsx +++ b/packages/react-core/src/components/Select/Select.tsx @@ -17,6 +17,14 @@ export interface SelectPopperProps { maxWidth?: string | 'trigger'; /** Enable to flip the popper when it reaches the boundary */ enableFlip?: boolean; + /** The container to append the select to. Defaults to 'inline'. + * If your select is being cut off you can append it to an element higher up the DOM tree. + * Some examples: + * appendTo="inline" + * appendTo={() => document.body} + * appendTo={document.getElementById('target')} + */ + appendTo?: HTMLElement | (() => HTMLElement) | 'inline'; } export interface SelectToggleProps { From c02dcbcfe84c6aa5f67e8fa79839913c142541b4 Mon Sep 17 00:00:00 2001 From: Jenny <32821331+jenny-s51@users.noreply.github.com> Date: Thu, 21 Sep 2023 09:15:38 -0400 Subject: [PATCH 007/103] fix(misc): fixed broken CodeSandbox demos (#9519) * update import paths * fix(table): update data imports to absolute * fix remaining codesandbox demos --- .../examples/ApplicationLauncherDemo.tsx | 2 +- packages/react-core/src/demos/PrimaryDetail.md | 5 ++--- packages/react-table/src/docs/demos/Table.md | 14 ++++++++------ .../src/docs/demos/table-demos/BulkSelect.jsx | 3 +-- .../docs/demos/table-demos/ColumnManagement.jsx | 12 ++++++------ .../src/docs/demos/table-demos/Compact.jsx | 6 +++--- .../docs/demos/table-demos/SortableResponsive.jsx | 14 +++++++++++--- .../demos/table-demos/StaticBottomPagination.jsx | 5 ++--- .../src/docs/demos/table-demos/StickyHeader.jsx | 3 +-- 9 files changed, 35 insertions(+), 29 deletions(-) diff --git a/packages/react-core/src/demos/CustomMenus/examples/ApplicationLauncherDemo.tsx b/packages/react-core/src/demos/CustomMenus/examples/ApplicationLauncherDemo.tsx index 2c14ae05576..93ec1fe1770 100644 --- a/packages/react-core/src/demos/CustomMenus/examples/ApplicationLauncherDemo.tsx +++ b/packages/react-core/src/demos/CustomMenus/examples/ApplicationLauncherDemo.tsx @@ -12,7 +12,7 @@ import { DropdownItem } from '@patternfly/react-core'; import ThIcon from '@patternfly/react-icons/dist/js/icons/th-icon'; -import pfIcon from 'pf-logo-small.svg'; +import pfIcon from '@patternfly/react-core/src/demos/Card/pf-logo-small.svg'; const MockLink: React.FunctionComponent = ({ to, ...props }: any) => ; diff --git a/packages/react-core/src/demos/PrimaryDetail.md b/packages/react-core/src/demos/PrimaryDetail.md index b792fb60ba1..ef9949d907f 100644 --- a/packages/react-core/src/demos/PrimaryDetail.md +++ b/packages/react-core/src/demos/PrimaryDetail.md @@ -24,14 +24,13 @@ import azureIcon from './assets/FuseConnector_Icons_AzureServices.png'; import restIcon from './assets/FuseConnector_Icons_REST.png'; import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon'; import { data } from '@patternfly/react-core/src/demos/Card/examples/CardData.jsx'; -import DashboardWrapper from './examples/DashboardWrapper'; +import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; ## Demos ### Primary-detail full page ```js file="./examples/PrimaryDetail/PrimaryDetailFullPage.tsx" isFullscreen - ``` ### Primary-detail content padding @@ -554,7 +553,7 @@ class PrimaryDetailCardView extends React.Component { }} selectableActions={{ isChecked: selectedItems.includes(product.id), selectableActionId: `selectable-actions-item-${product.id}`, selectableActionAriaLabelledby: `${'card-view-' + key}`, name: `check-${product.id}`, onChange: () => this.onClick(product.id) }} > - {`${product.name} + {`${product.name} } - rightActions={ + endActions={ @@ -85,7 +85,7 @@ export const SliderActions: React.FunctionComponent = () => { inputLabel="%" isInputVisible isDisabled={isDisabled} - rightActions={buildAction(isDisabled)} + endActions={buildAction(isDisabled)} /> ); From 2504201e9925d23d2a8d75f3d5249ae426f92632 Mon Sep 17 00:00:00 2001 From: kmcfaul <45077788+kmcfaul@users.noreply.github.com> Date: Thu, 21 Sep 2023 10:44:36 -0400 Subject: [PATCH 012/103] docs(Toolbar): remove test example (#9614) --- .../src/components/Toolbar/examples/Test.tsx | 258 ------------------ .../components/Toolbar/examples/Toolbar.md | 6 - 2 files changed, 264 deletions(-) delete mode 100644 packages/react-core/src/components/Toolbar/examples/Test.tsx diff --git a/packages/react-core/src/components/Toolbar/examples/Test.tsx b/packages/react-core/src/components/Toolbar/examples/Test.tsx deleted file mode 100644 index e4ad498ca23..00000000000 --- a/packages/react-core/src/components/Toolbar/examples/Test.tsx +++ /dev/null @@ -1,258 +0,0 @@ -import React from 'react'; -import { - MenuToggle, - MenuToggleElement, - Toolbar, - ToolbarItem, - ToolbarContent, - ToolbarToggleGroup, - ToolbarGroup, - SearchInput, - Select, - SelectList, - SelectOption, - ToolbarFilter, - Badge -} from '@patternfly/react-core'; -import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon'; - -export const Test: React.FunctionComponent = () => { - const statusChipContainerRef = React.useRef(); - const riskChipContainerRef = React.useRef(); - - const [isStatusGroupExpanded, setIsStatusGroupExpanded] = React.useState(false); - const [isRiskGroupExpanded, setIsRiskGroupExpanded] = React.useState(false); - - const [isStatusMenuExpanded, setIsStatusExpanded] = React.useState(false); - const [isRiskMenuExpanded, setIsRiskExpanded] = React.useState(false); - const [inputValue, setInputValue] = React.useState(''); - const [filters, setFilters] = React.useState({ - risk: ['Low'], - status: ['New', 'Pending'] - }); - - const closeToggleGroups = () => { - setIsStatusGroupExpanded(false); - setIsRiskGroupExpanded(false); - }; - - React.useEffect(() => { - window.addEventListener('resize', closeToggleGroups); // Resize observer to toggle off expand groups is required to properly reformat toolbar when growing - return () => { - window.removeEventListener('resize', closeToggleGroups); - }; - }, []); - - const onInputChange = (newValue: string) => { - setInputValue(newValue); - }; - - const onStatusToggle = () => { - setIsStatusExpanded(!isStatusMenuExpanded); - }; - - const onRiskToggle = () => { - setIsRiskExpanded(!isRiskMenuExpanded); - }; - - const onSelect = (type: string, event: React.MouseEvent | React.ChangeEvent | undefined, selection: string) => { - const checked = (event?.target as HTMLInputElement).checked; - setFilters((prev) => { - const prevSelections = prev[type]; - return { - ...prev, - [type]: checked ? [...prevSelections, selection] : prevSelections.filter((value) => value !== selection) - }; - }); - }; - - const onStatusSelect = (event: React.MouseEvent | React.ChangeEvent | undefined, selection: string) => { - onSelect('status', event, selection); - }; - - const onRiskSelect = (event: React.MouseEvent | React.ChangeEvent | undefined, selection: string) => { - onSelect('risk', event, selection); - }; - - const onDelete = (type: string, id: string) => { - if (type === 'Risk') { - setFilters({ risk: filters.risk.filter((fil: string) => fil !== id), status: filters.status }); - } else if (type === 'Status') { - setFilters({ risk: filters.risk, status: filters.status.filter((fil: string) => fil !== id) }); - } else { - setFilters({ risk: [], status: [] }); - } - }; - - const onDeleteGroup = (type: string) => { - if (type === 'Risk') { - setFilters({ risk: [], status: filters.status }); - } else if (type === 'Status') { - setFilters({ risk: filters.risk, status: [] }); - } - }; - - const statusToggleGroupItems = ( - - - onInputChange(value)} - value={inputValue} - onClear={() => { - onInputChange(''); - }} - /> - - - onDelete(category as string, chip as string)} - deleteChipGroup={(category) => onDeleteGroup(category as string)} - categoryName="Status" - isExpanded={isStatusGroupExpanded} - expandableChipContainerRef={statusChipContainerRef} // Required to link the toolbar filter chip group to the custom expandable group - > - - - - - ); - - const riskToggleGroupItems = ( - - onDelete(category as string, chip as string)} - categoryName="Risk" - isExpanded={isRiskGroupExpanded} - expandableChipContainerRef={riskChipContainerRef} // Required to link the toolbar filter chip group to the custom expandable group - > - - - - ); - - return ( - - - { - setIsStatusGroupExpanded(!isStatusGroupExpanded); - setIsRiskGroupExpanded(false); - }} // Required to control expanded state - toggleIcon={} - breakpoint="md" - chipContainerRef={statusChipContainerRef} - showClearFiltersButton - clearAllFilters={() => onDeleteGroup('Status')} - clearFiltersButtonText="Clear status filter" - > - {statusToggleGroupItems} - - { - setIsRiskGroupExpanded(!isRiskGroupExpanded); - setIsStatusGroupExpanded(false); - }} // Required to control expanded state - toggleIcon={} - breakpoint="xl" - chipContainerRef={riskChipContainerRef} - showClearFiltersButton - clearAllFilters={() => onDeleteGroup('Risk')} - clearFiltersButtonText={'Clear risk filter'} - > - {riskToggleGroupItems} - - - - ); -}; diff --git a/packages/react-core/src/components/Toolbar/examples/Toolbar.md b/packages/react-core/src/components/Toolbar/examples/Toolbar.md index de3011cd7f3..1ab04da5720 100644 --- a/packages/react-core/src/components/Toolbar/examples/Toolbar.md +++ b/packages/react-core/src/components/Toolbar/examples/Toolbar.md @@ -14,12 +14,6 @@ import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-ico ## Examples -### TEST - remove before merging - -```ts file="./Test.tsx" - -``` - ### Toolbar items A toolbar can contain multiple toolbar items, like filters and buttons. From ba947c7b790de2415780c1eea266d75ea71922d1 Mon Sep 17 00:00:00 2001 From: Erin Donehoo <105813956+edonehoo@users.noreply.github.com> Date: Thu, 21 Sep 2023 10:46:37 -0400 Subject: [PATCH 013/103] docs(tabs): Clean up React documentation content. (#9606) * docs(tabs):clean up React documentation content. * Update packages/react-core/src/components/Tabs/examples/Tabs.md --- packages/react-core/src/components/Tabs/examples/Tabs.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/react-core/src/components/Tabs/examples/Tabs.md b/packages/react-core/src/components/Tabs/examples/Tabs.md index 0f52f7e728d..cf519f60f5b 100644 --- a/packages/react-core/src/components/Tabs/examples/Tabs.md +++ b/packages/react-core/src/components/Tabs/examples/Tabs.md @@ -28,7 +28,7 @@ You can adjust a tab in the following ways: - To disable a tab, but keep it perceivable to assistive technology users, use the `isAriaDisabled` property. If a disabled tab has a tooltip, use this property instead of `isDisabled`. - To add a tooltip to an aria-disabled tab, use the `tooltip` property. -Most tab variations can either be 'default' or 'boxed': +Tabs can be styled as 'default' or 'boxed': - Default tabs do not have any borders and use a bottom line to distinguish between a selected tab, a hovered tab, and an inactive tab. - Boxed tabs are outlined to emphasize the area that a tab spans. To preview boxed tabs in the following examples, select the 'isBox' checkbox, which sets the `isBox` property to true. @@ -207,8 +207,6 @@ The tab its content should only be mounted when the tab is visible. To enable closeable tabs, pass the `onClose` property to the `` component. To enable a button that adds new tabs, pass the `onAdd` property to ``. -Aria labels may be controlled manually by passing the `closeButtonAriaLabel` property to a `` and the `addButtonAriaLabel` property to ``. - ```ts file="./TabsDynamic.tsx" ``` From 026096f9f505bb31b24bb25b551ec81a743ef1fa Mon Sep 17 00:00:00 2001 From: patternfly-build Date: Thu, 21 Sep 2023 15:13:57 +0000 Subject: [PATCH 014/103] chore(release): releasing packages [ci skip] - @patternfly/react-code-editor@5.1.1-prerelease.17 - @patternfly/react-core@5.1.1-prerelease.17 - @patternfly/react-docs@6.1.1-prerelease.18 - demo-app-ts@5.1.1-prerelease.16 - @patternfly/react-table@5.1.1-prerelease.17 --- packages/react-code-editor/CHANGELOG.md | 4 ++++ packages/react-code-editor/package.json | 4 ++-- packages/react-core/CHANGELOG.md | 6 ++++++ packages/react-core/package.json | 2 +- packages/react-docs/CHANGELOG.md | 4 ++++ packages/react-docs/package.json | 8 ++++---- packages/react-integration/demo-app-ts/CHANGELOG.md | 4 ++++ packages/react-integration/demo-app-ts/package.json | 4 ++-- packages/react-table/CHANGELOG.md | 4 ++++ packages/react-table/package.json | 4 ++-- 10 files changed, 33 insertions(+), 11 deletions(-) diff --git a/packages/react-code-editor/CHANGELOG.md b/packages/react-code-editor/CHANGELOG.md index 8b159236a96..b3e80c76dbd 100644 --- a/packages/react-code-editor/CHANGELOG.md +++ b/packages/react-code-editor/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.17](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.1.1-prerelease.16...@patternfly/react-code-editor@5.1.1-prerelease.17) (2023-09-21) + +**Note:** Version bump only for package @patternfly/react-code-editor + ## [5.1.1-prerelease.16](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.1.1-prerelease.15...@patternfly/react-code-editor@5.1.1-prerelease.16) (2023-09-21) **Note:** Version bump only for package @patternfly/react-code-editor diff --git a/packages/react-code-editor/package.json b/packages/react-code-editor/package.json index fdd14795b04..a364e4016cf 100644 --- a/packages/react-code-editor/package.json +++ b/packages/react-code-editor/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-code-editor", - "version": "5.1.1-prerelease.16", + "version": "5.1.1-prerelease.17", "description": "This package provides a PatternFly wrapper for the Monaco code editor\n", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -29,7 +29,7 @@ "clean": "rimraf dist" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.16", + "@patternfly/react-core": "^5.1.1-prerelease.17", "@patternfly/react-icons": "^5.1.1-prerelease.6", "@patternfly/react-styles": "^5.1.1-prerelease.6", "react-dropzone": "14.2.3", diff --git a/packages/react-core/CHANGELOG.md b/packages/react-core/CHANGELOG.md index 21e6d66ebd8..acde315adbc 100644 --- a/packages/react-core/CHANGELOG.md +++ b/packages/react-core/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.17](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.1.1-prerelease.16...@patternfly/react-core@5.1.1-prerelease.17) (2023-09-21) + +### Bug Fixes + +- **Slider:** Updated slider to work in RTL. ([#9655](https://github.com/patternfly/patternfly-react/issues/9655)) ([1eb77cb](https://github.com/patternfly/patternfly-react/commit/1eb77cbdf98f1d9f140933ec5baaba37b8907492)) + ## [5.1.1-prerelease.16](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.1.1-prerelease.15...@patternfly/react-core@5.1.1-prerelease.16) (2023-09-21) **Note:** Version bump only for package @patternfly/react-core diff --git a/packages/react-core/package.json b/packages/react-core/package.json index 4affb8104b5..041a3c1aba2 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-core", - "version": "5.1.1-prerelease.16", + "version": "5.1.1-prerelease.17", "description": "This library provides a set of common React components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", diff --git a/packages/react-docs/CHANGELOG.md b/packages/react-docs/CHANGELOG.md index 96176accc98..e65ef138509 100644 --- a/packages/react-docs/CHANGELOG.md +++ b/packages/react-docs/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.1.1-prerelease.18](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.1.1-prerelease.17...@patternfly/react-docs@6.1.1-prerelease.18) (2023-09-21) + +**Note:** Version bump only for package @patternfly/react-docs + ## [6.1.1-prerelease.17](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.1.1-prerelease.16...@patternfly/react-docs@6.1.1-prerelease.17) (2023-09-21) **Note:** Version bump only for package @patternfly/react-docs diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index bba0d87d35e..c9db1e25f1d 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -1,7 +1,7 @@ { "name": "@patternfly/react-docs", "description": "PatternFly React Docs", - "version": "6.1.1-prerelease.17", + "version": "6.1.1-prerelease.18", "publishConfig": { "access": "public" }, @@ -24,11 +24,11 @@ "dependencies": { "@patternfly/patternfly": "5.1.0-prerelease.28", "@patternfly/react-charts": "^7.1.1-prerelease.7", - "@patternfly/react-code-editor": "^5.1.1-prerelease.16", - "@patternfly/react-core": "^5.1.1-prerelease.16", + "@patternfly/react-code-editor": "^5.1.1-prerelease.17", + "@patternfly/react-core": "^5.1.1-prerelease.17", "@patternfly/react-icons": "^5.1.1-prerelease.6", "@patternfly/react-styles": "^5.1.1-prerelease.6", - "@patternfly/react-table": "^5.1.1-prerelease.16", + "@patternfly/react-table": "^5.1.1-prerelease.17", "@patternfly/react-tokens": "^5.1.1-prerelease.6" }, "devDependencies": { diff --git a/packages/react-integration/demo-app-ts/CHANGELOG.md b/packages/react-integration/demo-app-ts/CHANGELOG.md index 1b23c21cc9d..ec965cb8490 100644 --- a/packages/react-integration/demo-app-ts/CHANGELOG.md +++ b/packages/react-integration/demo-app-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.16](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.15...demo-app-ts@5.1.1-prerelease.16) (2023-09-21) + +**Note:** Version bump only for package demo-app-ts + ## [5.1.1-prerelease.15](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.14...demo-app-ts@5.1.1-prerelease.15) (2023-09-21) **Note:** Version bump only for package demo-app-ts diff --git a/packages/react-integration/demo-app-ts/package.json b/packages/react-integration/demo-app-ts/package.json index aee20891c60..70bab8586a3 100644 --- a/packages/react-integration/demo-app-ts/package.json +++ b/packages/react-integration/demo-app-ts/package.json @@ -1,7 +1,7 @@ { "name": "demo-app-ts", "private": true, - "version": "5.1.1-prerelease.15", + "version": "5.1.1-prerelease.16", "scripts": { "build:demo-app": "webpack --mode production", "start:demo-app": "webpack-dev-server", @@ -9,7 +9,7 @@ "serve:demo-app": "node scripts/serve" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.16", + "@patternfly/react-core": "^5.1.1-prerelease.17", "react": "^18", "react-dom": "^18", "react-router": "^5.3.3", diff --git a/packages/react-table/CHANGELOG.md b/packages/react-table/CHANGELOG.md index 3cf4c97c16c..4f434360cdf 100644 --- a/packages/react-table/CHANGELOG.md +++ b/packages/react-table/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.17](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.1.1-prerelease.16...@patternfly/react-table@5.1.1-prerelease.17) (2023-09-21) + +**Note:** Version bump only for package @patternfly/react-table + ## [5.1.1-prerelease.16](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.1.1-prerelease.15...@patternfly/react-table@5.1.1-prerelease.16) (2023-09-21) **Note:** Version bump only for package @patternfly/react-table diff --git a/packages/react-table/package.json b/packages/react-table/package.json index 6bd2247c6f8..a2e3790e383 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-table", - "version": "5.1.1-prerelease.16", + "version": "5.1.1-prerelease.17", "description": "This library provides a set of React table components for use with the PatternFly 4", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -39,7 +39,7 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.16", + "@patternfly/react-core": "^5.1.1-prerelease.17", "@patternfly/react-icons": "^5.1.1-prerelease.6", "@patternfly/react-styles": "^5.1.1-prerelease.6", "@patternfly/react-tokens": "^5.1.1-prerelease.6", From 033e6bcca19994f0dc1ead8bcd076096d045bd77 Mon Sep 17 00:00:00 2001 From: Austin Sullivan Date: Thu, 21 Sep 2023 12:19:28 -0400 Subject: [PATCH 015/103] fix(popper): add start/end positioning with RTL support, update default (#9628) * fix(popper): add start/end positioning with RTL support, update default * ensure that getLanguageDirection only returns ltr or rtl * fix(Popper): expanded types to include start/end; updated position value --- .../src/components/Dropdown/Dropdown.tsx | 2 +- .../src/components/Menu/MenuContainer.tsx | 2 +- .../src/components/Select/Select.tsx | 2 +- .../react-core/src/helpers/Popper/Popper.tsx | 49 ++++++++++++++++--- .../src/components/Table/ActionsColumn.tsx | 2 +- 5 files changed, 47 insertions(+), 10 deletions(-) diff --git a/packages/react-core/src/components/Dropdown/Dropdown.tsx b/packages/react-core/src/components/Dropdown/Dropdown.tsx index b94c301f017..2819cc8eea1 100644 --- a/packages/react-core/src/components/Dropdown/Dropdown.tsx +++ b/packages/react-core/src/components/Dropdown/Dropdown.tsx @@ -8,7 +8,7 @@ export interface DropdownPopperProps { /** Vertical direction of the popper. If enableFlip is set to true, this will set the initial direction before the popper flips. */ direction?: 'up' | 'down'; /** Horizontal position of the popper */ - position?: 'right' | 'left' | 'center'; + position?: 'right' | 'left' | 'center' | 'start' | 'end'; /** Custom width of the popper. If the value is "trigger", it will set the width to the dropdown toggle's width */ width?: string | 'trigger'; /** Minimum width of the popper. If the value is "trigger", it will set the min width to the dropdown toggle's width */ diff --git a/packages/react-core/src/components/Menu/MenuContainer.tsx b/packages/react-core/src/components/Menu/MenuContainer.tsx index 16f002561f3..f1bceac4eff 100644 --- a/packages/react-core/src/components/Menu/MenuContainer.tsx +++ b/packages/react-core/src/components/Menu/MenuContainer.tsx @@ -5,7 +5,7 @@ export interface MenuPopperProps { /** Vertical direction of the popper. If enableFlip is set to true, this will set the initial direction before the popper flips. */ direction?: 'up' | 'down'; /** Horizontal position of the popper */ - position?: 'right' | 'left' | 'center'; + position?: 'right' | 'left' | 'center' | 'start' | 'end'; /** Custom width of the popper. If the value is "trigger", it will set the width to the dropdown toggle's width */ width?: string | 'trigger'; /** Minimum width of the popper. If the value is "trigger", it will set the min width to the dropdown toggle's width */ diff --git a/packages/react-core/src/components/Select/Select.tsx b/packages/react-core/src/components/Select/Select.tsx index bee8089ef30..5b902df64af 100644 --- a/packages/react-core/src/components/Select/Select.tsx +++ b/packages/react-core/src/components/Select/Select.tsx @@ -8,7 +8,7 @@ export interface SelectPopperProps { /** Vertical direction of the popper. If enableFlip is set to true, this will set the initial direction before the popper flips. */ direction?: 'up' | 'down'; /** Horizontal position of the popper */ - position?: 'right' | 'left' | 'center'; + position?: 'right' | 'left' | 'center' | 'start' | 'end'; /** Custom width of the popper. If the value is "trigger", it will set the width to the select toggle's width */ width?: string | 'trigger'; /** Minimum width of the popper. If the value is "trigger", it will set the min width to the select toggle's width */ diff --git a/packages/react-core/src/helpers/Popper/Popper.tsx b/packages/react-core/src/helpers/Popper/Popper.tsx index 403e232dfd6..b7ba8663470 100644 --- a/packages/react-core/src/helpers/Popper/Popper.tsx +++ b/packages/react-core/src/helpers/Popper/Popper.tsx @@ -45,6 +45,21 @@ const getOppositePlacement = (placement: Placement): any => export const getOpacityTransition = (animationDuration: number) => `opacity ${animationDuration}ms cubic-bezier(.54, 1.5, .38, 1.11)`; +export const getLanguageDirection = (targetElement: HTMLElement) => { + const defaultDirection = 'ltr'; + let direction = defaultDirection; + + if (targetElement) { + direction = getComputedStyle(targetElement).getPropertyValue('direction'); + } + + if (['ltr', 'rtl'].includes(direction)) { + return direction as 'ltr' | 'rtl'; + } + + return defaultDirection; +}; + export interface PopperProps { /** * Trigger reference element to which the popper is relatively placed to. @@ -66,7 +81,7 @@ export interface PopperProps { /** popper direction */ direction?: 'up' | 'down'; /** popper position */ - position?: 'right' | 'left' | 'center'; + position?: 'right' | 'left' | 'center' | 'start' | 'end'; /** Instead of direction and position can set the placement of the popper */ placement?: Placement; /** Custom width of the popper. If the value is "trigger", it will set the width to the trigger element's width */ @@ -177,7 +192,7 @@ export const Popper: React.FunctionComponent = ({ trigger, popper, direction = 'down', - position = 'left', + position = 'start', placement, width, minWidth = 'trigger', @@ -226,6 +241,28 @@ export const Popper: React.FunctionComponent = ({ const refOrTrigger = refElement || triggerElement; const showPopper = isVisible || internalIsVisible; + const triggerParent = ((triggerRef as React.RefObject)?.current || triggerElement)?.parentElement; + const languageDirection = getLanguageDirection(triggerParent); + + const internalPosition = React.useMemo<'left' | 'right' | 'center'>(() => { + const fixedPositions = { left: 'left', right: 'right', center: 'center' }; + + const positionMap = { + ltr: { + start: 'left', + end: 'right', + ...fixedPositions + }, + rtl: { + start: 'right', + end: 'left', + ...fixedPositions + } + }; + + return positionMap[languageDirection][position] as 'left' | 'right' | 'center'; + }, [position, languageDirection]); + const onDocumentClickCallback = React.useCallback( (event: MouseEvent) => onDocumentClick(event, refOrTrigger, popperElement), [showPopper, triggerElement, refElement, popperElement, onDocumentClick] @@ -333,15 +370,15 @@ export const Popper: React.FunctionComponent = ({ return placement; } let convertedPlacement = direction === 'up' ? 'top' : 'bottom'; - if (position !== 'center') { - convertedPlacement = `${convertedPlacement}-${position === 'right' ? 'end' : 'start'}`; + if (internalPosition !== 'center') { + convertedPlacement = `${convertedPlacement}-${internalPosition === 'right' ? 'end' : 'start'}`; } return convertedPlacement as Placement; }; - const getPlacementMemo = React.useMemo(getPlacement, [direction, position, placement]); + const getPlacementMemo = React.useMemo(getPlacement, [direction, internalPosition, placement]); const getOppositePlacementMemo = React.useMemo( () => getOppositePlacement(getPlacement()), - [direction, position, placement] + [direction, internalPosition, placement] ); const widthMods: Modifier<'widthMods', {}> = React.useMemo( diff --git a/packages/react-table/src/components/Table/ActionsColumn.tsx b/packages/react-table/src/components/Table/ActionsColumn.tsx index 369951d4a5d..5d8f01f0b94 100644 --- a/packages/react-table/src/components/Table/ActionsColumn.tsx +++ b/packages/react-table/src/components/Table/ActionsColumn.tsx @@ -39,7 +39,7 @@ const ActionsColumnBase: React.FunctionComponent = ({ extraData, actionsToggle, popperProps = { - position: 'right', + position: 'end', direction: 'down' }, innerRef, From 1bc53da876b757211a237832881820ccad64bdd7 Mon Sep 17 00:00:00 2001 From: Austin Sullivan Date: Thu, 21 Sep 2023 12:34:15 -0400 Subject: [PATCH 016/103] fix(Dropdown): Add appendTo to dropdownPopperProps interface (#9635) --- packages/react-core/src/components/Dropdown/Dropdown.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-core/src/components/Dropdown/Dropdown.tsx b/packages/react-core/src/components/Dropdown/Dropdown.tsx index 2819cc8eea1..5fed1c51552 100644 --- a/packages/react-core/src/components/Dropdown/Dropdown.tsx +++ b/packages/react-core/src/components/Dropdown/Dropdown.tsx @@ -17,6 +17,8 @@ export interface DropdownPopperProps { maxWidth?: string | 'trigger'; /** Enable to flip the popper when it reaches the boundary */ enableFlip?: boolean; + /** The container to append the popper to. Defaults to 'inline'. */ + appendTo?: HTMLElement | (() => HTMLElement) | 'inline'; } export interface DropdownToggleProps { From 7b3ec9275e6a8909b1e230c6e6f52d74c9c72842 Mon Sep 17 00:00:00 2001 From: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com> Date: Thu, 21 Sep 2023 12:36:01 -0400 Subject: [PATCH 017/103] feat(Timestamp): allowed displayed datetime to be UTC (#9649) * feat(Timestamp): allowed displayed datetime to be UTC * Updated rendering of default UTC suffix --- .../src/components/Timestamp/Timestamp.tsx | 15 ++++++++++++--- .../Timestamp/__tests__/Timestamp.test.tsx | 6 ++++++ .../components/Timestamp/examples/Timestamp.md | 8 ++++++++ .../Timestamp/examples/TimestampDefault.tsx | 8 +++++++- .../examples/TimestampDefaultTooltip.tsx | 2 +- 5 files changed, 34 insertions(+), 5 deletions(-) diff --git a/packages/react-core/src/components/Timestamp/Timestamp.tsx b/packages/react-core/src/components/Timestamp/Timestamp.tsx index 941a8c5a18b..76e7caff5a4 100644 --- a/packages/react-core/src/components/Timestamp/Timestamp.tsx +++ b/packages/react-core/src/components/Timestamp/Timestamp.tsx @@ -64,6 +64,10 @@ export interface TimestampProps extends React.HTMLProps { * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation */ locale?: string; + /** Flag indicating whether the default content should be displayed as a UTC string + * instead of a local string. + */ + shouldDisplayUTC?: boolean; /** Determines the format of the displayed time in the timestamp and UTC tooltip. Examples: * "Full" => 11:25:00 AM Eastern Daylight Time * "Long" => 11:25:00 AM EDT @@ -84,6 +88,7 @@ export const Timestamp: React.FunctionComponent = ({ displaySuffix = '', is12Hour, locale, + shouldDisplayUTC, timeFormat, tooltip, ...props @@ -117,7 +122,6 @@ export const Timestamp: React.FunctionComponent = ({ ...formatOptions, ...(hasTimeFormat && { timeStyle: timeFormat }) }); - const defaultDisplay = `${dateAsLocaleString}${displaySuffix ? ' ' + displaySuffix : ''}`; const utcTimeFormat = timeFormat !== 'short' ? 'medium' : 'short'; const convertToUTCString = (date: Date) => new Date(date).toUTCString().slice(0, -3); @@ -125,8 +129,13 @@ export const Timestamp: React.FunctionComponent = ({ ...formatOptions, ...(hasTimeFormat && { timeStyle: utcTimeFormat }) }); - const defaultTooltipContent = `${utcDateString}${tooltip?.suffix ? ' ' + tooltip.suffix : ' UTC'}`; + const defaultUTCSuffix = timeFormat === 'full' ? 'Coordinated Universal Time' : 'UTC'; + const createUTCContent = (customSuffix: string) => + `${utcDateString} ${customSuffix ? customSuffix : defaultUTCSuffix}`; + const defaultDisplay = shouldDisplayUTC + ? createUTCContent(displaySuffix) + : `${dateAsLocaleString}${displaySuffix ? ' ' + displaySuffix : ''}`; const { dateTime, ...propsWithoutDateTime } = props; const timestamp = ( @@ -143,7 +152,7 @@ export const Timestamp: React.FunctionComponent = ({ return tooltip ? ( {timestamp} diff --git a/packages/react-core/src/components/Timestamp/__tests__/Timestamp.test.tsx b/packages/react-core/src/components/Timestamp/__tests__/Timestamp.test.tsx index 14108715d51..804ee1b4f92 100644 --- a/packages/react-core/src/components/Timestamp/__tests__/Timestamp.test.tsx +++ b/packages/react-core/src/components/Timestamp/__tests__/Timestamp.test.tsx @@ -55,6 +55,12 @@ test('Renders passed in date with default formatting', () => { expect(screen.getByText('1/1/2022, 12:00:00 AM')).toBeInTheDocument(); }); +test('Renders passed in date as UTC when shouldDisplayUTC is true', () => { + render(); + + expect(screen.getByText('1/1/2022, 5:00:00 AM UTC')).toBeInTheDocument(); +}); + test('Renders with correct datetime attribute when date is passed in', () => { const passedDate = new Date(2022, 0, 1); render(); diff --git a/packages/react-core/src/components/Timestamp/examples/Timestamp.md b/packages/react-core/src/components/Timestamp/examples/Timestamp.md index 377f15a630e..54534005e4e 100644 --- a/packages/react-core/src/components/Timestamp/examples/Timestamp.md +++ b/packages/react-core/src/components/Timestamp/examples/Timestamp.md @@ -12,7 +12,10 @@ beta: true By default, a timestamp will display the current date and time based on the current locale if the `date` prop is not passed in. +Passing the `shouldDisplayUTC` property will display the UTC date and time instead of the current or passed in locale. + ```ts file="./TimestampDefault.tsx" + ``` ### Basic formats @@ -22,6 +25,7 @@ The format of the displayed content can be customized by passing in the `dateFor You can also pass in the `displaySuffix` prop to display a custom suffix at the end of the displayed content. This will not override a timezone that is already displayed from the applied time format. ```ts file="./TimestampBasicFormats.tsx" + ``` ### Custom format @@ -29,6 +33,7 @@ You can also pass in the `displaySuffix` prop to display a custom suffix at the The format of the displayed content can be further customized by passing in the `customFormat` prop. Read [datetime format options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options) for a list of options that can be passed in. ```ts file="./TimestampCustomFormat.tsx" + ``` ### Default tooltip @@ -38,6 +43,7 @@ To render a tooltip that displays the timestamp content as a UTC time, you can p You can customize the suffix of this default tooltip variant by passing in `suffix` to the `tooltip` prop. ```ts file="./TimestampDefaultTooltip.tsx" + ``` ### Custom content @@ -47,6 +53,7 @@ To display custom content, such as a relative time or prefacing text, you can pa When also rendering a default tooltip with the `tooltip` prop, you can pass in the `dateFormat` and/or `timeFormat` props to customize the tooltip content without affecting the custom timestamp content. ```ts file="TimestampCustomContent.tsx" + ``` ### Custom tooltip @@ -54,4 +61,5 @@ When also rendering a default tooltip with the `tooltip` prop, you can pass in t By passing in `variant="custom"` and `content` to the `tooltip` prop, you can display custom content within the timestamp's tooltip. ```ts file="TimestampCustomTooltip.tsx" + ``` diff --git a/packages/react-core/src/components/Timestamp/examples/TimestampDefault.tsx b/packages/react-core/src/components/Timestamp/examples/TimestampDefault.tsx index b74ca416155..96a21fa14d6 100644 --- a/packages/react-core/src/components/Timestamp/examples/TimestampDefault.tsx +++ b/packages/react-core/src/components/Timestamp/examples/TimestampDefault.tsx @@ -1,4 +1,10 @@ import React from 'react'; import { Timestamp } from '@patternfly/react-core'; -export const TimestampDefault: React.FunctionComponent = () => ; +export const TimestampDefault: React.FunctionComponent = () => ( + <> + +
+ + +); diff --git a/packages/react-core/src/components/Timestamp/examples/TimestampDefaultTooltip.tsx b/packages/react-core/src/components/Timestamp/examples/TimestampDefaultTooltip.tsx index a1ca1e109a0..2dad0d988c3 100644 --- a/packages/react-core/src/components/Timestamp/examples/TimestampDefaultTooltip.tsx +++ b/packages/react-core/src/components/Timestamp/examples/TimestampDefaultTooltip.tsx @@ -11,7 +11,7 @@ export const TimestampDefaultTooltip: React.FunctionComponent = () => {
); From 2fa883df95ae47f12e4d5f90b6e184cbeca868a7 Mon Sep 17 00:00:00 2001 From: patternfly-build Date: Thu, 21 Sep 2023 16:58:23 +0000 Subject: [PATCH 018/103] chore(release): releasing packages [ci skip] - @patternfly/react-code-editor@5.1.1-prerelease.18 - @patternfly/react-core@5.1.1-prerelease.18 - @patternfly/react-docs@6.1.1-prerelease.19 - demo-app-ts@5.1.1-prerelease.17 - @patternfly/react-table@5.1.1-prerelease.18 --- packages/react-code-editor/CHANGELOG.md | 4 ++++ packages/react-code-editor/package.json | 4 ++-- packages/react-core/CHANGELOG.md | 11 +++++++++++ packages/react-core/package.json | 2 +- packages/react-docs/CHANGELOG.md | 4 ++++ packages/react-docs/package.json | 8 ++++---- packages/react-integration/demo-app-ts/CHANGELOG.md | 4 ++++ packages/react-integration/demo-app-ts/package.json | 4 ++-- packages/react-table/CHANGELOG.md | 6 ++++++ packages/react-table/package.json | 4 ++-- 10 files changed, 40 insertions(+), 11 deletions(-) diff --git a/packages/react-code-editor/CHANGELOG.md b/packages/react-code-editor/CHANGELOG.md index b3e80c76dbd..a311e4a6c37 100644 --- a/packages/react-code-editor/CHANGELOG.md +++ b/packages/react-code-editor/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.18](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.1.1-prerelease.17...@patternfly/react-code-editor@5.1.1-prerelease.18) (2023-09-21) + +**Note:** Version bump only for package @patternfly/react-code-editor + ## [5.1.1-prerelease.17](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.1.1-prerelease.16...@patternfly/react-code-editor@5.1.1-prerelease.17) (2023-09-21) **Note:** Version bump only for package @patternfly/react-code-editor diff --git a/packages/react-code-editor/package.json b/packages/react-code-editor/package.json index a364e4016cf..98df271dc05 100644 --- a/packages/react-code-editor/package.json +++ b/packages/react-code-editor/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-code-editor", - "version": "5.1.1-prerelease.17", + "version": "5.1.1-prerelease.18", "description": "This package provides a PatternFly wrapper for the Monaco code editor\n", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -29,7 +29,7 @@ "clean": "rimraf dist" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.17", + "@patternfly/react-core": "^5.1.1-prerelease.18", "@patternfly/react-icons": "^5.1.1-prerelease.6", "@patternfly/react-styles": "^5.1.1-prerelease.6", "react-dropzone": "14.2.3", diff --git a/packages/react-core/CHANGELOG.md b/packages/react-core/CHANGELOG.md index acde315adbc..1bea89f42e2 100644 --- a/packages/react-core/CHANGELOG.md +++ b/packages/react-core/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.18](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.1.1-prerelease.17...@patternfly/react-core@5.1.1-prerelease.18) (2023-09-21) + +### Bug Fixes + +- **Dropdown:** Add appendTo to dropdownPopperProps interface ([#9635](https://github.com/patternfly/patternfly-react/issues/9635)) ([1bc53da](https://github.com/patternfly/patternfly-react/commit/1bc53da876b757211a237832881820ccad64bdd7)) +- **popper:** add start/end positioning with RTL support, update default ([#9628](https://github.com/patternfly/patternfly-react/issues/9628)) ([033e6bc](https://github.com/patternfly/patternfly-react/commit/033e6bcca19994f0dc1ead8bcd076096d045bd77)) + +### Features + +- **Timestamp:** allowed displayed datetime to be UTC ([#9649](https://github.com/patternfly/patternfly-react/issues/9649)) ([7b3ec92](https://github.com/patternfly/patternfly-react/commit/7b3ec9275e6a8909b1e230c6e6f52d74c9c72842)) + ## [5.1.1-prerelease.17](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.1.1-prerelease.16...@patternfly/react-core@5.1.1-prerelease.17) (2023-09-21) ### Bug Fixes diff --git a/packages/react-core/package.json b/packages/react-core/package.json index 041a3c1aba2..8c2f364d6c7 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-core", - "version": "5.1.1-prerelease.17", + "version": "5.1.1-prerelease.18", "description": "This library provides a set of common React components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", diff --git a/packages/react-docs/CHANGELOG.md b/packages/react-docs/CHANGELOG.md index e65ef138509..52e8b14f98d 100644 --- a/packages/react-docs/CHANGELOG.md +++ b/packages/react-docs/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.1.1-prerelease.19](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.1.1-prerelease.18...@patternfly/react-docs@6.1.1-prerelease.19) (2023-09-21) + +**Note:** Version bump only for package @patternfly/react-docs + ## [6.1.1-prerelease.18](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.1.1-prerelease.17...@patternfly/react-docs@6.1.1-prerelease.18) (2023-09-21) **Note:** Version bump only for package @patternfly/react-docs diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index c9db1e25f1d..53ce0de0feb 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -1,7 +1,7 @@ { "name": "@patternfly/react-docs", "description": "PatternFly React Docs", - "version": "6.1.1-prerelease.18", + "version": "6.1.1-prerelease.19", "publishConfig": { "access": "public" }, @@ -24,11 +24,11 @@ "dependencies": { "@patternfly/patternfly": "5.1.0-prerelease.28", "@patternfly/react-charts": "^7.1.1-prerelease.7", - "@patternfly/react-code-editor": "^5.1.1-prerelease.17", - "@patternfly/react-core": "^5.1.1-prerelease.17", + "@patternfly/react-code-editor": "^5.1.1-prerelease.18", + "@patternfly/react-core": "^5.1.1-prerelease.18", "@patternfly/react-icons": "^5.1.1-prerelease.6", "@patternfly/react-styles": "^5.1.1-prerelease.6", - "@patternfly/react-table": "^5.1.1-prerelease.17", + "@patternfly/react-table": "^5.1.1-prerelease.18", "@patternfly/react-tokens": "^5.1.1-prerelease.6" }, "devDependencies": { diff --git a/packages/react-integration/demo-app-ts/CHANGELOG.md b/packages/react-integration/demo-app-ts/CHANGELOG.md index ec965cb8490..d37e87d6bea 100644 --- a/packages/react-integration/demo-app-ts/CHANGELOG.md +++ b/packages/react-integration/demo-app-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.17](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.16...demo-app-ts@5.1.1-prerelease.17) (2023-09-21) + +**Note:** Version bump only for package demo-app-ts + ## [5.1.1-prerelease.16](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.15...demo-app-ts@5.1.1-prerelease.16) (2023-09-21) **Note:** Version bump only for package demo-app-ts diff --git a/packages/react-integration/demo-app-ts/package.json b/packages/react-integration/demo-app-ts/package.json index 70bab8586a3..27e4499e456 100644 --- a/packages/react-integration/demo-app-ts/package.json +++ b/packages/react-integration/demo-app-ts/package.json @@ -1,7 +1,7 @@ { "name": "demo-app-ts", "private": true, - "version": "5.1.1-prerelease.16", + "version": "5.1.1-prerelease.17", "scripts": { "build:demo-app": "webpack --mode production", "start:demo-app": "webpack-dev-server", @@ -9,7 +9,7 @@ "serve:demo-app": "node scripts/serve" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.17", + "@patternfly/react-core": "^5.1.1-prerelease.18", "react": "^18", "react-dom": "^18", "react-router": "^5.3.3", diff --git a/packages/react-table/CHANGELOG.md b/packages/react-table/CHANGELOG.md index 4f434360cdf..a0e02b81530 100644 --- a/packages/react-table/CHANGELOG.md +++ b/packages/react-table/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.18](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.1.1-prerelease.17...@patternfly/react-table@5.1.1-prerelease.18) (2023-09-21) + +### Bug Fixes + +- **popper:** add start/end positioning with RTL support, update default ([#9628](https://github.com/patternfly/patternfly-react/issues/9628)) ([033e6bc](https://github.com/patternfly/patternfly-react/commit/033e6bcca19994f0dc1ead8bcd076096d045bd77)) + ## [5.1.1-prerelease.17](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.1.1-prerelease.16...@patternfly/react-table@5.1.1-prerelease.17) (2023-09-21) **Note:** Version bump only for package @patternfly/react-table diff --git a/packages/react-table/package.json b/packages/react-table/package.json index a2e3790e383..b646c3aa43c 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-table", - "version": "5.1.1-prerelease.17", + "version": "5.1.1-prerelease.18", "description": "This library provides a set of React table components for use with the PatternFly 4", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -39,7 +39,7 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.17", + "@patternfly/react-core": "^5.1.1-prerelease.18", "@patternfly/react-icons": "^5.1.1-prerelease.6", "@patternfly/react-styles": "^5.1.1-prerelease.6", "@patternfly/react-tokens": "^5.1.1-prerelease.6", From 832d99d4d82fa8db3b245481cd77f72517138888 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 21 Sep 2023 13:28:52 -0400 Subject: [PATCH 019/103] chore(deps): update dependency @patternfly/patternfly to v5.1.0-prerelease.32 (#9642) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/react-core/package.json | 2 +- packages/react-docs/package.json | 2 +- packages/react-icons/package.json | 2 +- packages/react-styles/package.json | 2 +- packages/react-tokens/package.json | 2 +- yarn.lock | 8 ++++---- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/react-core/package.json b/packages/react-core/package.json index 8c2f364d6c7..3459ca26cca 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -53,7 +53,7 @@ "tslib": "^2.5.0" }, "devDependencies": { - "@patternfly/patternfly": "5.1.0-prerelease.28", + "@patternfly/patternfly": "5.1.0-prerelease.32", "@rollup/plugin-commonjs": "^25.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@rollup/plugin-replace": "^5.0.2", diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index 53ce0de0feb..4e4e4778145 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -22,7 +22,7 @@ "test:a11y": "patternfly-a11y --config patternfly-a11y.config" }, "dependencies": { - "@patternfly/patternfly": "5.1.0-prerelease.28", + "@patternfly/patternfly": "5.1.0-prerelease.32", "@patternfly/react-charts": "^7.1.1-prerelease.7", "@patternfly/react-code-editor": "^5.1.1-prerelease.18", "@patternfly/react-core": "^5.1.1-prerelease.18", diff --git a/packages/react-icons/package.json b/packages/react-icons/package.json index edac098cefd..8dedd28f582 100644 --- a/packages/react-icons/package.json +++ b/packages/react-icons/package.json @@ -32,7 +32,7 @@ "@fortawesome/free-brands-svg-icons": "^5.14.0", "@fortawesome/free-regular-svg-icons": "^5.14.0", "@fortawesome/free-solid-svg-icons": "^5.14.0", - "@patternfly/patternfly": "5.1.0-prerelease.28", + "@patternfly/patternfly": "5.1.0-prerelease.32", "fs-extra": "^11.1.1", "glob": "^7.1.2", "rimraf": "^2.6.2", diff --git a/packages/react-styles/package.json b/packages/react-styles/package.json index 0412f50386f..216c0fc98c3 100644 --- a/packages/react-styles/package.json +++ b/packages/react-styles/package.json @@ -18,7 +18,7 @@ "clean": "rimraf dist css" }, "devDependencies": { - "@patternfly/patternfly": "5.1.0-prerelease.28", + "@patternfly/patternfly": "5.1.0-prerelease.32", "camel-case": "^3.0.0", "css": "^2.2.3", "fs-extra": "^11.1.1", diff --git a/packages/react-tokens/package.json b/packages/react-tokens/package.json index 712308c7194..6e7550d038b 100644 --- a/packages/react-tokens/package.json +++ b/packages/react-tokens/package.json @@ -28,7 +28,7 @@ "clean": "rimraf dist" }, "devDependencies": { - "@patternfly/patternfly": "5.1.0-prerelease.28", + "@patternfly/patternfly": "5.1.0-prerelease.32", "css": "^2.2.3", "fs-extra": "^11.1.1", "glob": "^7.1.2", diff --git a/yarn.lock b/yarn.lock index 53eab5007e3..889287929bf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3878,10 +3878,10 @@ puppeteer-cluster "^0.23.0" xmldoc "^1.1.2" -"@patternfly/patternfly@5.1.0-prerelease.28": - version "5.1.0-prerelease.28" - resolved "https://registry.yarnpkg.com/@patternfly/patternfly/-/patternfly-5.1.0-prerelease.28.tgz#8edd60e4b7537e83b8d8fa3cb8d67d8a2112794e" - integrity sha512-Z9PXZ1zV/OrOxeGR5gyAUK4LepU3cyUWLEH6JMp6rxljio1OujM5q54oPJBMAeQLdPyOgeFMLBh4NWu5PvojZg== +"@patternfly/patternfly@5.1.0-prerelease.32": + version "5.1.0-prerelease.32" + resolved "https://registry.yarnpkg.com/@patternfly/patternfly/-/patternfly-5.1.0-prerelease.32.tgz#1a970c9077ce9fabdaa6e1b7fcc6cb035c9b9ad7" + integrity sha512-puUEzfGyNor9iCeEi46E9UoySAAq+V145eE06uU9JF21TxUcA/BgOHTC6abYxDwG5YhdessgI0Eec5s7uafS8Q== "@pkgjs/parseargs@^0.11.0": version "0.11.0" From 72f13c883b528ffc4ca428d068d479e2b688dc79 Mon Sep 17 00:00:00 2001 From: kmcfaul <45077788+kmcfaul@users.noreply.github.com> Date: Thu, 21 Sep 2023 13:48:18 -0400 Subject: [PATCH 020/103] fix(Tabs): allow RTL scrolling (#9633) * fix(Tabs): allow RTL scrolling * add direction assignment to update * update aria label descriptions * add props and deprecate old, update internal state names * update desc --- .../react-core/src/components/Tabs/Tabs.tsx | 76 ++++++++++++------- 1 file changed, 50 insertions(+), 26 deletions(-) diff --git a/packages/react-core/src/components/Tabs/Tabs.tsx b/packages/react-core/src/components/Tabs/Tabs.tsx index 5781894ac37..ea37e047675 100644 --- a/packages/react-core/src/components/Tabs/Tabs.tsx +++ b/packages/react-core/src/components/Tabs/Tabs.tsx @@ -63,10 +63,14 @@ export interface TabsProps extends Omit { static displayName = 'Tabs'; tabList = React.createRef(); leftScrollButtonRef = React.createRef(); + private direction = 'ltr'; constructor(props: TabsProps) { super(props); this.state = { enableScrollButtons: false, showScrollButtons: false, renderScrollButtons: false, - disableLeftScrollButton: true, - disableRightScrollButton: true, + disableBackScrollButton: true, + disableForwardScrollButton: true, shownKeys: this.props.defaultActiveKey !== undefined ? [this.props.defaultActiveKey] : [this.props.activeKey], // only for mountOnEnter case uncontrolledActiveKey: this.props.defaultActiveKey, uncontrolledIsExpandedLocal: this.props.defaultIsExpanded, @@ -177,7 +182,9 @@ class Tabs extends React.Component { isBox: false, hasNoBorderBottom: false, leftScrollAriaLabel: 'Scroll left', + backScrollAriaLabel: 'Scroll back', rightScrollAriaLabel: 'Scroll right', + forwardScrollAriaLabel: 'Scroll forward', component: TabsComponent.div, mountOnEnter: false, unmountOnExit: false, @@ -232,8 +239,8 @@ class Tabs extends React.Component { clearTimeout(this.scrollTimeout); this.scrollTimeout = setTimeout(() => { const container = this.tabList.current; - let disableLeftScrollButton = true; - let disableRightScrollButton = true; + let disableBackScrollButton = true; + let disableForwardScrollButton = true; let enableScrollButtons = false; let overflowingTabCount = 0; @@ -246,8 +253,8 @@ class Tabs extends React.Component { enableScrollButtons = overflowOnLeft || overflowOnRight; - disableLeftScrollButton = !overflowOnLeft; - disableRightScrollButton = !overflowOnRight; + disableBackScrollButton = !overflowOnLeft; + disableForwardScrollButton = !overflowOnRight; } if (isOverflowHorizontal) { @@ -256,14 +263,14 @@ class Tabs extends React.Component { this.setState({ enableScrollButtons, - disableLeftScrollButton, - disableRightScrollButton, + disableBackScrollButton, + disableForwardScrollButton, overflowingTabCount }); }, 100); }; - scrollLeft = () => { + scrollBack = () => { // find first Element that is fully in view on the left, then scroll to the element before it if (this.tabList.current) { const container = this.tabList.current; @@ -278,12 +285,18 @@ class Tabs extends React.Component { } } if (lastElementOutOfView) { - container.scrollLeft -= lastElementOutOfView.scrollWidth; + if (this.direction === 'ltr') { + // LTR scrolls left to go back + container.scrollLeft -= lastElementOutOfView.scrollWidth; + } else { + // RTL scrolls right to go back + container.scrollLeft += lastElementOutOfView.scrollWidth; + } } } }; - scrollRight = () => { + scrollForward = () => { // find last Element that is fully in view on the right, then scroll to the element after it if (this.tabList.current) { const container = this.tabList.current as any; @@ -297,7 +310,13 @@ class Tabs extends React.Component { } } if (firstElementOutOfView) { - container.scrollLeft += firstElementOutOfView.scrollWidth; + if (this.direction === 'ltr') { + // LTR scrolls right to go forward + container.scrollLeft += firstElementOutOfView.scrollWidth; + } else { + // RTL scrolls left to go forward + container.scrollLeft -= firstElementOutOfView.scrollWidth; + } } } }; @@ -314,6 +333,7 @@ class Tabs extends React.Component { if (canUseDOM) { window.addEventListener('resize', this.handleScrollButtons, false); } + this.direction = getComputedStyle(this.tabList.current).getPropertyValue('direction'); // call the handle resize function to check if scroll buttons should be shown this.handleScrollButtons(); } @@ -360,6 +380,8 @@ class Tabs extends React.Component { } else if (prevState.enableScrollButtons && !enableScrollButtons) { this.setState({ showScrollButtons: false }); } + + this.direction = getComputedStyle(this.tabList.current).getPropertyValue('direction'); } render() { @@ -376,6 +398,8 @@ class Tabs extends React.Component { hasNoBorderBottom, leftScrollAriaLabel, rightScrollAriaLabel, + backScrollAriaLabel, + forwardScrollAriaLabel, 'aria-label': ariaLabel, component, ouiaId, @@ -400,8 +424,8 @@ class Tabs extends React.Component { const { showScrollButtons, renderScrollButtons, - disableLeftScrollButton, - disableRightScrollButton, + disableBackScrollButton, + disableForwardScrollButton, shownKeys, uncontrolledActiveKey, uncontrolledIsExpandedLocal, @@ -497,10 +521,10 @@ class Tabs extends React.Component { From 262e474df57437fead3a7c4e995a96c68eb8f9ef Mon Sep 17 00:00:00 2001 From: patternfly-build Date: Thu, 21 Sep 2023 18:20:49 +0000 Subject: [PATCH 021/103] chore(release): releasing packages [ci skip] - @patternfly/react-charts@7.1.1-prerelease.8 - @patternfly/react-code-editor@5.1.1-prerelease.19 - @patternfly/react-core@5.1.1-prerelease.19 - @patternfly/react-docs@6.1.1-prerelease.20 - @patternfly/react-icons@5.1.1-prerelease.7 - demo-app-ts@5.1.1-prerelease.18 - @patternfly/react-styles@5.1.1-prerelease.7 - @patternfly/react-table@5.1.1-prerelease.19 - @patternfly/react-tokens@5.1.1-prerelease.7 --- packages/react-charts/CHANGELOG.md | 4 ++++ packages/react-charts/package.json | 6 +++--- packages/react-code-editor/CHANGELOG.md | 4 ++++ packages/react-code-editor/package.json | 8 ++++---- packages/react-core/CHANGELOG.md | 6 ++++++ packages/react-core/package.json | 8 ++++---- packages/react-docs/CHANGELOG.md | 4 ++++ packages/react-docs/package.json | 16 ++++++++-------- packages/react-icons/CHANGELOG.md | 4 ++++ packages/react-icons/package.json | 2 +- .../react-integration/demo-app-ts/CHANGELOG.md | 4 ++++ .../react-integration/demo-app-ts/package.json | 4 ++-- packages/react-styles/CHANGELOG.md | 4 ++++ packages/react-styles/package.json | 2 +- packages/react-table/CHANGELOG.md | 4 ++++ packages/react-table/package.json | 10 +++++----- packages/react-tokens/CHANGELOG.md | 4 ++++ packages/react-tokens/package.json | 2 +- 18 files changed, 67 insertions(+), 29 deletions(-) diff --git a/packages/react-charts/CHANGELOG.md b/packages/react-charts/CHANGELOG.md index 473eec67629..c70f3a1d56c 100644 --- a/packages/react-charts/CHANGELOG.md +++ b/packages/react-charts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 7.1.1-prerelease.8 (2023-09-21) + +**Note:** Version bump only for package @patternfly/react-charts + ## [7.1.1-prerelease.7](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-charts@7.1.1-prerelease.6...@patternfly/react-charts@7.1.1-prerelease.7) (2023-09-18) **Note:** Version bump only for package @patternfly/react-charts diff --git a/packages/react-charts/package.json b/packages/react-charts/package.json index 9454fbec1db..881db4d6c90 100644 --- a/packages/react-charts/package.json +++ b/packages/react-charts/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-charts", - "version": "7.1.1-prerelease.7", + "version": "7.1.1-prerelease.8", "description": "This library provides a set of React chart components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -28,8 +28,8 @@ }, "homepage": "https://github.com/patternfly/patternfly-react#readme", "dependencies": { - "@patternfly/react-styles": "^5.1.1-prerelease.6", - "@patternfly/react-tokens": "^5.1.1-prerelease.6", + "@patternfly/react-styles": "^5.1.1-prerelease.7", + "@patternfly/react-tokens": "^5.1.1-prerelease.7", "hoist-non-react-statics": "^3.3.0", "lodash": "^4.17.19", "tslib": "^2.5.0", diff --git a/packages/react-code-editor/CHANGELOG.md b/packages/react-code-editor/CHANGELOG.md index a311e4a6c37..b65902a21b9 100644 --- a/packages/react-code-editor/CHANGELOG.md +++ b/packages/react-code-editor/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.19](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.1.1-prerelease.18...@patternfly/react-code-editor@5.1.1-prerelease.19) (2023-09-21) + +**Note:** Version bump only for package @patternfly/react-code-editor + ## [5.1.1-prerelease.18](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.1.1-prerelease.17...@patternfly/react-code-editor@5.1.1-prerelease.18) (2023-09-21) **Note:** Version bump only for package @patternfly/react-code-editor diff --git a/packages/react-code-editor/package.json b/packages/react-code-editor/package.json index 98df271dc05..08dd3fafa37 100644 --- a/packages/react-code-editor/package.json +++ b/packages/react-code-editor/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-code-editor", - "version": "5.1.1-prerelease.18", + "version": "5.1.1-prerelease.19", "description": "This package provides a PatternFly wrapper for the Monaco code editor\n", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -29,9 +29,9 @@ "clean": "rimraf dist" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.18", - "@patternfly/react-icons": "^5.1.1-prerelease.6", - "@patternfly/react-styles": "^5.1.1-prerelease.6", + "@patternfly/react-core": "^5.1.1-prerelease.19", + "@patternfly/react-icons": "^5.1.1-prerelease.7", + "@patternfly/react-styles": "^5.1.1-prerelease.7", "react-dropzone": "14.2.3", "tslib": "^2.5.0" }, diff --git a/packages/react-core/CHANGELOG.md b/packages/react-core/CHANGELOG.md index 1bea89f42e2..14fc1153e74 100644 --- a/packages/react-core/CHANGELOG.md +++ b/packages/react-core/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.19](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.1.1-prerelease.18...@patternfly/react-core@5.1.1-prerelease.19) (2023-09-21) + +### Bug Fixes + +- **Tabs:** allow RTL scrolling ([#9633](https://github.com/patternfly/patternfly-react/issues/9633)) ([72f13c8](https://github.com/patternfly/patternfly-react/commit/72f13c883b528ffc4ca428d068d479e2b688dc79)) + ## [5.1.1-prerelease.18](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.1.1-prerelease.17...@patternfly/react-core@5.1.1-prerelease.18) (2023-09-21) ### Bug Fixes diff --git a/packages/react-core/package.json b/packages/react-core/package.json index 3459ca26cca..dff8d38e696 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-core", - "version": "5.1.1-prerelease.18", + "version": "5.1.1-prerelease.19", "description": "This library provides a set of common React components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -45,9 +45,9 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-icons": "^5.1.1-prerelease.6", - "@patternfly/react-styles": "^5.1.1-prerelease.6", - "@patternfly/react-tokens": "^5.1.1-prerelease.6", + "@patternfly/react-icons": "^5.1.1-prerelease.7", + "@patternfly/react-styles": "^5.1.1-prerelease.7", + "@patternfly/react-tokens": "^5.1.1-prerelease.7", "focus-trap": "7.5.2", "react-dropzone": "^14.2.3", "tslib": "^2.5.0" diff --git a/packages/react-docs/CHANGELOG.md b/packages/react-docs/CHANGELOG.md index 52e8b14f98d..877f1379c05 100644 --- a/packages/react-docs/CHANGELOG.md +++ b/packages/react-docs/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.1.1-prerelease.20](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.1.1-prerelease.19...@patternfly/react-docs@6.1.1-prerelease.20) (2023-09-21) + +**Note:** Version bump only for package @patternfly/react-docs + ## [6.1.1-prerelease.19](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.1.1-prerelease.18...@patternfly/react-docs@6.1.1-prerelease.19) (2023-09-21) **Note:** Version bump only for package @patternfly/react-docs diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index 4e4e4778145..90a5cb6ae01 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -1,7 +1,7 @@ { "name": "@patternfly/react-docs", "description": "PatternFly React Docs", - "version": "6.1.1-prerelease.19", + "version": "6.1.1-prerelease.20", "publishConfig": { "access": "public" }, @@ -23,13 +23,13 @@ }, "dependencies": { "@patternfly/patternfly": "5.1.0-prerelease.32", - "@patternfly/react-charts": "^7.1.1-prerelease.7", - "@patternfly/react-code-editor": "^5.1.1-prerelease.18", - "@patternfly/react-core": "^5.1.1-prerelease.18", - "@patternfly/react-icons": "^5.1.1-prerelease.6", - "@patternfly/react-styles": "^5.1.1-prerelease.6", - "@patternfly/react-table": "^5.1.1-prerelease.18", - "@patternfly/react-tokens": "^5.1.1-prerelease.6" + "@patternfly/react-charts": "^7.1.1-prerelease.8", + "@patternfly/react-code-editor": "^5.1.1-prerelease.19", + "@patternfly/react-core": "^5.1.1-prerelease.19", + "@patternfly/react-icons": "^5.1.1-prerelease.7", + "@patternfly/react-styles": "^5.1.1-prerelease.7", + "@patternfly/react-table": "^5.1.1-prerelease.19", + "@patternfly/react-tokens": "^5.1.1-prerelease.7" }, "devDependencies": { "@patternfly/documentation-framework": "^5.0.15", diff --git a/packages/react-icons/CHANGELOG.md b/packages/react-icons/CHANGELOG.md index 269ae7e0bab..9be4fe709b7 100644 --- a/packages/react-icons/CHANGELOG.md +++ b/packages/react-icons/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 5.1.1-prerelease.7 (2023-09-21) + +**Note:** Version bump only for package @patternfly/react-icons + ## 5.1.1-prerelease.6 (2023-09-18) **Note:** Version bump only for package @patternfly/react-icons diff --git a/packages/react-icons/package.json b/packages/react-icons/package.json index 8dedd28f582..9c11fef0497 100644 --- a/packages/react-icons/package.json +++ b/packages/react-icons/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-icons", - "version": "5.1.1-prerelease.6", + "version": "5.1.1-prerelease.7", "description": "PatternFly 4 Icons as React Components", "main": "dist/js/index.js", "module": "dist/esm/index.js", diff --git a/packages/react-integration/demo-app-ts/CHANGELOG.md b/packages/react-integration/demo-app-ts/CHANGELOG.md index d37e87d6bea..ec767ae5271 100644 --- a/packages/react-integration/demo-app-ts/CHANGELOG.md +++ b/packages/react-integration/demo-app-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.18](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.17...demo-app-ts@5.1.1-prerelease.18) (2023-09-21) + +**Note:** Version bump only for package demo-app-ts + ## [5.1.1-prerelease.17](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.16...demo-app-ts@5.1.1-prerelease.17) (2023-09-21) **Note:** Version bump only for package demo-app-ts diff --git a/packages/react-integration/demo-app-ts/package.json b/packages/react-integration/demo-app-ts/package.json index 27e4499e456..66436410ba6 100644 --- a/packages/react-integration/demo-app-ts/package.json +++ b/packages/react-integration/demo-app-ts/package.json @@ -1,7 +1,7 @@ { "name": "demo-app-ts", "private": true, - "version": "5.1.1-prerelease.17", + "version": "5.1.1-prerelease.18", "scripts": { "build:demo-app": "webpack --mode production", "start:demo-app": "webpack-dev-server", @@ -9,7 +9,7 @@ "serve:demo-app": "node scripts/serve" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.18", + "@patternfly/react-core": "^5.1.1-prerelease.19", "react": "^18", "react-dom": "^18", "react-router": "^5.3.3", diff --git a/packages/react-styles/CHANGELOG.md b/packages/react-styles/CHANGELOG.md index 32300931291..686d327be48 100644 --- a/packages/react-styles/CHANGELOG.md +++ b/packages/react-styles/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 5.1.1-prerelease.7 (2023-09-21) + +**Note:** Version bump only for package @patternfly/react-styles + ## 5.1.1-prerelease.6 (2023-09-18) **Note:** Version bump only for package @patternfly/react-styles diff --git a/packages/react-styles/package.json b/packages/react-styles/package.json index 216c0fc98c3..cb445ed1446 100644 --- a/packages/react-styles/package.json +++ b/packages/react-styles/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-styles", - "version": "5.1.1-prerelease.6", + "version": "5.1.1-prerelease.7", "main": "dist/js/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", diff --git a/packages/react-table/CHANGELOG.md b/packages/react-table/CHANGELOG.md index a0e02b81530..950538030dd 100644 --- a/packages/react-table/CHANGELOG.md +++ b/packages/react-table/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.19](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.1.1-prerelease.18...@patternfly/react-table@5.1.1-prerelease.19) (2023-09-21) + +**Note:** Version bump only for package @patternfly/react-table + ## [5.1.1-prerelease.18](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.1.1-prerelease.17...@patternfly/react-table@5.1.1-prerelease.18) (2023-09-21) ### Bug Fixes diff --git a/packages/react-table/package.json b/packages/react-table/package.json index b646c3aa43c..875e756069e 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-table", - "version": "5.1.1-prerelease.18", + "version": "5.1.1-prerelease.19", "description": "This library provides a set of React table components for use with the PatternFly 4", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -39,10 +39,10 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.18", - "@patternfly/react-icons": "^5.1.1-prerelease.6", - "@patternfly/react-styles": "^5.1.1-prerelease.6", - "@patternfly/react-tokens": "^5.1.1-prerelease.6", + "@patternfly/react-core": "^5.1.1-prerelease.19", + "@patternfly/react-icons": "^5.1.1-prerelease.7", + "@patternfly/react-styles": "^5.1.1-prerelease.7", + "@patternfly/react-tokens": "^5.1.1-prerelease.7", "lodash": "^4.17.19", "tslib": "^2.5.0" }, diff --git a/packages/react-tokens/CHANGELOG.md b/packages/react-tokens/CHANGELOG.md index c43f6a1aabb..388f2f57d3b 100644 --- a/packages/react-tokens/CHANGELOG.md +++ b/packages/react-tokens/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 5.1.1-prerelease.7 (2023-09-21) + +**Note:** Version bump only for package @patternfly/react-tokens + ## 5.1.1-prerelease.6 (2023-09-18) **Note:** Version bump only for package @patternfly/react-tokens diff --git a/packages/react-tokens/package.json b/packages/react-tokens/package.json index 6e7550d038b..3173980c68d 100644 --- a/packages/react-tokens/package.json +++ b/packages/react-tokens/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-tokens", - "version": "5.1.1-prerelease.6", + "version": "5.1.1-prerelease.7", "description": "This library provides access to the design tokens of PatternFly 4 from JavaScript", "main": "dist/js/index.js", "module": "dist/esm/index.js", From faddb9cf243a5d4e0ac4cebd95c56e5723f7a8f2 Mon Sep 17 00:00:00 2001 From: kmcfaul <45077788+kmcfaul@users.noreply.github.com> Date: Thu, 21 Sep 2023 14:35:00 -0400 Subject: [PATCH 022/103] fix(Nav): allow RTL scrolling (#9637) * fix(Nav): allow rtl scrolling * add direction assignment to update * update aria label descriptions * add new props and deprecate old * update desc * update other test snaps --- .../react-core/src/components/Nav/NavList.tsx | 56 +++++++++++++++---- .../__tests__/__snapshots__/Nav.test.tsx.snap | 20 +++---- .../__snapshots__/Page.test.tsx.snap | 12 ++-- 3 files changed, 60 insertions(+), 28 deletions(-) diff --git a/packages/react-core/src/components/Nav/NavList.tsx b/packages/react-core/src/components/Nav/NavList.tsx index acb8de5776e..27ee81f9ba3 100644 --- a/packages/react-core/src/components/Nav/NavList.tsx +++ b/packages/react-core/src/components/Nav/NavList.tsx @@ -14,10 +14,14 @@ export interface NavListProps children?: React.ReactNode; /** Additional classes added to the list */ className?: string; - /** Aria-label for the left scroll button */ + /** @deprecated Please use backScrollAriaLabel. Aria-label for the left scroll button */ ariaLeftScroll?: string; - /** Aria-label for the right scroll button */ + /** @deprecated Please use forwardScrollAriaLabel. Aria-label for the right scroll button */ ariaRightScroll?: string; + /** Aria-label for the back scroll button */ + backScrollAriaLabel?: string; + /** Aria-label for the forward scroll button */ + forwardScrollAriaLabel?: string; } class NavList extends React.Component { @@ -26,8 +30,11 @@ class NavList extends React.Component { context!: React.ContextType; static defaultProps: NavListProps = { ariaLeftScroll: 'Scroll left', - ariaRightScroll: 'Scroll right' + backScrollAriaLabel: 'Scroll back', + ariaRightScroll: 'Scroll right', + forwardScrollAriaLabel: 'Scroll foward' }; + private direction = 'ltr'; state = { scrollViewAtStart: false, @@ -51,7 +58,7 @@ class NavList extends React.Component { } }; - scrollLeft = () => { + scrollBack = () => { // find first Element that is fully in view on the left, then scroll to the element before it const container = this.navList.current; if (container) { @@ -65,13 +72,19 @@ class NavList extends React.Component { } } if (lastElementOutOfView) { - container.scrollLeft -= lastElementOutOfView.scrollWidth; + if (this.direction === 'ltr') { + // LTR scrolls left to go back + container.scrollLeft -= lastElementOutOfView.scrollWidth; + } else { + // RTL scrolls right to go back + container.scrollLeft += lastElementOutOfView.scrollWidth; + } } this.handleScrollButtons(); } }; - scrollRight = () => { + scrollForward = () => { // find last Element that is fully in view on the right, then scroll to the element after it const container = this.navList.current; if (container) { @@ -85,7 +98,13 @@ class NavList extends React.Component { } } if (firstElementOutOfView) { - container.scrollLeft += firstElementOutOfView.scrollWidth; + if (this.direction === 'ltr') { + // LTR scrolls right to go forward + container.scrollLeft += firstElementOutOfView.scrollWidth; + } else { + // RTL scrolls left to go forward + container.scrollLeft -= firstElementOutOfView.scrollWidth; + } } this.handleScrollButtons(); } @@ -93,6 +112,7 @@ class NavList extends React.Component { componentDidMount() { this.observer = getResizeObserver(this.navList.current, this.handleScrollButtons, true); + this.direction = getComputedStyle(this.navList.current).getPropertyValue('direction'); this.handleScrollButtons(); } @@ -100,8 +120,20 @@ class NavList extends React.Component { this.observer(); } + componentDidUpdate() { + this.direction = getComputedStyle(this.navList.current).getPropertyValue('direction'); + } + render() { - const { children, className, ariaLeftScroll, ariaRightScroll, ...props } = this.props; + const { + children, + className, + ariaLeftScroll, + ariaRightScroll, + backScrollAriaLabel, + forwardScrollAriaLabel, + ...props + } = this.props; const { scrollViewAtStart, scrollViewAtEnd } = this.state; return ( @@ -113,8 +145,8 @@ class NavList extends React.Component { {isHorizontal && ( + + + ); + + const selectDropdownContent = ( + + {Object.entries(firstOptions).map(([value, { type }]) => ( + + {type} + {` ${value}`} + + ))} + + ); + + const selectToggleContent = ({ showText }: { showText: boolean }) => { + if (!containerSelected) { + return 'Select'; + } + return ( + + {firstOptions[containerSelected].type} + {showText && ` ${containerSelected}`} + + ); + }; + + const LogsSearchInput = ( + } breakpoint="lg"> + + + + + ); + + const leftAlignedItemsDesktop = ( + + + + + + + + + + + + ); + + const leftAlignedItemsMobile = ( + + + Select container
}> + + + + + Options
}> + + + + + {isPaused ? 'Resume log' : 'Pause log'}}> + + + + + ); + + const leftAlignedItems = ( + + {leftAlignedItemsDesktop} + {leftAlignedItemsMobile} + + ); + + const rightAlignedItemsDesktop = ( + + + setExternalExpanded(isOpen)} + onSelect={onExternalSelect} + toggle={(toggleRef) => ( + + External logs + + )} + > + {externalDropdownItems} + + + + setDownloadExpanded(isOpen)} + onSelect={onDownloadSelect} + toggle={(toggleRef) => ( + + Download + + )} + > + {downloadDropdownItems} + + + + ); + + const rightAlignedItemsMobile = ( + + + External logs}> + setExternalExpandedMobile(isOpen)} + onSelect={onExternalSelectMobile} + toggle={(toggleRef) => ( + } + aria-label="External logs" + /> + )} + > + {externalDropdownItems} + + + + + Download}> + setDownloadExpandedMobile(isOpen)} + onSelect={onDownloadSelectMobile} + popperProps={{ position: 'right' }} + toggle={(toggleRef) => ( + } + aria-label="Download" + /> + )} + > + {downloadDropdownItems} + + + + + ); + + const rightAlignedItems = ( + + {LogsSearchInput} + {rightAlignedItemsDesktop} + {rightAlignedItemsMobile} + + Expand}> + + + + + ); + + const items = ( + + {leftAlignedItems} + {rightAlignedItems} + + ); + + return ( + + + + {items} + + + + ); +}; diff --git a/packages/react-core/src/demos/index.ts b/packages/react-core/src/demos/index.ts new file mode 100644 index 00000000000..e10143716db --- /dev/null +++ b/packages/react-core/src/demos/index.ts @@ -0,0 +1,2 @@ +export * from './DashboardHeader'; +export * from './DashboardWrapper'; diff --git a/packages/react-core/src/index.ts b/packages/react-core/src/index.ts index 2a53b5ecaaa..3337613e309 100644 --- a/packages/react-core/src/index.ts +++ b/packages/react-core/src/index.ts @@ -1,4 +1,5 @@ export * from './components'; +export * from './demos'; export * from './layouts'; export * from './helpers'; export { BaseSizes, DeviceSizes } from './styles/sizes'; diff --git a/packages/react-core/tsconfig.json b/packages/react-core/tsconfig.json index 3a4be05f922..0a6395a44d0 100644 --- a/packages/react-core/tsconfig.json +++ b/packages/react-core/tsconfig.json @@ -11,7 +11,10 @@ "./deprecated": ["./src/deprecated"] } }, - "include": ["./src/*", "./src/**/*"], + "include": [ + "./src/*", + "./src/**/*", + ], "references": [ { "path": "../react-styles" diff --git a/packages/react-table/src/docs/demos/Table.md b/packages/react-table/src/docs/demos/Table.md index 967d23c2f05..6aebb44de5b 100644 --- a/packages/react-table/src/docs/demos/Table.md +++ b/packages/react-table/src/docs/demos/Table.md @@ -47,7 +47,6 @@ import AngleDownIcon from '@patternfly/react-icons/dist/esm/icons/angle-down-ico import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon'; import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon'; import AttentionBellIcon from '@patternfly/react-icons/dist/esm/icons/attention-bell-icon'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; import BlueprintIcon from '@patternfly/react-icons/dist/esm/icons/blueprint-icon'; import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon'; import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData'; @@ -1468,7 +1467,7 @@ import { PageSection } from '@patternfly/react-core'; import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; +import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; export const TableEmptyState: React.FunctionComponent = () => ( @@ -1529,7 +1528,7 @@ import { PageSection, Spinner } from '@patternfly/react-core'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; +import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; export const LoadingStateDemo: React.FunctionComponent = () => ( @@ -1580,7 +1579,7 @@ import { } from '@patternfly/react-core'; import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon'; import globalDangerColor200 from '@patternfly/react-tokens/dist/esm/global_danger_color_200'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; +import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; export const ErrorStateDemo: React.FunctionComponent = () => ( diff --git a/packages/react-table/src/docs/demos/table-demos/BulkSelect.jsx b/packages/react-table/src/docs/demos/table-demos/BulkSelect.jsx index 660b15c3903..7625126924e 100644 --- a/packages/react-table/src/docs/demos/table-demos/BulkSelect.jsx +++ b/packages/react-table/src/docs/demos/table-demos/BulkSelect.jsx @@ -14,7 +14,7 @@ import { ToolbarItem } from '@patternfly/react-core'; import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; +import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData'; export const BulkSelectTableDemo = () => { diff --git a/packages/react-table/src/docs/demos/table-demos/ColumnManagement.jsx b/packages/react-table/src/docs/demos/table-demos/ColumnManagement.jsx index c6281aae543..e551df541db 100644 --- a/packages/react-table/src/docs/demos/table-demos/ColumnManagement.jsx +++ b/packages/react-table/src/docs/demos/table-demos/ColumnManagement.jsx @@ -28,7 +28,7 @@ import { import { Table, TableText, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table'; import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon'; import SortAmountDownIcon from '@patternfly/react-icons/dist/esm/icons/sort-amount-down-icon'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper.js'; +import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper.js'; import { capitalize } from '@patternfly/react-table/src/components/Table/utils/utils'; import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData'; diff --git a/packages/react-table/src/docs/demos/table-demos/Compact.jsx b/packages/react-table/src/docs/demos/table-demos/Compact.jsx index d88949489b7..381fb629729 100644 --- a/packages/react-table/src/docs/demos/table-demos/Compact.jsx +++ b/packages/react-table/src/docs/demos/table-demos/Compact.jsx @@ -17,7 +17,7 @@ import { } from '@patternfly/react-core'; import { Table, TableText, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table'; import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; +import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData'; export const CompactTable = () => { diff --git a/packages/react-table/src/docs/demos/table-demos/CompoundExpansion.jsx b/packages/react-table/src/docs/demos/table-demos/CompoundExpansion.jsx index 8032a33c911..1e0bf2a48b4 100644 --- a/packages/react-table/src/docs/demos/table-demos/CompoundExpansion.jsx +++ b/packages/react-table/src/docs/demos/table-demos/CompoundExpansion.jsx @@ -19,7 +19,7 @@ import { import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon'; import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon'; import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; +import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon'; export const CompoundExpandable = () => { diff --git a/packages/react-table/src/docs/demos/table-demos/ExpandCollapseAll.jsx b/packages/react-table/src/docs/demos/table-demos/ExpandCollapseAll.jsx index 72f4aa4079b..f7d6d5f18fb 100644 --- a/packages/react-table/src/docs/demos/table-demos/ExpandCollapseAll.jsx +++ b/packages/react-table/src/docs/demos/table-demos/ExpandCollapseAll.jsx @@ -1,7 +1,7 @@ import React from 'react'; import { Card, Label, PageSection, TextVariants, Text, TextContent } from '@patternfly/react-core'; import { Table, Thead, Tbody, Tr, Th, Td, ExpandableRowContent } from '@patternfly/react-table'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; +import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; const expandableColumns = ['Servers', 'Threads', 'Applications', 'Workspaces', 'Status']; diff --git a/packages/react-table/src/docs/demos/table-demos/SortableResponsive.jsx b/packages/react-table/src/docs/demos/table-demos/SortableResponsive.jsx index c83212033d5..bc7978746af 100644 --- a/packages/react-table/src/docs/demos/table-demos/SortableResponsive.jsx +++ b/packages/react-table/src/docs/demos/table-demos/SortableResponsive.jsx @@ -38,7 +38,7 @@ import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon'; import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon'; import SortAmountDownIcon from '@patternfly/react-icons/dist/esm/icons/sort-amount-down-icon'; import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; +import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon'; import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData'; diff --git a/packages/react-table/src/docs/demos/table-demos/StaticBottomPagination.jsx b/packages/react-table/src/docs/demos/table-demos/StaticBottomPagination.jsx index 58f64349a58..0c79f940062 100644 --- a/packages/react-table/src/docs/demos/table-demos/StaticBottomPagination.jsx +++ b/packages/react-table/src/docs/demos/table-demos/StaticBottomPagination.jsx @@ -17,7 +17,7 @@ import { } from '@patternfly/react-core'; import { Table, TableText, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table'; import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; +import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData'; export const StaticBottomPagination = () => { diff --git a/packages/react-table/src/docs/demos/table-demos/StickyFirstColumn.jsx b/packages/react-table/src/docs/demos/table-demos/StickyFirstColumn.jsx index ed4815047d1..f5dcc78e39b 100644 --- a/packages/react-table/src/docs/demos/table-demos/StickyFirstColumn.jsx +++ b/packages/react-table/src/docs/demos/table-demos/StickyFirstColumn.jsx @@ -1,7 +1,7 @@ import React from 'react'; import { Table, Thead, Tr, Th, Tbody, Td, InnerScrollContainer } from '@patternfly/react-table'; import { Card, PageSection } from '@patternfly/react-core'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; +import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; export const StickyFirstColumn = () => { const facts = Array.from( diff --git a/packages/react-table/src/docs/demos/table-demos/StickyHeader.jsx b/packages/react-table/src/docs/demos/table-demos/StickyHeader.jsx index 53888d8341f..f1cac148e51 100644 --- a/packages/react-table/src/docs/demos/table-demos/StickyHeader.jsx +++ b/packages/react-table/src/docs/demos/table-demos/StickyHeader.jsx @@ -2,7 +2,7 @@ import React from 'react'; import { Card, Label, PageSection } from '@patternfly/react-core'; import { Table, Thead, Tr, Th, Tbody, Td, TableText } from '@patternfly/react-table'; -import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper'; +import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData'; export const StickyHeader: React.FunctionComponent = () => { diff --git a/packages/rollup.base.js b/packages/rollup.base.js index df6dd17252d..67c6de55065 100644 --- a/packages/rollup.base.js +++ b/packages/rollup.base.js @@ -3,6 +3,7 @@ const commonjs = require('@rollup/plugin-commonjs'); const scss = require('rollup-plugin-scss'); const replace = require('@rollup/plugin-replace'); const { terser } = require('rollup-plugin-terser'); +const svg = require('rollup-plugin-svg'); const isProduction = process.env.IS_PRODUCTION; let exitCode = 0; @@ -38,6 +39,7 @@ module.exports = ({ packageName, name }) => ({ nodeResolve(), commonjs(), scss(), + svg(), isProduction && terser(), circularFailPlugin() ], diff --git a/yarn.lock b/yarn.lock index 55935b533e6..c16bd628c0d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9083,6 +9083,11 @@ estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== +estree-walker@^0.2.1: + version "0.2.1" + resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-0.2.1.tgz#bdafe8095383d8414d5dc2ecf4c9173b6db9412e" + integrity sha512-6/I1dwNKk0N9iGOU3ydzAAurz4NPo/ttxZNCqgIVbWFvWyzWBSNonRrJ5CpjDuyBfmM7ENN7WCzUi9aT/UPXXQ== + estree-walker@^0.6.1: version "0.6.1" resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz" @@ -12349,6 +12354,11 @@ jest-snapshot@^27.2.5: pretty-format "^27.2.5" semver "^7.3.2" +jest-transform-stub@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/jest-transform-stub/-/jest-transform-stub-2.0.0.tgz#19018b0851f7568972147a5d60074b55f0225a7d" + integrity sha512-lspHaCRx/mBbnm3h4uMMS3R5aZzMwyNpNIJLXj4cEsV0mIUtS4IjYJLSoyjRCtnxb6RIGJ4NL2quZzfIeNhbkg== + jest-util@^27.2.5: version "27.2.5" resolved "https://registry.npmjs.org/jest-util/-/jest-util-27.2.5.tgz" @@ -16909,6 +16919,13 @@ rollup-plugin-scss@^4.0.0: dependencies: rollup-pluginutils "^2.3.3" +rollup-plugin-svg@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/rollup-plugin-svg/-/rollup-plugin-svg-2.0.0.tgz#ce11b55e915d5b2190328c4e6632bd6b4fe12ee9" + integrity sha512-DmE7dSQHo1SC5L2uH2qul3Mjyd5oV6U1aVVkyvTLX/mUsRink7f1b1zaIm+32GEBA6EHu8H/JJi3DdWqM53ySQ== + dependencies: + rollup-pluginutils "^1.3.1" + rollup-plugin-terser@^7.0.2: version "7.0.2" resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz#e8fbba4869981b2dc35ae7e8a502d5c6c04d324d" @@ -16919,6 +16936,14 @@ rollup-plugin-terser@^7.0.2: serialize-javascript "^4.0.0" terser "^5.0.0" +rollup-pluginutils@^1.3.1: + version "1.5.2" + resolved "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-1.5.2.tgz#1e156e778f94b7255bfa1b3d0178be8f5c552408" + integrity sha512-SjdWWWO/CUoMpDy8RUbZ/pSpG68YHmhk5ROKNIoi2En9bJ8bTt3IhYi254RWiTclQmL7Awmrq+rZFOhZkJAHmQ== + dependencies: + estree-walker "^0.2.1" + minimatch "^3.0.2" + rollup-pluginutils@^2.3.3: version "2.8.2" resolved "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz" From 274db5b5a4e8e01f15623a0743b2876aaff953ca Mon Sep 17 00:00:00 2001 From: Jenny <32821331+jenny-s51@users.noreply.github.com> Date: Fri, 6 Oct 2023 09:40:39 -0400 Subject: [PATCH 040/103] chore(CodeBlock): update tests (#9546) * chore: update codeblock tests * chore(CodeBlock): update to use getByText * PR feedback from Eric and Titani --- .../CodeBlock/__tests__/CodeBlock.test.tsx | 41 +++++++------ .../__tests__/CodeBlockAction.test.tsx | 26 +++++++++ .../__tests__/CodeBlockCode.test.tsx | 36 ++++++++++++ .../__snapshots__/CodeBlock.test.tsx.snap | 57 ++----------------- .../CodeBlockAction.test.tsx.snap | 11 ++++ .../__snapshots__/CodeBlockCode.test.tsx.snap | 15 +++++ 6 files changed, 115 insertions(+), 71 deletions(-) create mode 100644 packages/react-core/src/components/CodeBlock/__tests__/CodeBlockAction.test.tsx create mode 100644 packages/react-core/src/components/CodeBlock/__tests__/CodeBlockCode.test.tsx create mode 100644 packages/react-core/src/components/CodeBlock/__tests__/__snapshots__/CodeBlockAction.test.tsx.snap create mode 100644 packages/react-core/src/components/CodeBlock/__tests__/__snapshots__/CodeBlockCode.test.tsx.snap diff --git a/packages/react-core/src/components/CodeBlock/__tests__/CodeBlock.test.tsx b/packages/react-core/src/components/CodeBlock/__tests__/CodeBlock.test.tsx index d97cc37b55d..9125aed8f4e 100644 --- a/packages/react-core/src/components/CodeBlock/__tests__/CodeBlock.test.tsx +++ b/packages/react-core/src/components/CodeBlock/__tests__/CodeBlock.test.tsx @@ -1,30 +1,35 @@ import React from 'react'; -import { render } from '@testing-library/react'; +import { render, screen } from '@testing-library/react'; import { CodeBlock } from '../CodeBlock'; -import { CodeBlockAction } from '../CodeBlockAction'; -import { CodeBlockCode } from '../CodeBlockCode'; +import styles from '@patternfly/react-styles/css/components/CodeBlock/code-block'; -test('CodeBlock renders successfully', () => { - const { asFragment } = render(test text); - expect(asFragment()).toMatchSnapshot(); +test('CodeBlock renders', () => { + render(test text); + expect(screen.getByText('test text')).toBeVisible(); }); -test('CodeBlockAction renders successfully', () => { - const { asFragment } = render(action); - expect(asFragment()).toMatchSnapshot(); -}); +test(`CodeBlock content renders with class ${styles.codeBlockContent} by default`, () => { + render(Test); -test('CodeBlockCode renders successfully', () => { - const { asFragment } = render(action); - expect(asFragment()).toMatchSnapshot(); + expect(screen.getByText('Test')).toHaveClass(styles.codeBlockContent); }); -test('CodeBlock with components renders successfully', () => { - const { asFragment } = render( - button}> - inside pre/code tags - test outer text +test('CodeBlock renders with custom class', () => { + render( + + Test ); + + expect(screen.getByTestId('code-block')).toHaveClass('tester'); +}); + +test('Renders when actions are passed to CodeBlock', () => { + render(actions} />); + expect(screen.getByText('actions')).toBeVisible(); +}); + +test('Matches the snapshot', () => { + const { asFragment } = render(actions}>children); expect(asFragment()).toMatchSnapshot(); }); diff --git a/packages/react-core/src/components/CodeBlock/__tests__/CodeBlockAction.test.tsx b/packages/react-core/src/components/CodeBlock/__tests__/CodeBlockAction.test.tsx new file mode 100644 index 00000000000..b51934acf9e --- /dev/null +++ b/packages/react-core/src/components/CodeBlock/__tests__/CodeBlockAction.test.tsx @@ -0,0 +1,26 @@ +import React from 'react'; +import { render, screen } from '@testing-library/react'; +import { CodeBlockAction } from '../CodeBlockAction'; +import styles from '@patternfly/react-styles/css/components/CodeBlock/code-block'; + +test('CodeBlockAction renders', () => { + render(action); + expect(screen.getByText('action')).toBeVisible(); +}); + +test(`CodeBlockAction renders with class ${styles.codeBlockActions}-item by default`, () => { + render(Test); + + expect(screen.getByText('Test')).toHaveClass(`${styles.codeBlockActions}-item`); +}); + +test('CodeBlockAction renders with custom class', () => { + render(Test); + + expect(screen.getByText('Test')).toHaveClass('tester'); +}); + +test('Matches the snapshot', () => { + const { asFragment } = render(children); + expect(asFragment()).toMatchSnapshot(); +}); diff --git a/packages/react-core/src/components/CodeBlock/__tests__/CodeBlockCode.test.tsx b/packages/react-core/src/components/CodeBlock/__tests__/CodeBlockCode.test.tsx new file mode 100644 index 00000000000..fce3584eb35 --- /dev/null +++ b/packages/react-core/src/components/CodeBlock/__tests__/CodeBlockCode.test.tsx @@ -0,0 +1,36 @@ +import React from 'react'; +import { render, screen } from '@testing-library/react'; +import { CodeBlockCode } from '../CodeBlockCode'; +import styles from '@patternfly/react-styles/css/components/CodeBlock/code-block'; + +test('CodeBlockCode renders', () => { + render(action); + expect(screen.getByText('action')).toBeVisible(); +}); + +test(`Renders with class ${styles.codeBlockPre} by default`, () => { + render( + + Test + + ); + + expect(screen.getByTestId('code-block-code')).toHaveClass(`${styles.codeBlockPre} test`); +}); + +test(`Renders with class ${styles.codeBlockCode} by default`, () => { + render(Test); + + expect(screen.getByText('Test')).toHaveClass(styles.codeBlockCode); +}); + +test('Renders with custom class', () => { + render(Test); + + expect(screen.getByText('Test')).toHaveClass('tester'); +}); + +test('Matches the snapshot', () => { + const { asFragment } = render(children); + expect(asFragment()).toMatchSnapshot(); +}); diff --git a/packages/react-core/src/components/CodeBlock/__tests__/__snapshots__/CodeBlock.test.tsx.snap b/packages/react-core/src/components/CodeBlock/__tests__/__snapshots__/CodeBlock.test.tsx.snap index 35d5269d68f..d31dbfd0753 100644 --- a/packages/react-core/src/components/CodeBlock/__tests__/__snapshots__/CodeBlock.test.tsx.snap +++ b/packages/react-core/src/components/CodeBlock/__tests__/__snapshots__/CodeBlock.test.tsx.snap @@ -1,20 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`CodeBlock renders successfully 1`] = ` - -
-
- test text -
-
-
-`; - -exports[`CodeBlock with components renders successfully 1`] = ` +exports[`Matches the snapshot 1`] = `
-
- button +
+ actions
-
-        
-          inside pre/code tags
-        
-      
- test outer text + children
`; - -exports[`CodeBlockAction renders successfully 1`] = ` - -
- action -
-
-`; - -exports[`CodeBlockCode renders successfully 1`] = ` - -
-    
-      action
-    
-  
-
-`; diff --git a/packages/react-core/src/components/CodeBlock/__tests__/__snapshots__/CodeBlockAction.test.tsx.snap b/packages/react-core/src/components/CodeBlock/__tests__/__snapshots__/CodeBlockAction.test.tsx.snap new file mode 100644 index 00000000000..9f1d694518d --- /dev/null +++ b/packages/react-core/src/components/CodeBlock/__tests__/__snapshots__/CodeBlockAction.test.tsx.snap @@ -0,0 +1,11 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Matches the snapshot 1`] = ` + +
+ children +
+
+`; diff --git a/packages/react-core/src/components/CodeBlock/__tests__/__snapshots__/CodeBlockCode.test.tsx.snap b/packages/react-core/src/components/CodeBlock/__tests__/__snapshots__/CodeBlockCode.test.tsx.snap new file mode 100644 index 00000000000..bddc099a2ac --- /dev/null +++ b/packages/react-core/src/components/CodeBlock/__tests__/__snapshots__/CodeBlockCode.test.tsx.snap @@ -0,0 +1,15 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Matches the snapshot 1`] = ` + +
+    
+      children
+    
+  
+
+`; From 8a6d4d40462eb38bc9ff7ac382677c398a0a9832 Mon Sep 17 00:00:00 2001 From: kmcfaul <45077788+kmcfaul@users.noreply.github.com> Date: Fri, 6 Oct 2023 09:43:01 -0400 Subject: [PATCH 041/103] chore(Button): update tests (#9558) * chore(Button): update tests * feedback updates --- .../Button/__tests__/Button.test.tsx | 294 ++++++++----- .../__snapshots__/Button.test.tsx.snap | 408 +----------------- 2 files changed, 180 insertions(+), 522 deletions(-) diff --git a/packages/react-core/src/components/Button/__tests__/Button.test.tsx b/packages/react-core/src/components/Button/__tests__/Button.test.tsx index 7e82d60481d..cbd758c1c83 100644 --- a/packages/react-core/src/components/Button/__tests__/Button.test.tsx +++ b/packages/react-core/src/components/Button/__tests__/Button.test.tsx @@ -5,145 +5,203 @@ import { render, screen } from '@testing-library/react'; import CartArrowDownIcon from '@patternfly/react-icons/dist/esm/icons/cart-arrow-down-icon'; import { Button, ButtonVariant } from '../Button'; -describe('Button', () => { - Object.values(ButtonVariant).forEach(variant => { - test(`${variant} button`, () => { - const { asFragment } = render( - - ); - expect(asFragment()).toMatchSnapshot(); +Object.values(ButtonVariant).forEach((variant) => { + if (variant !== 'primary') { + test(`Does not render with class pf-m-${variant} by default`, () => { + render(); + expect(screen.getByRole('button')).not.toHaveClass(`pf-m-${variant}`); }); + } + + test(`Renders with class pf-m-${variant} when variant=${variant}`, () => { + render(); + expect(screen.getByRole('button')).toHaveClass(`pf-m-${variant}`); }); +}); - test('it adds an aria-label to plain buttons', () => { - const label = 'aria-label test'; - render( - ); - expect(asFragment()).toMatchSnapshot(); - }); +test('Renders with class pf-v5-c-button by default', () => { + render(); + expect(screen.getByRole('button')).toHaveClass('pf-v5-c-button'); +}); - test('isBlock', () => { - const { asFragment } = render(); - expect(asFragment()).toMatchSnapshot(); - }); +test('Renders with class pf-m-primary by default', () => { + render(); + expect(screen.getByText('Button')).toHaveClass('pf-m-primary'); +}); - test('isDisabled', () => { - const { asFragment } = render(); - expect(asFragment()).toMatchSnapshot(); - }); +test('Renders with custom class', () => { + render(); + expect(screen.getByRole('button')).toHaveClass('custom-class'); +}); - test('isDanger secondary', () => { - const { asFragment } = render( - - ); - expect(asFragment()).toMatchSnapshot(); - }); +test('Renders with an aria-label', () => { + const label = 'aria-label test'; + render( - ); - expect(asFragment()).toMatchSnapshot(); - }); + expect(screen.getByLabelText(label)).toHaveAccessibleName('aria-label test'); +}); - test('isAriaDisabled button', () => { - const { asFragment } = render(); - expect(asFragment()).toMatchSnapshot(); - }); +test('Renders with class pf-m-block when isBlock = true', () => { + render(); + expect(screen.getByRole('button')).toHaveClass('pf-m-block'); +}); - test('isAriaDisabled link button', () => { - const { asFragment } = render( - - ); - expect(asFragment()).toMatchSnapshot(); - }); +test('Renders with class pf-m-active when isActive = true', () => { + render(); + expect(screen.getByRole('button')).toHaveClass('pf-m-active'); +}); - test('isInline', () => { - const { asFragment } = render( - - ); - expect(asFragment()).toMatchSnapshot(); - }); +test('Renders with class pf-m-disabled when isDisabled = true', () => { + render(); + expect(screen.getByRole('button')).toHaveClass('pf-m-disabled'); +}); - test('size small', () => { - const { asFragment } = render(); - expect(asFragment()).toMatchSnapshot(); - }); +test('Renders with class pf-m-aria-disabled when isAriaDisabled = true', () => { + render(); + expect(screen.getByRole('button')).toHaveClass('pf-m-aria-disabled'); +}); - test('size large', () => { - const { asFragment } = render(); - expect(asFragment()).toMatchSnapshot(); - }); +test('Does not disable button when isDisabled = true and component = a', () => { + render( + + ); + expect(screen.getByText('Disabled yet focusable button')).not.toHaveProperty('disabled'); +}); - test('isLoading', () => { - const { asFragment } = render( - - ); - expect(asFragment()).toMatchSnapshot(); - }); +test('Renders with class pf-m-danger when isDanger = true and variant = secondary', () => { + render( + + ); + expect(screen.getByRole('button')).toHaveClass('pf-m-danger', 'pf-m-secondary'); +}); - test('isLoading inline link', () => { - const { asFragment } = render( - - ); - expect(asFragment()).toMatchSnapshot(); - }); +test('Renders with class pf-m-danger when isDanger = true and variant = link', () => { + render( + + ); + expect(screen.getByRole('button')).toHaveClass('pf-m-danger', 'pf-m-link'); +}); - test('isLoading icon only', () => { - const { asFragment } = render( - + ); + expect(screen.getByRole('button')).not.toHaveClass('pf-m-danger'); +}); - test('allows passing in a string as the component', () => { - const component = 'a'; - render(); +test('Does not render with class pf-m-danger when isDanger = true and variant = tertiary', () => { + render( + + ); + expect(screen.getByRole('button')).not.toHaveClass('pf-m-danger'); +}); - expect(screen.getByText('anchor button')).toBeInTheDocument(); - }); +test('Does not render with class pf-m-danger when isDanger = true and variant = control', () => { + render( + + ); + expect(screen.getByRole('button')).not.toHaveClass('pf-m-danger'); +}); - test('allows passing in a React Component as the component', () => { - const Component = () =>
im a div
; - render( + ); + expect(screen.getByRole('button')).toHaveClass('pf-m-inline'); +}); - expect(screen.getByText('im a div')).toBeInTheDocument(); - }); +test('Renders with class pf-m-small when size = sm', () => { + render(); + expect(screen.getByRole('button')).toHaveClass('pf-m-small'); +}); - test('aria-disabled is set to true and tabIndex to -1 if component is not a button and is disabled', () => { - const { asFragment } = render( - - ); - expect(asFragment()).toMatchSnapshot(); - }); +test('Renders with class pf-m-display-lg when size = lg', () => { + render(); + expect(screen.getByRole('button')).toHaveClass('pf-m-display-lg'); +}); - test('setting tab index through props', () => { - render(); - expect(screen.getByRole('button')).toHaveAttribute('tabindex', '0'); - }); +test('Renders with class pf-m-in-progress when isLoading = true', () => { + render( + + ); + expect(screen.getByRole('button')).toHaveClass('pf-m-in-progress'); +}); + +test('Renders with class pf-m-progress when isLoading is defined and isLoading = false', () => { + render( + + ); + expect(screen.getByRole('button')).toHaveClass('pf-m-progress'); +}); + +test('Renders without class pf-m-progress when isLoading = false and variant = plain', () => { + render( + + ); + expect(screen.getByRole('button')).not.toHaveClass('pf-m-progress'); +}); + +test('Renders custom icon with class pf-m-in-progress when isLoading = true and icon is present', () => { + render( + ); + + expect(screen.getByText('anchor button').tagName).toBe('A'); +}); + +test('aria-disabled is set to true and tabIndex to -1 if component is not a button and is disabled', () => { + render( + + ); + expect(screen.getByText('Disabled Anchor Button')).toHaveAttribute('tabindex', '-1'); +}); + +test('setting tab index through props', () => { + render(); + expect(screen.getByRole('button')).toHaveAttribute('tabindex', '0'); +}); + +test(`Renders basic button`, () => { + const { asFragment } = render(); + expect(asFragment()).toMatchSnapshot(); }); diff --git a/packages/react-core/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap b/packages/react-core/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap index 6b5396f1bed..b0cb22e0620 100644 --- a/packages/react-core/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +++ b/packages/react-core/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap @@ -1,417 +1,17 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Button aria-disabled is set to true and tabIndex to -1 if component is not a button and is disabled 1`] = ` - -
- Disabled Anchor Button - - -`; - -exports[`Button control button 1`] = ` - - - -`; - -exports[`Button danger button 1`] = ` - - - -`; - -exports[`Button isAriaDisabled button 1`] = ` - - - -`; - -exports[`Button isAriaDisabled link button 1`] = ` - - - Disabled yet focusable button - - -`; - -exports[`Button isBlock 1`] = ` - - - -`; - -exports[`Button isDanger link 1`] = ` - - - -`; - -exports[`Button isDanger secondary 1`] = ` - - - -`; - -exports[`Button isDisabled 1`] = ` - - - -`; - -exports[`Button isInline 1`] = ` - - - -`; - -exports[`Button isLoading 1`] = ` - - - -`; - -exports[`Button isLoading icon only 1`] = ` +exports[`Renders basic button 1`] = ` - -`; - -exports[`Button isLoading inline link 1`] = ` - - - -`; - -exports[`Button link button 1`] = ` - - - -`; - -exports[`Button link with icon 1`] = ` - - - -`; - -exports[`Button plain button 1`] = ` - - - -`; - -exports[`Button primary button 1`] = ` - - - -`; - -exports[`Button secondary button 1`] = ` - - - -`; - -exports[`Button size large 1`] = ` - - - -`; - -exports[`Button size small 1`] = ` - - - -`; - -exports[`Button tertiary button 1`] = ` - - - -`; - -exports[`Button warning button 1`] = ` - - `; From 0346933cb61a3b11a2591acbde4760f58abffbcb Mon Sep 17 00:00:00 2001 From: Mark Franceschelli <39063664+mfrances17@users.noreply.github.com> Date: Fri, 6 Oct 2023 09:48:43 -0400 Subject: [PATCH 042/103] fix(CodeEditor): hide button and link when read-only (#9668) --- .../src/components/CodeEditor/CodeEditor.tsx | 42 ++++++++++--------- .../CodeEditor/examples/CodeEditorBasic.tsx | 2 - .../examples/CodeEditorShortcutMainHeader.tsx | 2 - .../examples/CodeEditorSizeToFit.tsx | 2 - 4 files changed, 23 insertions(+), 25 deletions(-) diff --git a/packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx b/packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx index 8af4ada5c97..9751407ac26 100644 --- a/packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx +++ b/packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx @@ -526,18 +526,20 @@ class CodeEditor extends React.Component { headingLevel="h4" /> {emptyStateBody} - - - - - - - - + {!isReadOnly && ( + + + + + + + + + )} ) : ( @@ -546,13 +548,15 @@ class CodeEditor extends React.Component { icon={} headingLevel="h4" /> - - - - - + {!isReadOnly && ( + + + + + + )} )); diff --git a/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorBasic.tsx b/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorBasic.tsx index da741c2e25d..8dd7f5a9730 100644 --- a/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorBasic.tsx +++ b/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorBasic.tsx @@ -23,8 +23,6 @@ export const CodeEditorBasic: React.FunctionComponent = () => { }; const onEditorDidMount = (editor, monaco) => { - // eslint-disable-next-line no-console - console.log(editor.getValue()); editor.layout(); editor.focus(); monaco.editor.getModels()[0].updateOptions({ tabSize: 5 }); diff --git a/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorShortcutMainHeader.tsx b/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorShortcutMainHeader.tsx index 99cba3581f8..d2dd1f5b466 100644 --- a/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorShortcutMainHeader.tsx +++ b/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorShortcutMainHeader.tsx @@ -4,8 +4,6 @@ import { Grid, GridItem, Chip } from '@patternfly/react-core'; export const CodeEditorShortcutMainHeader: React.FunctionComponent = () => { const onEditorDidMount = (editor, monaco) => { - // eslint-disable-next-line no-console - console.log(editor.getValue()); editor.layout(); editor.focus(); monaco.editor.getModels()[0].updateOptions({ tabSize: 5 }); diff --git a/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorSizeToFit.tsx b/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorSizeToFit.tsx index 6b61cc10666..330ff275219 100644 --- a/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorSizeToFit.tsx +++ b/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorSizeToFit.tsx @@ -3,8 +3,6 @@ import { CodeEditor, Language } from '@patternfly/react-code-editor'; export const CodeEditorSizeToFit: React.FunctionComponent = () => { const onEditorDidMount = (editor, monaco) => { - // eslint-disable-next-line no-console - console.log(editor.getValue()); editor.layout(); editor.focus(); monaco.editor.getModels()[0].updateOptions({ tabSize: 5 }); From 58ea5840e7a291531d45e40b0c5d1d0cdc8093c8 Mon Sep 17 00:00:00 2001 From: Titani Labaj <39532947+tlabaj@users.noreply.github.com> Date: Fri, 6 Oct 2023 14:57:29 -0400 Subject: [PATCH 043/103] fix(build): Fixed version mismatch issue (#9716) * fix(build): Fixed version mismatch issue * Updated lock file --- packages/react-integration/demo-app-ts/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/react-integration/demo-app-ts/package.json b/packages/react-integration/demo-app-ts/package.json index 349c5e0e62b..d49bfeacfef 100644 --- a/packages/react-integration/demo-app-ts/package.json +++ b/packages/react-integration/demo-app-ts/package.json @@ -9,7 +9,7 @@ "serve:demo-app": "node scripts/serve" }, "dependencies": { - "@patternfly/react-core": "^5.1.1-prerelease.23", + "@patternfly/react-core": "^5.2.0-prerelease.0", "react": "^18", "react-dom": "^18", "react-router": "^5.3.3", diff --git a/yarn.lock b/yarn.lock index c16bd628c0d..7938c2809f0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3878,10 +3878,10 @@ puppeteer-cluster "^0.23.0" xmldoc "^1.1.2" -"@patternfly/patternfly@5.1.0-prerelease.32": - version "5.1.0-prerelease.32" - resolved "https://registry.yarnpkg.com/@patternfly/patternfly/-/patternfly-5.1.0-prerelease.32.tgz#1a970c9077ce9fabdaa6e1b7fcc6cb035c9b9ad7" - integrity sha512-puUEzfGyNor9iCeEi46E9UoySAAq+V145eE06uU9JF21TxUcA/BgOHTC6abYxDwG5YhdessgI0Eec5s7uafS8Q== +"@patternfly/patternfly@5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@patternfly/patternfly/-/patternfly-5.1.0.tgz#1c02dff6785d87c222de8a5944b960dd6c0de760" + integrity sha512-wzVgL/0xPsmuRKWc6lMNEo5gDcTUtyU231eJSBTapOKXiwBOv2flvLEHPYLO6oDYXO+hwUrVgbcZFWMd1UlLwA== "@pkgjs/parseargs@^0.11.0": version "0.11.0" From bd71235394d3f61a3c7c64418e8c64039ee568c2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 09:41:52 -0400 Subject: [PATCH 044/103] chore(deps): update devdependencies (#9573) * chore(deps): update devdependencies * fix build errors * fix docs build errors --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Titani --- package.json | 4 +- .../components/Drawer/DrawerPanelContent.tsx | 2 +- .../examples/MultipleFileUploadBasic.tsx | 3 +- .../react-table/src/components/Table/Tr.tsx | 2 +- .../Table/examples/LegacyTableMisc.tsx | 3 +- .../examples/LegacyTableStripedCustomTr.tsx | 8 +- yarn.lock | 1106 +++++++++-------- 7 files changed, 585 insertions(+), 543 deletions(-) diff --git a/package.json b/package.json index bd48fc0f81d..45f13ae3a79 100644 --- a/package.json +++ b/package.json @@ -37,8 +37,8 @@ "@octokit/rest": "^20.0.0", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", - "@testing-library/user-event": "14.4.3", - "@types/jest": "29.5.3", + "@testing-library/user-event": "14.5.1", + "@types/jest": "29.5.5", "@types/react": "^18", "@types/react-dom": "^18", "@typescript-eslint/eslint-plugin": "^5.59.2", diff --git a/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx b/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx index a7069c01fa0..8c9924e88df 100644 --- a/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx +++ b/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx @@ -21,7 +21,7 @@ export interface DrawerPanelFocusTrapObject { 'aria-labelledby'?: string; } -export interface DrawerPanelContentProps extends React.HTMLProps { +export interface DrawerPanelContentProps extends Omit, 'onResize'> { /** Additional classes added to the drawer. */ className?: string; /** ID of the drawer panel */ diff --git a/packages/react-core/src/components/MultipleFileUpload/examples/MultipleFileUploadBasic.tsx b/packages/react-core/src/components/MultipleFileUpload/examples/MultipleFileUploadBasic.tsx index bf92c4438be..a55c4f73bb5 100644 --- a/packages/react-core/src/components/MultipleFileUpload/examples/MultipleFileUploadBasic.tsx +++ b/packages/react-core/src/components/MultipleFileUpload/examples/MultipleFileUploadBasic.tsx @@ -62,7 +62,8 @@ export const MultipleFileUploadBasic: React.FunctionComponent = () => { const updateCurrentFiles = (files: File[]) => { if (fileUploadShouldFail) { const corruptedFiles = files.map((file) => ({ ...file, lastModified: 'foo' as unknown as number })); - setCurrentFiles((prevFiles) => [...prevFiles, ...corruptedFiles]); + // eslint-disable-next-line + setCurrentFiles((prevFiles) => [...prevFiles, ...corruptedFiles as any]); } else { setCurrentFiles((prevFiles) => [...prevFiles, ...files]); } diff --git a/packages/react-table/src/components/Table/Tr.tsx b/packages/react-table/src/components/Table/Tr.tsx index 0f6237f28f5..715ca98d30e 100644 --- a/packages/react-table/src/components/Table/Tr.tsx +++ b/packages/react-table/src/components/Table/Tr.tsx @@ -5,7 +5,7 @@ import inlineStyles from '@patternfly/react-styles/css/components/InlineEdit/inl import { css } from '@patternfly/react-styles'; import { TableContext } from './Table'; -export interface TrProps extends React.HTMLProps, OUIAProps { +export interface TrProps extends Omit, 'onResize'>, OUIAProps { /** Content rendered inside the row */ children?: React.ReactNode; /** Additional classes added to the row */ diff --git a/packages/react-table/src/deprecated/components/Table/examples/LegacyTableMisc.tsx b/packages/react-table/src/deprecated/components/Table/examples/LegacyTableMisc.tsx index c2a1bc863dc..58ba56f11ae 100644 --- a/packages/react-table/src/deprecated/components/Table/examples/LegacyTableMisc.tsx +++ b/packages/react-table/src/deprecated/components/Table/examples/LegacyTableMisc.tsx @@ -27,14 +27,13 @@ export const LegacyTableMisc: React.FunctionComponent = () => { repo.lastCommit ]); - const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row, ...props }) => { + const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row }) => { const isOddRow = rowProps ? !!((rowProps.rowIndex + 1) % 2) : true; const customStyle = { borderLeft: '3px solid var(--pf-v5-global--primary-color--100)' }; return ( } className={css(className, isOddRow ? 'odd-row-class' : 'even-row-class', 'custom-static-class')} style={isOddRow ? customStyle : {}} diff --git a/packages/react-table/src/deprecated/components/Table/examples/LegacyTableStripedCustomTr.tsx b/packages/react-table/src/deprecated/components/Table/examples/LegacyTableStripedCustomTr.tsx index 2731c116aff..26ddf5c6f9c 100644 --- a/packages/react-table/src/deprecated/components/Table/examples/LegacyTableStripedCustomTr.tsx +++ b/packages/react-table/src/deprecated/components/Table/examples/LegacyTableStripedCustomTr.tsx @@ -27,14 +27,10 @@ export const LegacyTableStripedCustomTr: React.FunctionComponent = () => { repo.lastCommit ]); - const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row, ...props }) => { + const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row }) => { const isOddRow = rowProps ? !!((rowProps.rowIndex + 1) % 2) : true; return ( - } - className={css(className, isOddRow && 'pf-m-striped')} - /> + } className={css(className, isOddRow && 'pf-m-striped')} /> ); }; diff --git a/yarn.lock b/yarn.lock index 7938c2809f0..4c5fa0ad68a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8,9 +8,9 @@ integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA== "@adobe/css-tools@^4.0.1": - version "4.2.0" - resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.2.0.tgz#e1a84fca468f4b337816fcb7f0964beb620ba855" - integrity sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA== + version "4.3.1" + resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.3.1.tgz#abfccb8ca78075a2b6187345c26243c1a0842f28" + integrity sha512-/62yikz7NLScCGAAST5SHdnjaDJQBDq0M2muyRTpf2VQhw6StBg2ALiu73zSJQ4fMVLA+0uBhBHAle7Wg+2kSg== "@ampproject/remapping@^2.1.0": version "2.2.0" @@ -68,12 +68,12 @@ dependencies: "@babel/highlight" "^7.18.6" -"@babel/code-frame@^7.22.10", "@babel/code-frame@^7.22.5": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.10.tgz#1c20e612b768fefa75f6e90d6ecb86329247f0a3" - integrity sha512-/KKIMG4UEL35WmI9OlvMhurwtytjvXoFcGNrOvyG9zIzA8YmPjVtIZUf7b05+TPO7G7/GEmLHDaoCgACHl9hhA== +"@babel/code-frame@^7.22.13": + version "7.22.13" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.13.tgz#e3c1c099402598483b7a8c46a721d1038803755e" + integrity sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w== dependencies: - "@babel/highlight" "^7.22.10" + "@babel/highlight" "^7.22.13" chalk "^2.4.2" "@babel/code-frame@^7.8.3": @@ -102,10 +102,10 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.20.14.tgz#4106fc8b755f3e3ee0a0a7c27dde5de1d2b2baf8" integrity sha512-0YpKHD6ImkWMEINCyDAD0HLLUH/lPCefG8ld9it8DJB2wnApraKuhgYTvTY1z7UFIfBTGy5LwncZ+5HWWGbhFw== -"@babel/compat-data@^7.22.5", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.22.9": - version "7.22.9" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.9.tgz#71cdb00a1ce3a329ce4cbec3a44f9fef35669730" - integrity sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ== +"@babel/compat-data@^7.22.20", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.22.9": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.20.tgz#8df6e96661209623f1975d66c35ffca66f3306d0" + integrity sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw== "@babel/core@7.10.5": version "7.10.5" @@ -169,24 +169,24 @@ source-map "^0.5.0" "@babel/core@^7.21.8": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.22.10.tgz#aad442c7bcd1582252cb4576747ace35bc122f35" - integrity sha512-fTmqbbUBAwCcre6zPzNngvsI0aNrPZe77AeqvDxWM9Nm+04RrJ3CAmGHA9f7lJQY6ZMhRztNemy4uslDxTX4Qw== + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.0.tgz#f8259ae0e52a123eb40f552551e647b506a94d83" + integrity sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ== dependencies: "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.22.10" - "@babel/generator" "^7.22.10" - "@babel/helper-compilation-targets" "^7.22.10" - "@babel/helper-module-transforms" "^7.22.9" - "@babel/helpers" "^7.22.10" - "@babel/parser" "^7.22.10" - "@babel/template" "^7.22.5" - "@babel/traverse" "^7.22.10" - "@babel/types" "^7.22.10" - convert-source-map "^1.7.0" + "@babel/code-frame" "^7.22.13" + "@babel/generator" "^7.23.0" + "@babel/helper-compilation-targets" "^7.22.15" + "@babel/helper-module-transforms" "^7.23.0" + "@babel/helpers" "^7.23.0" + "@babel/parser" "^7.23.0" + "@babel/template" "^7.22.15" + "@babel/traverse" "^7.23.0" + "@babel/types" "^7.23.0" + convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" - json5 "^2.2.2" + json5 "^2.2.3" semver "^6.3.1" "@babel/core@^7.7.2": @@ -231,9 +231,9 @@ source-map "^0.5.0" "@babel/eslint-parser@^7.19.1": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.22.10.tgz#bfdf3d1b32ad573fe7c1c3447e0b485e3a41fd09" - integrity sha512-0J8DNPRXQRLeR9rPaUMM3fA+RbixjnVLe/MRMYCkp3hzgsSuxCHQ8NN8xQG1wIHKJ4a1DTROTvFJdW+B5/eOsg== + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.22.15.tgz#263f059c476e29ca4972481a17b8b660cb025a34" + integrity sha512-yc8OOBIQk1EcRrpizuARSQS0TWAcOMpEJ1aafhNznaeYkeL+OhqnDObGFylB8ka8VFF/sZc+S4RzHyO+3LjQxg== dependencies: "@nicolo-ribaudo/eslint-scope-5-internals" "5.1.1-v1" eslint-visitor-keys "^2.1.0" @@ -274,16 +274,6 @@ "@jridgewell/gen-mapping" "^0.3.2" jsesc "^2.5.1" -"@babel/generator@^7.22.10": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.22.10.tgz#c92254361f398e160645ac58831069707382b722" - integrity sha512-79KIf7YiWjjdZ81JnLujDRApWtl7BxTqWD88+FFdQEIOG8LJ0etDOM7CXuIgGJa55sGOwZVwuEsaLEm0PJ5/+A== - dependencies: - "@babel/types" "^7.22.10" - "@jridgewell/gen-mapping" "^0.3.2" - "@jridgewell/trace-mapping" "^0.3.17" - jsesc "^2.5.1" - "@babel/generator@^7.22.3": version "7.22.3" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.22.3.tgz#0ff675d2edb93d7596c5f6728b52615cfc0df01e" @@ -294,6 +284,16 @@ "@jridgewell/trace-mapping" "^0.3.17" jsesc "^2.5.1" +"@babel/generator@^7.23.0": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.0.tgz#df5c386e2218be505b34837acbcb874d7a983420" + integrity sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g== + dependencies: + "@babel/types" "^7.23.0" + "@jridgewell/gen-mapping" "^0.3.2" + "@jridgewell/trace-mapping" "^0.3.17" + jsesc "^2.5.1" + "@babel/generator@^7.6.3", "@babel/generator@^7.6.4": version "7.6.4" resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.6.4.tgz" @@ -342,11 +342,11 @@ "@babel/types" "^7.18.6" "@babel/helper-builder-binary-assignment-operator-visitor@^7.22.5": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.10.tgz#573e735937e99ea75ea30788b57eb52fab7468c9" - integrity sha512-Av0qubwDQxC56DoUReVDeLfMEjYYSN1nZrTUrWkXd7hpU73ymRANkbuDm3yni9npkn+RXy9nNbEJZEzXr7xrfQ== + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz#5426b109cf3ad47b91120f8328d8ab1be8b0b956" + integrity sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw== dependencies: - "@babel/types" "^7.22.10" + "@babel/types" "^7.22.15" "@babel/helper-compilation-targets@^7.13.0": version "7.13.10" @@ -389,13 +389,13 @@ lru-cache "^5.1.1" semver "^6.3.0" -"@babel/helper-compilation-targets@^7.22.10", "@babel/helper-compilation-targets@^7.22.5", "@babel/helper-compilation-targets@^7.22.6": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.10.tgz#01d648bbc25dd88f513d862ee0df27b7d4e67024" - integrity sha512-JMSwHD4J7SLod0idLq5PKgI+6g/hLD/iuWBq08ZX49xE14VpVEojJ5rHWptpirV2j020MvypRLAXAO50igCJ5Q== +"@babel/helper-compilation-targets@^7.22.15", "@babel/helper-compilation-targets@^7.22.5", "@babel/helper-compilation-targets@^7.22.6": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz#0698fc44551a26cf29f18d4662d5bf545a6cfc52" + integrity sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw== dependencies: "@babel/compat-data" "^7.22.9" - "@babel/helper-validator-option" "^7.22.5" + "@babel/helper-validator-option" "^7.22.15" browserslist "^4.21.9" lru-cache "^5.1.1" semver "^6.3.1" @@ -428,15 +428,15 @@ "@babel/helper-split-export-declaration" "^7.18.6" semver "^6.3.0" -"@babel/helper-create-class-features-plugin@^7.22.10", "@babel/helper-create-class-features-plugin@^7.22.5": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.10.tgz#dd2612d59eac45588021ac3d6fa976d08f4e95a3" - integrity sha512-5IBb77txKYQPpOEdUdIhBx8VrZyDCQ+H82H0+5dX1TmuscP5vJKEE3cKurjtIw/vFwzbVH48VweE78kVDBrqjA== +"@babel/helper-create-class-features-plugin@^7.22.11", "@babel/helper-create-class-features-plugin@^7.22.15", "@babel/helper-create-class-features-plugin@^7.22.5": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz#97a61b385e57fe458496fad19f8e63b63c867de4" + integrity sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg== dependencies: "@babel/helper-annotate-as-pure" "^7.22.5" "@babel/helper-environment-visitor" "^7.22.5" "@babel/helper-function-name" "^7.22.5" - "@babel/helper-member-expression-to-functions" "^7.22.5" + "@babel/helper-member-expression-to-functions" "^7.22.15" "@babel/helper-optimise-call-expression" "^7.22.5" "@babel/helper-replace-supers" "^7.22.9" "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" @@ -452,9 +452,9 @@ regexpu-core "^4.7.1" "@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.22.5": - version "7.22.9" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.9.tgz#9d8e61a8d9366fe66198f57c40565663de0825f6" - integrity sha512-+svjVa/tFwsNSG4NEy1h85+HQ5imbT92Q5/bgtS7P0GTQlP8WuFdqsiABmQouhiFGyV66oGxZFpeYHza1rNsKw== + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz#5ee90093914ea09639b01c711db0d6775e558be1" + integrity sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w== dependencies: "@babel/helper-annotate-as-pure" "^7.22.5" regexpu-core "^5.3.1" @@ -495,10 +495,10 @@ resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.1.tgz#ac3a56dbada59ed969d712cf527bd8271fe3eba8" integrity sha512-Z2tgopurB/kTbidvzeBrc2To3PUP/9i5MUe+fU6QJCQDyPwSH2oRapkLw3KGECDYSjhQZCNxEvNvZlLw8JjGwA== -"@babel/helper-environment-visitor@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz#f06dd41b7c1f44e1f8da6c4055b41ab3a09a7e98" - integrity sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q== +"@babel/helper-environment-visitor@^7.22.20", "@babel/helper-environment-visitor@^7.22.5": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167" + integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA== "@babel/helper-explode-assignable-expression@^7.18.6": version "7.18.6" @@ -549,13 +549,13 @@ "@babel/template" "^7.20.7" "@babel/types" "^7.21.0" -"@babel/helper-function-name@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz#ede300828905bb15e582c037162f99d5183af1be" - integrity sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ== +"@babel/helper-function-name@^7.22.5", "@babel/helper-function-name@^7.23.0": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759" + integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw== dependencies: - "@babel/template" "^7.22.5" - "@babel/types" "^7.22.5" + "@babel/template" "^7.22.15" + "@babel/types" "^7.23.0" "@babel/helper-function-name@^7.8.3": version "7.8.3" @@ -633,12 +633,12 @@ dependencies: "@babel/types" "^7.22.3" -"@babel/helper-member-expression-to-functions@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.5.tgz#0a7c56117cad3372fbf8d2fb4bf8f8d64a1e76b2" - integrity sha512-aBiH1NKMG0H2cGZqspNvsaBe6wNGjbJjuLy29aU+eDZjSbbN53BaxlpB02xm9v34pLTZ1nIQPFYn2qMZoa5BQQ== +"@babel/helper-member-expression-to-functions@^7.22.15": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz#9263e88cc5e41d39ec18c9a3e0eced59a3e7d366" + integrity sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA== dependencies: - "@babel/types" "^7.22.5" + "@babel/types" "^7.23.0" "@babel/helper-module-imports@^7.10.4": version "7.10.4" @@ -667,12 +667,12 @@ dependencies: "@babel/types" "^7.18.6" -"@babel/helper-module-imports@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz#1a8f4c9f4027d23f520bd76b364d44434a72660c" - integrity sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg== +"@babel/helper-module-imports@^7.22.15", "@babel/helper-module-imports@^7.22.5": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz#16146307acdc40cc00c3b2c647713076464bdbf0" + integrity sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w== dependencies: - "@babel/types" "^7.22.5" + "@babel/types" "^7.22.15" "@babel/helper-module-transforms@^7.10.5": version "7.11.0" @@ -714,16 +714,16 @@ "@babel/traverse" "^7.18.6" "@babel/types" "^7.18.6" -"@babel/helper-module-transforms@^7.22.5", "@babel/helper-module-transforms@^7.22.9": - version "7.22.9" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.22.9.tgz#92dfcb1fbbb2bc62529024f72d942a8c97142129" - integrity sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ== +"@babel/helper-module-transforms@^7.22.5", "@babel/helper-module-transforms@^7.23.0": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz#3ec246457f6c842c0aee62a01f60739906f7047e" + integrity sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw== dependencies: - "@babel/helper-environment-visitor" "^7.22.5" - "@babel/helper-module-imports" "^7.22.5" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-module-imports" "^7.22.15" "@babel/helper-simple-access" "^7.22.5" "@babel/helper-split-export-declaration" "^7.22.6" - "@babel/helper-validator-identifier" "^7.22.5" + "@babel/helper-validator-identifier" "^7.22.20" "@babel/helper-optimise-call-expression@^7.10.4": version "7.10.4" @@ -792,13 +792,13 @@ "@babel/types" "^7.18.6" "@babel/helper-remap-async-to-generator@^7.22.5", "@babel/helper-remap-async-to-generator@^7.22.9": - version "7.22.9" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.9.tgz#53a25b7484e722d7efb9c350c75c032d4628de82" - integrity sha512-8WWC4oR4Px+tr+Fp0X3RHDVfINGpF3ad1HIbrc8A77epiR6eMMc6jsgozkzT2uDiOOdoS9cLIQ+XD2XvI2WSmQ== + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz#7b68e1cb4fa964d2996fd063723fb48eca8498e0" + integrity sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw== dependencies: "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-environment-visitor" "^7.22.5" - "@babel/helper-wrap-function" "^7.22.9" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-wrap-function" "^7.22.20" "@babel/helper-replace-supers@^7.10.4": version "7.10.4" @@ -842,13 +842,13 @@ "@babel/traverse" "^7.22.1" "@babel/types" "^7.22.0" -"@babel/helper-replace-supers@^7.22.5", "@babel/helper-replace-supers@^7.22.9": - version "7.22.9" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.22.9.tgz#cbdc27d6d8d18cd22c81ae4293765a5d9afd0779" - integrity sha512-LJIKvvpgPOPUThdYqcX6IXRuIcTkcAub0IaDRGCZH0p5GPUp7PhRU9QVgFcDDd51BaPkk77ZjqFwh6DZTAEmGg== +"@babel/helper-replace-supers@^7.22.20", "@babel/helper-replace-supers@^7.22.5", "@babel/helper-replace-supers@^7.22.9": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz#e37d367123ca98fe455a9887734ed2e16eb7a793" + integrity sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw== dependencies: - "@babel/helper-environment-visitor" "^7.22.5" - "@babel/helper-member-expression-to-functions" "^7.22.5" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-member-expression-to-functions" "^7.22.15" "@babel/helper-optimise-call-expression" "^7.22.5" "@babel/helper-simple-access@^7.10.4": @@ -970,11 +970,16 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== -"@babel/helper-validator-identifier@^7.19.1", "@babel/helper-validator-identifier@^7.22.5": +"@babel/helper-validator-identifier@^7.19.1": version "7.22.5" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz#9544ef6a33999343c8740fa51350f30eeaaaf193" integrity sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ== +"@babel/helper-validator-identifier@^7.22.20", "@babel/helper-validator-identifier@^7.22.5": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0" + integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== + "@babel/helper-validator-option@^7.12.17": version "7.12.17" resolved "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.12.17.tgz" @@ -990,10 +995,10 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== -"@babel/helper-validator-option@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz#de52000a15a177413c8234fa3a8af4ee8102d0ac" - integrity sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw== +"@babel/helper-validator-option@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz#694c30dfa1d09a6534cdfcafbe56789d36aba040" + integrity sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA== "@babel/helper-wrap-function@^7.18.6": version "7.18.6" @@ -1005,14 +1010,14 @@ "@babel/traverse" "^7.18.6" "@babel/types" "^7.18.6" -"@babel/helper-wrap-function@^7.22.9": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.22.10.tgz#d845e043880ed0b8c18bd194a12005cb16d2f614" - integrity sha512-OnMhjWjuGYtdoO3FmsEFWvBStBAe2QOgwOLsLNDjN+aaiMD8InJk1/O3HSD8lkqTjCgg5YI34Tz15KNNA3p+nQ== +"@babel/helper-wrap-function@^7.22.20": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz#15352b0b9bfb10fc9c76f79f6342c00e3411a569" + integrity sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw== dependencies: "@babel/helper-function-name" "^7.22.5" - "@babel/template" "^7.22.5" - "@babel/types" "^7.22.10" + "@babel/template" "^7.22.15" + "@babel/types" "^7.22.19" "@babel/helpers@^7.10.4": version "7.10.4" @@ -1040,14 +1045,14 @@ "@babel/traverse" "^7.18.6" "@babel/types" "^7.18.6" -"@babel/helpers@^7.22.10": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.22.10.tgz#ae6005c539dfbcb5cd71fb51bfc8a52ba63bc37a" - integrity sha512-a41J4NW8HyZa1I1vAndrraTlPZ/eZoga2ZgS7fEr0tZJGVU4xqdE80CEm0CcNjha5EZ8fTBYLKHF0kqDUuAwQw== +"@babel/helpers@^7.23.0": + version "7.23.1" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.23.1.tgz#44e981e8ce2b9e99f8f0b703f3326a4636c16d15" + integrity sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA== dependencies: - "@babel/template" "^7.22.5" - "@babel/traverse" "^7.22.10" - "@babel/types" "^7.22.10" + "@babel/template" "^7.22.15" + "@babel/traverse" "^7.23.0" + "@babel/types" "^7.23.0" "@babel/helpers@^7.6.2": version "7.6.2" @@ -1108,12 +1113,12 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/highlight@^7.22.10": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.10.tgz#02a3f6d8c1cb4521b2fd0ab0da8f4739936137d7" - integrity sha512-78aUtVcT7MUscr0K5mIEnkwxPE0MaxkR5RxRwuHaQ+JuU5AmTPhY+do2mdzVTnIJJpyBglql2pehuBIWHug+WQ== +"@babel/highlight@^7.22.13": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.20.tgz#4ca92b71d80554b01427815e06f2df965b9c1f54" + integrity sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg== dependencies: - "@babel/helper-validator-identifier" "^7.22.5" + "@babel/helper-validator-identifier" "^7.22.20" chalk "^2.4.2" js-tokens "^4.0.0" @@ -1153,10 +1158,10 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.4.tgz#a770e98fd785c231af9d93f6459d36770993fb32" integrity sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA== -"@babel/parser@^7.22.10", "@babel/parser@^7.22.5": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.10.tgz#e37634f9a12a1716136c44624ef54283cabd3f55" - integrity sha512-lNbdGsQb9ekfsnjFGhEiF4hfFqGgfOP3H3d27re3n+CGhNuTSUEQdfWk556sTLNTloczcdM5TYF2LhzmDQKyvQ== +"@babel/parser@^7.22.15", "@babel/parser@^7.23.0": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.0.tgz#da950e622420bf96ca0d0f2909cdddac3acd8719" + integrity sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw== "@babel/parser@^7.8.3", "@babel/parser@^7.8.4": version "7.8.4" @@ -1169,10 +1174,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.5.tgz#87245a21cd69a73b0b81bcda98d443d6df08f05e" - integrity sha512-NP1M5Rf+u2Gw9qfSO4ihjcTGW5zXTi36ITLd4/EoAcEhIZ0yjMqmftDNl3QC19CX7olhrjpyU454g/2W7X0jvQ== +"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.15.tgz#02dc8a03f613ed5fdc29fb2f728397c78146c962" + integrity sha512-FB9iYlz7rURmRJyXRKEnalYPPdn87H5no108cyuQQyMwlpJ2SJtpIUBI27kdTin956pz+LPypkPVPUTlxOmrsg== dependencies: "@babel/helper-plugin-utils" "^7.22.5" @@ -1185,14 +1190,14 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.18.6" "@babel/plugin-proposal-optional-chaining" "^7.18.6" -"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.5.tgz#fef09f9499b1f1c930da8a0c419db42167d792ca" - integrity sha512-31Bb65aZaUwqCbWMnZPduIZxCBngHFlzyN6Dq6KAJjtx+lx6ohKHubc61OomYi7XwVD4Ol0XCVz4h+pYFR048g== +"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.15.tgz#2aeb91d337d4e1a1e7ce85b76a37f5301781200f" + integrity sha512-Hyph9LseGvAeeXzikV88bczhsrLrIZqDPxO+sSmAunMPaGrBGhfMWzCPYTtiW9t+HzSE2wtV8e5cc5P6r1xMDQ== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" - "@babel/plugin-transform-optional-chaining" "^7.22.5" + "@babel/plugin-transform-optional-chaining" "^7.22.15" "@babel/plugin-proposal-async-generator-functions@^7.17.12": version "7.18.6" @@ -1230,13 +1235,13 @@ "@babel/plugin-syntax-class-static-block" "^7.14.5" "@babel/plugin-proposal-decorators@^7.21.0": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.22.10.tgz#d6a8c3a9018e1b13e6647f869c5ea56ff2b585d4" - integrity sha512-KxN6TqZzcFi4uD3UifqXElBTBNLAEH1l3vzMQj6JwJZbL2sZlThxSViOKCYY+4Ah4V4JhQ95IVB7s/Y6SJSlMQ== + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.23.0.tgz#66d9014173b3267a9ced3e69935138bc64ffb5c8" + integrity sha512-kYsT+f5ARWF6AdFmqoEEp+hpqxEB8vGmRWfw2aj78M2vTwS2uHW91EF58iFm1Z9U8Y/RrLu2XKJn46P9ca1b0w== dependencies: - "@babel/helper-create-class-features-plugin" "^7.22.10" + "@babel/helper-create-class-features-plugin" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-replace-supers" "^7.22.9" + "@babel/helper-replace-supers" "^7.22.20" "@babel/helper-split-export-declaration" "^7.22.6" "@babel/plugin-syntax-decorators" "^7.22.10" @@ -1619,10 +1624,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-async-generator-functions@^7.22.10": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.10.tgz#45946cd17f915b10e65c29b8ed18a0a50fc648c8" - integrity sha512-eueE8lvKVzq5wIObKK/7dvoeKJ+xc6TvRn6aysIjS6pSCeLy7S/eVi7pEQknZqyqvzaNKdDtem8nUNTBgDVR2g== +"@babel/plugin-transform-async-generator-functions@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.15.tgz#3b153af4a6b779f340d5b80d3f634f55820aefa3" + integrity sha512-jBm1Es25Y+tVoTi5rfd5t1KLmL8ogLKpXszboWOTTtGFGz2RKnQe2yn7HbZ+kb/B8N0FVSGQo874NSlOU1T4+w== dependencies: "@babel/helper-environment-visitor" "^7.22.5" "@babel/helper-plugin-utils" "^7.22.5" @@ -1668,10 +1673,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-block-scoping@^7.22.10": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.22.10.tgz#88a1dccc3383899eb5e660534a76a22ecee64faa" - integrity sha512-1+kVpGAOOI1Albt6Vse7c8pHzcZQdQKW+wJH+g8mCaszOdDVwRXa/slHPqIw+oJAJANTKDMuM2cBdV0Dg618Vg== +"@babel/plugin-transform-block-scoping@^7.22.15": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.0.tgz#8744d02c6c264d82e1a4bc5d2d501fd8aff6f022" + integrity sha512-cOsrbmIOXmf+5YbL99/S49Y3j46k/T16b9ml8bm9lP6N9US5iQ2yBK7gpui1pg0V/WMcXdkfKbTb7HXq9u+v4g== dependencies: "@babel/helper-plugin-utils" "^7.22.5" @@ -1683,12 +1688,12 @@ "@babel/helper-create-class-features-plugin" "^7.22.5" "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-class-static-block@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.5.tgz#3e40c46f048403472d6f4183116d5e46b1bff5ba" - integrity sha512-SPToJ5eYZLxlnp1UzdARpOGeC2GbHvr9d/UV0EukuVx8atktg194oe+C5BqQ8jRTkgLRVOPYeXRSBg1IlMoVRA== +"@babel/plugin-transform-class-static-block@^7.22.11": + version "7.22.11" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.11.tgz#dc8cc6e498f55692ac6b4b89e56d87cec766c974" + integrity sha512-GMM8gGmqI7guS/llMFk1bJDkKfn3v3C4KHK9Yg1ey5qcHcOlKb0QvcMrgzvxo+T03/4szNh5lghY+fEC98Kq9g== dependencies: - "@babel/helper-create-class-features-plugin" "^7.22.5" + "@babel/helper-create-class-features-plugin" "^7.22.11" "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-class-static-block" "^7.14.5" @@ -1706,18 +1711,18 @@ "@babel/helper-split-export-declaration" "^7.18.6" globals "^11.1.0" -"@babel/plugin-transform-classes@^7.22.6": - version "7.22.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.6.tgz#e04d7d804ed5b8501311293d1a0e6d43e94c3363" - integrity sha512-58EgM6nuPNG6Py4Z3zSuu0xWu2VfodiMi72Jt5Kj2FECmaYk1RrTXA45z6KBFsu9tRgwQDwIiY4FXTt+YsSFAQ== +"@babel/plugin-transform-classes@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.15.tgz#aaf4753aee262a232bbc95451b4bdf9599c65a0b" + integrity sha512-VbbC3PGjBdE0wAWDdHM9G8Gm977pnYI0XpqMd6LrKISj8/DJXEsWqgRuTYaNE9Bv0JGhTZUzHDlMk18IpOuoqw== dependencies: "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-compilation-targets" "^7.22.6" + "@babel/helper-compilation-targets" "^7.22.15" "@babel/helper-environment-visitor" "^7.22.5" "@babel/helper-function-name" "^7.22.5" "@babel/helper-optimise-call-expression" "^7.22.5" "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-replace-supers" "^7.22.5" + "@babel/helper-replace-supers" "^7.22.9" "@babel/helper-split-export-declaration" "^7.22.6" globals "^11.1.0" @@ -1743,10 +1748,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-destructuring@^7.22.10": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.22.10.tgz#38e2273814a58c810b6c34ea293be4973c4eb5e2" - integrity sha512-dPJrL0VOyxqLM9sritNbMSGx/teueHF/htMKrPT7DNxccXxRDPYqlgPFFdr8u+F+qUZOkZoXue/6rL5O5GduEw== +"@babel/plugin-transform-destructuring@^7.22.15": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.0.tgz#6447aa686be48b32eaf65a73e0e2c0bd010a266c" + integrity sha512-vaMdgNXFkYrB+8lbgniSYWHsgqK5gjaMNcc84bMIOMRLH0L9AqYq3hwMdvnyqj1OPqea8UtjPEuS/DCenah1wg== dependencies: "@babel/helper-plugin-utils" "^7.22.5" @@ -1788,10 +1793,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-dynamic-import@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.5.tgz#d6908a8916a810468c4edff73b5b75bda6ad393e" - integrity sha512-0MC3ppTB1AMxd8fXjSrbPa7LT9hrImt+/fcj+Pg5YMD7UQyWp/02+JWpdnCymmsXwIx5Z+sYn1bwCn4ZJNvhqQ== +"@babel/plugin-transform-dynamic-import@^7.22.11": + version "7.22.11" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.11.tgz#2c7722d2a5c01839eaf31518c6ff96d408e447aa" + integrity sha512-g/21plo58sfteWjaO0ZNVb+uEOkJNjAaHhbejrnBmu011l/eNDScmkbjCC3l4FKb10ViaGU4aOkFznSu2zRHgA== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-dynamic-import" "^7.8.3" @@ -1812,10 +1817,10 @@ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.22.5" "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-export-namespace-from@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.5.tgz#57c41cb1d0613d22f548fddd8b288eedb9973a5b" - integrity sha512-X4hhm7FRnPgd4nDA4b/5V280xCx6oL7Oob5+9qVS5C13Zq4bh1qq7LU0GgRU6b5dBWBvhGaXYVB4AcN6+ol6vg== +"@babel/plugin-transform-export-namespace-from@^7.22.11": + version "7.22.11" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.11.tgz#b3c84c8f19880b6c7440108f8929caf6056db26c" + integrity sha512-xa7aad7q7OiT8oNZ1mU7NrISjlSkVdMbNxn9IuLZyL9AJEhs1Apba3I+u5riX1dIkdptP5EKDG5XDPByWxtehw== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" @@ -1827,10 +1832,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-for-of@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.22.5.tgz#ab1b8a200a8f990137aff9a084f8de4099ab173f" - integrity sha512-3kxQjX1dU9uudwSshyLeEipvrLjBCVthCgeTp6CzE/9JYrlAIaeekVxRpCWsDDfYTfRZRoCeZatCQvwo+wvK8A== +"@babel/plugin-transform-for-of@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.22.15.tgz#f64b4ccc3a4f131a996388fae7680b472b306b29" + integrity sha512-me6VGeHsx30+xh9fbDLLPi0J1HzmeIIyenoOQHuw2D4m2SAU3NrspX5XxJLBpqn5yrLzrlw2Iy3RA//Bx27iOA== dependencies: "@babel/helper-plugin-utils" "^7.22.5" @@ -1852,10 +1857,10 @@ "@babel/helper-function-name" "^7.22.5" "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-json-strings@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.5.tgz#14b64352fdf7e1f737eed68de1a1468bd2a77ec0" - integrity sha512-DuCRB7fu8MyTLbEQd1ew3R85nx/88yMoqo2uPSjevMj3yoN7CDM8jkgrY0wmVxfJZyJ/B9fE1iq7EQppWQmR5A== +"@babel/plugin-transform-json-strings@^7.22.11": + version "7.22.11" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.11.tgz#689a34e1eed1928a40954e37f74509f48af67835" + integrity sha512-CxT5tCqpA9/jXFlme9xIBCc5RPtdDq3JpkkhgHQqtDdiTnTI0jtZ0QzXhr5DILeYifDPp2wvY2ad+7+hLMW5Pw== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-json-strings" "^7.8.3" @@ -1874,10 +1879,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-logical-assignment-operators@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.5.tgz#66ae5f068fd5a9a5dc570df16f56c2a8462a9d6c" - integrity sha512-MQQOUW1KL8X0cDWfbwYP+TbVbZm16QmQXJQ+vndPtH/BoO0lOKpVoEDMI7+PskYxH+IiE0tS8xZye0qr1lGzSA== +"@babel/plugin-transform-logical-assignment-operators@^7.22.11": + version "7.22.11" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.11.tgz#24c522a61688bde045b7d9bc3c2597a4d948fc9c" + integrity sha512-qQwRTP4+6xFCDV5k7gZBF3C31K34ut0tbEcTKxlX/0KXxm9GLcO14p570aWxFvVzx6QAfPgq7gaeIHXJC8LswQ== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" @@ -1906,11 +1911,11 @@ babel-plugin-dynamic-import-node "^2.3.3" "@babel/plugin-transform-modules-amd@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.22.5.tgz#4e045f55dcf98afd00f85691a68fc0780704f526" - integrity sha512-R+PTfLTcYEmb1+kK7FNkhQ1gP4KgjpSO6HfH9+f8/yfp2Nt3ggBjiVpRwmwTlfqZLafYKJACy36yDXlEmI9HjQ== + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.0.tgz#05b2bc43373faa6d30ca89214731f76f966f3b88" + integrity sha512-xWT5gefv2HGSm4QHtgc1sYPbseOyf+FFDo2JbpE25GWl5BqTGO9IMwTYJRoIdjsF85GE+VegHxSCUt5EvoYTAw== dependencies: - "@babel/helper-module-transforms" "^7.22.5" + "@babel/helper-module-transforms" "^7.23.0" "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-transform-modules-commonjs@^7.18.2": @@ -1923,12 +1928,12 @@ "@babel/helper-simple-access" "^7.18.6" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-commonjs@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.22.5.tgz#7d9875908d19b8c0536085af7b053fd5bd651bfa" - integrity sha512-B4pzOXj+ONRmuaQTg05b3y/4DuFz3WcCNAXPLb2Q0GT0TrGKGxNKV4jwsXts+StaM0LQczZbOpj8o1DLPDJIiA== +"@babel/plugin-transform-modules-commonjs@^7.22.15", "@babel/plugin-transform-modules-commonjs@^7.23.0": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.0.tgz#b3dba4757133b2762c00f4f94590cf6d52602481" + integrity sha512-32Xzss14/UVc7k9g775yMIvkVK8xwKE0DPdP5JTapr3+Z9w4tzeOuLNY6BXDQR6BdnzIlXnCGAzsk/ICHBLVWQ== dependencies: - "@babel/helper-module-transforms" "^7.22.5" + "@babel/helper-module-transforms" "^7.23.0" "@babel/helper-plugin-utils" "^7.22.5" "@babel/helper-simple-access" "^7.22.5" @@ -1943,15 +1948,15 @@ "@babel/helper-validator-identifier" "^7.18.6" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-systemjs@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.5.tgz#18c31410b5e579a0092638f95c896c2a98a5d496" - integrity sha512-emtEpoaTMsOs6Tzz+nbmcePl6AKVtS1yC4YNAeMun9U8YCsgadPNxnOPQ8GhHFB2qdx+LZu9LgoC0Lthuu05DQ== +"@babel/plugin-transform-modules-systemjs@^7.22.11": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.0.tgz#77591e126f3ff4132a40595a6cccd00a6b60d160" + integrity sha512-qBej6ctXZD2f+DhlOC9yO47yEYgUh5CZNz/aBoH4j/3NOlRfJXJbY7xDQCqQVf9KbrqGzIWER1f23doHGrIHFg== dependencies: "@babel/helper-hoist-variables" "^7.22.5" - "@babel/helper-module-transforms" "^7.22.5" + "@babel/helper-module-transforms" "^7.23.0" "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-validator-identifier" "^7.22.5" + "@babel/helper-validator-identifier" "^7.22.20" "@babel/plugin-transform-modules-umd@^7.18.0": version "7.18.6" @@ -1999,32 +2004,32 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-nullish-coalescing-operator@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.5.tgz#f8872c65776e0b552e0849d7596cddd416c3e381" - integrity sha512-6CF8g6z1dNYZ/VXok5uYkkBBICHZPiGEl7oDnAx2Mt1hlHVHOSIKWJaXHjQJA5VB43KZnXZDIexMchY4y2PGdA== +"@babel/plugin-transform-nullish-coalescing-operator@^7.22.11": + version "7.22.11" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.11.tgz#debef6c8ba795f5ac67cd861a81b744c5d38d9fc" + integrity sha512-YZWOw4HxXrotb5xsjMJUDlLgcDXSfO9eCmdl1bgW4+/lAGdkjaEvOnQ4p5WKKdUgSzO39dgPl0pTnfxm0OAXcg== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" -"@babel/plugin-transform-numeric-separator@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.5.tgz#57226a2ed9e512b9b446517ab6fa2d17abb83f58" - integrity sha512-NbslED1/6M+sXiwwtcAB/nieypGw02Ejf4KtDeMkCEpP6gWFMX1wI9WKYua+4oBneCCEmulOkRpwywypVZzs/g== +"@babel/plugin-transform-numeric-separator@^7.22.11": + version "7.22.11" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.11.tgz#498d77dc45a6c6db74bb829c02a01c1d719cbfbd" + integrity sha512-3dzU4QGPsILdJbASKhF/V2TVP+gJya1PsueQCxIPCEcerqF21oEcrob4mzjsp2Py/1nLfF5m+xYNMDpmA8vffg== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-numeric-separator" "^7.10.4" -"@babel/plugin-transform-object-rest-spread@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.5.tgz#9686dc3447df4753b0b2a2fae7e8bc33cdc1f2e1" - integrity sha512-Kk3lyDmEslH9DnvCDA1s1kkd3YWQITiBOHngOtDL9Pt6BZjzqb6hiOlb8VfjiiQJ2unmegBqZu0rx5RxJb5vmQ== +"@babel/plugin-transform-object-rest-spread@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.15.tgz#21a95db166be59b91cde48775310c0df6e1da56f" + integrity sha512-fEB+I1+gAmfAyxZcX1+ZUwLeAuuf8VIg67CTznZE0MqVFumWkh8xWtn58I4dxdVf080wn7gzWoF8vndOViJe9Q== dependencies: - "@babel/compat-data" "^7.22.5" - "@babel/helper-compilation-targets" "^7.22.5" + "@babel/compat-data" "^7.22.9" + "@babel/helper-compilation-targets" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-transform-parameters" "^7.22.5" + "@babel/plugin-transform-parameters" "^7.22.15" "@babel/plugin-transform-object-super@^7.16.7": version "7.18.6" @@ -2042,18 +2047,18 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/helper-replace-supers" "^7.22.5" -"@babel/plugin-transform-optional-catch-binding@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.5.tgz#842080be3076703be0eaf32ead6ac8174edee333" - integrity sha512-pH8orJahy+hzZje5b8e2QIlBWQvGpelS76C63Z+jhZKsmzfNaPQ+LaW6dcJ9bxTpo1mtXbgHwy765Ro3jftmUg== +"@babel/plugin-transform-optional-catch-binding@^7.22.11": + version "7.22.11" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.11.tgz#461cc4f578a127bb055527b3e77404cad38c08e0" + integrity sha512-rli0WxesXUeCJnMYhzAglEjLWVDF6ahb45HuprcmQuLidBJFWjNnOzssk2kuc6e33FlLaiZhG/kUIzUMWdBKaQ== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-transform-optional-chaining@^7.22.10", "@babel/plugin-transform-optional-chaining@^7.22.5": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.10.tgz#076d28a7e074392e840d4ae587d83445bac0372a" - integrity sha512-MMkQqZAZ+MGj+jGTG3OTuhKeBpNcO+0oCEbrGNEaOmiEn+1MzRyQlYsruGiU8RTK3zV6XwrVJTmwiDOyYK6J9g== +"@babel/plugin-transform-optional-chaining@^7.22.15": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.0.tgz#73ff5fc1cf98f542f09f29c0631647d8ad0be158" + integrity sha512-sBBGXbLJjxTzLBF5rFWaikMnOGOk/BmK6vVByIdEggZ7Vn6CvWXZyRkkLFK6WE0IF8jSliyOkUN6SScFgzCM0g== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" @@ -2080,10 +2085,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.20.2" -"@babel/plugin-transform-parameters@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.5.tgz#c3542dd3c39b42c8069936e48717a8d179d63a18" - integrity sha512-AVkFUBurORBREOmHRKo06FjHYgjrabpdqRSwq6+C7R5iTCZOsM4QbcB27St0a4U6fffyAOqh3s/qEfybAhfivg== +"@babel/plugin-transform-parameters@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.15.tgz#719ca82a01d177af358df64a514d64c2e3edb114" + integrity sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ== dependencies: "@babel/helper-plugin-utils" "^7.22.5" @@ -2095,13 +2100,13 @@ "@babel/helper-create-class-features-plugin" "^7.22.5" "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-private-property-in-object@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.5.tgz#07a77f28cbb251546a43d175a1dda4cf3ef83e32" - integrity sha512-/9xnaTTJcVoBtSSmrVyhtSvO3kbqS2ODoh2juEU72c3aYonNF0OMGiaz2gjukyKM2wBBYJP38S4JiE0Wfb5VMQ== +"@babel/plugin-transform-private-property-in-object@^7.22.11": + version "7.22.11" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.11.tgz#ad45c4fc440e9cb84c718ed0906d96cf40f9a4e1" + integrity sha512-sSCbqZDBKHetvjSwpyWzhuHkmW5RummxJBVbYLkGkaiTOWGxml7SXt0iWa03bzxFIx7wOj3g/ILRd0RcJKBeSQ== dependencies: "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-create-class-features-plugin" "^7.22.5" + "@babel/helper-create-class-features-plugin" "^7.22.11" "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-private-property-in-object" "^7.14.5" @@ -2144,16 +2149,16 @@ "@babel/plugin-syntax-jsx" "^7.17.12" "@babel/types" "^7.17.12" -"@babel/plugin-transform-react-jsx@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.5.tgz#932c291eb6dd1153359e2a90cb5e557dcf068416" - integrity sha512-rog5gZaVbUip5iWDMTYbVM15XQq+RkUKhET/IHR6oizR+JEoN6CAfTTuHcK4vwUyzca30qqHqEpzBOnaRMWYMA== +"@babel/plugin-transform-react-jsx@^7.22.15", "@babel/plugin-transform-react-jsx@^7.22.5": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.15.tgz#7e6266d88705d7c49f11c98db8b9464531289cd6" + integrity sha512-oKckg2eZFa8771O/5vi7XeTvmM6+O9cxZu+kanTU7tD4sin5nO/G8jGJhq8Hvt2Z0kUoEDRayuZLaUlYl8QuGA== dependencies: "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-module-imports" "^7.22.5" + "@babel/helper-module-imports" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-jsx" "^7.22.5" - "@babel/types" "^7.22.5" + "@babel/types" "^7.22.15" "@babel/plugin-transform-react-pure-annotations@^7.22.5": version "7.22.5" @@ -2265,13 +2270,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-typescript@^7.22.5": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.10.tgz#aadd98fab871f0bb5717bcc24c31aaaa455af923" - integrity sha512-7++c8I/ymsDo4QQBAgbraXLzIM6jmfao11KgIBEYZRReWzNWH9NtNgJcyrZiXsOPh523FQm6LfpLyy/U5fn46A== +"@babel/plugin-transform-typescript@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.15.tgz#15adef906451d86349eb4b8764865c960eb54127" + integrity sha512-1uirS0TnijxvQLnlv5wQBwOX3E1wCFX7ITv+9pBV2wKEk4K+M5tqDaoNXnTH8tjEIYHLO98MwiTWO04Ggz4XuA== dependencies: "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-create-class-features-plugin" "^7.22.10" + "@babel/helper-create-class-features-plugin" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-typescript" "^7.22.5" @@ -2403,16 +2408,16 @@ semver "^6.3.0" "@babel/preset-env@^7.21.5": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.22.10.tgz#3263b9fe2c8823d191d28e61eac60a79f9ce8a0f" - integrity sha512-riHpLb1drNkpLlocmSyEg4oYJIQFeXAK/d7rI6mbD0XsvoTOOweXDmQPG/ErxsEhWk3rl3Q/3F6RFQlVFS8m0A== + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.22.20.tgz#de9e9b57e1127ce0a2f580831717f7fb677ceedb" + integrity sha512-11MY04gGC4kSzlPHRfvVkNAZhUxOvm7DCJ37hPDnUENwe06npjIRAfInEMTGSb4LZK5ZgDFkv5hw0lGebHeTyg== dependencies: - "@babel/compat-data" "^7.22.9" - "@babel/helper-compilation-targets" "^7.22.10" + "@babel/compat-data" "^7.22.20" + "@babel/helper-compilation-targets" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-validator-option" "^7.22.5" - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.22.5" - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.22.5" + "@babel/helper-validator-option" "^7.22.15" + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.22.15" + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.22.15" "@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2" "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/plugin-syntax-class-properties" "^7.12.13" @@ -2433,41 +2438,41 @@ "@babel/plugin-syntax-top-level-await" "^7.14.5" "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" "@babel/plugin-transform-arrow-functions" "^7.22.5" - "@babel/plugin-transform-async-generator-functions" "^7.22.10" + "@babel/plugin-transform-async-generator-functions" "^7.22.15" "@babel/plugin-transform-async-to-generator" "^7.22.5" "@babel/plugin-transform-block-scoped-functions" "^7.22.5" - "@babel/plugin-transform-block-scoping" "^7.22.10" + "@babel/plugin-transform-block-scoping" "^7.22.15" "@babel/plugin-transform-class-properties" "^7.22.5" - "@babel/plugin-transform-class-static-block" "^7.22.5" - "@babel/plugin-transform-classes" "^7.22.6" + "@babel/plugin-transform-class-static-block" "^7.22.11" + "@babel/plugin-transform-classes" "^7.22.15" "@babel/plugin-transform-computed-properties" "^7.22.5" - "@babel/plugin-transform-destructuring" "^7.22.10" + "@babel/plugin-transform-destructuring" "^7.22.15" "@babel/plugin-transform-dotall-regex" "^7.22.5" "@babel/plugin-transform-duplicate-keys" "^7.22.5" - "@babel/plugin-transform-dynamic-import" "^7.22.5" + "@babel/plugin-transform-dynamic-import" "^7.22.11" "@babel/plugin-transform-exponentiation-operator" "^7.22.5" - "@babel/plugin-transform-export-namespace-from" "^7.22.5" - "@babel/plugin-transform-for-of" "^7.22.5" + "@babel/plugin-transform-export-namespace-from" "^7.22.11" + "@babel/plugin-transform-for-of" "^7.22.15" "@babel/plugin-transform-function-name" "^7.22.5" - "@babel/plugin-transform-json-strings" "^7.22.5" + "@babel/plugin-transform-json-strings" "^7.22.11" "@babel/plugin-transform-literals" "^7.22.5" - "@babel/plugin-transform-logical-assignment-operators" "^7.22.5" + "@babel/plugin-transform-logical-assignment-operators" "^7.22.11" "@babel/plugin-transform-member-expression-literals" "^7.22.5" "@babel/plugin-transform-modules-amd" "^7.22.5" - "@babel/plugin-transform-modules-commonjs" "^7.22.5" - "@babel/plugin-transform-modules-systemjs" "^7.22.5" + "@babel/plugin-transform-modules-commonjs" "^7.22.15" + "@babel/plugin-transform-modules-systemjs" "^7.22.11" "@babel/plugin-transform-modules-umd" "^7.22.5" "@babel/plugin-transform-named-capturing-groups-regex" "^7.22.5" "@babel/plugin-transform-new-target" "^7.22.5" - "@babel/plugin-transform-nullish-coalescing-operator" "^7.22.5" - "@babel/plugin-transform-numeric-separator" "^7.22.5" - "@babel/plugin-transform-object-rest-spread" "^7.22.5" + "@babel/plugin-transform-nullish-coalescing-operator" "^7.22.11" + "@babel/plugin-transform-numeric-separator" "^7.22.11" + "@babel/plugin-transform-object-rest-spread" "^7.22.15" "@babel/plugin-transform-object-super" "^7.22.5" - "@babel/plugin-transform-optional-catch-binding" "^7.22.5" - "@babel/plugin-transform-optional-chaining" "^7.22.10" - "@babel/plugin-transform-parameters" "^7.22.5" + "@babel/plugin-transform-optional-catch-binding" "^7.22.11" + "@babel/plugin-transform-optional-chaining" "^7.22.15" + "@babel/plugin-transform-parameters" "^7.22.15" "@babel/plugin-transform-private-methods" "^7.22.5" - "@babel/plugin-transform-private-property-in-object" "^7.22.5" + "@babel/plugin-transform-private-property-in-object" "^7.22.11" "@babel/plugin-transform-property-literals" "^7.22.5" "@babel/plugin-transform-regenerator" "^7.22.10" "@babel/plugin-transform-reserved-words" "^7.22.5" @@ -2481,7 +2486,7 @@ "@babel/plugin-transform-unicode-regex" "^7.22.5" "@babel/plugin-transform-unicode-sets-regex" "^7.22.5" "@babel/preset-modules" "0.1.6-no-external-plugins" - "@babel/types" "^7.22.10" + "@babel/types" "^7.22.19" babel-plugin-polyfill-corejs2 "^0.4.5" babel-plugin-polyfill-corejs3 "^0.8.3" babel-plugin-polyfill-regenerator "^0.5.2" @@ -2509,27 +2514,27 @@ esutils "^2.0.2" "@babel/preset-react@^7.18.6": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.22.5.tgz#c4d6058fbf80bccad02dd8c313a9aaa67e3c3dd6" - integrity sha512-M+Is3WikOpEJHgR385HbuCITPTaPRaNkibTEa9oiofmJvIsrceb4yp9RL9Kb+TE8LznmeyZqpP+Lopwcx59xPQ== + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.22.15.tgz#9a776892b648e13cc8ca2edf5ed1264eea6b6afc" + integrity sha512-Csy1IJ2uEh/PecCBXXoZGAZBeCATTuePzCSB7dLYWS0vOEj6CNpjxIhW4duWwZodBNueH7QO14WbGn8YyeuN9w== dependencies: "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-validator-option" "^7.22.5" + "@babel/helper-validator-option" "^7.22.15" "@babel/plugin-transform-react-display-name" "^7.22.5" - "@babel/plugin-transform-react-jsx" "^7.22.5" + "@babel/plugin-transform-react-jsx" "^7.22.15" "@babel/plugin-transform-react-jsx-development" "^7.22.5" "@babel/plugin-transform-react-pure-annotations" "^7.22.5" "@babel/preset-typescript@^7.21.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.22.5.tgz#16367d8b01d640e9a507577ed4ee54e0101e51c8" - integrity sha512-YbPaal9LxztSGhmndR46FmAbkJ/1fAsw293tSU+I5E5h+cnJ3d4GTwyUgGYmOXJYdGA+uNePle4qbaRzj2NISQ== + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.23.0.tgz#cc6602d13e7e5b2087c811912b87cf937a9129d9" + integrity sha512-6P6VVa/NM/VlAYj5s2Aq/gdVg8FSENCg3wlZ6Qau9AcPaoF5LbN1nyGlR9DTRIw9PpxI94e+ReydsJHcjwAweg== dependencies: "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-validator-option" "^7.22.5" + "@babel/helper-validator-option" "^7.22.15" "@babel/plugin-syntax-jsx" "^7.22.5" - "@babel/plugin-transform-modules-commonjs" "^7.22.5" - "@babel/plugin-transform-typescript" "^7.22.5" + "@babel/plugin-transform-modules-commonjs" "^7.23.0" + "@babel/plugin-transform-typescript" "^7.22.15" "@babel/regjsgen@^0.8.0": version "0.8.0" @@ -2549,7 +2554,7 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/runtime@^7.12.5", "@babel/runtime@^7.9.2": +"@babel/runtime@^7.12.5": version "7.17.2" resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.2.tgz" integrity sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw== @@ -2569,10 +2574,10 @@ dependencies: regenerator-runtime "^0.13.2" -"@babel/runtime@^7.8.4": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.10.tgz#ae3e9631fd947cb7e3610d3e9d8fef5f76696682" - integrity sha512-21t/fkKLMZI4pqP2wlmsQAWnYW1PDyKyyUV4vCi+B25ydmdaYTKXPwCj0BzSUnZf4seIiYvSA3jcZ3gdsMFkLQ== +"@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": + version "7.23.1" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.1.tgz#72741dc4d413338a91dcb044a86f3c0bc402646d" + integrity sha512-hC2v6p8ZSI/W0HUzh3V8C5g+NwSKzKPtJwSpTjwl0o297GP9+ZLQSkdvHz46CM3LqyoXxq+5G9komY+eSqSO0g== dependencies: regenerator-runtime "^0.14.0" @@ -2620,14 +2625,14 @@ "@babel/parser" "^7.21.9" "@babel/types" "^7.21.5" -"@babel/template@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.5.tgz#0c8c4d944509875849bd0344ff0050756eefc6ec" - integrity sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw== +"@babel/template@^7.22.15", "@babel/template@^7.22.5": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38" + integrity sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w== dependencies: - "@babel/code-frame" "^7.22.5" - "@babel/parser" "^7.22.5" - "@babel/types" "^7.22.5" + "@babel/code-frame" "^7.22.13" + "@babel/parser" "^7.22.15" + "@babel/types" "^7.22.15" "@babel/template@^7.6.0": version "7.6.0" @@ -2735,19 +2740,19 @@ debug "^4.1.0" globals "^11.1.0" -"@babel/traverse@^7.22.10": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.22.10.tgz#20252acb240e746d27c2e82b4484f199cf8141aa" - integrity sha512-Q/urqV4pRByiNNpb/f5OSv28ZlGJiFiiTh+GAHktbIrkPhPbl90+uW6SmpoLyZqutrg9AEaEf3Q/ZBRHBXgxig== +"@babel/traverse@^7.23.0": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.0.tgz#18196ddfbcf4ccea324b7f6d3ada00d8c5a99c53" + integrity sha512-t/QaEvyIoIkwzpiZ7aoSKK8kObQYeF7T2v+dazAYCb8SXtp58zEVkWW7zAnju8FNKNdr4ScAOEDmMItbyOmEYw== dependencies: - "@babel/code-frame" "^7.22.10" - "@babel/generator" "^7.22.10" - "@babel/helper-environment-visitor" "^7.22.5" - "@babel/helper-function-name" "^7.22.5" + "@babel/code-frame" "^7.22.13" + "@babel/generator" "^7.23.0" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-function-name" "^7.23.0" "@babel/helper-hoist-variables" "^7.22.5" "@babel/helper-split-export-declaration" "^7.22.6" - "@babel/parser" "^7.22.10" - "@babel/types" "^7.22.10" + "@babel/parser" "^7.23.0" + "@babel/types" "^7.23.0" debug "^4.1.0" globals "^11.1.0" @@ -2806,7 +2811,7 @@ "@babel/helper-validator-identifier" "^7.18.6" to-fast-properties "^2.0.0" -"@babel/types@^7.18.6", "@babel/types@^7.22.10", "@babel/types@^7.22.5", "@babel/types@^7.4.4": +"@babel/types@^7.18.6": version "7.22.10" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.22.10.tgz#4a9e76446048f2c66982d1a989dd12b8a2d2dc03" integrity sha512-obaoigiLrlDZ7TUQln/8m4mSqIW2QFeOrCQc9r+xsaHGNoplVNYlRVpsfE8Vj35GEm2ZH4ZhrNYogs/3fj85kg== @@ -2842,6 +2847,15 @@ "@babel/helper-validator-identifier" "^7.19.1" to-fast-properties "^2.0.0" +"@babel/types@^7.22.15", "@babel/types@^7.22.19", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.4.4": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.0.tgz#8c1f020c9df0e737e4e247c0619f58c68458aaeb" + integrity sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg== + dependencies: + "@babel/helper-string-parser" "^7.22.5" + "@babel/helper-validator-identifier" "^7.22.20" + to-fast-properties "^2.0.0" + "@babel/types@^7.8.3": version "7.8.3" resolved "https://registry.npmjs.org/@babel/types/-/types-7.8.3.tgz" @@ -2899,11 +2913,16 @@ dependencies: eslint-visitor-keys "^3.3.0" -"@eslint-community/regexpp@^4.4.0", "@eslint-community/regexpp@^4.6.1": +"@eslint-community/regexpp@^4.4.0": version "4.6.2" resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.6.2.tgz#1816b5f6948029c5eaacb0703b850ee0cb37d8f8" integrity sha512-pPTNuaAG3QMH+buKyBIGJs3g/S5y0caxw0ygM3YyE6yJFySwiGGSzA+mM3KJ8QQvzeLh3blwgSonkFjgQdxzMw== +"@eslint-community/regexpp@^4.6.1": + version "4.9.0" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.9.0.tgz#7ccb5f58703fa61ffdcbf39e2c604a109e781162" + integrity sha512-zJmuCWj2VLBt4c25CfBIbMZLGLyhkvs7LznyVX5HfpzeocThgIj5XQK4L+g3U36mMcx8bPMhGyPpwCATamC4jQ== + "@eslint/eslintrc@^2.1.2": version "2.1.2" resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.2.tgz#c6936b4b328c64496692f76944e755738be62396" @@ -2919,10 +2938,10 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@eslint/js@^8.47.0": - version "8.47.0" - resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.47.0.tgz#5478fdf443ff8158f9de171c704ae45308696c7d" - integrity sha512-P6omY1zv5MItm93kLM8s2vr1HICJH8v0dvddDhysbIuZ+vcjOHg5Zbkf1mTkcmi2JA9oBG2anOkRnW8WJTS8Og== +"@eslint/js@8.50.0": + version "8.50.0" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.50.0.tgz#9e93b850f0f3fa35f5fa59adfd03adae8488e484" + integrity sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ== "@fortawesome/fontawesome-common-types@^0.2.30": version "0.2.30" @@ -2951,10 +2970,10 @@ resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6" integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw== -"@humanwhocodes/config-array@^0.11.10": - version "0.11.10" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.10.tgz#5a3ffe32cc9306365fb3fd572596cd602d5e12d2" - integrity sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ== +"@humanwhocodes/config-array@^0.11.11": + version "0.11.11" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.11.tgz#88a04c570dbbc7dd943e4712429c3df09bc32844" + integrity sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA== dependencies: "@humanwhocodes/object-schema" "^1.2.1" debug "^4.1.1" @@ -3181,9 +3200,9 @@ write-file-atomic "^3.0.0" "@jest/types@^27.2.5": - version "27.2.5" - resolved "https://registry.npmjs.org/@jest/types/-/types-27.2.5.tgz" - integrity sha512-nmuM4VuDtCZcY+eTpw+0nvstwReMsjPoj7ZR80/BbixulhLaiX+fbv8oeLW8WZlJMcsGQsTmMKT/iTZu1Uy/lQ== + version "27.5.1" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80" + integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== dependencies: "@types/istanbul-lib-coverage" "^2.0.0" "@types/istanbul-reports" "^3.0.0" @@ -3574,15 +3593,15 @@ universal-user-agent "^6.0.0" "@octokit/core@^5.0.0": - version "5.0.0" - resolved "https://registry.yarnpkg.com/@octokit/core/-/core-5.0.0.tgz#0fc2b6eb88437e5c1d69f756a5dcee7472d2b2dd" - integrity sha512-YbAtMWIrbZ9FCXbLwT9wWB8TyLjq9mxpKdgB3dUNxQcIVTf9hJ70gRPwAcqGZdY6WdJPZ0I7jLaaNDCiloGN2A== + version "5.0.1" + resolved "https://registry.yarnpkg.com/@octokit/core/-/core-5.0.1.tgz#865da2b30d54354cccb6e30861ddfa0e24494780" + integrity sha512-lyeeeZyESFo+ffI801SaBKmCfsvarO+dgV8/0gD8u1d87clbEdWsP5yC+dSj3zLhb2eIf5SJrn6vDz9AheETHw== dependencies: "@octokit/auth-token" "^4.0.0" "@octokit/graphql" "^7.0.0" "@octokit/request" "^8.0.2" "@octokit/request-error" "^5.0.0" - "@octokit/types" "^11.0.0" + "@octokit/types" "^12.0.0" before-after-hook "^2.2.0" universal-user-agent "^6.0.0" @@ -3596,11 +3615,11 @@ universal-user-agent "^6.0.0" "@octokit/endpoint@^9.0.0": - version "9.0.0" - resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-9.0.0.tgz#c5ce19c74b999b85af9a8a189275c80faa3e90fd" - integrity sha512-szrQhiqJ88gghWY2Htt8MqUDO6++E/EIXqJ2ZEp5ma3uGS46o7LZAzSLt49myB7rT+Hfw5Y6gO3LmOxGzHijAQ== + version "9.0.1" + resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-9.0.1.tgz#c3f69d27accddcb04a3199fcef541804288149d2" + integrity sha512-hRlOKAovtINHQPYHZlfyFwaM8OyetxeoC81lAkBy34uLb8exrZB50SQdeW3EROqiY9G9yxQTpp5OHTV54QD+vA== dependencies: - "@octokit/types" "^11.0.0" + "@octokit/types" "^12.0.0" is-plain-object "^5.0.0" universal-user-agent "^6.0.0" @@ -3614,12 +3633,12 @@ universal-user-agent "^6.0.0" "@octokit/graphql@^7.0.0": - version "7.0.1" - resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-7.0.1.tgz#f2291620e17cdaa8115f8d0cdfc0644789ec2db2" - integrity sha512-T5S3oZ1JOE58gom6MIcrgwZXzTaxRnxBso58xhozxHpOqSTgDS6YNeEUvZ/kRvXgPrRz/KHnZhtb7jUMRi9E6w== + version "7.0.2" + resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-7.0.2.tgz#3df14b9968192f9060d94ed9e3aa9780a76e7f99" + integrity sha512-OJ2iGMtj5Tg3s6RaXH22cJcxXRi7Y3EBqbHTBRq+PQAqfaS8f/236fUrWhfSn8P4jovyzqucxme7/vWSSZBX2Q== dependencies: "@octokit/request" "^8.0.1" - "@octokit/types" "^11.0.0" + "@octokit/types" "^12.0.0" universal-user-agent "^6.0.0" "@octokit/openapi-types@^17.1.2": @@ -3628,9 +3647,14 @@ integrity sha512-OaS7Ol4Y+U50PbejfzQflGWRMxO04nYWO5ZBv6JerqMKE2WS/tI9VoVDDPXHBlRMGG2fOdKwtVGlFfc7AVIstw== "@octokit/openapi-types@^18.0.0": - version "18.0.0" - resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-18.0.0.tgz#f43d765b3c7533fd6fb88f3f25df079c24fccf69" - integrity sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw== + version "18.1.1" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-18.1.1.tgz#09bdfdabfd8e16d16324326da5148010d765f009" + integrity sha512-VRaeH8nCDtF5aXWnjPuEMIYf1itK/s3JYyJcWFJT8X9pSNnBtriDf7wlEWsGuhPLl4QIH4xM8fqTXDwJ3Mu6sw== + +"@octokit/openapi-types@^19.0.0": + version "19.0.0" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-19.0.0.tgz#0101bf62ab14c1946149a0f8385440963e1253c4" + integrity sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw== "@octokit/plugin-enterprise-rest@6.0.1": version "6.0.1" @@ -3645,12 +3669,12 @@ "@octokit/tsconfig" "^1.0.2" "@octokit/types" "^9.2.3" -"@octokit/plugin-paginate-rest@^8.0.0": - version "8.0.0" - resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-8.0.0.tgz#417b5367da2ba3c2d255a59b87c1cc608228ec38" - integrity sha512-2xZ+baZWUg+qudVXnnvXz7qfrTmDeYPCzangBVq/1gXxii/OiS//4shJp9dnCCvj1x+JAm9ji1Egwm1BA47lPQ== +"@octokit/plugin-paginate-rest@^9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.0.0.tgz#21fd12816c2dc158a775ed20be5abcbc61052a46" + integrity sha512-oIJzCpttmBTlEhBmRvb+b9rlnGpmFgDtZ0bB6nq39qIod6A5DP+7RkVLMOixIgRCYSHDTeayWqmiJ2SZ6xgfdw== dependencies: - "@octokit/types" "^11.0.0" + "@octokit/types" "^12.0.0" "@octokit/plugin-request-log@^1.0.4": version "1.0.4" @@ -3662,6 +3686,13 @@ resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-4.0.0.tgz#260fa6970aa97bbcbd91f99f3cd812e2b285c9f1" integrity sha512-2uJI1COtYCq8Z4yNSnM231TgH50bRkheQ9+aH8TnZanB6QilOnx8RMD2qsnamSOXtDj0ilxvevf5fGsBhBBzKA== +"@octokit/plugin-rest-endpoint-methods@^10.0.0": + version "10.0.0" + resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.0.0.tgz#040b36d6a15d4c7c534b0f44050051225f884cae" + integrity sha512-16VkwE2v6rXU+/gBsYC62M8lKWOphY5Lg4wpjYnVE9Zbu0J6IwiT5kILoj1YOB53XLmcJR+Nqp8DmifOPY4H3g== + dependencies: + "@octokit/types" "^12.0.0" + "@octokit/plugin-rest-endpoint-methods@^7.1.2": version "7.2.3" resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-7.2.3.tgz#37a84b171a6cb6658816c82c4082ac3512021797" @@ -3669,13 +3700,6 @@ dependencies: "@octokit/types" "^10.0.0" -"@octokit/plugin-rest-endpoint-methods@^9.0.0": - version "9.0.0" - resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-9.0.0.tgz#e15d54540893202da107305ded2bfd21ce6f769d" - integrity sha512-KquMF/VB1IkKNiVnzJKspY5mFgGyLd7HzdJfVEGTJFzqu9BRFNWt+nwTCMuUiWc72gLQhRWYubTwOkQj+w/1PA== - dependencies: - "@octokit/types" "^11.0.0" - "@octokit/request-error@^3.0.0": version "3.0.3" resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-3.0.3.tgz#ef3dd08b8e964e53e55d471acfe00baa892b9c69" @@ -3686,11 +3710,11 @@ once "^1.4.0" "@octokit/request-error@^5.0.0": - version "5.0.0" - resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-5.0.0.tgz#060c5770833f9d563ad9a49fec6650c41584bc40" - integrity sha512-1ue0DH0Lif5iEqT52+Rf/hf0RmGO9NWFjrzmrkArpG9trFfDM/efx00BJHdLGuro4BR/gECxCU2Twf5OKrRFsQ== + version "5.0.1" + resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-5.0.1.tgz#277e3ce3b540b41525e07ba24c5ef5e868a72db9" + integrity sha512-X7pnyTMV7MgtGmiXBwmO6M5kIPrntOXdyKZLigNfQWSEQzVxR4a4vo49vJjTWX70mPndj8KhfT4Dx+2Ng3vnBQ== dependencies: - "@octokit/types" "^11.0.0" + "@octokit/types" "^12.0.0" deprecation "^2.0.0" once "^1.4.0" @@ -3707,13 +3731,13 @@ universal-user-agent "^6.0.0" "@octokit/request@^8.0.1", "@octokit/request@^8.0.2": - version "8.1.1" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-8.1.1.tgz#23b4d3f164e973f4c1a0f24f68256f1646c00620" - integrity sha512-8N+tdUz4aCqQmXl8FpHYfKG9GelDFd7XGVzyN8rc6WxVlYcfpHECnuRkgquzz+WzvHTK62co5di8gSXnzASZPQ== + version "8.1.2" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-8.1.2.tgz#26763e2001da1c98fa89c7df4d6414246bb1564b" + integrity sha512-A0RJJfzjlZQwb+39eDm5UM23dkxbp28WEG4p2ueH+Q2yY4p349aRK/vcUlEuIB//ggcrHJceoYYkBP/LYCoXEg== dependencies: "@octokit/endpoint" "^9.0.0" "@octokit/request-error" "^5.0.0" - "@octokit/types" "^11.1.0" + "@octokit/types" "^12.0.0" is-plain-object "^5.0.0" universal-user-agent "^6.0.0" @@ -3728,14 +3752,14 @@ "@octokit/plugin-rest-endpoint-methods" "^7.1.2" "@octokit/rest@^20.0.0": - version "20.0.1" - resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-20.0.1.tgz#b8ee194b7cf89772d1e3fea3209f741c76a5efd3" - integrity sha512-wROV21RwHQIMNb2Dgd4+pY+dVy1Dwmp85pBrgr6YRRDYRBu9Gb+D73f4Bl2EukZSj5hInq2Tui9o7gAQpc2k2Q== + version "20.0.2" + resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-20.0.2.tgz#5cc8871ba01b14604439049e5f06c74b45c99594" + integrity sha512-Ux8NDgEraQ/DMAU1PlAohyfBBXDwhnX2j33Z1nJNziqAfHi70PuxkFYIcIt8aIAxtRE7KVuKp8lSR8pA0J5iOQ== dependencies: "@octokit/core" "^5.0.0" - "@octokit/plugin-paginate-rest" "^8.0.0" + "@octokit/plugin-paginate-rest" "^9.0.0" "@octokit/plugin-request-log" "^4.0.0" - "@octokit/plugin-rest-endpoint-methods" "^9.0.0" + "@octokit/plugin-rest-endpoint-methods" "^10.0.0" "@octokit/tsconfig@^1.0.2": version "1.0.2" @@ -3749,12 +3773,12 @@ dependencies: "@octokit/openapi-types" "^18.0.0" -"@octokit/types@^11.0.0", "@octokit/types@^11.1.0": - version "11.1.0" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-11.1.0.tgz#9e5db741d582b05718a4d91bac8cc987def235ea" - integrity sha512-Fz0+7GyLm/bHt8fwEqgvRBWwIV1S6wRRyq+V6exRKLVWaKGsuy6H9QFYeBVDV7rK6fO3XwHgQOPxv+cLj2zpXQ== +"@octokit/types@^12.0.0": + version "12.0.0" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-12.0.0.tgz#6b34309288b6f5ac9761d2589e3165cde1b95fee" + integrity sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg== dependencies: - "@octokit/openapi-types" "^18.0.0" + "@octokit/openapi-types" "^19.0.0" "@octokit/types@^9.0.0": version "9.2.2" @@ -3778,10 +3802,10 @@ node-addon-api "^3.2.1" node-gyp-build "^4.3.0" -"@patternfly/ast-helpers@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@patternfly/ast-helpers/-/ast-helpers-1.2.0.tgz#43d0b440803ac35005a4776e0149510b9dca6aa6" - integrity sha512-e/yELmpUtY7rSMjl96roC0fmr8EIp8Q8ZxfBObK+FV4o5e7G3/Q4GKikx3Pdmtw3o+RB5bfXZrOH9p2wWvRkbQ== +"@patternfly/ast-helpers@^1.2.6": + version "1.2.6" + resolved "https://registry.yarnpkg.com/@patternfly/ast-helpers/-/ast-helpers-1.2.6.tgz#a95333768e5a476ba543f16f5434b459e5b5c1bb" + integrity sha512-yLrmI6VtNb90b8vzFTWycNGV+0ki9ih0nneVFka7cmwPg/uVYCtJsnH8ykXtSbHOcomwujFDJidbGATwP+r/Cw== dependencies: acorn "^8.4.1" acorn-class-fields "^1.0.0" @@ -3790,9 +3814,9 @@ astring "^1.7.5" "@patternfly/documentation-framework@^5.0.15": - version "5.2.0" - resolved "https://registry.yarnpkg.com/@patternfly/documentation-framework/-/documentation-framework-5.2.0.tgz#e7e73e8db78d3ed055008c89a97f3684aada2292" - integrity sha512-LfAQWExpVfXWE336AHpnohUcFq9F20Hcs/ke+o0dsYq8XcSwJnSE/Sp20G9t59MgSAG4YA9DzjfdZMv5Q8dTcw== + version "5.2.6" + resolved "https://registry.yarnpkg.com/@patternfly/documentation-framework/-/documentation-framework-5.2.6.tgz#23d94478c553fab9b56d3f7b2f20222b77839ae6" + integrity sha512-t/iPXnxbNmWC8DX9zNLT5q1yEhz4OvktjeJm3p9ax4yuPFGpgoL6SiwH7sqMp38YlLyF5EVqstA66WmW6Ix5Pw== dependencies: "@babel/core" "7.18.2" "@babel/plugin-proposal-class-properties" "7.17.12" @@ -3802,7 +3826,7 @@ "@babel/plugin-transform-react-jsx" "7.17.12" "@babel/preset-env" "7.18.2" "@mdx-js/util" "1.6.16" - "@patternfly/ast-helpers" "^1.2.0" + "@patternfly/ast-helpers" "^1.2.6" "@reach/router" "npm:@gatsbyjs/reach-router@1.3.9" autoprefixer "9.8.6" babel-loader "9.1.2" @@ -3942,9 +3966,9 @@ magic-string "^0.27.0" "@rollup/plugin-node-resolve@^15.0.2": - version "15.1.0" - resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.1.0.tgz#9ffcd8e8c457080dba89bb9fcb583a6778dc757e" - integrity sha512-xeZHCgsiZ9pzYVgAo9580eCGqwh/XCEUM9q6iQfGNocjgkufHAqC3exA+45URvhiYV8sBF9RlBai650eNs7AsA== + version "15.2.1" + resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.1.tgz#a15b14fb7969229e26a30feff2816d39eff503f0" + integrity sha512-nsbUg588+GDSu8/NS8T4UAshO6xeaOfINNuXeVHcKV02LJtoRaM1SiOacClw4kws1SFiNhdLGxlbMY9ga/zs/w== dependencies: "@rollup/pluginutils" "^5.0.1" "@types/resolve" "1.20.2" @@ -4043,9 +4067,9 @@ pretty-format "^27.0.2" "@testing-library/jest-dom@^5.16.5": - version "5.16.5" - resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.16.5.tgz#3912846af19a29b2dbf32a6ae9c31ef52580074e" - integrity sha512-N5ixQ2qKpi5OLYfwQmUb/5mSV9LneAcaUfp32pn4yCnpb8r/Yz0pXFPck21dIicKmi+ta5WRAknkZCfA8refMA== + version "5.17.0" + resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.17.0.tgz#5e97c8f9a15ccf4656da00fecab505728de81e0c" + integrity sha512-ynmNeT7asXyH3aSVv4vvX4Rb+0qjOhdNHnO/3vuZNqPmhDpV/+rCSGwQ7bLcmU2cJ4dvoheIO85LQj0IbJHEtg== dependencies: "@adobe/css-tools" "^4.0.1" "@babel/runtime" "^7.9.2" @@ -4066,10 +4090,10 @@ "@testing-library/dom" "^8.5.0" "@types/react-dom" "^18.0.0" -"@testing-library/user-event@14.4.3": - version "14.4.3" - resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.4.3.tgz#af975e367743fa91989cd666666aec31a8f50591" - integrity sha512-kCUc5MEwaEMakkO5x7aoD+DLi02ehmEM2QCGWvNqAS1dV/fAvORWEjnjsEIvml59M7Y5kCkWN6fCCyPOe8OL6Q== +"@testing-library/user-event@14.5.1": + version "14.5.1" + resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.5.1.tgz#27337d72046d5236b32fd977edee3f74c71d332f" + integrity sha512-UCcUKrUYGj7ClomOo2SpNVvx4/fkd/2BbIHDCle8A0ax+P3bU7yJwDBDrS6ZwdTMARWTGODX1hEsCcO+7beJjg== "@tootallnate/once@1": version "1.1.2" @@ -4323,35 +4347,33 @@ "@types/through" "*" rxjs "^7.2.0" -"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": +"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" + integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== + +"@types/istanbul-lib-coverage@^2.0.1": version "2.0.3" resolved "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz" "@types/istanbul-lib-report@*": - version "3.0.0" - resolved "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz" + version "3.0.1" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz#412e0725ef41cde73bfa03e0e833eaff41e0fd63" + integrity sha512-gPQuzaPR5h/djlAv2apEG1HVOyj1IUs7GpfMZixU0/0KXT3pm64ylHuMUI1/Akh+sq/iikxg6Z2j+fcMDXaaTQ== dependencies: "@types/istanbul-lib-coverage" "*" "@types/istanbul-reports@^3.0.0": - version "3.0.1" - resolved "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz" - integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== + version "3.0.2" + resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.2.tgz#edc8e421991a3b4df875036d381fc0a5a982f549" + integrity sha512-kv43F9eb3Lhj+lr/Hn6OcLCs/sSM8bt+fIaP11rCYngfV6NVjzWXJ17owQtDQTL9tQ8WSLUrGsSJ6rJz0F1w1A== dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@*": - version "27.4.0" - resolved "https://registry.npmjs.org/@types/jest/-/jest-27.4.0.tgz" - integrity sha512-gHl8XuC1RZ8H2j5sHv/JqsaxXkDDM9iDOgu0Wp8sjs4u/snb2PVehyWXJPr+ORA0RPpgw231mnutWI1+0hgjIQ== - dependencies: - jest-diff "^27.0.0" - pretty-format "^27.0.0" - -"@types/jest@29.5.3": - version "29.5.3" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.3.tgz#7a35dc0044ffb8b56325c6802a4781a626b05777" - integrity sha512-1Nq7YrO/vJE/FYnqYyw0FS8LdrjExSgIiHyKg7xPpn+yi8Q4huZryKnkJatN1ZRH89Kw2v33/8ZMB7DuZeSLlA== +"@types/jest@*", "@types/jest@29.5.5": + version "29.5.5" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.5.tgz#727204e06228fe24373df9bae76b90f3e8236a2a" + integrity sha512-ebylz2hnsWR9mYvmBFbXJXr+33UPc4+ZdxyDXh5w0FlPBTfCVN3wPL+kuOiQt3xvrK419v7XWeAs+AeOksafXg== dependencies: expect "^29.0.0" pretty-format "^29.0.0" @@ -4418,8 +4440,9 @@ resolved "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.0.tgz" "@types/node@*": - version "14.6.4" - resolved "https://registry.npmjs.org/@types/node/-/node-14.6.4.tgz" + version "20.7.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.7.0.tgz#c03de4572f114a940bc2ca909a33ddb2b925e470" + integrity sha512-zI22/pJW2wUZOVyguFaUL1HABdmSVxpXrzIqkjsHmyUjNhPoWM1CKfvVuXfetHhIok4RY573cqS0mZ1SJEnoTg== "@types/node@^14.14.31": version "14.17.17" @@ -4445,8 +4468,9 @@ integrity sha512-Fo79ojj3vdEZOHg3wR9ksAMRz4P3S5fDB5e/YWZiFnyFQI1WY2Vftu9XoXVVtJfxB7Bpce/QTqWSSntkz2Znrw== "@types/prop-types@*": - version "15.7.3" - resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz" + version "15.7.7" + resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.7.tgz#f9361f7b87fd5d8188b2c998db0a1f47e9fb391a" + integrity sha512-FbtmBWCcSa2J4zL781Zf1p5YUBXQomPEcep9QZCfRfQgTxz3pJWiDFLebohZ9fFntX5ibzOkSsrJ0TEew8cAog== "@types/qs@*": version "6.9.7" @@ -4459,9 +4483,9 @@ integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw== "@types/react-dom@^18", "@types/react-dom@^18.0.0": - version "18.0.6" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.0.6.tgz#36652900024842b74607a17786b6662dd1e103a1" - integrity sha512-/5OFZgfIPSwy+YuIBP/FgJnQnsxhZhjjrnxudMddeblOouIodEQ75X14Rr4wGSG/bknL+Omy9iWlLo1u/9GzAA== + version "18.2.8" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.8.tgz#338f1b0a646c9f10e0a97208c1d26b9f473dffd6" + integrity sha512-bAIvO5lN/U8sPGvs1Xm61rlRHHaq5rp5N3kp9C+NJ/Q41P8iqjkXSu0+/qu8POsjH9pNWb0OYabFez7taP7omw== dependencies: "@types/react" "*" @@ -4490,9 +4514,9 @@ "@types/react" "*" "@types/react@*", "@types/react@^18": - version "18.0.17" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.17.tgz#4583d9c322d67efe4b39a935d223edcc7050ccf4" - integrity sha512-38ETy4tL+rn4uQQi7mB81G7V1g0u2ryquNmsVIOKUAEIDK+3CUjZ6rSRpdvS99dNBnkLFL83qfmtLacGOTIhwQ== + version "18.2.23" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.23.tgz#60ad6cf4895e93bed858db0e03bcc4ff97d0410e" + integrity sha512-qHLW6n1q2+7KyBEYnrZpcsAmU/iiCh9WGCKgXvMxx89+TYdJWRjZohVIo9XTcoLhfX3+/hP0Pbulu3bCZQ9PSA== dependencies: "@types/prop-types" "*" "@types/scheduler" "*" @@ -4509,9 +4533,9 @@ integrity sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA== "@types/scheduler@*": - version "0.16.2" - resolved "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz" - integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew== + version "0.16.4" + resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.4.tgz#fedc3e5b15c26dc18faae96bf1317487cb3658cf" + integrity sha512-2L9ifAGl7wmXwP4v3pN4p2FLhD0O1qsJpvKmNin5VA8+UvNVb447UDaAEV6UdrkA+m/Xs58U1RFps44x6TFsVQ== "@types/semver@^7.3.12": version "7.5.0" @@ -4563,9 +4587,9 @@ resolved "https://registry.npmjs.org/@types/tapable/-/tapable-1.0.6.tgz" "@types/testing-library__jest-dom@^5.9.1": - version "5.14.2" - resolved "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.2.tgz" - integrity sha512-vehbtyHUShPxIa9SioxDwCvgxukDMH//icJG90sXQBUm5lJOHLT5kNeU9tnivhnA/TkOFMzGIXN2cTc4hY8/kg== + version "5.14.9" + resolved "https://registry.yarnpkg.com/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.9.tgz#0fb1e6a0278d87b6737db55af5967570b67cb466" + integrity sha512-FSYhIjFlfOpGSRyVoMBMuS3ws5ehFQODymf3vlI7U1K8c7PHwWwFY7VREfmsuzHSOnoKs/9/Y983ayOs7eRzqw== dependencies: "@types/jest" "*" @@ -4617,13 +4641,14 @@ "@types/node" "*" "@types/yargs-parser@*": - version "15.0.0" - resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-15.0.0.tgz" + version "21.0.1" + resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.1.tgz#07773d7160494d56aa882d7531aac7319ea67c3b" + integrity sha512-axdPBuLuEJt0c4yI5OZssC19K2Mq1uKdrfZBzuxLvaztgqUtFYZUNw7lETExPYJR9jdEoIg4mb7RQKRQzOkeGQ== "@types/yargs@^16.0.0": - version "16.0.4" - resolved "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz" - integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw== + version "16.0.6" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.6.tgz#cc0c63684d68d23498cf0b5f32aa4c3fb437c638" + integrity sha512-oTP7/Q13GSPrgcwEwdlnkoZSQ1Hg9THe644qq8PG6hhJzjZ3qj1JjEFPIwWV/IXVs5XGIVqtkNOS9kh63WIJ+A== dependencies: "@types/yargs-parser" "*" @@ -5409,7 +5434,7 @@ ansi-styles@^4.0.0, ansi-styles@^4.1.0: ansi-styles@^5.0.0: version "5.2.0" - resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== ansi-styles@^6.0.0, ansi-styles@^6.1.0: @@ -5476,9 +5501,11 @@ argparse@^2.0.1: integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== aria-query@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/aria-query/-/aria-query-5.0.0.tgz" - integrity sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg== + version "5.3.0" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.3.0.tgz#650c569e41ad90b51b3d7df5e5eed1c7549c103e" + integrity sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A== + dependencies: + dequal "^2.0.3" aria-query@^5.1.3: version "5.1.3" @@ -5879,12 +5906,12 @@ babel-plugin-polyfill-corejs3@^0.5.0: core-js-compat "^3.21.0" babel-plugin-polyfill-corejs3@^0.8.3: - version "0.8.3" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.3.tgz#b4f719d0ad9bb8e0c23e3e630c0c8ec6dd7a1c52" - integrity sha512-z41XaniZL26WLrvjy7soabMXrfPWARN25PZoriDEiLMxAp50AUW3t35BGQUMg5xK3UrpVTtagIDklxYa+MhiNA== + version "0.8.4" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.4.tgz#1fac2b1dcef6274e72b3c72977ed8325cb330591" + integrity sha512-9l//BZZsPR+5XjyJMPtZSK4jv0BsTO1zDac2GC6ygx9WLGlcsnRd1Co0B2zT5fF5Ic6BZy+9m3HNZ3QcOeDKfg== dependencies: "@babel/helper-define-polyfill-provider" "^0.4.2" - core-js-compat "^3.31.0" + core-js-compat "^3.32.2" babel-plugin-polyfill-regenerator@^0.3.0: version "0.3.1" @@ -6280,6 +6307,16 @@ browserslist@^4.20.2, browserslist@^4.21.0: node-releases "^2.0.5" update-browserslist-db "^1.0.4" +browserslist@^4.21.10, browserslist@^4.21.9: + version "4.22.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.22.0.tgz#6adc8116589ccea8a99d0df79c5de2436199abdb" + integrity sha512-v+Jcv64L2LbfTC6OnRcaxtqJNJuQAVhZKSJfR/6hn7lhnChUXl4amwVviqN1k411BB+3rRoKMitELRn1CojeRA== + dependencies: + caniuse-lite "^1.0.30001539" + electron-to-chromium "^1.4.530" + node-releases "^2.0.13" + update-browserslist-db "^1.0.13" + browserslist@^4.21.3: version "4.21.5" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.5.tgz#75c5dae60063ee641f977e00edd3cfb2fb7af6a7" @@ -6290,16 +6327,6 @@ browserslist@^4.21.3: node-releases "^2.0.8" update-browserslist-db "^1.0.10" -browserslist@^4.21.9: - version "4.21.10" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.10.tgz#dbbac576628c13d3b2231332cb2ec5a46e015bb0" - integrity sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ== - dependencies: - caniuse-lite "^1.0.30001517" - electron-to-chromium "^1.4.477" - node-releases "^2.0.13" - update-browserslist-db "^1.0.11" - bser@2.1.1: version "2.1.1" resolved "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz" @@ -6649,10 +6676,10 @@ caniuse-lite@^1.0.30001449: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001482.tgz#8b3fad73dc35b2674a5c96df2d4f9f1c561435de" integrity sha512-F1ZInsg53cegyjroxLNW9DmrEQ1SuGRTO1QlpA0o2/6OpQ0gFeDRoq1yFmnr8Sakn9qwwt9DmbxHB6w167OSuQ== -caniuse-lite@^1.0.30001517: - version "1.0.30001519" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001519.tgz#3e7b8b8a7077e78b0eb054d69e6edf5c7df35601" - integrity sha512-0QHgqR+Jv4bxHMp8kZ1Kn8CH55OikjKJ6JmKkZYP1F3D7w+lnFXF70nG5eNfsZS89jadi5Ywy5UCSKLAglIRkg== +caniuse-lite@^1.0.30001539: + version "1.0.30001540" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001540.tgz#a316ca4f2ae673ab02ff0ec533334016d56ff658" + integrity sha512-9JL38jscuTJBTcuETxm8QLsFr/F6v0CYYTEU6r5+qSM98P2Q0Hmu0eG1dTG5GBUmywU3UlcVOUSIJYY47rdFSw== capital-case@^1.0.4: version "1.0.4" @@ -6698,7 +6725,7 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2: chalk@^3.0.0: version "3.0.0" - resolved "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== dependencies: ansi-styles "^4.1.0" @@ -7486,6 +7513,11 @@ convert-source-map@^1.7.0: resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== +convert-source-map@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" + integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== + cookie-signature@1.0.6: version "1.0.6" resolved "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz" @@ -7557,12 +7589,12 @@ core-js-compat@^3.21.0, core-js-compat@^3.22.1: browserslist "^4.21.0" semver "7.0.0" -core-js-compat@^3.31.0: - version "3.32.0" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.32.0.tgz#f41574b6893ab15ddb0ac1693681bd56c8550a90" - integrity sha512-7a9a3D1k4UCVKnLhrgALyFcP7YCsLOQIxPd0dKjf/6GuPcgyiGP70ewWdCGrSK7evyhymi0qO4EqCmSJofDeYw== +core-js-compat@^3.31.0, core-js-compat@^3.32.2: + version "3.32.2" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.32.2.tgz#8047d1a8b3ac4e639f0d4f66d4431aa3b16e004c" + integrity sha512-+GjlguTDINOijtVRUxrQOv3kfu9rl+qPNdX2LTbJ/ZyVTuxK+ksVSAGX1nHstu4hrv1En/uPTtWgq2gI5wt4AQ== dependencies: - browserslist "^4.21.9" + browserslist "^4.21.10" core-js-pure@^3.8.1: version "3.26.1" @@ -7665,7 +7697,8 @@ cross-spawn@^5.0.1: cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" - resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== dependencies: path-key "^3.1.0" shebang-command "^2.0.0" @@ -7772,8 +7805,9 @@ cssstyle@^2.0.0, cssstyle@^2.3.0: cssom "~0.3.6" csstype@^3.0.2: - version "3.0.3" - resolved "https://registry.npmjs.org/csstype/-/csstype-3.0.3.tgz" + version "3.1.2" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.2.tgz#1d4bf9d572f11c14031f0436e1c10bc1f571f50b" + integrity sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ== cwd@^0.9.1: version "0.9.1" @@ -8215,6 +8249,11 @@ deprecation@^2.0.0: resolved "https://registry.yarnpkg.com/deprecation/-/deprecation-2.3.1.tgz#6368cbdb40abf3373b525ac87e4a260c3a700919" integrity sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ== +dequal@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" + integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== + des.js@^1.0.0: version "1.0.1" resolved "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz" @@ -8265,9 +8304,9 @@ devtools-protocol@0.0.1001819: integrity sha512-G6OsIFnv/rDyxSqBa2lDLR6thp9oJioLsb2Gl+LbQlyoA9/OBAkrTU9jiCcQ8Pnh7z4d6slDiLaogR5hzgJLmQ== diff-sequences@^27.0.6: - version "27.0.6" - resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.0.6.tgz" - integrity sha512-ag6wfpBFyNXZ0p8pcuIDS//D8H062ZQJ3fzYxjpmeKjnz8W4pekL3AI8VohmyZmsWW2PWaHgjsmqR6L13101VQ== + version "27.5.1" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-27.5.1.tgz#eaecc0d327fd68c8d9672a1e64ab8dccb2ef5327" + integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ== diff-sequences@^29.4.3: version "29.4.3" @@ -8319,7 +8358,12 @@ doctrine@^3.0.0: dependencies: esutils "^2.0.2" -dom-accessibility-api@^0.5.6, dom-accessibility-api@^0.5.9: +dom-accessibility-api@^0.5.6: + version "0.5.16" + resolved "https://registry.yarnpkg.com/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz#5a7429e6066eb3664d911e33fb0e45de8eb08453" + integrity sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg== + +dom-accessibility-api@^0.5.9: version "0.5.11" resolved "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.11.tgz" integrity sha512-7X6GvzjYf4yTdRKuCVScV+aA9Fvh5r8WzWrXBH9w82ZWB/eYDMGCnazoC/YAqAzUJWHzLOnZqr46K3iEyUhUvw== @@ -8482,10 +8526,10 @@ electron-to-chromium@^1.4.284: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.380.tgz#195dc59d930c6b74efbee6f0e6a267ce4af5ed91" integrity sha512-XKGdI4pWM78eLH2cbXJHiBnWUwFSzZM7XujsB6stDiGu9AeSqziedP6amNLpJzE3i0rLTcfAwdCTs5ecP5yeSg== -electron-to-chromium@^1.4.477: - version "1.4.487" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.487.tgz#e2ef8b15f2791bf68fa6f38f2656f1a551d360ae" - integrity sha512-XbCRs/34l31np/p33m+5tdBrdXu9jJkZxSbNxj5I0H1KtV2ZMSB+i/HYqDiRzHaFx2T5EdytjoBRe8QRJE2vQg== +electron-to-chromium@^1.4.530: + version "1.4.531" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.531.tgz#22966d894c4680726c17cf2908ee82ff5d26ac25" + integrity sha512-H6gi5E41Rn3/mhKlPaT1aIMg/71hTAqn0gYEllSuw9igNWtvQwu185jiCZoZD29n7Zukgh7GVZ3zGf0XvkhqjQ== elliptic@^6.5.3: version "6.5.3" @@ -8838,9 +8882,9 @@ eslint-plugin-es@^3.0.0: regexpp "^3.0.0" eslint-plugin-import@^2.13.0: - version "2.28.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.28.0.tgz#8d66d6925117b06c4018d491ae84469eb3cb1005" - integrity sha512-B8s/n+ZluN7sxj9eUf7/pRFERX0r5bnFA2dCaLHy2ZeaQEAz0k+ZZkFWRFHJAqxfxQDx6KLv9LeIki7cFdwW+Q== + version "2.28.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.28.1.tgz#63b8b5b3c409bfc75ebaf8fb206b07ab435482c4" + integrity sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A== dependencies: array-includes "^3.1.6" array.prototype.findlastindex "^1.2.2" @@ -8851,20 +8895,19 @@ eslint-plugin-import@^2.13.0: eslint-import-resolver-node "^0.3.7" eslint-module-utils "^2.8.0" has "^1.0.3" - is-core-module "^2.12.1" + is-core-module "^2.13.0" is-glob "^4.0.3" minimatch "^3.1.2" object.fromentries "^2.0.6" object.groupby "^1.0.0" object.values "^1.1.6" - resolve "^1.22.3" semver "^6.3.1" tsconfig-paths "^3.14.2" eslint-plugin-jest@^27.0.0: - version "27.2.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-27.2.3.tgz#6f8a4bb2ca82c0c5d481d1b3be256ab001f5a3ec" - integrity sha512-sRLlSCpICzWuje66Gl9zvdF6mwD5X86I4u55hJyFBsxYOsBCmT5+kSUjf+fkFWVMMgpzNEupjW8WzUqi83hJAQ== + version "27.4.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-27.4.0.tgz#3926cca723c40c3d7a3fe0e1fd911eff5e681f50" + integrity sha512-ukVeKmMPAUA5SWjHenvyyXnirKfHKMdOsTZdn5tZx5EW05HGVQwBohigjFZGGj3zuv1cV6hc82FvWv6LdIbkgg== dependencies: "@typescript-eslint/utils" "^5.10.0" @@ -9005,15 +9048,15 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4 integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== eslint@^8.39.0: - version "8.47.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.47.0.tgz#c95f9b935463fb4fad7005e626c7621052e90806" - integrity sha512-spUQWrdPt+pRVP1TTJLmfRNJJHHZryFmptzcafwSvHsceV81djHOdnEeDmkdotZyLNjDhrOasNK8nikkoG1O8Q== + version "8.50.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.50.0.tgz#2ae6015fee0240fcd3f83e1e25df0287f487d6b2" + integrity sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg== dependencies: "@eslint-community/eslint-utils" "^4.2.0" "@eslint-community/regexpp" "^4.6.1" "@eslint/eslintrc" "^2.1.2" - "@eslint/js" "^8.47.0" - "@humanwhocodes/config-array" "^0.11.10" + "@eslint/js" "8.50.0" + "@humanwhocodes/config-array" "^0.11.11" "@humanwhocodes/module-importer" "^1.0.1" "@nodelib/fs.walk" "^1.2.8" ajv "^6.12.4" @@ -9701,11 +9744,12 @@ flagged-respawn@^2.0.0: integrity sha512-Gq/a6YCi8zexmGHMuJwahTGzXlAZAOsbCVKduWXC6TlLCjjFRlExMJc4GC2NYPYZ0r/brw9P7CpRgQmlPVeOoA== flat-cache@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" - integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== + version "3.1.0" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.1.0.tgz#0e54ab4a1a60fe87e2946b6b00657f1c99e1af3f" + integrity sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew== dependencies: - flatted "^3.1.0" + flatted "^3.2.7" + keyv "^4.5.3" rimraf "^3.0.2" flat@^5.0.2: @@ -9713,10 +9757,10 @@ flat@^5.0.2: resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== -flatted@^3.1.0: - version "3.2.7" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" - integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== +flatted@^3.2.7: + version "3.2.9" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.9.tgz#7eb4c67ca1ba34232ca9d2d93e9886e611ad7daf" + integrity sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ== flush-write-stream@^1.0.0: version "1.1.1" @@ -10375,9 +10419,9 @@ globals@^11.1.0: integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== globals@^13.19.0: - version "13.21.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.21.0.tgz#163aae12f34ef502f5153cfbdd3600f36c63c571" - integrity sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg== + version "13.22.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.22.0.tgz#0c9fcb9c48a2494fbb5edbfee644285543eba9d8" + integrity sha512-H1Ddc/PbZHTDVJSnj8kWptIRSD6AM3pK+mKytuIVF4uoBV7rshFlhhvA58ceJ5wp3Er58w6zj7bykMpYXt3ETw== dependencies: type-fest "^0.20.2" @@ -11363,7 +11407,7 @@ is-ci@^3.0.0: dependencies: ci-info "^3.1.1" -is-core-module@^2.11.0, is-core-module@^2.12.0, is-core-module@^2.12.1: +is-core-module@^2.11.0: version "2.12.1" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.12.1.tgz#0c0b6885b6f80011c71541ce15c8d66cf5a4f9fd" integrity sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg== @@ -12032,7 +12076,7 @@ jest-config@^27.2.5: jest-get-type "^29.6.3" pretty-format "^29.6.3" -jest-diff@^27.0.0, jest-diff@^27.2.5: +jest-diff@^27.2.5: version "27.2.5" resolved "https://registry.npmjs.org/jest-diff/-/jest-diff-27.2.5.tgz" integrity sha512-7gfwwyYkeslOOVQY4tVq5TaQa92mWfC9COsVYMNVYyJTOYAqbIkoD3twi5A+h+tAPtAelRxkqY6/xu+jwTr0dA== @@ -12096,9 +12140,9 @@ jest-environment-node@^27.2.5: jest-util "^27.2.5" jest-get-type@^27.0.6: - version "27.0.6" - resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.0.6.tgz" - integrity sha512-XTkK5exIeUbbveehcSR8w0bhH+c0yloW/Wpl+9vZrjzztCPWrxhHwkIFpZzCt71oRBsgxmuUfxEqOYoZI2macg== + version "27.5.1" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.5.1.tgz#3cd613c507b0f7ace013df407a1c1cd578bcb4f1" + integrity sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw== jest-get-type@^29.4.3: version "29.4.3" @@ -12557,6 +12601,11 @@ jsesc@~0.5.0: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA== +json-buffer@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== + json-parse-better-errors@^1.0.0, json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz" @@ -12617,7 +12666,7 @@ json5@^2.2.1: resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== -json5@^2.2.2: +json5@^2.2.2, json5@^2.2.3: version "2.2.3" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== @@ -12694,6 +12743,13 @@ keygrip@~1.1.0: dependencies: tsscmp "1.0.6" +keyv@^4.5.3: + version "4.5.3" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.3.tgz#00873d2b046df737963157bd04f294ca818c9c25" + integrity sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug== + dependencies: + json-buffer "3.0.1" + kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: version "3.2.2" resolved "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz" @@ -13041,9 +13097,9 @@ lines-and-columns@~2.0.3: integrity sha512-cNOjgCnLB+FnvWWtyRTzmB3POJ+cXxTA81LoW7u8JdmhfXzriropYwpjShnz1QLLWsQwY7nIxoDmcPTwphDK9w== lint-staged@^14.0.0: - version "14.0.0" - resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-14.0.0.tgz#81a06f1a265854070dc4c9ace0978bb12d4b17c3" - integrity sha512-0tLf0pqZYkar/wu3nTctk4rVIG+d7PanDYv4/IQR4qwdqfQkTDziLRFnqMcLuLBTuUqmcLwsHPD2EjQ18d/oaA== + version "14.0.1" + resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-14.0.1.tgz#57dfa3013a3d60762d9af5d9c83bdb51291a6232" + integrity sha512-Mw0cL6HXnHN1ag0mN/Dg4g6sr8uf8sn98w2Oc1ECtFto9tvRF7nkXGJRbx8gPlHyoR0pLyBr2lQHbWwmUHe1Sw== dependencies: chalk "5.3.0" commander "11.0.0" @@ -13241,11 +13297,11 @@ lodash.throttle@^4.1.1: version "4.1.1" resolved "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz" -lodash@^4.17.12, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.5: +lodash@^4.17.12, lodash@^4.17.19, lodash@^4.17.5: version "4.17.20" resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz" -lodash@^4.17.13, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.0: +lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -13852,7 +13908,8 @@ min-document@^2.19.0: min-indent@^1.0.0: version "1.0.1" - resolved "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz" + resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" + integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== mini-create-react-context@^0.4.0: version "0.4.1" @@ -14887,7 +14944,8 @@ on-headers@~1.0.2: once@^1.3.0, once@^1.3.1, once@^1.4.0: version "1.4.0" - resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== dependencies: wrappy "1" @@ -15756,9 +15814,9 @@ prettier-linter-helpers@^1.0.0: fast-diff "^1.1.2" prettier@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.2.tgz#78fcecd6d870551aa5547437cdae39d4701dca5b" - integrity sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ== + version "3.0.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643" + integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== pretty-bytes@^5.6.0: version "5.6.0" @@ -15773,17 +15831,7 @@ pretty-error@^4.0.0: lodash "^4.17.20" renderkid "^3.0.0" -pretty-format@^27.0.0, pretty-format@^27.2.5: - version "27.2.5" - resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-27.2.5.tgz" - integrity sha512-+nYn2z9GgicO9JiqmY25Xtq8SYfZ/5VCpEU3pppHHNAhd1y+ZXxmNPd1evmNcAd6Hz4iBV2kf0UpGth5A/VJ7g== - dependencies: - "@jest/types" "^27.2.5" - ansi-regex "^5.0.1" - ansi-styles "^5.0.0" - react-is "^17.0.1" - -pretty-format@^27.0.2: +pretty-format@^27.0.2, pretty-format@^27.2.5: version "27.5.1" resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz" integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ== @@ -16179,8 +16227,9 @@ react-is@^16.7.0, react-is@^16.8.1: resolved "https://registry.npmjs.org/react-is/-/react-is-16.11.0.tgz" react-is@^17.0.1: - version "17.0.1" - resolved "https://registry.npmjs.org/react-is/-/react-is-17.0.1.tgz" + version "17.0.2" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" + integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== react-is@^18.0.0: version "18.2.0" @@ -16380,7 +16429,8 @@ rechoir@^0.8.0: redent@^3.0.0: version "3.0.0" - resolved "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz" + resolved "https://registry.yarnpkg.com/redent/-/redent-3.0.0.tgz#e557b7998316bb53c9f1f56fa626352c6963059f" + integrity sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg== dependencies: indent-string "^4.0.0" strip-indent "^3.0.0" @@ -16406,9 +16456,9 @@ reflect.getprototypeof@^1.0.3: which-builtin-type "^1.1.3" regenerate-unicode-properties@^10.1.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz#7c3192cab6dd24e21cb4461e5ddd7dd24fa8374c" - integrity sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ== + version "10.1.1" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz#6b0e05489d9076b04c436f318d9b067bba459480" + integrity sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q== dependencies: regenerate "^1.4.2" @@ -16427,15 +16477,11 @@ regenerate@^1.4.2: resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== -regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.2: +regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.2, regenerator-runtime@^0.13.4: version "0.13.11" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== -regenerator-runtime@^0.13.4: - version "0.13.7" - resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz" - regenerator-runtime@^0.14.0: version "0.14.0" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz#5e19d68eb12d486f797e15a3c6a918f7cec5eb45" @@ -16781,9 +16827,9 @@ resolve@^1.10.1: supports-preserve-symlinks-flag "^1.0.0" resolve@^1.14.2: - version "1.22.4" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.4.tgz#1dc40df46554cdaf8948a486a10f6ba1e2026c34" - integrity sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg== + version "1.22.6" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.6.tgz#dd209739eca3aef739c626fea1b4f3c506195362" + integrity sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw== dependencies: is-core-module "^2.13.0" path-parse "^1.0.7" @@ -16806,15 +16852,6 @@ resolve@^1.22.1, resolve@^1.9.0: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -resolve@^1.22.3: - version "1.22.3" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.3.tgz#4b4055349ffb962600972da1fdc33c46a4eb3283" - integrity sha512-P8ur/gp/AmbEzjr729bZnLjXK5Z+4P0zhIJgBgzqRih7hL7BOukHGtSTA3ACMY467GRFz3duQsi0bDZdR7DKdw== - dependencies: - is-core-module "^2.12.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - resolve@^2.0.0-next.4: version "2.0.0-next.4" resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.4.tgz#3d37a113d6429f496ec4752d2a2e58efb1fd4660" @@ -16952,9 +16989,9 @@ rollup-pluginutils@^2.3.3: estree-walker "^0.6.1" rollup@^3.21.5: - version "3.28.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.28.0.tgz#a3c70004b01934760c0cb8df717c7a1d932389a2" - integrity sha512-d7zhvo1OUY2SXSM6pfNjgD5+d0Nz87CUp4mt8l/GgVP3oBsPwzNvSzyu1me6BSG9JIgWNTVcafIXBIyM8yQ3yw== + version "3.29.3" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.3.tgz#97769774ccaa6a3059083d4680fcabd8ead01289" + integrity sha512-T7du6Hum8jOkSWetjRgbwpM6Sy0nECYrYRSmZjayFcOddtKJWU4d17AC3HNUk7HRuqy4p+G7aEZclSHytqUmEg== optionalDependencies: fsevents "~2.3.2" @@ -18061,7 +18098,8 @@ strip-final-newline@^3.0.0: strip-indent@^3.0.0: version "3.0.0" - resolved "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" + integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== dependencies: min-indent "^1.0.0" @@ -19136,7 +19174,7 @@ upath@^1.1.1: resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg== -update-browserslist-db@^1.0.10, update-browserslist-db@^1.0.11: +update-browserslist-db@^1.0.10: version "1.0.11" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940" integrity sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA== @@ -19144,6 +19182,14 @@ update-browserslist-db@^1.0.10, update-browserslist-db@^1.0.11: escalade "^3.1.1" picocolors "^1.0.0" +update-browserslist-db@^1.0.13: + version "1.0.13" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz#3c5e4f5c083661bd38ef64b6328c26ed6c8248c4" + integrity sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg== + dependencies: + escalade "^3.1.1" + picocolors "^1.0.0" + update-browserslist-db@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.4.tgz#dbfc5a789caa26b1db8990796c2c8ebbce304824" From 5b4cbf41bf11785ffe66dc263c7c26e61d25cacd Mon Sep 17 00:00:00 2001 From: Dan Labrecque Date: Mon, 9 Oct 2023 09:44:38 -0400 Subject: [PATCH 045/103] fix(charts): legendAllowWrap function generates an null error (#9719) https://github.com/patternfly/patternfly-react/issues/9718 --- .../src/components/Chart/Chart.tsx | 2 +- .../src/components/ChartPie/ChartPie.tsx | 2 +- .../ResizeObserver/examples/resizeObserver.md | 35 +++++++++++++------ 3 files changed, 26 insertions(+), 13 deletions(-) diff --git a/packages/react-charts/src/components/Chart/Chart.tsx b/packages/react-charts/src/components/Chart/Chart.tsx index 10803be4699..4c5882dbad1 100644 --- a/packages/react-charts/src/components/Chart/Chart.tsx +++ b/packages/react-charts/src/components/Chart/Chart.tsx @@ -627,7 +627,7 @@ export const Chart: React.FunctionComponent = ({ // Callback to compliment legendAllowWrap const computedLegend = getLegend(); useEffect(() => { - if (typeof legendAllowWrap === 'function') { + if (computedLegend?.props && typeof legendAllowWrap === 'function') { const extraHeight = getLegendItemsExtraHeight({ legendData: computedLegend.props.data, legendOrientation: computedLegend.props.orientation, diff --git a/packages/react-charts/src/components/ChartPie/ChartPie.tsx b/packages/react-charts/src/components/ChartPie/ChartPie.tsx index 899cabe0bd7..61263aeecc8 100644 --- a/packages/react-charts/src/components/ChartPie/ChartPie.tsx +++ b/packages/react-charts/src/components/ChartPie/ChartPie.tsx @@ -651,7 +651,7 @@ export const ChartPie: React.FunctionComponent = ({ // Callback to compliment legendAllowWrap const computedLegend = getLegend(); useEffect(() => { - if (typeof legendAllowWrap === 'function') { + if (computedLegend?.props && typeof legendAllowWrap === 'function') { const extraHeight = getLegendItemsExtraHeight({ legendData: computedLegend.props.data, legendOrientation: computedLegend.props.orientation, diff --git a/packages/react-charts/src/components/ResizeObserver/examples/resizeObserver.md b/packages/react-charts/src/components/ResizeObserver/examples/resizeObserver.md index adfe14c99bc..0e77eac5cbb 100644 --- a/packages/react-charts/src/components/ResizeObserver/examples/resizeObserver.md +++ b/packages/react-charts/src/components/ResizeObserver/examples/resizeObserver.md @@ -161,6 +161,24 @@ class MultiColorChart extends React.Component { this.setState({ width: this.containerRef.current.clientWidth }); } }; + this.handleLegendAllowWrap = (extraHeight) => { + if (extraHeight !== this.state.extraHeight) { + this.setState({ extraHeight }); + } + } + this.getHeight = (baseHeight) => { + const { extraHeight } = this.state; + return baseHeight + extraHeight; + }; + this.getPadding = () => { + const { extraHeight } = this.state; + return { + bottom: 100 + extraHeight, // Adjusted to accomodate legend + left: 50, + right: 50, + top: 50, + }; + }; } componentDidMount() { @@ -174,11 +192,11 @@ class MultiColorChart extends React.Component { render() { const { width } = this.state; - const itemsPerRow = width > 650 ? 4 : 2; + const height = this.getHeight(250); return (
-
+
} + legendAllowWrap={this.handleLegendAllowWrap} legendPosition="bottom-left" legendComponent={ } - height={250} + height={height} name="chart2" - padding={{ - bottom: 100, // Adjusted to accomodate legend - left: 50, - right: 50, - top: 50 - }} + padding={this.getPadding()} maxDomain={{ y: 9 }} themeColor={ChartThemeColor.multiUnordered} width={width} From 8475a6d5f4974cffe3f13b0b690e151663ee4853 Mon Sep 17 00:00:00 2001 From: Mark Franceschelli <39063664+mfrances17@users.noreply.github.com> Date: Mon, 9 Oct 2023 10:02:16 -0400 Subject: [PATCH 046/103] chore(TextInputGroup): allow input in basic example (#9650) --- .../TextInputGroup/examples/TextInputGroupBasic.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/react-core/src/components/TextInputGroup/examples/TextInputGroupBasic.tsx b/packages/react-core/src/components/TextInputGroup/examples/TextInputGroupBasic.tsx index 6504c418b0d..098ebe4eda3 100644 --- a/packages/react-core/src/components/TextInputGroup/examples/TextInputGroupBasic.tsx +++ b/packages/react-core/src/components/TextInputGroup/examples/TextInputGroupBasic.tsx @@ -1,8 +1,11 @@ import React from 'react'; import { TextInputGroup, TextInputGroupMain } from '@patternfly/react-core'; -export const TextInputGroupBasic: React.FunctionComponent = () => ( - - - -); +export const TextInputGroupBasic: React.FunctionComponent = () => { + const [value, setValue] = React.useState(''); + return ( + + setValue(value)} /> + + ); +}; From d02b802e6a22fde48b00bca98550cefe6ec88603 Mon Sep 17 00:00:00 2001 From: Mark Franceschelli <39063664+mfrances17@users.noreply.github.com> Date: Mon, 9 Oct 2023 10:17:48 -0400 Subject: [PATCH 047/103] fix(BackToTop): fix null exception on load (#9665) --- .../src/components/BackToTop/BackToTop.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/react-core/src/components/BackToTop/BackToTop.tsx b/packages/react-core/src/components/BackToTop/BackToTop.tsx index 48d82742a41..2651bc6731f 100644 --- a/packages/react-core/src/components/BackToTop/BackToTop.tsx +++ b/packages/react-core/src/components/BackToTop/BackToTop.tsx @@ -34,12 +34,14 @@ const BackToTopBase: React.FunctionComponent = ({ const [scrollElement, setScrollElement] = React.useState(null); const toggleVisible = () => { - const scrolled = scrollElement.scrollY ? scrollElement.scrollY : scrollElement.scrollTop; - if (!isAlwaysVisible) { - if (scrolled > 400) { - setVisible(true); - } else { - setVisible(false); + if (scrollElement) { + const scrolled = scrollElement.scrollY ? scrollElement.scrollY : scrollElement.scrollTop; + if (!isAlwaysVisible) { + if (scrolled > 400) { + setVisible(true); + } else { + setVisible(false); + } } } }; From e50c202ee0f7797b90d57a36767392ac75f92dea Mon Sep 17 00:00:00 2001 From: kmcfaul <45077788+kmcfaul@users.noreply.github.com> Date: Mon, 9 Oct 2023 10:18:18 -0400 Subject: [PATCH 048/103] docs(Text): add description (#9583) * docs(Text): add description * update wording and syntax --- .../react-core/src/components/Text/examples/Text.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/react-core/src/components/Text/examples/Text.md b/packages/react-core/src/components/Text/examples/Text.md index b3a9530df53..b3edc39572c 100644 --- a/packages/react-core/src/components/Text/examples/Text.md +++ b/packages/react-core/src/components/Text/examples/Text.md @@ -5,16 +5,24 @@ cssPrefix: pf-v5-c-content propComponents: ['TextContent', 'Text', 'TextList', 'TextListItem'] --- +The `` component provides simple, built-in styling for putting common blocks of HTML elements together. It establishes the block of content and styling within it for the elements listed in the `component` property(`h1` through `h6`, `p`, `a`, `small`, `blockquote`, and `pre`), as well as the text component suite (``, ``, and ``). + +You cannot nest other components within ``, and doing so can cause styling overrides or other conflicts. Instead, you can use the `` component's properties to achieve the same results. + +For example, rather than nesting the `` and `` components within `<Text>`, you should pass `component="h1"` into the `<TextList>` and `<Text>` components. Similarly, when you need to add a divider , rather than passing in a separate `<Divider>` component, you should utilize the `hr` property that `<Text>` supports, which will be styled as a divider. + ## Examples ### Headings ```ts file="./TextHeadings.tsx" + ``` ### Body ```ts file="./TextBody.tsx" + ``` Text components such as Text, TextList, TextListItem need to be placed within a TextContent @@ -22,24 +30,29 @@ Text components such as Text, TextList, TextListItem need to be placed within a ### Unordered list ```ts file="./TextUnorderedList.tsx" + ``` ### Ordered list ```ts file="./TextOrderedList.tsx" + ``` ### Plain list ```ts file="./TextPlainList.tsx" + ``` ### Description list ```ts file="./TextDescriptionList.tsx" + ``` ### Visited ```ts file="./TextVisited.tsx" + ``` From f7f065572254120f68487ab4b4caff597ece5ad3 Mon Sep 17 00:00:00 2001 From: patternfly-build <patternfly-build@redhat.com> Date: Mon, 9 Oct 2023 14:35:21 +0000 Subject: [PATCH 049/103] chore(release): releasing packages [ci skip] - @patternfly/react-charts@7.2.0-prerelease.1 - @patternfly/react-code-editor@5.2.0-prerelease.1 - @patternfly/react-core@5.2.0-prerelease.1 - @patternfly/react-docs@6.2.0-prerelease.1 - @patternfly/react-integration@5.1.1-prerelease.9 - demo-app-ts@5.1.1-prerelease.23 - @patternfly/react-table@5.2.0-prerelease.1 --- packages/react-charts/CHANGELOG.md | 6 ++++++ packages/react-charts/package.json | 2 +- packages/react-code-editor/CHANGELOG.md | 6 ++++++ packages/react-code-editor/package.json | 4 ++-- packages/react-core/CHANGELOG.md | 6 ++++++ packages/react-core/package.json | 2 +- packages/react-docs/CHANGELOG.md | 4 ++++ packages/react-docs/package.json | 10 +++++----- packages/react-integration/CHANGELOG.md | 6 ++++++ packages/react-integration/demo-app-ts/CHANGELOG.md | 6 ++++++ packages/react-integration/demo-app-ts/package.json | 4 ++-- packages/react-integration/package.json | 2 +- packages/react-table/CHANGELOG.md | 4 ++++ packages/react-table/package.json | 4 ++-- 14 files changed, 52 insertions(+), 14 deletions(-) diff --git a/packages/react-charts/CHANGELOG.md b/packages/react-charts/CHANGELOG.md index e0437d774b3..0a2de82bee9 100644 --- a/packages/react-charts/CHANGELOG.md +++ b/packages/react-charts/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [7.2.0-prerelease.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-charts@7.2.0-prerelease.0...@patternfly/react-charts@7.2.0-prerelease.1) (2023-10-09) + +### Bug Fixes + +- **charts:** legendAllowWrap function generates an null error ([#9719](https://github.com/patternfly/patternfly-react/issues/9719)) ([5b4cbf4](https://github.com/patternfly/patternfly-react/commit/5b4cbf41bf11785ffe66dc263c7c26e61d25cacd)) + # [7.2.0-prerelease.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-charts@7.1.1...@patternfly/react-charts@7.2.0-prerelease.0) (2023-10-05) **Note:** Version bump only for package @patternfly/react-charts diff --git a/packages/react-charts/package.json b/packages/react-charts/package.json index 6ade06e323b..46e4518333d 100644 --- a/packages/react-charts/package.json +++ b/packages/react-charts/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-charts", - "version": "7.2.0-prerelease.0", + "version": "7.2.0-prerelease.1", "description": "This library provides a set of React chart components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", diff --git a/packages/react-code-editor/CHANGELOG.md b/packages/react-code-editor/CHANGELOG.md index 1b735a02b1c..3040f123342 100644 --- a/packages/react-code-editor/CHANGELOG.md +++ b/packages/react-code-editor/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.2.0-prerelease.0...@patternfly/react-code-editor@5.2.0-prerelease.1) (2023-10-09) + +### Bug Fixes + +- **CodeEditor:** hide button and link when read-only ([#9668](https://github.com/patternfly/patternfly-react/issues/9668)) ([0346933](https://github.com/patternfly/patternfly-react/commit/0346933cb61a3b11a2591acbde4760f58abffbcb)) + # [5.2.0-prerelease.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.1.1...@patternfly/react-code-editor@5.2.0-prerelease.0) (2023-10-05) **Note:** Version bump only for package @patternfly/react-code-editor diff --git a/packages/react-code-editor/package.json b/packages/react-code-editor/package.json index 77b0e60ea61..9825fb24e26 100644 --- a/packages/react-code-editor/package.json +++ b/packages/react-code-editor/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-code-editor", - "version": "5.2.0-prerelease.0", + "version": "5.2.0-prerelease.1", "description": "This package provides a PatternFly wrapper for the Monaco code editor\n", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -29,7 +29,7 @@ "clean": "rimraf dist" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.0", + "@patternfly/react-core": "^5.2.0-prerelease.1", "@patternfly/react-icons": "^5.2.0-prerelease.0", "@patternfly/react-styles": "^5.2.0-prerelease.0", "react-dropzone": "14.2.3", diff --git a/packages/react-core/CHANGELOG.md b/packages/react-core/CHANGELOG.md index 6c46df1c9aa..6db58b6d5dd 100644 --- a/packages/react-core/CHANGELOG.md +++ b/packages/react-core/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.2.0-prerelease.0...@patternfly/react-core@5.2.0-prerelease.1) (2023-10-09) + +### Bug Fixes + +- **BackToTop:** fix null exception on load ([#9665](https://github.com/patternfly/patternfly-react/issues/9665)) ([d02b802](https://github.com/patternfly/patternfly-react/commit/d02b802e6a22fde48b00bca98550cefe6ec88603)) + # [5.2.0-prerelease.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.1.1...@patternfly/react-core@5.2.0-prerelease.0) (2023-10-05) **Note:** Version bump only for package @patternfly/react-core diff --git a/packages/react-core/package.json b/packages/react-core/package.json index a2561979359..efd4e7580af 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-core", - "version": "5.2.0-prerelease.0", + "version": "5.2.0-prerelease.1", "description": "This library provides a set of common React components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", diff --git a/packages/react-docs/CHANGELOG.md b/packages/react-docs/CHANGELOG.md index 9a11e04cb97..2f3d11cf240 100644 --- a/packages/react-docs/CHANGELOG.md +++ b/packages/react-docs/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0-prerelease.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.2.0-prerelease.0...@patternfly/react-docs@6.2.0-prerelease.1) (2023-10-09) + +**Note:** Version bump only for package @patternfly/react-docs + # [6.2.0-prerelease.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.1.1...@patternfly/react-docs@6.2.0-prerelease.0) (2023-10-05) **Note:** Version bump only for package @patternfly/react-docs diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index 93c786b3e3c..3ff54005090 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -1,7 +1,7 @@ { "name": "@patternfly/react-docs", "description": "PatternFly React Docs", - "version": "6.2.0-prerelease.0", + "version": "6.2.0-prerelease.1", "publishConfig": { "access": "public" }, @@ -23,12 +23,12 @@ }, "dependencies": { "@patternfly/patternfly": "5.1.0", - "@patternfly/react-charts": "^7.2.0-prerelease.0", - "@patternfly/react-code-editor": "^5.2.0-prerelease.0", - "@patternfly/react-core": "^5.2.0-prerelease.0", + "@patternfly/react-charts": "^7.2.0-prerelease.1", + "@patternfly/react-code-editor": "^5.2.0-prerelease.1", + "@patternfly/react-core": "^5.2.0-prerelease.1", "@patternfly/react-icons": "^5.2.0-prerelease.0", "@patternfly/react-styles": "^5.2.0-prerelease.0", - "@patternfly/react-table": "^5.2.0-prerelease.0", + "@patternfly/react-table": "^5.2.0-prerelease.1", "@patternfly/react-tokens": "^5.2.0-prerelease.0" }, "devDependencies": { diff --git a/packages/react-integration/CHANGELOG.md b/packages/react-integration/CHANGELOG.md index 4ed89f7ff36..83f7eb96720 100644 --- a/packages/react-integration/CHANGELOG.md +++ b/packages/react-integration/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 5.1.1-prerelease.9 (2023-10-09) + +### Bug Fixes + +- **build:** Fixed version mismatch issue ([#9716](https://github.com/patternfly/patternfly-react/issues/9716)) ([58ea584](https://github.com/patternfly/patternfly-react/commit/58ea5840e7a291531d45e40b0c5d1d0cdc8093c8)) + ## [5.1.1-prerelease.8](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-integration@5.1.1-prerelease.7...@patternfly/react-integration@5.1.1-prerelease.8) (2023-09-20) ### Bug Fixes diff --git a/packages/react-integration/demo-app-ts/CHANGELOG.md b/packages/react-integration/demo-app-ts/CHANGELOG.md index 074d830a156..70bc0d11f21 100644 --- a/packages/react-integration/demo-app-ts/CHANGELOG.md +++ b/packages/react-integration/demo-app-ts/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 5.1.1-prerelease.23 (2023-10-09) + +### Bug Fixes + +- **build:** Fixed version mismatch issue ([#9716](https://github.com/patternfly/patternfly-react/issues/9716)) ([58ea584](https://github.com/patternfly/patternfly-react/commit/58ea5840e7a291531d45e40b0c5d1d0cdc8093c8)) + ## 5.1.1-prerelease.22 (2023-10-03) **Note:** Version bump only for package demo-app-ts diff --git a/packages/react-integration/demo-app-ts/package.json b/packages/react-integration/demo-app-ts/package.json index d49bfeacfef..2b3db831599 100644 --- a/packages/react-integration/demo-app-ts/package.json +++ b/packages/react-integration/demo-app-ts/package.json @@ -1,7 +1,7 @@ { "name": "demo-app-ts", "private": true, - "version": "5.1.1-prerelease.22", + "version": "5.1.1-prerelease.23", "scripts": { "build:demo-app": "webpack --mode production", "start:demo-app": "webpack-dev-server", @@ -9,7 +9,7 @@ "serve:demo-app": "node scripts/serve" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.0", + "@patternfly/react-core": "^5.2.0-prerelease.1", "react": "^18", "react-dom": "^18", "react-router": "^5.3.3", diff --git a/packages/react-integration/package.json b/packages/react-integration/package.json index b8b2858d7aa..b47127e6831 100644 --- a/packages/react-integration/package.json +++ b/packages/react-integration/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-integration", - "version": "5.1.1-prerelease.8", + "version": "5.1.1-prerelease.9", "private": true, "description": "Integration testing for PF5 using demo applications", "main": "lib/index.js", diff --git a/packages/react-table/CHANGELOG.md b/packages/react-table/CHANGELOG.md index 9b1a0894914..7b1cfe0114c 100644 --- a/packages/react-table/CHANGELOG.md +++ b/packages/react-table/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.2.0-prerelease.0...@patternfly/react-table@5.2.0-prerelease.1) (2023-10-09) + +**Note:** Version bump only for package @patternfly/react-table + # [5.2.0-prerelease.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.1.1...@patternfly/react-table@5.2.0-prerelease.0) (2023-10-05) **Note:** Version bump only for package @patternfly/react-table diff --git a/packages/react-table/package.json b/packages/react-table/package.json index e605e4ab9b7..d14ef39dcdb 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-table", - "version": "5.2.0-prerelease.0", + "version": "5.2.0-prerelease.1", "description": "This library provides a set of React table components for use with the PatternFly 4", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -39,7 +39,7 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.0", + "@patternfly/react-core": "^5.2.0-prerelease.1", "@patternfly/react-icons": "^5.2.0-prerelease.0", "@patternfly/react-styles": "^5.2.0-prerelease.0", "@patternfly/react-tokens": "^5.2.0-prerelease.0", From bfa6e328308ec3a36d5313043ff747bd760a9ab6 Mon Sep 17 00:00:00 2001 From: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com> Date: Mon, 9 Oct 2023 11:52:49 -0400 Subject: [PATCH 050/103] chore(Wizard): updated integration tests to avoid PR failures (#9631) --- .../cypress/integration/wizard.spec.ts | 38 ++++-- .../demos/WizardDemo/WizardDemo.tsx | 116 +++++++++++++++++- 2 files changed, 137 insertions(+), 17 deletions(-) diff --git a/packages/react-integration/cypress/integration/wizard.spec.ts b/packages/react-integration/cypress/integration/wizard.spec.ts index dd2b3dc0ca5..9a5a3821ff4 100644 --- a/packages/react-integration/cypress/integration/wizard.spec.ts +++ b/packages/react-integration/cypress/integration/wizard.spec.ts @@ -3,22 +3,25 @@ describe('Wizard Demo Test', () => { cy.visit('http://localhost:3000/wizard-demo-nav-link'); }); + it('Verify in page wizard displays on page render', () => { + cy.get('#inPageWizId.pf-v5-c-wizard').should('exist'); + }); + it('Verify wizard in modal launches in a dialog and has a custom width', () => { cy.get('#launchWiz').click(); cy.get('#modalWizId.pf-v5-c-wizard').should('exist'); cy.get('#modalWizId.pf-v5-c-wizard').should('have.attr', 'style', 'width: 710px;'); - cy.focused().click(); + cy.get('#modalWizId .pf-v5-c-wizard__close > button').click(); }); it('Verify wizard in modal sends focus to the new content', () => { cy.get('#launchWiz').click(); cy.get('#modalWizId.pf-v5-c-wizard').should('exist'); - cy.focused().should('have.class', 'pf-v5-c-button'); - cy.focused().click(); - }); - - it('Verify in page wizard displays on page render', () => { - cy.get('#inPageWizId.pf-v5-c-wizard').should('exist'); + cy.get('#modalWizId .pf-v5-c-wizard__close > button') + .should('have.focus') + .then(($closeButton) => { + cy.wrap($closeButton).click(); + }); }); it('Verify in-page wizard step content is focusable and has role only if content overflows', () => { @@ -26,26 +29,37 @@ describe('Wizard Demo Test', () => { cy.get('#inPageWizWithOverflow .pf-v5-c-wizard__main').should('not.have.attr', 'role'); cy.get('#inPageWizWithOverflow .pf-v5-c-wizard__main').click(); cy.get('#inPageWizWithOverflow .pf-v5-c-wizard__main').should('not.have.focus'); - cy.get('#inPageWizWithOverflow button.pf-v5-c-wizard__nav-link').last().click(); + cy.get('#inPageWizWithOverflow #inPage-overflow-step-2.pf-v5-c-wizard__nav-link').click(); cy.get('#inPageWizWithOverflow .pf-v5-c-wizard__main').should('have.attr', 'tabindex'); cy.get('#inPageWizWithOverflow .pf-v5-c-wizard__main').should('have.attr', 'role').and('eq', 'region'); cy.get('#inPageWizWithOverflow .pf-v5-c-wizard__main').click(); cy.get('#inPageWizWithOverflow .pf-v5-c-wizard__main').should('have.focus'); }); - it('Verify modal wizard step content with main element is focusable only if content overflows', () => { + it('Verify modal wizard step content is focusable only if content overflows', () => { cy.get('#launchWizOverflow').click(); cy.get('#inModalWizWithOverflow.pf-v5-c-wizard').should('exist'); cy.get('#inModalWizWithOverflow .pf-v5-c-wizard__main').should('not.have.attr', 'tabindex'); cy.get('#inModalWizWithOverflow .pf-v5-c-wizard__main').should('not.have.attr', 'role'); cy.get('#inModalWizWithOverflow .pf-v5-c-wizard__main').click(); cy.get('#inModalWizWithOverflow .pf-v5-c-wizard__main').should('not.have.focus'); - cy.get('#inModalWizWithOverflow button.pf-v5-c-wizard__nav-link').last().click(); + cy.get('#inModalWizWithOverflow #modal-overflow-step-2.pf-v5-c-wizard__nav-link').click(); cy.get('#inModalWizWithOverflow main.pf-v5-c-wizard__main').should('exist'); cy.get('#inModalWizWithOverflow main.pf-v5-c-wizard__main').should('have.attr', 'tabindex'); - // When WizardBody component is not a div, it should not have a role applied - cy.get('#inModalWizWithOverflow main.pf-v5-c-wizard__main').should('not.have.attr', 'role'); cy.get('#inModalWizWithOverflow main.pf-v5-c-wizard__main').click(); cy.get('#inModalWizWithOverflow main.pf-v5-c-wizard__main').should('have.focus'); + cy.get('#inModalWizWithOverflow .pf-v5-c-wizard__close > button').click(); + }); + + it('Verify modal wizard roles are applied correctly', () => { + cy.get('#launchWizOverflow').click(); + cy.get('#inModalWizWithOverflow .pf-v5-c-wizard__main').should('not.have.attr', 'role'); + cy.get('#inModalWizWithOverflow #modal-overflow-step-2.pf-v5-c-wizard__nav-link').click(); + // When WizardBody component is not a div, it should not have a role applied + cy.get('#inModalWizWithOverflow main.pf-v5-c-wizard__main').should('not.have.attr', 'role'); + cy.get('#inModalWizWithOverflow #modal-overflow-step-3.pf-v5-c-wizard__nav-link').click(); + // When WizardBody component **is** a div, it should have role="region" + cy.get('#inModalWizWithOverflow div.pf-v5-c-wizard__main').should('have.attr', 'role').and('eq', 'region'); + cy.get('#inModalWizWithOverflow .pf-v5-c-wizard__close > button').click(); }); }); diff --git a/packages/react-integration/demo-app-ts/src/components/demos/WizardDemo/WizardDemo.tsx b/packages/react-integration/demo-app-ts/src/components/demos/WizardDemo/WizardDemo.tsx index cdd9374622b..6e20e57fc61 100644 --- a/packages/react-integration/demo-app-ts/src/components/demos/WizardDemo/WizardDemo.tsx +++ b/packages/react-integration/demo-app-ts/src/components/demos/WizardDemo/WizardDemo.tsx @@ -8,7 +8,7 @@ interface WizardDemoState { isOpenWithRole: boolean; } -export class WizardDemo extends React.Component<React.HTMLProps<HTMLDivElement>, WizardDemoState> { +class WizardDemo extends React.Component<React.HTMLProps<HTMLDivElement>, WizardDemoState> { static displayName = 'WizardDemo'; state = { isOpen: false, @@ -72,6 +72,8 @@ export class WizardDemo extends React.Component<React.HTMLProps<HTMLDivElement>, </WizardStep> </Wizard> </Modal> + <br /> + <br /> <Wizard id="inPageWizId" height={500}> <WizardStep name="A" id="wizard-step-a"> <p>Step 1</p> @@ -95,6 +97,8 @@ export class WizardDemo extends React.Component<React.HTMLProps<HTMLDivElement>, <p>Step 5</p> </WizardStep> </Wizard> + <br /> + <br /> <Wizard id="inPageWizWithAnchorsId" height={500}> <WizardStep name={ @@ -130,16 +134,20 @@ export class WizardDemo extends React.Component<React.HTMLProps<HTMLDivElement>, <p>Step 3</p> </WizardStep> </Wizard> + <br /> + <br /> <Wizard id="inPageWizWithOverflow" height={500}> - <WizardStep name="Step without overflow" id="wizard-overflow-without"> + <WizardStep id="inPage-overflow-step-1" name="Step without overflow"> <p>Step 1</p> </WizardStep> - <WizardStep name="Step with overflow" id="wizard-overflow-with"> + <WizardStep id="inPage-overflow-step-2" name="Step with overflow"> <div style={{ height: '800px' }}> <p>Step 2</p> </div> </WizardStep> </Wizard> + <br /> + <br /> <Button id="launchWizOverflow" variant="primary" onClick={this.handleRoleWizardToggle}> Show Modal with Overflow </Button> @@ -157,10 +165,106 @@ export class WizardDemo extends React.Component<React.HTMLProps<HTMLDivElement>, /> } > - <WizardStep body={{ component: 'main' }} name="Step without overflow" id="wizard-overflow-without"> + <WizardStep id="modal-overflow-step-1" body={{ component: 'main' }} name="Step without overflow"> <p>Step 1</p> </WizardStep> - <WizardStep body={{ component: 'main' }} name="Step with overflow" id="wizard-overflow-with"> + <WizardStep id="modal-overflow-step-2" body={{ component: 'main' }} name="Step with overflow"> + <div style={{ height: '200px' }}> + <> + <p> + The content of this step overflows and creates a scrollbar, which causes a tabindex of "0", a role + of "region", and an aria-label or aria-labelledby to be applied. + </p> + <p> + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer bibendum in neque nec pharetra. + Duis lacinia vel sapien ut imperdiet. Nunc ultrices mollis dictum. Duis tempus, massa nec tincidunt + tempor, enim ex porttitor odio, eu facilisis dolor tortor id sapien. Etiam sit amet molestie lacus. + Nulla facilisi. Duis eget finibus ipsum. Quisque dictum enim sed sodales porta. Curabitur eget orci + eu risus posuere pulvinar id nec turpis. Morbi mattis orci vel posuere tincidunt. Fusce bibendum et + libero a auctor. + </p> + <p> + Proin elementum commodo sodales. Quisque eget libero mattis, ornare augue at, egestas nisi. Mauris + ultrices orci fringilla pretium mattis. Aliquam erat volutpat. Sed pharetra condimentum dui, nec + bibendum ante. Vestibulum sollicitudin, sem accumsan pharetra molestie, purus turpis lacinia lorem, + commodo sodales quam lectus a urna. Nam gravida, felis a lacinia varius, ex ipsum ultrices orci, non + egestas diam velit in mi. Ut sit amet commodo orci. Duis sed diam odio. Duis mi metus, dignissim in + odio nec, ornare aliquet libero. Sed luctus elit nibh. Quisque et felis diam. Integer ac metus + dolor. + </p> + </> + <> + <p> + The content of this step overflows and creates a scrollbar, which causes a tabindex of "0", a role + of "region", and an aria-label or aria-labelledby to be applied. + </p> + <p> + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer bibendum in neque nec pharetra. + Duis lacinia vel sapien ut imperdiet. Nunc ultrices mollis dictum. Duis tempus, massa nec tincidunt + tempor, enim ex porttitor odio, eu facilisis dolor tortor id sapien. Etiam sit amet molestie lacus. + Nulla facilisi. Duis eget finibus ipsum. Quisque dictum enim sed sodales porta. Curabitur eget orci + eu risus posuere pulvinar id nec turpis. Morbi mattis orci vel posuere tincidunt. Fusce bibendum et + libero a auctor. + </p> + <p> + Proin elementum commodo sodales. Quisque eget libero mattis, ornare augue at, egestas nisi. Mauris + ultrices orci fringilla pretium mattis. Aliquam erat volutpat. Sed pharetra condimentum dui, nec + bibendum ante. Vestibulum sollicitudin, sem accumsan pharetra molestie, purus turpis lacinia lorem, + commodo sodales quam lectus a urna. Nam gravida, felis a lacinia varius, ex ipsum ultrices orci, non + egestas diam velit in mi. Ut sit amet commodo orci. Duis sed diam odio. Duis mi metus, dignissim in + odio nec, ornare aliquet libero. Sed luctus elit nibh. Quisque et felis diam. Integer ac metus + dolor. + </p> + </> + <> + <p> + The content of this step overflows and creates a scrollbar, which causes a tabindex of "0", a role + of "region", and an aria-label or aria-labelledby to be applied. + </p> + <p> + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer bibendum in neque nec pharetra. + Duis lacinia vel sapien ut imperdiet. Nunc ultrices mollis dictum. Duis tempus, massa nec tincidunt + tempor, enim ex porttitor odio, eu facilisis dolor tortor id sapien. Etiam sit amet molestie lacus. + Nulla facilisi. Duis eget finibus ipsum. Quisque dictum enim sed sodales porta. Curabitur eget orci + eu risus posuere pulvinar id nec turpis. Morbi mattis orci vel posuere tincidunt. Fusce bibendum et + libero a auctor. + </p> + <p> + Proin elementum commodo sodales. Quisque eget libero mattis, ornare augue at, egestas nisi. Mauris + ultrices orci fringilla pretium mattis. Aliquam erat volutpat. Sed pharetra condimentum dui, nec + bibendum ante. Vestibulum sollicitudin, sem accumsan pharetra molestie, purus turpis lacinia lorem, + commodo sodales quam lectus a urna. Nam gravida, felis a lacinia varius, ex ipsum ultrices orci, non + egestas diam velit in mi. Ut sit amet commodo orci. Duis sed diam odio. Duis mi metus, dignissim in + odio nec, ornare aliquet libero. Sed luctus elit nibh. Quisque et felis diam. Integer ac metus + dolor. + </p> + </> + <> + <p> + The content of this step overflows and creates a scrollbar, which causes a tabindex of "0", a role + of "region", and an aria-label or aria-labelledby to be applied. + </p> + <p> + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer bibendum in neque nec pharetra. + Duis lacinia vel sapien ut imperdiet. Nunc ultrices mollis dictum. Duis tempus, massa nec tincidunt + tempor, enim ex porttitor odio, eu facilisis dolor tortor id sapien. Etiam sit amet molestie lacus. + Nulla facilisi. Duis eget finibus ipsum. Quisque dictum enim sed sodales porta. Curabitur eget orci + eu risus posuere pulvinar id nec turpis. Morbi mattis orci vel posuere tincidunt. Fusce bibendum et + libero a auctor. + </p> + <p> + Proin elementum commodo sodales. Quisque eget libero mattis, ornare augue at, egestas nisi. Mauris + ultrices orci fringilla pretium mattis. Aliquam erat volutpat. Sed pharetra condimentum dui, nec + bibendum ante. Vestibulum sollicitudin, sem accumsan pharetra molestie, purus turpis lacinia lorem, + commodo sodales quam lectus a urna. Nam gravida, felis a lacinia varius, ex ipsum ultrices orci, non + egestas diam velit in mi. Ut sit amet commodo orci. Duis sed diam odio. Duis mi metus, dignissim in + odio nec, ornare aliquet libero. Sed luctus elit nibh. Quisque et felis diam. Integer ac metus + dolor. + </p> + </> + </div> + </WizardStep> + <WizardStep id="modal-overflow-step-3" body={{ component: 'div' }} name="Div step with overflow"> <div style={{ height: '200px' }}> <> <p> @@ -262,3 +366,5 @@ export class WizardDemo extends React.Component<React.HTMLProps<HTMLDivElement>, ); } } + +export { WizardDemo }; From d5c7c53a9e9b0ab6d05c647287aa4d4555969e9b Mon Sep 17 00:00:00 2001 From: patternfly-build <patternfly-build@redhat.com> Date: Mon, 9 Oct 2023 16:17:43 +0000 Subject: [PATCH 051/103] chore(release): releasing packages [ci skip] - @patternfly/react-integration@5.1.1-prerelease.10 - demo-app-ts@5.1.1-prerelease.24 --- packages/react-integration/CHANGELOG.md | 4 ++++ packages/react-integration/demo-app-ts/CHANGELOG.md | 4 ++++ packages/react-integration/demo-app-ts/package.json | 2 +- packages/react-integration/package.json | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/react-integration/CHANGELOG.md b/packages/react-integration/CHANGELOG.md index 83f7eb96720..7b8e9da8664 100644 --- a/packages/react-integration/CHANGELOG.md +++ b/packages/react-integration/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.10](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-integration@5.1.1-prerelease.9...@patternfly/react-integration@5.1.1-prerelease.10) (2023-10-09) + +**Note:** Version bump only for package @patternfly/react-integration + ## 5.1.1-prerelease.9 (2023-10-09) ### Bug Fixes diff --git a/packages/react-integration/demo-app-ts/CHANGELOG.md b/packages/react-integration/demo-app-ts/CHANGELOG.md index 70bc0d11f21..90bd316c880 100644 --- a/packages/react-integration/demo-app-ts/CHANGELOG.md +++ b/packages/react-integration/demo-app-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.24](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.23...demo-app-ts@5.1.1-prerelease.24) (2023-10-09) + +**Note:** Version bump only for package demo-app-ts + ## 5.1.1-prerelease.23 (2023-10-09) ### Bug Fixes diff --git a/packages/react-integration/demo-app-ts/package.json b/packages/react-integration/demo-app-ts/package.json index 2b3db831599..fbd24cadbc8 100644 --- a/packages/react-integration/demo-app-ts/package.json +++ b/packages/react-integration/demo-app-ts/package.json @@ -1,7 +1,7 @@ { "name": "demo-app-ts", "private": true, - "version": "5.1.1-prerelease.23", + "version": "5.1.1-prerelease.24", "scripts": { "build:demo-app": "webpack --mode production", "start:demo-app": "webpack-dev-server", diff --git a/packages/react-integration/package.json b/packages/react-integration/package.json index b47127e6831..3a5dab62ce9 100644 --- a/packages/react-integration/package.json +++ b/packages/react-integration/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-integration", - "version": "5.1.1-prerelease.9", + "version": "5.1.1-prerelease.10", "private": true, "description": "Integration testing for PF5 using demo applications", "main": "lib/index.js", From cb98a8ade66d2ba72c2c8b228f97d9390df3778e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 13:04:34 -0400 Subject: [PATCH 052/103] chore(deps): update devdependencies (#9723) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 108 +++++++++++++++++++++++++++--------------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/yarn.lock b/yarn.lock index 4c5fa0ad68a..bd4d35cfb42 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2919,9 +2919,9 @@ integrity sha512-pPTNuaAG3QMH+buKyBIGJs3g/S5y0caxw0ygM3YyE6yJFySwiGGSzA+mM3KJ8QQvzeLh3blwgSonkFjgQdxzMw== "@eslint-community/regexpp@^4.6.1": - version "4.9.0" - resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.9.0.tgz#7ccb5f58703fa61ffdcbf39e2c604a109e781162" - integrity sha512-zJmuCWj2VLBt4c25CfBIbMZLGLyhkvs7LznyVX5HfpzeocThgIj5XQK4L+g3U36mMcx8bPMhGyPpwCATamC4jQ== + version "4.9.1" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.9.1.tgz#449dfa81a57a1d755b09aa58d826c1262e4283b4" + integrity sha512-Y27x+MBLjXa+0JWDhykM3+JE+il3kHKAEqabfEWq3SDhZjLYb6/BHL/JKFnH3fe207JaXkyDo685Oc2Glt6ifA== "@eslint/eslintrc@^2.1.2": version "2.1.2" @@ -2938,10 +2938,10 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@eslint/js@8.50.0": - version "8.50.0" - resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.50.0.tgz#9e93b850f0f3fa35f5fa59adfd03adae8488e484" - integrity sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ== +"@eslint/js@8.51.0": + version "8.51.0" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.51.0.tgz#6d419c240cfb2b66da37df230f7e7eef801c32fa" + integrity sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg== "@fortawesome/fontawesome-common-types@^0.2.30": version "0.2.30" @@ -3802,10 +3802,10 @@ node-addon-api "^3.2.1" node-gyp-build "^4.3.0" -"@patternfly/ast-helpers@^1.2.6": - version "1.2.6" - resolved "https://registry.yarnpkg.com/@patternfly/ast-helpers/-/ast-helpers-1.2.6.tgz#a95333768e5a476ba543f16f5434b459e5b5c1bb" - integrity sha512-yLrmI6VtNb90b8vzFTWycNGV+0ki9ih0nneVFka7cmwPg/uVYCtJsnH8ykXtSbHOcomwujFDJidbGATwP+r/Cw== +"@patternfly/ast-helpers@^1.2.17": + version "1.2.17" + resolved "https://registry.yarnpkg.com/@patternfly/ast-helpers/-/ast-helpers-1.2.17.tgz#34f9ccd529c8d8bd54ad23e75d07ae437b875d28" + integrity sha512-39svBpahHBsnJ2Lb9yQ+YW/q032tbbOxAAq93VQ4A3OPEnhPFD/BdX9GgQk/ZvagXNcQgXeH859JDWmtm65lHg== dependencies: acorn "^8.4.1" acorn-class-fields "^1.0.0" @@ -3814,9 +3814,9 @@ astring "^1.7.5" "@patternfly/documentation-framework@^5.0.15": - version "5.2.6" - resolved "https://registry.yarnpkg.com/@patternfly/documentation-framework/-/documentation-framework-5.2.6.tgz#23d94478c553fab9b56d3f7b2f20222b77839ae6" - integrity sha512-t/iPXnxbNmWC8DX9zNLT5q1yEhz4OvktjeJm3p9ax4yuPFGpgoL6SiwH7sqMp38YlLyF5EVqstA66WmW6Ix5Pw== + version "5.2.17" + resolved "https://registry.yarnpkg.com/@patternfly/documentation-framework/-/documentation-framework-5.2.17.tgz#e9ceea42c376b744e13db85cdca8050a5748e25c" + integrity sha512-4LdRmXGuPTLUb0UITi2QRZ6WqMWMzQeGUX0L0kN44LvYzRAZ331EYQOx0j2lMLwwfY08VUszvZ9YSq2QjtbAWg== dependencies: "@babel/core" "7.18.2" "@babel/plugin-proposal-class-properties" "7.17.12" @@ -3826,7 +3826,7 @@ "@babel/plugin-transform-react-jsx" "7.17.12" "@babel/preset-env" "7.18.2" "@mdx-js/util" "1.6.16" - "@patternfly/ast-helpers" "^1.2.6" + "@patternfly/ast-helpers" "^1.2.17" "@reach/router" "npm:@gatsbyjs/reach-router@1.3.9" autoprefixer "9.8.6" babel-loader "9.1.2" @@ -3954,9 +3954,9 @@ react-lifecycles-compat "^3.0.4" "@rollup/plugin-commonjs@^25.0.0": - version "25.0.4" - resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-25.0.4.tgz#a7547a0c4ec3fa79818eb313e1de0023e548f4e6" - integrity sha512-L92Vz9WUZXDnlQQl3EwbypJR4+DM2EbsO+/KOcEkP4Mc6Ct453EeDB2uH9lgRwj4w5yflgNpq9pHOiY8aoUXBQ== + version "25.0.5" + resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-25.0.5.tgz#0bac8f985a5de151b4b09338847f8c7f20a28a29" + integrity sha512-xY8r/A9oisSeSuLCTfhssyDjo9Vp/eDiRLXkg1MXCcEEgEjPmLU+ZyDB20OOD0NlyDa/8SGbK5uIggF5XTx77w== dependencies: "@rollup/pluginutils" "^5.0.1" commondir "^1.0.1" @@ -3966,9 +3966,9 @@ magic-string "^0.27.0" "@rollup/plugin-node-resolve@^15.0.2": - version "15.2.1" - resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.1.tgz#a15b14fb7969229e26a30feff2816d39eff503f0" - integrity sha512-nsbUg588+GDSu8/NS8T4UAshO6xeaOfINNuXeVHcKV02LJtoRaM1SiOacClw4kws1SFiNhdLGxlbMY9ga/zs/w== + version "15.2.3" + resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz#e5e0b059bd85ca57489492f295ce88c2d4b0daf9" + integrity sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ== dependencies: "@rollup/pluginutils" "^5.0.1" "@types/resolve" "1.20.2" @@ -3978,9 +3978,9 @@ resolve "^1.22.1" "@rollup/plugin-replace@^5.0.2": - version "5.0.2" - resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-5.0.2.tgz#45f53501b16311feded2485e98419acb8448c61d" - integrity sha512-M9YXNekv/C/iHHK+cvORzfRYfPbq0RDD8r0G+bMiTXjNGKulPnCT9O3Ss46WfhI6ZOCgApOP7xAdmCQJ+U2LAA== + version "5.0.3" + resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-5.0.3.tgz#55a4550bd6d5e83a65df3d201e0b3d219be7b4b2" + integrity sha512-je7fu05B800IrMlWjb2wzJcdXzHYW46iTipfChnBDbIbDXhASZs27W1B58T2Yf45jZtJUONegpbce+9Ut2Ti/Q== dependencies: "@rollup/pluginutils" "^5.0.1" magic-string "^0.27.0" @@ -4468,9 +4468,9 @@ integrity sha512-Fo79ojj3vdEZOHg3wR9ksAMRz4P3S5fDB5e/YWZiFnyFQI1WY2Vftu9XoXVVtJfxB7Bpce/QTqWSSntkz2Znrw== "@types/prop-types@*": - version "15.7.7" - resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.7.tgz#f9361f7b87fd5d8188b2c998db0a1f47e9fb391a" - integrity sha512-FbtmBWCcSa2J4zL781Zf1p5YUBXQomPEcep9QZCfRfQgTxz3pJWiDFLebohZ9fFntX5ibzOkSsrJ0TEew8cAog== + version "15.7.8" + resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.8.tgz#805eae6e8f41bd19e88917d2ea200dc992f405d3" + integrity sha512-kMpQpfZKSCBqltAJwskgePRaYRFukDkm1oItcAbC3gNELR20XIBcN9VRgg4+m8DKsTfkWeA4m4Imp4DDuWy7FQ== "@types/qs@*": version "6.9.7" @@ -4483,9 +4483,9 @@ integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw== "@types/react-dom@^18", "@types/react-dom@^18.0.0": - version "18.2.8" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.8.tgz#338f1b0a646c9f10e0a97208c1d26b9f473dffd6" - integrity sha512-bAIvO5lN/U8sPGvs1Xm61rlRHHaq5rp5N3kp9C+NJ/Q41P8iqjkXSu0+/qu8POsjH9pNWb0OYabFez7taP7omw== + version "18.2.11" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.11.tgz#4332c315544698a0875dfdb6e320dda59e1b3d58" + integrity sha512-zq6Dy0EiCuF9pWFW6I6k6W2LdpUixLE4P6XjXU1QHLfak3GPACQfLwEuHzY5pOYa4hzj1d0GxX/P141aFjZsyg== dependencies: "@types/react" "*" @@ -4514,9 +4514,9 @@ "@types/react" "*" "@types/react@*", "@types/react@^18": - version "18.2.23" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.23.tgz#60ad6cf4895e93bed858db0e03bcc4ff97d0410e" - integrity sha512-qHLW6n1q2+7KyBEYnrZpcsAmU/iiCh9WGCKgXvMxx89+TYdJWRjZohVIo9XTcoLhfX3+/hP0Pbulu3bCZQ9PSA== + version "18.2.26" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.26.tgz#3bc3f33b804cbfd7d0bda6e8a014cb6ee4be74b9" + integrity sha512-ZaMtQo/fasHwMSRTED+u4Cjnkl0uuqEFJ2rKF0DQXji1v24DaNdSe9am4ldiDKFD/MpzbyS8UEOceh1/Oiw89g== dependencies: "@types/prop-types" "*" "@types/scheduler" "*" @@ -8905,9 +8905,9 @@ eslint-plugin-import@^2.13.0: tsconfig-paths "^3.14.2" eslint-plugin-jest@^27.0.0: - version "27.4.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-27.4.0.tgz#3926cca723c40c3d7a3fe0e1fd911eff5e681f50" - integrity sha512-ukVeKmMPAUA5SWjHenvyyXnirKfHKMdOsTZdn5tZx5EW05HGVQwBohigjFZGGj3zuv1cV6hc82FvWv6LdIbkgg== + version "27.4.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-27.4.2.tgz#181d999ac67a9b6040db1d27935887cf5a2882ed" + integrity sha512-3Nfvv3wbq2+PZlRTf2oaAWXWwbdBejFRBR2O8tAO67o+P8zno+QGbcDYaAXODlreXVg+9gvWhKKmG2rgfb8GEg== dependencies: "@typescript-eslint/utils" "^5.10.0" @@ -9048,14 +9048,14 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4 integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== eslint@^8.39.0: - version "8.50.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.50.0.tgz#2ae6015fee0240fcd3f83e1e25df0287f487d6b2" - integrity sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg== + version "8.51.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.51.0.tgz#4a82dae60d209ac89a5cff1604fea978ba4950f3" + integrity sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA== dependencies: "@eslint-community/eslint-utils" "^4.2.0" "@eslint-community/regexpp" "^4.6.1" "@eslint/eslintrc" "^2.1.2" - "@eslint/js" "8.50.0" + "@eslint/js" "8.51.0" "@humanwhocodes/config-array" "^0.11.11" "@humanwhocodes/module-importer" "^1.0.1" "@nodelib/fs.walk" "^1.2.8" @@ -9744,11 +9744,11 @@ flagged-respawn@^2.0.0: integrity sha512-Gq/a6YCi8zexmGHMuJwahTGzXlAZAOsbCVKduWXC6TlLCjjFRlExMJc4GC2NYPYZ0r/brw9P7CpRgQmlPVeOoA== flat-cache@^3.0.4: - version "3.1.0" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.1.0.tgz#0e54ab4a1a60fe87e2946b6b00657f1c99e1af3f" - integrity sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew== + version "3.1.1" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.1.1.tgz#a02a15fdec25a8f844ff7cc658f03dd99eb4609b" + integrity sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q== dependencies: - flatted "^3.2.7" + flatted "^3.2.9" keyv "^4.5.3" rimraf "^3.0.2" @@ -9757,7 +9757,7 @@ flat@^5.0.2: resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== -flatted@^3.2.7: +flatted@^3.2.9: version "3.2.9" resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.9.tgz#7eb4c67ca1ba34232ca9d2d93e9886e611ad7daf" integrity sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ== @@ -10419,9 +10419,9 @@ globals@^11.1.0: integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== globals@^13.19.0: - version "13.22.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.22.0.tgz#0c9fcb9c48a2494fbb5edbfee644285543eba9d8" - integrity sha512-H1Ddc/PbZHTDVJSnj8kWptIRSD6AM3pK+mKytuIVF4uoBV7rshFlhhvA58ceJ5wp3Er58w6zj7bykMpYXt3ETw== + version "13.23.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.23.0.tgz#ef31673c926a0976e1f61dab4dca57e0c0a8af02" + integrity sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA== dependencies: type-fest "^0.20.2" @@ -12744,9 +12744,9 @@ keygrip@~1.1.0: tsscmp "1.0.6" keyv@^4.5.3: - version "4.5.3" - resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.3.tgz#00873d2b046df737963157bd04f294ca818c9c25" - integrity sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug== + version "4.5.4" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" + integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== dependencies: json-buffer "3.0.1" @@ -16989,9 +16989,9 @@ rollup-pluginutils@^2.3.3: estree-walker "^0.6.1" rollup@^3.21.5: - version "3.29.3" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.3.tgz#97769774ccaa6a3059083d4680fcabd8ead01289" - integrity sha512-T7du6Hum8jOkSWetjRgbwpM6Sy0nECYrYRSmZjayFcOddtKJWU4d17AC3HNUk7HRuqy4p+G7aEZclSHytqUmEg== + version "3.29.4" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.4.tgz#4d70c0f9834146df8705bfb69a9a19c9e1109981" + integrity sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw== optionalDependencies: fsevents "~2.3.2" From 3515efc0fff050aeb9eb8d85a90dd07248470c12 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 14:18:11 -0400 Subject: [PATCH 053/103] chore(deps): update dependency @patternfly/patternfly to v5.2.0-prerelease.1 (#9717) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/react-core/package.json | 2 +- packages/react-docs/package.json | 2 +- packages/react-icons/package.json | 2 +- packages/react-styles/package.json | 2 +- packages/react-tokens/package.json | 2 +- yarn.lock | 8 ++++---- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/react-core/package.json b/packages/react-core/package.json index efd4e7580af..b4f5ad29b41 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -53,7 +53,7 @@ "tslib": "^2.5.0" }, "devDependencies": { - "@patternfly/patternfly": "5.1.0", + "@patternfly/patternfly": "5.2.0-prerelease.1", "@rollup/plugin-commonjs": "^25.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@rollup/plugin-replace": "^5.0.2", diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index 3ff54005090..f4549ae8683 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -22,7 +22,7 @@ "test:a11y": "patternfly-a11y --config patternfly-a11y.config" }, "dependencies": { - "@patternfly/patternfly": "5.1.0", + "@patternfly/patternfly": "5.2.0-prerelease.1", "@patternfly/react-charts": "^7.2.0-prerelease.1", "@patternfly/react-code-editor": "^5.2.0-prerelease.1", "@patternfly/react-core": "^5.2.0-prerelease.1", diff --git a/packages/react-icons/package.json b/packages/react-icons/package.json index 602321b7c83..72ef727930c 100644 --- a/packages/react-icons/package.json +++ b/packages/react-icons/package.json @@ -32,7 +32,7 @@ "@fortawesome/free-brands-svg-icons": "^5.14.0", "@fortawesome/free-regular-svg-icons": "^5.14.0", "@fortawesome/free-solid-svg-icons": "^5.14.0", - "@patternfly/patternfly": "5.1.0", + "@patternfly/patternfly": "5.2.0-prerelease.1", "fs-extra": "^11.1.1", "glob": "^7.1.2", "rimraf": "^2.6.2", diff --git a/packages/react-styles/package.json b/packages/react-styles/package.json index 759b367bfc0..766eed856cd 100644 --- a/packages/react-styles/package.json +++ b/packages/react-styles/package.json @@ -18,7 +18,7 @@ "clean": "rimraf dist css" }, "devDependencies": { - "@patternfly/patternfly": "5.1.0", + "@patternfly/patternfly": "5.2.0-prerelease.1", "camel-case": "^3.0.0", "css": "^2.2.3", "fs-extra": "^11.1.1", diff --git a/packages/react-tokens/package.json b/packages/react-tokens/package.json index c5bdfbfd257..a62dfae5298 100644 --- a/packages/react-tokens/package.json +++ b/packages/react-tokens/package.json @@ -28,7 +28,7 @@ "clean": "rimraf dist" }, "devDependencies": { - "@patternfly/patternfly": "5.1.0", + "@patternfly/patternfly": "5.2.0-prerelease.1", "css": "^2.2.3", "fs-extra": "^11.1.1", "glob": "^7.1.2", diff --git a/yarn.lock b/yarn.lock index bd4d35cfb42..90c6ae4a0f1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3902,10 +3902,10 @@ puppeteer-cluster "^0.23.0" xmldoc "^1.1.2" -"@patternfly/patternfly@5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@patternfly/patternfly/-/patternfly-5.1.0.tgz#1c02dff6785d87c222de8a5944b960dd6c0de760" - integrity sha512-wzVgL/0xPsmuRKWc6lMNEo5gDcTUtyU231eJSBTapOKXiwBOv2flvLEHPYLO6oDYXO+hwUrVgbcZFWMd1UlLwA== +"@patternfly/patternfly@5.2.0-prerelease.1": + version "5.2.0-prerelease.1" + resolved "https://registry.yarnpkg.com/@patternfly/patternfly/-/patternfly-5.2.0-prerelease.1.tgz#d4f1a026de4dda6d34705977f8645f40ceb3bd03" + integrity sha512-B9noycUvymd6K12025W43KQcCZcvTQo8jkHENtxrzOeBMm2YDjKi7Ei/npts2i0NJpdOw6dtpzQYz1tAjZhwdg== "@pkgjs/parseargs@^0.11.0": version "0.11.0" From 4425a94432f0da5f130d2df8b43222e81324a003 Mon Sep 17 00:00:00 2001 From: patternfly-build <patternfly-build@redhat.com> Date: Mon, 9 Oct 2023 18:43:09 +0000 Subject: [PATCH 054/103] chore(release): releasing packages [ci skip] - @patternfly/react-charts@7.2.0-prerelease.2 - @patternfly/react-code-editor@5.2.0-prerelease.2 - @patternfly/react-core@5.2.0-prerelease.2 - @patternfly/react-docs@6.2.0-prerelease.2 - @patternfly/react-icons@5.2.0-prerelease.1 - demo-app-ts@5.1.1-prerelease.25 - @patternfly/react-styles@5.2.0-prerelease.1 - @patternfly/react-table@5.2.0-prerelease.2 - @patternfly/react-tokens@5.2.0-prerelease.1 --- packages/react-charts/CHANGELOG.md | 4 ++++ packages/react-charts/package.json | 6 +++--- packages/react-code-editor/CHANGELOG.md | 4 ++++ packages/react-code-editor/package.json | 8 ++++---- packages/react-core/CHANGELOG.md | 4 ++++ packages/react-core/package.json | 8 ++++---- packages/react-docs/CHANGELOG.md | 4 ++++ packages/react-docs/package.json | 16 ++++++++-------- packages/react-icons/CHANGELOG.md | 4 ++++ packages/react-icons/package.json | 2 +- .../react-integration/demo-app-ts/CHANGELOG.md | 4 ++++ .../react-integration/demo-app-ts/package.json | 4 ++-- packages/react-styles/CHANGELOG.md | 4 ++++ packages/react-styles/package.json | 2 +- packages/react-table/CHANGELOG.md | 4 ++++ packages/react-table/package.json | 10 +++++----- packages/react-tokens/CHANGELOG.md | 4 ++++ packages/react-tokens/package.json | 2 +- 18 files changed, 65 insertions(+), 29 deletions(-) diff --git a/packages/react-charts/CHANGELOG.md b/packages/react-charts/CHANGELOG.md index 0a2de82bee9..7aeec2f63d8 100644 --- a/packages/react-charts/CHANGELOG.md +++ b/packages/react-charts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 7.2.0-prerelease.2 (2023-10-09) + +**Note:** Version bump only for package @patternfly/react-charts + # [7.2.0-prerelease.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-charts@7.2.0-prerelease.0...@patternfly/react-charts@7.2.0-prerelease.1) (2023-10-09) ### Bug Fixes diff --git a/packages/react-charts/package.json b/packages/react-charts/package.json index 46e4518333d..8b8b92f542d 100644 --- a/packages/react-charts/package.json +++ b/packages/react-charts/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-charts", - "version": "7.2.0-prerelease.1", + "version": "7.2.0-prerelease.2", "description": "This library provides a set of React chart components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -28,8 +28,8 @@ }, "homepage": "https://github.com/patternfly/patternfly-react#readme", "dependencies": { - "@patternfly/react-styles": "^5.2.0-prerelease.0", - "@patternfly/react-tokens": "^5.2.0-prerelease.0", + "@patternfly/react-styles": "^5.2.0-prerelease.1", + "@patternfly/react-tokens": "^5.2.0-prerelease.1", "hoist-non-react-statics": "^3.3.0", "lodash": "^4.17.19", "tslib": "^2.5.0", diff --git a/packages/react-code-editor/CHANGELOG.md b/packages/react-code-editor/CHANGELOG.md index 3040f123342..3d8436c8402 100644 --- a/packages/react-code-editor/CHANGELOG.md +++ b/packages/react-code-editor/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 5.2.0-prerelease.2 (2023-10-09) + +**Note:** Version bump only for package @patternfly/react-code-editor + # [5.2.0-prerelease.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.2.0-prerelease.0...@patternfly/react-code-editor@5.2.0-prerelease.1) (2023-10-09) ### Bug Fixes diff --git a/packages/react-code-editor/package.json b/packages/react-code-editor/package.json index 9825fb24e26..e2c01178965 100644 --- a/packages/react-code-editor/package.json +++ b/packages/react-code-editor/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-code-editor", - "version": "5.2.0-prerelease.1", + "version": "5.2.0-prerelease.2", "description": "This package provides a PatternFly wrapper for the Monaco code editor\n", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -29,9 +29,9 @@ "clean": "rimraf dist" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.1", - "@patternfly/react-icons": "^5.2.0-prerelease.0", - "@patternfly/react-styles": "^5.2.0-prerelease.0", + "@patternfly/react-core": "^5.2.0-prerelease.2", + "@patternfly/react-icons": "^5.2.0-prerelease.1", + "@patternfly/react-styles": "^5.2.0-prerelease.1", "react-dropzone": "14.2.3", "tslib": "^2.5.0" }, diff --git a/packages/react-core/CHANGELOG.md b/packages/react-core/CHANGELOG.md index 6db58b6d5dd..a9303740d9a 100644 --- a/packages/react-core/CHANGELOG.md +++ b/packages/react-core/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 5.2.0-prerelease.2 (2023-10-09) + +**Note:** Version bump only for package @patternfly/react-core + # [5.2.0-prerelease.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.2.0-prerelease.0...@patternfly/react-core@5.2.0-prerelease.1) (2023-10-09) ### Bug Fixes diff --git a/packages/react-core/package.json b/packages/react-core/package.json index b4f5ad29b41..6b1228a4660 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-core", - "version": "5.2.0-prerelease.1", + "version": "5.2.0-prerelease.2", "description": "This library provides a set of common React components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -45,9 +45,9 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-icons": "^5.2.0-prerelease.0", - "@patternfly/react-styles": "^5.2.0-prerelease.0", - "@patternfly/react-tokens": "^5.2.0-prerelease.0", + "@patternfly/react-icons": "^5.2.0-prerelease.1", + "@patternfly/react-styles": "^5.2.0-prerelease.1", + "@patternfly/react-tokens": "^5.2.0-prerelease.1", "focus-trap": "7.5.2", "react-dropzone": "^14.2.3", "tslib": "^2.5.0" diff --git a/packages/react-docs/CHANGELOG.md b/packages/react-docs/CHANGELOG.md index 2f3d11cf240..997b3466303 100644 --- a/packages/react-docs/CHANGELOG.md +++ b/packages/react-docs/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 6.2.0-prerelease.2 (2023-10-09) + +**Note:** Version bump only for package @patternfly/react-docs + # [6.2.0-prerelease.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.2.0-prerelease.0...@patternfly/react-docs@6.2.0-prerelease.1) (2023-10-09) **Note:** Version bump only for package @patternfly/react-docs diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index f4549ae8683..61b34062fa2 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -1,7 +1,7 @@ { "name": "@patternfly/react-docs", "description": "PatternFly React Docs", - "version": "6.2.0-prerelease.1", + "version": "6.2.0-prerelease.2", "publishConfig": { "access": "public" }, @@ -23,13 +23,13 @@ }, "dependencies": { "@patternfly/patternfly": "5.2.0-prerelease.1", - "@patternfly/react-charts": "^7.2.0-prerelease.1", - "@patternfly/react-code-editor": "^5.2.0-prerelease.1", - "@patternfly/react-core": "^5.2.0-prerelease.1", - "@patternfly/react-icons": "^5.2.0-prerelease.0", - "@patternfly/react-styles": "^5.2.0-prerelease.0", - "@patternfly/react-table": "^5.2.0-prerelease.1", - "@patternfly/react-tokens": "^5.2.0-prerelease.0" + "@patternfly/react-charts": "^7.2.0-prerelease.2", + "@patternfly/react-code-editor": "^5.2.0-prerelease.2", + "@patternfly/react-core": "^5.2.0-prerelease.2", + "@patternfly/react-icons": "^5.2.0-prerelease.1", + "@patternfly/react-styles": "^5.2.0-prerelease.1", + "@patternfly/react-table": "^5.2.0-prerelease.2", + "@patternfly/react-tokens": "^5.2.0-prerelease.1" }, "devDependencies": { "@patternfly/documentation-framework": "^5.0.15", diff --git a/packages/react-icons/CHANGELOG.md b/packages/react-icons/CHANGELOG.md index b57287cb04f..859e056eb0d 100644 --- a/packages/react-icons/CHANGELOG.md +++ b/packages/react-icons/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 5.2.0-prerelease.1 (2023-10-09) + +**Note:** Version bump only for package @patternfly/react-icons + # [5.2.0-prerelease.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-icons@5.1.1...@patternfly/react-icons@5.2.0-prerelease.0) (2023-10-05) **Note:** Version bump only for package @patternfly/react-icons diff --git a/packages/react-icons/package.json b/packages/react-icons/package.json index 72ef727930c..0adee7f17e8 100644 --- a/packages/react-icons/package.json +++ b/packages/react-icons/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-icons", - "version": "5.2.0-prerelease.0", + "version": "5.2.0-prerelease.1", "description": "PatternFly 4 Icons as React Components", "main": "dist/js/index.js", "module": "dist/esm/index.js", diff --git a/packages/react-integration/demo-app-ts/CHANGELOG.md b/packages/react-integration/demo-app-ts/CHANGELOG.md index 90bd316c880..a7b872e452a 100644 --- a/packages/react-integration/demo-app-ts/CHANGELOG.md +++ b/packages/react-integration/demo-app-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.25](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.24...demo-app-ts@5.1.1-prerelease.25) (2023-10-09) + +**Note:** Version bump only for package demo-app-ts + ## [5.1.1-prerelease.24](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.23...demo-app-ts@5.1.1-prerelease.24) (2023-10-09) **Note:** Version bump only for package demo-app-ts diff --git a/packages/react-integration/demo-app-ts/package.json b/packages/react-integration/demo-app-ts/package.json index fbd24cadbc8..c9818f7564f 100644 --- a/packages/react-integration/demo-app-ts/package.json +++ b/packages/react-integration/demo-app-ts/package.json @@ -1,7 +1,7 @@ { "name": "demo-app-ts", "private": true, - "version": "5.1.1-prerelease.24", + "version": "5.1.1-prerelease.25", "scripts": { "build:demo-app": "webpack --mode production", "start:demo-app": "webpack-dev-server", @@ -9,7 +9,7 @@ "serve:demo-app": "node scripts/serve" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.1", + "@patternfly/react-core": "^5.2.0-prerelease.2", "react": "^18", "react-dom": "^18", "react-router": "^5.3.3", diff --git a/packages/react-styles/CHANGELOG.md b/packages/react-styles/CHANGELOG.md index 6ccba3334ab..2c6c4ff97d4 100644 --- a/packages/react-styles/CHANGELOG.md +++ b/packages/react-styles/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 5.2.0-prerelease.1 (2023-10-09) + +**Note:** Version bump only for package @patternfly/react-styles + # [5.2.0-prerelease.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-styles@5.1.1...@patternfly/react-styles@5.2.0-prerelease.0) (2023-10-05) **Note:** Version bump only for package @patternfly/react-styles diff --git a/packages/react-styles/package.json b/packages/react-styles/package.json index 766eed856cd..99bc049d3c0 100644 --- a/packages/react-styles/package.json +++ b/packages/react-styles/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-styles", - "version": "5.2.0-prerelease.0", + "version": "5.2.0-prerelease.1", "main": "dist/js/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", diff --git a/packages/react-table/CHANGELOG.md b/packages/react-table/CHANGELOG.md index 7b1cfe0114c..25180a7ac15 100644 --- a/packages/react-table/CHANGELOG.md +++ b/packages/react-table/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 5.2.0-prerelease.2 (2023-10-09) + +**Note:** Version bump only for package @patternfly/react-table + # [5.2.0-prerelease.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.2.0-prerelease.0...@patternfly/react-table@5.2.0-prerelease.1) (2023-10-09) **Note:** Version bump only for package @patternfly/react-table diff --git a/packages/react-table/package.json b/packages/react-table/package.json index d14ef39dcdb..c765e2d42b8 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-table", - "version": "5.2.0-prerelease.1", + "version": "5.2.0-prerelease.2", "description": "This library provides a set of React table components for use with the PatternFly 4", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -39,10 +39,10 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.1", - "@patternfly/react-icons": "^5.2.0-prerelease.0", - "@patternfly/react-styles": "^5.2.0-prerelease.0", - "@patternfly/react-tokens": "^5.2.0-prerelease.0", + "@patternfly/react-core": "^5.2.0-prerelease.2", + "@patternfly/react-icons": "^5.2.0-prerelease.1", + "@patternfly/react-styles": "^5.2.0-prerelease.1", + "@patternfly/react-tokens": "^5.2.0-prerelease.1", "lodash": "^4.17.19", "tslib": "^2.5.0" }, diff --git a/packages/react-tokens/CHANGELOG.md b/packages/react-tokens/CHANGELOG.md index aa989130ca0..336ecdc2d7f 100644 --- a/packages/react-tokens/CHANGELOG.md +++ b/packages/react-tokens/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 5.2.0-prerelease.1 (2023-10-09) + +**Note:** Version bump only for package @patternfly/react-tokens + # [5.2.0-prerelease.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-tokens@5.1.1...@patternfly/react-tokens@5.2.0-prerelease.0) (2023-10-05) **Note:** Version bump only for package @patternfly/react-tokens diff --git a/packages/react-tokens/package.json b/packages/react-tokens/package.json index a62dfae5298..05e0dd9eac2 100644 --- a/packages/react-tokens/package.json +++ b/packages/react-tokens/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-tokens", - "version": "5.2.0-prerelease.0", + "version": "5.2.0-prerelease.1", "description": "This library provides access to the design tokens of PatternFly 4 from JavaScript", "main": "dist/js/index.js", "module": "dist/esm/index.js", From 8c784c2f1a418de5c76572a51e6433ef49326e4c Mon Sep 17 00:00:00 2001 From: Nicole Thoen <nthoen@redhat.com> Date: Mon, 9 Oct 2023 14:44:17 -0400 Subject: [PATCH 055/103] chore: update references to new workspace URL (#9623) * chore: update references to new workspace URL * update react-icons readme * Update react-tokens README.md * Update react-charts README.md --- packages/react-charts/README.md | 2 +- packages/react-icons/README.md | 2 +- packages/react-table/README.md | 2 +- packages/react-tokens/README.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-charts/README.md b/packages/react-charts/README.md index ccb84630357..f4afdae7292 100644 --- a/packages/react-charts/README.md +++ b/packages/react-charts/README.md @@ -89,4 +89,4 @@ yarn test packages/react-charts ``` [patternfly-4]: https://github.com/patternfly/patternfly -[docs]: https://patternfly-react.surge.sh/ +[docs]: https://react-staging.patternfly.org/ diff --git a/packages/react-icons/README.md b/packages/react-icons/README.md index d0fe1b90faf..7cdc14f48e5 100644 --- a/packages/react-icons/README.md +++ b/packages/react-icons/README.md @@ -10,7 +10,7 @@ import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon'; const closeIcon = <TimesIcon />; ``` -For a list of the available icons please refer to the [PatternFly react docs](https://patternfly-react-main.surge.sh/icons/) +For a list of the available icons please refer to the [PatternFly react docs](https://react-staging.patternfly.org/icons) ## Styling icons diff --git a/packages/react-table/README.md b/packages/react-table/README.md index b7a9313636c..de10fe45c43 100644 --- a/packages/react-table/README.md +++ b/packages/react-table/README.md @@ -107,4 +107,4 @@ yarn test packages/react-table ``` [patternfly]: https://github.com/patternfly/patternfly -[docs]: https://patternfly-react-main.surge.sh +[docs]: https://react-staging.patternfly.org/ diff --git a/packages/react-tokens/README.md b/packages/react-tokens/README.md index 4cd1509a1c7..9ea27bd12f4 100644 --- a/packages/react-tokens/README.md +++ b/packages/react-tokens/README.md @@ -39,4 +39,4 @@ global_BackgroundColor_100.value === '#fff'; // true global_BackgroundColor_100.var === 'var(--pf-v5-global--BackgroundColor--100)'; // true ``` -[token-page]: https://patternfly-react.surge.sh/developer-resources/global-css-variables +[token-page]: https://react-staging.patternfly.org/developer-resources/global-css-variables From 33646f8ab39cbf420ab0377003fa041e671dd01e Mon Sep 17 00:00:00 2001 From: Dallas <dallas.nicol@gmail.com> Date: Tue, 10 Oct 2023 08:35:36 -0500 Subject: [PATCH 056/103] docs(Wizard): remove "next" references (#9720) --- packages/react-core/src/components/Wizard/examples/Wizard.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-core/src/components/Wizard/examples/Wizard.md b/packages/react-core/src/components/Wizard/examples/Wizard.md index 3a0cb77b8aa..2717779bc3f 100644 --- a/packages/react-core/src/components/Wizard/examples/Wizard.md +++ b/packages/react-core/src/components/Wizard/examples/Wizard.md @@ -149,7 +149,7 @@ import CogsIcon from '@patternfly/react-icons/dist/esm/icons/cogs-icon'; Used to access any property of [WizardContext](#wizardcontextprops): ```noLive -import { useWizardContext } from '@patternfly/react-core/next'; +import { useWizardContext } from '@patternfly/react-core'; const StepContent = () => { const { activeStep } = useWizardContext(); @@ -162,7 +162,7 @@ const StepContent = () => { Used to set a unique footer for the wizard on any given step. ```noLive -import { useWizardFooter } from '@patternfly/react-core/next'; +import { useWizardFooter } from '@patternfly/react-core'; const StepContent = () => { useWizardFooter(<>Some footer</>); From ba97574ae6a7bad254fcb92569871e3de5803683 Mon Sep 17 00:00:00 2001 From: patternfly-build <patternfly-build@redhat.com> Date: Tue, 10 Oct 2023 13:52:41 +0000 Subject: [PATCH 057/103] chore(release): releasing packages [ci skip] - @patternfly/react-charts@7.2.0-prerelease.3 - @patternfly/react-code-editor@5.2.0-prerelease.3 - @patternfly/react-core@5.2.0-prerelease.3 - @patternfly/react-docs@6.2.0-prerelease.3 - @patternfly/react-icons@5.2.0-prerelease.2 - demo-app-ts@5.1.1-prerelease.26 - @patternfly/react-table@5.2.0-prerelease.3 - @patternfly/react-tokens@5.2.0-prerelease.2 --- packages/react-charts/CHANGELOG.md | 4 ++++ packages/react-charts/package.json | 4 ++-- packages/react-code-editor/CHANGELOG.md | 4 ++++ packages/react-code-editor/package.json | 6 +++--- packages/react-core/CHANGELOG.md | 4 ++++ packages/react-core/package.json | 6 +++--- packages/react-docs/CHANGELOG.md | 4 ++++ packages/react-docs/package.json | 14 +++++++------- packages/react-icons/CHANGELOG.md | 4 ++++ packages/react-icons/package.json | 2 +- .../react-integration/demo-app-ts/CHANGELOG.md | 4 ++++ .../react-integration/demo-app-ts/package.json | 4 ++-- packages/react-table/CHANGELOG.md | 4 ++++ packages/react-table/package.json | 8 ++++---- packages/react-tokens/CHANGELOG.md | 4 ++++ packages/react-tokens/package.json | 2 +- 16 files changed, 55 insertions(+), 23 deletions(-) diff --git a/packages/react-charts/CHANGELOG.md b/packages/react-charts/CHANGELOG.md index 7aeec2f63d8..67d5e30ca5b 100644 --- a/packages/react-charts/CHANGELOG.md +++ b/packages/react-charts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [7.2.0-prerelease.3](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-charts@7.2.0-prerelease.2...@patternfly/react-charts@7.2.0-prerelease.3) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-charts + # 7.2.0-prerelease.2 (2023-10-09) **Note:** Version bump only for package @patternfly/react-charts diff --git a/packages/react-charts/package.json b/packages/react-charts/package.json index 8b8b92f542d..894b42f1971 100644 --- a/packages/react-charts/package.json +++ b/packages/react-charts/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-charts", - "version": "7.2.0-prerelease.2", + "version": "7.2.0-prerelease.3", "description": "This library provides a set of React chart components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -29,7 +29,7 @@ "homepage": "https://github.com/patternfly/patternfly-react#readme", "dependencies": { "@patternfly/react-styles": "^5.2.0-prerelease.1", - "@patternfly/react-tokens": "^5.2.0-prerelease.1", + "@patternfly/react-tokens": "^5.2.0-prerelease.2", "hoist-non-react-statics": "^3.3.0", "lodash": "^4.17.19", "tslib": "^2.5.0", diff --git a/packages/react-code-editor/CHANGELOG.md b/packages/react-code-editor/CHANGELOG.md index 3d8436c8402..6cd27c50e8f 100644 --- a/packages/react-code-editor/CHANGELOG.md +++ b/packages/react-code-editor/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.3](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.2.0-prerelease.2...@patternfly/react-code-editor@5.2.0-prerelease.3) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-code-editor + # 5.2.0-prerelease.2 (2023-10-09) **Note:** Version bump only for package @patternfly/react-code-editor diff --git a/packages/react-code-editor/package.json b/packages/react-code-editor/package.json index e2c01178965..221f4ce6739 100644 --- a/packages/react-code-editor/package.json +++ b/packages/react-code-editor/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-code-editor", - "version": "5.2.0-prerelease.2", + "version": "5.2.0-prerelease.3", "description": "This package provides a PatternFly wrapper for the Monaco code editor\n", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -29,8 +29,8 @@ "clean": "rimraf dist" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.2", - "@patternfly/react-icons": "^5.2.0-prerelease.1", + "@patternfly/react-core": "^5.2.0-prerelease.3", + "@patternfly/react-icons": "^5.2.0-prerelease.2", "@patternfly/react-styles": "^5.2.0-prerelease.1", "react-dropzone": "14.2.3", "tslib": "^2.5.0" diff --git a/packages/react-core/CHANGELOG.md b/packages/react-core/CHANGELOG.md index a9303740d9a..15acc49a088 100644 --- a/packages/react-core/CHANGELOG.md +++ b/packages/react-core/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.3](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.2.0-prerelease.2...@patternfly/react-core@5.2.0-prerelease.3) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-core + # 5.2.0-prerelease.2 (2023-10-09) **Note:** Version bump only for package @patternfly/react-core diff --git a/packages/react-core/package.json b/packages/react-core/package.json index 6b1228a4660..a75c54d7a20 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-core", - "version": "5.2.0-prerelease.2", + "version": "5.2.0-prerelease.3", "description": "This library provides a set of common React components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -45,9 +45,9 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-icons": "^5.2.0-prerelease.1", + "@patternfly/react-icons": "^5.2.0-prerelease.2", "@patternfly/react-styles": "^5.2.0-prerelease.1", - "@patternfly/react-tokens": "^5.2.0-prerelease.1", + "@patternfly/react-tokens": "^5.2.0-prerelease.2", "focus-trap": "7.5.2", "react-dropzone": "^14.2.3", "tslib": "^2.5.0" diff --git a/packages/react-docs/CHANGELOG.md b/packages/react-docs/CHANGELOG.md index 997b3466303..974ff649dc7 100644 --- a/packages/react-docs/CHANGELOG.md +++ b/packages/react-docs/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0-prerelease.3](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.2.0-prerelease.2...@patternfly/react-docs@6.2.0-prerelease.3) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-docs + # 6.2.0-prerelease.2 (2023-10-09) **Note:** Version bump only for package @patternfly/react-docs diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index 61b34062fa2..7cc455322bb 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -1,7 +1,7 @@ { "name": "@patternfly/react-docs", "description": "PatternFly React Docs", - "version": "6.2.0-prerelease.2", + "version": "6.2.0-prerelease.3", "publishConfig": { "access": "public" }, @@ -23,13 +23,13 @@ }, "dependencies": { "@patternfly/patternfly": "5.2.0-prerelease.1", - "@patternfly/react-charts": "^7.2.0-prerelease.2", - "@patternfly/react-code-editor": "^5.2.0-prerelease.2", - "@patternfly/react-core": "^5.2.0-prerelease.2", - "@patternfly/react-icons": "^5.2.0-prerelease.1", + "@patternfly/react-charts": "^7.2.0-prerelease.3", + "@patternfly/react-code-editor": "^5.2.0-prerelease.3", + "@patternfly/react-core": "^5.2.0-prerelease.3", + "@patternfly/react-icons": "^5.2.0-prerelease.2", "@patternfly/react-styles": "^5.2.0-prerelease.1", - "@patternfly/react-table": "^5.2.0-prerelease.2", - "@patternfly/react-tokens": "^5.2.0-prerelease.1" + "@patternfly/react-table": "^5.2.0-prerelease.3", + "@patternfly/react-tokens": "^5.2.0-prerelease.2" }, "devDependencies": { "@patternfly/documentation-framework": "^5.0.15", diff --git a/packages/react-icons/CHANGELOG.md b/packages/react-icons/CHANGELOG.md index 859e056eb0d..15c7936ce91 100644 --- a/packages/react-icons/CHANGELOG.md +++ b/packages/react-icons/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.2](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-icons@5.2.0-prerelease.1...@patternfly/react-icons@5.2.0-prerelease.2) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-icons + # 5.2.0-prerelease.1 (2023-10-09) **Note:** Version bump only for package @patternfly/react-icons diff --git a/packages/react-icons/package.json b/packages/react-icons/package.json index 0adee7f17e8..a61bf783fa4 100644 --- a/packages/react-icons/package.json +++ b/packages/react-icons/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-icons", - "version": "5.2.0-prerelease.1", + "version": "5.2.0-prerelease.2", "description": "PatternFly 4 Icons as React Components", "main": "dist/js/index.js", "module": "dist/esm/index.js", diff --git a/packages/react-integration/demo-app-ts/CHANGELOG.md b/packages/react-integration/demo-app-ts/CHANGELOG.md index a7b872e452a..7b82f01b13b 100644 --- a/packages/react-integration/demo-app-ts/CHANGELOG.md +++ b/packages/react-integration/demo-app-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.26](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.25...demo-app-ts@5.1.1-prerelease.26) (2023-10-10) + +**Note:** Version bump only for package demo-app-ts + ## [5.1.1-prerelease.25](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.24...demo-app-ts@5.1.1-prerelease.25) (2023-10-09) **Note:** Version bump only for package demo-app-ts diff --git a/packages/react-integration/demo-app-ts/package.json b/packages/react-integration/demo-app-ts/package.json index c9818f7564f..df76e043d1d 100644 --- a/packages/react-integration/demo-app-ts/package.json +++ b/packages/react-integration/demo-app-ts/package.json @@ -1,7 +1,7 @@ { "name": "demo-app-ts", "private": true, - "version": "5.1.1-prerelease.25", + "version": "5.1.1-prerelease.26", "scripts": { "build:demo-app": "webpack --mode production", "start:demo-app": "webpack-dev-server", @@ -9,7 +9,7 @@ "serve:demo-app": "node scripts/serve" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.2", + "@patternfly/react-core": "^5.2.0-prerelease.3", "react": "^18", "react-dom": "^18", "react-router": "^5.3.3", diff --git a/packages/react-table/CHANGELOG.md b/packages/react-table/CHANGELOG.md index 25180a7ac15..fae3a1afbb8 100644 --- a/packages/react-table/CHANGELOG.md +++ b/packages/react-table/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.3](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.2.0-prerelease.2...@patternfly/react-table@5.2.0-prerelease.3) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-table + # 5.2.0-prerelease.2 (2023-10-09) **Note:** Version bump only for package @patternfly/react-table diff --git a/packages/react-table/package.json b/packages/react-table/package.json index c765e2d42b8..28cb72c519e 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-table", - "version": "5.2.0-prerelease.2", + "version": "5.2.0-prerelease.3", "description": "This library provides a set of React table components for use with the PatternFly 4", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -39,10 +39,10 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.2", - "@patternfly/react-icons": "^5.2.0-prerelease.1", + "@patternfly/react-core": "^5.2.0-prerelease.3", + "@patternfly/react-icons": "^5.2.0-prerelease.2", "@patternfly/react-styles": "^5.2.0-prerelease.1", - "@patternfly/react-tokens": "^5.2.0-prerelease.1", + "@patternfly/react-tokens": "^5.2.0-prerelease.2", "lodash": "^4.17.19", "tslib": "^2.5.0" }, diff --git a/packages/react-tokens/CHANGELOG.md b/packages/react-tokens/CHANGELOG.md index 336ecdc2d7f..8ceb26b1a5c 100644 --- a/packages/react-tokens/CHANGELOG.md +++ b/packages/react-tokens/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.2](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-tokens@5.2.0-prerelease.1...@patternfly/react-tokens@5.2.0-prerelease.2) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-tokens + # 5.2.0-prerelease.1 (2023-10-09) **Note:** Version bump only for package @patternfly/react-tokens diff --git a/packages/react-tokens/package.json b/packages/react-tokens/package.json index 05e0dd9eac2..65e51ae3f6d 100644 --- a/packages/react-tokens/package.json +++ b/packages/react-tokens/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-tokens", - "version": "5.2.0-prerelease.1", + "version": "5.2.0-prerelease.2", "description": "This library provides access to the design tokens of PatternFly 4 from JavaScript", "main": "dist/js/index.js", "module": "dist/esm/index.js", From e4fd5345845060dac8dfc9cc1cacaeca5cca3444 Mon Sep 17 00:00:00 2001 From: Mark Franceschelli <39063664+mfrances17@users.noreply.github.com> Date: Tue, 10 Oct 2023 11:41:50 -0400 Subject: [PATCH 058/103] feat(Wizard): Add prop for nav aria label (#9730) --- .../react-core/src/components/Wizard/Wizard.tsx | 16 +++++++++++++--- .../src/components/Wizard/WizardNavInternal.tsx | 13 ++++++++++--- .../components/Wizard/__tests__/Wizard.test.tsx | 12 ++++++++++++ 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/packages/react-core/src/components/Wizard/Wizard.tsx b/packages/react-core/src/components/Wizard/Wizard.tsx index 2aabacadaed..e12e513ca83 100644 --- a/packages/react-core/src/components/Wizard/Wizard.tsx +++ b/packages/react-core/src/components/Wizard/Wizard.tsx @@ -30,6 +30,8 @@ export interface WizardProps extends React.HTMLProps<HTMLDivElement> { footer?: WizardFooterType; /** Wizard navigation */ nav?: WizardNavType; + /** Aria-label for the Nav */ + navAriaLabel?: string; /** The initial index the wizard is to start on (1 or higher). Defaults to 1. */ startIndex?: number; /** Additional classes spread to the wizard */ @@ -63,6 +65,7 @@ export const Wizard = ({ className, header, nav, + navAriaLabel, startIndex = 1, isVisitRequired = false, isProgressive = false, @@ -176,7 +179,12 @@ export const Wizard = ({ {...wrapperProps} > {header} - <WizardInternal nav={nav} isVisitRequired={isVisitRequired} isProgressive={isProgressive} /> + <WizardInternal + nav={nav} + navAriaLabel={navAriaLabel} + isVisitRequired={isVisitRequired} + isProgressive={isProgressive} + /> </div> </WizardContextProvider> ); @@ -184,9 +192,10 @@ export const Wizard = ({ const WizardInternal = ({ nav, + navAriaLabel, isVisitRequired, isProgressive -}: Pick<WizardProps, 'nav' | 'isVisitRequired' | 'isProgressive'>) => { +}: Pick<WizardProps, 'nav' | 'navAriaLabel' | 'isVisitRequired' | 'isProgressive'>) => { const { activeStep, steps, footer, goToStepByIndex } = useWizardContext(); const [isNavExpanded, setIsNavExpanded] = React.useState(false); @@ -198,12 +207,13 @@ const WizardInternal = ({ return ( <WizardNavInternal nav={nav} + navAriaLabel={navAriaLabel} isNavExpanded={isNavExpanded} isVisitRequired={isVisitRequired} isProgressive={isProgressive} /> ); - }, [activeStep, isVisitRequired, isProgressive, goToStepByIndex, isNavExpanded, nav, steps]); + }, [activeStep, isVisitRequired, isProgressive, goToStepByIndex, isNavExpanded, nav, navAriaLabel, steps]); return ( <WizardToggle diff --git a/packages/react-core/src/components/Wizard/WizardNavInternal.tsx b/packages/react-core/src/components/Wizard/WizardNavInternal.tsx index e1f0d7c4d0d..5213fc98016 100644 --- a/packages/react-core/src/components/Wizard/WizardNavInternal.tsx +++ b/packages/react-core/src/components/Wizard/WizardNavInternal.tsx @@ -7,21 +7,28 @@ import { WizardNav, WizardNavProps } from './WizardNav'; import { WizardNavItem } from './WizardNavItem'; /** - * Hosts deafult wizard navigation logic by utilizing the wizard's context and WizardNav/WizardNavItem. + * Hosts default wizard navigation logic by utilizing the wizard's context and WizardNav/WizardNavItem. * This component is not exposed to consumers. */ interface WizardNavInternalProps extends Pick<WizardProps, 'isVisitRequired' | 'isProgressive'> { nav: Partial<WizardNavProps>; + navAriaLabel: string; isNavExpanded: boolean; } -export const WizardNavInternal = ({ nav, isVisitRequired, isProgressive, isNavExpanded }: WizardNavInternalProps) => { +export const WizardNavInternal = ({ + nav, + navAriaLabel, + isVisitRequired, + isProgressive, + isNavExpanded +}: WizardNavInternalProps) => { const { activeStep, steps, goToStepByIndex } = useWizardContext(); const wizardNavProps: WizardNavProps = { isExpanded: isNavExpanded, - 'aria-label': nav?.['aria-label'] || 'Wizard steps', + 'aria-label': navAriaLabel || nav?.['aria-label'] || 'Wizard steps', ...(nav?.['aria-labelledby'] && { 'aria-labelledby': nav['aria-labelledby'] }) diff --git a/packages/react-core/src/components/Wizard/__tests__/Wizard.test.tsx b/packages/react-core/src/components/Wizard/__tests__/Wizard.test.tsx index ed52e8ef8f7..81f0dd56446 100644 --- a/packages/react-core/src/components/Wizard/__tests__/Wizard.test.tsx +++ b/packages/react-core/src/components/Wizard/__tests__/Wizard.test.tsx @@ -99,6 +99,18 @@ test('renders default nav with custom props', () => { expect(screen.getByRole('button', { name: 'Test step 2' })).toHaveAttribute('disabled'); }); +test('renders nav aria label', () => { + + render( + <Wizard navAriaLabel="custom nav aria-label"> + <WizardStep id="test-step" name="Test step" /> + </Wizard> + ); + const navElement = screen.getByLabelText('custom nav aria-label'); + + expect(navElement).toHaveAttribute('aria-label'); +}); + test('renders custom nav', () => { const customNav = () => <nav>Some custom nav</nav>; From d3ab21c492302f816f435e8f053adbb1014d283d Mon Sep 17 00:00:00 2001 From: patternfly-build <patternfly-build@redhat.com> Date: Tue, 10 Oct 2023 16:07:09 +0000 Subject: [PATCH 059/103] chore(release): releasing packages [ci skip] - @patternfly/react-code-editor@5.2.0-prerelease.4 - @patternfly/react-core@5.2.0-prerelease.4 - @patternfly/react-docs@6.2.0-prerelease.4 - demo-app-ts@5.1.1-prerelease.27 - @patternfly/react-table@5.2.0-prerelease.4 --- packages/react-code-editor/CHANGELOG.md | 4 ++++ packages/react-code-editor/package.json | 4 ++-- packages/react-core/CHANGELOG.md | 6 ++++++ packages/react-core/package.json | 2 +- packages/react-docs/CHANGELOG.md | 4 ++++ packages/react-docs/package.json | 8 ++++---- packages/react-integration/demo-app-ts/CHANGELOG.md | 4 ++++ packages/react-integration/demo-app-ts/package.json | 4 ++-- packages/react-table/CHANGELOG.md | 4 ++++ packages/react-table/package.json | 4 ++-- 10 files changed, 33 insertions(+), 11 deletions(-) diff --git a/packages/react-code-editor/CHANGELOG.md b/packages/react-code-editor/CHANGELOG.md index 6cd27c50e8f..cfcf3fbac82 100644 --- a/packages/react-code-editor/CHANGELOG.md +++ b/packages/react-code-editor/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.4](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.2.0-prerelease.3...@patternfly/react-code-editor@5.2.0-prerelease.4) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-code-editor + # [5.2.0-prerelease.3](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.2.0-prerelease.2...@patternfly/react-code-editor@5.2.0-prerelease.3) (2023-10-10) **Note:** Version bump only for package @patternfly/react-code-editor diff --git a/packages/react-code-editor/package.json b/packages/react-code-editor/package.json index 221f4ce6739..3d7f80649c7 100644 --- a/packages/react-code-editor/package.json +++ b/packages/react-code-editor/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-code-editor", - "version": "5.2.0-prerelease.3", + "version": "5.2.0-prerelease.4", "description": "This package provides a PatternFly wrapper for the Monaco code editor\n", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -29,7 +29,7 @@ "clean": "rimraf dist" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.3", + "@patternfly/react-core": "^5.2.0-prerelease.4", "@patternfly/react-icons": "^5.2.0-prerelease.2", "@patternfly/react-styles": "^5.2.0-prerelease.1", "react-dropzone": "14.2.3", diff --git a/packages/react-core/CHANGELOG.md b/packages/react-core/CHANGELOG.md index 15acc49a088..7619c461bf4 100644 --- a/packages/react-core/CHANGELOG.md +++ b/packages/react-core/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.4](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.2.0-prerelease.3...@patternfly/react-core@5.2.0-prerelease.4) (2023-10-10) + +### Features + +- **Wizard:** Add prop for nav aria label ([#9730](https://github.com/patternfly/patternfly-react/issues/9730)) ([e4fd534](https://github.com/patternfly/patternfly-react/commit/e4fd5345845060dac8dfc9cc1cacaeca5cca3444)) + # [5.2.0-prerelease.3](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.2.0-prerelease.2...@patternfly/react-core@5.2.0-prerelease.3) (2023-10-10) **Note:** Version bump only for package @patternfly/react-core diff --git a/packages/react-core/package.json b/packages/react-core/package.json index a75c54d7a20..9a3785f81a9 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-core", - "version": "5.2.0-prerelease.3", + "version": "5.2.0-prerelease.4", "description": "This library provides a set of common React components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", diff --git a/packages/react-docs/CHANGELOG.md b/packages/react-docs/CHANGELOG.md index 974ff649dc7..b79a291735b 100644 --- a/packages/react-docs/CHANGELOG.md +++ b/packages/react-docs/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0-prerelease.4](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.2.0-prerelease.3...@patternfly/react-docs@6.2.0-prerelease.4) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-docs + # [6.2.0-prerelease.3](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.2.0-prerelease.2...@patternfly/react-docs@6.2.0-prerelease.3) (2023-10-10) **Note:** Version bump only for package @patternfly/react-docs diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index 7cc455322bb..c42ab244947 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -1,7 +1,7 @@ { "name": "@patternfly/react-docs", "description": "PatternFly React Docs", - "version": "6.2.0-prerelease.3", + "version": "6.2.0-prerelease.4", "publishConfig": { "access": "public" }, @@ -24,11 +24,11 @@ "dependencies": { "@patternfly/patternfly": "5.2.0-prerelease.1", "@patternfly/react-charts": "^7.2.0-prerelease.3", - "@patternfly/react-code-editor": "^5.2.0-prerelease.3", - "@patternfly/react-core": "^5.2.0-prerelease.3", + "@patternfly/react-code-editor": "^5.2.0-prerelease.4", + "@patternfly/react-core": "^5.2.0-prerelease.4", "@patternfly/react-icons": "^5.2.0-prerelease.2", "@patternfly/react-styles": "^5.2.0-prerelease.1", - "@patternfly/react-table": "^5.2.0-prerelease.3", + "@patternfly/react-table": "^5.2.0-prerelease.4", "@patternfly/react-tokens": "^5.2.0-prerelease.2" }, "devDependencies": { diff --git a/packages/react-integration/demo-app-ts/CHANGELOG.md b/packages/react-integration/demo-app-ts/CHANGELOG.md index 7b82f01b13b..db9cd7a3d2d 100644 --- a/packages/react-integration/demo-app-ts/CHANGELOG.md +++ b/packages/react-integration/demo-app-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.27](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.26...demo-app-ts@5.1.1-prerelease.27) (2023-10-10) + +**Note:** Version bump only for package demo-app-ts + ## [5.1.1-prerelease.26](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.25...demo-app-ts@5.1.1-prerelease.26) (2023-10-10) **Note:** Version bump only for package demo-app-ts diff --git a/packages/react-integration/demo-app-ts/package.json b/packages/react-integration/demo-app-ts/package.json index df76e043d1d..4df7cb02a06 100644 --- a/packages/react-integration/demo-app-ts/package.json +++ b/packages/react-integration/demo-app-ts/package.json @@ -1,7 +1,7 @@ { "name": "demo-app-ts", "private": true, - "version": "5.1.1-prerelease.26", + "version": "5.1.1-prerelease.27", "scripts": { "build:demo-app": "webpack --mode production", "start:demo-app": "webpack-dev-server", @@ -9,7 +9,7 @@ "serve:demo-app": "node scripts/serve" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.3", + "@patternfly/react-core": "^5.2.0-prerelease.4", "react": "^18", "react-dom": "^18", "react-router": "^5.3.3", diff --git a/packages/react-table/CHANGELOG.md b/packages/react-table/CHANGELOG.md index fae3a1afbb8..5552e409e49 100644 --- a/packages/react-table/CHANGELOG.md +++ b/packages/react-table/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.4](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.2.0-prerelease.3...@patternfly/react-table@5.2.0-prerelease.4) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-table + # [5.2.0-prerelease.3](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.2.0-prerelease.2...@patternfly/react-table@5.2.0-prerelease.3) (2023-10-10) **Note:** Version bump only for package @patternfly/react-table diff --git a/packages/react-table/package.json b/packages/react-table/package.json index 28cb72c519e..6d017ca9f9b 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-table", - "version": "5.2.0-prerelease.3", + "version": "5.2.0-prerelease.4", "description": "This library provides a set of React table components for use with the PatternFly 4", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -39,7 +39,7 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.3", + "@patternfly/react-core": "^5.2.0-prerelease.4", "@patternfly/react-icons": "^5.2.0-prerelease.2", "@patternfly/react-styles": "^5.2.0-prerelease.1", "@patternfly/react-tokens": "^5.2.0-prerelease.2", From 67a52c25f054c62383ac59cada7d0b5bb25fffbf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 10 Oct 2023 12:58:02 -0400 Subject: [PATCH 060/103] chore(deps): update devdependencies (#9727) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/yarn.lock b/yarn.lock index 90c6ae4a0f1..4bb01b54d76 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3802,10 +3802,10 @@ node-addon-api "^3.2.1" node-gyp-build "^4.3.0" -"@patternfly/ast-helpers@^1.2.17": - version "1.2.17" - resolved "https://registry.yarnpkg.com/@patternfly/ast-helpers/-/ast-helpers-1.2.17.tgz#34f9ccd529c8d8bd54ad23e75d07ae437b875d28" - integrity sha512-39svBpahHBsnJ2Lb9yQ+YW/q032tbbOxAAq93VQ4A3OPEnhPFD/BdX9GgQk/ZvagXNcQgXeH859JDWmtm65lHg== +"@patternfly/ast-helpers@^1.2.18": + version "1.2.18" + resolved "https://registry.yarnpkg.com/@patternfly/ast-helpers/-/ast-helpers-1.2.18.tgz#47dacc488091b286c96fe5baaf21040f05b06ce7" + integrity sha512-fmkFDEW5Ysfpyyhvhb9ZRnf//XGlP0LGDCeKf2ap8fbxa02XKfNrzj0+k4L2yQXpeFloGK8TGtNkK4dCnJ8+Sw== dependencies: acorn "^8.4.1" acorn-class-fields "^1.0.0" @@ -3814,9 +3814,9 @@ astring "^1.7.5" "@patternfly/documentation-framework@^5.0.15": - version "5.2.17" - resolved "https://registry.yarnpkg.com/@patternfly/documentation-framework/-/documentation-framework-5.2.17.tgz#e9ceea42c376b744e13db85cdca8050a5748e25c" - integrity sha512-4LdRmXGuPTLUb0UITi2QRZ6WqMWMzQeGUX0L0kN44LvYzRAZ331EYQOx0j2lMLwwfY08VUszvZ9YSq2QjtbAWg== + version "5.2.18" + resolved "https://registry.yarnpkg.com/@patternfly/documentation-framework/-/documentation-framework-5.2.18.tgz#f15f2c6e28aee48475c52c617a6c1827d9127ef9" + integrity sha512-zT5JWSqnLqwVFJwKku8cQd9xWMKZWcGMI8NdiVkycvvYFU2Jh+Iv34uiN2+8o43vmN4D+ban2dSJQ4W8+jYvsQ== dependencies: "@babel/core" "7.18.2" "@babel/plugin-proposal-class-properties" "7.17.12" @@ -3826,7 +3826,7 @@ "@babel/plugin-transform-react-jsx" "7.17.12" "@babel/preset-env" "7.18.2" "@mdx-js/util" "1.6.16" - "@patternfly/ast-helpers" "^1.2.17" + "@patternfly/ast-helpers" "^1.2.18" "@reach/router" "npm:@gatsbyjs/reach-router@1.3.9" autoprefixer "9.8.6" babel-loader "9.1.2" @@ -4483,9 +4483,9 @@ integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw== "@types/react-dom@^18", "@types/react-dom@^18.0.0": - version "18.2.11" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.11.tgz#4332c315544698a0875dfdb6e320dda59e1b3d58" - integrity sha512-zq6Dy0EiCuF9pWFW6I6k6W2LdpUixLE4P6XjXU1QHLfak3GPACQfLwEuHzY5pOYa4hzj1d0GxX/P141aFjZsyg== + version "18.2.12" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.12.tgz#58479c463d1e0b7f1ee7cd80e09186189f9ec32d" + integrity sha512-QWZuiA/7J/hPIGocXreCRbx7wyoeet9ooxfbSA+zbIWqyQEE7GMtRn4A37BdYyksnN+/NDnWgfxZH9UVGDw1hg== dependencies: "@types/react" "*" @@ -4514,9 +4514,9 @@ "@types/react" "*" "@types/react@*", "@types/react@^18": - version "18.2.26" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.26.tgz#3bc3f33b804cbfd7d0bda6e8a014cb6ee4be74b9" - integrity sha512-ZaMtQo/fasHwMSRTED+u4Cjnkl0uuqEFJ2rKF0DQXji1v24DaNdSe9am4ldiDKFD/MpzbyS8UEOceh1/Oiw89g== + version "18.2.27" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.27.tgz#746e52b06f3ccd5d7a724fd53769b70792601440" + integrity sha512-Wfv7B7FZiR2r3MIqbAlXoY1+tXm4bOqfz4oRr+nyXdBqapDBZ0l/IGcSlAfvxIHEEJjkPU0MYAc/BlFPOcrgLw== dependencies: "@types/prop-types" "*" "@types/scheduler" "*" From 6558c442e2beb99932ebfe3f987f923569fc4edd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 10 Oct 2023 14:03:20 -0400 Subject: [PATCH 061/103] chore(deps): update dependency @patternfly/patternfly to v5.2.0-prerelease.2 (#9733) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/react-core/package.json | 2 +- packages/react-docs/package.json | 2 +- packages/react-icons/package.json | 2 +- packages/react-styles/package.json | 2 +- packages/react-tokens/package.json | 2 +- yarn.lock | 8 ++++---- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/react-core/package.json b/packages/react-core/package.json index 9a3785f81a9..49ee78a908b 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -53,7 +53,7 @@ "tslib": "^2.5.0" }, "devDependencies": { - "@patternfly/patternfly": "5.2.0-prerelease.1", + "@patternfly/patternfly": "5.2.0-prerelease.2", "@rollup/plugin-commonjs": "^25.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@rollup/plugin-replace": "^5.0.2", diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index c42ab244947..3ea879d6a59 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -22,7 +22,7 @@ "test:a11y": "patternfly-a11y --config patternfly-a11y.config" }, "dependencies": { - "@patternfly/patternfly": "5.2.0-prerelease.1", + "@patternfly/patternfly": "5.2.0-prerelease.2", "@patternfly/react-charts": "^7.2.0-prerelease.3", "@patternfly/react-code-editor": "^5.2.0-prerelease.4", "@patternfly/react-core": "^5.2.0-prerelease.4", diff --git a/packages/react-icons/package.json b/packages/react-icons/package.json index a61bf783fa4..18af8030a3d 100644 --- a/packages/react-icons/package.json +++ b/packages/react-icons/package.json @@ -32,7 +32,7 @@ "@fortawesome/free-brands-svg-icons": "^5.14.0", "@fortawesome/free-regular-svg-icons": "^5.14.0", "@fortawesome/free-solid-svg-icons": "^5.14.0", - "@patternfly/patternfly": "5.2.0-prerelease.1", + "@patternfly/patternfly": "5.2.0-prerelease.2", "fs-extra": "^11.1.1", "glob": "^7.1.2", "rimraf": "^2.6.2", diff --git a/packages/react-styles/package.json b/packages/react-styles/package.json index 99bc049d3c0..a4f792e4f5f 100644 --- a/packages/react-styles/package.json +++ b/packages/react-styles/package.json @@ -18,7 +18,7 @@ "clean": "rimraf dist css" }, "devDependencies": { - "@patternfly/patternfly": "5.2.0-prerelease.1", + "@patternfly/patternfly": "5.2.0-prerelease.2", "camel-case": "^3.0.0", "css": "^2.2.3", "fs-extra": "^11.1.1", diff --git a/packages/react-tokens/package.json b/packages/react-tokens/package.json index 65e51ae3f6d..a635526f192 100644 --- a/packages/react-tokens/package.json +++ b/packages/react-tokens/package.json @@ -28,7 +28,7 @@ "clean": "rimraf dist" }, "devDependencies": { - "@patternfly/patternfly": "5.2.0-prerelease.1", + "@patternfly/patternfly": "5.2.0-prerelease.2", "css": "^2.2.3", "fs-extra": "^11.1.1", "glob": "^7.1.2", diff --git a/yarn.lock b/yarn.lock index 4bb01b54d76..f1aabd0f85b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3902,10 +3902,10 @@ puppeteer-cluster "^0.23.0" xmldoc "^1.1.2" -"@patternfly/patternfly@5.2.0-prerelease.1": - version "5.2.0-prerelease.1" - resolved "https://registry.yarnpkg.com/@patternfly/patternfly/-/patternfly-5.2.0-prerelease.1.tgz#d4f1a026de4dda6d34705977f8645f40ceb3bd03" - integrity sha512-B9noycUvymd6K12025W43KQcCZcvTQo8jkHENtxrzOeBMm2YDjKi7Ei/npts2i0NJpdOw6dtpzQYz1tAjZhwdg== +"@patternfly/patternfly@5.2.0-prerelease.2": + version "5.2.0-prerelease.2" + resolved "https://registry.yarnpkg.com/@patternfly/patternfly/-/patternfly-5.2.0-prerelease.2.tgz#4d3f01555ebee74592c4349b02609a9376192fb8" + integrity sha512-RVEvMZnQza3fN2dukkwHk3SBOms0gdZ1ynG0NqO1xQQyqNzM0fluViP0ucN83Fpw6dlfFkUJhXiyrlknWg/aTA== "@pkgjs/parseargs@^0.11.0": version "0.11.0" From 711f39996588b98ecbf70316be2fa96414ce6d47 Mon Sep 17 00:00:00 2001 From: patternfly-build <patternfly-build@redhat.com> Date: Tue, 10 Oct 2023 18:46:32 +0000 Subject: [PATCH 062/103] chore(release): releasing packages [ci skip] - @patternfly/react-charts@7.2.0-prerelease.4 - @patternfly/react-code-editor@5.2.0-prerelease.5 - @patternfly/react-core@5.2.0-prerelease.5 - @patternfly/react-docs@6.2.0-prerelease.5 - @patternfly/react-icons@5.2.0-prerelease.3 - demo-app-ts@5.1.1-prerelease.28 - @patternfly/react-styles@5.2.0-prerelease.2 - @patternfly/react-table@5.2.0-prerelease.5 - @patternfly/react-tokens@5.2.0-prerelease.3 --- packages/react-charts/CHANGELOG.md | 4 ++++ packages/react-charts/package.json | 6 +++--- packages/react-code-editor/CHANGELOG.md | 4 ++++ packages/react-code-editor/package.json | 8 ++++---- packages/react-core/CHANGELOG.md | 4 ++++ packages/react-core/package.json | 8 ++++---- packages/react-docs/CHANGELOG.md | 4 ++++ packages/react-docs/package.json | 16 ++++++++-------- packages/react-icons/CHANGELOG.md | 4 ++++ packages/react-icons/package.json | 2 +- .../react-integration/demo-app-ts/CHANGELOG.md | 4 ++++ .../react-integration/demo-app-ts/package.json | 4 ++-- packages/react-styles/CHANGELOG.md | 4 ++++ packages/react-styles/package.json | 2 +- packages/react-table/CHANGELOG.md | 4 ++++ packages/react-table/package.json | 10 +++++----- packages/react-tokens/CHANGELOG.md | 4 ++++ packages/react-tokens/package.json | 2 +- 18 files changed, 65 insertions(+), 29 deletions(-) diff --git a/packages/react-charts/CHANGELOG.md b/packages/react-charts/CHANGELOG.md index 67d5e30ca5b..78242eff268 100644 --- a/packages/react-charts/CHANGELOG.md +++ b/packages/react-charts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 7.2.0-prerelease.4 (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-charts + # [7.2.0-prerelease.3](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-charts@7.2.0-prerelease.2...@patternfly/react-charts@7.2.0-prerelease.3) (2023-10-10) **Note:** Version bump only for package @patternfly/react-charts diff --git a/packages/react-charts/package.json b/packages/react-charts/package.json index 894b42f1971..474c7172925 100644 --- a/packages/react-charts/package.json +++ b/packages/react-charts/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-charts", - "version": "7.2.0-prerelease.3", + "version": "7.2.0-prerelease.4", "description": "This library provides a set of React chart components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -28,8 +28,8 @@ }, "homepage": "https://github.com/patternfly/patternfly-react#readme", "dependencies": { - "@patternfly/react-styles": "^5.2.0-prerelease.1", - "@patternfly/react-tokens": "^5.2.0-prerelease.2", + "@patternfly/react-styles": "^5.2.0-prerelease.2", + "@patternfly/react-tokens": "^5.2.0-prerelease.3", "hoist-non-react-statics": "^3.3.0", "lodash": "^4.17.19", "tslib": "^2.5.0", diff --git a/packages/react-code-editor/CHANGELOG.md b/packages/react-code-editor/CHANGELOG.md index cfcf3fbac82..1104adf2d05 100644 --- a/packages/react-code-editor/CHANGELOG.md +++ b/packages/react-code-editor/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.5](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.2.0-prerelease.4...@patternfly/react-code-editor@5.2.0-prerelease.5) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-code-editor + # [5.2.0-prerelease.4](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.2.0-prerelease.3...@patternfly/react-code-editor@5.2.0-prerelease.4) (2023-10-10) **Note:** Version bump only for package @patternfly/react-code-editor diff --git a/packages/react-code-editor/package.json b/packages/react-code-editor/package.json index 3d7f80649c7..17d4316642a 100644 --- a/packages/react-code-editor/package.json +++ b/packages/react-code-editor/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-code-editor", - "version": "5.2.0-prerelease.4", + "version": "5.2.0-prerelease.5", "description": "This package provides a PatternFly wrapper for the Monaco code editor\n", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -29,9 +29,9 @@ "clean": "rimraf dist" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.4", - "@patternfly/react-icons": "^5.2.0-prerelease.2", - "@patternfly/react-styles": "^5.2.0-prerelease.1", + "@patternfly/react-core": "^5.2.0-prerelease.5", + "@patternfly/react-icons": "^5.2.0-prerelease.3", + "@patternfly/react-styles": "^5.2.0-prerelease.2", "react-dropzone": "14.2.3", "tslib": "^2.5.0" }, diff --git a/packages/react-core/CHANGELOG.md b/packages/react-core/CHANGELOG.md index 7619c461bf4..cdb504b881c 100644 --- a/packages/react-core/CHANGELOG.md +++ b/packages/react-core/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.5](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.2.0-prerelease.4...@patternfly/react-core@5.2.0-prerelease.5) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-core + # [5.2.0-prerelease.4](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.2.0-prerelease.3...@patternfly/react-core@5.2.0-prerelease.4) (2023-10-10) ### Features diff --git a/packages/react-core/package.json b/packages/react-core/package.json index 49ee78a908b..371c46df052 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-core", - "version": "5.2.0-prerelease.4", + "version": "5.2.0-prerelease.5", "description": "This library provides a set of common React components for use with the PatternFly reference implementation.", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -45,9 +45,9 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-icons": "^5.2.0-prerelease.2", - "@patternfly/react-styles": "^5.2.0-prerelease.1", - "@patternfly/react-tokens": "^5.2.0-prerelease.2", + "@patternfly/react-icons": "^5.2.0-prerelease.3", + "@patternfly/react-styles": "^5.2.0-prerelease.2", + "@patternfly/react-tokens": "^5.2.0-prerelease.3", "focus-trap": "7.5.2", "react-dropzone": "^14.2.3", "tslib": "^2.5.0" diff --git a/packages/react-docs/CHANGELOG.md b/packages/react-docs/CHANGELOG.md index b79a291735b..60b67f99146 100644 --- a/packages/react-docs/CHANGELOG.md +++ b/packages/react-docs/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0-prerelease.5](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.2.0-prerelease.4...@patternfly/react-docs@6.2.0-prerelease.5) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-docs + # [6.2.0-prerelease.4](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.2.0-prerelease.3...@patternfly/react-docs@6.2.0-prerelease.4) (2023-10-10) **Note:** Version bump only for package @patternfly/react-docs diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index 3ea879d6a59..f46a2575214 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -1,7 +1,7 @@ { "name": "@patternfly/react-docs", "description": "PatternFly React Docs", - "version": "6.2.0-prerelease.4", + "version": "6.2.0-prerelease.5", "publishConfig": { "access": "public" }, @@ -23,13 +23,13 @@ }, "dependencies": { "@patternfly/patternfly": "5.2.0-prerelease.2", - "@patternfly/react-charts": "^7.2.0-prerelease.3", - "@patternfly/react-code-editor": "^5.2.0-prerelease.4", - "@patternfly/react-core": "^5.2.0-prerelease.4", - "@patternfly/react-icons": "^5.2.0-prerelease.2", - "@patternfly/react-styles": "^5.2.0-prerelease.1", - "@patternfly/react-table": "^5.2.0-prerelease.4", - "@patternfly/react-tokens": "^5.2.0-prerelease.2" + "@patternfly/react-charts": "^7.2.0-prerelease.4", + "@patternfly/react-code-editor": "^5.2.0-prerelease.5", + "@patternfly/react-core": "^5.2.0-prerelease.5", + "@patternfly/react-icons": "^5.2.0-prerelease.3", + "@patternfly/react-styles": "^5.2.0-prerelease.2", + "@patternfly/react-table": "^5.2.0-prerelease.5", + "@patternfly/react-tokens": "^5.2.0-prerelease.3" }, "devDependencies": { "@patternfly/documentation-framework": "^5.0.15", diff --git a/packages/react-icons/CHANGELOG.md b/packages/react-icons/CHANGELOG.md index 15c7936ce91..b22b91b612a 100644 --- a/packages/react-icons/CHANGELOG.md +++ b/packages/react-icons/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 5.2.0-prerelease.3 (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-icons + # [5.2.0-prerelease.2](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-icons@5.2.0-prerelease.1...@patternfly/react-icons@5.2.0-prerelease.2) (2023-10-10) **Note:** Version bump only for package @patternfly/react-icons diff --git a/packages/react-icons/package.json b/packages/react-icons/package.json index 18af8030a3d..2c0c707be04 100644 --- a/packages/react-icons/package.json +++ b/packages/react-icons/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-icons", - "version": "5.2.0-prerelease.2", + "version": "5.2.0-prerelease.3", "description": "PatternFly 4 Icons as React Components", "main": "dist/js/index.js", "module": "dist/esm/index.js", diff --git a/packages/react-integration/demo-app-ts/CHANGELOG.md b/packages/react-integration/demo-app-ts/CHANGELOG.md index db9cd7a3d2d..5d54cfc4576 100644 --- a/packages/react-integration/demo-app-ts/CHANGELOG.md +++ b/packages/react-integration/demo-app-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.1-prerelease.28](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.27...demo-app-ts@5.1.1-prerelease.28) (2023-10-10) + +**Note:** Version bump only for package demo-app-ts + ## [5.1.1-prerelease.27](https://github.com/patternfly/patternfly-react/compare/demo-app-ts@5.1.1-prerelease.26...demo-app-ts@5.1.1-prerelease.27) (2023-10-10) **Note:** Version bump only for package demo-app-ts diff --git a/packages/react-integration/demo-app-ts/package.json b/packages/react-integration/demo-app-ts/package.json index 4df7cb02a06..8303aa5e877 100644 --- a/packages/react-integration/demo-app-ts/package.json +++ b/packages/react-integration/demo-app-ts/package.json @@ -1,7 +1,7 @@ { "name": "demo-app-ts", "private": true, - "version": "5.1.1-prerelease.27", + "version": "5.1.1-prerelease.28", "scripts": { "build:demo-app": "webpack --mode production", "start:demo-app": "webpack-dev-server", @@ -9,7 +9,7 @@ "serve:demo-app": "node scripts/serve" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.4", + "@patternfly/react-core": "^5.2.0-prerelease.5", "react": "^18", "react-dom": "^18", "react-router": "^5.3.3", diff --git a/packages/react-styles/CHANGELOG.md b/packages/react-styles/CHANGELOG.md index 2c6c4ff97d4..c3acc534378 100644 --- a/packages/react-styles/CHANGELOG.md +++ b/packages/react-styles/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 5.2.0-prerelease.2 (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-styles + # 5.2.0-prerelease.1 (2023-10-09) **Note:** Version bump only for package @patternfly/react-styles diff --git a/packages/react-styles/package.json b/packages/react-styles/package.json index a4f792e4f5f..7b8d1a83a4b 100644 --- a/packages/react-styles/package.json +++ b/packages/react-styles/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-styles", - "version": "5.2.0-prerelease.1", + "version": "5.2.0-prerelease.2", "main": "dist/js/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", diff --git a/packages/react-table/CHANGELOG.md b/packages/react-table/CHANGELOG.md index 5552e409e49..f2bc669a88f 100644 --- a/packages/react-table/CHANGELOG.md +++ b/packages/react-table/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.2.0-prerelease.5](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.2.0-prerelease.4...@patternfly/react-table@5.2.0-prerelease.5) (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-table + # [5.2.0-prerelease.4](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.2.0-prerelease.3...@patternfly/react-table@5.2.0-prerelease.4) (2023-10-10) **Note:** Version bump only for package @patternfly/react-table diff --git a/packages/react-table/package.json b/packages/react-table/package.json index 6d017ca9f9b..24c8967d1a7 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-table", - "version": "5.2.0-prerelease.4", + "version": "5.2.0-prerelease.5", "description": "This library provides a set of React table components for use with the PatternFly 4", "main": "dist/js/index.js", "module": "dist/esm/index.js", @@ -39,10 +39,10 @@ "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json" }, "dependencies": { - "@patternfly/react-core": "^5.2.0-prerelease.4", - "@patternfly/react-icons": "^5.2.0-prerelease.2", - "@patternfly/react-styles": "^5.2.0-prerelease.1", - "@patternfly/react-tokens": "^5.2.0-prerelease.2", + "@patternfly/react-core": "^5.2.0-prerelease.5", + "@patternfly/react-icons": "^5.2.0-prerelease.3", + "@patternfly/react-styles": "^5.2.0-prerelease.2", + "@patternfly/react-tokens": "^5.2.0-prerelease.3", "lodash": "^4.17.19", "tslib": "^2.5.0" }, diff --git a/packages/react-tokens/CHANGELOG.md b/packages/react-tokens/CHANGELOG.md index 8ceb26b1a5c..b894d8d928c 100644 --- a/packages/react-tokens/CHANGELOG.md +++ b/packages/react-tokens/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# 5.2.0-prerelease.3 (2023-10-10) + +**Note:** Version bump only for package @patternfly/react-tokens + # [5.2.0-prerelease.2](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-tokens@5.2.0-prerelease.1...@patternfly/react-tokens@5.2.0-prerelease.2) (2023-10-10) **Note:** Version bump only for package @patternfly/react-tokens diff --git a/packages/react-tokens/package.json b/packages/react-tokens/package.json index a635526f192..a4894a0bd9e 100644 --- a/packages/react-tokens/package.json +++ b/packages/react-tokens/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/react-tokens", - "version": "5.2.0-prerelease.2", + "version": "5.2.0-prerelease.3", "description": "This library provides access to the design tokens of PatternFly 4 from JavaScript", "main": "dist/js/index.js", "module": "dist/esm/index.js", From 479b4a6f1f53342dbdc75316194bc859c87a0133 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 11 Oct 2023 09:53:56 -0400 Subject: [PATCH 063/103] chore(deps): update devdependencies (#9734) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 82 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 43 insertions(+), 39 deletions(-) diff --git a/yarn.lock b/yarn.lock index f1aabd0f85b..34ab312bc3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3802,10 +3802,10 @@ node-addon-api "^3.2.1" node-gyp-build "^4.3.0" -"@patternfly/ast-helpers@^1.2.18": - version "1.2.18" - resolved "https://registry.yarnpkg.com/@patternfly/ast-helpers/-/ast-helpers-1.2.18.tgz#47dacc488091b286c96fe5baaf21040f05b06ce7" - integrity sha512-fmkFDEW5Ysfpyyhvhb9ZRnf//XGlP0LGDCeKf2ap8fbxa02XKfNrzj0+k4L2yQXpeFloGK8TGtNkK4dCnJ8+Sw== +"@patternfly/ast-helpers@^1.2.19": + version "1.2.19" + resolved "https://registry.yarnpkg.com/@patternfly/ast-helpers/-/ast-helpers-1.2.19.tgz#fc2037e4cf92b327dfcec165294e918cdd165fb9" + integrity sha512-v5KsuYNuJJ3hlYSSieoAI7qi8EfHzB6YB1ZMMQViNe75BsVqMaxw0ODM+wSE5uX0IjluRMJ4/rW5QALV2i3GNg== dependencies: acorn "^8.4.1" acorn-class-fields "^1.0.0" @@ -3814,9 +3814,9 @@ astring "^1.7.5" "@patternfly/documentation-framework@^5.0.15": - version "5.2.18" - resolved "https://registry.yarnpkg.com/@patternfly/documentation-framework/-/documentation-framework-5.2.18.tgz#f15f2c6e28aee48475c52c617a6c1827d9127ef9" - integrity sha512-zT5JWSqnLqwVFJwKku8cQd9xWMKZWcGMI8NdiVkycvvYFU2Jh+Iv34uiN2+8o43vmN4D+ban2dSJQ4W8+jYvsQ== + version "5.2.19" + resolved "https://registry.yarnpkg.com/@patternfly/documentation-framework/-/documentation-framework-5.2.19.tgz#ed1318d366387bd29f24b924dea21b7ba58790c1" + integrity sha512-zY/Cgnnsm4yIoyo/0w/NWsYI94H9iWCJ2ljb6TCFBZsycYjs/+zdjDocR8N8YI3OEHFgCESfnw34xTiddk5Fyg== dependencies: "@babel/core" "7.18.2" "@babel/plugin-proposal-class-properties" "7.17.12" @@ -3826,7 +3826,7 @@ "@babel/plugin-transform-react-jsx" "7.17.12" "@babel/preset-env" "7.18.2" "@mdx-js/util" "1.6.16" - "@patternfly/ast-helpers" "^1.2.18" + "@patternfly/ast-helpers" "^1.2.19" "@reach/router" "npm:@gatsbyjs/reach-router@1.3.9" autoprefixer "9.8.6" babel-loader "9.1.2" @@ -4483,9 +4483,9 @@ integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw== "@types/react-dom@^18", "@types/react-dom@^18.0.0": - version "18.2.12" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.12.tgz#58479c463d1e0b7f1ee7cd80e09186189f9ec32d" - integrity sha512-QWZuiA/7J/hPIGocXreCRbx7wyoeet9ooxfbSA+zbIWqyQEE7GMtRn4A37BdYyksnN+/NDnWgfxZH9UVGDw1hg== + version "18.2.13" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.13.tgz#89cd7f9ec8b28c8b6f0392b9591671fb4a9e96b7" + integrity sha512-eJIUv7rPP+EC45uNYp/ThhSpE16k22VJUknt5OLoH9tbXoi8bMhwLf5xRuWMywamNbWzhrSmU7IBJfPup1+3fw== dependencies: "@types/react" "*" @@ -4514,9 +4514,9 @@ "@types/react" "*" "@types/react@*", "@types/react@^18": - version "18.2.27" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.27.tgz#746e52b06f3ccd5d7a724fd53769b70792601440" - integrity sha512-Wfv7B7FZiR2r3MIqbAlXoY1+tXm4bOqfz4oRr+nyXdBqapDBZ0l/IGcSlAfvxIHEEJjkPU0MYAc/BlFPOcrgLw== + version "18.2.28" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.28.tgz#86877465c0fcf751659a36c769ecedfcfacee332" + integrity sha512-ad4aa/RaaJS3hyGz0BGegdnSRXQBkd1CCYDCdNjBPg90UUpLgo+WlJqb9fMYUxtehmzF3PJaTWqRZjko6BRzBg== dependencies: "@types/prop-types" "*" "@types/scheduler" "*" @@ -8953,9 +8953,9 @@ eslint-plugin-node@^11.0.0: semver "^6.1.0" eslint-plugin-prettier@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.0.tgz#6887780ed95f7708340ec79acfdf60c35b9be57a" - integrity sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w== + version "5.0.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.1.tgz#a3b399f04378f79f066379f544e42d6b73f11515" + integrity sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg== dependencies: prettier-linter-helpers "^1.0.0" synckit "^0.8.5" @@ -9239,7 +9239,7 @@ execa@^0.7.0: execa@^5.0.0: version "5.1.1" - resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz" + resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== dependencies: cross-spawn "^7.0.3" @@ -9449,8 +9449,9 @@ fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== fast-diff@^1.1.2: - version "1.2.0" - resolved "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz" + version "1.3.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.3.0.tgz#ece407fa550a64d638536cd727e129c61616e0f0" + integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw== fast-glob@3.2.7: version "3.2.7" @@ -10126,7 +10127,7 @@ get-stream@^5.1.0: get-stream@^6.0.0, get-stream@^6.0.1: version "6.0.1" - resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== get-symbol-description@^1.0.0: @@ -10975,7 +10976,7 @@ human-signals@^1.1.1: human-signals@^2.1.0: version "2.1.0" - resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== human-signals@^4.3.0: @@ -11748,7 +11749,7 @@ is-ssh@^1.4.0: dependencies: protocols "^2.0.1" -is-stream@2.0.0, is-stream@^2.0.0: +is-stream@2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz" @@ -11756,6 +11757,11 @@ is-stream@^1.0.0, is-stream@^1.1.0: version "1.1.0" resolved "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz" +is-stream@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" + integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== + is-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-3.0.0.tgz#e6bfd7aa6bef69f4f472ce9bb681e3e57b4319ac" @@ -14706,7 +14712,7 @@ npm-run-path@^2.0.0: npm-run-path@^4.0.0, npm-run-path@^4.0.1: version "4.0.1" - resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== dependencies: path-key "^3.0.0" @@ -14957,7 +14963,7 @@ onetime@^2.0.0: onetime@^5.1.0, onetime@^5.1.2: version "5.1.2" - resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== dependencies: mimic-fn "^2.1.0" @@ -15809,7 +15815,8 @@ prepend-http@^1.0.0, prepend-http@^1.0.1: prettier-linter-helpers@^1.0.0: version "1.0.0" - resolved "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== dependencies: fast-diff "^1.1.2" @@ -17446,7 +17453,7 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -signal-exit@3.0.7, signal-exit@^3.0.2, signal-exit@^3.0.7: +signal-exit@3.0.7, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== @@ -17455,11 +17462,6 @@ signal-exit@^3.0.0: version "3.0.2" resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz" -signal-exit@^3.0.3: - version "3.0.5" - resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.5.tgz" - integrity sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ== - signal-exit@^4.0.1: version "4.1.0" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" @@ -18089,7 +18091,8 @@ strip-eof@^1.0.0: strip-final-newline@^2.0.0: version "2.0.0" - resolved "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== strip-final-newline@^3.0.0: version "3.0.0" @@ -18725,15 +18728,15 @@ tslib@^2.1.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.0.tgz#b295854684dbda164e181d259a22cd779dcd7bc3" integrity sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA== -tslib@^2.3.0, tslib@^2.4.0, tslib@^2.5.0: +tslib@^2.3.0, tslib@^2.4.0: version "2.5.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== -tslib@^2.6.0: - version "2.6.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.1.tgz#fd8c9a0ff42590b25703c0acb3de3d3f4ede0410" - integrity sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig== +tslib@^2.5.0, tslib@^2.6.0: + version "2.6.2" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== tsscmp@1.0.6: version "1.0.6" @@ -19158,7 +19161,8 @@ unset-value@^1.0.0: untildify@^4.0.0: version "4.0.0" - resolved "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz" + resolved "https://registry.yarnpkg.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b" + integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw== unzip-response@^2.0.1: version "2.0.1" From e041aea2b424031a4e1f5c1761c032c34bdd5e0d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 11 Oct 2023 16:41:48 -0400 Subject: [PATCH 064/103] chore(deps): update devdependencies to v7.23.2 (#9739) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 181 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 93 insertions(+), 88 deletions(-) diff --git a/yarn.lock b/yarn.lock index 34ab312bc3c..491e9b015ec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -102,10 +102,10 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.20.14.tgz#4106fc8b755f3e3ee0a0a7c27dde5de1d2b2baf8" integrity sha512-0YpKHD6ImkWMEINCyDAD0HLLUH/lPCefG8ld9it8DJB2wnApraKuhgYTvTY1z7UFIfBTGy5LwncZ+5HWWGbhFw== -"@babel/compat-data@^7.22.20", "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.22.9": - version "7.22.20" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.20.tgz#8df6e96661209623f1975d66c35ffca66f3306d0" - integrity sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw== +"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.22.9", "@babel/compat-data@^7.23.2": + version "7.23.2" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.23.2.tgz#6a12ced93455827037bfb5ed8492820d60fc32cc" + integrity sha512-0S9TQMmDHlqAZ2ITT95irXKfxN9bncq8ZCoJhun3nHL/lLUxd2NKBJYoNGWH7S0hz6fRQwWlAWn/ILM0C70KZQ== "@babel/core@7.10.5": version "7.10.5" @@ -474,10 +474,10 @@ resolve "^1.14.2" semver "^6.1.2" -"@babel/helper-define-polyfill-provider@^0.4.2": - version "0.4.2" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.2.tgz#82c825cadeeeee7aad237618ebbe8fa1710015d7" - integrity sha512-k0qnnOqHn5dK9pZpfD5XXZ9SojAITdCKRn2Lp6rnDGzIbaP0rHyMPk/4wsSxVBVz4RfN0q6VpXWP2pDGIoQ7hw== +"@babel/helper-define-polyfill-provider@^0.4.3": + version "0.4.3" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.3.tgz#a71c10f7146d809f4a256c373f462d9bba8cf6ba" + integrity sha512-WBrLmuPP47n7PNwsZ57pqam6G/RGo1vw/87b0Blc53tZNGZ4x7YvZ6HgQe2vo1W/FR20OgjeZuGXzudPiXHFug== dependencies: "@babel/helper-compilation-targets" "^7.22.6" "@babel/helper-plugin-utils" "^7.22.5" @@ -791,7 +791,7 @@ "@babel/helper-wrap-function" "^7.18.6" "@babel/types" "^7.18.6" -"@babel/helper-remap-async-to-generator@^7.22.5", "@babel/helper-remap-async-to-generator@^7.22.9": +"@babel/helper-remap-async-to-generator@^7.22.20", "@babel/helper-remap-async-to-generator@^7.22.5": version "7.22.20" resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz#7b68e1cb4fa964d2996fd063723fb48eca8498e0" integrity sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw== @@ -1235,9 +1235,9 @@ "@babel/plugin-syntax-class-static-block" "^7.14.5" "@babel/plugin-proposal-decorators@^7.21.0": - version "7.23.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.23.0.tgz#66d9014173b3267a9ced3e69935138bc64ffb5c8" - integrity sha512-kYsT+f5ARWF6AdFmqoEEp+hpqxEB8vGmRWfw2aj78M2vTwS2uHW91EF58iFm1Z9U8Y/RrLu2XKJn46P9ca1b0w== + version "7.23.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.23.2.tgz#0b345a5754f48309fa50b7cd99075ef0295b12c8" + integrity sha512-eR0gJQc830fJVGz37oKLvt9W9uUIQSAovUl0e9sJ3YeO09dlcoBVYD3CLrjCj4qHdXmfiyTyFt8yeQYSN5fxLg== dependencies: "@babel/helper-create-class-features-plugin" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" @@ -1624,14 +1624,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-async-generator-functions@^7.22.15": - version "7.22.15" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.15.tgz#3b153af4a6b779f340d5b80d3f634f55820aefa3" - integrity sha512-jBm1Es25Y+tVoTi5rfd5t1KLmL8ogLKpXszboWOTTtGFGz2RKnQe2yn7HbZ+kb/B8N0FVSGQo874NSlOU1T4+w== +"@babel/plugin-transform-async-generator-functions@^7.23.2": + version "7.23.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.2.tgz#054afe290d64c6f576f371ccc321772c8ea87ebb" + integrity sha512-BBYVGxbDVHfoeXbOwcagAkOQAm9NxoTdMGfTqghu1GrvadSaw6iW3Je6IcL5PNOw8VwjxqBECXy50/iCQSY/lQ== dependencies: - "@babel/helper-environment-visitor" "^7.22.5" + "@babel/helper-environment-visitor" "^7.22.20" "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-remap-async-to-generator" "^7.22.9" + "@babel/helper-remap-async-to-generator" "^7.22.20" "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/plugin-transform-async-to-generator@^7.17.12": @@ -1673,7 +1673,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-block-scoping@^7.22.15": +"@babel/plugin-transform-block-scoping@^7.23.0": version "7.23.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.0.tgz#8744d02c6c264d82e1a4bc5d2d501fd8aff6f022" integrity sha512-cOsrbmIOXmf+5YbL99/S49Y3j46k/T16b9ml8bm9lP6N9US5iQ2yBK7gpui1pg0V/WMcXdkfKbTb7HXq9u+v4g== @@ -1748,7 +1748,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-destructuring@^7.22.15": +"@babel/plugin-transform-destructuring@^7.23.0": version "7.23.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.0.tgz#6447aa686be48b32eaf65a73e0e2c0bd010a266c" integrity sha512-vaMdgNXFkYrB+8lbgniSYWHsgqK5gjaMNcc84bMIOMRLH0L9AqYq3hwMdvnyqj1OPqea8UtjPEuS/DCenah1wg== @@ -1910,7 +1910,7 @@ "@babel/helper-plugin-utils" "^7.18.6" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-amd@^7.22.5": +"@babel/plugin-transform-modules-amd@^7.23.0": version "7.23.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.0.tgz#05b2bc43373faa6d30ca89214731f76f966f3b88" integrity sha512-xWT5gefv2HGSm4QHtgc1sYPbseOyf+FFDo2JbpE25GWl5BqTGO9IMwTYJRoIdjsF85GE+VegHxSCUt5EvoYTAw== @@ -1928,7 +1928,7 @@ "@babel/helper-simple-access" "^7.18.6" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-commonjs@^7.22.15", "@babel/plugin-transform-modules-commonjs@^7.23.0": +"@babel/plugin-transform-modules-commonjs@^7.23.0": version "7.23.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.0.tgz#b3dba4757133b2762c00f4f94590cf6d52602481" integrity sha512-32Xzss14/UVc7k9g775yMIvkVK8xwKE0DPdP5JTapr3+Z9w4tzeOuLNY6BXDQR6BdnzIlXnCGAzsk/ICHBLVWQ== @@ -1948,7 +1948,7 @@ "@babel/helper-validator-identifier" "^7.18.6" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-systemjs@^7.22.11": +"@babel/plugin-transform-modules-systemjs@^7.23.0": version "7.23.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.0.tgz#77591e126f3ff4132a40595a6cccd00a6b60d160" integrity sha512-qBej6ctXZD2f+DhlOC9yO47yEYgUh5CZNz/aBoH4j/3NOlRfJXJbY7xDQCqQVf9KbrqGzIWER1f23doHGrIHFg== @@ -2055,7 +2055,7 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-transform-optional-chaining@^7.22.15": +"@babel/plugin-transform-optional-chaining@^7.22.15", "@babel/plugin-transform-optional-chaining@^7.23.0": version "7.23.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.0.tgz#73ff5fc1cf98f542f09f29c0631647d8ad0be158" integrity sha512-sBBGXbLJjxTzLBF5rFWaikMnOGOk/BmK6vVByIdEggZ7Vn6CvWXZyRkkLFK6WE0IF8jSliyOkUN6SScFgzCM0g== @@ -2408,11 +2408,11 @@ semver "^6.3.0" "@babel/preset-env@^7.21.5": - version "7.22.20" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.22.20.tgz#de9e9b57e1127ce0a2f580831717f7fb677ceedb" - integrity sha512-11MY04gGC4kSzlPHRfvVkNAZhUxOvm7DCJ37hPDnUENwe06npjIRAfInEMTGSb4LZK5ZgDFkv5hw0lGebHeTyg== + version "7.23.2" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.23.2.tgz#1f22be0ff0e121113260337dbc3e58fafce8d059" + integrity sha512-BW3gsuDD+rvHL2VO2SjAUNTBe5YrjsTiDyqamPDWY723na3/yPQ65X5oQkFVJZ0o50/2d+svm1rkPoJeR1KxVQ== dependencies: - "@babel/compat-data" "^7.22.20" + "@babel/compat-data" "^7.23.2" "@babel/helper-compilation-targets" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" "@babel/helper-validator-option" "^7.22.15" @@ -2438,15 +2438,15 @@ "@babel/plugin-syntax-top-level-await" "^7.14.5" "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" "@babel/plugin-transform-arrow-functions" "^7.22.5" - "@babel/plugin-transform-async-generator-functions" "^7.22.15" + "@babel/plugin-transform-async-generator-functions" "^7.23.2" "@babel/plugin-transform-async-to-generator" "^7.22.5" "@babel/plugin-transform-block-scoped-functions" "^7.22.5" - "@babel/plugin-transform-block-scoping" "^7.22.15" + "@babel/plugin-transform-block-scoping" "^7.23.0" "@babel/plugin-transform-class-properties" "^7.22.5" "@babel/plugin-transform-class-static-block" "^7.22.11" "@babel/plugin-transform-classes" "^7.22.15" "@babel/plugin-transform-computed-properties" "^7.22.5" - "@babel/plugin-transform-destructuring" "^7.22.15" + "@babel/plugin-transform-destructuring" "^7.23.0" "@babel/plugin-transform-dotall-regex" "^7.22.5" "@babel/plugin-transform-duplicate-keys" "^7.22.5" "@babel/plugin-transform-dynamic-import" "^7.22.11" @@ -2458,9 +2458,9 @@ "@babel/plugin-transform-literals" "^7.22.5" "@babel/plugin-transform-logical-assignment-operators" "^7.22.11" "@babel/plugin-transform-member-expression-literals" "^7.22.5" - "@babel/plugin-transform-modules-amd" "^7.22.5" - "@babel/plugin-transform-modules-commonjs" "^7.22.15" - "@babel/plugin-transform-modules-systemjs" "^7.22.11" + "@babel/plugin-transform-modules-amd" "^7.23.0" + "@babel/plugin-transform-modules-commonjs" "^7.23.0" + "@babel/plugin-transform-modules-systemjs" "^7.23.0" "@babel/plugin-transform-modules-umd" "^7.22.5" "@babel/plugin-transform-named-capturing-groups-regex" "^7.22.5" "@babel/plugin-transform-new-target" "^7.22.5" @@ -2469,7 +2469,7 @@ "@babel/plugin-transform-object-rest-spread" "^7.22.15" "@babel/plugin-transform-object-super" "^7.22.5" "@babel/plugin-transform-optional-catch-binding" "^7.22.11" - "@babel/plugin-transform-optional-chaining" "^7.22.15" + "@babel/plugin-transform-optional-chaining" "^7.23.0" "@babel/plugin-transform-parameters" "^7.22.15" "@babel/plugin-transform-private-methods" "^7.22.5" "@babel/plugin-transform-private-property-in-object" "^7.22.11" @@ -2486,10 +2486,10 @@ "@babel/plugin-transform-unicode-regex" "^7.22.5" "@babel/plugin-transform-unicode-sets-regex" "^7.22.5" "@babel/preset-modules" "0.1.6-no-external-plugins" - "@babel/types" "^7.22.19" - babel-plugin-polyfill-corejs2 "^0.4.5" - babel-plugin-polyfill-corejs3 "^0.8.3" - babel-plugin-polyfill-regenerator "^0.5.2" + "@babel/types" "^7.23.0" + babel-plugin-polyfill-corejs2 "^0.4.6" + babel-plugin-polyfill-corejs3 "^0.8.5" + babel-plugin-polyfill-regenerator "^0.5.3" core-js-compat "^3.31.0" semver "^6.3.1" @@ -2526,9 +2526,9 @@ "@babel/plugin-transform-react-pure-annotations" "^7.22.5" "@babel/preset-typescript@^7.21.5": - version "7.23.0" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.23.0.tgz#cc6602d13e7e5b2087c811912b87cf937a9129d9" - integrity sha512-6P6VVa/NM/VlAYj5s2Aq/gdVg8FSENCg3wlZ6Qau9AcPaoF5LbN1nyGlR9DTRIw9PpxI94e+ReydsJHcjwAweg== + version "7.23.2" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.23.2.tgz#c8de488130b7081f7e1482936ad3de5b018beef4" + integrity sha512-u4UJc1XsS1GhIGteM8rnGiIvf9rJpiVgMEeCnwlLA7WJPC+jcXWJAGxYmeqs5hOZD8BbAfnV5ezBOxQbb4OUxA== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/helper-validator-option" "^7.22.15" @@ -2574,7 +2574,14 @@ dependencies: regenerator-runtime "^0.13.2" -"@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": +"@babel/runtime@^7.8.4": + version "7.23.2" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.2.tgz#062b0ac103261d68a966c4c7baf2ae3e62ec3885" + integrity sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg== + dependencies: + regenerator-runtime "^0.14.0" + +"@babel/runtime@^7.9.2": version "7.23.1" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.1.tgz#72741dc4d413338a91dcb044a86f3c0bc402646d" integrity sha512-hC2v6p8ZSI/W0HUzh3V8C5g+NwSKzKPtJwSpTjwl0o297GP9+ZLQSkdvHz46CM3LqyoXxq+5G9komY+eSqSO0g== @@ -5888,13 +5895,13 @@ babel-plugin-polyfill-corejs2@^0.3.0: "@babel/helper-define-polyfill-provider" "^0.3.1" semver "^6.1.1" -babel-plugin-polyfill-corejs2@^0.4.5: - version "0.4.5" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.5.tgz#8097b4cb4af5b64a1d11332b6fb72ef5e64a054c" - integrity sha512-19hwUH5FKl49JEsvyTcoHakh6BE0wgXLLptIyKZ3PijHc/Ci521wygORCUCCred+E/twuqRyAkE02BAWPmsHOg== +babel-plugin-polyfill-corejs2@^0.4.6: + version "0.4.6" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.6.tgz#b2df0251d8e99f229a8e60fc4efa9a68b41c8313" + integrity sha512-jhHiWVZIlnPbEUKSSNb9YoWcQGdlTLq7z1GHL4AjFxaoOUMuuEVJ+Y4pAaQUGOGk93YsVCKPbqbfw3m0SM6H8Q== dependencies: "@babel/compat-data" "^7.22.6" - "@babel/helper-define-polyfill-provider" "^0.4.2" + "@babel/helper-define-polyfill-provider" "^0.4.3" semver "^6.3.1" babel-plugin-polyfill-corejs3@^0.5.0: @@ -5905,12 +5912,12 @@ babel-plugin-polyfill-corejs3@^0.5.0: "@babel/helper-define-polyfill-provider" "^0.3.1" core-js-compat "^3.21.0" -babel-plugin-polyfill-corejs3@^0.8.3: - version "0.8.4" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.4.tgz#1fac2b1dcef6274e72b3c72977ed8325cb330591" - integrity sha512-9l//BZZsPR+5XjyJMPtZSK4jv0BsTO1zDac2GC6ygx9WLGlcsnRd1Co0B2zT5fF5Ic6BZy+9m3HNZ3QcOeDKfg== +babel-plugin-polyfill-corejs3@^0.8.5: + version "0.8.5" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.5.tgz#a75fa1b0c3fc5bd6837f9ec465c0f48031b8cab1" + integrity sha512-Q6CdATeAvbScWPNLB8lzSO7fgUVBkQt6zLgNlfyeCr/EQaEQR+bWiBYYPYAFyE528BMjRhL+1QBMOI4jc/c5TA== dependencies: - "@babel/helper-define-polyfill-provider" "^0.4.2" + "@babel/helper-define-polyfill-provider" "^0.4.3" core-js-compat "^3.32.2" babel-plugin-polyfill-regenerator@^0.3.0: @@ -5920,12 +5927,12 @@ babel-plugin-polyfill-regenerator@^0.3.0: dependencies: "@babel/helper-define-polyfill-provider" "^0.3.1" -babel-plugin-polyfill-regenerator@^0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.2.tgz#80d0f3e1098c080c8b5a65f41e9427af692dc326" - integrity sha512-tAlOptU0Xj34V1Y2PNTL4Y0FOJMDB6bZmoW39FeCQIhigGLkqu3Fj6uiXpxIf6Ij274ENdYx64y6Au+ZKlb1IA== +babel-plugin-polyfill-regenerator@^0.5.3: + version "0.5.3" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.3.tgz#d4c49e4b44614607c13fb769bcd85c72bb26a4a5" + integrity sha512-8sHeDOmXC8csczMrYEOf0UTNa4yE2SxV5JGeT/LP1n0OYVDUUFPxG9vdk2AlDlIit4t+Kf0xCtpgXPBwnn/9pw== dependencies: - "@babel/helper-define-polyfill-provider" "^0.4.2" + "@babel/helper-define-polyfill-provider" "^0.4.3" babel-preset-current-node-syntax@^1.0.0: version "1.0.1" @@ -6307,16 +6314,6 @@ browserslist@^4.20.2, browserslist@^4.21.0: node-releases "^2.0.5" update-browserslist-db "^1.0.4" -browserslist@^4.21.10, browserslist@^4.21.9: - version "4.22.0" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.22.0.tgz#6adc8116589ccea8a99d0df79c5de2436199abdb" - integrity sha512-v+Jcv64L2LbfTC6OnRcaxtqJNJuQAVhZKSJfR/6hn7lhnChUXl4amwVviqN1k411BB+3rRoKMitELRn1CojeRA== - dependencies: - caniuse-lite "^1.0.30001539" - electron-to-chromium "^1.4.530" - node-releases "^2.0.13" - update-browserslist-db "^1.0.13" - browserslist@^4.21.3: version "4.21.5" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.5.tgz#75c5dae60063ee641f977e00edd3cfb2fb7af6a7" @@ -6327,6 +6324,16 @@ browserslist@^4.21.3: node-releases "^2.0.8" update-browserslist-db "^1.0.10" +browserslist@^4.21.9, browserslist@^4.22.1: + version "4.22.1" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.22.1.tgz#ba91958d1a59b87dab6fed8dfbcb3da5e2e9c619" + integrity sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ== + dependencies: + caniuse-lite "^1.0.30001541" + electron-to-chromium "^1.4.535" + node-releases "^2.0.13" + update-browserslist-db "^1.0.13" + bser@2.1.1: version "2.1.1" resolved "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz" @@ -6676,10 +6683,10 @@ caniuse-lite@^1.0.30001449: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001482.tgz#8b3fad73dc35b2674a5c96df2d4f9f1c561435de" integrity sha512-F1ZInsg53cegyjroxLNW9DmrEQ1SuGRTO1QlpA0o2/6OpQ0gFeDRoq1yFmnr8Sakn9qwwt9DmbxHB6w167OSuQ== -caniuse-lite@^1.0.30001539: - version "1.0.30001540" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001540.tgz#a316ca4f2ae673ab02ff0ec533334016d56ff658" - integrity sha512-9JL38jscuTJBTcuETxm8QLsFr/F6v0CYYTEU6r5+qSM98P2Q0Hmu0eG1dTG5GBUmywU3UlcVOUSIJYY47rdFSw== +caniuse-lite@^1.0.30001541: + version "1.0.30001547" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001547.tgz#d4f92efc488aab3c7f92c738d3977c2a3180472b" + integrity sha512-W7CrtIModMAxobGhz8iXmDfuJiiKg1WADMO/9x7/CLNin5cpSbuBjooyoIUVB5eyCc36QuTVlkVa1iB2S5+/eA== capital-case@^1.0.4: version "1.0.4" @@ -7590,11 +7597,11 @@ core-js-compat@^3.21.0, core-js-compat@^3.22.1: semver "7.0.0" core-js-compat@^3.31.0, core-js-compat@^3.32.2: - version "3.32.2" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.32.2.tgz#8047d1a8b3ac4e639f0d4f66d4431aa3b16e004c" - integrity sha512-+GjlguTDINOijtVRUxrQOv3kfu9rl+qPNdX2LTbJ/ZyVTuxK+ksVSAGX1nHstu4hrv1En/uPTtWgq2gI5wt4AQ== + version "3.33.0" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.33.0.tgz#24aa230b228406450b2277b7c8bfebae932df966" + integrity sha512-0w4LcLXsVEuNkIqwjjf9rjCoPhK8uqA4tMRh4Ge26vfLtUutshn+aRJU21I9LCJlh2QQHfisNToLjw1XEJLTWw== dependencies: - browserslist "^4.21.10" + browserslist "^4.22.1" core-js-pure@^3.8.1: version "3.26.1" @@ -8526,10 +8533,10 @@ electron-to-chromium@^1.4.284: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.380.tgz#195dc59d930c6b74efbee6f0e6a267ce4af5ed91" integrity sha512-XKGdI4pWM78eLH2cbXJHiBnWUwFSzZM7XujsB6stDiGu9AeSqziedP6amNLpJzE3i0rLTcfAwdCTs5ecP5yeSg== -electron-to-chromium@^1.4.530: - version "1.4.531" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.531.tgz#22966d894c4680726c17cf2908ee82ff5d26ac25" - integrity sha512-H6gi5E41Rn3/mhKlPaT1aIMg/71hTAqn0gYEllSuw9igNWtvQwu185jiCZoZD29n7Zukgh7GVZ3zGf0XvkhqjQ== +electron-to-chromium@^1.4.535: + version "1.4.550" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.550.tgz#8a56ff5a8597f486d2972a653b0852945fc7a9c3" + integrity sha512-LfcsAzGj18xBYFM5WetwNQdqA03iLDozfCo0SWpu5G9zA5H1G/2GOiHOVnQdOrqaZ8vI8IiSgS3JMUrq930zsw== elliptic@^6.5.3: version "6.5.3" @@ -10639,11 +10646,9 @@ has-values@^1.0.0: kind-of "^4.0.0" has@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" - integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== - dependencies: - function-bind "^1.1.1" + version "1.0.4" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.4.tgz#2eb2860e000011dae4f1406a86fe80e530fb2ec6" + integrity sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ== hash-base@^3.0.0: version "3.1.0" @@ -16834,9 +16839,9 @@ resolve@^1.10.1: supports-preserve-symlinks-flag "^1.0.0" resolve@^1.14.2: - version "1.22.6" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.6.tgz#dd209739eca3aef739c626fea1b4f3c506195362" - integrity sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw== + version "1.22.8" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" + integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== dependencies: is-core-module "^2.13.0" path-parse "^1.0.7" From e054f9e0b211af1280383ddd191091f44651e75f Mon Sep 17 00:00:00 2001 From: adamviktora <84135613+adamviktora@users.noreply.github.com> Date: Thu, 12 Oct 2023 18:31:21 +0200 Subject: [PATCH 065/103] refactor(misc): CSS harcoded variables and classes replaced with react-tokens and react-styles (#9266) * refactor(misc): replace hardcoded css variables with tokens * refactor(misc): replace hardcoded CSS classes with react-styles * test(misc): update snapshots to use pf-v5-u-screen-reader * fix(demos): proper imports in .md files * refactor(token names): rename tokens to pass build:docs framework and linter * refactor(token names): rename tokens to pass yarn docs:build, commit with --no-verify * refactor: use whole imports to not blow up CJS bundle sizes * fix: eslint-disable camel case this has to be done, because token names must preserve its original name, so the docs framework don't throw an error * feat(misc): add imports to .md demos to pass docs build * fix: use pf-v5-screen-reader class * fix: update test snapshots * formatted with prettier * refactor(Alert): rename styles to buttonStyles * docs(Drawer): update Drawer example to use Title * docs(Wizard): remove custom color in custom nav item example * lint error fix * refactor(misc): rename styles and other imports --- .../src/components/CodeEditor/CodeEditor.tsx | 7 +- .../AboutModal/AboutModalBoxContent.tsx | 2 +- .../AboutModal/examples/AboutModal.md | 1 + ...AboutModalComplexUserPositionedContent.tsx | 5 +- .../Accordion/__tests__/Accordion.test.tsx | 5 +- .../__tests__/AccordionContent.test.tsx | 5 +- .../AccordionExpandedContentBody.test.tsx | 5 +- .../__tests__/AccordionToggle.test.tsx | 13 +- .../components/ActionList/ActionListItem.tsx | 3 +- .../ActionList/__tests__/ActionList.test.tsx | 13 +- .../__tests__/ActionListGroup.test.tsx | 5 +- .../__tests__/ActionListItem.test.tsx | 5 +- .../components/Alert/__tests__/Alert.test.tsx | 28 +-- .../Alert/__tests__/AlertIcon.test.tsx | 5 +- .../AlertToggleExpandButton.test.tsx | 5 +- .../src/components/Alert/examples/Alert.md | 1 + .../Alert/examples/AlertDynamicLiveRegion.tsx | 3 +- .../Alert/examples/AlertGroupAsync.tsx | 3 +- .../examples/AlertGroupMultipleDynamic.tsx | 3 +- .../examples/AlertGroupSingularDynamic.tsx | 3 +- .../AlertGroupSingularDynamicOverflow.tsx | 3 +- .../Alert/examples/AlertGroupToast.tsx | 3 +- .../AlertGroupToastOverflowCapture.tsx | 3 +- .../Avatar/__tests__/Avatar.test.tsx | 3 +- .../BackToTop/__tests__/BackToTop.test.tsx | 3 +- .../Backdrop/__tests__/Backdrop.test.tsx | 9 +- .../BackgroundImage/BackgroundImage.tsx | 3 +- .../__tests__/BackgroundImage.test.tsx | 7 +- .../components/Badge/__tests__/Badge.test.tsx | 9 +- .../Banner/__tests__/Banner.test.tsx | 7 +- .../react-core/src/components/Brand/Brand.tsx | 7 +- .../Checkbox/__tests__/Checkbox.test.tsx | 3 +- .../react-core/src/components/Chip/Chip.tsx | 3 +- .../components/CodeBlock/CodeBlockAction.tsx | 3 +- .../DataList/__tests__/DataList.test.tsx | 11 +- .../components/DataList/examples/DataList.md | 4 + .../examples/DataListWidthModifiers.tsx | 11 +- .../src/components/DatePicker/DatePicker.tsx | 3 +- .../DescriptionList/DescriptionList.tsx | 9 +- .../src/components/DragDrop/Draggable.tsx | 3 +- .../components/Drawer/DrawerPanelContent.tsx | 13 +- .../src/components/Drawer/examples/Drawer.md | 2 + .../DrawerStackedContentBodyElements.tsx | 7 +- .../Drawer/examples/DrawerStatic.tsx | 3 +- .../DualListSelectorControl.tsx | 3 +- .../DualListSelector/DualListSelectorPane.tsx | 7 +- .../EmptyState/EmptyStateHeader.tsx | 4 +- .../components/EmptyState/EmptyStateIcon.tsx | 4 +- .../EmptyState/__tests__/EmptyState.test.tsx | 13 +- .../EmptyState/examples/EmptyState.md | 1 + .../examples/EmptyStateCustomIconColor.tsx | 4 +- .../examples/FileUploadCustomPreview.tsx | 3 +- .../examples/FileUploadCustomUpload.tsx | 3 +- .../react-core/src/components/Form/Form.tsx | 3 +- .../src/components/Form/FormAlert.tsx | 3 +- .../src/components/Form/examples/Form.md | 1 + .../components/Form/examples/FormBasic.tsx | 3 +- .../Form/examples/FormGroupLabelInfo.tsx | 3 +- .../Form/examples/FormLimitWidth.tsx | 3 +- .../components/Hint/__tests__/Hint.test.tsx | 9 +- .../Hint/__tests__/HintBody.test.tsx | 5 +- .../Hint/__tests__/HintFooter.test.tsx | 5 +- .../Hint/__tests__/HintTitle.test.tsx | 5 +- .../components/Icon/__tests__/Icon.test.tsx | 23 +-- .../src/components/JumpLinks/JumpLinks.tsx | 2 +- .../react-core/src/components/Label/Label.tsx | 3 +- .../react-core/src/components/Menu/Menu.tsx | 12 +- .../src/components/Menu/MenuContent.tsx | 6 +- .../src/components/Menu/MenuSearchInput.tsx | 3 +- .../src/components/Menu/__mocks__/Menu.tsx | 3 +- .../MenuToggle/examples/MenuToggle.css | 5 +- .../src/components/Modal/ModalBoxHeader.tsx | 2 +- .../src/components/Modal/examples/Modal.md | 2 + .../examples/ModalCustomHeaderFooter.tsx | 5 +- .../Modal/examples/ModalWithForm.tsx | 7 +- .../MultipleFileUploadStatus.tsx | 2 +- .../NotificationDrawerGroup.tsx | 2 +- .../NotificationDrawerList.tsx | 3 +- .../NotificationDrawerListItem.tsx | 4 +- .../components/NumberInput/NumberInput.tsx | 3 +- .../Page/__tests__/PageSidebarBody.test.tsx | 29 +-- .../src/components/Page/examples/Page.md | 1 + .../Page/examples/PageCenteredSection.tsx | 5 +- .../src/components/Panel/PanelMain.tsx | 3 +- .../components/Panel/__tests__/Panel.test.tsx | 21 ++- .../Panel/__tests__/PanelFooter.test.tsx | 9 +- .../Panel/__tests__/PanelHeader.test.tsx | 9 +- .../Panel/__tests__/PanelMain.test.tsx | 12 +- .../Panel/__tests__/PanelMainBody.test.tsx | 9 +- .../__tests__/ProgressHelperText.test.tsx | 5 +- .../__tests__/ProgressStep.test.tsx | 19 +- .../__tests__/ProgressStepper.test.tsx | 9 +- .../components/SearchInput/SearchInput.tsx | 3 +- .../__tests__/SearchInput.test.tsx | 8 +- .../Sidebar/__tests__/Sidebar.test.tsx | 13 +- .../Sidebar/__tests__/SidebarContent.test.tsx | 9 +- .../Sidebar/__tests__/SidebarPanel.test.tsx | 9 +- .../src/components/Skeleton/Skeleton.tsx | 6 +- .../components/Skeleton/examples/Skeleton.md | 8 + .../Skeleton/examples/SkeletonText.tsx | 22 ++- .../src/components/Slider/Slider.tsx | 14 +- .../src/components/Spinner/Spinner.tsx | 3 +- .../src/components/Tabs/OverflowTab.tsx | 2 +- .../Tabs/__tests__/OverflowTab.test.tsx | 17 +- .../Text/__tests__/TextContent.test.tsx | 5 +- .../TextArea/__tests__/TextArea.test.tsx | 3 +- .../__tests__/TextInputGroup.test.tsx | 5 +- .../__tests__/TextInputGroupMain.test.tsx | 19 +- .../TextInputGroupUtilities.test.tsx | 6 +- .../src/components/TimePicker/TimePicker.tsx | 4 +- .../src/components/Timestamp/Timestamp.tsx | 2 +- .../Timestamp/__tests__/Timestamp.test.tsx | 9 +- .../components/Title/__tests__/Title.test.tsx | 9 +- .../src/components/Toolbar/ToolbarItem.tsx | 3 +- .../src/components/TreeView/TreeViewList.tsx | 3 +- .../src/components/TreeView/TreeViewRoot.tsx | 18 +- .../Truncate/__tests__/Truncate.test.tsx | 19 +- .../components/Truncate/examples/Truncate.md | 13 +- .../Truncate/examples/TruncateExamples.css | 2 +- .../src/components/Wizard/WizardNavItem.tsx | 6 +- .../src/components/Wizard/examples/Wizard.md | 2 + .../examples/WizardStepDrawerContent.tsx | 3 +- .../examples/WizardValidateOnButtonPress.tsx | 3 +- .../examples/WizardWithCustomNavItem.tsx | 2 +- .../examples/WizardWithSubmitProgress.tsx | 3 +- packages/react-core/src/demos/Banner.md | 32 ++-- packages/react-core/src/demos/CardDemos.md | 175 +++++++++++------- .../src/demos/CustomMenus/CustomMenus.md | 1 + .../examples/ComposableDateSelect.tsx | 9 +- .../CustomMenus/examples/DateSelectDemo.tsx | 9 +- packages/react-core/src/demos/JumpLinks.md | 5 +- .../react-core/src/demos/PasswordStrength.md | 1 + packages/react-core/src/demos/ProgressDemo.md | 4 +- packages/react-core/src/demos/Tabs.md | 8 +- .../examples/JumpLinks/JumpLinksWithDrawer.js | 5 +- .../src/demos/examples/Tabs/NestedTabs.tsx | 3 +- .../src/demos/examples/Tabs/TabsAndTable.tsx | 3 +- .../ApplicationLauncherText.tsx | 3 +- .../ApplicationLauncherRouterLink.tsx | 4 +- .../components/Select/SelectMenu.tsx | 2 +- .../Wizard/examples/WizardFinished.tsx | 3 +- .../examples/WizardValidateOnButtonPress.tsx | 3 +- .../src/layouts/Flex/__tests__/Flex.test.tsx | 3 +- .../src/layouts/Gallery/Gallery.tsx | 12 +- .../demos/AlertGroupDemo/AlertGroupDemo.tsx | 16 +- .../demos/ButtonDemo/ButtonDemo.tsx | 23 +-- .../ChipGroupWithOverflowChipEventHandler.tsx | 7 +- .../components/demos/FormDemo/FormDemo.tsx | 6 +- .../components/demos/MenuDemo/MenuDemo.tsx | 3 +- .../components/demos/ModalDemo/ModalDemo.tsx | 5 +- .../demos/TableDemo/TableComposableDemo.tsx | 4 +- .../demos/TableDemo/TableRowWrapperDemo.tsx | 4 +- .../demos/TableDemo/TableSelectableDemo.tsx | 3 +- .../src/components/Table/Table.tsx | 4 +- .../react-table/src/components/Table/Td.tsx | 15 +- .../react-table/src/components/Table/Th.tsx | 9 +- .../src/components/Table/examples/Table.md | 3 + .../examples/TableCompoundExpandable.tsx | 3 +- .../components/Table/examples/TableMisc.tsx | 4 +- .../Table/examples/TableNestedHeaders.tsx | 7 +- .../examples/TableNestedStickyHeader.tsx | 7 +- .../Table/utils/decorators/treeRow.tsx | 6 +- .../Table/utils/transformers.test.tsx | 21 ++- .../LegacyTableCompoundExpandable.tsx | 7 +- .../Table/examples/LegacyTableMisc.tsx | 4 +- .../Table/examples/LegacyTableSelectable.tsx | 3 +- .../components/Table/examples/Table.md | 2 + .../demos/table-demos/CompoundExpansion.jsx | 3 +- 168 files changed, 757 insertions(+), 502 deletions(-) diff --git a/packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx b/packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx index 9751407ac26..2dcbacc83b2 100644 --- a/packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx +++ b/packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/CodeEditor/code-editor'; +import fileUploadStyles from '@patternfly/react-styles/css/components/FileUpload/file-upload'; import { Button, ButtonVariant, @@ -609,7 +610,7 @@ class CodeEditor extends React.Component<CodeEditorProps, CodeEditorState> { } {<div className={css(styles.codeEditorHeaderMain)}>{headerMainContent}</div>} {!!shortcutsPopoverProps.bodyContent && ( - <div className="pf-v5-c-code-editor__keyboard-shortcuts"> + <div className={`${styles.codeEditor}__keyboard-shortcuts`}> <Popover {...shortcutsPopoverProps}> <Button variant={ButtonVariant.link} icon={<HelpIcon />}> {shortcutsPopoverButtonText} @@ -651,7 +652,9 @@ class CodeEditor extends React.Component<CodeEditorProps, CodeEditorState> { {...getRootProps({ onClick: (event) => event.stopPropagation() // Prevents clicking TextArea from opening file dialog })} - className={`pf-v5-c-file-upload ${isDragActive && 'pf-m-drag-hover'} ${isLoading && 'pf-m-loading'}`} + className={`${fileUploadStyles.fileUpload} ${isDragActive && fileUploadStyles.modifiers.dragHover} ${ + isLoading && fileUploadStyles.modifiers.loading + }`} > {editorHeader} <div className={css(styles.codeEditorMain)}> diff --git a/packages/react-core/src/components/AboutModal/AboutModalBoxContent.tsx b/packages/react-core/src/components/AboutModal/AboutModalBoxContent.tsx index 0c37db076ca..e5b029e006b 100644 --- a/packages/react-core/src/components/AboutModal/AboutModalBoxContent.tsx +++ b/packages/react-core/src/components/AboutModal/AboutModalBoxContent.tsx @@ -19,7 +19,7 @@ export const AboutModalBoxContent: React.FunctionComponent<AboutModalBoxContentP ...props }: AboutModalBoxContentProps) => ( <div className={css(styles.aboutModalBoxContent)} {...props}> - <div className={css('pf-v5-c-about-modal-box__body')}> + <div className={css(`${styles.aboutModalBox}__body`)}> {hasNoContentContainer ? children : <div className={css(contentStyles.content)}>{children}</div>} </div> <p className={css(styles.aboutModalBoxStrapline)}>{trademark}</p> diff --git a/packages/react-core/src/components/AboutModal/examples/AboutModal.md b/packages/react-core/src/components/AboutModal/examples/AboutModal.md index a588a2d0b7c..e307e39a575 100644 --- a/packages/react-core/src/components/AboutModal/examples/AboutModal.md +++ b/packages/react-core/src/components/AboutModal/examples/AboutModal.md @@ -6,6 +6,7 @@ propComponents: ['AboutModal'] --- import brandImg from '../../assets/brandImg.svg'; import bgImg from '../../assets/patternfly-orb.svg'; +import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing'; ## Examples ### Basic diff --git a/packages/react-core/src/components/AboutModal/examples/AboutModalComplexUserPositionedContent.tsx b/packages/react-core/src/components/AboutModal/examples/AboutModalComplexUserPositionedContent.tsx index ffee7957430..44ac5cc7842 100644 --- a/packages/react-core/src/components/AboutModal/examples/AboutModalComplexUserPositionedContent.tsx +++ b/packages/react-core/src/components/AboutModal/examples/AboutModalComplexUserPositionedContent.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { AboutModal, Alert, Button, TextContent, TextList, TextListItem } from '@patternfly/react-core'; import brandImg from '../../assets/brandImg.svg'; +import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing'; export const AboutModalComplexUserPositionedContent: React.FunctionComponent = () => { const [isModalOpen, setIsModalOpen] = React.useState(false); @@ -24,12 +25,12 @@ export const AboutModalComplexUserPositionedContent: React.FunctionComponent = ( hasNoContentContainer={true} productName="Product Name" > - <TextContent id="test1" className="pf-v5-u-py-xl"> + <TextContent id="test1" className={spacing.pyXl}> <h4>About</h4> <p>Content here</p> </TextContent> <Alert variant="info" title="Updates available" /> - <TextContent id="test2" className="pf-v5-u-py-xl"> + <TextContent id="test2" className={spacing.pyXl}> <TextList component="dl"> <TextListItem component="dt">CFME Version</TextListItem> <TextListItem component="dd">5.5.3.4.20102789036450</TextListItem> diff --git a/packages/react-core/src/components/Accordion/__tests__/Accordion.test.tsx b/packages/react-core/src/components/Accordion/__tests__/Accordion.test.tsx index 85903f5bbd2..c5abf0c8c68 100644 --- a/packages/react-core/src/components/Accordion/__tests__/Accordion.test.tsx +++ b/packages/react-core/src/components/Accordion/__tests__/Accordion.test.tsx @@ -4,6 +4,7 @@ import { render, screen } from '@testing-library/react'; import { Accordion } from '../Accordion'; import { AccordionContext } from '../AccordionContext'; +import styles from '@patternfly/react-styles/css/components/Accordion/accordion'; test('Renders without children', () => { render(<Accordion data-testid="accordion" />); @@ -34,10 +35,10 @@ test('Renders with inherited element props spread to the component', () => { expect(screen.getByText('Test')).toHaveAccessibleName('Label'); }); -test('Renders with class name pf-v5-c-accordion', () => { +test(`Renders with class name ${styles.accordion}`, () => { render(<Accordion>Test</Accordion>); - expect(screen.getByText('Test')).toHaveClass('pf-v5-c-accordion'); + expect(screen.getByText('Test')).toHaveClass(styles.accordion); }); test('Renders with custom class names provided via prop', () => { diff --git a/packages/react-core/src/components/Accordion/__tests__/AccordionContent.test.tsx b/packages/react-core/src/components/Accordion/__tests__/AccordionContent.test.tsx index 74a2b1a33a9..0c28e90762b 100644 --- a/packages/react-core/src/components/Accordion/__tests__/AccordionContent.test.tsx +++ b/packages/react-core/src/components/Accordion/__tests__/AccordionContent.test.tsx @@ -4,6 +4,7 @@ import { render, screen } from '@testing-library/react'; import { AccordionContent } from '../AccordionContent'; import { AccordionContext } from '../AccordionContext'; +import styles from '@patternfly/react-styles/css/components/Accordion/accordion'; jest.mock('../AccordionExpandableContentBody', () => ({ AccordionExpandableContentBody: ({ children }) => <div aria-label="Expanded content body mock">{children}</div> @@ -85,14 +86,14 @@ test('Renders with inherited element props spread to the component', () => { expect(screen.getByRole('heading')).toHaveAccessibleName('Label'); }); -test('Renders with class name pf-v5-c-accordion__expandable-content', () => { +test(`Renders with class name ${styles.accordionExpandableContent}`, () => { render( <AccordionContext.Provider value={{ ContentContainer: 'h3' }}> <AccordionContent>Test</AccordionContent> </AccordionContext.Provider> ); - expect(screen.getByRole('heading')).toHaveClass('pf-v5-c-accordion__expandable-content'); + expect(screen.getByRole('heading')).toHaveClass(styles.accordionExpandableContent); }); test('Renders with custom class names provided via prop', () => { diff --git a/packages/react-core/src/components/Accordion/__tests__/AccordionExpandedContentBody.test.tsx b/packages/react-core/src/components/Accordion/__tests__/AccordionExpandedContentBody.test.tsx index de1481577d7..1257a00d99c 100644 --- a/packages/react-core/src/components/Accordion/__tests__/AccordionExpandedContentBody.test.tsx +++ b/packages/react-core/src/components/Accordion/__tests__/AccordionExpandedContentBody.test.tsx @@ -3,6 +3,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import { AccordionExpandableContentBody } from '../AccordionExpandableContentBody'; +import styles from '@patternfly/react-styles/css/components/Accordion/accordion'; test('Renders without children', () => { const { asFragment } = render(<AccordionExpandableContentBody />); @@ -19,10 +20,10 @@ test('Renders children', () => { expect(screen.getByText('Test')).toBeVisible(); }); -test('Renders with class name pf-v5-c-accordion__expandable-content-body', () => { +test(`Renders with class name ${styles.accordionExpandableContentBody}`, () => { render(<AccordionExpandableContentBody>Test</AccordionExpandableContentBody>); - expect(screen.getByText('Test')).toHaveClass('pf-v5-c-accordion__expandable-content-body'); + expect(screen.getByText('Test')).toHaveClass(styles.accordionExpandableContentBody); }); test('Matches the snapshot', () => { diff --git a/packages/react-core/src/components/Accordion/__tests__/AccordionToggle.test.tsx b/packages/react-core/src/components/Accordion/__tests__/AccordionToggle.test.tsx index 2beb7c10bce..dd39f0359ea 100644 --- a/packages/react-core/src/components/Accordion/__tests__/AccordionToggle.test.tsx +++ b/packages/react-core/src/components/Accordion/__tests__/AccordionToggle.test.tsx @@ -4,6 +4,7 @@ import { render, screen } from '@testing-library/react'; import { AccordionToggle } from '../AccordionToggle'; import { AccordionContext } from '../AccordionContext'; +import styles from '@patternfly/react-styles/css/components/Accordion/accordion'; jest.mock('@patternfly/react-icons/dist/esm/icons/angle-right-icon', () => () => 'Icon mock'); @@ -42,7 +43,7 @@ test('Renders with inherited element props spread to the component', () => { expect(screen.getByRole('button')).toHaveAccessibleName('Label'); }); -test('Renders the accordion toggle with class pf-v5-c-accordion__toggle', () => { +test(`Renders the accordion toggle with class ${styles.accordionToggle}`, () => { render( <AccordionContext.Provider value={{ ToggleContainer: 'h3' }}> <AccordionToggle id="accordion-toggle" aria-label="Accordion test"> @@ -51,7 +52,7 @@ test('Renders the accordion toggle with class pf-v5-c-accordion__toggle', () => </AccordionContext.Provider> ); - expect(screen.getByRole('button')).toHaveClass('pf-v5-c-accordion__toggle'); + expect(screen.getByRole('button')).toHaveClass(styles.accordionToggle); }); test('Renders the accordion toggle with custom class names provided via prop', () => { @@ -66,7 +67,7 @@ test('Renders the accordion toggle with custom class names provided via prop', ( expect(screen.getByRole('button')).toHaveClass('test-class'); }); -test('Renders with children inside class pf-v5-c-accordion__toggle-text', () => { +test(`Renders with children inside class ${styles.accordionToggleText}`, () => { render( <AccordionContext.Provider value={{ ToggleContainer: 'h3' }}> <AccordionToggle id="accordion-toggle" aria-label="Accordion test"> @@ -75,10 +76,10 @@ test('Renders with children inside class pf-v5-c-accordion__toggle-text', () => </AccordionContext.Provider> ); - expect(screen.getByText('Test')).toHaveClass('pf-v5-c-accordion__toggle-text'); + expect(screen.getByText('Test')).toHaveClass(styles.accordionToggleText); }); -test('Renders with the toggle icon inside class pf-v5-c-accordion__toggle-icon', () => { +test(`Renders with the toggle icon inside class ${styles.accordionToggleIcon}`, () => { render( <AccordionContext.Provider value={{ ToggleContainer: 'h3' }}> <AccordionToggle id="accordion-toggle" aria-label="Accordion test"> @@ -87,7 +88,7 @@ test('Renders with the toggle icon inside class pf-v5-c-accordion__toggle-icon', </AccordionContext.Provider> ); - expect(screen.getByText('Icon mock')).toHaveClass('pf-v5-c-accordion__toggle-icon'); + expect(screen.getByText('Icon mock')).toHaveClass(styles.accordionToggleIcon); }); test('Renders with the id prop passed to the toggle', () => { diff --git a/packages/react-core/src/components/ActionList/ActionListItem.tsx b/packages/react-core/src/components/ActionList/ActionListItem.tsx index da24cc5d6cb..3e6468aa29c 100644 --- a/packages/react-core/src/components/ActionList/ActionListItem.tsx +++ b/packages/react-core/src/components/ActionList/ActionListItem.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import { css } from '@patternfly/react-styles'; +import styles from '@patternfly/react-styles/css/components/ActionList/action-list'; export interface ActionListItemProps extends React.HTMLProps<HTMLDivElement> { /** Children of the action list item */ @@ -13,7 +14,7 @@ export const ActionListItem: React.FunctionComponent<ActionListItemProps> = ({ className = '', ...props }: ActionListItemProps) => ( - <div className={css('pf-v5-c-action-list__item', className)} {...props}> + <div className={css(`${styles.actionList}__item`, className)} {...props}> {children} </div> ); diff --git a/packages/react-core/src/components/ActionList/__tests__/ActionList.test.tsx b/packages/react-core/src/components/ActionList/__tests__/ActionList.test.tsx index 553a7c88c08..6512ebdb138 100644 --- a/packages/react-core/src/components/ActionList/__tests__/ActionList.test.tsx +++ b/packages/react-core/src/components/ActionList/__tests__/ActionList.test.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import { ActionList } from '../ActionList'; +import styles from '@patternfly/react-styles/css/components/ActionList/action-list'; test('Renders without children', () => { render(<ActionList data-testid="action-list" />); @@ -13,10 +14,10 @@ test('Renders children', () => { expect(screen.getByText('Test')).toBeVisible(); }); -test('Renders with class pf-v5-c-action-list', () => { +test(`Renders with class ${styles.actionList}`, () => { render(<ActionList>Test</ActionList>); - expect(screen.getByText('Test')).toHaveClass('pf-v5-c-action-list'); + expect(screen.getByText('Test')).toHaveClass(styles.actionList); }); test('Renders with custom class names provided via prop', () => { @@ -25,16 +26,16 @@ test('Renders with custom class names provided via prop', () => { expect(screen.getByText('Test')).toHaveClass('custom-class'); }); -test('Does not render with class pf-m-icons by default', () => { +test(`Does not render with class ${styles.modifiers.icons} by default`, () => { render(<ActionList>Test</ActionList>); - expect(screen.getByText('Test')).not.toHaveClass('pf-m-icons'); + expect(screen.getByText('Test')).not.toHaveClass(styles.modifiers.icons); }); -test('Renders with class pf-m-icons when isIconList is true', () => { +test(`Renders with class ${styles.modifiers.icons} when isIconList is true`, () => { render(<ActionList isIconList={true}>Test</ActionList>); - expect(screen.getByText('Test')).toHaveClass('pf-m-icons'); + expect(screen.getByText('Test')).toHaveClass(styles.modifiers.icons); }); test('Renders with inherited element props spread to the component', () => { diff --git a/packages/react-core/src/components/ActionList/__tests__/ActionListGroup.test.tsx b/packages/react-core/src/components/ActionList/__tests__/ActionListGroup.test.tsx index c7307824391..5f058812198 100644 --- a/packages/react-core/src/components/ActionList/__tests__/ActionListGroup.test.tsx +++ b/packages/react-core/src/components/ActionList/__tests__/ActionListGroup.test.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import { ActionListGroup } from '../ActionListGroup'; +import styles from '@patternfly/react-styles/css/components/ActionList/action-list'; test('Renders without children', () => { render(<ActionListGroup data-testid="action-list-group" />); @@ -13,10 +14,10 @@ test('Renders children', () => { expect(screen.getByText('Test')).toBeVisible(); }); -test('Renders with class pf-v5-c-action-list__group', () => { +test(`Renders with class ${styles.actionListGroup}`, () => { render(<ActionListGroup>Test</ActionListGroup>); - expect(screen.getByText('Test')).toHaveClass('pf-v5-c-action-list__group'); + expect(screen.getByText('Test')).toHaveClass(styles.actionListGroup); }); test('Renders with custom class names provided via prop', () => { diff --git a/packages/react-core/src/components/ActionList/__tests__/ActionListItem.test.tsx b/packages/react-core/src/components/ActionList/__tests__/ActionListItem.test.tsx index 57bfd9e961a..18b1949d80a 100644 --- a/packages/react-core/src/components/ActionList/__tests__/ActionListItem.test.tsx +++ b/packages/react-core/src/components/ActionList/__tests__/ActionListItem.test.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import { ActionListItem } from '../ActionListItem'; +import styles from '@patternfly/react-styles/css/components/ActionList/action-list'; test('Renders without children', () => { render(<ActionListItem data-testid="action-list-item" />); @@ -13,10 +14,10 @@ test('Renders children', () => { expect(screen.getByText('Test')).toBeVisible(); }); -test('Renders with class pf-v5-c-action-list__item', () => { +test(`Renders with class ${styles.actionList}__item`, () => { render(<ActionListItem>Test</ActionListItem>); - expect(screen.getByText('Test')).toHaveClass('pf-v5-c-action-list__item'); + expect(screen.getByText('Test')).toHaveClass(`${styles.actionList}__item`); }); test('Renders with custom class names provided via prop', () => { diff --git a/packages/react-core/src/components/Alert/__tests__/Alert.test.tsx b/packages/react-core/src/components/Alert/__tests__/Alert.test.tsx index b036aeda9e6..bd9c11d6bf7 100644 --- a/packages/react-core/src/components/Alert/__tests__/Alert.test.tsx +++ b/packages/react-core/src/components/Alert/__tests__/Alert.test.tsx @@ -6,6 +6,8 @@ import { act } from 'react-dom/test-utils'; import { Alert, AlertVariant } from '../Alert'; import { AlertContext } from '../AlertContext'; import { capitalize } from '../../../helpers'; +import cssAlertTitleMaxLines from '@patternfly/react-tokens/dist/esm/c_alert__title_max_lines'; +import styles from '@patternfly/react-styles/css/components/Alert/alert'; jest.mock('../AlertToggleExpandButton', () => ({ AlertToggleExpandButton: ({ isExpanded, onToggleExpand, ...props }) => ( @@ -34,18 +36,18 @@ test('Renders without children', () => { expect(screen.getByTestId('container').firstChild).toBeVisible(); }); -test('Renders with class pf-v5-c-alert on the containing div', () => { +test(`Renders with class ${styles.alert} on the containing div`, () => { render( <Alert title="Some title" data-testid="Alert-test-id"> Some alert </Alert> ); - expect(screen.getByTestId('Alert-test-id')).toHaveClass('pf-v5-c-alert'); + expect(screen.getByTestId('Alert-test-id')).toHaveClass(styles.alert); }); -test('Renders with class pf-v5-c-alert__title on the div containing the title', () => { +test(`Renders with class ${styles.alertTitle} on the div containing the title`, () => { render(<Alert title="Some title">Some alert</Alert>); - expect(screen.getByRole('heading', { name: 'Custom alert: Some title' })).toHaveClass('pf-v5-c-alert__title'); + expect(screen.getByRole('heading', { name: 'Custom alert: Some title' })).toHaveClass(styles.alertTitle); }); test('Renders with Custom hidden text of "Custom alert:"', () => { @@ -199,14 +201,14 @@ test('Renders the element passed via the actionClose prop', () => { expect(screen.getByRole('button', { name: 'Action close' })).toBeVisible(); }); -test('Renders the actionClose element inside pf-v5-c-alert__action', () => { +test(`Renders the actionClose element inside ${styles.alertAction}`, () => { render( <Alert title="Some title" actionClose="Action close"> Some alert </Alert> ); - expect(screen.getByText('Action close')).toHaveClass('pf-v5-c-alert__action'); + expect(screen.getByText('Action close')).toHaveClass(styles.alertAction); }); test('Provides the actionClose element access to the title via a context', () => { @@ -239,14 +241,14 @@ test('Renders the element passed via the actionLinks prop', () => { expect(screen.getByRole('button', { name: 'Action link' })).toBeVisible(); }); -test('Renders the actionLinks element inside pf-v5-c-alert__action-group', () => { +test(`Renders the actionLinks element inside ${styles.alertActionGroup}`, () => { render( <Alert title="Some title" actionLinks="Action link"> Some alert </Alert> ); - expect(screen.getByText('Action link')).toHaveClass('pf-v5-c-alert__action-group'); + expect(screen.getByText('Action link')).toHaveClass(styles.alertActionGroup); }); test('Renders children', () => { @@ -255,10 +257,10 @@ test('Renders children', () => { expect(screen.getByText('Some alert')).toBeVisible(); }); -test('Renders children inside pf-v5-c-alert__description', () => { +test(`Renders children inside ${styles.alertDescription}`, () => { render(<Alert title="Some title">Some alert</Alert>); - expect(screen.getByText('Some alert')).toHaveClass('pf-v5-c-alert__description'); + expect(screen.getByText('Some alert')).toHaveClass(styles.alertDescription); }); test('Renders with the aria label passed via prop', () => { @@ -578,7 +580,7 @@ test('Renders titles with the expected truncation styling when truncateTitle is const title = screen.getByRole('heading'); expect(title).toHaveClass('pf-m-truncate'); - expect(title).toHaveAttribute('style', '--pf-v5-c-alert__title--max-lines: 3;'); + expect(title).toHaveAttribute('style', `${cssAlertTitleMaxLines.name}: 3;`); }); test('Passes customIcon value to AlertIcon', () => { @@ -609,14 +611,14 @@ test('Renders with class pf-m-expandable when isExpandable = true', () => { expect(screen.getByTestId('Alert-test-id')).toHaveClass('pf-m-expandable'); }); -test('Renders AlertToggleExpandButton inside pf-v5-c-alert__toggle', () => { +test(`Renders AlertToggleExpandButton inside ${styles.alertToggle}`, () => { render( <Alert isExpandable title="Some title"> Some alert </Alert> ); - expect(screen.getByRole('button').parentElement).toHaveClass('pf-v5-c-alert__toggle'); + expect(screen.getByRole('button').parentElement).toHaveClass(styles.alertToggle); }); test('Does not render with class pf-m-expanded when AlertToggleExpandButton has not been clicked', () => { diff --git a/packages/react-core/src/components/Alert/__tests__/AlertIcon.test.tsx b/packages/react-core/src/components/Alert/__tests__/AlertIcon.test.tsx index b7b34b09f46..0798486d119 100644 --- a/packages/react-core/src/components/Alert/__tests__/AlertIcon.test.tsx +++ b/packages/react-core/src/components/Alert/__tests__/AlertIcon.test.tsx @@ -2,6 +2,7 @@ import * as React from 'react'; import { render, screen } from '@testing-library/react'; import { AlertIcon } from '../AlertIcon'; +import styles from '@patternfly/react-styles/css/components/Alert/alert'; jest.mock('@patternfly/react-icons/dist/esm/icons/check-circle-icon', () => () => 'Check circle icon mock'); jest.mock('@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon', () => () => 'Exclamation circle icon mock'); @@ -65,10 +66,10 @@ test('Renders with the passed custom icon when one is passed rather than the ico expect(screen.getByText('Custom icon')).toBeVisible(); }); -test('Renders the icon inside class pf-v5-c-alert__icon', () => { +test(`Renders the icon inside class ${styles.alertIcon}`, () => { render(<AlertIcon variant="custom" />); - expect(screen.getByText('Bell icon mock')).toHaveClass('pf-v5-c-alert__icon'); + expect(screen.getByText('Bell icon mock')).toHaveClass(styles.alertIcon); }); test('Renders with inherited element props spread to the component', () => { diff --git a/packages/react-core/src/components/Alert/__tests__/AlertToggleExpandButton.test.tsx b/packages/react-core/src/components/Alert/__tests__/AlertToggleExpandButton.test.tsx index 1ed71db4f80..188fd49d33b 100644 --- a/packages/react-core/src/components/Alert/__tests__/AlertToggleExpandButton.test.tsx +++ b/packages/react-core/src/components/Alert/__tests__/AlertToggleExpandButton.test.tsx @@ -4,6 +4,7 @@ import userEvent from '@testing-library/user-event'; import { AlertToggleExpandButton } from '../AlertToggleExpandButton'; import { AlertContext } from '../AlertContext'; +import styles from '@patternfly/react-styles/css/components/Alert/alert'; jest.mock('../../Button'); @@ -108,14 +109,14 @@ test('Renders a Button with variant: ButtonVariant.plain', () => { expect(screen.getByText('variant: plain')).toBeVisible(); }); -test('Renders with the toggle icon inside class pf-v5-c-alert__toggle-icon', () => { +test(`Renders with the toggle icon inside class ${styles.alertToggleIcon}`, () => { render( <AlertContext.Provider value={{ title: 'title', variantLabel: 'variantLabel' }}> <AlertToggleExpandButton /> </AlertContext.Provider> ); - expect(screen.getByText('Icon mock')).toHaveClass('pf-v5-c-alert__toggle-icon'); + expect(screen.getByText('Icon mock')).toHaveClass(styles.alertToggleIcon); }); test('Renders with inherited element props spread to the component', () => { diff --git a/packages/react-core/src/components/Alert/examples/Alert.md b/packages/react-core/src/components/Alert/examples/Alert.md index 66db8ac8ca6..0f98f703e1f 100644 --- a/packages/react-core/src/components/Alert/examples/Alert.md +++ b/packages/react-core/src/components/Alert/examples/Alert.md @@ -12,6 +12,7 @@ import BoxIcon from '@patternfly/react-icons/dist/esm/icons/box-icon'; import DatabaseIcon from '@patternfly/react-icons/dist/esm/icons/database-icon'; import ServerIcon from '@patternfly/react-icons/dist/esm/icons/server-icon'; import LaptopIcon from '@patternfly/react-icons/dist/esm/icons/laptop-icon'; +import buttonStyles from '@patternfly/react-styles/css/components/Button/button'; ## Alert examples diff --git a/packages/react-core/src/components/Alert/examples/AlertDynamicLiveRegion.tsx b/packages/react-core/src/components/Alert/examples/AlertDynamicLiveRegion.tsx index af6bbbf41fe..4a4bcfb74c8 100644 --- a/packages/react-core/src/components/Alert/examples/AlertDynamicLiveRegion.tsx +++ b/packages/react-core/src/components/Alert/examples/AlertDynamicLiveRegion.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Alert, AlertGroup, AlertVariant, InputGroup } from '@patternfly/react-core'; +import buttonStyles from '@patternfly/react-styles/css/components/Button/button'; interface AlertInfo { title: string; @@ -10,7 +11,7 @@ interface AlertInfo { export const DynamicLiveRegionAlert: React.FunctionComponent = () => { const [alerts, setAlerts] = React.useState<AlertInfo[]>([]); const getUniqueId: () => number = () => new Date().getTime(); - const btnClasses = ['pf-v5-c-button', 'pf-m-secondary'].join(' '); + const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' '); const addAlert = (alertInfo: AlertInfo) => { setAlerts((prevAlertInfo) => [...prevAlertInfo, alertInfo]); diff --git a/packages/react-core/src/components/Alert/examples/AlertGroupAsync.tsx b/packages/react-core/src/components/Alert/examples/AlertGroupAsync.tsx index 3b4af10ddc1..2a2e894ec15 100644 --- a/packages/react-core/src/components/Alert/examples/AlertGroupAsync.tsx +++ b/packages/react-core/src/components/Alert/examples/AlertGroupAsync.tsx @@ -9,12 +9,13 @@ import { InputGroupItem, useInterval } from '@patternfly/react-core'; +import buttonStyles from '@patternfly/react-styles/css/components/Button/button'; export const AlertGroupAsync: React.FunctionComponent = () => { const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]); const [isRunning, setIsRunning] = React.useState(false); - const btnClasses = ['pf-v5-c-button', 'pf-m-secondary'].join(' '); + const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' '); const getUniqueId = () => new Date().getTime(); diff --git a/packages/react-core/src/components/Alert/examples/AlertGroupMultipleDynamic.tsx b/packages/react-core/src/components/Alert/examples/AlertGroupMultipleDynamic.tsx index 4573b4653e3..bc638abb4f2 100644 --- a/packages/react-core/src/components/Alert/examples/AlertGroupMultipleDynamic.tsx +++ b/packages/react-core/src/components/Alert/examples/AlertGroupMultipleDynamic.tsx @@ -8,6 +8,7 @@ import { InputGroup, InputGroupItem } from '@patternfly/react-core'; +import buttonStyles from '@patternfly/react-styles/css/components/Button/button'; export const AlertGroupMultipleDynamic: React.FunctionComponent = () => { const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]); @@ -20,7 +21,7 @@ export const AlertGroupMultipleDynamic: React.FunctionComponent = () => { setAlerts((prevAlerts) => [...prevAlerts.filter((alert) => alert.key !== key)]); }; - const btnClasses = ['pf-v5-c-button', 'pf-m-secondary'].join(' '); + const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' '); const getUniqueId = () => String.fromCharCode(65 + Math.floor(Math.random() * 26)) + Date.now(); diff --git a/packages/react-core/src/components/Alert/examples/AlertGroupSingularDynamic.tsx b/packages/react-core/src/components/Alert/examples/AlertGroupSingularDynamic.tsx index 577c6a30c71..d70d1584e8b 100644 --- a/packages/react-core/src/components/Alert/examples/AlertGroupSingularDynamic.tsx +++ b/packages/react-core/src/components/Alert/examples/AlertGroupSingularDynamic.tsx @@ -8,6 +8,7 @@ import { InputGroup, InputGroupItem } from '@patternfly/react-core'; +import buttonStyles from '@patternfly/react-styles/css/components/Button/button'; export const AlertGroupSingularDynamic: React.FunctionComponent = () => { const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]); @@ -20,7 +21,7 @@ export const AlertGroupSingularDynamic: React.FunctionComponent = () => { setAlerts((prevAlerts) => [...prevAlerts.filter((alert) => alert.key !== key)]); }; - const btnClasses = ['pf-v5-c-button', 'pf-m-secondary'].join(' '); + const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' '); const getUniqueId = () => new Date().getTime(); diff --git a/packages/react-core/src/components/Alert/examples/AlertGroupSingularDynamicOverflow.tsx b/packages/react-core/src/components/Alert/examples/AlertGroupSingularDynamicOverflow.tsx index 8f2d5172432..f827dbe5048 100644 --- a/packages/react-core/src/components/Alert/examples/AlertGroupSingularDynamicOverflow.tsx +++ b/packages/react-core/src/components/Alert/examples/AlertGroupSingularDynamicOverflow.tsx @@ -8,6 +8,7 @@ import { InputGroup, InputGroupItem } from '@patternfly/react-core'; +import buttonStyles from '@patternfly/react-styles/css/components/Button/button'; export const AlertGroupSingularDynamicOverflow: React.FunctionComponent = () => { const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]); @@ -34,7 +35,7 @@ export const AlertGroupSingularDynamicOverflow: React.FunctionComponent = () => setOverflowMessage(getOverflowMessage(newAlerts.length)); }; - const btnClasses = ['pf-v5-c-button', 'pf-m-secondary'].join(' '); + const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' '); const getUniqueId = () => new Date().getTime(); diff --git a/packages/react-core/src/components/Alert/examples/AlertGroupToast.tsx b/packages/react-core/src/components/Alert/examples/AlertGroupToast.tsx index be6ca455fe4..1bb01c58f83 100644 --- a/packages/react-core/src/components/Alert/examples/AlertGroupToast.tsx +++ b/packages/react-core/src/components/Alert/examples/AlertGroupToast.tsx @@ -8,6 +8,7 @@ import { InputGroup, InputGroupItem } from '@patternfly/react-core'; +import buttonStyles from '@patternfly/react-styles/css/components/Button/button'; export const AlertGroupToast: React.FunctionComponent = () => { const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]); @@ -20,7 +21,7 @@ export const AlertGroupToast: React.FunctionComponent = () => { setAlerts((prevAlerts) => [...prevAlerts.filter((alert) => alert.key !== key)]); }; - const btnClasses = ['pf-v5-c-button', 'pf-m-secondary'].join(' '); + const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' '); const getUniqueId = () => new Date().getTime(); diff --git a/packages/react-core/src/components/Alert/examples/AlertGroupToastOverflowCapture.tsx b/packages/react-core/src/components/Alert/examples/AlertGroupToastOverflowCapture.tsx index 4115d295cab..88c94e7b4ba 100644 --- a/packages/react-core/src/components/Alert/examples/AlertGroupToastOverflowCapture.tsx +++ b/packages/react-core/src/components/Alert/examples/AlertGroupToastOverflowCapture.tsx @@ -8,6 +8,7 @@ import { InputGroup, InputGroupItem } from '@patternfly/react-core'; +import buttonStyles from '@patternfly/react-styles/css/components/Button/button'; export const AlertGroupToastOverflowCapture: React.FunctionComponent = () => { const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]); @@ -34,7 +35,7 @@ export const AlertGroupToastOverflowCapture: React.FunctionComponent = () => { setOverflowMessage(getOverflowMessage(newAlerts.length)); }; - const btnClasses = ['pf-v5-c-button', 'pf-m-secondary'].join(' '); + const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' '); const getUniqueId = () => new Date().getTime(); diff --git a/packages/react-core/src/components/Avatar/__tests__/Avatar.test.tsx b/packages/react-core/src/components/Avatar/__tests__/Avatar.test.tsx index b8ac9f13e98..ad3a30e2684 100644 --- a/packages/react-core/src/components/Avatar/__tests__/Avatar.test.tsx +++ b/packages/react-core/src/components/Avatar/__tests__/Avatar.test.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import { render, screen } from '@testing-library/react'; import { Avatar } from '../Avatar'; +import styles from '@patternfly/react-styles/css/components/Avatar/avatar'; test('Renders simple avatar', () => { render( @@ -13,7 +14,7 @@ test('Renders simple avatar', () => { test('Renders without any modifier class when border and size props are not passed', () => { render(<Avatar alt="avatar" />); - expect(screen.getByRole('img')).toHaveClass('pf-v5-c-avatar', { exact: true }); + expect(screen.getByRole('img')).toHaveClass(styles.avatar, { exact: true }); }); test('Renders with class name pf-m-light when "light" is passed as border prop', () => { diff --git a/packages/react-core/src/components/BackToTop/__tests__/BackToTop.test.tsx b/packages/react-core/src/components/BackToTop/__tests__/BackToTop.test.tsx index 4eb9ac41732..438bae01e72 100644 --- a/packages/react-core/src/components/BackToTop/__tests__/BackToTop.test.tsx +++ b/packages/react-core/src/components/BackToTop/__tests__/BackToTop.test.tsx @@ -2,6 +2,7 @@ import React, { RefObject } from 'react'; import { fireEvent, render, screen } from '@testing-library/react'; import { BackToTop } from '../BackToTop'; import userEvent from '@testing-library/user-event'; +import styles from '@patternfly/react-styles/css/components/BackToTop/back-to-top'; jest.mock('../../Button'); @@ -18,7 +19,7 @@ test('Renders BackToTop', () => { test('Renders with the default class', () => { render(<BackToTop />); - expect(screen.getByRole(`button`).parentElement).toHaveClass('pf-v5-c-back-to-top'); + expect(screen.getByRole(`button`).parentElement).toHaveClass(styles.backToTop); }); test('BackToTop is not yet visible', () => { diff --git a/packages/react-core/src/components/Backdrop/__tests__/Backdrop.test.tsx b/packages/react-core/src/components/Backdrop/__tests__/Backdrop.test.tsx index c4bb8386cf7..b49797cc25b 100644 --- a/packages/react-core/src/components/Backdrop/__tests__/Backdrop.test.tsx +++ b/packages/react-core/src/components/Backdrop/__tests__/Backdrop.test.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import { Backdrop } from '../Backdrop'; +import styles from '@patternfly/react-styles/css/components/Backdrop/backdrop'; test('Renders without children', () => { render( @@ -16,14 +17,14 @@ test('Renders children', () => { expect(screen.getByText('Test')).toBeVisible(); }); -test('Renders with the pf-v5-c-backdrop', () => { +test(`Renders with the ${styles.backdrop}`, () => { render(<Backdrop>Test</Backdrop>); - expect(screen.getByText('Test')).toHaveClass('pf-v5-c-backdrop'); + expect(screen.getByText('Test')).toHaveClass(styles.backdrop); }); -test('Renders with only the class pf-v5-c-backdrop by default', () => { +test(`Renders with only the class ${styles.backdrop} by default`, () => { render(<Backdrop>Test</Backdrop>); - expect(screen.getByText('Test')).toHaveClass('pf-v5-c-backdrop', { exact: true }); + expect(screen.getByText('Test')).toHaveClass(styles.backdrop, { exact: true }); }); test('Renders with custom class name when className prop is passed', () => { diff --git a/packages/react-core/src/components/BackgroundImage/BackgroundImage.tsx b/packages/react-core/src/components/BackgroundImage/BackgroundImage.tsx index f8303224167..9586f2b5d96 100644 --- a/packages/react-core/src/components/BackgroundImage/BackgroundImage.tsx +++ b/packages/react-core/src/components/BackgroundImage/BackgroundImage.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/BackgroundImage/background-image'; +import cssBackgroundImage from '@patternfly/react-tokens/dist/esm/c_background_image_BackgroundImage'; export interface BackgroundImageProps extends React.HTMLProps<HTMLDivElement> { /** The URL or file path of the image for the background */ @@ -19,7 +20,7 @@ export const BackgroundImage: React.FunctionComponent<BackgroundImageProps> = ({ className={css(styles.backgroundImage, className)} style={ { - '--pf-v5-c-background-image--BackgroundImage': `url(${src})` + [cssBackgroundImage.name]: `url(${src})` } as React.CSSProperties } {...props} diff --git a/packages/react-core/src/components/BackgroundImage/__tests__/BackgroundImage.test.tsx b/packages/react-core/src/components/BackgroundImage/__tests__/BackgroundImage.test.tsx index 5bed2e3e323..ecd1cb47a6a 100644 --- a/packages/react-core/src/components/BackgroundImage/__tests__/BackgroundImage.test.tsx +++ b/packages/react-core/src/components/BackgroundImage/__tests__/BackgroundImage.test.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import { BackgroundImage } from '../BackgroundImage'; import styles from '@patternfly/react-styles/css/components/BackgroundImage/background-image'; +import cssBackgroundImage from '@patternfly/react-tokens/dist/esm/c_background_image_BackgroundImage'; test(`renders with default className ${styles.backgroundImage}`, () => { render(<BackgroundImage src="/image/url.png" data-testid="test-id" />); @@ -15,11 +16,7 @@ test('spreads additional props', () => { test('has src URL applied to style', () => { render(<BackgroundImage src="/image/url.png" data-testid="test-id" />); - - expect(screen.getByTestId('test-id')).toHaveAttribute( - 'style', - '--pf-v5-c-background-image--BackgroundImage: url(/image/url.png);' - ); + expect(screen.getByTestId('test-id')).toHaveAttribute('style', `${cssBackgroundImage.name}: url(/image/url.png);`); }); test('renders with custom className when one is provided', () => { diff --git a/packages/react-core/src/components/Badge/__tests__/Badge.test.tsx b/packages/react-core/src/components/Badge/__tests__/Badge.test.tsx index 0fdeb96dd03..5c565dc5543 100644 --- a/packages/react-core/src/components/Badge/__tests__/Badge.test.tsx +++ b/packages/react-core/src/components/Badge/__tests__/Badge.test.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import { render, screen } from '@testing-library/react'; import { Badge } from '../Badge'; +import styles from '@patternfly/react-styles/css/components/Badge/badge'; test('Renders without children', () => { render( @@ -16,14 +17,14 @@ test('Renders children', () => { expect(screen.getByText('Test')).toBeVisible(); }); -test('Renders with class name pf-v5-c-badge', () => { +test(`Renders with class name ${styles.badge}`, () => { render(<Badge>Test</Badge>); - expect(screen.getByText('Test')).toHaveClass('pf-v5-c-badge'); + expect(screen.getByText('Test')).toHaveClass(styles.badge); }); -test('Renders with class name pf-m-unread by default', () => { +test(`Renders with class name ${styles.modifiers.unread} by default`, () => { render(<Badge>Test</Badge>); - expect(screen.getByText('Test')).toHaveClass('pf-m-unread'); + expect(screen.getByText('Test')).toHaveClass(styles.modifiers.unread); }); test('Renders with class name pf-m-read when isRead prop is true', () => { diff --git a/packages/react-core/src/components/Banner/__tests__/Banner.test.tsx b/packages/react-core/src/components/Banner/__tests__/Banner.test.tsx index 888b33c1287..e13ab61b4b3 100644 --- a/packages/react-core/src/components/Banner/__tests__/Banner.test.tsx +++ b/packages/react-core/src/components/Banner/__tests__/Banner.test.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import { render, screen } from '@testing-library/react'; import { Banner } from '../Banner'; +import styles from '@patternfly/react-styles/css/components/Banner/banner'; test('Renders without children', () => { render( @@ -16,9 +17,9 @@ test('Renders children', () => { expect(screen.getByText('Test')).toBeVisible(); }); -test('Renders with class name pf-v5-c-banner', () => { +test(`Renders with class name ${styles.banner}`, () => { render(<Banner>Test</Banner>); - expect(screen.getByText('Test')).toHaveClass('pf-v5-c-banner'); + expect(screen.getByText('Test')).toHaveClass(styles.banner); }); test('Renders with custom class name when className prop is provided', () => { @@ -28,7 +29,7 @@ test('Renders with custom class name when className prop is provided', () => { test('Renders without any modifier class when variant prop is not passed', () => { render(<Banner>Test</Banner>); - expect(screen.getByText('Test')).toHaveClass('pf-v5-c-banner', { exact: true }); + expect(screen.getByText('Test')).toHaveClass(styles.banner, { exact: true }); }); test('Renders with class name pf-m-green when "green" is passed to variant prop', () => { diff --git a/packages/react-core/src/components/Brand/Brand.tsx b/packages/react-core/src/components/Brand/Brand.tsx index 03ed8a9bcea..4d68d61ba4c 100644 --- a/packages/react-core/src/components/Brand/Brand.tsx +++ b/packages/react-core/src/components/Brand/Brand.tsx @@ -2,6 +2,9 @@ import * as React from 'react'; import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/Brand/brand'; import { setBreakpointCssVars } from '../../helpers'; +import cssBrandHeight from '@patternfly/react-tokens/dist/esm/c_brand_Height'; +import cssBrandWidth from '@patternfly/react-tokens/dist/esm/c_brand_Width'; + export interface BrandProps extends React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> { /** Transforms the Brand into a <picture> element from an <img> element. Container for <source> child elements. */ @@ -45,14 +48,14 @@ export const Brand: React.FunctionComponent<BrandProps> = ({ let responsiveStyles; if (widths !== undefined) { responsiveStyles = { - ...setBreakpointCssVars(widths, '--pf-v5-c-brand--Width') + ...setBreakpointCssVars(widths, cssBrandWidth.name) }; } if (heights !== undefined) { responsiveStyles = { ...responsiveStyles, - ...setBreakpointCssVars(heights, '--pf-v5-c-brand--Height') + ...setBreakpointCssVars(heights, cssBrandHeight.name) }; } diff --git a/packages/react-core/src/components/Checkbox/__tests__/Checkbox.test.tsx b/packages/react-core/src/components/Checkbox/__tests__/Checkbox.test.tsx index eb1c40ba3a6..cbff79a6bff 100644 --- a/packages/react-core/src/components/Checkbox/__tests__/Checkbox.test.tsx +++ b/packages/react-core/src/components/Checkbox/__tests__/Checkbox.test.tsx @@ -4,6 +4,7 @@ import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { Checkbox } from '../Checkbox'; +import styles from '@patternfly/react-styles/css/components/Check/check'; describe('Checkbox', () => { test('controlled', () => { @@ -90,6 +91,6 @@ describe('Checkbox', () => { <Checkbox component="span" label="label" aria-labelledby="labelId" id="check" isChecked aria-label="check" /> ); const span = container.querySelector('span'); - expect(span).toHaveClass('pf-v5-c-check'); + expect(span).toHaveClass(styles.check); }); }); diff --git a/packages/react-core/src/components/Chip/Chip.tsx b/packages/react-core/src/components/Chip/Chip.tsx index af7b7369f9d..a05cfe85986 100644 --- a/packages/react-core/src/components/Chip/Chip.tsx +++ b/packages/react-core/src/components/Chip/Chip.tsx @@ -6,6 +6,7 @@ import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon'; import styles from '@patternfly/react-styles/css/components/Chip/chip'; import { GenerateId } from '../../helpers/GenerateId/GenerateId'; import { getOUIAProps, OUIAProps, getDefaultOUIAId } from '../../helpers'; +import cssChipTextMaxWidth from '@patternfly/react-tokens/dist/esm/c_chip__text_MaxWidth'; export interface ChipProps extends React.HTMLProps<HTMLDivElement>, OUIAProps { /** Badge to add to the chip. The badge will be rendered after the chip text. */ @@ -81,7 +82,7 @@ class Chip extends React.Component<ChipProps, ChipState> { } setChipStyle = () => ({ - '--pf-v5-c-chip__text--MaxWidth': this.props.textMaxWidth + [cssChipTextMaxWidth.name]: this.props.textMaxWidth }); renderOverflowChip = () => { diff --git a/packages/react-core/src/components/CodeBlock/CodeBlockAction.tsx b/packages/react-core/src/components/CodeBlock/CodeBlockAction.tsx index 6802acedfdc..408f0aa5f00 100644 --- a/packages/react-core/src/components/CodeBlock/CodeBlockAction.tsx +++ b/packages/react-core/src/components/CodeBlock/CodeBlockAction.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import { css } from '@patternfly/react-styles'; +import styles from '@patternfly/react-styles/css/components/CodeBlock/code-block'; export interface CodeBlockActionProps extends React.HTMLProps<HTMLDivElement> { /** Content rendered inside the code block action */ @@ -13,7 +14,7 @@ export const CodeBlockAction: React.FunctionComponent<CodeBlockActionProps> = ({ className, ...props }: CodeBlockActionProps) => ( - <div className={css('pf-v5-c-code-block__actions-item', className)} {...props}> + <div className={css(`${styles.codeBlockActions}-item`, className)} {...props}> {children} </div> ); diff --git a/packages/react-core/src/components/DataList/__tests__/DataList.test.tsx b/packages/react-core/src/components/DataList/__tests__/DataList.test.tsx index 889efbf4302..a7a5bc878c1 100644 --- a/packages/react-core/src/components/DataList/__tests__/DataList.test.tsx +++ b/packages/react-core/src/components/DataList/__tests__/DataList.test.tsx @@ -14,6 +14,7 @@ import { DataListContent } from '../DataListContent'; import { Button } from '../../Button'; import { Dropdown, DropdownList, DropdownItem } from '../../Dropdown'; import { MenuToggle } from '../../MenuToggle'; +import styles from '@patternfly/react-styles/css/components/DataList/data-list'; describe('DataList', () => { test('List default', () => { @@ -176,7 +177,7 @@ describe('DataList', () => { test </DataListItem> ); - expect(screen.getByRole('listitem')).toHaveClass('pf-v5-c-data-list__item pf-m-expanded'); + expect(screen.getByRole('listitem')).toHaveClass(`${styles.dataListItem} ${styles.modifiers.expanded}`); }); test('Item', () => { @@ -233,8 +234,8 @@ describe('DataList', () => { const dataListCell = screen.getByTestId(testId); testCase.class === '' - ? expect(dataListCell).toHaveClass('pf-v5-c-data-list__cell') - : expect(dataListCell).toHaveClass(`pf-v5-c-data-list__cell ${testCase.class}`); + ? expect(dataListCell).toHaveClass(styles.dataListCell) + : expect(dataListCell).toHaveClass(`${styles.dataListCell} ${testCase.class}`); }); }); @@ -256,8 +257,8 @@ describe('DataList', () => { const dataListCell = screen.getByTestId(testId); testCase.class === '' - ? expect(dataListCell).toHaveClass('pf-v5-c-data-list__cell') - : expect(dataListCell).toHaveClass(`pf-v5-c-data-list__cell ${testCase.class}`); + ? expect(dataListCell).toHaveClass(styles.dataListCell) + : expect(dataListCell).toHaveClass(`${styles.dataListCell} ${testCase.class}`); }); }); diff --git a/packages/react-core/src/components/DataList/examples/DataList.md b/packages/react-core/src/components/DataList/examples/DataList.md index 116eca003f6..88e96dd7b4f 100644 --- a/packages/react-core/src/components/DataList/examples/DataList.md +++ b/packages/react-core/src/components/DataList/examples/DataList.md @@ -23,6 +23,10 @@ import AngleDownIcon from '@patternfly/react-icons/dist/esm/icons/angle-down-ico import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon'; import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon'; import { css } from '@patternfly/react-styles'; +import global_Color_100 from '@patternfly/react-tokens/dist/esm/global_Color_100'; +import global_BackgroundColor_200 from '@patternfly/react-tokens/dist/esm/global_BackgroundColor_200'; +import global_BorderColor_100 from '@patternfly/react-tokens/dist/esm/global_BorderColor_100'; +import global_BorderWidth_sm from '@patternfly/react-tokens/dist/esm/global_BorderWidth_sm'; ## Examples diff --git a/packages/react-core/src/components/DataList/examples/DataListWidthModifiers.tsx b/packages/react-core/src/components/DataList/examples/DataListWidthModifiers.tsx index e3102e97fdb..f892de9a118 100644 --- a/packages/react-core/src/components/DataList/examples/DataListWidthModifiers.tsx +++ b/packages/react-core/src/components/DataList/examples/DataListWidthModifiers.tsx @@ -19,6 +19,11 @@ import { MenuToggleElement } from '@patternfly/react-core'; import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon'; +/* eslint-disable camelcase */ +import global_Color_100 from '@patternfly/react-tokens/dist/esm/global_Color_100'; +import global_BackgroundColor_200 from '@patternfly/react-tokens/dist/esm/global_BackgroundColor_200'; +import global_BorderColor_100 from '@patternfly/react-tokens/dist/esm/global_BorderColor_100'; +import global_BorderWidth_sm from '@patternfly/react-tokens/dist/esm/global_BorderWidth_sm'; export const DataListWidthModifiers: React.FunctionComponent = () => { const [show, setShow] = React.useState(true); @@ -45,9 +50,9 @@ export const DataListWidthModifiers: React.FunctionComponent = () => { display: 'block', width: '100%', padding: '.25rem .5rem', - color: 'var(--pf-v5-global--Color--100)', - backgroundColor: 'var(--pf-v5-global--BackgroundColor--200)', - border: 'var(--pf-v5-global--BorderWidth--sm) var(--pf-v5-global--BorderColor--100) solid' + color: global_Color_100.var, + backgroundColor: global_BackgroundColor_200.var, + border: `${global_BorderWidth_sm.var} ${global_BorderColor_100.var} solid` }; return ( diff --git a/packages/react-core/src/components/DatePicker/DatePicker.tsx b/packages/react-core/src/components/DatePicker/DatePicker.tsx index b2f10575441..8aebe13f21f 100644 --- a/packages/react-core/src/components/DatePicker/DatePicker.tsx +++ b/packages/react-core/src/components/DatePicker/DatePicker.tsx @@ -12,6 +12,7 @@ import { useImperativeHandle } from 'react'; import { KeyTypes } from '../../helpers'; import { isValidDate } from '../../helpers/datetimeUtils'; import { HelperText, HelperTextItem } from '../HelperText'; +import cssFormControlWidthChars from '@patternfly/react-tokens/dist/esm/c_date_picker__input_c_form_control_width_chars'; /** Props that customize the requirement of a date */ export interface DatePickerRequiredObject { @@ -131,7 +132,7 @@ const DatePickerBase = ( const [pristine, setPristine] = React.useState(true); const [textInputFocused, setTextInputFocused] = React.useState(false); const widthChars = React.useMemo(() => Math.max(dateFormat(new Date()).length, placeholder.length), [dateFormat]); - const style = { '--pf-v5-c-date-picker__input--c-form-control--width-chars': widthChars, ...styleProps }; + const style = { [cssFormControlWidthChars.name]: widthChars, ...styleProps }; const buttonRef = React.useRef<HTMLButtonElement>(); const datePickerWrapperRef = React.useRef<HTMLDivElement>(); const triggerRef = React.useRef<HTMLDivElement>(); diff --git a/packages/react-core/src/components/DescriptionList/DescriptionList.tsx b/packages/react-core/src/components/DescriptionList/DescriptionList.tsx index 4957d6b8884..240fe6953ca 100644 --- a/packages/react-core/src/components/DescriptionList/DescriptionList.tsx +++ b/packages/react-core/src/components/DescriptionList/DescriptionList.tsx @@ -2,6 +2,9 @@ import * as React from 'react'; import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/DescriptionList/description-list'; import { formatBreakpointMods } from '../../helpers'; +import cssGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/c_description_list_GridTemplateColumns_min'; +import cssTermWidth from '@patternfly/react-tokens/dist/esm/c_description_list__term_width'; +import cssHorizontalTermWidth from '@patternfly/react-tokens/dist/esm/c_description_list_m_horizontal__term_width'; export interface BreakpointModifiers { default?: string; @@ -102,19 +105,19 @@ export const DescriptionList: React.FunctionComponent<DescriptionListProps> = ({ if (isAutoFit && autoFitMinModifier) { style = { ...style, - ...setBreakpointModifiers('--pf-v5-c-description-list--GridTemplateColumns--min', autoFitMinModifier) + ...setBreakpointModifiers(cssGridTemplateColumnsMin.name, autoFitMinModifier) }; } if (termWidth) { style = { ...style, - ...{ '--pf-v5-c-description-list__term--width': termWidth } + ...{ [cssTermWidth.name]: termWidth } }; } if (isHorizontal && horizontalTermWidthModifier) { style = { ...style, - ...setBreakpointModifiers('--pf-v5-c-description-list--m-horizontal__term--width', horizontalTermWidthModifier) + ...setBreakpointModifiers(cssHorizontalTermWidth.name, horizontalTermWidthModifier) }; } diff --git a/packages/react-core/src/components/DragDrop/Draggable.tsx b/packages/react-core/src/components/DragDrop/Draggable.tsx index dd59a9d1a62..4b84b95fd6f 100644 --- a/packages/react-core/src/components/DragDrop/Draggable.tsx +++ b/packages/react-core/src/components/DragDrop/Draggable.tsx @@ -3,6 +3,7 @@ import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/DragDrop/drag-drop'; import { DroppableContext } from './DroppableContext'; import { DragDropContext } from './DragDrop'; +import cssDraggingBackgroundColor from '@patternfly/react-tokens/dist/esm/c_draggable_m_dragging_BackgroundColor'; export interface DraggableProps extends React.HTMLProps<HTMLDivElement> { /** Content rendered inside DragDrop */ @@ -276,7 +277,7 @@ export const Draggable: React.FunctionComponent<DraggableProps> = ({ left: rect.x, width: rect.width, height: rect.height, - '--pf-v5-c-draggable--m-dragging--BackgroundColor': getInheritedBackgroundColor(dragging), + [cssDraggingBackgroundColor.name]: getInheritedBackgroundColor(dragging), position: 'fixed', zIndex: 5000 } as any; diff --git a/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx b/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx index 8c9924e88df..522c7da2ea4 100644 --- a/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx +++ b/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx @@ -5,6 +5,9 @@ import { DrawerColorVariant, DrawerContext } from './Drawer'; import { formatBreakpointMods } from '../../helpers/util'; import { GenerateId } from '../../helpers/GenerateId/GenerateId'; import { FocusTrap } from '../../helpers/FocusTrap/FocusTrap'; +import cssPanelMdFlexBasis from '@patternfly/react-tokens/dist/esm/c_drawer__panel_md_FlexBasis'; +import cssPanelMdFlexBasisMin from '@patternfly/react-tokens/dist/esm/c_drawer__panel_md_FlexBasis_min'; +import cssPanelMdFlexBasisMax from '@patternfly/react-tokens/dist/esm/c_drawer__panel_md_FlexBasis_max'; export interface DrawerPanelFocusTrapObject { /** Enables a focus trap on the drawer panel content. This will also automatically @@ -227,7 +230,7 @@ export const DrawerPanelContent: React.FunctionComponent<DrawerPanelContentProps if (position === 'bottom') { panel.current.style.overflowAnchor = 'none'; } - panel.current.style.setProperty('--pf-v5-c-drawer__panel--md--FlexBasis', newSize + 'px'); + panel.current.style.setProperty(cssPanelMdFlexBasis.name, newSize + 'px'); currWidth = newSize; setSeparatorValue(calcValueNow()); }; @@ -306,19 +309,19 @@ export const DrawerPanelContent: React.FunctionComponent<DrawerPanelContentProps if (position === 'bottom') { panel.current.style.overflowAnchor = 'none'; } - panel.current.style.setProperty('--pf-v5-c-drawer__panel--md--FlexBasis', newSize + 'px'); + panel.current.style.setProperty(cssPanelMdFlexBasis.name, newSize + 'px'); currWidth = newSize; setSeparatorValue(calcValueNow()); }; const boundaryCssVars: any = {}; if (defaultSize) { - boundaryCssVars['--pf-v5-c-drawer__panel--md--FlexBasis'] = defaultSize; + boundaryCssVars[cssPanelMdFlexBasis.name] = defaultSize; } if (minSize) { - boundaryCssVars['--pf-v5-c-drawer__panel--md--FlexBasis--min'] = minSize; + boundaryCssVars[cssPanelMdFlexBasisMin.name] = minSize; } if (maxSize) { - boundaryCssVars['--pf-v5-c-drawer__panel--md--FlexBasis--max'] = maxSize; + boundaryCssVars[cssPanelMdFlexBasisMax.name] = maxSize; } const isValidFocusTrap = focusTrap?.enabled && !isStatic; diff --git a/packages/react-core/src/components/Drawer/examples/Drawer.md b/packages/react-core/src/components/Drawer/examples/Drawer.md index f549eff1965..816cc3b83a6 100644 --- a/packages/react-core/src/components/Drawer/examples/Drawer.md +++ b/packages/react-core/src/components/Drawer/examples/Drawer.md @@ -18,6 +18,8 @@ propComponents: section: components --- +import accessibility from '@patternfly/react-styles/css/utilities/Accessibility/accessibility'; + ## Examples ### Basic diff --git a/packages/react-core/src/components/Drawer/examples/DrawerStackedContentBodyElements.tsx b/packages/react-core/src/components/Drawer/examples/DrawerStackedContentBodyElements.tsx index f15c65ee447..a5c396ae9b3 100644 --- a/packages/react-core/src/components/Drawer/examples/DrawerStackedContentBodyElements.tsx +++ b/packages/react-core/src/components/Drawer/examples/DrawerStackedContentBodyElements.tsx @@ -8,7 +8,8 @@ import { DrawerActions, DrawerCloseButton, DrawerPanelBody, - Button + Button, + Title } from '@patternfly/react-core'; export const DrawerStackedContentBodyElements: React.FunctionComponent = () => { @@ -30,9 +31,9 @@ export const DrawerStackedContentBodyElements: React.FunctionComponent = () => { const panelContent = ( <DrawerPanelContent> <DrawerHead> - <h3 className="pf-v5-c-title pf-m-2xl" tabIndex={isExpanded ? 0 : -1} ref={drawerRef}> + <Title headingLevel="h3" size="2xl" tabIndex={isExpanded ? 0 : -1} ref={drawerRef}> drawer title{' '} - </h3> + diff --git a/packages/react-core/src/components/Drawer/examples/DrawerStatic.tsx b/packages/react-core/src/components/Drawer/examples/DrawerStatic.tsx index 782d8023b65..16f79f9b064 100644 --- a/packages/react-core/src/components/Drawer/examples/DrawerStatic.tsx +++ b/packages/react-core/src/components/Drawer/examples/DrawerStatic.tsx @@ -9,6 +9,7 @@ import { DrawerCloseButton, Button } from '@patternfly/react-core'; +import accessibility from '@patternfly/react-styles/css/utilities/Accessibility/accessibility'; export const DrawerStatic: React.FunctionComponent = () => { const [isExpanded, setIsExpanded] = React.useState(false); @@ -44,7 +45,7 @@ export const DrawerStatic: React.FunctionComponent = () => { return ( - diff --git a/packages/react-core/src/components/DualListSelector/DualListSelectorControl.tsx b/packages/react-core/src/components/DualListSelector/DualListSelectorControl.tsx index 39bfe859e39..266098bdb85 100644 --- a/packages/react-core/src/components/DualListSelector/DualListSelectorControl.tsx +++ b/packages/react-core/src/components/DualListSelector/DualListSelectorControl.tsx @@ -2,6 +2,7 @@ import * as React from 'react'; import { css } from '@patternfly/react-styles'; import { Button, ButtonVariant } from '../Button'; import { Tooltip } from '../Tooltip'; +import styles from '@patternfly/react-styles/css/components/DualListSelector/dual-list-selector'; /** Renders an individual control button for moving selected options between each * dual list selector pane. @@ -40,7 +41,7 @@ export const DualListSelectorControlBase: React.FunctionComponent +
diff --git a/packages/react-core/src/components/Form/examples/FormGroupLabelInfo.tsx b/packages/react-core/src/components/Form/examples/FormGroupLabelInfo.tsx index de8075cadb1..be5df5fce6d 100644 --- a/packages/react-core/src/components/Form/examples/FormGroupLabelInfo.tsx +++ b/packages/react-core/src/components/Form/examples/FormGroupLabelInfo.tsx @@ -9,6 +9,7 @@ import { FormHelperText } from '@patternfly/react-core'; import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon'; +import styles from '@patternfly/react-styles/css/components/Form/form'; export const FormGroupLabelInfo: React.FunctionComponent = () => { const [name, setName] = React.useState(''); @@ -55,7 +56,7 @@ export const FormGroupLabelInfo: React.FunctionComponent = () => { aria-label="More info for name field" onClick={(e) => e.preventDefault()} aria-describedby="form-group-label-info" - className="pf-v5-c-form__group-label-help" + className={styles.formGroupLabelHelp} > diff --git a/packages/react-core/src/components/Form/examples/FormLimitWidth.tsx b/packages/react-core/src/components/Form/examples/FormLimitWidth.tsx index 98512d63484..8be09a9d2d7 100644 --- a/packages/react-core/src/components/Form/examples/FormLimitWidth.tsx +++ b/packages/react-core/src/components/Form/examples/FormLimitWidth.tsx @@ -13,6 +13,7 @@ import { FormHelperText } from '@patternfly/react-core'; import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon'; +import styles from '@patternfly/react-styles/css/components/Form/form'; export const FormLimitWidth: React.FunctionComponent = () => { const [name, setName] = React.useState(''); @@ -68,7 +69,7 @@ export const FormLimitWidth: React.FunctionComponent = () => { aria-label="More info for name field" onClick={(e) => e.preventDefault()} aria-describedby="simple-form-name-02" - className="pf-v5-c-form__group-label-help" + className={styles.formGroupLabelHelp} > diff --git a/packages/react-core/src/components/Hint/__tests__/Hint.test.tsx b/packages/react-core/src/components/Hint/__tests__/Hint.test.tsx index 10000957fc3..aa84b2d5c35 100644 --- a/packages/react-core/src/components/Hint/__tests__/Hint.test.tsx +++ b/packages/react-core/src/components/Hint/__tests__/Hint.test.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import { render, screen } from '@testing-library/react'; import { Hint } from '../Hint'; +import styles from '@patternfly/react-styles/css/components/Hint/hint'; test('renders without children', () => { render(); @@ -14,12 +15,12 @@ test('renders children', () => { expect(screen.getByText('Test')).toBeVisible(); }); -test('renders with class pf-v5-c-hint', () => { +test(`renders with class ${styles.hint}`, () => { render(Test); const hint = screen.getByText('Test'); - expect(hint).toHaveClass('pf-v5-c-hint'); + expect(hint).toHaveClass(styles.hint); }); test('renders with custom class names provided via prop', () => { @@ -46,12 +47,12 @@ test('renders actions options', () => { expect(actions).toBeVisible(); }); -test('renders with class pf-v5-c-hint__actions if there is an action prop', () => { +test(`renders with class ${styles.hintActions} if there is an action prop`, () => { render(Test); const hint = screen.getByText('actions'); - expect(hint).toHaveClass('pf-v5-c-hint__actions'); + expect(hint).toHaveClass(styles.hintActions); }); test('renders with inherited element props spread to the component', () => { diff --git a/packages/react-core/src/components/Hint/__tests__/HintBody.test.tsx b/packages/react-core/src/components/Hint/__tests__/HintBody.test.tsx index d9142507670..8c2c72b7b78 100644 --- a/packages/react-core/src/components/Hint/__tests__/HintBody.test.tsx +++ b/packages/react-core/src/components/Hint/__tests__/HintBody.test.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import '@testing-library/jest-dom'; +import styles from '@patternfly/react-styles/css/components/Hint/hint'; import { HintBody } from '../HintBody'; @@ -16,12 +17,12 @@ test('renders children', () => { expect(screen.getByRole('button', { name: 'Test Me' })).toBeVisible(); }); -test('renders with class pf-v5-c-hint__body', () => { +test(`renders with class ${styles.hintBody}`, () => { render(Hint Body Test); const body = screen.getByText('Hint Body Test'); - expect(body).toHaveClass('pf-v5-c-hint__body'); + expect(body).toHaveClass(styles.hintBody); }); test('renders with custom class names provided via prop', () => { diff --git a/packages/react-core/src/components/Hint/__tests__/HintFooter.test.tsx b/packages/react-core/src/components/Hint/__tests__/HintFooter.test.tsx index f71df174798..1e8e6daac33 100644 --- a/packages/react-core/src/components/Hint/__tests__/HintFooter.test.tsx +++ b/packages/react-core/src/components/Hint/__tests__/HintFooter.test.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import '@testing-library/jest-dom'; +import styles from '@patternfly/react-styles/css/components/Hint/hint'; import { HintFooter } from '../HintFooter'; @@ -16,12 +17,12 @@ test('renders children', () => { expect(screen.getByRole('button', { name: 'Test Me' })).toBeVisible(); }); -test('renders with class pf-v5-c-hint__footer', () => { +test(`renders with class ${styles.hintFooter}`, () => { render(Hint Body Test); const body = screen.getByText('Hint Body Test'); - expect(body).toHaveClass('pf-v5-c-hint__footer'); + expect(body).toHaveClass(styles.hintFooter); }); test('renders with custom class names provided via prop', () => { diff --git a/packages/react-core/src/components/Hint/__tests__/HintTitle.test.tsx b/packages/react-core/src/components/Hint/__tests__/HintTitle.test.tsx index 8fd536bcbf6..62164522f20 100644 --- a/packages/react-core/src/components/Hint/__tests__/HintTitle.test.tsx +++ b/packages/react-core/src/components/Hint/__tests__/HintTitle.test.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import '@testing-library/jest-dom'; +import styles from '@patternfly/react-styles/css/components/Hint/hint'; import { HintTitle } from '../HintTitle'; @@ -16,12 +17,12 @@ test('renders children', () => { expect(screen.getByRole('button', { name: 'Test Me' })).toBeVisible(); }); -test('renders with class pf-v5-c-hint__title', () => { +test(`renders with class ${styles.hintTitle}`, () => { render(Hint Body Test); const body = screen.getByText('Hint Body Test'); - expect(body).toHaveClass('pf-v5-c-hint__title'); + expect(body).toHaveClass(styles.hintTitle); }); test('renders with custom class names provided via prop', () => { diff --git a/packages/react-core/src/components/Icon/__tests__/Icon.test.tsx b/packages/react-core/src/components/Icon/__tests__/Icon.test.tsx index 8c3373d3a39..b2f2e67de4f 100644 --- a/packages/react-core/src/components/Icon/__tests__/Icon.test.tsx +++ b/packages/react-core/src/components/Icon/__tests__/Icon.test.tsx @@ -2,6 +2,7 @@ import * as React from 'react'; import { render, screen } from '@testing-library/react'; import { Icon } from '../Icon'; import { CheckIcon } from '@patternfly/react-icons'; +import styles from '@patternfly/react-styles/css/components/Icon/icon'; test('renders basic icon successfully', () => { const { asFragment } = render( @@ -19,9 +20,9 @@ test('checks basic icon structure', () => { ); const iconContainer = screen.getByTitle('icon'); - expect(iconContainer).toHaveClass('pf-v5-c-icon'); - const iconContent = iconContainer.querySelector('.pf-v5-c-icon__content'); - expect(iconContent).toHaveClass('pf-v5-c-icon__content'); + expect(iconContainer).toHaveClass(styles.icon); + const iconContent = iconContainer.querySelector(`.${styles.iconContent}`); + expect(iconContent).toHaveClass(styles.iconContent); }); test('renders without children', () => { @@ -47,7 +48,7 @@ Object.values(['sm', 'md', 'lg', 'xl']).forEach((size) => { ); - const iconContainer = screen.getByTitle(`content-${size}-icon`).querySelector('.pf-v5-c-icon__content'); + const iconContainer = screen.getByTitle(`content-${size}-icon`).querySelector(`.${styles.iconContent}`); expect(iconContainer).toHaveClass(`pf-m-${size}`); }); @@ -59,7 +60,7 @@ test('check icon without iconSize', () => { ); - const iconContainer = screen.getByTitle('no-icon-size').querySelector('.pf-v5-c-icon__content'); + const iconContainer = screen.getByTitle('no-icon-size').querySelector(`.${styles.iconContent}`); expect(Array.from(iconContainer?.classList || []).some((c) => /pf-m-*/.test(c))); // Check no modifier classes have been added }); @@ -70,7 +71,7 @@ Object.values(['sm', 'md', 'lg', 'xl']).forEach((size) => { ); - const iconContainer = screen.getByTitle(`progress-content-${size}-icon`).querySelector('.pf-v5-c-icon__progress'); + const iconContainer = screen.getByTitle(`progress-content-${size}-icon`).querySelector(`.${styles.iconProgress}`); expect(iconContainer).toHaveClass(`pf-m-${size}`); }); @@ -82,7 +83,7 @@ test('check icon without progress icon size', () => { ); - const iconContainer = screen.getByTitle('no-progress-icon-size').querySelector('.pf-v5-c-icon__progress'); + const iconContainer = screen.getByTitle('no-progress-icon-size').querySelector(`.${styles.iconProgress}`); expect(Array.from(iconContainer?.classList || []).some((c) => /pf-m-*/.test(c))); // Check no modifier classes have been added }); @@ -116,7 +117,7 @@ Object.values(['custom', 'info', 'success', 'warning', 'danger']).forEach((statu ); - const iconContent = screen.getByTitle(`${status}-icon`).querySelector('.pf-v5-c-icon__content'); + const iconContent = screen.getByTitle(`${status}-icon`).querySelector(`.${styles.iconContent}`); expect(iconContent).toHaveClass(`pf-m-${status}`); }); @@ -128,7 +129,7 @@ test('check icon without status', () => { ); - const iconContent = screen.getByTitle('no-status').querySelector('.pf-v5-c-icon__content'); + const iconContent = screen.getByTitle('no-status').querySelector(`.${styles.iconContent}`); expect(Array.from(iconContent?.classList || []).some((c) => /pf-m-*/.test(c))); // Check no modifier classes have been added }); @@ -162,8 +163,8 @@ test('sets isInProgress successfully', () => { const iconContainer = screen.getByTitle('progress-icon'); expect(iconContainer).toHaveClass('pf-m-in-progress'); - const iconContent = iconContainer.querySelector('.pf-v5-c-icon__progress'); - expect(iconContent).toHaveClass('pf-v5-c-icon__progress'); + const iconContent = iconContainer.querySelector(`.${styles.iconProgress}`); + expect(iconContent).toHaveClass(styles.iconProgress); }); test('check icon without isInProgress', () => { diff --git a/packages/react-core/src/components/JumpLinks/JumpLinks.tsx b/packages/react-core/src/components/JumpLinks/JumpLinks.tsx index 953b163d128..345dcb2ef87 100644 --- a/packages/react-core/src/components/JumpLinks/JumpLinks.tsx +++ b/packages/react-core/src/components/JumpLinks/JumpLinks.tsx @@ -227,7 +227,7 @@ export const JumpLinks: React.FunctionComponent = ({ {...props} >
-
+
{expandable && (
@@ -128,7 +129,7 @@ export const ModalWithForm: React.FunctionComponent = () => { aria-label="More info for e-mail field" onClick={(e) => e.preventDefault()} aria-describedby="modal-with-form-form-email" - className="pf-v5-c-form__group-label-help" + className={formStyles.formGroupLabelHelp} > @@ -176,7 +177,7 @@ export const ModalWithForm: React.FunctionComponent = () => { aria-label="More info for address field" onClick={(e) => e.preventDefault()} aria-describedby="modal-with-form-form-address" - className="pf-v5-c-form__group-label-help" + className={formStyles.formGroupLabelHelp} > diff --git a/packages/react-core/src/components/MultipleFileUpload/MultipleFileUploadStatus.tsx b/packages/react-core/src/components/MultipleFileUpload/MultipleFileUploadStatus.tsx index 10ec7937fff..6d48dfd11f2 100644 --- a/packages/react-core/src/components/MultipleFileUpload/MultipleFileUploadStatus.tsx +++ b/packages/react-core/src/components/MultipleFileUpload/MultipleFileUploadStatus.tsx @@ -75,7 +75,7 @@ export const MultipleFileUploadStatus: React.FunctionComponent -
    +
      {children}
    diff --git a/packages/react-core/src/components/NotificationDrawer/NotificationDrawerGroup.tsx b/packages/react-core/src/components/NotificationDrawer/NotificationDrawerGroup.tsx index a08f53209f3..db4cd38906a 100644 --- a/packages/react-core/src/components/NotificationDrawer/NotificationDrawerGroup.tsx +++ b/packages/react-core/src/components/NotificationDrawer/NotificationDrawerGroup.tsx @@ -111,7 +111,7 @@ export const NotificationDrawerGroup: React.FunctionComponent{count}
- + diff --git a/packages/react-core/src/components/NotificationDrawer/NotificationDrawerList.tsx b/packages/react-core/src/components/NotificationDrawer/NotificationDrawerList.tsx index e377d19270c..2f186ce71ff 100644 --- a/packages/react-core/src/components/NotificationDrawer/NotificationDrawerList.tsx +++ b/packages/react-core/src/components/NotificationDrawer/NotificationDrawerList.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import { css } from '@patternfly/react-styles'; +import styles from '@patternfly/react-styles/css/components/NotificationDrawer/notification-drawer'; export interface NotificationDrawerListProps extends React.HTMLProps { /** Content rendered inside the notification drawer list body */ @@ -22,7 +23,7 @@ export const NotificationDrawerList: React.FunctionComponent (