@wordpress/ui 0.2.0

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.
@@ -0,0 +1,27 @@
1
+ # Contributing
2
+
3
+ The following guidance builds upon the existing [contribution guidelines for `@wordpress/components`](https://github.com/WordPress/gutenberg/blob/trunk/packages/components/CONTRIBUTING.md), which should serve as a starting point for contribution. The documentation included here encodes decisions and technical approaches which are unique to this package.
4
+
5
+ ## Folder Structure
6
+
7
+ Each component should be organized within its own folder under `src/` following this pattern:
8
+
9
+ ```text
10
+ src/
11
+ └── component-name/
12
+ ├── index.ts // Contains only exported public API
13
+ ├── component-name.tsx // Main component matching the folder name (when applicable)
14
+ ├── other-component.tsx // Any other ancillary / compound components
15
+ ├── types.ts // TypeScript type definitions for all components in this folder
16
+ ├── style.module.css // Styles for all components in this folder
17
+ ├── stories/
18
+ │ ├── *.mdx // Storybook documentation files (optional)
19
+ │ └── index.story.tsx // Storybook stories for all components in this folder
20
+ └── test/
21
+ └── component-name.test.tsx // Tests for base component and all compound components
22
+ ```
23
+
24
+ ### Folder Structure Guidelines
25
+
26
+ - The folder name should match the primary component name
27
+ - The `index.ts` file should contain only the public API exports for the component(s)