Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
140d089
feat(Tearsheet): Initial scaffolding from sample impl in core patternfly
GAUNSD Jul 8, 2026
05ab49f
chore: Migrate tearsheet.css to proper JSS use
GAUNSD Jul 8, 2026
af55c44
chore: Port doc examples
GAUNSD Jul 8, 2026
d93b8fe
fix: Build os-agnostic
GAUNSD Jul 8, 2026
690e2fe
fix: Build and props
GAUNSD Jul 8, 2026
d0be617
fix: top not working with insetBlockStart because of JSS ordering
GAUNSD Jul 8, 2026
97ac9f5
chore: Tweaks - Bottom border radius, example docs, scrolling
GAUNSD Jul 9, 2026
0047ae8
doc: Update syntax of code blocks
GAUNSD Jul 9, 2026
fe6c124
chore: Cleanup
GAUNSD Jul 10, 2026
dc5872d
chore: Update dependencies (PR feedback)
GAUNSD Aug 31, 2026
2b15f3a
chore: Cleanup Tearsheet.md (PR feedback)
GAUNSD Aug 31, 2026
8c3a3af
chore: Update Tearsheet prop wording (PR feedback)
GAUNSD Aug 31, 2026
006ef20
chore: Add `modalProps` and spread (PR feedback)
GAUNSD Aug 31, 2026
c28bee9
chore: Remove animated comment (PR feedback)
GAUNSD Aug 31, 2026
a1e3e0d
chore: Remove outdated styles (PR feedback)
GAUNSD Aug 31, 2026
7e710d6
chore: Add `children` prop (PR feedback)
GAUNSD Aug 31, 2026
d49bd2e
chore: Remove comment (PR feedback)
GAUNSD Aug 31, 2026
bc162d6
chore: Add better id prop if missing (PR feedback)
GAUNSD Aug 31, 2026
b27939d
Merge branch 'gmurcia/tearsheet' of github.com:GAUNSD/react-component…
GAUNSD Aug 31, 2026
57f179b
chore: Update Tearsheet documentation (PR feedback)
GAUNSD Aug 31, 2026
fdfe55e
chore: Update Tearsheet documentation (PR feedback)
GAUNSD Aug 31, 2026
b6ec74b
chore: Update Tearsheet documentation (PR feedback)
GAUNSD Aug 31, 2026
c573ef2
Merge branch 'gmurcia/tearsheet' of github.com:GAUNSD/react-component…
GAUNSD Aug 31, 2026
d801d0c
chore: Update Tearsheet documentation (PR feedback)
GAUNSD Aug 31, 2026
fb38940
chore: Remove infinite stacking from Tearsheet doc (PR feedback)
GAUNSD Aug 31, 2026
11fb33c
chore: Cleanup variant prop use (PR feedback)
GAUNSD Aug 31, 2026
3bf275b
chore: Update Tearsheet doc example (PR feedback)
GAUNSD Aug 31, 2026
2bce77b
chore: Cleanup styles (PR feedback)
GAUNSD Aug 31, 2026
4d42ce1
chore: Cleanup styles (PR feedback)
GAUNSD Aug 31, 2026
f306ffc
Merge branch 'gmurcia/tearsheet' of github.com:GAUNSD/react-component…
GAUNSD Aug 31, 2026
29bc935
chore: Cleanup styles (PR feedback)
GAUNSD Aug 31, 2026
c56f4e4
chore: Update Tearsheet styles (PR feedback)
GAUNSD Aug 31, 2026
bb7a752
fix: TS and Imports
GAUNSD Aug 31, 2026
a9a1f54
Merge branch 'main' into gmurcia/tearsheet
GAUNSD Sep 1, 2026
1d9a441
chore: Update Tearsheet documentation (PR feedback)
GAUNSD Sep 1, 2026
50eaa85
chore: Update Tearsheet prop description (PR feedback)
GAUNSD Sep 1, 2026
4ccb3fc
chore: Update Tearsheet documentation (PR feedback)
GAUNSD Sep 1, 2026
cad6f9f
chore: Remove empty instances of useStyles (PR feedback)
GAUNSD Sep 1, 2026
6e1a4c6
chore: Update Tearsheet styles (PR feedback)
GAUNSD Sep 1, 2026
4c9cf03
chore: Update jest snapshots
GAUNSD Sep 1, 2026
fc3e5e7
fix: Lint
GAUNSD Sep 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Please reference [PatternFly's AI-assisted development guidelines](https://githu
### Before adding a new component:

- make sure your use case is new/complex enough to be added to this extension
- the component should bring a value value above and beyond existing PatternFly components
- the component should bring a value above and beyond existing PatternFly components

### To add a new component:

Expand All @@ -40,7 +40,7 @@ Please reference [PatternFly's AI-assisted development guidelines](https://githu

#### Example component:

```
``` TSX
import * as React from 'react';
import { Content } from '@patternfly/react-core';
import { createUseStyles } from 'react-jss';
Expand Down Expand Up @@ -75,7 +75,7 @@ export default MyComponent;

#### Index file example:

```
``` TSX
export { default } from './MyComponent';
export * from './MyComponent';
```
Expand All @@ -99,8 +99,7 @@ src

#### Component API definition example:

```

``` TSX
import { FunctionComponent } from 'react';

// when possible, extend available PatternFly types
Expand All @@ -113,7 +112,7 @@ export const MyComponent: FunctionComponent<MyComponentProps> = ({ customLabel,

#### Markdown file example:

````
```` MDX
---
section: Component groups
subsection: My component's category
Expand All @@ -135,7 +134,7 @@ MyComponent has been created to demo contributing to this repository.

#### Component usage file example: (`MyComponentExample.tsx`)

```
``` TSX
import { FunctionComponent } from 'react';

const MyComponentExample: FunctionComponent = () => (
Expand Down
109 changes: 56 additions & 53 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"whatwg-fetch": "^3.6.20"
},
"dependencies": {
"@patternfly/react-drag-drop": "^6.0.0",
"@patternfly/react-drag-drop": "^6.6.2",
"@patternfly/react-tokens": "^6.0.0",
"sharp": "^0.34.0"
}
Expand Down
24 changes: 12 additions & 12 deletions packages/module/generate-fed-package-json.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const fse = require('fs-extra');
const { globSync } = require('glob');
const path = require('path');
const { default: getDynamicModuleMap } = require('../../scripts/parse-dynamic-modules.mjs');
const { toPosixPath, posixGlobSync, posixRelative } = require('./utils');

const root = process.cwd();
const root = toPosixPath(process.cwd());

const sourceFiles = globSync(`${root}/src/*/`)
const sourceFiles = posixGlobSync(`${root}/src/*/`)
.map((name) => name.replace(/\/$/, ''));
const indexTypings = globSync(`${root}/src/index.d.ts`);

const indexTypings = posixGlobSync(`${root}/src/index.d.ts`);

const ENV_AGNOSTIC_ROOT = `${root}/dist/dynamic`

Expand All @@ -23,9 +23,9 @@ async function copyTypings(files, dest) {

async function createPackage(file) {
const fileName = file.split('/').pop();
const esmSource = globSync(`${root}/dist/esm/${fileName}/**/index.js`)[0];
const cjsSource = globSync(`${root}/dist/cjs/${fileName}/**/index.js`)[0];
const typingsSource = globSync(`${root}/dist/esm/${fileName}/**/index.d.ts`)[0]
const esmSource = posixGlobSync(`${root}/dist/esm/${fileName}/**/index.js`)[0];
const cjsSource = posixGlobSync(`${root}/dist/cjs/${fileName}/**/index.js`)[0];
const typingsSource = posixGlobSync(`${root}/dist/esm/${fileName}/**/index.d.ts`)[0]
/**
* Prevent creating package.json for directories with no JS files (like CSS directories)
*/
Expand All @@ -39,14 +39,14 @@ async function createPackage(file) {
// ensure the directory exists
fse.ensureDirSync(destDir)

const esmRelative = path.relative(file, esmSource).replace('/dist', '');
const cjsRelative = path.relative(file, cjsSource).replace('/dist', '');
const tsRelative = path.relative(file, typingsSource).replace('/dist', '')
const esmRelative = posixRelative(file, esmSource).replace('/dist', '');
const cjsRelative = posixRelative(file, cjsSource).replace('/dist', '');
const tsRelative = posixRelative(file, typingsSource).replace('/dist', '')
const content = {
main: cjsRelative,
module: esmRelative,
};
const typings = globSync(`${root}/src/${fileName}/*.d.ts`);
const typings = posixGlobSync(`${root}/src/${fileName}/*.d.ts`);
const cmds = [];
content.typings = tsRelative;
cmds.push(copyTypings(typings, `${root}/dist/${fileName}`));
Expand Down
4 changes: 2 additions & 2 deletions packages/module/generate-index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const fse = require('fs-extra');
const { globSync } = require('glob');
const path = require('path');
const { posixGlobSync } = require('./utils');

const root = process.cwd();

const ENV_AGNOSTIC_ROOT = `${root}/src`

const sourceFiles = globSync(path.resolve(__dirname, './src/*/index.ts'))
const sourceFiles = posixGlobSync(path.resolve(__dirname, './src/*/index.ts'))

async function generateIndex(files) {
// ensure the dynamic root exists
Expand Down
10 changes: 5 additions & 5 deletions packages/module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@
"tag": "alpha"
},
"dependencies": {
"@patternfly/react-core": "^6.0.0",
"@patternfly/react-core": "^6.6.2",
"@patternfly/react-icons": "^6.0.0",
"@patternfly/react-styles": "^6.0.0",
"@patternfly/react-table": "^6.0.0",
"@patternfly/react-table": "^6.6.2",
"react-jss": "^10.10.0"
},
"peerDependencies": {
"@patternfly/react-drag-drop": "^6.0.0",
"@patternfly/react-drag-drop": "^6.6.2",
"react": "^17 || ^18 || ^19",
"react-dom": "^17 || ^18 || ^19"
},
"devDependencies": {
"@patternfly/patternfly-a11y": "^5.1.0",
"@patternfly/documentation-framework": "^6.5.16",
"@patternfly/react-code-editor": "^6.0.0",
"@patternfly/patternfly": "^6.0.0",
"@patternfly/patternfly-a11y": "^5.1.0",
"@patternfly/react-code-editor": "^6.6.2",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.3.1",
"react": "^18.3.1",
Expand Down
Loading
Loading