Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
313 commits
Select commit Hold shift + click to select a range
1bed587
package upgrades
KevinVandy Jan 7, 2024
053975d
remove call
KevinVandy Jan 7, 2024
afdd20e
fixed turbo caching?
KevinVandy Jan 7, 2024
0bf09ee
swap provider order
KevinVandy Jan 7, 2024
e0cb377
rollback mantine version?
KevinVandy Jan 7, 2024
4d2b22e
lock mantine version
KevinVandy Jan 7, 2024
8a0438c
new grouping ui and grouped checkbox fixes
KevinVandy Jan 9, 2024
d59f3d1
release v2.0.0-alpha.10
KevinVandy Jan 9, 2024
0226c8e
add perfectionist linting
KevinVandy Jan 9, 2024
54ed9ce
update api doc pages
KevinVandy Jan 9, 2024
de6e50a
upgrade examples
KevinVandy Jan 9, 2024
75f9cfb
upgrade more examples
KevinVandy Jan 9, 2024
a24c54a
update usage docs
KevinVandy Jan 9, 2024
983c496
create best practices docs
KevinVandy Jan 9, 2024
65f0441
update data columns docs
KevinVandy Jan 9, 2024
e417465
Update FeatureTable.tsx (#242)
icflorescu Jan 10, 2024
d97b8d0
copy some bug fixes over
KevinVandy Jan 11, 2024
64e2b5e
fix row count alert banner manual pagination bug
KevinVandy Jan 11, 2024
575eb53
upgrade to Mantine 7.4.1
KevinVandy Jan 12, 2024
61ceb7c
detail panels wit virtualization
KevinVandy Jan 12, 2024
75ac74f
refactor column generation
KevinVandy Jan 17, 2024
9d52664
big refactor, copy over lots of code from mui mrt
KevinVandy Jan 20, 2024
16a53d8
column sizing and resizing refactor
KevinVandy Jan 20, 2024
af4f628
Fix bug when empty data in enableColumnVirtualization (#250)
mintaka2479 Jan 21, 2024
e6edd76
optimize virtualization more, account for column visibility
KevinVandy Jan 21, 2024
9f4373d
Fix sort icon in light mode (#248)
mintaka2479 Jan 21, 2024
882e7a5
Fixed the header to be centered (#249)
mintaka2479 Jan 21, 2024
a791cd0
Fix pinned column shadow (#251)
mintaka2479 Jan 22, 2024
7aa006a
Fix layout of show hide columns menu (#252)
mintaka2479 Jan 22, 2024
6fcd2a1
new column size docs
KevinVandy Jan 22, 2024
120b6d2
release v2.0.0-alpha.11
KevinVandy Jan 22, 2024
69ad73b
fix the ESM cracken? release alpha 13
KevinVandy Jan 23, 2024
26c84cf
update localization docs
KevinVandy Jan 23, 2024
d91ba68
fix styles css
KevinVandy Jan 23, 2024
eaa5198
Upgrade Examples
KevinVandy Jan 23, 2024
11bcb42
Add tableRowProps className to MRT_TableHeadRow (#255)
williamneves Jan 24, 2024
e472d9c
fix pinned column pseudo-element zIndex (#257)
yergom Jan 26, 2024
090f0d8
add mantine provider to examples
KevinVandy Jan 28, 2024
5e79903
add css imports to examples
KevinVandy Jan 28, 2024
9396707
docs reorg
KevinVandy Feb 1, 2024
2e37fc7
type updates, package upgrades display column refactor
KevinVandy Feb 1, 2024
84b15b5
Upgrade Examples
KevinVandy Feb 1, 2024
91e6b7d
Remove HTML title from header (#261)
Dalimil Feb 2, 2024
f2a245d
locale build stuff, context menu example
KevinVandy Feb 3, 2024
54e345c
Upgrade Examples
KevinVandy Feb 3, 2024
c89924f
make code snippets look better in docs
KevinVandy Feb 3, 2024
a06ce0f
update custom headless example
KevinVandy Feb 3, 2024
eb7238e
renderIndex refactor
KevinVandy Feb 3, 2024
ce95274
icon size fixes, render index props again, batch row selection featur…
KevinVandy Feb 3, 2024
13ec8f9
release v2.0.0-alpha.15
KevinVandy Feb 3, 2024
b8c0236
Upgrade Examples
KevinVandy Feb 3, 2024
78aa435
fix alignment stuff, add rest props to every component
KevinVandy Feb 4, 2024
1b81ed9
Fixed CSS property typo of z-index as zindex (#265)
timhaak Feb 6, 2024
44300be
start cell and row data- css refactor
KevinVandy Feb 7, 2024
b5bad43
table head cell styles cleanup
KevinVandy Feb 7, 2024
75d30a0
release v2.0.0-alpha.16
KevinVandy Feb 7, 2024
080297e
Upgrade Examples
KevinVandy Feb 7, 2024
7d12d2d
docs: dragging examples (#268)
alessandrojcm Feb 8, 2024
d73b2f5
row selection fixes
KevinVandy Feb 9, 2024
ed27085
fix extra props react warning
KevinVandy Feb 9, 2024
b9c6123
introduce official mrt CSS vars
KevinVandy Feb 10, 2024
0ad503a
put root css in paper
KevinVandy Feb 10, 2024
7e8629c
redo css vars to calculate off of base color
KevinVandy Feb 11, 2024
7a38c6f
release alpha 17
KevinVandy Feb 11, 2024
bbfcb52
Upgrade Examples
KevinVandy Feb 11, 2024
12cfab0
upgrade to tanstack table v8.12.0
KevinVandy Feb 14, 2024
152e66c
Upgrade Examples
KevinVandy Feb 14, 2024
6d82e11
fix some console warnings in various places (#272)
naughton Feb 15, 2024
98d1e13
package upgrades, fix props warning
KevinVandy Feb 18, 2024
9010ad5
Upgrade Examples
KevinVandy Feb 18, 2024
d64adae
implement striping compatible with detail panels and virtualization
KevinVandy Feb 19, 2024
d50bd1b
fix virtual detail panels, more striped row stuff
KevinVandy Feb 20, 2024
d01a168
Upgrade Examples
KevinVandy Feb 20, 2024
9f7b239
regen lock file
KevinVandy Feb 20, 2024
4bb5e13
mantine 7.5.2 rollback?
KevinVandy Feb 20, 2024
daa0be3
Upgrade Examples
KevinVandy Feb 20, 2024
22cff28
upgrade back to mantine 7.5.3, but with esm types in package.json
KevinVandy Feb 20, 2024
7b70e2b
rollback to mantine v7.5.2
KevinVandy Feb 20, 2024
6fde81b
Upgrade Examples
KevinVandy Feb 20, 2024
1e1c513
release v2.0.0-beta.0
KevinVandy Feb 21, 2024
23807c2
Upgrade Examples
KevinVandy Feb 21, 2024
0fdb057
start writing new CSS guide
KevinVandy Feb 23, 2024
7a0f9fc
virtualization in modal story
KevinVandy Feb 25, 2024
6fc67a6
upgrade to Mantine v7.6
KevinVandy Feb 26, 2024
9397e48
Upgrade Examples
KevinVandy Feb 26, 2024
53486c4
Fix css typo in MRT_TableFooterCell.module.css (#284)
sweco-sedalh Mar 10, 2024
6fe77ba
fix: css target correct global filter element
gautemo Mar 13, 2024
0d92431
Merge pull request #286 from gautemo/v2
alessandrojcm Mar 14, 2024
2ab7649
feat: advanced grouping examples (#293)
alessandrojcm Mar 18, 2024
1efdaba
storybook 8 upgrade
KevinVandy Mar 20, 2024
25a3832
Upgrade Examples
KevinVandy Mar 20, 2024
f26f893
upgrade Mantine v7.7
KevinVandy Mar 26, 2024
6294fa9
release v2.0.0-beta.1
KevinVandy Mar 26, 2024
c0dfc1e
Upgrade Examples
KevinVandy Mar 26, 2024
440ff62
fix: filter icon color not visible (#295)
alessandrojcm Mar 26, 2024
ec538fe
style: detail panel background with virtualisation
Mar 27, 2024
ba0744b
Merge pull request #299 from jiiinCho/jiiinCho/style-detail-panel-vir…
alessandrojcm Mar 31, 2024
ed2471e
chore: updated packages (#301)
alessandrojcm Apr 1, 2024
5ea2881
upgrade packages
KevinVandy Apr 1, 2024
00c8fd8
fix: reset date to empty string instead of null
alessandrojcm Apr 1, 2024
2290350
feat: add custom filtering examples (#303)
alessandrojcm Apr 1, 2024
e46ff16
fix: do not call accessorFn if table is loading
alessandrojcm Apr 12, 2024
f2214a0
Merge pull request #308 from KevinVandy/304-accessorfn-causes-excepti…
alessandrojcm Apr 13, 2024
ce3f3d9
Merge pull request #302 from alessandrojcm/297-row-disappears-post-fi…
alessandrojcm Apr 13, 2024
41afc8b
Fix issue where popover filter label is not visible (Popover Display …
Apr 14, 2024
0ebf106
Merge pull request #310 from LunaWanderer1/popover_filter_fix_and_sto…
alessandrojcm Apr 15, 2024
522b49b
feat: add getFilteredSelectedRowModel to the types
alessandrojcm Apr 29, 2024
d9c0c8e
Mantine 7.9 & React 18.3 (#323)
alessandrojcm May 3, 2024
50eb98f
even more package updates
KevinVandy May 3, 2024
ed131a3
fix: clearable prop not set for multi select filter (#324)
alessandrojcm May 5, 2024
0703598
fixes #269
waltershewmake May 5, 2024
9a9a53e
Merge pull request #326 from waltershewmake/fix-event-propogation-com…
alessandrojcm May 7, 2024
82d8875
fix(cell): cells editable when enableEditing on table is undefined
GoldenChrysus May 9, 2024
6785d24
Merge pull request #329 from GoldenChrysus/v2
alessandrojcm May 10, 2024
71449b8
release - beta 2
KevinVandy May 10, 2024
e6bc3f9
Upgrade Examples
KevinVandy May 10, 2024
0f41733
release v2 beta 3 - fix accessorFns
KevinVandy May 12, 2024
9bc36b8
Upgrade Examples
KevinVandy May 12, 2024
a04f04c
fix minor layout (#338)
mintaka2479 May 31, 2024
5552949
Unifying the spelling of "all" in Japanese (#337)
mintaka2479 May 31, 2024
c166eea
Fixed display when multiple selections are selected with pinning on t…
mintaka2479 May 31, 2024
7badb84
release beta 4
KevinVandy May 31, 2024
8e38656
Upgrade Examples
KevinVandy May 31, 2024
edfb182
remove package manage specification
KevinVandy May 31, 2024
cf96e4b
Fixed an error when hiding a column when pinned to the right (#342)
mintaka2479 Jun 7, 2024
ad27015
Ignore null keys example (#347)
sijonelis Jun 7, 2024
3d68d28
package upgrades
KevinVandy Jun 13, 2024
8d8a676
upgrade turbo 2
KevinVandy Jun 13, 2024
9f349e6
Upgrade Examples
KevinVandy Jun 13, 2024
f6f49d8
sticky examples (#354)
alessandrojcm Jun 13, 2024
8c07c3e
feat: Display header buttons on hover (#341)
mintaka2479 Jun 13, 2024
7df92ba
release beta 5
KevinVandy Jun 13, 2024
ff92df3
Upgrade Examples
KevinVandy Jun 13, 2024
602ad37
feat: add multi-select option to column editVariant parameter
yann-combarnous Jun 13, 2024
125fd99
feat: add filterTooltipValueFn
yamadayutaka Jun 14, 2024
aea1f89
fix: cast types
yann-combarnous Jul 11, 2024
f40f42f
Merge pull request #357 from yann-combarnous/feature/column-edit-mult…
alessandrojcm Jul 11, 2024
cf06e45
fix: formatting multiselect value in the cell
alessandrojcm Jul 11, 2024
6c5bf19
Sticky row pinning overlaps with other rows when scrolling (#373)
alessandrojcm Jul 12, 2024
3d5386e
fix: define fn type
yamadayutaka Jul 17, 2024
55274b8
Consider date-range as range filter in filter label
mattwcole Jul 17, 2024
5e036c2
Merge pull request #375 from mattwcole/date-range-filter-label-v2
alessandrojcm Jul 17, 2024
0e635f8
package and lint upgrades
KevinVandy Jul 17, 2024
638088e
Upgrade Examples
KevinVandy Jul 17, 2024
516d7b7
Merge branch 'v2' into feature/filter-tooltip-value-fn
KevinVandy Jul 17, 2024
28f0125
prettier
KevinVandy Jul 17, 2024
de06f8a
Merge pull request #360 from yamadayutaka/feature/filter-tooltip-valu…
alessandrojcm Jul 17, 2024
36bc22a
release v2.0.0-beta.6
KevinVandy Jul 20, 2024
3bfa3b0
Upgrade Examples
KevinVandy Jul 20, 2024
cf594aa
Feat/creating examples (#404)
alessandrojcm Sep 25, 2024
107556e
fix: 'reset' was not being passed to getDefaultColumnOrderIds on the …
alessandrojcm Sep 25, 2024
7406615
fix: multiselect was not saving values when it had no focus (#401)
alessandrojcm Sep 25, 2024
b02d762
fix: MRT_ExpandButton 'actionIconProps.title' incorrectly nullish coa…
jrhut Oct 12, 2024
f167a89
release beta 7
KevinVandy Oct 12, 2024
36bb1b3
Upgrade Examples
KevinVandy Oct 12, 2024
2f0a9d4
re-apply mrt-selected-row-background-color and mrt-pinned-row-backgro…
desytech Nov 5, 2024
f5ca287
Merge pull request #437 from desytech/386-fix-selected-row-style
alessandrojcm Nov 10, 2024
5c8dced
:bug: Fix missing mode config in Filtering Stories
Nov 13, 2024
d7045fa
:bug: Fix switching from empty to equals filter mode for multiselects
Nov 13, 2024
ce8c635
:bento: Add Story for fixed bug
Nov 13, 2024
455b507
Add MRT_TableBodyEmptyRow component to render an actual MRT_TableBody…
EdwardEB Nov 19, 2024
2ff313f
:sparkles: Pass ComboboxItem Option to MRT_EditCellTextInput Select o…
Nov 21, 2024
e843854
Merge pull request #448 from floriankapaun/send-options-on-change
alessandrojcm Nov 27, 2024
24fc9da
Merge pull request #443 from floriankapaun/bugfix/442
alessandrojcm Nov 27, 2024
5ac7112
Update empty row examples and export MRT_TableBodyEmptyRow
EdwardEB Nov 28, 2024
7bea27b
changed story to showcase form in detail panel when table is empty an…
EdwardEB Nov 28, 2024
246d28f
use proper fallback calculation value for pinned top and bottom rows …
desytech Nov 29, 2024
23b0a59
Move story to Editing Examples
EdwardEB Nov 29, 2024
58083ae
Merge pull request #445 from EdwardEB/v2
alessandrojcm Dec 1, 2024
56b022a
Merge pull request #452 from desytech/451-fix-lexical-error
alessandrojcm Dec 1, 2024
dd88002
fix: check filter type before clearing
alessandrojcm Dec 10, 2024
23580b7
Merge pull request #455 from KevinVandy/453-mrt_filtertextinput-crash…
alessandrojcm Dec 10, 2024
881a8ee
fix: uneven spacing on global filter
alessandrojcm Dec 10, 2024
0446cd0
Merge pull request #456 from KevinVandy/436-search-bar-uneven-spacing…
alessandrojcm Dec 10, 2024
4b20b52
fix: handle select reset correctly
alessandrojcm Dec 10, 2024
1d2c9b4
chore: downgrade eslint to v8
alessandrojcm Dec 10, 2024
44fd9c7
chore: fix perfectionist eslint config
alessandrojcm Dec 10, 2024
6b05a38
Lint and Prettier
KevinVandy Dec 10, 2024
3f369c1
Merge pull request #457 from KevinVandy/427-clear-columnfilters-searc…
alessandrojcm Dec 10, 2024
508659c
Upgrade Examples
KevinVandy Dec 10, 2024
70c49dc
Add enableCellHoverReveal column option
laratran Oct 28, 2024
a93552b
Reveal cell content on hover
laratran Oct 28, 2024
502dad6
Conditionally wrap cell with div based on enableCellHoverReveal
laratran Oct 28, 2024
7adb80e
Rename variables
laratran Oct 28, 2024
0375d96
DIsplay cell over pinned columns
laratran Oct 28, 2024
2d49865
Apply cell hover reveal style when not in editing mode
laratran Oct 29, 2024
1a878fb
Recalculate overflow based on cell
laratran Oct 29, 2024
36d86eb
Ensure overflow is measured after density change
laratran Oct 30, 2024
5f8c8f9
Measure overflow on mouseEnter
laratran Oct 30, 2024
56a8dc1
Pass align style to cell hover reveal div
laratran Oct 31, 2024
dfead1f
Add storybook example
laratran Dec 10, 2024
198b71e
Add limitations
laratran Dec 10, 2024
5999ffd
lint and format
alessandrojcm Dec 13, 2024
0eb109c
Merge pull request #429 from laratran/add-enable-cell-hover-reveal
alessandrojcm Dec 13, 2024
5e1c685
Update tanstack-react-virtual
alessandrojcm Dec 20, 2024
9d6cc38
Merge pull request #461 from KevinVandy/chore/update-tanstack-react-v…
alessandrojcm Dec 20, 2024
258d6ae
Upgrade Examples
KevinVandy Dec 20, 2024
1ad035d
fix: unnecessary setPageIndex to the last page when pageIndex is 0
StinsonZhao Jan 9, 2025
f8bee8b
release v2.0.0-beta.8
KevinVandy Jan 9, 2025
2a943be
Upgrade Examples
KevinVandy Jan 9, 2025
a978550
fix empty state text aligned on grid layout mode
comertcimen Jan 9, 2025
4290652
add question mark operator to getvalue functions
EdwardEB Jan 20, 2025
d929dda
Merge pull request #477 from EdwardEB/v2
alessandrojcm Jan 27, 2025
ccc62b3
Merge pull request #473 from comertcimen/v2
alessandrojcm Jan 27, 2025
33cda81
Merge pull request #471 from StinsonZhao/v2
alessandrojcm Jan 27, 2025
c5150f4
Fix issue where popover filter isn't closing when clicking outside of…
LunaWanderer1 Feb 17, 2025
b0ea9d9
correct mantineFilterCheckboxProps type definition (#490)
LevonW-IIS Feb 17, 2025
46ee652
release v2 beta 9
KevinVandy Feb 17, 2025
62b9b8d
Upgrade Examples
KevinVandy Feb 17, 2025
422e6fe
docs: Fix broken links (#486) (#487)
dmm9 Feb 17, 2025
7a2a496
feat: adjust `mrt_dentsitystate` according to the doc
mr-pinzhang Feb 20, 2025
9a09b72
update doc
mr-pinzhang Feb 20, 2025
14e9b7a
update
mr-pinzhang Feb 20, 2025
25990fb
Dont mount detail panel row when not expanded, and fix all detail pan…
EdwardEB Mar 6, 2025
2db2dac
Undo return when no detail panel, this breaks when virtualized
EdwardEB Mar 7, 2025
9d741b9
use rendered row index in rangeExtractor for dragging rows
Kinsalvan Mar 10, 2025
dd97ef5
Merge pull request #500 from Kinsalvan/v2
alessandrojcm Mar 14, 2025
7b76d18
Merge pull request #499 from EdwardEB/v2
alessandrojcm Mar 14, 2025
8d692f0
Merge pull request #494 from mr-pinzhang/feat/adjust-mrt-density-stat…
alessandrojcm Mar 14, 2025
814d241
fix: prevent extra padding in centered header cells when no buttons a…
alessandrojcm Mar 14, 2025
b7716f7
Lint and Prettier
KevinVandy Mar 14, 2025
e92af42
Merge pull request #502 from KevinVandy/414-broken-centered-header
alessandrojcm Mar 14, 2025
13ae6ff
fix: multiply toolbar height by mantine scale
alessandrojcm Mar 14, 2025
1cde9fb
Merge pull request #503 from KevinVandy/431-incorrect-toolbar-min-hei…
alessandrojcm Mar 14, 2025
7fe7908
fix indicator css not being applied to the root of the indicator
LevonW-IIS Mar 24, 2025
f04eb09
fix indicator css not being applied to the root of the indicator
LevonW-IIS Mar 24, 2025
b716733
Merge remote-tracking branch 'origin/sort-indicator-color-fix' into s…
LevonW-IIS Mar 24, 2025
0ef4e1d
fix mantine edit select props typing mismatch
LevonW-IIS Mar 24, 2025
9baca9a
export utilty functions, fix commonJS and ES6 export types in package…
desytech May 22, 2025
3b37c74
Fix: Add Missing aria-label to filter ActionIcon in MRT_TableHeadCell…
angelo-loria May 22, 2025
b614720
Merge pull request #519 from angelo-loria/v2
alessandrojcm May 27, 2025
3d61a21
Merge pull request #518 from desytech/517-export-utility-functions
alessandrojcm May 27, 2025
5788073
Merge pull request #510 from LevonW-IIS/fix-mantine-edit-select-props
alessandrojcm May 27, 2025
c0858d3
Merge pull request #509 from LevonW-IIS/sort-indicator-color-fix
alessandrojcm May 27, 2025
6e76983
fix: unnecesary divider for filter options
alessandrojcm May 27, 2025
25b54f0
Merge pull request #520 from KevinVandy/463-unnecessary-divider-in-co…
alessandrojcm May 27, 2025
174d3d6
Lint and Prettier
KevinVandy May 27, 2025
7c02791
fix: add default size to highlight to match normal text size
alessandrojcm May 27, 2025
8be9a19
prettier
alessandrojcm May 27, 2025
afef95e
Merge pull request #521 from KevinVandy/463-unnecessary-divider-in-co…
alessandrojcm May 27, 2025
a8c0479
fix: use visibility hidden for global filter
alessandrojcm May 27, 2025
c8ebfba
Merge pull request #522 from KevinVandy/466-global-filtering-field-re…
alessandrojcm May 27, 2025
d180a84
fix: add missing expading tree example
alessandrojcm May 27, 2025
37560d6
chore: bump minimum mantine versions
alessandrojcm May 27, 2025
07ee2ef
Upgrade Examples
KevinVandy May 27, 2025
1b0ec49
Mantine 8 install
posabsolute Sep 30, 2025
d8910ca
Mantine 8 install
posabsolute Sep 30, 2025
7a930e9
Mantine 8 install
posabsolute Sep 30, 2025
c3927af
Mantine 8 docs update
posabsolute Sep 30, 2025
9caf7e8
docs: update Mantine v8 references
posabsolute Sep 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ body:
attributes:
label: Minimal, Reproducible Example - (Optional, but Recommended)
description: |
Please add a link to a minimal reproduction. This can really speed up the diagnosis of the problem! A Code Sandbox is preferable, but simple code snippets are also acceptable here. Feel free to fork any of the official CodeSandbox examples: https://github.com/KevinVandy/mantine-react-table/tree/main/apps/mantine-react-table-docs/examples
Please add a link to a minimal reproduction. This can really speed up the diagnosis of the problem! A Code Sandbox is preferable, but simple code snippets are also acceptable here. Feel free to fork any of the official CodeSandbox examples: https://github.com/KevinVandy/mantine-react-table/tree/v2/apps/mantine-react-table-docs/examples
placeholder: |
e.g. Code Sandbox, Stackblitz, or relevant code snippets.
validations:
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
prefer-workspace-packages=true
@fortawesome:registry=https://registry.npmjs.org
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{"cssVariables.lookupFiles": [
"**/*.css",
"**/*.scss",
"**/*.sass",
"**/*.less",
"node_modules/@mantine/core/esm/index.css"
]}
16 changes: 14 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,30 @@ pnpm i
pnpm storybook
```

The Storybook site will open on `port 6006` by default.
The Storybook site will open on `port 6007` by default.

#### Run the Docs for Local Development

```bash
pnpm docs:dev
```

The Docs site will open on `port 3000` by default.
The Docs site will open on `port 3001` by default.

> Note: If you are contributing a new locale and are trying to test it in the docs site, you will need to run `pnpm lib:build-locales` and then `pnpm docs:dev` before it can be imported.

#### See Library Live Changes While Running Docs

If you are just using Storybook for local development you don't need to do this, but if you want to see library code changes while running the docs you'll need to have the library run in watch mode:

In a 2nd terminal, run:

```bash
pnpm lib:dev
```

Alternatively, you can just run `pnpm dev` in just 1 terminal and both the library and docs will run in dev mode for development

#### Fully Build the Library

```bash
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ V1 released July 18, 2023
<a href="https://star-history.com/#kevinvandy/mantine-react-table&Date" target="_blank">
<img alt="" src="https://badgen.net/github/stars/KevinVandy/mantine-react-table?color=blue" />
</a>
<a href="https://github.com/KevinVandy/mantine-react-table/blob/main/LICENSE" target="_blank">
<a href="https://github.com/KevinVandy/mantine-react-table/blob/v2/LICENSE" target="_blank">
<img alt="" src="https://badgen.net/github/license/KevinVandy/mantine-react-table?color=blue" />
</a>
<a href="http://makeapullrequest.com" target="_blank">
Expand Down Expand Up @@ -185,6 +185,6 @@ _Open in [Code Sandbox](https://codesandbox.io/s/simple-mantine-react-table-exam

PRs are Welcome, but please discuss in [GitHub Discussions](https://github.com/KevinVandy/mantine-react-table/discussions) or the [Discord Server](https://discord.gg/5wqyRx6fnm) first if it is a large change!

Read the [Contributing Guide](https://github.com/KevinVandy/mantine-react-table/blob/main/CONTRIBUTING.md) to learn how to run this project locally.
Read the [Contributing Guide](https://github.com/KevinVandy/mantine-react-table/blob/v2/CONTRIBUTING.md) to learn how to run this project locally.

<!-- Use the FORCE Luke! -->
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.blockquote {
border-left: solid 8px var(--TODO);
border-left: solid 8px var(--mantine-primary-color-filled);
padding: 8px 16px;
background-color: var(--TODO);
background-color: var(--mantine-primary-color-light);
border-radius: 4px;
margin: 3rem;
@media (max-width: 720px) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

& img {
transform: scale(1.01);
transition: transform 100ms ease-in-out;
transition: transform 150ms ease-in-out;
}
}
}
10 changes: 5 additions & 5 deletions apps/mantine-react-table-docs/components/mdx/FeatureTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ const data = [
{
feature: 'Column Hiding',
mrt: true,
mdt: false,
mdt: true,
},
{
feature: 'Column Ordering (DnD)',
mrt: true,
mdt: false,
mdt: true,
},
{
feature: 'Column Pinning (Freezing)',
Expand All @@ -69,7 +69,7 @@ const data = [
{
feature: 'Column Resizing',
mrt: true,
mdt: false,
mdt: true,
},
{
feature: 'Column Spanning',
Expand Down Expand Up @@ -129,7 +129,7 @@ const data = [
{
feature: 'Header Groups and Footers',
mrt: true,
mdt: false,
mdt: true,
},
{
feature: 'Localization (i18n)',
Expand Down Expand Up @@ -215,7 +215,7 @@ export const FeatureTable = () => {
enableColumnActions={false}
enableBottomToolbar={false}
enableTopToolbar={false}
enablePinning
enableColumnPinning
initialState={{
sorting: [{ id: 'feature', desc: false }],
density: 'xs',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { useState } from 'react';
import { Tabs } from '@mantine/core';
import { SampleCodeSnippet } from './SampleCodeSnippet';

const packagesString =
'mantine-react-table @mantine/core@6.0.21 @mantine/hooks@6.0.21 @mantine/dates@6.0.21 @emotion/react @tabler/icons-react dayjs';
const defaultPackageString =
'mantine-react-table@beta @mantine/core @mantine/hooks @mantine/dates @tabler/icons-react clsx dayjs';

export function InstallCommand() {
export function InstallCommand({ packagesString = defaultPackageString }) {
const tabValues = [
{
value: 'npm',
Expand All @@ -31,7 +31,7 @@ export function InstallCommand() {

return (
<>
<Tabs defaultValue="npm">
<Tabs defaultValue="npm" p="0" mt="-2rem">
<Tabs.List>
{tabValues.map((tabValue) => (
<Tabs.Tab key={tabValue.value} value={tabValue.value}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

& img {
transform: scale(1.01);
transition: transform 100ms ease-in-out;
transition: transform 150ms ease-in-out;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
gap: 16px;
align-items: center;
margin: 2rem auto;
justify-content: center;
font-size: 22px;
}

.actionIcon {
opacity: 0.2;
transition: all 100ms ease;
transition: all 150ms ease;
color: '#e9ecef';
background-color: transparent;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ import {
CodeHighlight,
type CodeHighlightProps,
} from '@mantine/code-highlight';
import { Code, Paper, useMantineTheme } from '@mantine/core';
import { Code, Paper, rgba, useMantineTheme } from '@mantine/core';

export function SampleCodeSnippet(props: CodeHighlightProps) {
const { primaryColor } = useMantineTheme();
const theme = useMantineTheme();

if (!props.language && !props.className) {
return <Code color={primaryColor} fz="0.9em" {...props} />;
return (
<Code color={rgba(theme.colors[theme.primaryColor][7], 0.2)} fz="0.9em">
{props.code}
</Code>
);
}

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
display: flex;
flex-wrap: wrap;
gap: 16px;
align-items: center;
}

.wrapper2 {
Expand Down Expand Up @@ -38,5 +39,5 @@
}

.colorSchemeSelect {
max-width: 90px;
max-width: 110px;
}
Loading