ui-beyable 1.1.0-beta.20 → 1.1.0-beta.22
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.
|
@@ -23,7 +23,9 @@ interface IListItem {
|
|
|
23
23
|
text?: any;
|
|
24
24
|
description?: any;
|
|
25
25
|
actions?: React.ReactNode;
|
|
26
|
-
onClick?:
|
|
26
|
+
onClick?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
27
|
+
onMouseEnter?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
28
|
+
onMouseLeave?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
27
29
|
value?: any;
|
|
28
30
|
valueMaxWidth?: number;
|
|
29
31
|
valueMinWidth?: number;
|
package/lib/cjs/index.js
CHANGED
|
@@ -2220,7 +2220,7 @@ var List = React.forwardRef(function (_a, ref) {
|
|
|
2220
2220
|
return (React.createElement("div", __assign({ className: cssClass.join(' '), style: style }, otherProps, { ref: ref }), children));
|
|
2221
2221
|
});
|
|
2222
2222
|
var ListItem = React.forwardRef(function (_a, ref) {
|
|
2223
|
-
var children = _a.children, className = _a.className, picto = _a.picto, text = _a.text, description = _a.description, actions = _a.actions, onClick = _a.onClick, value = _a.value, _b = _a.valueMaxWidth, valueMaxWidth = _b === void 0 ? 200 : _b, valueMinWidth = _a.valueMinWidth, _c = _a.hasArrow, hasArrow = _c === void 0 ? false : _c, _d = _a.textIsBold, textIsBold = _d === void 0 ? undefined : _d, _e = _a.textIsItalic, textIsItalic = _e === void 0 ? false : _e, _f = _a.textHasEllipsis, textHasEllipsis = _f === void 0 ? false : _f, _g = _a.textBreakWord, textBreakWord = _g === void 0 ? false : _g, _h = _a.isActive, isActive = _h === void 0 ? false : _h, _j = _a.isDragging, isDragging = _j === void 0 ? false : _j, dragHandle = _a.dragHandle, _k = _a.dragHandlePosition, dragHandlePosition = _k === void 0 ? 'before' : _k, otherProps = __rest(_a, ["children", "className", "picto", "text", "description", "actions", "onClick", "value", "valueMaxWidth", "valueMinWidth", "hasArrow", "textIsBold", "textIsItalic", "textHasEllipsis", "textBreakWord", "isActive", "isDragging", "dragHandle", "dragHandlePosition"]);
|
|
2223
|
+
var children = _a.children, className = _a.className, picto = _a.picto, text = _a.text, description = _a.description, actions = _a.actions, onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, value = _a.value, _b = _a.valueMaxWidth, valueMaxWidth = _b === void 0 ? 200 : _b, valueMinWidth = _a.valueMinWidth, _c = _a.hasArrow, hasArrow = _c === void 0 ? false : _c, _d = _a.textIsBold, textIsBold = _d === void 0 ? undefined : _d, _e = _a.textIsItalic, textIsItalic = _e === void 0 ? false : _e, _f = _a.textHasEllipsis, textHasEllipsis = _f === void 0 ? false : _f, _g = _a.textBreakWord, textBreakWord = _g === void 0 ? false : _g, _h = _a.isActive, isActive = _h === void 0 ? false : _h, _j = _a.isDragging, isDragging = _j === void 0 ? false : _j, dragHandle = _a.dragHandle, _k = _a.dragHandlePosition, dragHandlePosition = _k === void 0 ? 'before' : _k, otherProps = __rest(_a, ["children", "className", "picto", "text", "description", "actions", "onClick", "onMouseEnter", "onMouseLeave", "value", "valueMaxWidth", "valueMinWidth", "hasArrow", "textIsBold", "textIsItalic", "textHasEllipsis", "textBreakWord", "isActive", "isDragging", "dragHandle", "dragHandlePosition"]);
|
|
2224
2224
|
var hasClickHandler = typeof onClick === 'function';
|
|
2225
2225
|
var cssClass = [styles$j.list_item];
|
|
2226
2226
|
var style = {};
|
|
@@ -2257,7 +2257,7 @@ var ListItem = React.forwardRef(function (_a, ref) {
|
|
|
2257
2257
|
onClick(ev);
|
|
2258
2258
|
}
|
|
2259
2259
|
};
|
|
2260
|
-
return (React.createElement("div", __assign({ className: cssClass.join(' '), onClick: function (ev) { return handleClick(ev); } }, otherProps, { ref: ref }),
|
|
2260
|
+
return (React.createElement("div", __assign({ className: cssClass.join(' '), onClick: function (ev) { return handleClick(ev); } }, otherProps, { onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ref: ref }),
|
|
2261
2261
|
dragHandle && dragHandlePosition === 'before' &&
|
|
2262
2262
|
React.createElement("div", { className: styles$j.dragHandleBefore }, dragHandle),
|
|
2263
2263
|
picto &&
|
|
@@ -23,7 +23,9 @@ interface IListItem {
|
|
|
23
23
|
text?: any;
|
|
24
24
|
description?: any;
|
|
25
25
|
actions?: React.ReactNode;
|
|
26
|
-
onClick?:
|
|
26
|
+
onClick?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
27
|
+
onMouseEnter?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
28
|
+
onMouseLeave?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
27
29
|
value?: any;
|
|
28
30
|
valueMaxWidth?: number;
|
|
29
31
|
valueMinWidth?: number;
|
package/lib/esm/index.js
CHANGED
|
@@ -2218,7 +2218,7 @@ var List = React.forwardRef(function (_a, ref) {
|
|
|
2218
2218
|
return (React.createElement("div", __assign({ className: cssClass.join(' '), style: style }, otherProps, { ref: ref }), children));
|
|
2219
2219
|
});
|
|
2220
2220
|
var ListItem = React.forwardRef(function (_a, ref) {
|
|
2221
|
-
var children = _a.children, className = _a.className, picto = _a.picto, text = _a.text, description = _a.description, actions = _a.actions, onClick = _a.onClick, value = _a.value, _b = _a.valueMaxWidth, valueMaxWidth = _b === void 0 ? 200 : _b, valueMinWidth = _a.valueMinWidth, _c = _a.hasArrow, hasArrow = _c === void 0 ? false : _c, _d = _a.textIsBold, textIsBold = _d === void 0 ? undefined : _d, _e = _a.textIsItalic, textIsItalic = _e === void 0 ? false : _e, _f = _a.textHasEllipsis, textHasEllipsis = _f === void 0 ? false : _f, _g = _a.textBreakWord, textBreakWord = _g === void 0 ? false : _g, _h = _a.isActive, isActive = _h === void 0 ? false : _h, _j = _a.isDragging, isDragging = _j === void 0 ? false : _j, dragHandle = _a.dragHandle, _k = _a.dragHandlePosition, dragHandlePosition = _k === void 0 ? 'before' : _k, otherProps = __rest(_a, ["children", "className", "picto", "text", "description", "actions", "onClick", "value", "valueMaxWidth", "valueMinWidth", "hasArrow", "textIsBold", "textIsItalic", "textHasEllipsis", "textBreakWord", "isActive", "isDragging", "dragHandle", "dragHandlePosition"]);
|
|
2221
|
+
var children = _a.children, className = _a.className, picto = _a.picto, text = _a.text, description = _a.description, actions = _a.actions, onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, value = _a.value, _b = _a.valueMaxWidth, valueMaxWidth = _b === void 0 ? 200 : _b, valueMinWidth = _a.valueMinWidth, _c = _a.hasArrow, hasArrow = _c === void 0 ? false : _c, _d = _a.textIsBold, textIsBold = _d === void 0 ? undefined : _d, _e = _a.textIsItalic, textIsItalic = _e === void 0 ? false : _e, _f = _a.textHasEllipsis, textHasEllipsis = _f === void 0 ? false : _f, _g = _a.textBreakWord, textBreakWord = _g === void 0 ? false : _g, _h = _a.isActive, isActive = _h === void 0 ? false : _h, _j = _a.isDragging, isDragging = _j === void 0 ? false : _j, dragHandle = _a.dragHandle, _k = _a.dragHandlePosition, dragHandlePosition = _k === void 0 ? 'before' : _k, otherProps = __rest(_a, ["children", "className", "picto", "text", "description", "actions", "onClick", "onMouseEnter", "onMouseLeave", "value", "valueMaxWidth", "valueMinWidth", "hasArrow", "textIsBold", "textIsItalic", "textHasEllipsis", "textBreakWord", "isActive", "isDragging", "dragHandle", "dragHandlePosition"]);
|
|
2222
2222
|
var hasClickHandler = typeof onClick === 'function';
|
|
2223
2223
|
var cssClass = [styles$j.list_item];
|
|
2224
2224
|
var style = {};
|
|
@@ -2255,7 +2255,7 @@ var ListItem = React.forwardRef(function (_a, ref) {
|
|
|
2255
2255
|
onClick(ev);
|
|
2256
2256
|
}
|
|
2257
2257
|
};
|
|
2258
|
-
return (React.createElement("div", __assign({ className: cssClass.join(' '), onClick: function (ev) { return handleClick(ev); } }, otherProps, { ref: ref }),
|
|
2258
|
+
return (React.createElement("div", __assign({ className: cssClass.join(' '), onClick: function (ev) { return handleClick(ev); } }, otherProps, { onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ref: ref }),
|
|
2259
2259
|
dragHandle && dragHandlePosition === 'before' &&
|
|
2260
2260
|
React.createElement("div", { className: styles$j.dragHandleBefore }, dragHandle),
|
|
2261
2261
|
picto &&
|