Skip to content

Commit add8930

Browse files
committed
fix: correct prettier formatting and update snapshots
Reformatted with Prettier 3.8.1 to match CI and updated snapshot
1 parent a838a4e commit add8930

57 files changed

Lines changed: 547 additions & 2037 deletions

File tree

Some content is hidden

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

packages/react-core/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxCloseButton.test.tsx.snap

Lines changed: 9 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports[`AboutModalBoxCloseButton Test 1`] = `
88
<button
99
aria-label="Close Dialog"
1010
class="pf-v6-c-button pf-m-plain"
11-
data-ouia-component-id="OUIA-Generated-Button-plain-1"
11+
data-ouia-component-id="OUIA-Generated-Button-plain-:r0:"
1212
data-ouia-component-type="PF6/Button"
1313
data-ouia-safe="true"
1414
type="button"
@@ -22,24 +22,10 @@ exports[`AboutModalBoxCloseButton Test 1`] = `
2222
fill="currentColor"
2323
height="1em"
2424
role="img"
25+
viewBox="0 0 "
2526
width="1em"
2627
>
27-
<svg
28-
class="pf-v6-icon-default"
29-
viewBox="0 0 352 512"
30-
>
31-
<path
32-
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
33-
/>
34-
</svg>
35-
<svg
36-
class="pf-v6-icon-rh-ui"
37-
viewBox="0 0 32 32"
38-
>
39-
<path
40-
d="M28.707 27.293a.999.999 0 1 1-1.414 1.414L16 17.414 4.707 28.707a.997.997 0 0 1-1.414 0 .999.999 0 0 1 0-1.414L14.586 16 3.293 4.707a.999.999 0 1 1 1.414-1.414L16 14.586 27.293 3.293a.999.999 0 1 1 1.414 1.414L17.414 16l11.293 11.293Z"
41-
/>
42-
</svg>
28+
<path />
4329
</svg>
4430
</span>
4531
</button>
@@ -55,7 +41,7 @@ exports[`AboutModalBoxCloseButton Test close button aria label 1`] = `
5541
<button
5642
aria-label="Klose Daylok"
5743
class="pf-v6-c-button pf-m-plain"
58-
data-ouia-component-id="OUIA-Generated-Button-plain-3"
44+
data-ouia-component-id="OUIA-Generated-Button-plain-:r2:"
5945
data-ouia-component-type="PF6/Button"
6046
data-ouia-safe="true"
6147
type="button"
@@ -69,24 +55,10 @@ exports[`AboutModalBoxCloseButton Test close button aria label 1`] = `
6955
fill="currentColor"
7056
height="1em"
7157
role="img"
58+
viewBox="0 0 "
7259
width="1em"
7360
>
74-
<svg
75-
class="pf-v6-icon-default"
76-
viewBox="0 0 352 512"
77-
>
78-
<path
79-
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
80-
/>
81-
</svg>
82-
<svg
83-
class="pf-v6-icon-rh-ui"
84-
viewBox="0 0 32 32"
85-
>
86-
<path
87-
d="M28.707 27.293a.999.999 0 1 1-1.414 1.414L16 17.414 4.707 28.707a.997.997 0 0 1-1.414 0 .999.999 0 0 1 0-1.414L14.586 16 3.293 4.707a.999.999 0 1 1 1.414-1.414L16 14.586 27.293 3.293a.999.999 0 1 1 1.414 1.414L17.414 16l11.293 11.293Z"
88-
/>
89-
</svg>
61+
<path />
9062
</svg>
9163
</span>
9264
</button>
@@ -102,7 +74,7 @@ exports[`AboutModalBoxCloseButton Test onclose 1`] = `
10274
<button
10375
aria-label="Close Dialog"
10476
class="pf-v6-c-button pf-m-plain"
105-
data-ouia-component-id="OUIA-Generated-Button-plain-2"
77+
data-ouia-component-id="OUIA-Generated-Button-plain-:r1:"
10678
data-ouia-component-type="PF6/Button"
10779
data-ouia-safe="true"
10880
type="button"
@@ -116,24 +88,10 @@ exports[`AboutModalBoxCloseButton Test onclose 1`] = `
11688
fill="currentColor"
11789
height="1em"
11890
role="img"
91+
viewBox="0 0 "
11992
width="1em"
12093
>
121-
<svg
122-
class="pf-v6-icon-default"
123-
viewBox="0 0 352 512"
124-
>
125-
<path
126-
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
127-
/>
128-
</svg>
129-
<svg
130-
class="pf-v6-icon-rh-ui"
131-
viewBox="0 0 32 32"
132-
>
133-
<path
134-
d="M28.707 27.293a.999.999 0 1 1-1.414 1.414L16 17.414 4.707 28.707a.997.997 0 0 1-1.414 0 .999.999 0 0 1 0-1.414L14.586 16 3.293 4.707a.999.999 0 1 1 1.414-1.414L16 14.586 27.293 3.293a.999.999 0 1 1 1.414 1.414L17.414 16l11.293 11.293Z"
135-
/>
136-
</svg>
94+
<path />
13795
</svg>
13896
</span>
13997
</button>

packages/react-core/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxHeader.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports[`AboutModalBoxHeader Test 1`] = `
77
>
88
<h1
99
class="pf-v6-c-title pf-m-4xl"
10-
data-ouia-component-id="OUIA-Generated-Title-1"
10+
data-ouia-component-id="OUIA-Generated-Title-:r0:"
1111
data-ouia-component-type="PF6/Title"
1212
data-ouia-safe="true"
1313
id="id"

packages/react-core/src/components/Accordion/AccordionToggle.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import styles from '@patternfly/react-styles/css/components/Accordion/accordion'
44
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
55
import { AccordionContext, AccordionItemContext } from './AccordionContext';
66

7-
export interface AccordionToggleProps
8-
extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
7+
export interface AccordionToggleProps extends React.DetailedHTMLProps<
8+
React.ButtonHTMLAttributes<HTMLButtonElement>,
9+
HTMLButtonElement
10+
> {
911
/** Content rendered inside the Accordion toggle */
1012
children?: React.ReactNode;
1113
/** Additional classes added to the Accordion Toggle */

packages/react-core/src/components/Avatar/Avatar.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import styles from '@patternfly/react-styles/css/components/Avatar/avatar';
22
import { css } from '@patternfly/react-styles';
33

4-
export interface AvatarProps
5-
extends React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> {
4+
export interface AvatarProps extends React.DetailedHTMLProps<
5+
React.ImgHTMLAttributes<HTMLImageElement>,
6+
HTMLImageElement
7+
> {
68
/** Additional classes added to the avatar. */
79
className?: string;
810
/** Attribute that specifies the URL of the image for the avatar. */

packages/react-core/src/components/Brand/Brand.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import { setBreakpointCssVars } from '../../helpers';
44
import cssBrandHeight from '@patternfly/react-tokens/dist/esm/c_brand_Height';
55
import cssBrandWidth from '@patternfly/react-tokens/dist/esm/c_brand_Width';
66

7-
export interface BrandProps
8-
extends React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> {
7+
export interface BrandProps extends React.DetailedHTMLProps<
8+
React.ImgHTMLAttributes<HTMLImageElement>,
9+
HTMLImageElement
10+
> {
911
/** Transforms the Brand into a <picture> element from an <img> element. Container for <source> child elements. */
1012
children?: React.ReactNode;
1113
/** Additional classes added to the either type of Brand. */

packages/react-core/src/components/Checkbox/Checkbox.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { SSRSafeIds } from '../../helpers/SSRSafeIds/SSRSafeIds';
77
import { ASTERISK } from '../../helpers/htmlConstants';
88

99
export interface CheckboxProps
10-
extends Omit<React.HTMLProps<HTMLInputElement>, 'type' | 'onChange' | 'disabled' | 'label'>,
11-
OUIAProps {
10+
extends Omit<React.HTMLProps<HTMLInputElement>, 'type' | 'onChange' | 'disabled' | 'label'>, OUIAProps {
1211
/** Additional classes added to the checkbox wrapper. This wrapper will be div element by default. It will be a label element if
1312
* isLabelWrapped is true, or it can be overridden by any element specified in the component prop.
1413
*/

packages/react-core/src/components/ClipboardCopy/ClipboardCopyButton.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
33
import { Button } from '../Button';
44
import { Tooltip, TooltipPosition } from '../Tooltip';
55

6-
export interface ClipboardCopyButtonProps
7-
extends Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'ref'> {
6+
export interface ClipboardCopyButtonProps extends Omit<
7+
React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>,
8+
'ref'
9+
> {
810
/** Callback for the copy when the button is clicked */
911
onClick: (event: React.MouseEvent) => void;
1012
/** Content of the copy button */

packages/react-core/src/components/ClipboardCopy/ClipboardCopyToggle.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import { css } from '@patternfly/react-styles';
33
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
44
import { Button } from '../Button';
55

6-
export interface ClipboardCopyToggleProps
7-
extends Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'ref'> {
6+
export interface ClipboardCopyToggleProps extends Omit<
7+
React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>,
8+
'ref'
9+
> {
810
onClick: (event: React.MouseEvent) => void;
911
id: string;
1012
contentId: string;

packages/react-core/src/components/DatePicker/DatePicker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export interface DatePickerRequiredObject {
2424
/** The main date picker component. */
2525

2626
export interface DatePickerProps
27-
extends CalendarFormat,
27+
extends
28+
CalendarFormat,
2829
Omit<React.HTMLProps<HTMLInputElement>, 'onChange' | 'onFocus' | 'onBlur' | 'disabled' | 'ref'> {
2930
/** The container to append the menu to. Defaults to 'inline'.
3031
* If your menu is being cut off you can append it to an element higher up the DOM tree.

packages/react-core/src/components/DualListSelector/__tests__/__snapshots__/DualListSelector.test.tsx.snap

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,24 +90,10 @@ exports[`DualListSelector with search inputs 1`] = `
9090
fill="currentColor"
9191
height="1em"
9292
role="img"
93+
viewBox="0 0 "
9394
width="1em"
9495
>
95-
<svg
96-
class="pf-v6-icon-default"
97-
viewBox="0 0 512 512"
98-
>
99-
<path
100-
d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"
101-
/>
102-
</svg>
103-
<svg
104-
class="pf-v6-icon-rh-ui"
105-
viewBox="0 0 32 32"
106-
>
107-
<path
108-
d="m30.796 29.205-8.557-8.557A11.945 11.945 0 0 0 25 13c0-6.617-5.383-12-12-12S1 6.383 1 13s5.383 12 12 12c2.904 0 5.57-1.038 7.648-2.761l8.556 8.556a1.122 1.122 0 0 0 1.592 0 1.127 1.127 0 0 0 0-1.591ZM3 13C3 7.486 7.486 3 13 3s10 4.486 10 10-4.486 10-10 10S3 18.514 3 13Z"
109-
/>
110-
</svg>
96+
<path />
11197
</svg>
11298
</span>
11399
<input

0 commit comments

Comments
 (0)