@patternfly/react-templates 6.5.0-prerelease.42 → 6.5.0-prerelease.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/components/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/esm/components/Select/MultiTypeaheadSelect.js +2 -2
- package/dist/esm/components/Select/MultiTypeaheadSelect.js.map +1 -1
- package/dist/esm/components/Select/TypeaheadSelect.d.ts.map +1 -1
- package/dist/esm/components/Select/TypeaheadSelect.js +2 -2
- package/dist/esm/components/Select/TypeaheadSelect.js.map +1 -1
- package/dist/js/components/Select/MultiTypeaheadSelect.js +2 -2
- package/dist/js/components/Select/MultiTypeaheadSelect.js.map +1 -1
- package/dist/js/components/Select/TypeaheadSelect.d.ts.map +1 -1
- package/dist/js/components/Select/TypeaheadSelect.js +2 -2
- package/dist/js/components/Select/TypeaheadSelect.js.map +1 -1
- package/dist/umd/assets/{output-CP7piBZW.css → output-IJulVgfn.css} +759 -758
- package/dist/umd/react-templates.min.js +1 -1
- package/package.json +3 -3
- package/src/components/Select/MultiTypeaheadSelect.tsx +2 -2
- package/src/components/Select/TypeaheadSelect.tsx +7 -2
- package/src/components/Select/__tests__/__snapshots__/MultiTypeaheadSelect.test.tsx.snap +4 -16
- package/src/components/Select/__tests__/__snapshots__/TypeaheadSelect.test.tsx.snap +4 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-templates",
|
|
3
|
-
"version": "6.5.0-prerelease.
|
|
3
|
+
"version": "6.5.0-prerelease.44",
|
|
4
4
|
"description": "This package provides wrapped component demos for ease of use\n",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"subpaths": "node ../../scripts/exportSubpaths.mjs --config subpaths.config.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@patternfly/react-core": "^6.5.0-prerelease.
|
|
36
|
+
"@patternfly/react-core": "^6.5.0-prerelease.44",
|
|
37
37
|
"@patternfly/react-icons": "^6.5.0-prerelease.17",
|
|
38
38
|
"@patternfly/react-styles": "^6.5.0-prerelease.14",
|
|
39
39
|
"@patternfly/react-tokens": "^6.5.0-prerelease.13",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"react": "^17 || ^18 || ^19",
|
|
44
44
|
"react-dom": "^17 || ^18 || ^19"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "6d97743fee78a3a92027e771c507664b76e51de2"
|
|
47
47
|
}
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
TextInputGroupMain,
|
|
26
26
|
TextInputGroupUtilities
|
|
27
27
|
} from '@patternfly/react-core/dist/esm/components/TextInputGroup';
|
|
28
|
-
import
|
|
28
|
+
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
|
|
29
29
|
|
|
30
30
|
export interface MultiTypeaheadSelectOption extends Omit<SelectOptionProps, 'content'> {
|
|
31
31
|
/** Content of the select option. */
|
|
@@ -333,7 +333,7 @@ export const MultiTypeaheadSelectBase: FunctionComponent<MultiTypeaheadSelectPro
|
|
|
333
333
|
</TextInputGroupMain>
|
|
334
334
|
<TextInputGroupUtilities {...(selected.length === 0 ? { style: { display: 'none' } } : {})}>
|
|
335
335
|
<Button variant="plain" onClick={onClearButtonClick} aria-label="Clear input value">
|
|
336
|
-
<
|
|
336
|
+
<RhMicronsCloseIcon />
|
|
337
337
|
</Button>
|
|
338
338
|
</TextInputGroupUtilities>
|
|
339
339
|
</TextInputGroup>
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
TextInputGroupMain,
|
|
25
25
|
TextInputGroupUtilities
|
|
26
26
|
} from '@patternfly/react-core/dist/esm/components/TextInputGroup';
|
|
27
|
-
import
|
|
27
|
+
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
|
|
28
28
|
|
|
29
29
|
export interface TypeaheadSelectOption extends Omit<SelectOptionProps, 'content'> {
|
|
30
30
|
/** Content of the select option. */
|
|
@@ -371,7 +371,12 @@ export const TypeaheadSelectBase: FunctionComponent<TypeaheadSelectProps> = ({
|
|
|
371
371
|
/>
|
|
372
372
|
|
|
373
373
|
<TextInputGroupUtilities {...(!inputValue ? { style: { display: 'none' } } : {})}>
|
|
374
|
-
<Button
|
|
374
|
+
<Button
|
|
375
|
+
variant="plain"
|
|
376
|
+
onClick={onClearButtonClick}
|
|
377
|
+
aria-label="Clear input value"
|
|
378
|
+
icon={<RhMicronsCloseIcon />}
|
|
379
|
+
/>
|
|
375
380
|
</TextInputGroupUtilities>
|
|
376
381
|
</TextInputGroup>
|
|
377
382
|
</MenuToggle>
|
|
@@ -48,24 +48,12 @@ exports[`MultiTypeaheadSelect Matches snapshot 1`] = `
|
|
|
48
48
|
fill="currentColor"
|
|
49
49
|
height="1em"
|
|
50
50
|
role="img"
|
|
51
|
+
viewBox="0 0 20 20"
|
|
51
52
|
width="1em"
|
|
52
53
|
>
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
>
|
|
57
|
-
<path
|
|
58
|
-
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"
|
|
59
|
-
/>
|
|
60
|
-
</svg>
|
|
61
|
-
<svg
|
|
62
|
-
class="pf-v6-icon-rh-ui"
|
|
63
|
-
viewBox="0 0 32 32"
|
|
64
|
-
>
|
|
65
|
-
<path
|
|
66
|
-
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"
|
|
67
|
-
/>
|
|
68
|
-
</svg>
|
|
54
|
+
<path
|
|
55
|
+
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z"
|
|
56
|
+
/>
|
|
69
57
|
</svg>
|
|
70
58
|
</span>
|
|
71
59
|
</button>
|
|
@@ -48,24 +48,12 @@ exports[`Matches snapshot 1`] = `
|
|
|
48
48
|
fill="currentColor"
|
|
49
49
|
height="1em"
|
|
50
50
|
role="img"
|
|
51
|
+
viewBox="0 0 20 20"
|
|
51
52
|
width="1em"
|
|
52
53
|
>
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
>
|
|
57
|
-
<path
|
|
58
|
-
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"
|
|
59
|
-
/>
|
|
60
|
-
</svg>
|
|
61
|
-
<svg
|
|
62
|
-
class="pf-v6-icon-rh-ui"
|
|
63
|
-
viewBox="0 0 32 32"
|
|
64
|
-
>
|
|
65
|
-
<path
|
|
66
|
-
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"
|
|
67
|
-
/>
|
|
68
|
-
</svg>
|
|
54
|
+
<path
|
|
55
|
+
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z"
|
|
56
|
+
/>
|
|
69
57
|
</svg>
|
|
70
58
|
</span>
|
|
71
59
|
</button>
|