-
Notifications
You must be signed in to change notification settings - Fork 66
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
LG-4146: Table
refactor
#2546
base: main
Are you sure you want to change the base?
LG-4146: Table
refactor
#2546
Conversation
* temp removal of transitions * remove nested stories * remove flatten packages
…factor-integration
* wip * wip * updating stories * lg virtual item * top styles * remove padding from TableBody * expanded row background color * removing stuff * row context * memoizing stuff * wip * styled components * comments * more cleanup * clean up * comments * wip, memoize regular table * testing * huh * why does this work? * testing why nothing works * clean up * update virtual stories * clean up * cleanup * row types * types * should truncate support * remove memo from useLeafyGreenVirtualTable * remove unsed exports * add a new story * widths and vertical align * dynamic ellipsis * comment * combined components * cell generic type * update types * align styles * Prerelease version packages 13.0.0-beta.0 * fix install error * Prerelease version packages 13.0.0-beta.1 * comment, wip * revert useLeafyGreenTable hook so its consistent with a virtual table * add getItemKey * small fix * stop mapping columns def * testing * debugging * tbody updates * css vars * add virtual context * remove comment * remove measureElement from hook * row context updates * remove overflow from regular table * updates virtual types * more TS docs * ts fixes * row TS docs * TS docs stuff * fix comment * remove original from rowCopy * story clean up * remove v10 and v11 adapter * remove react-virtual * cell styles * interrowwithRT style updates * table styles * comment * comment * story with less rows * cell ternary, headercell util, expandedcontent styles * fb - toggleExpand, isVirtual boolean, type casting, tsdocs * virtual scrolling padding util * forgot to save * fb - remove virtual context * custom row model * styledcomponent stuff, TS still not correct * callable virtual items * update ts docs * token * feedback
🦋 Changeset detectedLatest commit: b08696a The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Size Change: -11.5 kB (-0.82%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
* wip * wip * updating stories * lg virtual item * top styles * remove padding from TableBody * expanded row background color * removing stuff * row context * memoizing stuff * wip * styled components * comments * more cleanup * clean up * comments * wip, memoize regular table * testing * huh * why does this work? * testing why nothing works * clean up * update virtual stories * clean up * cleanup * row types * types * should truncate support * remove memo from useLeafyGreenVirtualTable * remove unsed exports * add a new story * widths and vertical align * dynamic ellipsis * comment * combined components * cell generic type * update types * align styles * Prerelease version packages 13.0.0-beta.0 * fix install error * Prerelease version packages 13.0.0-beta.1 * comment, wip * added forwardrefs to cells and tds * add tests for useMergeRefs * forwardRef test * Row export * headerRow forwardref test * TableBody forwardRef test * TableHeader forwardRef test * Cell forwardRef test * HeaderCell ForwardRef test * ExpandedContent ForwardRef test * update test * comments * revert useLeafyGreenTable hook so its consistent with a virtual table * fix story * small fix * add getItemKey * small fix * stop mapping columns def * testing * debugging * tbody updates * css vars * add virtual context * remove comment * remove measureElement from hook * remove getAreAncestorsExpanded util * row context updates * remove overflow from regular table * move Generic type to lib * updating comments * fix cell fwdRef test * comments * updates virtual types * more TS docs * ts fixes * row TS docs * TS docs stuff * fix comment * remove original from rowCopy * story clean up * remove v10 and v11 adapter * fix test * remove react-virtual * cell styles * interrowwithRT style updates * table styles * comment * comment * comment * story with less rows * cell ternary, headercell util, expandedcontent styles * fb - toggleExpand, isVirtual boolean, type casting, tsdocs * virtual scrolling padding util * forgot to save * fb - remove virtual context * custom row model * styledcomponent stuff, TS still not correct * callable virtual items * update ts docs * token * feedback * updates
Table
refactor integration Table
refactor integration
* wip * wip * updating stories * lg virtual item * top styles * remove padding from TableBody * expanded row background color * removing stuff * row context * memoizing stuff * wip * styled components * comments * more cleanup * clean up * comments * wip, memoize regular table * testing * huh * why does this work? * testing why nothing works * clean up * update virtual stories * clean up * cleanup * row types * types * should truncate support * remove memo from useLeafyGreenVirtualTable * remove unsed exports * add a new story * widths and vertical align * dynamic ellipsis * comment * combined components * cell generic type * update types * align styles * Prerelease version packages 13.0.0-beta.0 * fix install error * Prerelease version packages 13.0.0-beta.1 * comment, wip * revert useLeafyGreenTable hook so its consistent with a virtual table * add getItemKey * small fix * stop mapping columns def * testing * debugging * tbody updates * css vars * add virtual context * remove comment * remove measureElement from hook * row context updates * remove overflow from regular table * updates virtual types * more TS docs * ts fixes * row TS docs * TS docs stuff * fix comment * add react-intersection-observer * wip * remove original from rowCopy * story clean up * remove v10 and v11 adapter * remove react-virtual * cell styles * interrowwithRT style updates * table styles * comment * comment * wip * story with less rows * move box-shadow to headerRow * darken darkmode scroll shadow * move styles * add test * remove comments * testing removing styled components * add back styled * diff react-intersection-observer version * yarn lonk * cell ternary, headercell util, expandedcontent styles * fb - toggleExpand, isVirtual boolean, type casting, tsdocs * virtual scrolling padding util * forgot to save * fb - remove virtual context * custom row model * styledcomponent stuff, TS still not correct * callable virtual items * update ts docs * token * use classname * move interaction test * use a classname * remove id * remove ? * fix broken stories * interaction rename and args * story heights * add comment * add comment * revert changes to expandedContentParentStyles
* wip * wip * updating stories * lg virtual item * top styles * remove padding from TableBody * expanded row background color * removing stuff * row context * memoizing stuff * wip * styled components * comments * more cleanup * clean up * comments * wip, memoize regular table * testing * huh * why does this work? * testing why nothing works * clean up * update virtual stories * clean up * cleanup * row types * types * should truncate support * remove memo from useLeafyGreenVirtualTable * remove unsed exports * add a new story * widths and vertical align * dynamic ellipsis * comment * combined components * cell generic type * update types * align styles * Prerelease version packages 13.0.0-beta.0 * fix install error * Prerelease version packages 13.0.0-beta.1 * comment, wip * revert useLeafyGreenTable hook so its consistent with a virtual table * add getItemKey * small fix * stop mapping columns def * testing * debugging * tbody updates * css vars * add virtual context * remove comment * remove measureElement from hook * row context updates * remove overflow from regular table * updates virtual types * more TS docs * ts fixes * row TS docs * TS docs stuff * fix comment * add react-intersection-observer * wip * remove original from rowCopy * story clean up * remove v10 and v11 adapter * remove react-virtual * cell styles * interrowwithRT style updates * table styles * comment * comment * wip * story with less rows * move box-shadow to headerRow * darken darkmode scroll shadow * move styles * alignment * remove comment * add test * remove comments * testing removing styled components * add back styled * diff react-intersection-observer version * yarn lonk * cell ternary, headercell util, expandedcontent styles * fb - toggleExpand, isVirtual boolean, type casting, tsdocs * virtual scrolling padding util * forgot to save * fb - remove virtual context * custom row model * styledcomponent stuff, TS still not correct * callable virtual items * update ts docs * token * use classname * move interaction test * use a classname * remove id * remove ? * fix broken stories * interaction rename and args * story heights * add back color * update stories * remove InternalCell file * new story * fix row stories * update rows stories * revert some story changes * revert some more story changes * use classname * revert some story changes
* wip * wip * updating stories * lg virtual item * top styles * remove padding from TableBody * expanded row background color * removing stuff * row context * memoizing stuff * wip * styled components * comments * more cleanup * clean up * comments * wip, memoize regular table * testing * huh * why does this work? * testing why nothing works * clean up * update virtual stories * clean up * cleanup * row types * types * should truncate support * remove memo from useLeafyGreenVirtualTable * remove unsed exports * add a new story * widths and vertical align * dynamic ellipsis * comment * combined components * cell generic type * update types * align styles * Prerelease version packages 13.0.0-beta.0 * fix install error * Prerelease version packages 13.0.0-beta.1 * comment, wip * revert useLeafyGreenTable hook so its consistent with a virtual table * add getItemKey * small fix * stop mapping columns def * testing * debugging * tbody updates * css vars * add virtual context * remove comment * remove measureElement from hook * row context updates * remove overflow from regular table * updates virtual types * more TS docs * ts fixes * row TS docs * TS docs stuff * fix comment * add react-intersection-observer * wip * remove original from rowCopy * story clean up * remove v10 and v11 adapter * remove react-virtual * cell styles * interrowwithRT style updates * table styles * comment * comment * wip * story with less rows * move box-shadow to headerRow * darken darkmode scroll shadow * move styles * add test * remove comments * testing removing styled components * add back styled * diff react-intersection-observer version * yarn lonk * cell ternary, headercell util, expandedcontent styles * fb - toggleExpand, isVirtual boolean, type casting, tsdocs * virtual scrolling padding util * forgot to save * fb - remove virtual context * custom row model * styledcomponent stuff, TS still not correct * callable virtual items * update ts docs * token * use classname * move interaction test * use a classname * remove id * add table-layout:fixed * make table fixed, fix shadow and aligment * line height * remove ? * fix error * fix broken stories * interaction rename and args * story heights * revert row style changes * update sizes * add comment * update story
* LG-4681: fix row background-color styles * Fix zebra and expanded row styles * Design feedback
* @returns | ||
*/ | ||
|
||
export default function useMergeRefs<T = any>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Popover refactor added useMergRefs
. Update this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* wip * wip * updating stories * lg virtual item * top styles * remove padding from TableBody * expanded row background color * removing stuff * row context * memoizing stuff * wip * styled components * comments * more cleanup * clean up * comments * wip, memoize regular table * testing * huh * why does this work? * testing why nothing works * clean up * update virtual stories * clean up * cleanup * row types * types * should truncate support * remove memo from useLeafyGreenVirtualTable * remove unsed exports * add a new story * widths and vertical align * dynamic ellipsis * comment * combined components * cell generic type * update types * align styles * Prerelease version packages 13.0.0-beta.0 * fix install error * Prerelease version packages 13.0.0-beta.1 * comment, wip * added forwardrefs to cells and tds * add tests for useMergeRefs * forwardRef test * Row export * headerRow forwardref test * TableBody forwardRef test * TableHeader forwardRef test * Cell forwardRef test * HeaderCell ForwardRef test * ExpandedContent ForwardRef test * update test * comments * revert useLeafyGreenTable hook so its consistent with a virtual table * fix story * small fix * add getItemKey * small fix * stop mapping columns def * testing * debugging * tbody updates * css vars * add virtual context * remove comment * remove measureElement from hook * remove getAreAncestorsExpanded util * row context updates * remove overflow from regular table * move Generic type to lib * updating comments * fix cell fwdRef test * comments * updates virtual types * more TS docs * ts fixes * row TS docs * TS docs stuff * fix comment * remove original from rowCopy * story clean up * remove v10 and v11 adapter * fix test * remove react-virtual * cell styles * interrowwithRT style updates * table styles * comment * comment * comment * story with less rows * cell ternary, headercell util, expandedcontent styles * fb - toggleExpand, isVirtual boolean, type casting, tsdocs * virtual scrolling padding util * forgot to save * fb - remove virtual context * custom row model * styledcomponent stuff, TS still not correct * callable virtual items * update ts docs * token * feedback * updates * headercell tests * forgot to save * wip, headerCell * headerCell tests * cell tests * cell mock data * cell proptypes * forgot to save * expandedContent tests * headerRow tests * remove todo * fix test utils * update hooks tests * testing * row test updates * more row tests * TableHead tests * table tests * table tests * useLeafyGreenTable tests * fix table test hook calls * more virtual table tests * propTypes * comments * HeaderCell story updates * remove dup interface * table R17 (#2563) * add rowRef prop. rm genericMemo * update ref props * update comments * update row tests * remove document check * remove import * check data.length * update row generated story to include zebra stripes --------- Co-authored-by: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com>
packages/table/src/useLeafyGreenVirtualTable/useLeafyGreenVirtualTable.types.ts
Show resolved
Hide resolved
* fix action buttons * decrease nestedRow story rows * decrease expandedContent story rows * add 100% width to VS table stories * fix tall row story * fix table width * switch to NaN * remove min-width * another comment * fix comment
* wip documentation * forgot to save * change README files * add empty examples section * delete old readme * wip upgrading * wip upgrade guide * more updates * note on new tanstack virtual package
…factor-integration
…factor-integration
✍️ Proposed changes
🎟 Jira ticket: LG-4146
✅ Checklist
For bug fixes, new features & breaking changes
yarn changeset
and documented my changesFor new components
🧪 How to test changes
TODO