@rpg-engine/long-bow 0.3.89 → 0.3.90
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 +19 -7
- 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 +19 -7
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CraftBook/CraftBook.tsx +3 -0
- package/src/components/DraggableContainer.tsx +4 -0
- package/src/components/Dropdown.tsx +21 -7
- package/src/components/TradingMenu/TradingMenu.tsx +3 -0
- package/src/stories/Dropdown.stories.tsx +1 -1
package/dist/long-bow.esm.js
CHANGED
|
@@ -33295,7 +33295,7 @@ var Container$6 = /*#__PURE__*/styled.div.withConfig({
|
|
|
33295
33295
|
var CloseButton$1 = /*#__PURE__*/styled.div.withConfig({
|
|
33296
33296
|
displayName: "DraggableContainer__CloseButton",
|
|
33297
33297
|
componentId: "sc-184mpyl-1"
|
|
33298
|
-
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
33298
|
+
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.1rem;@media (max-width:768px){font-size:1.3rem;padding:3px;}"]);
|
|
33299
33299
|
var TitleContainer = /*#__PURE__*/styled.div.withConfig({
|
|
33300
33300
|
displayName: "DraggableContainer__TitleContainer",
|
|
33301
33301
|
componentId: "sc-184mpyl-2"
|
|
@@ -33327,9 +33327,21 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
33327
33327
|
setOpened = _useState3[1];
|
|
33328
33328
|
useEffect(function () {
|
|
33329
33329
|
var firstOption = options[0];
|
|
33330
|
-
if (firstOption
|
|
33331
|
-
|
|
33332
|
-
|
|
33330
|
+
if (firstOption) {
|
|
33331
|
+
var change = !selectedValue;
|
|
33332
|
+
if (!change) {
|
|
33333
|
+
change = options.filter(function (o) {
|
|
33334
|
+
return o.value === selectedValue;
|
|
33335
|
+
}).length < 1;
|
|
33336
|
+
}
|
|
33337
|
+
/**
|
|
33338
|
+
* make a selection if there is no selected value already present
|
|
33339
|
+
* or if there is a selected value but its not in new options
|
|
33340
|
+
*/
|
|
33341
|
+
if (change) {
|
|
33342
|
+
setSelectedValue(firstOption.value);
|
|
33343
|
+
setSelectedOption(firstOption.option);
|
|
33344
|
+
}
|
|
33333
33345
|
}
|
|
33334
33346
|
}, [options]);
|
|
33335
33347
|
useEffect(function () {
|
|
@@ -33377,7 +33389,7 @@ var DropdownSelect = /*#__PURE__*/styled.p.withConfig({
|
|
|
33377
33389
|
var DropdownOptions = /*#__PURE__*/styled.ul.withConfig({
|
|
33378
33390
|
displayName: "Dropdown__DropdownOptions",
|
|
33379
33391
|
componentId: "sc-8arn65-2"
|
|
33380
|
-
})(["position:absolute;width:100%;display:", ";box-sizing:border-box;"], function (props) {
|
|
33392
|
+
})(["position:absolute;width:100%;display:", ";box-sizing:border-box;@media (max-width:768px){padding:8px 0;}"], function (props) {
|
|
33381
33393
|
return props.opened ? 'block' : 'none';
|
|
33382
33394
|
});
|
|
33383
33395
|
|
|
@@ -34471,7 +34483,7 @@ var RadioOptionsWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
34471
34483
|
var ButtonWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
34472
34484
|
displayName: "CraftBook__ButtonWrapper",
|
|
34473
34485
|
componentId: "sc-19q95ue-7"
|
|
34474
|
-
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
|
|
34486
|
+
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;button{padding:0px 50px;}"]);
|
|
34475
34487
|
|
|
34476
34488
|
var DropdownSelectorContainer = function DropdownSelectorContainer(_ref) {
|
|
34477
34489
|
var title = _ref.title,
|
|
@@ -36714,7 +36726,7 @@ var AlertWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
36714
36726
|
var ButtonWrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
36715
36727
|
displayName: "TradingMenu__ButtonWrapper",
|
|
36716
36728
|
componentId: "sc-1wjsz1l-6"
|
|
36717
|
-
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;margin-top:1rem;"]);
|
|
36729
|
+
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;margin-top:1rem;button{padding:0px 50px;}"]);
|
|
36718
36730
|
|
|
36719
36731
|
/* eslint-disable react/require-default-props */
|
|
36720
36732
|
var Truncate = function Truncate(_ref) {
|