Skip to content

Commit cbe3bd0

Browse files
committed
chore: clean up remaining pf-* references after rename
- README: update test path examples to pf-v5-* element dirs - elements/package.json: remove orphaned pf-jazz-hands export entry - eslint.config.js: fix pf-icon ignore path to pf-v5-icon - bundle.ts: update pf-icon export to pf-v5-icon - dev server index.html template: update pf-button/pf-icon/pf-card tags and imports to pf-v5-* equivalents - docs/_snippets: update accordion-jsx and card-html import paths - vue.md: fix CodeSandbox search hint to @patternfly/elements Assisted-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent cd88cfd commit cbe3bd0

8 files changed

Lines changed: 15 additions & 16 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ npm start
6363
npm run test:watch
6464

6565
# Run a single test in watch mode.
66-
npm run test:watch -- --files elements/pf-accordion/test/pf-accordion.spec.ts
66+
npm run test:watch -- --files elements/pf-v5-accordion/test/pf-v5-accordion.spec.ts
6767

6868
# Or multiple:
69-
npm run test:watch -- --files 'elements/pf-{select,card}/test/*.spec.ts'
69+
npm run test:watch -- --files 'elements/pf-v5-{select,card}/test/*.spec.ts'
7070

7171
# Run all tests excluding react and vue tests.
7272
npm run test:watch

docs/_snippets/accordion-jsx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
Accordion,
44
AccordionPanel,
55
AccordionHeader,
6-
} from "@patternfly/elements/react/pf-accordion/pf-accordion.js";
6+
} from "@patternfly/elements/react/pf-v5-accordion/pf-v5-accordion.js";
77

88
export default function App() {
99
const data = [

docs/_snippets/card-html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
```html
2-
<script type="module" src="https://esm.sh/@patternfly/elements/pf-card/pf-card.js"></script>
2+
<script type="module" src="https://esm.sh/@patternfly/elements/pf-v5-card/pf-v5-card.js"></script>
33

44
<pf-v5-card border>
55
<h2 slot="header">Card component</h2>

docs/framework-integration/vue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ tags:
5252
npm install --save @patternfly/elements
5353
```
5454

55-
But if you’re using CodeSandbox, just search for “@patternfly/pf-card
55+
But if you’re using CodeSandbox, just search for “@patternfly/elements
5656

5757
In our `HelloWorld.vue` file in the `/src/components/` directory, let’s add
5858
the import statements for our components to the top of the `<script>` tag in

elements/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
"./pf-v5-helper-text/pf-v5-helper-text.js": "./pf-v5-helper-text/pf-v5-helper-text.js",
3434
"./pf-v5-hint/pf-v5-hint.js": "./pf-v5-hint/pf-v5-hint.js",
3535
"./pf-v5-icon/pf-v5-icon.js": "./pf-v5-icon/pf-v5-icon.js",
36-
"./pf-jazz-hands/pf-jazz-hands.js": "./pf-jazz-hands/pf-jazz-hands.js",
37-
"./pf-v5-jump-links/pf-v5-jump-links-item.js": "./pf-v5-jump-links/pf-v5-jump-links-item.js",
36+
"./pf-v5-jump-links/pf-v5-jump-links-item.js": "./pf-v5-jump-links/pf-v5-jump-links-item.js",
3837
"./pf-v5-jump-links/pf-v5-jump-links-list.js": "./pf-v5-jump-links/pf-v5-jump-links-list.js",
3938
"./pf-v5-jump-links/pf-v5-jump-links.js": "./pf-v5-jump-links/pf-v5-jump-links.js",
4039
"./pf-v5-label-group/pf-v5-label-group.js": "./pf-v5-label-group/pf-v5-label-group.js",

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default tseslint.config(
1313
{
1414
name: 'local/ignores',
1515
ignores: [
16-
'elements/pf-icon/demo/icons/**/*.js',
16+
'elements/pf-v5-icon/demo/icons/**/*.js',
1717
'tools/create-element/templates/**/*',
1818
'tools/create-element/**/*.js',
1919
'tools/create-element/templates/**/*',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from '@patternfly/elements/pf-icon/pf-icon.js';
1+
export * from '@patternfly/elements/pf-v5-icon/pf-v5-icon.js';
22

33
import './components.js';

tools/pfe-tools/dev-server/plugins/templates/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,21 @@
3636
<script type="module">
3737
import 'construct-style-sheets-polyfill';
3838
import 'element-internals-polyfill';
39-
import '@patternfly/elements/pf-button/pf-button.js';
40-
import '@patternfly/elements/pf-card/pf-card.js';
39+
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';
40+
import '@patternfly/elements/pf-v5-card/pf-v5-card.js';
4141
import '@patternfly/pfe-tools/dev-server/demo.js';
4242
</script>
4343
</head>
4444

4545
<body class="menu-open">
4646
<header id="main-header">
4747
<div class="logo-bar">
48-
<pf-button id="hamburger"
48+
<pf-v5-button id="hamburger"
4949
plain
5050
aria-controls="sidebar"
5151
label="Expand Main Navigation">
52-
<pf-icon icon="bars" size="lg"></pf-icon>
53-
</pf-button>
52+
<pf-v5-icon icon="bars" size="lg"></pf-v5-icon>
53+
</pf-v5-button>
5454
<a href="/" aria-label="{{ title }} Home">
5555
<img src="{{ options.site.logoUrl }}" alt="{{ title }}">
5656
</a>
@@ -123,7 +123,7 @@
123123
<section id="components">
124124
{% for primary, group in groupeddemos %}
125125
{% set first = group['0'] %}
126-
<pf-card rounded compact>
126+
<pf-v5-card rounded compact>
127127
<h2 slot="header">{{ first.title }}</h2>
128128
<a href="{{ first.permalink | replace(demoURLPrefix, '/') }}">
129129
<img src="/elements/{{ primary }}/docs/screenshot.png" alt="{{ primary }}">
@@ -133,7 +133,7 @@ <h2 slot="header">{{ first.title }}</h2>
133133
<a href="{{ d.permalink | replace(demoURLPrefix, '/') }}">{{ d.title }}</a>
134134
</li>{% endif %}{% endfor %}
135135
</ul>
136-
</pf-card>{% endfor %}
136+
</pf-v5-card>{% endfor %}
137137
</section>
138138
{% endif %}
139139
</main>

0 commit comments

Comments
 (0)