@rpg-engine/long-bow 0.5.56 → 0.5.57
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 +3 -2
- 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 +3 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Dropdown.tsx +4 -2
|
@@ -14797,14 +14797,15 @@ var ItemTypes = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
14797
14797
|
})(["display:flex;overflow-y:scroll;overflow-x:hidden;width:max-content;flex-direction:column;padding-right:5px;@media (max-width:", "){overflow-x:scroll;overflow-y:hidden;padding-right:0;width:100%;}"], mobilePortrait.width);
|
|
14798
14798
|
|
|
14799
14799
|
var Dropdown = function Dropdown(_ref) {
|
|
14800
|
+
var _options$, _options$2;
|
|
14800
14801
|
var options = _ref.options,
|
|
14801
14802
|
width = _ref.width,
|
|
14802
14803
|
onChange = _ref.onChange;
|
|
14803
14804
|
var dropdownId = uuid.v4();
|
|
14804
|
-
var _useState = React.useState(options[0]
|
|
14805
|
+
var _useState = React.useState(options == null ? void 0 : (_options$ = options[0]) == null ? void 0 : _options$.value),
|
|
14805
14806
|
selectedValue = _useState[0],
|
|
14806
14807
|
setSelectedValue = _useState[1];
|
|
14807
|
-
var _useState2 = React.useState(options[0].option),
|
|
14808
|
+
var _useState2 = React.useState(options == null ? void 0 : (_options$2 = options[0]) == null ? void 0 : _options$2.option),
|
|
14808
14809
|
selectedOption = _useState2[0],
|
|
14809
14810
|
setSelectedOption = _useState2[1];
|
|
14810
14811
|
var _useState3 = React.useState(false),
|