@coveord/plasma-mantine 58.0.2 → 59.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/.turbo/turbo-build.log +4 -4
  2. package/.turbo/turbo-test.log +100 -108
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/cjs/components/Badge/Badge.d.ts +2 -2
  5. package/dist/cjs/components/Badge/Badge.d.ts.map +1 -1
  6. package/dist/cjs/components/Badge/Badge.js.map +1 -1
  7. package/dist/cjs/components/Header/HeaderRight/HeaderRight.js +1 -1
  8. package/dist/cjs/components/Header/HeaderRight/HeaderRight.js.map +1 -1
  9. package/dist/cjs/components/Table/use-persisted-column-visibility.d.ts +16 -0
  10. package/dist/cjs/components/Table/use-persisted-column-visibility.d.ts.map +1 -0
  11. package/dist/cjs/components/Table/use-persisted-column-visibility.js +123 -0
  12. package/dist/cjs/components/Table/use-persisted-column-visibility.js.map +1 -0
  13. package/dist/cjs/components/Table/use-table.d.ts +12 -0
  14. package/dist/cjs/components/Table/use-table.d.ts.map +1 -1
  15. package/dist/cjs/components/Table/use-table.js +22 -7
  16. package/dist/cjs/components/Table/use-table.js.map +1 -1
  17. package/dist/cjs/utils/local-storage.d.ts +38 -0
  18. package/dist/cjs/utils/local-storage.d.ts.map +1 -0
  19. package/dist/cjs/utils/local-storage.js +175 -0
  20. package/dist/cjs/utils/local-storage.js.map +1 -0
  21. package/dist/esm/components/Badge/Badge.d.ts +2 -2
  22. package/dist/esm/components/Badge/Badge.d.ts.map +1 -1
  23. package/dist/esm/components/Badge/Badge.js.map +1 -1
  24. package/dist/esm/components/Header/HeaderRight/HeaderRight.js +1 -1
  25. package/dist/esm/components/Header/HeaderRight/HeaderRight.js.map +1 -1
  26. package/dist/esm/components/Table/use-persisted-column-visibility.d.ts +16 -0
  27. package/dist/esm/components/Table/use-persisted-column-visibility.d.ts.map +1 -0
  28. package/dist/esm/components/Table/use-persisted-column-visibility.js +85 -0
  29. package/dist/esm/components/Table/use-persisted-column-visibility.js.map +1 -0
  30. package/dist/esm/components/Table/use-table.d.ts +12 -0
  31. package/dist/esm/components/Table/use-table.d.ts.map +1 -1
  32. package/dist/esm/components/Table/use-table.js +15 -3
  33. package/dist/esm/components/Table/use-table.js.map +1 -1
  34. package/dist/esm/utils/local-storage.d.ts +38 -0
  35. package/dist/esm/utils/local-storage.d.ts.map +1 -0
  36. package/dist/esm/utils/local-storage.js +134 -0
  37. package/dist/esm/utils/local-storage.js.map +1 -0
  38. package/package.json +1 -1
  39. package/src/components/Badge/Badge.tsx +30 -27
  40. package/src/components/Header/HeaderRight/HeaderRight.tsx +1 -1
  41. package/src/components/Table/__tests__/use-persisted-column-visibility.spec.ts +203 -0
  42. package/src/components/Table/use-persisted-column-visibility.ts +79 -0
  43. package/src/components/Table/use-table.ts +36 -3
  44. package/src/utils/__tests__/local-storage.spec.ts +176 -0
  45. package/src/utils/local-storage.ts +151 -0
@@ -1,9 +1,9 @@
1
1
 
2
- > @coveord/plasma-mantine@58.0.1 build /home/runner/work/plasma/plasma/packages/mantine
2
+ > @coveord/plasma-mantine@58.0.2 build /home/runner/work/plasma/plasma/packages/mantine
3
3
  > node ../../scripts/build
4
4
 
5
- (node:4204) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
5
+ (node:4310) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
6
6
  (Use `node --trace-deprecation ...` to show where the warning was created)
7
- Successfully compiled: 229 files, copied 71 files with swc (664.13ms)
8
- Successfully compiled: 229 files, copied 71 files with swc (719.56ms)
7
+ Successfully compiled: 231 files, copied 71 files with swc (570.99ms)
8
+ Successfully compiled: 231 files, copied 71 files with swc (585.2ms)
9
9
 
@@ -1,117 +1,109 @@
1
1
 
2
- > @coveord/plasma-mantine@58.0.1 test /home/runner/work/plasma/plasma/packages/mantine
2
+ > @coveord/plasma-mantine@58.0.2 test /home/runner/work/plasma/plasma/packages/mantine
3
3
  > cross-env TZ=UTC vitest run --silent
4
4
 
5
5
 
6
6
   RUN  v4.1.2 /home/runner/work/plasma/plasma/packages/mantine
7
7
 
8
- ✓ src/components/Collection/__tests__/CollectionWithColumns.spec.tsx (17 tests) 1059ms
9
- ✓ src/components/Collection/__tests__/Collection.spec.tsx (18 tests) 1667ms
10
- ✓ src/components/Table/layouts/__tests__/RowLayout.spec.tsx (17 tests) 2643ms
11
- ✓ renders the data using the RowLayout by default  416ms
12
- ✓ src/components/Table/__tests__/Table.spec.tsx (12 tests) 1674ms
13
- ✓ unselects all the selected rows when clicking on the the unselect button from the table header  395ms
14
- ✓ src/components/Table/__tests__/TablePagination.spec.tsx (7 tests) 925ms
15
- ✓ calculates the number of pages based on the pageSize and the total number of entries  307ms
16
- ✓ src/components/Table/__tests__/TableColumnsSelector.spec.tsx (12 tests) 4833ms
17
- ✓ renders the column selector button in the actions column header when rowConfigurable is true  533ms
18
- ✓ renders all columns in the dropdown except control columns  535ms
19
- ✓ renders all checkboxes checked by default  392ms
20
- ✓ hides a column when the user unchecks it  508ms
21
- ✓ shows a column when the user checks it  470ms
22
- ✓ renders a tooltip when hovering a disabled always visible column checkbox  353ms
23
- ✓ disables unchecked columns when the maximum number of visible columns is reached  362ms
24
- ✓ renders a footer with the max columns message when maxSelectableColumns is set  338ms
25
- ✓ does not render a footer when maxSelectableColumns is not set  329ms
26
- ✓ enables a disabled column when a visible column is hidden  469ms
27
- ✓ src/components/Table/__tests__/TableActions.spec.tsx (6 tests) 1618ms
28
- ✓ displays the actions when the row is selected  496ms
29
- ✓ displays the secondary actions when the row is selected and the user clicks on more  408ms
30
- ✓ passes down an array of selected rows  413ms
31
- ✓ src/hooks/__tests__/use-url-synced-state.unit.spec.ts (70 tests) 172ms
32
- ✓ src/components/Facet/__tests__/Facet.component.spec.tsx (15 tests) 2301ms
33
- ✓ handles keyboard navigation when there is no search  303ms
34
- ✓ src/components/InlineConfirm/__tests__/InlineConfirm.spec.tsx (8 tests) 926ms
35
- ✓ src/utils/__tests__/groupOptions.unit.spec.ts (12 tests) 9ms
36
- ✓ src/components/Table/__tests__/TablePerPage.spec.tsx (7 tests) 1090ms
37
- ✓ displays the label  347ms
38
- ✓ src/components/Table/__tests__/TableFilter.spec.tsx (6 tests) 1307ms
39
- ✓ displays the placeholder  324ms
40
- ✓ goes back to the first page when changing the filter  313ms
41
- ✓ does not unselect rows that get filtered out  356ms
42
- ✓ src/components/CodeEditor/__tests__/CodeEditor.spec.tsx (10 tests | 1 skipped) 882ms
43
- ✓ renders the monaco editor, a copy to clipboard button and a search button  351ms
44
- ✓ src/components/DateRangePicker/__tests__/DateRangePicker.spec.tsx (18 tests) 15746ms
45
- ✓ opens popover when input is clicked  333ms
46
- ✓ calls onChange when a date range is applied  3490ms
47
- ✓ closes popover when Cancel is clicked  516ms
48
- ✓ calls onCancel when Cancel button is clicked  441ms
49
- ✓ applies the selected date range in uncontrolled mode  3420ms
50
- ✓ applies the selected date range in controlled mode  3466ms
51
- ✓ renders preset options in the popover  306ms
52
- ✓ sets the selected date range in the url  2788ms
53
- ✓ calls onOpenedChange when popover state changes  435ms
54
- ✓ src/components/Table/__tests__/TablePredicate.spec.tsx (3 tests) 1342ms
55
- ✓ goes back to the first page when changing the predicate  860ms
56
- ✓ sets the current predicate value in the url using the predicate id as key  351ms
57
- ✓ src/hooks/__tests__/useParentHeight.spec.tsx (4 tests) 72ms
58
- ✓ src/components/DateRangePicker/__tests__/DateRangePickerInlineCalendar.spec.tsx (7 tests | 1 skipped) 5050ms
59
- ✓ calls onApply when the user clicks on the apply button  772ms
60
- ✓ calls onCancel when the user clicks on the cancel button  449ms
61
- ✓ calls onApply with the selected dates when clicking in the calendar  1164ms
62
- ✓ set end date same as start date if only one date is selected when clicking in the calendar  623ms
63
- ✓ calls onApply with the selected dates when typing in the inputs  1924ms
64
- ✓ src/components/Header/__tests__/Header.spec.tsx (8 tests) 550ms
65
- ✓ src/components/Table/__tests__/Th.spec.tsx (4 tests) 748ms
66
- ✓ displays the sort icon for every sortable column  313ms
67
- ✓ src/components/Button/__tests__/Button.spec.tsx (6 tests) 607ms
68
- ✓ src/components/DateRangePicker/__tests__/DateRangePickerPopoverCalendar.spec.tsx (4 tests | 2 skipped) 2776ms
69
- ✓ calls onApply with the selected dates when clicking in the calendar  2618ms
70
- ✓ src/components/Table/__tests__/TableDateRangePicker.spec.tsx (3 tests) 4298ms
71
- ✓ displays the initial dates  391ms
72
- ✓ sets the selected date range in the url  3859ms
73
- ✓ src/components/DateTimeRangePicker/__tests__/DateTimeRangePicker.spec.tsx (3 tests) 2875ms
74
- ✓ updates with the selected dates when choosing a preset  490ms
75
- ✓ can change the date and time  2254ms
76
- ✓ src/components/DateRangePicker/__tests__/EditableDateRangePicker.spec.tsx (3 tests) 3473ms
77
- ✓ renders an input for the start and an input for the end  355ms
78
- ✓ updates when editing values  1371ms
79
- ✓ accepts minDate and maxDate props for start and end inputs  1742ms
80
- ✓ src/components/Table/__tests__/TableCollapsibleColumn.spec.tsx (2 tests) 723ms
81
- ✓ expands the rows when the user clicks on a cell  586ms
82
- ✓ src/components/Table/__tests__/TableLastUpdated.spec.tsx (3 tests) 437ms
83
- ✓ displays the label and time  310ms
84
- ✓ src/theme/__tests__/mergeCSSVariablesResolvers.spec.ts (3 tests) 7ms
8
+ ✓ src/components/Collection/__tests__/CollectionWithColumns.spec.tsx (17 tests) 944ms
9
+ ✓ src/components/Collection/__tests__/Collection.spec.tsx (18 tests) 1624ms
10
+ ✓ src/components/Table/layouts/__tests__/RowLayout.spec.tsx (17 tests) 2287ms
11
+ ✓ renders the data using the RowLayout by default  375ms
12
+ ✓ src/components/Table/__tests__/Table.spec.tsx (12 tests) 1591ms
13
+ ✓ unselects all the selected rows when clicking on the the unselect button from the table header  346ms
14
+ ✓ src/components/Table/__tests__/TablePagination.spec.tsx (7 tests) 899ms
15
+ ✓ calculates the number of pages based on the pageSize and the total number of entries  312ms
16
+ ✓ src/components/Table/__tests__/TableColumnsSelector.spec.tsx (12 tests) 3675ms
17
+ ✓ renders the column selector button in the actions column header when rowConfigurable is true  413ms
18
+ ✓ renders all columns in the dropdown except control columns  438ms
19
+ ✓ renders all checkboxes checked by default  328ms
20
+ ✓ hides a column when the user unchecks it  435ms
21
+ ✓ shows a column when the user checks it  372ms
22
+ ✓ enables a disabled column when a visible column is hidden  329ms
23
+ ✓ src/components/Table/__tests__/TableActions.spec.tsx (6 tests) 1636ms
24
+ ✓ displays the actions when the row is selected  460ms
25
+ ✓ displays the secondary actions when the row is selected and the user clicks on more  539ms
26
+ ✓ passes down an array of selected rows  340ms
27
+ ✓ src/hooks/__tests__/use-url-synced-state.unit.spec.ts (70 tests) 217ms
28
+ ✓ src/components/Facet/__tests__/Facet.component.spec.tsx (15 tests) 2520ms
29
+ ✓ renders the title  314ms
30
+ ✓ handles keyboard navigation when there is no search  325ms
31
+ ✓ src/components/Table/__tests__/use-persisted-column-visibility.spec.ts (15 tests) 52ms
32
+ ✓ src/components/InlineConfirm/__tests__/InlineConfirm.spec.tsx (8 tests) 778ms
33
+ ✓ src/utils/__tests__/local-storage.spec.ts (25 tests) 24ms
34
+ ✓ src/components/Table/__tests__/TablePerPage.spec.tsx (7 tests) 950ms
35
+ ✓ displays the label  317ms
36
+ ✓ src/utils/__tests__/groupOptions.unit.spec.ts (12 tests) 11ms
37
+ ✓ src/components/Table/__tests__/TableFilter.spec.tsx (6 tests) 1034ms
38
+ ✓ src/components/CodeEditor/__tests__/CodeEditor.spec.tsx (10 tests | 1 skipped) 904ms
39
+ ✓ renders the monaco editor, a copy to clipboard button and a search button  375ms
40
+ ✓ src/components/DateRangePicker/__tests__/DateRangePicker.spec.tsx (18 tests) 14567ms
41
+ ✓ calls onChange when a date range is applied  3106ms
42
+ ✓ closes popover when Cancel is clicked  444ms
43
+ ✓ calls onCancel when Cancel button is clicked  400ms
44
+ ✓ applies the selected date range in uncontrolled mode  3459ms
45
+ ✓ applies the selected date range in controlled mode  2992ms
46
+ ✓ renders preset options in the popover  402ms
47
+ ✓ sets the selected date range in the url  2612ms
48
+ ✓ src/hooks/__tests__/useParentHeight.spec.tsx (4 tests) 74ms
49
+ ✓ src/components/Table/__tests__/TablePredicate.spec.tsx (3 tests) 1354ms
50
+ ✓ goes back to the first page when changing the predicate  825ms
51
+ ✓ sets the current predicate value in the url using the predicate id as key  372ms
52
+ ✓ src/components/Header/__tests__/Header.spec.tsx (8 tests) 455ms
53
+ ✓ src/components/DateRangePicker/__tests__/DateRangePickerInlineCalendar.spec.tsx (7 tests | 1 skipped) 4209ms
54
+ ✓ calls onApply when the user clicks on the apply button  701ms
55
+ ✓ calls onCancel when the user clicks on the cancel button  453ms
56
+ ✓ calls onApply with the selected dates when clicking in the calendar  1055ms
57
+ ✓ set end date same as start date if only one date is selected when clicking in the calendar  495ms
58
+ ✓ calls onApply with the selected dates when typing in the inputs  1390ms
59
+ ✓ src/components/Table/__tests__/Th.spec.tsx (4 tests) 614ms
60
+ ✓ displays the sort icon for every sortable column  302ms
61
+ ✓ src/components/Button/__tests__/Button.spec.tsx (6 tests) 612ms
62
+ ✓ src/components/DateRangePicker/__tests__/DateRangePickerPopoverCalendar.spec.tsx (4 tests | 2 skipped) 2677ms
63
+ ✓ calls onApply with the selected dates when clicking in the calendar  2561ms
64
+ ✓ src/components/DateTimeRangePicker/__tests__/DateTimeRangePicker.spec.tsx (3 tests) 2450ms
65
+ ✓ updates with the selected dates when choosing a preset  475ms
66
+ ✓ can change the date and time  1857ms
67
+ ✓ src/components/Table/__tests__/TableDateRangePicker.spec.tsx (3 tests) 4355ms
68
+ ✓ displays the initial dates  333ms
69
+ ✓ sets the selected date range in the url  3958ms
70
+ ✓ src/components/Table/__tests__/TableLastUpdated.spec.tsx (3 tests) 457ms
71
+ ✓ src/components/DateRangePicker/__tests__/EditableDateRangePicker.spec.tsx (3 tests) 3213ms
72
+ ✓ renders an input for the start and an input for the end  317ms
73
+ ✓ updates when editing values  1404ms
74
+ ✓ accepts minDate and maxDate props for start and end inputs  1489ms
75
+ ✓ src/components/Table/__tests__/TableCollapsibleColumn.spec.tsx (2 tests) 574ms
76
+ ✓ expands the rows when the user clicks on a cell  438ms
77
+ ✓ src/theme/__tests__/mergeCSSVariablesResolvers.spec.ts (3 tests) 6ms
85
78
  ↓ src/utils/__tests__/overrideComponent.spec.tsx (1 test | 1 skipped)
86
- ✓ src/components/RadioCard/__tests__/RadioCard.component.spec.tsx (6 tests) 533ms
87
- ✓ src/components/Button/__tests__/ButtonWithDisabledTooltip.spec.tsx (3 tests | 1 skipped) 391ms
88
- ✓ shows a tooltip when hovering over the disabled button  356ms
89
- ✓ src/components/DateRangePicker/__tests__/DateRangePickerPresetSelect.spec.tsx (2 tests) 680ms
90
- ✓ calls onChange when selecting a preset  542ms
91
- ✓ src/components/LastUpdated/__tests__/LastUpdated.spec.tsx (5 tests) 394ms
92
- ✓ src/hooks/__tests__/useControlledList.spec.tsx (3 tests) 28ms
93
- ✓ src/components/ChildForm/__tests__/ChildForm.spec.tsx (5 tests) 484ms
94
- ✓ src/components/Prompt/__tests__/Prompt.spec.tsx (6 tests) 556ms
95
- ✓ displays the title, body and close button  302ms
96
- ✓ src/components/CopyToClipboard/__tests__/CopyToClipboard.spec.tsx (3 tests) 411ms
97
- ✓ src/components/BrowserPreview/__tests__/BrowserPreview.spec.tsx (4 tests) 502ms
98
- ✓ renders the specified text as the header tooltip content  367ms
99
- ✓ src/components/StatusToken/__tests__/StatusToken.component.spec.tsx (10 tests) 442ms
100
- ✓ src/theme/__tests__/plasmaCSSVariablesResolver.spec.ts (1 test) 18ms
101
- ✓ src/components/Input/__tests__/Input.spec.tsx (2 tests) 399ms
102
- ✓ renders LabelInfo inside the label prop and shows its tooltip content on hover  392ms
103
- ✓ src/components/Modal/__tests__/Modal.spec.tsx (2 tests) 323ms
104
- ✓ src/components/Modal/__tests__/ModalFooter.spec.tsx (2 tests) 80ms
105
- ✓ src/components/Switch/__tests__/Switch.spec.tsx (1 test) 398ms
106
- ✓ shows Input.LabelInfo tooltip content when hovering the info token in the label  394ms
107
- ✓ src/components/Menu/__tests__/Menu.spec.tsx (1 test) 198ms
108
- ✓ src/components/DateTimeRangePicker/__tests__/EditableDateTimeRangePicker.spec.tsx (1 test) 280ms
109
- ✓ src/components/CodeEditor/search/__tests__/Search.unit.spec.tsx (1 test) 304ms
110
- ✓ src/components/StickyFooter/__tests__/StickyFooter.spec.tsx (1 test) 60ms
111
- ✓ src/components/BlankSlate/__tests__/BlankSlate.spec.tsx (1 test) 60ms
79
+ ✓ src/components/RadioCard/__tests__/RadioCard.component.spec.tsx (6 tests) 486ms
80
+ ✓ src/components/Button/__tests__/ButtonWithDisabledTooltip.spec.tsx (3 tests | 1 skipped) 306ms
81
+ ✓ src/components/DateRangePicker/__tests__/DateRangePickerPresetSelect.spec.tsx (2 tests) 676ms
82
+ ✓ calls onChange when selecting a preset  545ms
83
+ ✓ src/components/LastUpdated/__tests__/LastUpdated.spec.tsx (5 tests) 374ms
84
+ ✓ src/components/ChildForm/__tests__/ChildForm.spec.tsx (5 tests) 338ms
85
+ ✓ src/hooks/__tests__/useControlledList.spec.tsx (3 tests) 34ms
86
+ ✓ src/components/Prompt/__tests__/Prompt.spec.tsx (6 tests) 564ms
87
+ ✓ src/components/CopyToClipboard/__tests__/CopyToClipboard.spec.tsx (3 tests) 451ms
88
+ ✓ src/components/BrowserPreview/__tests__/BrowserPreview.spec.tsx (4 tests) 439ms
89
+ ✓ renders the specified text as the header tooltip content  315ms
90
+ ✓ src/components/StatusToken/__tests__/StatusToken.component.spec.tsx (10 tests) 345ms
91
+ ✓ src/theme/__tests__/plasmaCSSVariablesResolver.spec.ts (1 test) 13ms
92
+ ✓ src/components/Input/__tests__/Input.spec.tsx (2 tests) 370ms
93
+ ✓ renders LabelInfo inside the label prop and shows its tooltip content on hover  363ms
94
+ ✓ src/components/Modal/__tests__/Modal.spec.tsx (2 tests) 273ms
95
+ ✓ src/components/Modal/__tests__/ModalFooter.spec.tsx (2 tests) 87ms
96
+ ✓ src/components/Switch/__tests__/Switch.spec.tsx (1 test) 403ms
97
+ ✓ shows Input.LabelInfo tooltip content when hovering the info token in the label  398ms
98
+ ✓ src/components/Menu/__tests__/Menu.spec.tsx (1 test) 237ms
99
+ ✓ src/components/DateTimeRangePicker/__tests__/EditableDateTimeRangePicker.spec.tsx (1 test) 334ms
100
+ ✓ renders start and end date in correct format  329ms
101
+ ✓ src/components/StickyFooter/__tests__/StickyFooter.spec.tsx (1 test) 71ms
102
+ ✓ src/components/CodeEditor/search/__tests__/Search.unit.spec.tsx (1 test) 253ms
103
+ ✓ src/components/BlankSlate/__tests__/BlankSlate.spec.tsx (1 test) 58ms
112
104
 
113
-  Test Files  48 passed | 1 skipped (49)
114
-  Tests  343 passed | 6 skipped (349)
115
-  Start at  13:36:31
116
-  Duration  61.81s (transform 2.25s, setup 9.74s, import 49.93s, tests 66.35s, environment 47.58s)
105
+  Test Files  50 passed | 1 skipped (51)
106
+  Tests  383 passed | 6 skipped (389)
107
+  Start at  14:12:31
108
+  Duration  60.02s (transform 2.08s, setup 9.57s, import 49.41s, tests 60.88s, environment 47.85s)
117
109