@theroutingcompany/components 0.0.10 → 0.0.11
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.
- package/README.md +6 -0
- package/dist/trc-components.es.js +4582 -4391
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +192 -184
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -2
- package/types/components/Input/InputBase.d.ts +1 -1
- package/types/components/Label/Label.d.ts +3 -3
- package/types/components/index.d.ts +1 -0
- package/types/components/Flex.d.ts +0 -0
- package/types/components/ProgressBar/ProgressBar.d.ts +0 -7
package/README.md
CHANGED
|
@@ -41,6 +41,12 @@ Partly inspired by these
|
|
|
41
41
|
* [Notes on maintaining an internal React component library](https://www.gabe.pizza/notes-on-component-libraries/)
|
|
42
42
|
* [Component API Standards](https://jonambas.com/posts/component-api-standards)
|
|
43
43
|
|
|
44
|
+
### Start Simple
|
|
45
|
+
|
|
46
|
+
Or the “Principle of Least Power”.
|
|
47
|
+
|
|
48
|
+
For example, don’t start building a table component that covers many use-cases. Instead start with just the reusable parts of the table that can be shared between many use-cases.
|
|
49
|
+
|
|
44
50
|
### For content, prefer composition over props
|
|
45
51
|
|
|
46
52
|
- ❌ `<Text variant="body" text="Some text" />`
|