@theroutingcompany/components 0.0.9 → 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 +8 -0
- package/dist/trc-components.es.js +8671 -6335
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +385 -240
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/types/components/Dialog/Dialog.d.ts +5 -6
- package/types/components/FileUpload/FileUpload.d.ts +2 -2
- package/types/components/Input/InputBase.d.ts +1 -1
- package/types/components/Label/Label.d.ts +5 -4
- package/types/components/Tabs/Tabs.d.ts +1 -0
- package/types/components/index.d.ts +4 -1
- package/types/helpers/typeHelpers.d.ts +1 -1
- package/types/components/Flex.d.ts +0 -0
- package/types/components/ProgressBar/ProgressBar.d.ts +0 -7
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# TRC TREX Component Library
|
|
2
2
|
|
|
3
|
+
View the [StoryBook](https://6392297e45ccab79e466ee19-iytnzjepcr.chromatic.com/).
|
|
4
|
+
|
|
3
5
|
## UI Libraries
|
|
4
6
|
|
|
5
7
|
The component library is built on the following 'component primitives' UI libraries, low-level unstyled building blocks.
|
|
@@ -39,6 +41,12 @@ Partly inspired by these
|
|
|
39
41
|
* [Notes on maintaining an internal React component library](https://www.gabe.pizza/notes-on-component-libraries/)
|
|
40
42
|
* [Component API Standards](https://jonambas.com/posts/component-api-standards)
|
|
41
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
|
+
|
|
42
50
|
### For content, prefer composition over props
|
|
43
51
|
|
|
44
52
|
- ❌ `<Text variant="body" text="Some text" />`
|