@rpg-engine/long-bow 0.8.54 → 0.8.56

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.
@@ -27503,9 +27503,6 @@ var Icon = /*#__PURE__*/styled__default.img.withConfig({
27503
27503
  return width;
27504
27504
  });
27505
27505
 
27506
- var ITEM_HEIGHT = 35;
27507
- var MAX_ITEMS_VISIBLE = 10;
27508
- var MAX_HEIGHT = MAX_ITEMS_VISIBLE * ITEM_HEIGHT;
27509
27506
  var Dropdown = function Dropdown(_ref) {
27510
27507
  var options = _ref.options,
27511
27508
  width = _ref.width,
@@ -27558,8 +27555,7 @@ var Dropdown = function Dropdown(_ref) {
27558
27555
  }, React__default.createElement("label", null, "\u25BC"), " ", selectedOption), React__default.createElement(DropdownOptions$1, {
27559
27556
  className: "rpgui-dropdown-imp",
27560
27557
  opened: opened,
27561
- opensUp: opensUp,
27562
- optionsCount: options.length
27558
+ opensUp: opensUp
27563
27559
  }, options.map(function (option) {
27564
27560
  return React__default.createElement("li", {
27565
27561
  key: option.id,
@@ -27574,25 +27570,23 @@ var Dropdown = function Dropdown(_ref) {
27574
27570
  var Container$9 = /*#__PURE__*/styled__default.div.withConfig({
27575
27571
  displayName: "Dropdown__Container",
27576
27572
  componentId: "sc-8arn65-0"
27577
- })(["position:relative;width:", ";max-height:", "px;"], function (props) {
27573
+ })(["position:relative;width:", ";"], function (props) {
27578
27574
  return props.width || '100%';
27579
- }, MAX_HEIGHT);
27575
+ });
27580
27576
  var DropdownSelect$1 = /*#__PURE__*/styled__default.p.withConfig({
27581
27577
  displayName: "Dropdown__DropdownSelect",
27582
27578
  componentId: "sc-8arn65-1"
27583
- })(["width:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:", "px;label{display:inline-block;transform:translateY(-2px);}"], ITEM_HEIGHT);
27579
+ })(["width:100%;box-sizing:border-box;label{display:inline-block;transform:translateY(-2px);}"]);
27584
27580
  var DropdownOptions$1 = /*#__PURE__*/styled__default.ul.withConfig({
27585
27581
  displayName: "Dropdown__DropdownOptions",
27586
27582
  componentId: "sc-8arn65-2"
27587
- })(["position:absolute;width:100%;max-height:", ";overflow-y:auto;display:", ";box-sizing:border-box;bottom:", ";top:", ";margin:0;padding:0;li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:8px 12px;min-height:", "px;max-height:", "px;box-sizing:border-box;line-height:1.2;}"], function (props) {
27588
- return props.opened ? Math.min(props.optionsCount * ITEM_HEIGHT, MAX_HEIGHT) + "px" : '0';
27589
- }, function (props) {
27583
+ })(["position:absolute;width:100%;max-height:300px;overflow-y:auto;display:", ";box-sizing:border-box;bottom:", ";top:", ";margin:0;padding:0;@media (max-width:768px){padding:8px 0;}"], function (props) {
27590
27584
  return props.opened ? 'block' : 'none';
27591
27585
  }, function (props) {
27592
27586
  return props.opensUp ? '100%' : 'auto';
27593
27587
  }, function (props) {
27594
27588
  return props.opensUp ? 'auto' : '100%';
27595
- }, ITEM_HEIGHT, ITEM_HEIGHT);
27589
+ });
27596
27590
 
27597
27591
  var modalRoot = /*#__PURE__*/document.getElementById('modal-root');
27598
27592
  var ModalPortal = function ModalPortal(_ref) {
@@ -34061,7 +34055,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
34061
34055
  e.stopPropagation();
34062
34056
  };
34063
34057
  return React__default.createElement(ModalPortal, null, React__default.createElement(GlobalStyle, null), React__default.createElement(Overlay$2, {
34064
- onPointerDown: handleClose
34058
+ onClick: handleClose
34065
34059
  }), React__default.createElement(ModalContainer, null, React__default.createElement(ModalContent, {
34066
34060
  onPointerDown: stopPropagation
34067
34061
  }, React__default.createElement(MessageContainer, null, typeof message === 'string' ? React__default.createElement(Message$1, null, message) : message), React__default.createElement(ButtonsContainer$2, null, React__default.createElement(CancelButtonWrapper, null, React__default.createElement(Button, {
@@ -34075,15 +34069,15 @@ var ConfirmModal = function ConfirmModal(_ref) {
34075
34069
  var Overlay$2 = /*#__PURE__*/styled__default.div.withConfig({
34076
34070
  displayName: "ConfirmModal__Overlay",
34077
34071
  componentId: "sc-11qkyu1-0"
34078
- })(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.5);z-index:1000;animation:fadeIn 0.2s ease-out;@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}"]);
34072
+ })(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.6);z-index:1000;animation:fadeIn 0.2s ease-out;cursor:pointer;@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}"]);
34079
34073
  var ModalContainer = /*#__PURE__*/styled__default.div.withConfig({
34080
34074
  displayName: "ConfirmModal__ModalContainer",
34081
34075
  componentId: "sc-11qkyu1-1"
34082
- })(["position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1001;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);touch-action:none;"]);
34076
+ })(["position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);"]);
34083
34077
  var ModalContent = /*#__PURE__*/styled__default.div.withConfig({
34084
34078
  displayName: "ConfirmModal__ModalContent",
34085
34079
  componentId: "sc-11qkyu1-2"
34086
- })(["background:url('/assets/ui/paper-dialog.png') no-repeat center center;background-size:100% 100%;padding:20px;min-width:300px;max-width:90%;margin:0 auto;animation:scaleIn 0.2s ease-out;transform-origin:center;box-shadow:0 4px 20px rgba(0,0,0,0.4);@keyframes scaleIn{from{transform:scale(0.8);opacity:0;}to{transform:scale(1);opacity:1;}}@media (max-width:768px){padding:25px;width:85%;}"]);
34080
+ })(["background-color:#2a2a2a;border:2px solid #444;border-radius:8px;padding:20px;min-width:300px;max-width:90%;margin:0 auto;animation:scaleIn 0.2s ease-out;transform-origin:center;box-shadow:0 4px 20px rgba(0,0,0,0.5),0 0 40px rgba(0,0,0,0.3);pointer-events:auto;@keyframes scaleIn{from{transform:scale(0.8);opacity:0;}to{transform:scale(1);opacity:1;}}@media (max-width:768px){padding:25px;width:85%;}"]);
34087
34081
  var MessageContainer = /*#__PURE__*/styled__default.div.withConfig({
34088
34082
  displayName: "ConfirmModal__MessageContainer",
34089
34083
  componentId: "sc-11qkyu1-3"
@@ -34091,7 +34085,7 @@ var MessageContainer = /*#__PURE__*/styled__default.div.withConfig({
34091
34085
  var Message$1 = /*#__PURE__*/styled__default.p.withConfig({
34092
34086
  displayName: "ConfirmModal__Message",
34093
34087
  componentId: "sc-11qkyu1-4"
34094
- })(["margin:0;font-size:16px;color:#333;text-shadow:0 1px 0 rgba(255,255,255,0.5);@media (max-width:768px){font-size:18px;}"]);
34088
+ })(["margin:0;font-size:16px;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,0.5);@media (max-width:768px){font-size:18px;}"]);
34095
34089
  var ButtonsContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
34096
34090
  displayName: "ConfirmModal__ButtonsContainer",
34097
34091
  componentId: "sc-11qkyu1-5"