@theroutingcompany/components 0.0.88-alpha.6 → 0.0.89

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.
Files changed (26) hide show
  1. package/README.md +13 -4
  2. package/dist/trc-components.es.js +20261 -19729
  3. package/dist/trc-components.es.js.map +1 -1
  4. package/dist/trc-components.umd.js +601 -601
  5. package/dist/trc-components.umd.js.map +1 -1
  6. package/dist/tsconfig.tsbuildinfo +1 -1
  7. package/package.json +1 -1
  8. package/types/components/Box/Box.d.ts +0 -1
  9. package/types/components/Calendar/Calendar.d.ts +5 -0
  10. package/types/components/Calendar/TimeDateSelect.d.ts +31 -0
  11. package/types/components/{InputDateTime/Calendar → Calendar}/index.d.ts +1 -0
  12. package/types/components/Input/DateInput/DateInput.d.ts +18 -0
  13. package/types/components/Input/InlineEdit/InlineEdit.d.ts +4 -0
  14. package/types/components/Input/TimeInput/TimeInput.d.ts +15 -0
  15. package/types/components/ListBox/ListBox.d.ts +1 -0
  16. package/types/components/SingleSelect/SingleSelect.d.ts +1 -1
  17. package/types/components/Table/Table.d.ts +4 -0
  18. package/types/components/index.d.ts +3 -3
  19. package/types/components/InputDateTime/Calendar/Calendar.d.ts +0 -7
  20. package/types/components/InputDateTime/DateTimeInput/DateTimeInput.d.ts +0 -35
  21. package/types/components/InputDateTime/DateTimeInput/TimeList.d.ts +0 -9
  22. package/types/components/InputDateTime/TimeInput/TimeInput.d.ts +0 -20
  23. /package/types/components/{InputDateTime/Calendar → Calendar}/CalendarCell.d.ts +0 -0
  24. /package/types/components/{InputDateTime/Calendar → Calendar}/CalendarGrid.d.ts +0 -0
  25. /package/types/components/{InputDateTime/Calendar → Calendar}/CalendarHeader.d.ts +0 -0
  26. /package/types/components/{InputDateTime/Calendar → Calendar}/RangeCalendar.d.ts +0 -0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TRC TREX Component Library
2
2
 
3
- View the [StoryBook](design.dev.trc.dev).
3
+ View the [StoryBook](https://component-library-poxjaz55ba-uc.a.run.app/).
4
4
 
5
5
  ## Developing Locally
6
6
 
@@ -43,9 +43,12 @@ npm run ready:release
43
43
 
44
44
  ## UI Libraries
45
45
 
46
- The component library is built on react-aria. Please migrate components away from Radix to react-aria if you have time.
46
+ The component library is built on the following 'component primitive' UI libraries, low-level unstyled building blocks.
47
47
 
48
48
  - [react-aria](https://react-spectrum.adobe.com/react-aria/why.html)
49
+ - [RadixUI](https://www.radix-ui.com/docs/primitives/overview/introduction)
50
+
51
+ They are similar in spirit but take a slightly different approach. Radix follows a component-based approach, while react-aria takes a hook-based approach. Either is acceptable if the solution meets the UI/UX requirements we need.
49
52
 
50
53
  ## Styling
51
54
 
@@ -73,15 +76,21 @@ Similar to last point. Compound/composed components scale better.
73
76
 
74
77
 
75
78
  ```jsx
76
- <ConfirmationModal
79
+ <AlertDialog
77
80
  title='Header'
81
+ description='Optional description'
82
+ cancelButtonText='Close'
83
+ onCancel={() => {}}
84
+ confirmButtonText='Delete'
85
+ confirmButtonVariant='primary'
86
+ onDelete={() => {}}
78
87
  // ... and so on
79
88
  >
80
89
  <Text>
81
90
  Powering the next generation of transit We help build more sustainable
82
91
  cities with convenient and reliable transit for all
83
92
  </Text>
84
- </ConfirmationModal>
93
+ </AlertDialog>
85
94
  ```
86
95
 
87
96