@synerise/ds-table 1.5.5 → 1.5.6

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.5.6](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.5.5...@synerise/ds-table@1.5.6) (2025-08-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **table:** batch selection tooltip fixed ([cdc5b80](https://github.com/synerise/synerise-design/commit/cdc5b80d5a9af3dd87aef6c4f8fbc02be7d2ae9c))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.5.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.5.4...@synerise/ds-table@1.5.5) (2025-08-21)
7
18
 
8
19
 
@@ -10,7 +10,7 @@ import { useBulkSelectionCount } from '../hooks/useBulkSelection';
10
10
  import { useRowKey } from '../hooks/useRowKey';
11
11
  import { isRecordSelectable } from '../utils';
12
12
  var TableSelection = function TableSelection(_ref) {
13
- var _selection$globalSele5;
13
+ var _selection$globalSele5, _selection$globalSele7;
14
14
  var dataSource = _ref.dataSource,
15
15
  dataSourceFull = _ref.dataSourceFull,
16
16
  selection = _ref.selection,
@@ -161,10 +161,16 @@ var TableSelection = function TableSelection(_ref) {
161
161
  var disabledBulkSelection = allRecordsCount === 0 || selectableRecordsCount === 0 || hasSelectionLimit && selectedRecordsCount === 0;
162
162
  var isAllSelected = !disabledBulkSelection && selectableRecordsCount === selectableAndSelectedRecordsCount;
163
163
  var isAnySelected = allRecordsCount > 0 && selectedRecordsCount > 0;
164
- var selectionTooltipTitle = !isAllSelected ? locale == null ? void 0 : locale.selectAllTooltip : locale == null ? void 0 : locale.unselectAll;
164
+ var selectionTooltipTitle = useMemo(function () {
165
+ var _selection$globalSele4;
166
+ if ((_selection$globalSele4 = selection.globalSelection) != null && _selection$globalSele4.isSelected) {
167
+ return locale == null ? void 0 : locale.unselectGlobalAll;
168
+ }
169
+ return isAllSelected ? locale == null ? void 0 : locale.unselectAll : locale == null ? void 0 : locale.selectAllTooltip;
170
+ }, [isAllSelected, locale == null ? void 0 : locale.selectAllTooltip, locale == null ? void 0 : locale.unselectAll, locale == null ? void 0 : locale.unselectGlobalAll, (_selection$globalSele5 = selection.globalSelection) == null ? void 0 : _selection$globalSele5.isSelected]);
165
171
  var menuDataSource = useMemo(function () {
166
- var _selection$globalSele4, _selection$selections;
167
- var isGlobalAllSelected = (_selection$globalSele4 = selection.globalSelection) == null ? void 0 : _selection$globalSele4.isSelected;
172
+ var _selection$globalSele6, _selection$selections;
173
+ var isGlobalAllSelected = (_selection$globalSele6 = selection.globalSelection) == null ? void 0 : _selection$globalSele6.isSelected;
168
174
  var globalSelectionItem = selection.globalSelection ? [isGlobalAllSelected ? {
169
175
  onClick: unselectGlobalAll,
170
176
  text: locale == null ? void 0 : locale.unselectGlobalAll
@@ -216,10 +222,10 @@ var TableSelection = function TableSelection(_ref) {
216
222
  }, /*#__PURE__*/React.createElement(Button.Checkbox, {
217
223
  disabled: disabledBulkSelection,
218
224
  "data-testid": "ds-table-batch-selection-button",
219
- checked: ((_selection$globalSele5 = selection.globalSelection) == null ? void 0 : _selection$globalSele5.isSelected) || isAllSelected,
225
+ checked: ((_selection$globalSele7 = selection.globalSelection) == null ? void 0 : _selection$globalSele7.isSelected) || isAllSelected,
220
226
  onChange: function onChange() {
221
- var _selection$globalSele6;
222
- if ((_selection$globalSele6 = selection.globalSelection) != null && _selection$globalSele6.isSelected) {
227
+ var _selection$globalSele8;
228
+ if ((_selection$globalSele8 = selection.globalSelection) != null && _selection$globalSele8.isSelected) {
223
229
  unselectGlobalAll();
224
230
  } else if (!isAllSelected) {
225
231
  selectAll();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-table",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "Table UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -34,31 +34,31 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-alert": "^1.1.13",
38
- "@synerise/ds-badge": "^1.0.19",
39
- "@synerise/ds-button": "^1.4.8",
40
- "@synerise/ds-button-group": "^1.1.12",
41
- "@synerise/ds-checkbox": "^1.1.5",
42
- "@synerise/ds-column-manager": "^1.2.10",
43
- "@synerise/ds-data-format": "^1.1.0",
44
- "@synerise/ds-dropdown": "^1.0.20",
37
+ "@synerise/ds-alert": "^1.1.14",
38
+ "@synerise/ds-badge": "^1.0.20",
39
+ "@synerise/ds-button": "^1.4.9",
40
+ "@synerise/ds-button-group": "^1.1.13",
41
+ "@synerise/ds-checkbox": "^1.1.6",
42
+ "@synerise/ds-column-manager": "^1.2.11",
43
+ "@synerise/ds-data-format": "^1.1.1",
44
+ "@synerise/ds-dropdown": "^1.0.21",
45
45
  "@synerise/ds-flag": "^1.0.3",
46
- "@synerise/ds-icon": "^1.7.0",
47
- "@synerise/ds-input": "^1.3.7",
48
- "@synerise/ds-loader": "^1.0.7",
49
- "@synerise/ds-menu": "^1.0.20",
50
- "@synerise/ds-modal": "^1.2.8",
51
- "@synerise/ds-pagination": "^1.0.22",
52
- "@synerise/ds-result": "^1.0.21",
53
- "@synerise/ds-scrollbar": "^1.1.6",
54
- "@synerise/ds-search": "^1.2.8",
55
- "@synerise/ds-select": "^1.1.15",
56
- "@synerise/ds-skeleton": "^1.0.19",
57
- "@synerise/ds-status": "^1.2.12",
58
- "@synerise/ds-tag": "^1.1.16",
59
- "@synerise/ds-tooltip": "^1.1.16",
60
- "@synerise/ds-typography": "^1.0.18",
61
- "@synerise/ds-utils": "^1.4.0",
46
+ "@synerise/ds-icon": "^1.7.1",
47
+ "@synerise/ds-input": "^1.3.8",
48
+ "@synerise/ds-loader": "^1.0.8",
49
+ "@synerise/ds-menu": "^1.0.21",
50
+ "@synerise/ds-modal": "^1.2.9",
51
+ "@synerise/ds-pagination": "^1.0.23",
52
+ "@synerise/ds-result": "^1.0.22",
53
+ "@synerise/ds-scrollbar": "^1.1.7",
54
+ "@synerise/ds-search": "^1.3.0",
55
+ "@synerise/ds-select": "^1.1.16",
56
+ "@synerise/ds-skeleton": "^1.0.20",
57
+ "@synerise/ds-status": "^1.2.13",
58
+ "@synerise/ds-tag": "^1.1.17",
59
+ "@synerise/ds-tooltip": "^1.1.17",
60
+ "@synerise/ds-typography": "^1.0.19",
61
+ "@synerise/ds-utils": "^1.4.1",
62
62
  "@types/react-window": "^1.8.8",
63
63
  "classnames": "^2.5.1",
64
64
  "copy-to-clipboard": "^3.3.1",
@@ -77,5 +77,5 @@
77
77
  "react-intl": ">=3.12.0 <= 6.8",
78
78
  "styled-components": "^5.3.3"
79
79
  },
80
- "gitHead": "3863fff45088653e308d6827f618ee5d203ab470"
80
+ "gitHead": "5f5d424cf8c7fa89e231c36a45f5ab3e4cfac8e7"
81
81
  }