Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump React component library dependencies #468

Merged
merged 14 commits into from
Aug 22, 2024

Conversation

ty2k
Copy link
Contributor

@ty2k ty2k commented Aug 22, 2024

This bumps the React component libraries to latest where possible. Of note:

  • react-aria-components moves to v1.3.3
  • @bcgov/design-tokens moves to v3.1.0
  • ESLint is stuck at v8 for now because of peer dependencies

Some new commits related to tests:

  • 9032eac Test for Button classes. I started this work while trying to test the specific value of the design tokens being applied, but this is much harder than anticipated with Jest/JSDOM (I could only read the generic ButtonFace CSS rule, not our design token colors). I started down the road of replacing Jest with Vitest because of how slow and wonky Jest is, but I found the existing Button tests wouldn't "just work" in Vitest yet because of differences in the expect() API between Jest and Vitest. There is a branch test/vitest where I've started down the replacement path, but it's not ready for prime time.
  • 32a73d6 Add tests for ButtonGroup.
  • 466bce7 Lint step gets added to the GitHub Actions workflow that runs the test suites for the React component library. I found that there was a new failing lint rule in the Form component interface, and I fixed that in 50c5bb0. Right now there are no lint rules failing.

@ty2k ty2k added the dependencies Pull requests that update a dependency file label Aug 22, 2024
@ty2k ty2k added this to the Components v0.2.0 milestone Aug 22, 2024
@ty2k ty2k requested a review from mkernohanbc August 22, 2024 22:51
@ty2k ty2k self-assigned this Aug 22, 2024
@ty2k ty2k merged commit 9f1e8c2 into main Aug 22, 2024
4 checks passed
@ty2k ty2k deleted the feature/bump-react-component-library-deps branch August 22, 2024 23:27
mkernohanbc pushed a commit that referenced this pull request Aug 23, 2024
…ry-deps

Bump React component library dependencies
mkernohanbc added a commit that referenced this pull request Aug 23, 2024
@ty2k ty2k mentioned this pull request Aug 27, 2024
mkernohanbc added a commit that referenced this pull request Sep 11, 2024
* scaffolding Checkbox and CheckboxGroup components

* roughing out component styling

* component styling

* isSelected and isIndeterminate state handling

* roughing out CheckboxGroup

* refining Checkbox and CheckboxGroup styling

* CheckboxGroup error handling

* fiddling with styling

* slow, grinding progress

* fix isSelected/isIndeterminate styling collision

* required and error handling

* stories and docs

* cleaning up checkbox and label positioning

* fleshing out checkbox stories and docs

* add selected + invalid style

* expanding checkboxgroup docs and stories

* further docs and stories expansion

* Merge pull request #468 from bcgov/feature/bump-react-component-library-deps

Bump React component library dependencies

* Revert "Merge pull request #468 from bcgov/feature/bump-react-component-library-deps"

This reverts commit 60c564b.

* update Checkbox to use 3.1.0 tokens

* Add controlled checkbox example to Vite kitchensink app

* Move cursor CSS rules to Checkbox container (label) component

* Fix typos in Checkbox stories

* Disabled Checkbox label gets disabled font color

* Add Checkbox styling for isDisabled + isIndeterminate state

* Add Checkbox styling for isIndeterminate + isInvalid state

* Change Checkbox flex container gap to 10px to match current design

* Update Checkbox border styles for current design

* Remove extended interface from Checkbox component

* Remove children prop from CheckboxGroupProps interface in favor of children from ReactAriaCheckboxGroupProps

* Add flexWrap prop to CheckboxGroup to allow wrapping

* Add isInvalid and isSelected args to Checkbox story meta object

* Add failing tests for Checkbox

* Make tests for Checkbox pass by adding explicit type information to render props

* Add failing tests for CheckboxGroup

* Make tests for CheckboxGroup pass by adding explicit type information to render props

* Move CheckboxGroup flexWrap styling prop to options list from parent container

* add flexWrap to storybook args

---------

Co-authored-by: Tyler Krys <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants