@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
|
@@ -33300,7 +33300,7 @@ var Container$6 = /*#__PURE__*/styled.div.withConfig({
|
|
|
33300
33300
|
var CloseButton$1 = /*#__PURE__*/styled.div.withConfig({
|
|
33301
33301
|
displayName: "DraggableContainer__CloseButton",
|
|
33302
33302
|
componentId: "sc-184mpyl-1"
|
|
33303
|
-
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
33303
|
+
})(["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;}"]);
|
|
33304
33304
|
var TitleContainer = /*#__PURE__*/styled.div.withConfig({
|
|
33305
33305
|
displayName: "DraggableContainer__TitleContainer",
|
|
33306
33306
|
componentId: "sc-184mpyl-2"
|
|
@@ -33332,9 +33332,21 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
33332
33332
|
setOpened = _useState3[1];
|
|
33333
33333
|
React.useEffect(function () {
|
|
33334
33334
|
var firstOption = options[0];
|
|
33335
|
-
if (firstOption
|
|
33336
|
-
|
|
33337
|
-
|
|
33335
|
+
if (firstOption) {
|
|
33336
|
+
var change = !selectedValue;
|
|
33337
|
+
if (!change) {
|
|
33338
|
+
change = options.filter(function (o) {
|
|
33339
|
+
return o.value === selectedValue;
|
|
33340
|
+
}).length < 1;
|
|
33341
|
+
}
|
|
33342
|
+
/**
|
|
33343
|
+
* make a selection if there is no selected value already present
|
|
33344
|
+
* or if there is a selected value but its not in new options
|
|
33345
|
+
*/
|
|
33346
|
+
if (change) {
|
|
33347
|
+
setSelectedValue(firstOption.value);
|
|
33348
|
+
setSelectedOption(firstOption.option);
|
|
33349
|
+
}
|
|
33338
33350
|
}
|
|
33339
33351
|
}, [options]);
|
|
33340
33352
|
React.useEffect(function () {
|
|
@@ -33382,7 +33394,7 @@ var DropdownSelect = /*#__PURE__*/styled.p.withConfig({
|
|
|
33382
33394
|
var DropdownOptions = /*#__PURE__*/styled.ul.withConfig({
|
|
33383
33395
|
displayName: "Dropdown__DropdownOptions",
|
|
33384
33396
|
componentId: "sc-8arn65-2"
|
|
33385
|
-
})(["position:absolute;width:100%;display:", ";box-sizing:border-box;"], function (props) {
|
|
33397
|
+
})(["position:absolute;width:100%;display:", ";box-sizing:border-box;@media (max-width:768px){padding:8px 0;}"], function (props) {
|
|
33386
33398
|
return props.opened ? 'block' : 'none';
|
|
33387
33399
|
});
|
|
33388
33400
|
|
|
@@ -34476,7 +34488,7 @@ var RadioOptionsWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
34476
34488
|
var ButtonWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
34477
34489
|
displayName: "CraftBook__ButtonWrapper",
|
|
34478
34490
|
componentId: "sc-19q95ue-7"
|
|
34479
|
-
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
|
|
34491
|
+
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;button{padding:0px 50px;}"]);
|
|
34480
34492
|
|
|
34481
34493
|
var DropdownSelectorContainer = function DropdownSelectorContainer(_ref) {
|
|
34482
34494
|
var title = _ref.title,
|
|
@@ -36716,7 +36728,7 @@ var AlertWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
36716
36728
|
var ButtonWrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
36717
36729
|
displayName: "TradingMenu__ButtonWrapper",
|
|
36718
36730
|
componentId: "sc-1wjsz1l-6"
|
|
36719
|
-
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;margin-top:1rem;"]);
|
|
36731
|
+
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;margin-top:1rem;button{padding:0px 50px;}"]);
|
|
36720
36732
|
|
|
36721
36733
|
/* eslint-disable react/require-default-props */
|
|
36722
36734
|
var Truncate = function Truncate(_ref) {
|