Skip to content

Latest commit

 

History

History
1049 lines (753 loc) · 26.8 KB

CHANGELOG.md

File metadata and controls

1049 lines (753 loc) · 26.8 KB

@leafygreen-ui/table

12.7.0

Minor Changes

  • 24786ff3d: - c3906f78: - Exports getTestUtils, a util to reliably interact with LG Table in a product test suite. For more details, check out the README LG-4171
    • Exports the constant, LGIDS which stores data-lgid values.

Patch Changes

12.6.4

Patch Changes

12.6.3

Patch Changes

12.6.2

Patch Changes

12.6.1

Patch Changes

12.6.0

Minor Changes

  • ea5f49d2: Exports all utilities from @tanstack/react-table for consumption

Patch Changes

12.5.0

Minor Changes

  • 744092c8: Exposes virtualizerOptions property in useLeafyGreenTable options. This is used to define options for react-virtual. As of now, we have [email protected] as out virtualizer dependency. Virtualizer options for this version can be found on GitHub Resolves LG-3984

Patch Changes

  • 744092c8: Fixes a bug where nested row chevrons and selectable row checkboxes would be rendered above a sticky header. Jira Ticket
  • Updated dependencies [c2854e9b]
  • Updated dependencies [11d12cc4]

12.4.1

Patch Changes

  • 2bceccb1: Fixes lodash imports to use default exports of specific functions to reduce component's bundle size.
  • Updated dependencies [2bceccb1]
  • Updated dependencies [2645cd50]

12.4.0

Minor Changes

  • bb8987d6: Adds contentClassName prop, applied to the inner div of the Cell
  • bb8987d6: Adds overflow prop to Cell component. By default there is no change. When overflow === 'truncate', the styling of the cell is updated (if necessary) to be aligned to the top, with an ellipsis after 2 lines of text.
  • bb8987d6: Nested rows now support animations for content taller than 40px

12.3.0

Minor Changes

  • 91372fff: useLeafygreenTable now exposes an scrollToIndex method for virtualized tables.

12.2.0

Minor Changes

  • c080ec01: Table now exposes an optional second generic type for useLeafyGreenTable that controls the type of the value

Patch Changes

  • 9a35ec36: Fixes style bug where zebra row colors override selected row colors
  • Updated dependencies [9b7a8236]
  • Updated dependencies [7f38e78a]
  • Updated dependencies [ffd11f24]
  • Updated dependencies [ffd11f24]
  • Updated dependencies [ffd11f24]
  • Updated dependencies [ffd11f24]
  • Updated dependencies [ffd11f24]

12.1.4

Patch Changes

  • 0e10308a: Cells are now compatible with styled components

12.1.3

Patch Changes

  • 86a10028: Updated README to reference TanStack's react-table component
  • e516c359: useLeafyGreenTable now memoizes its column prop to improve performance
  • Updated dependencies [e3f4d9ce]
  • Updated dependencies [89f439e8]
  • Updated dependencies [c41752d2]
  • Updated dependencies [89332190]

12.1.2

Patch Changes

12.1.1

Patch Changes

  • 11089c73: Checkboxes in Tables are now styled different for better contrast

12.1.0

Minor Changes

  • e3a4b391: useLeafyGreenTable now accepts an allowSelectAll prop to toggle a checkbox in the header row

Patch Changes

12.0.10

Patch Changes

  • f8bfa386: Fixes bug in V11Adapter where not all props on rows and cells were not being passed to their rendered elements
  • Updated dependencies [a5770c15]
  • Updated dependencies [c89d17a4]

12.0.9

Patch Changes

12.0.8

Patch Changes

12.0.7

Patch Changes

12.0.6

Patch Changes

12.0.5

Patch Changes

12.0.4

Patch Changes

12.0.3

Patch Changes

12.0.2

Patch Changes

  • a3a52e131: Bumps to use new useIdAllocator hook
  • Updated dependencies [614f7617d]
  • Updated dependencies [a3a52e131]
  • Updated dependencies [614f7617d]
  • Updated dependencies [a3a52e131]

12.0.1

Patch Changes

  • 32b3d3146: Bumps to use new useIdAllocator hook
  • Updated dependencies [73cbbd02c]
  • Updated dependencies [32b3d3146]
  • Updated dependencies [83fc5b31b]
  • Updated dependencies [9bcf8b925]
  • Updated dependencies [8ece56980]
  • Updated dependencies [32b3d3146]
  • Updated dependencies [73cbbd02c]

12.0.0

Major Changes

  • 632f0a461: - API changes to ensure react-table exports are not required in usage

Patch Changes

11.0.3

Patch Changes

11.0.2

Patch Changes

  • ac1f22714: [DEPRECATED] @tanstack/react-table was moved back to dependencies in v11.0.3 to prevent a breaking change. Types Table component and fixes issues in generated code docs documentation
  • Updated dependencies [dc8ceed9b]
  • Updated dependencies [09775f0ac]

11.0.1

Patch Changes

  • a11f4f836: [DEPRECATED] @tanstack/react-table was moved back to dependencies in v11.0.3 to prevent a breaking change. Support Fragments in Table DOM tree; move @tanstack dependencies to peerDependencies

11.0.0

Major Changes

  • 89ede28ec: Rewrite of Table component, which includes support for new features: virtual scrolling, selectable rows, etc. See upgrade guide for details

Patch Changes

10.0.3

Patch Changes

10.0.2

Patch Changes

10.0.1

Patch Changes

10.0.0

Major Changes

  • 07331dad9: Updates Table for dark mode brand refresh.

Patch Changes

9.0.1

Patch Changes

  • ed0e425e5: Adds polished as an explicit dependency
  • ae5421cf6: Updates components to use internal transition tokens
  • Updated dependencies [ae5421cf6]
  • Updated dependencies [4b4c2d27d]
  • Updated dependencies [1a335d0b2]
  • Updated dependencies [ae5421cf6]

9.0.0

Patch Changes

8.0.0

Major Changes

  • f2d63a60: Removes leafygreen data attributes (prefixed with data-leafygreen-ui-), and replaces them with deterministic classNames (prefixed with lg-ui-)

Minor Changes

  • 42024a44: Adds index property to children function callback

Patch Changes

7.0.0

Patch Changes

6.1.1

Patch Changes

6.1.0

Minor Changes

  • 3690df49: Updates TypeScript annotations, type structures and export format of some components

Patch Changes

6.0.1

Patch Changes

  • 38f3effb: Removes external package use-ssr

6.0.0

Major Changes

  • 885226db: Changing default alignment of cell content from baseline to top

Patch Changes

5.0.3

Patch Changes

  • (Hot-fix): Removes external package use-ssr

5.0.2

Patch Changes

5.0.1

Patch Changes

  • 8892dd16: Remove checkbox dependency
  • Updated dependencies [65c86281]

5.0.0

Patch Changes

4.1.1

Patch Changes

4.1.0

Minor Changes

  • 2f357a54: Updating isHeader styles in Cell component; adding isAltColor prop to Cell component

Patch Changes

  • 14614768: Removing not-allowed cursor from disabled rows
  • Updated dependencies [1fb8ab18]
  • Updated dependencies [bc2558c5]

4.0.0

Major Changes

Patch Changes

3.0.2

Patch Changes

  • ae4704d7: Creates a new stacking context for the Table component

3.0.1

Patch Changes

3.0.0

Major Changes

  • 614be76: Updates Table styles according to visual brand refresh

Patch Changes

2.0.7

Patch Changes

  • (Hot-fix): Removes external package use-ssr

2.0.6

Patch Changes

2.0.5

Patch Changes

  • de89c3c7: Updates nested rows to fix animations and enable variable row height
  • Updated dependencies [d4a46e27]
  • Updated dependencies [cec710ad]

2.0.4

Patch Changes

2.0.3

Patch Changes

2.0.2

Patch Changes

  • 931fde4c: darkMode missing from useMemo dep array in Row component

2.0.1

Patch Changes

2.0.0

Patch Changes

1.5.1

Patch Changes

  • 8335c09d: Ensures that cells with a value of 0 render properly in the table

1.5.0

Minor Changes

  • de06ae10: Adds baseFontSize prop to Table component

1.4.0

Minor Changes

  • deeb6cca: Adds darkMode prop to Table component

1.3.9

Patch Changes

1.3.8

Patch Changes

1.3.7

Patch Changes

1.3.6

Patch Changes

  • 1ed17f68: Updates lodash to 4.17.21, as there's a vulnerability in 4.17.20 that's been resolved in 4.17.21
  • Updated dependencies [1ed17f68]

1.3.5

Patch Changes

  • b1bb95d8: Fixes issue where table body content wasn't being rendered server-side.
  • Updated dependencies [c8aee7eb]

1.3.4

Patch Changes

1.3.3

Patch Changes

  • 7ba9f4a8: Increases shadow when Table is scrollable

1.3.2

Patch Changes

  • bf58e7d5: Improves default accessibility of Table component by adding the "scope" attribute to column header elements.
  • Updated dependencies [ba56b1cc]

1.3.1

Patch Changes

  • 8ac6e396: Updates some of the attributes of internal elements to provide better accessibility to screen readers.

1.3.0

Minor Changes

  • 3bf125b7: Adds isHeader prop to Cell component to allow for row headers.

1.2.1

Patch Changes

  • ee7923d3: Changes how we extend the types of HTMLElements, and standardizes how we document this across readmes
  • Updated dependencies [ee7923d3]
  • Updated dependencies [ee7923d3]
  • Updated dependencies [627333c2]
  • Updated dependencies [7b71da8f]

1.2.0

Minor Changes

  • c18f16e6: Improves compatibility with React v17

Patch Changes

1.1.0

Minor Changes

  • cf2f9422: Updates cell styles in Table component

1.0.0

Major Changes

  • 2643d4e7: Updates styles to no longer truncate large column data by default
  • 034d3893: Adds box-shadow to table when its contents overflow

Patch Changes

0.2.1

Patch Changes

0.2.0

Minor Changes

  • 0267bfd2: The underlying structure of distributed module definition files have changed and now have official support for ES modules. Module definition files are now generated using Rollup instead of Webpack. This should not affect functionality, but some thorough testing and caution should be exercised when upgrading.

Patch Changes

0.1.5

Patch Changes

  • e5ba48e6: Improve table re-rendering performance when changing the sort order.
  • Updated dependencies [02ee0c05]

0.1.4

Patch Changes

0.1.3

Patch Changes

  • cdb4c82: Updates Table documentation to represent default usage of columns prop. Additionally, now allows <HeaderRow /> to be passed to columns prop
  • Updated dependencies [e49d66b]

0.1.2

Patch Changes

0.1.1

Patch Changes

  • 2cdc994: Bumps lib dependency to latest and fixes idAllocator to be namespaced with table rather than text-input

0.1.0

Minor Changes

  • 463a338: Initial Release of Table component

Patch Changes