diff --git a/README.md b/README.md index 981378e5..9696ca8e 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ src ### Component's API rules: - prop names comply with PatternFly components naming standards (`variant`, `onClick`, `position`, etc.) - the API is maximally simplified and all props are provided with a description -- it is build on top of existing PatternFly types without prop omitting +- it is built on the top of existing PatternFly types without prop omitting - it is well documented using the PatternFly documentation (`/packages/module/patternfly-docs/content/extensions/component-groups/examples/MyComponent/MyComponent.md`) with examples of all possible use cases (`packages/module/patternfly-docs/content/extensions/component-groups/examples/MyComponent/MyComponent[...]Example.tsx`) - do not unnecessarily use external libraries in your component - rather, delegate the necessary logic to the component's user using the component's API diff --git a/cypress/component/MultiContentCard.cy.tsx b/cypress/component/MultiContentCard.cy.tsx index 0db7addd..9367d2ea 100644 --- a/cypress/component/MultiContentCard.cy.tsx +++ b/cypress/component/MultiContentCard.cy.tsx @@ -21,7 +21,7 @@ export const MultiContentCardExample: React.FunctionComponent = () => { const cards = [ - Getting Started + Getting Started @@ -49,7 +49,7 @@ export const MultiContentCardExample: React.FunctionComponent = () => { , - + @@ -73,7 +73,7 @@ export const MultiContentCardExample: React.FunctionComponent = () => { , - Next Steps + Next Steps diff --git a/package-lock.json b/package-lock.json index 5109ac5e..32b3e72d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -203,6 +203,28 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-member-expression-to-functions": "^7.24.8", + "@babel/helper-optimise-call-expression": "^7.24.7", + "@babel/helper-replace-supers": "^7.25.0", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/traverse": "^7.25.0", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, "node_modules/@babel/helper-create-class-features-plugin": { "version": "7.25.0", "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.0.tgz", @@ -2273,12 +2295,13 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "dev": true, + "license": "Python-2.0" }, "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -2371,7 +2394,458 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", "deprecated": "Use @eslint/object-schema instead", - "dev": true + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@img/sharp-darwin-arm64": { + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.4.tgz", + "integrity": "sha512-p0suNqXufJs9t3RqLBO6vvrgr5OhgbWp76s5gTRvdmxmuv9E1rcaqGUsl3l4mKVmXPkTkTErXediAui4x+8PSA==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "glibc": ">=2.26", + "node": "^18.17.0 || ^20.3.0 || >=21.0.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-arm64": "1.0.2" + } + }, + "node_modules/@img/sharp-darwin-x64": { + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.33.4.tgz", + "integrity": "sha512-0l7yRObwtTi82Z6ebVI2PnHT8EB2NxBgpK2MiKJZJ7cz32R4lxd001ecMhzzsZig3Yv9oclvqqdV93jo9hy+Dw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "glibc": ">=2.26", + "node": "^18.17.0 || ^20.3.0 || >=21.0.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-x64": "1.0.2" + } + }, + "node_modules/@img/sharp-libvips-darwin-arm64": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.0.2.tgz", + "integrity": "sha512-tcK/41Rq8IKlSaKRCCAuuY3lDJjQnYIW1UXU1kxcEKrfL8WR7N6+rzNoOxoQRJWTAECuKwgAHnPvqXGN8XfkHA==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "macos": ">=11", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-x64": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.0.2.tgz", + "integrity": "sha512-Ofw+7oaWa0HiiMiKWqqaZbaYV3/UGL2wAPeLuJTx+9cXpCRdvQhCLG0IH8YGwM0yGWGLpsF4Su9vM1o6aer+Fw==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "macos": ">=10.13", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.0.2.tgz", + "integrity": "sha512-iLWCvrKgeFoglQxdEwzu1eQV04o8YeYGFXtfWU26Zr2wWT3q3MTzC+QTCO3ZQfWd3doKHT4Pm2kRmLbupT+sZw==", + "cpu": [ + "arm" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "glibc": ">=2.28", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm64": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.0.2.tgz", + "integrity": "sha512-x7kCt3N00ofFmmkkdshwj3vGPCnmiDh7Gwnd4nUwZln2YjqPxV1NlTyZOvoDWdKQVDL911487HOueBvrpflagw==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "glibc": ">=2.26", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-s390x": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.0.2.tgz", + "integrity": "sha512-cmhQ1J4qVhfmS6szYW7RT+gLJq9dH2i4maq+qyXayUSn9/3iY2ZeWpbAgSpSVbV2E1JUL2Gg7pwnYQ1h8rQIog==", + "cpu": [ + "s390x" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "glibc": ">=2.28", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-x64": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.0.2.tgz", + "integrity": "sha512-E441q4Qdb+7yuyiADVi5J+44x8ctlrqn8XgkDTwr4qPJzWkaHwD489iZ4nGDgcuya4iMN3ULV6NwbhRZJ9Z7SQ==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "glibc": ">=2.26", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-arm64": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.0.2.tgz", + "integrity": "sha512-3CAkndNpYUrlDqkCM5qhksfE+qSIREVpyoeHIU6jd48SJZViAmznoQQLAv4hVXF7xyUB9zf+G++e2v1ABjCbEQ==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "musl": ">=1.2.2", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-x64": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.0.2.tgz", + "integrity": "sha512-VI94Q6khIHqHWNOh6LLdm9s2Ry4zdjWJwH56WoiJU7NTeDwyApdZZ8c+SADC8OH98KWNQXnE01UdJ9CSfZvwZw==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "musl": ">=1.2.2", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-linux-arm": { + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.33.4.tgz", + "integrity": "sha512-RUgBD1c0+gCYZGCCe6mMdTiOFS0Zc/XrN0fYd6hISIKcDUbAW5NtSQW9g/powkrXYm6Vzwd6y+fqmExDuCdHNQ==", + "cpu": [ + "arm" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "glibc": ">=2.28", + "node": "^18.17.0 || ^20.3.0 || >=21.0.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm": "1.0.2" + } + }, + "node_modules/@img/sharp-linux-arm64": { + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.33.4.tgz", + "integrity": "sha512-2800clwVg1ZQtxwSoTlHvtm9ObgAax7V6MTAB/hDT945Tfyy3hVkmiHpeLPCKYqYR1Gcmv1uDZ3a4OFwkdBL7Q==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "glibc": ">=2.26", + "node": "^18.17.0 || ^20.3.0 || >=21.0.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm64": "1.0.2" + } + }, + "node_modules/@img/sharp-linux-s390x": { + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.33.4.tgz", + "integrity": "sha512-h3RAL3siQoyzSoH36tUeS0PDmb5wINKGYzcLB5C6DIiAn2F3udeFAum+gj8IbA/82+8RGCTn7XW8WTFnqag4tQ==", + "cpu": [ + "s390x" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "glibc": ">=2.31", + "node": "^18.17.0 || ^20.3.0 || >=21.0.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-s390x": "1.0.2" + } + }, + "node_modules/@img/sharp-linux-x64": { + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.33.4.tgz", + "integrity": "sha512-GoR++s0XW9DGVi8SUGQ/U4AeIzLdNjHka6jidVwapQ/JebGVQIpi52OdyxCNVRE++n1FCLzjDovJNozif7w/Aw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "glibc": ">=2.26", + "node": "^18.17.0 || ^20.3.0 || >=21.0.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-x64": "1.0.2" + } + }, + "node_modules/@img/sharp-linuxmusl-arm64": { + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.33.4.tgz", + "integrity": "sha512-nhr1yC3BlVrKDTl6cO12gTpXMl4ITBUZieehFvMntlCXFzH2bvKG76tBL2Y/OqhupZt81pR7R+Q5YhJxW0rGgQ==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "musl": ">=1.2.2", + "node": "^18.17.0 || ^20.3.0 || >=21.0.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-arm64": "1.0.2" + } + }, + "node_modules/@img/sharp-linuxmusl-x64": { + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.33.4.tgz", + "integrity": "sha512-uCPTku0zwqDmZEOi4ILyGdmW76tH7dm8kKlOIV1XC5cLyJ71ENAAqarOHQh0RLfpIpbV5KOpXzdU6XkJtS0daw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "musl": ">=1.2.2", + "node": "^18.17.0 || ^20.3.0 || >=21.0.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-x64": "1.0.2" + } + }, + "node_modules/@img/sharp-wasm32": { + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.33.4.tgz", + "integrity": "sha512-Bmmauh4sXUsUqkleQahpdNXKvo+wa1V9KhT2pDA4VJGKwnKMJXiSTGphn0gnJrlooda0QxCtXc6RX1XAU6hMnQ==", + "cpu": [ + "wasm32" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.1.1" + }, + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-ia32": { + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.33.4.tgz", + "integrity": "sha512-99SJ91XzUhYHbx7uhK3+9Lf7+LjwMGQZMDlO/E/YVJ7Nc3lyDFZPGhjwiYdctoH2BOzW9+TnfqcaMKt0jHLdqw==", + "cpu": [ + "ia32" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-x64": { + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.33.4.tgz", + "integrity": "sha512-3QLocdTRVIrFNye5YocZl+KKpYKP+fksi1QhmOArgx7GyhIbQp/WrJRu176jm8IxromS7RIkzMiMINVdBtC8Aw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0", + "yarn": ">=3.2.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } }, "node_modules/@isaacs/cliui": { "version": "8.0.2", @@ -3352,7 +3826,7 @@ "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.1.tgz", "integrity": "sha512-rh3G3wDO8J9wSjfI436JUKzHIxq8NaiL0tVeB2aXmG6p/9859aUOAjA9pmSPNGGZxfwmaJ9ozOJImuNVJdpvbA==", "dev": true, - "peer": true, + "license": "MIT", "engines": { "node": ">= 18" } @@ -3362,7 +3836,7 @@ "resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.2.tgz", "integrity": "sha512-hEb7Ma4cGJGEUNOAVmyfdB/3WirWMg5hDuNFVejGEDFqupeOysLc2sG6HJxY2etBp5YQu5Wtxwi020jS9xlUwg==", "dev": true, - "peer": true, + "license": "MIT", "dependencies": { "@octokit/auth-token": "^5.0.0", "@octokit/graphql": "^8.0.0", @@ -3381,7 +3855,7 @@ "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.1.tgz", "integrity": "sha512-JYjh5rMOwXMJyUpj028cu0Gbp7qe/ihxfJMLc8VZBMMqSwLgOxDI1911gV4Enl1QSavAQNJcwmwBF9M0VvLh6Q==", "dev": true, - "peer": true, + "license": "MIT", "dependencies": { "@octokit/types": "^13.0.0", "universal-user-agent": "^7.0.2" @@ -3395,7 +3869,7 @@ "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.1.tgz", "integrity": "sha512-ukiRmuHTi6ebQx/HFRCXKbDlOh/7xEV6QUXaE7MJEKGNAncGI/STSbOkl12qVXZrfZdpXctx5O9X1AIaebiDBg==", "dev": true, - "peer": true, + "license": "MIT", "dependencies": { "@octokit/request": "^9.0.0", "@octokit/types": "^13.0.0", @@ -3426,23 +3900,12 @@ "@octokit/core": ">=6" } }, - "node_modules/@octokit/plugin-request-log": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-5.3.0.tgz", - "integrity": "sha512-FiGcyjdtYPlr03ExBk/0ysIlEFIFGJQAVoPPMxL19B24bVSEiZQnVGBunNtaAF1YnvE/EFoDpXmITtRnyCiypQ==", - "dev": true, - "engines": { - "node": ">= 18" - }, - "peerDependencies": { - "@octokit/core": ">=6" - } - }, "node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.2.1.tgz", - "integrity": "sha512-YMWBw6Exh1ZBs5cCE0AnzYxSQDIJS00VlBqISTgNYmu5MBdeM07K/MAJjy/VkNaH5jpJmD/5HFUvIZ+LDB5jSQ==", + "version": "13.2.4", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.2.4.tgz", + "integrity": "sha512-gusyAVgTrPiuXOdfqOySMDztQHv6928PQ3E4dqVGEtOvRXAKRbJR4b1zQyniIT9waqaWk/UDaoJ2dyPr7Bk7Iw==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/types": "^13.5.0" }, @@ -3454,11 +3917,11 @@ } }, "node_modules/@octokit/request": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.1.1.tgz", - "integrity": "sha512-pyAguc0p+f+GbQho0uNetNQMmLG1e80WjkIaqqgUkihqUp0boRU6nKItXO4VWnr+nbZiLGEyy4TeKRwqaLvYgw==", + "version": "9.1.3", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.1.3.tgz", + "integrity": "sha512-V+TFhu5fdF3K58rs1pGUJIDH5RZLbZm5BI+MNF+6o/ssFNT4vWlCh/tVpF3NxGtP15HUxTTMUbsG5llAuU2CZA==", "dev": true, - "peer": true, + "license": "MIT", "dependencies": { "@octokit/endpoint": "^10.0.0", "@octokit/request-error": "^6.0.1", @@ -3470,11 +3933,11 @@ } }, "node_modules/@octokit/request-error": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.1.tgz", - "integrity": "sha512-1mw1gqT3fR/WFvnoVpY/zUM2o/XkMs/2AszUUG9I69xn0JFLv6PGkPhNk5lbfvROs79wiS0bqiJNxfCZcRJJdg==", + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.4.tgz", + "integrity": "sha512-VpAhIUxwhWZQImo/dWAN/NpPqqojR6PSLgLYAituLM6U+ddx9hCioFGwBr5Mi+oi5CLeJkcAs3gJ0PYYzU6wUg==", "dev": true, - "peer": true, + "license": "MIT", "dependencies": { "@octokit/types": "^13.0.0" }, @@ -3498,64 +3961,6 @@ "node": ">= 18" } }, - "node_modules/@octokit/rest/node_modules/@octokit/auth-token": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.1.tgz", - "integrity": "sha512-rh3G3wDO8J9wSjfI436JUKzHIxq8NaiL0tVeB2aXmG6p/9859aUOAjA9pmSPNGGZxfwmaJ9ozOJImuNVJdpvbA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/rest/node_modules/@octokit/core": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.2.tgz", - "integrity": "sha512-hEb7Ma4cGJGEUNOAVmyfdB/3WirWMg5hDuNFVejGEDFqupeOysLc2sG6HJxY2etBp5YQu5Wtxwi020jS9xlUwg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@octokit/auth-token": "^5.0.0", - "@octokit/graphql": "^8.0.0", - "@octokit/request": "^9.0.0", - "@octokit/request-error": "^6.0.1", - "@octokit/types": "^13.0.0", - "before-after-hook": "^3.0.2", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/rest/node_modules/@octokit/endpoint": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.1.tgz", - "integrity": "sha512-JYjh5rMOwXMJyUpj028cu0Gbp7qe/ihxfJMLc8VZBMMqSwLgOxDI1911gV4Enl1QSavAQNJcwmwBF9M0VvLh6Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@octokit/types": "^13.0.0", - "universal-user-agent": "^7.0.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/rest/node_modules/@octokit/graphql": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.1.tgz", - "integrity": "sha512-ukiRmuHTi6ebQx/HFRCXKbDlOh/7xEV6QUXaE7MJEKGNAncGI/STSbOkl12qVXZrfZdpXctx5O9X1AIaebiDBg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@octokit/request": "^9.0.0", - "@octokit/types": "^13.0.0", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, "node_modules/@octokit/rest/node_modules/@octokit/plugin-request-log": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-5.3.1.tgz", @@ -3569,49 +3974,6 @@ "@octokit/core": ">=6" } }, - "node_modules/@octokit/rest/node_modules/@octokit/request": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.1.3.tgz", - "integrity": "sha512-V+TFhu5fdF3K58rs1pGUJIDH5RZLbZm5BI+MNF+6o/ssFNT4vWlCh/tVpF3NxGtP15HUxTTMUbsG5llAuU2CZA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@octokit/endpoint": "^10.0.0", - "@octokit/request-error": "^6.0.1", - "@octokit/types": "^13.1.0", - "universal-user-agent": "^7.0.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/rest/node_modules/@octokit/request-error": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.4.tgz", - "integrity": "sha512-VpAhIUxwhWZQImo/dWAN/NpPqqojR6PSLgLYAituLM6U+ddx9hCioFGwBr5Mi+oi5CLeJkcAs3gJ0PYYzU6wUg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@octokit/types": "^13.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/rest/node_modules/before-after-hook": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz", - "integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/@octokit/rest/node_modules/universal-user-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", - "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==", - "dev": true, - "license": "ISC" - }, "node_modules/@octokit/types": { "version": "13.5.0", "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz", @@ -3918,6 +4280,31 @@ } } }, + "node_modules/@patternfly/documentation-framework/node_modules/puppeteer/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@patternfly/documentation-framework/node_modules/puppeteer/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true, + "license": "MIT" + }, "node_modules/@patternfly/documentation-framework/node_modules/puppeteer/node_modules/puppeteer-core": { "version": "19.11.1", "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-19.11.1.tgz", @@ -21630,6 +22017,7 @@ "integrity": "sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==", "dev": true, "hasInstallScript": true, + "license": "Apache-2.0", "dependencies": { "color": "^4.2.3", "detect-libc": "^2.0.2", @@ -22685,7 +23073,8 @@ "node_modules/tabbable": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz", - "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==" + "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==", + "license": "MIT" }, "node_modules/tapable": { "version": "2.2.1", diff --git a/packages/module/patternfly-docs/content/extensions/component-groups/examples/MultiContentCard/MultiContentCardExample.tsx b/packages/module/patternfly-docs/content/extensions/component-groups/examples/MultiContentCard/MultiContentCardExample.tsx index 5d0b5880..fbf70190 100644 --- a/packages/module/patternfly-docs/content/extensions/component-groups/examples/MultiContentCard/MultiContentCardExample.tsx +++ b/packages/module/patternfly-docs/content/extensions/component-groups/examples/MultiContentCard/MultiContentCardExample.tsx @@ -51,7 +51,7 @@ export const BasicExample: React.FunctionComponent = () => { , - + diff --git a/packages/module/patternfly-docs/content/extensions/component-groups/examples/MultiContentCard/MultiContentCardExpandableActionsExample.tsx b/packages/module/patternfly-docs/content/extensions/component-groups/examples/MultiContentCard/MultiContentCardExpandableActionsExample.tsx index 50c533ec..72f9b60f 100644 --- a/packages/module/patternfly-docs/content/extensions/component-groups/examples/MultiContentCard/MultiContentCardExpandableActionsExample.tsx +++ b/packages/module/patternfly-docs/content/extensions/component-groups/examples/MultiContentCard/MultiContentCardExpandableActionsExample.tsx @@ -91,8 +91,6 @@ export const BasicExample: React.FunctionComponent = () => { ]; - - const onToggleClick = () => { setMenuOpen(!isMenuOpen); }; diff --git a/packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCardExample.tsx b/packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCardExample.tsx index 7779d3cd..340162e3 100644 --- a/packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCardExample.tsx +++ b/packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCardExample.tsx @@ -3,30 +3,27 @@ import ServiceCard from "@patternfly/react-component-groups/dist/dynamic/Service import contentHeaderIcon from '../../assets/icons/content-header-icon.svg'; import { Button, ButtonVariant } from '@patternfly/react-core'; - export const BasicExample: React.FunctionComponent = () => ( } helperText='Here is helper text' footer={<> } /> diff --git a/packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCardGalleryExample.tsx b/packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCardGalleryExample.tsx index 7d7e056e..24a3afa7 100644 --- a/packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCardGalleryExample.tsx +++ b/packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCardGalleryExample.tsx @@ -30,20 +30,19 @@ export const ServiceCardGalleryExample: React.FunctionComponent = () => ( helperText='' footer={<> } /> diff --git a/packages/module/patternfly-docs/pages/index.js b/packages/module/patternfly-docs/pages/index.js index 404074c0..3ba1b4d7 100644 --- a/packages/module/patternfly-docs/pages/index.js +++ b/packages/module/patternfly-docs/pages/index.js @@ -10,7 +10,7 @@ const centerStyle = { const IndexPage = () => { return ( - +
My extension docs diff --git a/packages/module/src/CloseButton/CloseButton.tsx b/packages/module/src/CloseButton/CloseButton.tsx index 535b16e4..2921dc38 100644 --- a/packages/module/src/CloseButton/CloseButton.tsx +++ b/packages/module/src/CloseButton/CloseButton.tsx @@ -25,7 +25,7 @@ const CloseButton: React.FunctionComponent<CloseButtonProps> = ({ }: CloseButtonProps) => { const classes = useStyles(); return ( - <Button + <Button icon={<CloseIcon />} aria-label={props['aria-label'] || 'Close'} className={clsx(classes.closeButton, className)} data-test-id={dataTestID} @@ -33,9 +33,7 @@ const CloseButton: React.FunctionComponent<CloseButtonProps> = ({ variant={ButtonVariant.plain} ouiaId={ouiaId} {...props} - > - <CloseIcon /> - </Button> + /> ); }; diff --git a/packages/module/src/ContentHeader/ContentHeader.tsx b/packages/module/src/ContentHeader/ContentHeader.tsx index 61b2be14..8f06aae4 100644 --- a/packages/module/src/ContentHeader/ContentHeader.tsx +++ b/packages/module/src/ContentHeader/ContentHeader.tsx @@ -59,7 +59,7 @@ export const ContentHeader: React.FunctionComponent<React.PropsWithChildren<Cont const classes = useStyles(); return ( - <PageSection> + <PageSection hasBodyWrapper={false}> { breadcrumbs && ( <div className="pf-v6-u-mb-md"> {breadcrumbs} diff --git a/packages/module/src/ContentHeader/__snapshots__/ContentHeader.test.tsx.snap b/packages/module/src/ContentHeader/__snapshots__/ContentHeader.test.tsx.snap index 03fde7a4..9cbc1b7f 100644 --- a/packages/module/src/ContentHeader/__snapshots__/ContentHeader.test.tsx.snap +++ b/packages/module/src/ContentHeader/__snapshots__/ContentHeader.test.tsx.snap @@ -7,57 +7,6 @@ exports[`Contentheader component should render 1`] = ` <div> <section class="pf-v6-c-page__main-section" - > - <div - class="pf-v6-c-page__main-body" - > - <div - class="pf-v6-l-flex" - > - <div - class="pf-m-flex-1" - > - <div - class="pf-v6-l-split pf-m-gutter" - > - <div - class="pf-v6-l-split__item" - > - <h1 - class="pf-v6-c-content--h1 pf-v6-u-mb-sm" - data-ouia-component-id="ContentHeader-title" - data-ouia-component-type="PF6/Content" - data-ouia-safe="true" - data-pf-content="true" - > - My title - </h1> - </div> - <div - class="pf-v6-l-split__item pf-m-fill" - /> - </div> - <p - class="pf-v6-c-content--p" - data-ouia-component-id="ContentHeader-subtitle" - data-ouia-component-type="PF6/Content" - data-ouia-safe="true" - data-pf-content="true" - > - This is a subtitle for your content header - </p> - </div> - </div> - </div> - </section> - </div> - </body>, - "container": <div> - <section - class="pf-v6-c-page__main-section" - > - <div - class="pf-v6-c-page__main-body" > <div class="pf-v6-l-flex" @@ -96,6 +45,49 @@ exports[`Contentheader component should render 1`] = ` </p> </div> </div> + </section> + </div> + </body>, + "container": <div> + <section + class="pf-v6-c-page__main-section" + > + <div + class="pf-v6-l-flex" + > + <div + class="pf-m-flex-1" + > + <div + class="pf-v6-l-split pf-m-gutter" + > + <div + class="pf-v6-l-split__item" + > + <h1 + class="pf-v6-c-content--h1 pf-v6-u-mb-sm" + data-ouia-component-id="ContentHeader-title" + data-ouia-component-type="PF6/Content" + data-ouia-safe="true" + data-pf-content="true" + > + My title + </h1> + </div> + <div + class="pf-v6-l-split__item pf-m-fill" + /> + </div> + <p + class="pf-v6-c-content--p" + data-ouia-component-id="ContentHeader-subtitle" + data-ouia-component-type="PF6/Content" + data-ouia-safe="true" + data-pf-content="true" + > + This is a subtitle for your content header + </p> + </div> </div> </section> </div>, diff --git a/packages/module/src/MultiContentCard/MultiContentCard.test.tsx b/packages/module/src/MultiContentCard/MultiContentCard.test.tsx index 13b21433..cc3baa34 100644 --- a/packages/module/src/MultiContentCard/MultiContentCard.test.tsx +++ b/packages/module/src/MultiContentCard/MultiContentCard.test.tsx @@ -7,7 +7,7 @@ import MultiContentCard, { MultiContentCardDividerVariant } from './MultiContent const cards = [ <Card isFullHeight isPlain key="card-1"> <CardHeader> - <Content component={ContentVariants.h3}>Getting Started</Content> + <Content component={ContentVariants.h4}>Getting Started</Content> </CardHeader> <CardBody> <Content className="pf-v6-u-font-size-sm pf-v6-u-font-weight-bold pf-v6-u-mb-sm pf-v6-u-link-color-hover"> @@ -35,7 +35,7 @@ const cards = [ </CardFooter> </Card>, <Card isFullHeight isPlain key="card-2"> - <CardBody className="pf-v6-u-pt-3xl-on-md"> + <CardBody> <Content className="pf-v6-u-font-size-sm pf-v6-u-font-weight-bold pf-v6-u-mb-sm pf-v6-u-link-color-hover"> <Icon size="md" className="pf-v6-u-pl-sm pf-v6-u-pr-md"> <LockIcon /> @@ -59,7 +59,7 @@ const cards = [ </Card>, <Card isFullHeight isPlain key="card-3"> <CardHeader> - <Content component={ContentVariants.h3}>Next Steps</Content> + <Content component={ContentVariants.h4}>Next Steps</Content> </CardHeader> <CardBody> <Content className="pf-v6-u-font-size-sm pf-v6-u-font-weight-bold pf-v6-u-mb-sm pf-v6-u-link-color-hover"> diff --git a/packages/module/src/MultiContentCard/__snapshots__/MultiContentCard.test.tsx.snap b/packages/module/src/MultiContentCard/__snapshots__/MultiContentCard.test.tsx.snap index 6be06285..bc6de051 100644 --- a/packages/module/src/MultiContentCard/__snapshots__/MultiContentCard.test.tsx.snap +++ b/packages/module/src/MultiContentCard/__snapshots__/MultiContentCard.test.tsx.snap @@ -28,15 +28,15 @@ exports[`MultiContentCard component should render basic multi content card 1`] = <div class="pf-v6-c-card__header-main" > - <h3 - class="pf-v6-c-content--h3" + <h4 + class="pf-v6-c-content--h4" data-ouia-component-id="OUIA-Generated-Content-1" data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-pf-content="true" > Getting Started - </h3> + </h4> </div> </div> <div @@ -164,7 +164,7 @@ exports[`MultiContentCard component should render basic multi content card 1`] = id="" > <div - class="pf-v6-c-card__body pf-v6-u-pt-3xl-on-md" + class="pf-v6-c-card__body" > <div class="pf-v6-c-content pf-v6-u-font-size-sm pf-v6-u-font-weight-bold pf-v6-u-mb-sm pf-v6-u-link-color-hover" @@ -272,15 +272,15 @@ exports[`MultiContentCard component should render basic multi content card 1`] = <div class="pf-v6-c-card__header-main" > - <h3 - class="pf-v6-c-content--h3" + <h4 + class="pf-v6-c-content--h4" data-ouia-component-id="OUIA-Generated-Content-7" data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-pf-content="true" > Next Steps - </h3> + </h4> </div> </div> <div @@ -538,15 +538,15 @@ exports[`MultiContentCard component should render expandable multi content card <div class="pf-v6-c-card__header-main" > - <h3 - class="pf-v6-c-content--h3" + <h4 + class="pf-v6-c-content--h4" data-ouia-component-id="OUIA-Generated-Content-11" data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-pf-content="true" > Getting Started - </h3> + </h4> </div> </div> <div @@ -674,7 +674,7 @@ exports[`MultiContentCard component should render expandable multi content card id="" > <div - class="pf-v6-c-card__body pf-v6-u-pt-3xl-on-md" + class="pf-v6-c-card__body" > <div class="pf-v6-c-content pf-v6-u-font-size-sm pf-v6-u-font-weight-bold pf-v6-u-mb-sm pf-v6-u-link-color-hover" @@ -782,15 +782,15 @@ exports[`MultiContentCard component should render expandable multi content card <div class="pf-v6-c-card__header-main" > - <h3 - class="pf-v6-c-content--h3" + <h4 + class="pf-v6-c-content--h4" data-ouia-component-id="OUIA-Generated-Content-17" data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-pf-content="true" > Next Steps - </h3> + </h4> </div> </div> <div @@ -1015,15 +1015,15 @@ exports[`MultiContentCard component should render multi content card with a sing <div class="pf-v6-c-card__header-main" > - <h3 - class="pf-v6-c-content--h3" + <h4 + class="pf-v6-c-content--h4" data-ouia-component-id="OUIA-Generated-Content-31" data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-pf-content="true" > Getting Started - </h3> + </h4> </div> </div> <div @@ -1151,7 +1151,7 @@ exports[`MultiContentCard component should render multi content card with a sing id="" > <div - class="pf-v6-c-card__body pf-v6-u-pt-3xl-on-md" + class="pf-v6-c-card__body" > <div class="pf-v6-c-content pf-v6-u-font-size-sm pf-v6-u-font-weight-bold pf-v6-u-mb-sm pf-v6-u-link-color-hover" @@ -1262,15 +1262,15 @@ exports[`MultiContentCard component should render multi content card with a sing <div class="pf-v6-c-card__header-main" > - <h3 - class="pf-v6-c-content--h3" + <h4 + class="pf-v6-c-content--h4" data-ouia-component-id="OUIA-Generated-Content-37" data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-pf-content="true" > Next Steps - </h3> + </h4> </div> </div> <div @@ -1397,15 +1397,15 @@ exports[`MultiContentCard component should render multi content card with divide <div class="pf-v6-c-card__header-main" > - <h3 - class="pf-v6-c-content--h3" + <h4 + class="pf-v6-c-content--h4" data-ouia-component-id="OUIA-Generated-Content-21" data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-pf-content="true" > Getting Started - </h3> + </h4> </div> </div> <div @@ -1536,7 +1536,7 @@ exports[`MultiContentCard component should render multi content card with divide id="" > <div - class="pf-v6-c-card__body pf-v6-u-pt-3xl-on-md" + class="pf-v6-c-card__body" > <div class="pf-v6-c-content pf-v6-u-font-size-sm pf-v6-u-font-weight-bold pf-v6-u-mb-sm pf-v6-u-link-color-hover" @@ -1647,15 +1647,15 @@ exports[`MultiContentCard component should render multi content card with divide <div class="pf-v6-c-card__header-main" > - <h3 - class="pf-v6-c-content--h3" + <h4 + class="pf-v6-c-content--h4" data-ouia-component-id="OUIA-Generated-Content-27" data-ouia-component-type="PF6/Content" data-ouia-safe="true" data-pf-content="true" > Next Steps - </h3> + </h4> </div> </div> <div diff --git a/packages/module/src/ServiceCard/ServiceCard.tsx b/packages/module/src/ServiceCard/ServiceCard.tsx index 60985f18..4a33bb3a 100644 --- a/packages/module/src/ServiceCard/ServiceCard.tsx +++ b/packages/module/src/ServiceCard/ServiceCard.tsx @@ -1,15 +1,15 @@ import React from 'react'; -import { Card, CardBody, CardFooter, CardHeader, Text, TextContent, TextVariants, Flex, FlexItem, CardProps } from '@patternfly/react-core'; +import { Card, CardBody, CardFooter, CardHeader, Content, ContentVariants, Flex, FlexItem } from '@patternfly/react-core'; import { HelperText } from '@patternfly/react-core/dist/dynamic/components/HelperText'; import { HelperTextItem } from '@patternfly/react-core/dist/dynamic/components/HelperText'; import { createUseStyles } from 'react-jss'; import clsx from 'clsx'; -export interface ServiceCardProps extends CardProps { +export interface ServiceCardProps { /** Service card title */ title: string; - /** Optional Service card subtitle */ - subtitle?: string; + /** Service card subtitle */ + subtitle: string; /** Service card description */ description: string; /** Service card icon */ @@ -31,7 +31,7 @@ const useStyles = createUseStyles({ height: '100%' }, image: { - marginRight: 'var(--pf-v5-global--spacer--md)', + marginRight: 'var(--pf-t--global--spacer--md)', width: 48 } }); @@ -58,10 +58,10 @@ const ServiceCard: React.FunctionComponent<ServiceCardProps> = ({ {icon} </FlexItem> <FlexItem> - <TextContent> - <Text component={TextVariants.h2} ouiaId={`${ouiaId}-title`}>{title}</Text> - {subtitle ? subtitle : null} - </TextContent> + <Content> + <Content component={ContentVariants.h2} ouiaId={`${ouiaId}-title`}>{title}</Content> + {subtitle ?? null} + </Content> </FlexItem> </Flex> </CardHeader> @@ -70,7 +70,7 @@ const ServiceCard: React.FunctionComponent<ServiceCardProps> = ({ <CardFooter data-ouia-component-id={`${ouiaId}-footer`}> { helperText ? ( <HelperText data-ouia-component-id={`${ouiaId}-helper-text`}> - <HelperTextItem variant="indeterminate" className="pf-v5-u-mb-lg"> + <HelperTextItem className="pf-v6-u-mb-lg"> {helperText} </HelperTextItem> </HelperText>) : null diff --git a/packages/module/src/ServiceCard/__snapshots__/ServiceCard.test.tsx.snap b/packages/module/src/ServiceCard/__snapshots__/ServiceCard.test.tsx.snap index 1c3d8882..d7b1b9ab 100644 --- a/packages/module/src/ServiceCard/__snapshots__/ServiceCard.test.tsx.snap +++ b/packages/module/src/ServiceCard/__snapshots__/ServiceCard.test.tsx.snap @@ -1,110 +1,110 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`ServiceCard component should render ServiceCard component 1`] = ` +exports[`LogSnippet component should render LogSnippet component 1`] = ` { "asFragment": [Function], "baseElement": <body> <div> <div - class="pf-v5-c-card" + class="pf-v6-c-card card-0-2-1" data-ouia-component-id="ServiceCard-card" - data-ouia-component-type="PF5/Card" + data-ouia-component-type="PF6/Card" data-ouia-safe="true" id="" > <div - class="pf-v5-c-card__header" + class="pf-v6-c-card__header" > <div - class="pf-v5-c-card__header-main" + class="pf-v6-c-card__header-main" > <div - class="pf-v5-l-flex pf-m-row pf-m-align-items-center" + class="image-0-2-2" > - <div - class="image-0-2-2" - > - / - </div> - <div - class="" + / + </div> + <div + class="pf-v6-c-content" + data-ouia-component-id="OUIA-Generated-Content-1" + data-ouia-component-type="PF6/Content" + data-ouia-safe="true" + data-pf-content="true" + > + <h2 + class="pf-v6-c-content--h2" + data-ouia-component-id="ServiceCard-title" + data-ouia-component-type="PF6/Content" + data-ouia-safe="true" + data-pf-content="true" > - <div - class="pf-v5-c-content" - > - <h2 - class="" - data-ouia-component-id="ServiceCard-title" - data-ouia-component-type="PF5/Text" - data-ouia-safe="true" - data-pf-content="true" - > - Example - </h2> - A basic example - </div> - </div> + Example + </h2> + A basic example </div> </div> </div> <div - class="pf-v5-c-card__body" + class="pf-v6-c-card__body" data-ouia-component-id="ServiceCard-description" > This is a basic ServiceCard Example </div> + <div + class="pf-v6-c-card__footer" + data-ouia-component-id="ServiceCard-footer" + /> </div> </div> </body>, "container": <div> <div - class="pf-v5-c-card" + class="pf-v6-c-card card-0-2-1" data-ouia-component-id="ServiceCard-card" - data-ouia-component-type="PF5/Card" + data-ouia-component-type="PF6/Card" data-ouia-safe="true" id="" > <div - class="pf-v5-c-card__header" + class="pf-v6-c-card__header" > <div - class="pf-v5-c-card__header-main" + class="pf-v6-c-card__header-main" > <div - class="pf-v5-l-flex pf-m-row pf-m-align-items-center" + class="image-0-2-2" > - <div - class="image-0-2-2" - > - / - </div> - <div - class="" + / + </div> + <div + class="pf-v6-c-content" + data-ouia-component-id="OUIA-Generated-Content-1" + data-ouia-component-type="PF6/Content" + data-ouia-safe="true" + data-pf-content="true" + > + <h2 + class="pf-v6-c-content--h2" + data-ouia-component-id="ServiceCard-title" + data-ouia-component-type="PF6/Content" + data-ouia-safe="true" + data-pf-content="true" > - <div - class="pf-v5-c-content" - > - <h2 - class="" - data-ouia-component-id="ServiceCard-title" - data-ouia-component-type="PF5/Text" - data-ouia-safe="true" - data-pf-content="true" - > - Example - </h2> - A basic example - </div> - </div> + Example + </h2> + A basic example </div> </div> </div> <div - class="pf-v5-c-card__body" + class="pf-v6-c-card__body" data-ouia-component-id="ServiceCard-description" > This is a basic ServiceCard Example </div> + <div + class="pf-v6-c-card__footer" + data-ouia-component-id="ServiceCard-footer" + /> </div> </div>, "debug": [Function], diff --git a/packages/module/src/TagCount/TagCount.tsx b/packages/module/src/TagCount/TagCount.tsx index a9b6381f..c5b7e122 100644 --- a/packages/module/src/TagCount/TagCount.tsx +++ b/packages/module/src/TagCount/TagCount.tsx @@ -42,12 +42,22 @@ const TagCount: React.FunctionComponent<TagCountProps> = ({ const classes = useStyles(!count); const tagClasses = clsx(classes.buttonTagCount, className); return ( - <Button aria-label="Tag count" {...props} variant="plain" isDisabled={!count} className={tagClasses} ouiaId={ouiaId} {...props}> - <Icon iconSize={iconSize} data-ouia-component-id={`${ouiaId}-icon`}> - <TagIcon className={classes.tagIcon} /> - </Icon> - <span className={classes.tagText} data-ouia-component-id={`${ouiaId}-text`}>{count}</span> - </Button> + <Button + icon={ + <> + <Icon iconSize={iconSize} data-ouia-component-id={`${ouiaId}-icon`}> + <TagIcon className={classes.tagIcon} /> + </Icon> + <span className={classes.tagText} data-ouia-component-id={`${ouiaId}-text`}>{count}</span> + </> + } + aria-label="Tag count" + {...props} + variant="plain" + isDisabled={!count} + className={tagClasses} + ouiaId={ouiaId} + /> ); }; diff --git a/packages/module/src/TagCount/__snapshots__/TagCount.test.tsx.snap b/packages/module/src/TagCount/__snapshots__/TagCount.test.tsx.snap index 36e2bd5f..0360027f 100644 --- a/packages/module/src/TagCount/__snapshots__/TagCount.test.tsx.snap +++ b/packages/module/src/TagCount/__snapshots__/TagCount.test.tsx.snap @@ -16,7 +16,7 @@ exports[`TagCount component should render a disabled tag count with no value 1`] type="button" > <span - class="pf-v6-c-button__text" + class="pf-v6-c-button__icon pf-m-start" > <span class="pf-v6-c-icon" @@ -60,7 +60,7 @@ exports[`TagCount component should render a disabled tag count with no value 1`] type="button" > <span - class="pf-v6-c-button__text" + class="pf-v6-c-button__icon pf-m-start" > <span class="pf-v6-c-icon" @@ -160,7 +160,7 @@ exports[`TagCount component should render a tag count of 11 1`] = ` type="button" > <span - class="pf-v6-c-button__text" + class="pf-v6-c-button__icon pf-m-start" > <span class="pf-v6-c-icon" @@ -205,7 +205,7 @@ exports[`TagCount component should render a tag count of 11 1`] = ` type="button" > <span - class="pf-v6-c-button__text" + class="pf-v6-c-button__icon pf-m-start" > <span class="pf-v6-c-icon"