* update package.json
* codemod scoped-jsx
* refobject-defaults
* Fix some tests
* Lint
* Move import after license comment
* Fix test types for a wrapper of Button
I couldn't get it to work when destructuring rest props, e.g.:
const { size, children, ...buttonProps } = props;
so for now I just removed it altogether. I don't know why it works
in ForwardedAsWrapper, I suppose it has to do either with the css prop
passed to ButtonPrimary? Or maybe the forwardedAs prop accepted by
ForwardedAsWrapper?
* revert most ReactElement<any>
* Fix tests
* Remove extra useEffect from useTable
* Pass null to useRef when dealing with DOM elements
* Bring back just `ReactElement` without `<any>` where possible
* Remove defaultProps
* pnpm dedupe
* revert test and fix stories
* Import JSX in StatusInfo.tsx
---------
Co-authored-by: Grzegorz Zdunek <grzegorz.zdunek@goteleport.com>
Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
Co-authored-by: Lisa Kim <lisa@goteleport.com>
* Fix simple issues: missing types and null checks
* Unify `size` values between `Icon` and `Button`
`IconSize` allowed `extraLarge` and `ButtonSize` allowed `extra-large`. Now both use `extra-large`.
* Improve `DataTable` types
The most important change is that `onSort` callback now provides the entire `T` objects, instead of just the values for a given column. This has two advantages:
* it's easier to add proper types for it,
* allows the callsites to sort by a different field, so we will be able to remove `altSortKey` that was introduced just for this purpose.
* Rewrite `Indicator` to a functional component
* Make `Modal` and `Popover` strict
* Remove unneeded `PropTypes` from `LabelInput` and convert it to TS
* Make `StepSlider` strict
* Fix non-existing color
* Map `Event.time` to `Date` object to match its type
After adding `Cell` types, we are no longer able to render `time` directly since it has `Date` type. But how did it even work? It turned out that it was just a string, not a Date.
`toISOString` renders the cell in the same format as before.
* Enable `strict` for `web/design` 🎉
* Enable `noImplicitReturns`
* Make `dialogCss` non-optional
* Add `LabelStatePropsWithoutKind`
* Improve displaying `copyToClipboard` error
* Simplify `dateMatcher` and `dateTimeMatcher`
* `DataTable` related fixes
* Add a comment about non-null assertions
* Use `Theme` instead of `DefaultTheme`
* Return `null` instead of `undefined` from `dialogEl`
* Update `e`
* Finalize switch to the new typography
Implements H3 and beyond, new subitiles, new text body styles, and paragraphs.
* Update snapshots
* Change the resource enrollment workflow headings to H1
* Minor tweaks
- Set body2 line height to 24px
- Set input font weight to 300
- Correct the typography of small text in a couple of places
* Update snapshots
* Fix ResourceIcon story
* Adjust Connect to light theme
* Remove `clusters/*` element
* Add terminal colors
* Remove warning about using `false` as `color`
* Add custom styling for `Toggle`
* Fix light theme for file transfer, use the same border color for the drop area as for the input
* Do not hardcode color in `CliCommand`
* Use #000 as black
* Convert rgba colors to be non-opaque
* Fix two slightly incorrect colors