@rpg-engine/long-bow 0.1.74 → 0.1.75
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/dist/long-bow.cjs.development.js +10 -22
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +10 -22
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DraggableContainer.tsx +37 -43
|
@@ -354,11 +354,7 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
354
354
|
document.removeEventListener('clickOutside', function (_e) {});
|
|
355
355
|
};
|
|
356
356
|
}, []);
|
|
357
|
-
return React__default.createElement(
|
|
358
|
-
ref: draggableRef,
|
|
359
|
-
width: width,
|
|
360
|
-
height: height || 'auto'
|
|
361
|
-
}, React__default.createElement(Draggable, {
|
|
357
|
+
return React__default.createElement(Draggable, {
|
|
362
358
|
cancel: ".container-close," + cancelDrag,
|
|
363
359
|
onDrag: function onDrag(_e, data) {
|
|
364
360
|
if (onPositionChange) {
|
|
@@ -369,6 +365,7 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
369
365
|
}
|
|
370
366
|
}
|
|
371
367
|
}, React__default.createElement(Container$2, {
|
|
368
|
+
ref: draggableRef,
|
|
372
369
|
width: width,
|
|
373
370
|
height: height || 'auto',
|
|
374
371
|
className: "rpgui-container " + type + " " + className
|
|
@@ -381,41 +378,32 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
381
378
|
className: "container-close",
|
|
382
379
|
onClick: onCloseButton,
|
|
383
380
|
onTouchStart: onCloseButton
|
|
384
|
-
}, "X"), children))
|
|
381
|
+
}, "X"), children));
|
|
385
382
|
};
|
|
386
|
-
var DraggableRef = /*#__PURE__*/styled.div.withConfig({
|
|
387
|
-
displayName: "DraggableContainer__DraggableRef",
|
|
388
|
-
componentId: "sc-184mpyl-0"
|
|
389
|
-
})(["height:", ";width:", ";"], function (props) {
|
|
390
|
-
return props.height;
|
|
391
|
-
}, function (_ref2) {
|
|
392
|
-
var width = _ref2.width;
|
|
393
|
-
return width;
|
|
394
|
-
});
|
|
395
383
|
var Container$2 = /*#__PURE__*/styled.div.withConfig({
|
|
396
384
|
displayName: "DraggableContainer__Container",
|
|
397
|
-
componentId: "sc-184mpyl-
|
|
385
|
+
componentId: "sc-184mpyl-0"
|
|
398
386
|
})(["height:", ";width:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;&.rpgui-container{padding-top:1.5rem;}"], function (props) {
|
|
399
387
|
return props.height;
|
|
400
|
-
}, function (
|
|
401
|
-
var width =
|
|
388
|
+
}, function (_ref2) {
|
|
389
|
+
var width = _ref2.width;
|
|
402
390
|
return width;
|
|
403
391
|
});
|
|
404
392
|
var CloseButton$1 = /*#__PURE__*/styled.div.withConfig({
|
|
405
393
|
displayName: "DraggableContainer__CloseButton",
|
|
406
|
-
componentId: "sc-184mpyl-
|
|
394
|
+
componentId: "sc-184mpyl-1"
|
|
407
395
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:0.8rem;"]);
|
|
408
396
|
var TitleContainer = /*#__PURE__*/styled.div.withConfig({
|
|
409
397
|
displayName: "DraggableContainer__TitleContainer",
|
|
410
|
-
componentId: "sc-184mpyl-
|
|
398
|
+
componentId: "sc-184mpyl-2"
|
|
411
399
|
})(["width:100%;height:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;"]);
|
|
412
400
|
var Title = /*#__PURE__*/styled.h1.withConfig({
|
|
413
401
|
displayName: "DraggableContainer__Title",
|
|
414
|
-
componentId: "sc-184mpyl-
|
|
402
|
+
componentId: "sc-184mpyl-3"
|
|
415
403
|
})(["color:white;z-index:22;font-size:0.6rem;"]);
|
|
416
404
|
var Icon = /*#__PURE__*/styled.img.withConfig({
|
|
417
405
|
displayName: "DraggableContainer__Icon",
|
|
418
|
-
componentId: "sc-184mpyl-
|
|
406
|
+
componentId: "sc-184mpyl-4"
|
|
419
407
|
})(["color:white;z-index:22;font-size:10px;width:", ";margin-right:0.5rem;"], function (props) {
|
|
420
408
|
return props.width;
|
|
421
409
|
});
|