Skip to content

Commit

Permalink
Components: Remove unused components from /ui (#52953)
Browse files Browse the repository at this point in the history
* Components: Remove unused components from `/ui`

* Update readme

* Add changelog
  • Loading branch information
mirka authored Aug 4, 2023
1 parent 284455b commit c5cb220
Show file tree
Hide file tree
Showing 42 changed files with 7 additions and 1,940 deletions.
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

- `Modal`: Fix loss of focus when clicking outside ([#52653](https://github.com/WordPress/gutenberg/pull/52653)).

### Internal

- `ControlGroup`, `FormGroup`, `ControlLabel`, `Spinner`: Remove unused `ui/` components from the codebase ([#52953](https://github.com/WordPress/gutenberg/pull/52953)).

## 25.4.0 (2023-07-20)

### Enhancements
Expand Down
23 changes: 3 additions & 20 deletions packages/components/src/ui/README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
# (Next) Component System
# TODO

This directory contains the code for next Component System.
We want to get rid of this folder. Don't add anything new here.

More information can be found in the original GitHub issue:
https://github.com/WordPress/gutenberg/issues/27484

## Usage

(This is still very much a work in progress)

```jsx
import { Text, View } from '@wordpress/components/ui';

function Example() {
return (
<View>
<Text>Code is Poetry</Text>
</View>
);
}
```
What is left of this folder should either be deleted (if unused elsewhere), or be moved into the root `packages/components/src` and `packages/components/src/utils` folders.
23 changes: 0 additions & 23 deletions packages/components/src/ui/control-group/README.md

This file was deleted.

75 changes: 0 additions & 75 deletions packages/components/src/ui/control-group/component.js

This file was deleted.

8 changes: 0 additions & 8 deletions packages/components/src/ui/control-group/context.js

This file was deleted.

93 changes: 0 additions & 93 deletions packages/components/src/ui/control-group/hook.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/components/src/ui/control-group/index.js

This file was deleted.

43 changes: 0 additions & 43 deletions packages/components/src/ui/control-group/styles.js

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions packages/components/src/ui/control-group/test/index.js

This file was deleted.

29 changes: 0 additions & 29 deletions packages/components/src/ui/control-group/types.ts

This file was deleted.

Loading

0 comments on commit c5cb220

Please sign in to comment.