@rpg-engine/long-bow 0.5.3 → 0.5.4
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/components/ImageCarousel/ImageCarousel.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +16 -8
- 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 +16 -8
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ImageCarousel/ImageCarousel.tsx +20 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -15163,7 +15163,8 @@ var DialogContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
15163
15163
|
var ImageCarousel = function ImageCarousel(_ref) {
|
|
15164
15164
|
var _textImageSelected$te, _textImageSelected$te2;
|
|
15165
15165
|
var textImage = _ref.textImage,
|
|
15166
|
-
isTextFixed = _ref.isTextFixed
|
|
15166
|
+
isTextFixed = _ref.isTextFixed,
|
|
15167
|
+
onCloseButton = _ref.onCloseButton;
|
|
15167
15168
|
var _useState = useState(textImage[0]),
|
|
15168
15169
|
textImageSelected = _useState[0],
|
|
15169
15170
|
setTextImageSelected = _useState[1];
|
|
@@ -15217,7 +15218,10 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
15217
15218
|
onPointerDown: function onPointerDown() {
|
|
15218
15219
|
return goToNextImage();
|
|
15219
15220
|
}
|
|
15220
|
-
})))
|
|
15221
|
+
}))), onCloseButton && React.createElement(CloseButton$2, {
|
|
15222
|
+
className: "container-close",
|
|
15223
|
+
onPointerDown: onCloseButton
|
|
15224
|
+
}, "X"));
|
|
15221
15225
|
};
|
|
15222
15226
|
var CarouselWrapper = /*#__PURE__*/styled(DraggableContainer).withConfig({
|
|
15223
15227
|
displayName: "ImageCarousel__CarouselWrapper",
|
|
@@ -15245,6 +15249,10 @@ var Description$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
15245
15249
|
}, function (props) {
|
|
15246
15250
|
return props.isTextFixed ? 'none' : 'rgba(0, 0, 0, 0.6)';
|
|
15247
15251
|
});
|
|
15252
|
+
var CloseButton$2 = /*#__PURE__*/styled.div.withConfig({
|
|
15253
|
+
displayName: "ImageCarousel__CloseButton",
|
|
15254
|
+
componentId: "sc-jl6f8-4"
|
|
15255
|
+
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;@media (max-width:950px){font-size:1.7rem;padding:12px;}"]);
|
|
15248
15256
|
|
|
15249
15257
|
var SlotsContainer = function SlotsContainer(_ref) {
|
|
15250
15258
|
var children = _ref.children,
|
|
@@ -15394,7 +15402,7 @@ var ItemQuantitySelector = function ItemQuantitySelector(_ref) {
|
|
|
15394
15402
|
return React.createElement(StyledContainer, {
|
|
15395
15403
|
type: RPGUIContainerTypes.Framed,
|
|
15396
15404
|
width: "25rem"
|
|
15397
|
-
}, React.createElement(CloseButton$
|
|
15405
|
+
}, React.createElement(CloseButton$3, {
|
|
15398
15406
|
className: "container-close",
|
|
15399
15407
|
onPointerDown: onClose
|
|
15400
15408
|
}, "X"), React.createElement("h2", null, "Select quantity to move"), React.createElement(StyledForm, {
|
|
@@ -15452,7 +15460,7 @@ var StyledInput = /*#__PURE__*/styled(Input).withConfig({
|
|
|
15452
15460
|
displayName: "ItemQuantitySelector__StyledInput",
|
|
15453
15461
|
componentId: "sc-yfdtpn-2"
|
|
15454
15462
|
})(["text-align:center;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;}"]);
|
|
15455
|
-
var CloseButton$
|
|
15463
|
+
var CloseButton$3 = /*#__PURE__*/styled.div.withConfig({
|
|
15456
15464
|
displayName: "ItemQuantitySelector__CloseButton",
|
|
15457
15465
|
componentId: "sc-yfdtpn-3"
|
|
15458
15466
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:0.8rem;"]);
|
|
@@ -17354,7 +17362,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
17354
17362
|
cancelDrag: "#skillsDiv",
|
|
17355
17363
|
scale: scale,
|
|
17356
17364
|
width: "100%"
|
|
17357
|
-
}, onCloseButton && React.createElement(CloseButton$
|
|
17365
|
+
}, onCloseButton && React.createElement(CloseButton$4, {
|
|
17358
17366
|
onPointerDown: onCloseButton
|
|
17359
17367
|
}, "X"), React.createElement(SkillsContainerDiv, {
|
|
17360
17368
|
id: "skillsDiv"
|
|
@@ -17390,7 +17398,7 @@ var SkillSplitDiv = /*#__PURE__*/styled.div.withConfig({
|
|
|
17390
17398
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
17391
17399
|
componentId: "sc-1g0c67q-2"
|
|
17392
17400
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
17393
|
-
var CloseButton$
|
|
17401
|
+
var CloseButton$4 = /*#__PURE__*/styled.div.withConfig({
|
|
17394
17402
|
displayName: "SkillsContainer__CloseButton",
|
|
17395
17403
|
componentId: "sc-1g0c67q-3"
|
|
17396
17404
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -17800,7 +17808,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
17800
17808
|
scale = _ref.scale;
|
|
17801
17809
|
return React.createElement(Draggable, {
|
|
17802
17810
|
scale: scale
|
|
17803
|
-
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$
|
|
17811
|
+
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$5, {
|
|
17804
17812
|
onPointerDown: onClose
|
|
17805
17813
|
}, "X"), React.createElement(DayNightContainer, null, React.createElement(DayNightPeriod, {
|
|
17806
17814
|
periodOfDay: periodOfDay
|
|
@@ -17814,7 +17822,7 @@ var Time = /*#__PURE__*/styled.div.withConfig({
|
|
|
17814
17822
|
displayName: "TimeWidget__Time",
|
|
17815
17823
|
componentId: "sc-1ja236h-1"
|
|
17816
17824
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
17817
|
-
var CloseButton$
|
|
17825
|
+
var CloseButton$5 = /*#__PURE__*/styled.p.withConfig({
|
|
17818
17826
|
displayName: "TimeWidget__CloseButton",
|
|
17819
17827
|
componentId: "sc-1ja236h-2"
|
|
17820
17828
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|