-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(tables)!: add $isLoading prop to SimpleTable.Td, normalize all tables margins/heights & checkboxes #1200
Merged
ivangabriele
merged 3 commits into
main
from
ivan/feat-tables-add-isLoading-prop-to-SimpleTable.Td
May 27, 2024
Merged
feat(tables)!: add $isLoading prop to SimpleTable.Td, normalize all tables margins/heights & checkboxes #1200
ivangabriele
merged 3 commits into
main
from
ivan/feat-tables-add-isLoading-prop-to-SimpleTable.Td
May 27, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- add `$isLoading` prop to `SimpleTable.Td (& `TableWithSelectableRows.Td`) - add `$width` prop to `SimpleTable.Th` (& `TableWithSelectableRows.Th`) - add & expose `SimpleTable.CellLoader` (& `TableWithSelectableRows.CellLoader`) - fix ellipsis when `SimpleTable.Th` width is set while not set in `SimpleTable.Td` (// `TableWithSelectableRows`) - deprecate `$width` prop from `TableWithSelectableRows.Td`
ivangabriele
force-pushed
the
ivan/feat-tables-add-isLoading-prop-to-SimpleTable.Td
branch
from
May 23, 2024 14:32
d8eb90b
to
faf9342
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1200 +/- ##
=======================================
Coverage 57.39% 57.39%
=======================================
Files 55 55
Lines 805 805
Branches 274 267 -7
=======================================
Hits 462 462
- Misses 327 343 +16
+ Partials 16 0 -16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
claire2212
approved these changes
May 23, 2024
ivangabriele
force-pushed
the
ivan/feat-tables-add-isLoading-prop-to-SimpleTable.Td
branch
from
May 23, 2024 18:27
e5b5f10
to
90e870c
Compare
ivangabriele
changed the title
feat(tables): add $isLoading prop to SimpleTable.Td
feat(tables)!: add $isLoading prop to SimpleTable.Td, normalize all tables margins/heights & checkboxes
May 23, 2024
BREAKING CHANGE: - Remove `isChecked` prop in `TableWithSelectableRows.RowCheckbox`, replaced by native `checked` prop. - Remove `isIndeterminate` prop in `TableWithSelectableRows.RowCheckbox`, replaced by original Rsuite `indeterminate` prop. - Remove `$isHighlighted` prop in `TableWithSelectableRows.Td`, replaced by the same prop on `TableWithSelectableRows.BodyTr`. - In order to work properly with `RowCheckbox`, `TableWithSelectableRows` now requires `<Table $withRowCheckbox />`. - Following the `SimpleTable` & `TableWithSelectableRows` margins/heights normalization, including a few hacks, it may break some UI widths & heights. - Please check `TableWithSelectableRows.stories.tsx` to see a full example on how to use/update it. - As shown in the story, be careful **NOT** to wrap the checkbox table header cell within `<TableWithSelectableRows.SortContainer />` since the flex display breaks its internal positioning.
ivangabriele
force-pushed
the
ivan/feat-tables-add-isLoading-prop-to-SimpleTable.Td
branch
from
May 23, 2024 18:46
90e870c
to
cd9d2f1
Compare
louptheron
approved these changes
May 24, 2024
claire2212
approved these changes
May 24, 2024
ivangabriele
deleted the
ivan/feat-tables-add-isLoading-prop-to-SimpleTable.Td
branch
May 27, 2024 00:14
🎉 This PR is included in version 18.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGES
isChecked
prop inTableWithSelectableRows.RowCheckbox
, replaced by nativechecked
prop.isIndeterminate
prop inTableWithSelectableRows.RowCheckbox
, replaced by original Rsuiteindeterminate
prop.$isHighlighted
prop inTableWithSelectableRows.Td
, replaced by the same prop onTableWithSelectableRows.BodyTr
.RowCheckbox
,TableWithSelectableRows
now requires<Table $withRowCheckbox />
.SimpleTable
&TableWithSelectableRows
margins/heights normalization, including a few hacks,it may break some UI widths & heights.
TableWithSelectableRows.stories.tsx
to see a full example on how to use/update it.within
<TableWithSelectableRows.SortContainer />
since the flex display breaks its internal positioning.Features
$isLoading
prop toSimpleTable.Td (&
TableWithSelectableRows.Td`)$width
prop toSimpleTable.Th
(&TableWithSelectableRows.Th
)SimpleTable.CellLoader
(&TableWithSelectableRows.CellLoader
)https://xd.adobe.com/view/e5dc3e34-ae1f-4a6d-be9a-5d2a70e54eff-b08f/screen/fefd4bd0-176f-4fad-8247-1603a57564f6/specs/
Fixes
SimpleTable.Th
width is set while not set inSimpleTable.Td
(//TableWithSelectableRows
)deprecate(removed by breaking change)$width
prop fromTableWithSelectableRows.Td
Related Pull Requests & Issues
Preview URL
https://637e01cf5934a2ae881ccc9d-bebahrewee.chromatic.com/
Screenshots