@rpg-engine/long-bow 0.8.55 → 0.8.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.
@@ -27496,9 +27496,6 @@ var Icon = /*#__PURE__*/styled.img.withConfig({
27496
27496
  return width;
27497
27497
  });
27498
27498
 
27499
- var ITEM_HEIGHT = 35;
27500
- var MAX_ITEMS_VISIBLE = 10;
27501
- var MAX_HEIGHT = MAX_ITEMS_VISIBLE * ITEM_HEIGHT;
27502
27499
  var Dropdown = function Dropdown(_ref) {
27503
27500
  var options = _ref.options,
27504
27501
  width = _ref.width,
@@ -27551,8 +27548,7 @@ var Dropdown = function Dropdown(_ref) {
27551
27548
  }, React.createElement("label", null, "\u25BC"), " ", selectedOption), React.createElement(DropdownOptions$1, {
27552
27549
  className: "rpgui-dropdown-imp",
27553
27550
  opened: opened,
27554
- opensUp: opensUp,
27555
- optionsCount: options.length
27551
+ opensUp: opensUp
27556
27552
  }, options.map(function (option) {
27557
27553
  return React.createElement("li", {
27558
27554
  key: option.id,
@@ -27567,25 +27563,23 @@ var Dropdown = function Dropdown(_ref) {
27567
27563
  var Container$9 = /*#__PURE__*/styled.div.withConfig({
27568
27564
  displayName: "Dropdown__Container",
27569
27565
  componentId: "sc-8arn65-0"
27570
- })(["position:relative;width:", ";max-height:", "px;"], function (props) {
27566
+ })(["position:relative;width:", ";"], function (props) {
27571
27567
  return props.width || '100%';
27572
- }, MAX_HEIGHT);
27568
+ });
27573
27569
  var DropdownSelect$1 = /*#__PURE__*/styled.p.withConfig({
27574
27570
  displayName: "Dropdown__DropdownSelect",
27575
27571
  componentId: "sc-8arn65-1"
27576
- })(["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);
27572
+ })(["width:100%;box-sizing:border-box;label{display:inline-block;transform:translateY(-2px);}"]);
27577
27573
  var DropdownOptions$1 = /*#__PURE__*/styled.ul.withConfig({
27578
27574
  displayName: "Dropdown__DropdownOptions",
27579
27575
  componentId: "sc-8arn65-2"
27580
- })(["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) {
27581
- return props.opened ? Math.min(props.optionsCount * ITEM_HEIGHT, MAX_HEIGHT) + "px" : '0';
27582
- }, function (props) {
27576
+ })(["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) {
27583
27577
  return props.opened ? 'block' : 'none';
27584
27578
  }, function (props) {
27585
27579
  return props.opensUp ? '100%' : 'auto';
27586
27580
  }, function (props) {
27587
27581
  return props.opensUp ? 'auto' : '100%';
27588
- }, ITEM_HEIGHT, ITEM_HEIGHT);
27582
+ });
27589
27583
 
27590
27584
  var modalRoot = /*#__PURE__*/document.getElementById('modal-root');
27591
27585
  var ModalPortal = function ModalPortal(_ref) {
@@ -34057,7 +34051,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
34057
34051
  e.stopPropagation();
34058
34052
  };
34059
34053
  return React.createElement(ModalPortal, null, React.createElement(GlobalStyle, null), React.createElement(Overlay$2, {
34060
- onPointerDown: handleClose
34054
+ onClick: handleClose
34061
34055
  }), React.createElement(ModalContainer, null, React.createElement(ModalContent, {
34062
34056
  onPointerDown: stopPropagation
34063
34057
  }, React.createElement(MessageContainer, null, typeof message === 'string' ? React.createElement(Message$1, null, message) : message), React.createElement(ButtonsContainer$2, null, React.createElement(CancelButtonWrapper, null, React.createElement(Button, {
@@ -34071,15 +34065,15 @@ var ConfirmModal = function ConfirmModal(_ref) {
34071
34065
  var Overlay$2 = /*#__PURE__*/styled.div.withConfig({
34072
34066
  displayName: "ConfirmModal__Overlay",
34073
34067
  componentId: "sc-11qkyu1-0"
34074
- })(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,1);z-index:1000;animation:fadeIn 0.2s ease-out;@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}"]);
34068
+ })(["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;}}"]);
34075
34069
  var ModalContainer = /*#__PURE__*/styled.div.withConfig({
34076
34070
  displayName: "ConfirmModal__ModalContainer",
34077
34071
  componentId: "sc-11qkyu1-1"
34078
- })(["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;"]);
34072
+ })(["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);"]);
34079
34073
  var ModalContent = /*#__PURE__*/styled.div.withConfig({
34080
34074
  displayName: "ConfirmModal__ModalContent",
34081
34075
  componentId: "sc-11qkyu1-2"
34082
- })(["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%;}"]);
34076
+ })(["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%;}"]);
34083
34077
  var MessageContainer = /*#__PURE__*/styled.div.withConfig({
34084
34078
  displayName: "ConfirmModal__MessageContainer",
34085
34079
  componentId: "sc-11qkyu1-3"
@@ -34087,7 +34081,7 @@ var MessageContainer = /*#__PURE__*/styled.div.withConfig({
34087
34081
  var Message$1 = /*#__PURE__*/styled.p.withConfig({
34088
34082
  displayName: "ConfirmModal__Message",
34089
34083
  componentId: "sc-11qkyu1-4"
34090
- })(["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;}"]);
34084
+ })(["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;}"]);
34091
34085
  var ButtonsContainer$2 = /*#__PURE__*/styled.div.withConfig({
34092
34086
  displayName: "ConfirmModal__ButtonsContainer",
34093
34087
  componentId: "sc-11qkyu1-5"