@jetbrains/ring-ui 5.0.14 → 5.0.17

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.
@@ -9,6 +9,7 @@ export interface RowProps<T extends SelectionItem> extends Omit<HTMLAttributes<H
9
9
  showFocus: boolean;
10
10
  draggable: boolean;
11
11
  alwaysShowDragHandle: boolean;
12
+ dragHandleTitle?: string;
12
13
  selected: boolean;
13
14
  onHover: (item: T, e: React.MouseEvent<HTMLTableRowElement>) => void;
14
15
  onSelect: (item: T, selected: boolean) => void;
package/dist/table/row.js CHANGED
@@ -45,21 +45,23 @@ import '../popup/popup.target.js';
45
45
 
46
46
  const DragHandle = _ref => {
47
47
  let {
48
- alwaysShowDragHandle
48
+ alwaysShowDragHandle,
49
+ dragHandleTitle = 'Drag to reorder'
49
50
  } = _ref;
50
51
  const classes = classNames(modules_1db4bbca.dragHandle, {
51
52
  [modules_1db4bbca.visibleDragHandle]: alwaysShowDragHandle
52
53
  });
53
54
  return /*#__PURE__*/React.createElement(Button, {
54
55
  "data-movable-handle": true,
55
- title: "Drag",
56
+ title: dragHandleTitle,
56
57
  className: classes,
57
58
  icon: dragIcon
58
59
  });
59
60
  };
60
61
 
61
62
  DragHandle.propTypes = {
62
- alwaysShowDragHandle: PropTypes.bool
63
+ alwaysShowDragHandle: PropTypes.bool,
64
+ dragHandleTitle: PropTypes.string
63
65
  };
64
66
  class Row extends PureComponent {
65
67
  constructor() {
@@ -130,6 +132,7 @@ class Row extends PureComponent {
130
132
  showFocus,
131
133
  draggable,
132
134
  alwaysShowDragHandle,
135
+ dragHandleTitle,
133
136
  level,
134
137
  collapsible,
135
138
  parentCollapsible,
@@ -169,7 +172,8 @@ class Row extends PureComponent {
169
172
  className: metaColumnClasses,
170
173
  style: metaColumnStyle
171
174
  }, draggable && /*#__PURE__*/React.createElement(DragHandle, {
172
- alwaysShowDragHandle: alwaysShowDragHandle
175
+ alwaysShowDragHandle: alwaysShowDragHandle,
176
+ dragHandleTitle: dragHandleTitle
173
177
  }), selectable && /*#__PURE__*/React.createElement(Tooltip, {
174
178
  title: checkboxTooltip
175
179
  }, /*#__PURE__*/React.createElement(Checkbox, {
@@ -26,6 +26,7 @@ declare class SmartTable<T extends SelectionItem> extends PureComponent<SmartTab
26
26
  sortKey?: React.Validator<string | null | undefined> | undefined;
27
27
  sortOrder?: React.Validator<boolean | null | undefined> | undefined;
28
28
  alwaysShowDragHandle?: React.Validator<boolean | null | undefined> | undefined;
29
+ dragHandleTitle?: React.Validator<string | null | undefined> | undefined;
29
30
  onReorder?: React.Validator<((params: import("./table").ReorderParams<SelectionItem>) => void) | null | undefined> | undefined;
30
31
  getItemKey?: React.Validator<((item: SelectionItem) => string | number) | null | undefined> | undefined;
31
32
  stickyHeader?: React.Validator<boolean | null | undefined> | undefined;
@@ -25,6 +25,7 @@ export interface TableProps<T extends SelectionItem> extends FocusSensorAddProps
25
25
  sortOrder: boolean;
26
26
  draggable: boolean;
27
27
  alwaysShowDragHandle: boolean;
28
+ dragHandleTitle?: string;
28
29
  stickyHeader: boolean;
29
30
  getItemLevel: (item: T) => number;
30
31
  getItemClassName: (item: T) => string | null | undefined;
@@ -191,6 +191,7 @@ class Table extends PureComponent {
191
191
  getItemDataTest,
192
192
  draggable,
193
193
  alwaysShowDragHandle,
194
+ dragHandleTitle,
194
195
  loading,
195
196
  onSort,
196
197
  sortKey,
@@ -296,6 +297,7 @@ class Table extends PureComponent {
296
297
  }),
297
298
  draggable: draggable,
298
299
  alwaysShowDragHandle: alwaysShowDragHandle,
300
+ dragHandleTitle: dragHandleTitle,
299
301
  columns: columns,
300
302
  "data-test": getItemDataTest(value)
301
303
  }, restProps));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "5.0.14",
3
+ "version": "5.0.17",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -72,8 +72,8 @@
72
72
  },
73
73
  "readmeFilename": "README.md",
74
74
  "devDependencies": {
75
- "@babel/cli": "^7.18.6",
76
- "@babel/eslint-parser": "^7.18.2",
75
+ "@babel/cli": "^7.18.9",
76
+ "@babel/eslint-parser": "^7.18.9",
77
77
  "@jetbrains/eslint-config": "^5.4.1",
78
78
  "@jetbrains/stylelint-config": "^3.0.2",
79
79
  "@primer/octicons": "^17.3.0",
@@ -96,18 +96,18 @@
96
96
  "@storybook/source-loader": "6.5.9",
97
97
  "@storybook/theming": "6.5.9",
98
98
  "@testing-library/react": "^13.3.0",
99
- "@testing-library/user-event": "^14.2.1",
99
+ "@testing-library/user-event": "^14.2.6",
100
100
  "@types/chai": "^4.3.1",
101
101
  "@types/chai-as-promised": "^7.1.5",
102
102
  "@types/chai-dom": "0.0.10",
103
103
  "@types/chai-enzyme": "^0.6.8",
104
104
  "@types/enzyme": "^3.10.12",
105
- "@types/react": "^18.0.14",
106
- "@types/react-dom": "^18.0.5",
105
+ "@types/react": "^18.0.15",
106
+ "@types/react-dom": "^18.0.6",
107
107
  "@types/sinon": "^10.0.12",
108
108
  "@types/sinon-chai": "^3.2.8",
109
- "@typescript-eslint/eslint-plugin": "^5.3.1",
110
- "@typescript-eslint/parser": "^5.30.0",
109
+ "@typescript-eslint/eslint-plugin": "^5.30.7",
110
+ "@typescript-eslint/parser": "^5.30.7",
111
111
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
112
112
  "angular": "^1.8.3",
113
113
  "angular-mocks": "^1.8.3",
@@ -119,10 +119,10 @@
119
119
  "chai-dom": "^1.10.0",
120
120
  "chai-enzyme": "1.0.0-beta.1",
121
121
  "cheerio": "^0.22.0",
122
- "core-js": "^3.23.3",
122
+ "core-js": "^3.23.5",
123
123
  "cpy-cli": "^3.1.1",
124
124
  "enzyme": "^3.11.0",
125
- "eslint": "^8.18.0",
125
+ "eslint": "^8.20.0",
126
126
  "eslint-import-resolver-webpack": "^0.13.2",
127
127
  "eslint-plugin-angular": "^4.1.0",
128
128
  "eslint-plugin-bdd": "^2.1.1",
@@ -135,7 +135,8 @@
135
135
  "husky": "^8.0.1",
136
136
  "identity-obj-proxy": "^3.0.0",
137
137
  "imports-loader": "^4.0.0",
138
- "jest": "~27.5.1",
138
+ "jest": "~28.1.3",
139
+ "jest-environment-jsdom": "^28.1.3",
139
140
  "jest-teamcity": "^1.10.0",
140
141
  "karma": "^6.4.0",
141
142
  "karma-chrome-launcher": "3.1.1",
@@ -143,19 +144,19 @@
143
144
  "karma-sourcemap-loader": "^0.3.8",
144
145
  "karma-teamcity-reporter": "^2.0.0",
145
146
  "karma-webpack": "^5.0.0",
146
- "lerna": "^5.1.6",
147
+ "lerna": "^5.1.8",
147
148
  "lint-staged": "^13.0.3",
148
149
  "merge-options": "^3.0.4",
149
150
  "mocha": "^10.0.0",
150
151
  "pinst": "^3.0.0",
151
- "puppeteer": "^15.2.0",
152
+ "puppeteer": "^15.4.0",
152
153
  "raw-loader": "^4.0.2",
153
154
  "react": "^18.2.0",
154
155
  "react-dom": "^18.2.0",
155
156
  "react-test-renderer": "^18.2.0",
156
157
  "regenerator-runtime": "^0.13.9",
157
158
  "rimraf": "^3.0.2",
158
- "rollup": "^2.75.7",
159
+ "rollup": "^2.77.0",
159
160
  "rollup-plugin-clear": "^2.0.7",
160
161
  "rollup-plugin-styles": "^4.0.0",
161
162
  "sinon": "^14.0.0",
@@ -192,11 +193,11 @@
192
193
  }
193
194
  },
194
195
  "dependencies": {
195
- "@babel/core": "^7.18.6",
196
+ "@babel/core": "^7.18.9",
196
197
  "@babel/preset-typescript": "^7.18.6",
197
198
  "@jetbrains/babel-preset-jetbrains": "^2.3.2",
198
199
  "@jetbrains/icons": "^3.19.1",
199
- "@jetbrains/logos": "^2.0.3",
200
+ "@jetbrains/logos": "^2.0.4",
200
201
  "@jetbrains/postcss-require-hover": "^0.1.2",
201
202
  "@types/combokeys": "^2.4.6",
202
203
  "@types/deep-equal": "^1.0.1",
@@ -226,7 +227,7 @@
226
227
  "focus-trap": "^6.9.4",
227
228
  "focus-visible": "^5.2.0",
228
229
  "highlight.js": "^10.7.2",
229
- "html-loader": "^3.1.2",
230
+ "html-loader": "^4.1.0",
230
231
  "interpolate-loader": "^2.0.1",
231
232
  "just-debounce-it": "^3.0.1",
232
233
  "memoize-one": "^6.0.0",
@@ -234,7 +235,7 @@
234
235
  "postcss-calc": "^8.2.4",
235
236
  "postcss-flexbugs-fixes": "^5.0.2",
236
237
  "postcss-font-family-system-ui": "^5.0.0",
237
- "postcss-loader": "^7.0.0",
238
+ "postcss-loader": "^7.0.1",
238
239
  "postcss-modules-values-replace": "^3.4.0",
239
240
  "postcss-preset-env": "^7.7.2",
240
241
  "prop-types": "^15.8.1",
@@ -257,5 +258,5 @@
257
258
  "node": ">=14.0",
258
259
  "npm": ">=6.0.0"
259
260
  },
260
- "gitHead": "f7588c4781ee89bb213ef3e7bebac42effef3a95"
261
+ "gitHead": "4990becb3f440308979540ecb0b1fa062a5fc0b0"
261
262
  }