@homecode/ui 4.19.7 → 4.19.8

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.
@@ -1,4 +1,4 @@
1
- import { jsx } from 'react/jsx-runtime';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import 'nanoid';
3
3
  import '../../tools/dom.js';
4
4
  import throttle from '../../tools/throttle.js';
@@ -129,7 +129,7 @@ class Draggable extends Component {
129
129
  render() {
130
130
  const { items, className, itemClassName, renderItem, children } = this.props;
131
131
  const { draggingId, underId, underOffset } = this.store;
132
- return (jsx("div", { className: cn(S.root, draggingId && S.dragging, className), children: items.map((id, index) => (jsx("div", { className: cn(S.item, itemClassName, id === draggingId && S.active), onPointerDown: this.onPointerDown, "data-id": id, children: jsx("div", { className: S.inner, style: underId === id ? { transform: underOffset } : null, children: renderItem(id, index, id === draggingId) }) }, id))) }));
132
+ return (jsxs("div", { className: cn(S.root, draggingId && S.dragging, className), children: [items.map((id, index) => (jsx("div", { className: cn(S.item, itemClassName, id === draggingId && S.active), onPointerDown: this.onPointerDown, children: jsx("div", { className: S.inner, style: underId === id ? { transform: underOffset } : null, children: renderItem(id, index, id === draggingId) }) }, id))), children] }));
133
133
  }
134
134
  }
135
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homecode/ui",
3
- "version": "4.19.7",
3
+ "version": "4.19.8",
4
4
  "description": "React UI components library",
5
5
  "scripts": {
6
6
  "test": "jest",