@coveord/plasma-mantine 58.0.2 → 59.1.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 (60) hide show
  1. package/.turbo/turbo-build.log +4 -4
  2. package/.turbo/turbo-test.log +99 -108
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/cjs/components/Alert/Alert.d.ts +5 -0
  5. package/dist/cjs/components/Alert/Alert.d.ts.map +1 -1
  6. package/dist/cjs/components/Alert/Alert.js +37 -9
  7. package/dist/cjs/components/Alert/Alert.js.map +1 -1
  8. package/dist/cjs/components/Badge/Badge.d.ts +2 -2
  9. package/dist/cjs/components/Badge/Badge.d.ts.map +1 -1
  10. package/dist/cjs/components/Badge/Badge.js.map +1 -1
  11. package/dist/cjs/components/Header/HeaderRight/HeaderRight.js +1 -1
  12. package/dist/cjs/components/Header/HeaderRight/HeaderRight.js.map +1 -1
  13. package/dist/cjs/components/Table/use-persisted-column-visibility.d.ts +16 -0
  14. package/dist/cjs/components/Table/use-persisted-column-visibility.d.ts.map +1 -0
  15. package/dist/cjs/components/Table/use-persisted-column-visibility.js +123 -0
  16. package/dist/cjs/components/Table/use-persisted-column-visibility.js.map +1 -0
  17. package/dist/cjs/components/Table/use-table.d.ts +12 -0
  18. package/dist/cjs/components/Table/use-table.d.ts.map +1 -1
  19. package/dist/cjs/components/Table/use-table.js +22 -7
  20. package/dist/cjs/components/Table/use-table.js.map +1 -1
  21. package/dist/cjs/styles/Alert.module.css +17 -5
  22. package/dist/cjs/styles/Modal.module.css +2 -2
  23. package/dist/cjs/utils/local-storage.d.ts +38 -0
  24. package/dist/cjs/utils/local-storage.d.ts.map +1 -0
  25. package/dist/cjs/utils/local-storage.js +175 -0
  26. package/dist/cjs/utils/local-storage.js.map +1 -0
  27. package/dist/esm/components/Alert/Alert.d.ts +5 -0
  28. package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
  29. package/dist/esm/components/Alert/Alert.js +35 -9
  30. package/dist/esm/components/Alert/Alert.js.map +1 -1
  31. package/dist/esm/components/Badge/Badge.d.ts +2 -2
  32. package/dist/esm/components/Badge/Badge.d.ts.map +1 -1
  33. package/dist/esm/components/Badge/Badge.js.map +1 -1
  34. package/dist/esm/components/Header/HeaderRight/HeaderRight.js +1 -1
  35. package/dist/esm/components/Header/HeaderRight/HeaderRight.js.map +1 -1
  36. package/dist/esm/components/Table/use-persisted-column-visibility.d.ts +16 -0
  37. package/dist/esm/components/Table/use-persisted-column-visibility.d.ts.map +1 -0
  38. package/dist/esm/components/Table/use-persisted-column-visibility.js +85 -0
  39. package/dist/esm/components/Table/use-persisted-column-visibility.js.map +1 -0
  40. package/dist/esm/components/Table/use-table.d.ts +12 -0
  41. package/dist/esm/components/Table/use-table.d.ts.map +1 -1
  42. package/dist/esm/components/Table/use-table.js +15 -3
  43. package/dist/esm/components/Table/use-table.js.map +1 -1
  44. package/dist/esm/styles/Alert.module.css +17 -5
  45. package/dist/esm/styles/Modal.module.css +2 -2
  46. package/dist/esm/utils/local-storage.d.ts +38 -0
  47. package/dist/esm/utils/local-storage.d.ts.map +1 -0
  48. package/dist/esm/utils/local-storage.js +134 -0
  49. package/dist/esm/utils/local-storage.js.map +1 -0
  50. package/package.json +5 -5
  51. package/src/components/Alert/Alert.tsx +24 -6
  52. package/src/components/Badge/Badge.tsx +30 -27
  53. package/src/components/Header/HeaderRight/HeaderRight.tsx +1 -1
  54. package/src/components/Table/__tests__/use-persisted-column-visibility.spec.ts +203 -0
  55. package/src/components/Table/use-persisted-column-visibility.ts +79 -0
  56. package/src/components/Table/use-table.ts +36 -3
  57. package/src/styles/Alert.module.css +17 -5
  58. package/src/styles/Modal.module.css +2 -2
  59. package/src/utils/__tests__/local-storage.spec.ts +176 -0
  60. 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@59.0.0 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:3795) [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 (717.73ms)
8
+ Successfully compiled: 231 files, copied 71 files with swc (740.68ms)
9
9
 
@@ -1,117 +1,108 @@
1
1
 
2
- > @coveord/plasma-mantine@58.0.1 test /home/runner/work/plasma/plasma/packages/mantine
2
+ > @coveord/plasma-mantine@59.0.0 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) 986ms
9
+ ✓ src/components/Collection/__tests__/Collection.spec.tsx (18 tests) 1560ms
10
+ ✓ src/components/Table/layouts/__tests__/RowLayout.spec.tsx (17 tests) 2448ms
11
+ ✓ renders the data using the RowLayout by default  387ms
12
+ ✓ src/components/Table/__tests__/Table.spec.tsx (12 tests) 1550ms
13
+ ✓ unselects all the selected rows when clicking on the the unselect button from the table header  351ms
14
+ ✓ src/components/Table/__tests__/TablePagination.spec.tsx (7 tests) 843ms
15
+ ✓ calculates the number of pages based on the pageSize and the total number of entries  323ms
16
+ ✓ src/components/Table/__tests__/TableColumnsSelector.spec.tsx (12 tests) 4131ms
17
+ ✓ renders the column selector button in the actions column header when rowConfigurable is true  473ms
18
+ ✓ renders all columns in the dropdown except control columns  538ms
19
+ ✓ renders all checkboxes checked by default  323ms
20
+ ✓ hides a column when the user unchecks it  451ms
21
+ ✓ shows a column when the user checks it  400ms
22
+ ✓ renders a disabled checked checkbox for columns that are always visible  302ms
23
+ ✓ enables a disabled column when a visible column is hidden  379ms
24
+ ✓ src/components/Table/__tests__/TableActions.spec.tsx (6 tests) 1669ms
25
+ ✓ displays the actions when the row is selected  503ms
26
+ ✓ displays the secondary actions when the row is selected and the user clicks on more  549ms
27
+ ✓ passes down an array of selected rows  345ms
28
+ ✓ src/hooks/__tests__/use-url-synced-state.unit.spec.ts (70 tests) 169ms
29
+ ✓ src/components/Facet/__tests__/Facet.component.spec.tsx (15 tests) 2155ms
30
+ ✓ src/components/Table/__tests__/use-persisted-column-visibility.spec.ts (15 tests) 48ms
31
+ ✓ src/components/InlineConfirm/__tests__/InlineConfirm.spec.tsx (8 tests) 820ms
32
+ ✓ src/utils/__tests__/local-storage.spec.ts (25 tests) 20ms
33
+ ✓ src/components/Table/__tests__/TablePerPage.spec.tsx (7 tests) 859ms
34
+ ✓ src/utils/__tests__/groupOptions.unit.spec.ts (12 tests) 14ms
35
+ ✓ src/components/Table/__tests__/TableFilter.spec.tsx (6 tests) 980ms
36
+ ✓ src/components/CodeEditor/__tests__/CodeEditor.spec.tsx (10 tests | 1 skipped) 762ms
37
+ ✓ renders the monaco editor, a copy to clipboard button and a search button  357ms
38
+ ✓ src/components/DateRangePicker/__tests__/DateRangePicker.spec.tsx (18 tests) 14612ms
39
+ ✓ opens popover when input is clicked  328ms
40
+ ✓ calls onChange when a date range is applied  2783ms
41
+ ✓ closes popover when Cancel is clicked  407ms
42
+ ✓ calls onCancel when Cancel button is clicked  475ms
43
+ ✓ applies the selected date range in uncontrolled mode  2711ms
44
+ ✓ applies the selected date range in controlled mode  3431ms
45
+ ✓ renders preset options in the popover  414ms
46
+ ✓ sets the selected date range in the url  2984ms
47
+ ✓ calls onOpenedChange when popover state changes  502ms
48
+ ✓ src/hooks/__tests__/useParentHeight.spec.tsx (4 tests) 77ms
49
+ ✓ src/components/Table/__tests__/TablePredicate.spec.tsx (3 tests) 1336ms
50
+ ✓ goes back to the first page when changing the predicate  849ms
51
+ ✓ sets the current predicate value in the url using the predicate id as key  352ms
52
+ ✓ src/components/DateRangePicker/__tests__/DateRangePickerInlineCalendar.spec.tsx (7 tests | 1 skipped) 4471ms
53
+ ✓ calls onApply when the user clicks on the apply button  765ms
54
+ ✓ calls onCancel when the user clicks on the cancel button  427ms
55
+ ✓ calls onApply with the selected dates when clicking in the calendar  1062ms
56
+ ✓ set end date same as start date if only one date is selected when clicking in the calendar  635ms
57
+ ✓ calls onApply with the selected dates when typing in the inputs  1478ms
58
+ ✓ src/components/Header/__tests__/Header.spec.tsx (8 tests) 462ms
59
+ ✓ src/components/Table/__tests__/Th.spec.tsx (4 tests) 630ms
60
+ ✓ src/components/Button/__tests__/Button.spec.tsx (6 tests) 498ms
61
+ ✓ src/components/DateRangePicker/__tests__/DateRangePickerPopoverCalendar.spec.tsx (4 tests | 2 skipped) 2749ms
62
+ ✓ calls onApply with the selected dates when clicking in the calendar  2638ms
63
+ ✓ src/components/DateTimeRangePicker/__tests__/DateTimeRangePicker.spec.tsx (3 tests) 2520ms
64
+ ✓ updates with the selected dates when choosing a preset  535ms
65
+ ✓ can change the date and time  1824ms
66
+ ✓ src/components/Table/__tests__/TableDateRangePicker.spec.tsx (3 tests) 4166ms
67
+ ✓ sets the selected date range in the url  3811ms
68
+ ✓ src/components/Table/__tests__/TableCollapsibleColumn.spec.tsx (2 tests) 642ms
69
+ ✓ expands the rows when the user clicks on a cell  501ms
70
+ ✓ src/components/Table/__tests__/TableLastUpdated.spec.tsx (3 tests) 467ms
71
+ ✓ displays the label and time  304ms
72
+ ✓ src/components/DateRangePicker/__tests__/EditableDateRangePicker.spec.tsx (3 tests) 3753ms
73
+ ✓ renders an input for the start and an input for the end  326ms
74
+ ✓ updates when editing values  1496ms
75
+ ✓ accepts minDate and maxDate props for start and end inputs  1926ms
76
+ ✓ src/theme/__tests__/mergeCSSVariablesResolvers.spec.ts (3 tests) 12ms
77
+ ✓ src/components/RadioCard/__tests__/RadioCard.component.spec.tsx (6 tests) 419ms
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/Button/__tests__/ButtonWithDisabledTooltip.spec.tsx (3 tests | 1 skipped) 392ms
80
+ ✓ shows a tooltip when hovering over the disabled button  350ms
81
+ ✓ src/components/LastUpdated/__tests__/LastUpdated.spec.tsx (5 tests) 339ms
82
+ ✓ src/components/DateRangePicker/__tests__/DateRangePickerPresetSelect.spec.tsx (2 tests) 662ms
83
+ ✓ calls onChange when selecting a preset  502ms
84
+ ✓ src/components/ChildForm/__tests__/ChildForm.spec.tsx (5 tests) 424ms
85
+ ✓ src/hooks/__tests__/useControlledList.spec.tsx (3 tests) 25ms
86
+ ✓ src/components/Prompt/__tests__/Prompt.spec.tsx (6 tests) 490ms
87
+ ✓ src/components/CopyToClipboard/__tests__/CopyToClipboard.spec.tsx (3 tests) 463ms
88
+ ✓ src/components/BrowserPreview/__tests__/BrowserPreview.spec.tsx (4 tests) 478ms
89
+ ✓ renders the specified text as the header tooltip content  361ms
90
+ ✓ src/components/StatusToken/__tests__/StatusToken.component.spec.tsx (10 tests) 331ms
91
+ ✓ src/theme/__tests__/plasmaCSSVariablesResolver.spec.ts (1 test) 25ms
92
+ ✓ src/components/Input/__tests__/Input.spec.tsx (2 tests) 316ms
93
+ ✓ renders LabelInfo inside the label prop and shows its tooltip content on hover  311ms
94
+ ✓ src/components/Modal/__tests__/Modal.spec.tsx (2 tests) 211ms
95
+ ✓ src/components/Modal/__tests__/ModalFooter.spec.tsx (2 tests) 82ms
96
+ ✓ src/components/Switch/__tests__/Switch.spec.tsx (1 test) 285ms
97
+ ✓ src/components/Menu/__tests__/Menu.spec.tsx (1 test) 244ms
98
+ ✓ src/components/DateTimeRangePicker/__tests__/EditableDateTimeRangePicker.spec.tsx (1 test) 340ms
99
+ ✓ renders start and end date in correct format  332ms
100
+ ✓ src/components/CodeEditor/search/__tests__/Search.unit.spec.tsx (1 test) 220ms
101
+ ✓ src/components/StickyFooter/__tests__/StickyFooter.spec.tsx (1 test) 57ms
102
+ ✓ src/components/BlankSlate/__tests__/BlankSlate.spec.tsx (1 test) 56ms
112
103
 
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)
104
+  Test Files  50 passed | 1 skipped (51)
105
+  Tests  383 passed | 6 skipped (389)
106
+  Start at  15:52:57
107
+  Duration  59.57s (transform 1.89s, setup 9.96s, import 48.63s, tests 61.26s, environment 47.99s)
117
108