@rpg-engine/long-bow 0.8.7 → 0.8.8

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.
Files changed (70) hide show
  1. package/dist/components/InformationCenter/sections/bestiary/{BestiarySection.d.ts → InformationCenterBestiarySection.d.ts} +1 -1
  2. package/dist/components/InformationCenter/sections/faq/{FaqSection.d.ts → InformationCenterFaqSection.d.ts} +1 -1
  3. package/dist/components/InformationCenter/sections/items/{ItemsSection.d.ts → InformationCenterItemsSection.d.ts} +1 -1
  4. package/dist/components/InformationCenter/sections/tutorials/{TutorialsSection.d.ts → InformationCenterTutorialsSection.d.ts} +2 -1
  5. package/dist/components/Item/Inventory/ItemPropertyColorSelector.d.ts +10 -0
  6. package/dist/components/Item/Inventory/ItemPropertySimpleHandler.d.ts +10 -0
  7. package/dist/components/Store/CartView.d.ts +15 -0
  8. package/dist/components/Store/StoreItemDetails.d.ts +16 -0
  9. package/dist/components/Store/StoreItemRow.d.ts +1 -2
  10. package/dist/components/Store/StoreTypes.d.ts +33 -4
  11. package/dist/components/Store/hooks/useStoreCart.d.ts +14 -0
  12. package/dist/components/Store/sections/StoreItemsSection.d.ts +12 -0
  13. package/dist/components/Store/sections/StorePacksSection.d.ts +9 -0
  14. package/dist/components/shared/CTAButton/CTAButton.d.ts +13 -0
  15. package/dist/components/shared/Card/Card.d.ts +14 -0
  16. package/dist/components/shared/Ellipsis.d.ts +1 -1
  17. package/dist/components/shared/PaginatedContent/PaginatedContent.d.ts +3 -1
  18. package/dist/components/shared/ScrollableContent/ScrollableContent.d.ts +23 -0
  19. package/dist/components/shared/SearchBar/SearchBar.d.ts +2 -3
  20. package/dist/components/shared/SearchHeader/SearchHeader.d.ts +17 -0
  21. package/dist/components/shared/ShoppingCart/CartCard.d.ts +14 -0
  22. package/dist/components/shared/ShoppingCart/CartCardHorizontal.d.ts +13 -0
  23. package/dist/index.d.ts +1 -0
  24. package/dist/long-bow.cjs.development.js +104 -43
  25. package/dist/long-bow.cjs.development.js.map +1 -1
  26. package/dist/long-bow.cjs.production.min.js +1 -1
  27. package/dist/long-bow.cjs.production.min.js.map +1 -1
  28. package/dist/long-bow.esm.js +104 -44
  29. package/dist/long-bow.esm.js.map +1 -1
  30. package/dist/stories/UI/buttonsAndInputs/CTAButton.stories.d.ts +18 -0
  31. package/dist/stories/UI/dropdownsAndSelectors/ItemPropertyColorSelector.stories.d.ts +3 -0
  32. package/package.json +3 -2
  33. package/src/components/InformationCenter/InformationCenter.tsx +8 -8
  34. package/src/components/InformationCenter/InformationCenterTabView.tsx +0 -1
  35. package/src/components/InformationCenter/sections/bestiary/{BestiarySection.tsx → InformationCenterBestiarySection.tsx} +2 -1
  36. package/src/components/InformationCenter/sections/faq/InformationCenterFaqSection.tsx +81 -0
  37. package/src/components/InformationCenter/sections/items/{ItemsSection.tsx → InformationCenterItemsSection.tsx} +2 -10
  38. package/src/components/InformationCenter/sections/tutorials/InformationCenterTutorialsSection.tsx +135 -0
  39. package/src/components/Item/Inventory/ItemPropertyColorSelector.tsx +75 -0
  40. package/src/components/Item/Inventory/ItemPropertySimpleHandler.tsx +26 -0
  41. package/src/components/Item/Inventory/itemContainerHelper.ts +10 -1
  42. package/src/components/Store/CartView.tsx +271 -0
  43. package/src/components/Store/Store.tsx +199 -96
  44. package/src/components/Store/StoreItemDetails.tsx +161 -0
  45. package/src/components/Store/StoreItemRow.tsx +24 -40
  46. package/src/components/Store/StoreTypes.ts +38 -4
  47. package/src/components/Store/hooks/useStoreCart.ts +121 -0
  48. package/src/components/Store/sections/StoreItemsSection.tsx +52 -0
  49. package/src/components/Store/sections/StorePacksSection.tsx +89 -0
  50. package/src/components/Store/sections/images/custom-skin.png +0 -0
  51. package/src/components/shared/CTAButton/CTAButton.tsx +127 -0
  52. package/src/components/shared/Card/Card.tsx +107 -0
  53. package/src/components/shared/Ellipsis.tsx +20 -22
  54. package/src/components/shared/PaginatedContent/PaginatedContent.tsx +48 -79
  55. package/src/components/shared/ScrollableContent/ScrollableContent.tsx +160 -0
  56. package/src/components/shared/SearchBar/SearchBar.tsx +43 -24
  57. package/src/components/shared/SearchHeader/SearchHeader.tsx +80 -0
  58. package/src/components/shared/ShoppingCart/CartCard.tsx +116 -0
  59. package/src/components/shared/ShoppingCart/CartCardHorizontal.tsx +120 -0
  60. package/src/components/shared/SpriteFromAtlas.tsx +56 -48
  61. package/src/index.tsx +1 -0
  62. package/src/stories/Features/store/Store.stories.tsx +54 -4
  63. package/src/stories/UI/buttonsAndInputs/CTAButton.stories.tsx +77 -0
  64. package/src/stories/UI/dropdownsAndSelectors/ItemPropertyColorSelector.stories.tsx +77 -0
  65. package/dist/components/Store/InternalStoreTab.d.ts +0 -15
  66. package/dist/components/Store/StoreTabContent.d.ts +0 -14
  67. package/src/components/InformationCenter/sections/faq/FaqSection.tsx +0 -51
  68. package/src/components/InformationCenter/sections/tutorials/TutorialsSection.tsx +0 -144
  69. package/src/components/Store/InternalStoreTab.tsx +0 -142
  70. package/src/components/Store/StoreTabContent.tsx +0 -46
@@ -12,6 +12,7 @@ import Draggable from 'react-draggable';
12
12
  import ReactDOM, { createPortal } from 'react-dom';
13
13
  import { camelCase, debounce } from 'lodash-es';
14
14
  import { observer } from 'mobx-react-lite';
15
+ import { HexColorPicker } from 'react-colorful';
15
16
  import { AiFillCaretRight } from 'react-icons/ai';
16
17
  import 'rpgui/rpgui.css';
17
18
  import 'rpgui/rpgui.min.js';
@@ -645,7 +646,7 @@ var Container$1 = /*#__PURE__*/styled.div.withConfig({
645
646
  var ImgSprite = /*#__PURE__*/styled.div.withConfig({
646
647
  displayName: "SpriteFromAtlas__ImgSprite",
647
648
  componentId: "sc-1lpani8-1"
648
- })(["width:", "px;height:", "px;background-image:url(", ");background-position:-", "px -", "px;transform:scale(", ");position:relative;top:", ";left:", ";filter:", ";opacity:", ";"], function (props) {
649
+ })(["width:", "px;height:", "px;background-image:url(", ");background-position:-", "px -", "px;transform:scale(", ");position:relative;top:", ";left:", ";", " opacity:", ";"], function (props) {
649
650
  return props.frame.w;
650
651
  }, function (props) {
651
652
  return props.frame.h;
@@ -662,10 +663,7 @@ var ImgSprite = /*#__PURE__*/styled.div.withConfig({
662
663
  }, function (props) {
663
664
  return props.centered ? '0' : '8px';
664
665
  }, function (props) {
665
- var filters = [];
666
- if (props.grayScale) filters.push('grayscale(100%)');
667
- if (props.tintColor) filters.push("brightness(0.8) contrast(1.2) sepia(100%) hue-rotate(" + (props.tintColor === '#FFD700' ? '40deg' : '210deg') + ") saturate(400%)");
668
- return filters.length ? filters.join(' ') : 'none';
666
+ return props.tintColor && "\n &::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: " + props.frame.w + "px;\n height: " + props.frame.h + "px;\n background-color: " + props.tintColor + ";\n mask-image: url(" + props.atlasIMG + ");\n mask-position: -" + props.frame.x + "px -" + props.frame.y + "px;\n -webkit-mask-image: url(" + props.atlasIMG + ");\n -webkit-mask-position: -" + props.frame.x + "px -" + props.frame.y + "px;\n mix-blend-mode: color; \n " + (props.grayScale ? 'filter: grayscale(100%);' : 'none') + "\n }\n ";
669
667
  }, function (props) {
670
668
  return props.opacity;
671
669
  });
@@ -25969,7 +25967,7 @@ var Ellipsis = function Ellipsis(_ref) {
25969
25967
  var Container$2 = /*#__PURE__*/styled.span.withConfig({
25970
25968
  displayName: "Ellipsis__Container",
25971
25969
  componentId: "sc-ysrlju-0"
25972
- })(["display:block;margin:0;.ellipsis-1-lines{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:", ";font-size:", ";", "}.ellipsis-2-lines{display:block;display:-webkit-box;max-width:", "px;height:25px;margin:0 auto;line-height:1;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;font-size:", ";}.ellipsis-3-lines{display:block;display:-webkit-box;max-width:", "px;height:43px;margin:0 auto;line-height:1;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;font-size:", ";}"], function (props) {
25970
+ })(["display:block;margin:0;.ellipsis-1-lines{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:", ";font-size:", ";", "}.ellipsis-2-lines,.ellipsis-3-lines,.ellipsis-4-lines,.ellipsis-5-lines{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;max-width:", ";font-size:", ";line-height:1.4;}.ellipsis-2-lines{-webkit-line-clamp:2;}.ellipsis-3-lines{-webkit-line-clamp:3;}.ellipsis-4-lines{-webkit-line-clamp:4;}.ellipsis-5-lines{-webkit-line-clamp:5;}"], function (props) {
25973
25971
  return props.maxWidth;
25974
25972
  }, function (props) {
25975
25973
  return props.fontSize;
@@ -25979,10 +25977,6 @@ var Container$2 = /*#__PURE__*/styled.span.withConfig({
25979
25977
  return props.maxWidth;
25980
25978
  }, function (props) {
25981
25979
  return props.fontSize;
25982
- }, function (props) {
25983
- return props.maxWidth;
25984
- }, function (props) {
25985
- return props.fontSize;
25986
25980
  });
25987
25981
 
25988
25982
  var PropertySelect = function PropertySelect(_ref) {
@@ -27804,6 +27798,14 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType,
27804
27798
  text: 'Open'
27805
27799
  });
27806
27800
  }
27801
+ if (itemContainerType === ItemContainerType.Inventory) {
27802
+ if (item.textureAtlas === 'items' && item.type === ItemType.Container) {
27803
+ contextActionMenu.push({
27804
+ id: ItemSocketEvents.ItemPropertyUpdate,
27805
+ text: 'Set Color...'
27806
+ });
27807
+ }
27808
+ }
27807
27809
  }
27808
27810
  return contextActionMenu;
27809
27811
  };
@@ -31358,6 +31360,64 @@ var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
31358
31360
  return isFullScreen && '50%';
31359
31361
  });
31360
31362
 
31363
+ var ColorSelector = function ColorSelector(_ref) {
31364
+ var selectedColor = _ref.selectedColor,
31365
+ isOpen = _ref.isOpen,
31366
+ onClose = _ref.onClose,
31367
+ onConfirm = _ref.onConfirm,
31368
+ _onChange = _ref.onChange;
31369
+ var _useState = useState(selectedColor),
31370
+ currentColor = _useState[0],
31371
+ setCurrentColor = _useState[1];
31372
+ useEffect(function () {
31373
+ if (isOpen) setCurrentColor(selectedColor);
31374
+ }, [isOpen, selectedColor]);
31375
+ var handleConfirm = function handleConfirm() {
31376
+ onConfirm(currentColor);
31377
+ onClose();
31378
+ };
31379
+ if (!isOpen) return null;
31380
+ return isOpen ? React.createElement(DraggableContainer, {
31381
+ type: RPGUIContainerTypes.Framed,
31382
+ cancelDrag: ".react-colorful",
31383
+ width: "20rem",
31384
+ onCloseButton: onClose
31385
+ }, React.createElement(Container$m, null, React.createElement(Header$1, null, "Select Color"), React.createElement(HexColorPicker, {
31386
+ color: currentColor,
31387
+ onChange: function onChange(color) {
31388
+ setCurrentColor(color);
31389
+ _onChange(color);
31390
+ }
31391
+ }), React.createElement(Button, {
31392
+ buttonType: ButtonTypes.RPGUIButton,
31393
+ type: "button",
31394
+ onClick: handleConfirm
31395
+ }, "Confirm"))) : null;
31396
+ };
31397
+ var Container$m = /*#__PURE__*/styled.div.withConfig({
31398
+ displayName: "ItemPropertyColorSelector__Container",
31399
+ componentId: "sc-me1r4z-0"
31400
+ })(["padding:2rem;text-align:center;background:inherit;"]);
31401
+ var Header$1 = /*#__PURE__*/styled.h2.withConfig({
31402
+ displayName: "ItemPropertyColorSelector__Header",
31403
+ componentId: "sc-me1r4z-1"
31404
+ })(["font-family:'Press Start 2P',cursive;color:white;font-size:1rem;margin-bottom:1rem;"]);
31405
+
31406
+ var ItemPropertySimpleHandler = function ItemPropertySimpleHandler(_ref) {
31407
+ var isOpen = _ref.isOpen,
31408
+ selectedColor = _ref.selectedColor,
31409
+ onClose = _ref.onClose,
31410
+ onConfirm = _ref.onConfirm,
31411
+ onChange = _ref.onChange;
31412
+ return React.createElement(ColorSelector, {
31413
+ selectedColor: selectedColor,
31414
+ isOpen: isOpen,
31415
+ onClose: onClose,
31416
+ onConfirm: onConfirm,
31417
+ onChange: onChange
31418
+ });
31419
+ };
31420
+
31361
31421
  var ItemSelector = function ItemSelector(_ref) {
31362
31422
  var atlasIMG = _ref.atlasIMG,
31363
31423
  atlasJSON = _ref.atlasJSON,
@@ -31567,7 +31627,7 @@ var ListMenu = function ListMenu(_ref) {
31567
31627
  onSelected = _ref.onSelected,
31568
31628
  x = _ref.x,
31569
31629
  y = _ref.y;
31570
- return React.createElement(Container$m, {
31630
+ return React.createElement(Container$n, {
31571
31631
  x: x,
31572
31632
  y: y
31573
31633
  }, React.createElement("ul", {
@@ -31584,7 +31644,7 @@ var ListMenu = function ListMenu(_ref) {
31584
31644
  }, (params == null ? void 0 : params.text) || 'No text');
31585
31645
  })));
31586
31646
  };
31587
- var Container$m = /*#__PURE__*/styled.div.withConfig({
31647
+ var Container$n = /*#__PURE__*/styled.div.withConfig({
31588
31648
  displayName: "ListMenu__Container",
31589
31649
  componentId: "sc-i9097t-0"
31590
31650
  })(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", ";}"], function (props) {
@@ -31603,7 +31663,7 @@ var Pager = function Pager(_ref) {
31603
31663
  itemsPerPage = _ref.itemsPerPage,
31604
31664
  onPageChange = _ref.onPageChange;
31605
31665
  var totalPages = Math.ceil(totalItems / itemsPerPage);
31606
- return React.createElement(Container$n, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
31666
+ return React.createElement(Container$o, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
31607
31667
  disabled: currentPage === 1,
31608
31668
  onPointerDown: function onPointerDown() {
31609
31669
  return onPageChange(Math.max(currentPage - 1, 1));
@@ -31617,7 +31677,7 @@ var Pager = function Pager(_ref) {
31617
31677
  }
31618
31678
  }, '>')));
31619
31679
  };
31620
- var Container$n = /*#__PURE__*/styled.div.withConfig({
31680
+ var Container$o = /*#__PURE__*/styled.div.withConfig({
31621
31681
  displayName: "Pager__Container",
31622
31682
  componentId: "sc-1ekmf50-0"
31623
31683
  })(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
@@ -31630,7 +31690,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
31630
31690
  var onConfirm = _ref.onConfirm,
31631
31691
  onClose = _ref.onClose,
31632
31692
  message = _ref.message;
31633
- return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$o, {
31693
+ return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$p, {
31634
31694
  onPointerDown: onClose
31635
31695
  }, React.createElement(DraggableContainer, {
31636
31696
  width: "auto",
@@ -31653,7 +31713,7 @@ var Background = /*#__PURE__*/styled.div.withConfig({
31653
31713
  displayName: "ConfirmModal__Background",
31654
31714
  componentId: "sc-11qkyu1-0"
31655
31715
  })(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
31656
- var Container$o = /*#__PURE__*/styled.div.withConfig({
31716
+ var Container$p = /*#__PURE__*/styled.div.withConfig({
31657
31717
  displayName: "ConfirmModal__Container",
31658
31718
  componentId: "sc-11qkyu1-1"
31659
31719
  })(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
@@ -32178,13 +32238,13 @@ var TabBody = function TabBody(_ref) {
32178
32238
  children = _ref.children,
32179
32239
  styles = _ref.styles,
32180
32240
  centerContent = _ref.centerContent;
32181
- return React.createElement(Container$p, {
32241
+ return React.createElement(Container$q, {
32182
32242
  styles: styles,
32183
32243
  "data-tab-id": id,
32184
32244
  centerContent: centerContent
32185
32245
  }, children);
32186
32246
  };
32187
- var Container$p = /*#__PURE__*/styled.div.withConfig({
32247
+ var Container$q = /*#__PURE__*/styled.div.withConfig({
32188
32248
  displayName: "TabBody__Container",
32189
32249
  componentId: "sc-196oof2-0"
32190
32250
  })(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
@@ -32837,7 +32897,7 @@ var ProgressBar = function ProgressBar(_ref) {
32837
32897
  }
32838
32898
  return value * 100 / max;
32839
32899
  };
32840
- return React.createElement(Container$q, {
32900
+ return React.createElement(Container$r, {
32841
32901
  className: "rpgui-progress",
32842
32902
  "data-value": calculatePercentageValue(max, value) / 100,
32843
32903
  "data-rpguitype": "progress",
@@ -32867,7 +32927,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
32867
32927
  displayName: "ProgressBar__TextOverlay",
32868
32928
  componentId: "sc-qa6fzh-1"
32869
32929
  })(["width:100%;position:relative;"]);
32870
- var Container$q = /*#__PURE__*/styled.div.withConfig({
32930
+ var Container$r = /*#__PURE__*/styled.div.withConfig({
32871
32931
  displayName: "ProgressBar__Container",
32872
32932
  componentId: "sc-qa6fzh-2"
32873
32933
  })(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
@@ -33108,9 +33168,9 @@ var InputRadio = function InputRadio(_ref) {
33108
33168
 
33109
33169
  var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
33110
33170
  var children = _ref.children;
33111
- return React.createElement(Container$r, null, children);
33171
+ return React.createElement(Container$s, null, children);
33112
33172
  };
33113
- var Container$r = /*#__PURE__*/styled.div.withConfig({
33173
+ var Container$s = /*#__PURE__*/styled.div.withConfig({
33114
33174
  displayName: "RPGUIScrollbar__Container",
33115
33175
  componentId: "sc-p3msmb-0"
33116
33176
  })([".rpgui-content ::-webkit-scrollbar,.rpgui-content::-webkit-scrollbar{width:25px !important;}.rpgui-content ::-webkit-scrollbar-track,.rpgui-content::-webkit-scrollbar-track{background-size:25px 60px !important;}"]);
@@ -33266,7 +33326,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
33266
33326
  margin = _ref$margin === void 0 ? 20 : _ref$margin;
33267
33327
  // Ensure the width is at least 1% if value is greater than 0
33268
33328
  var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
33269
- return React.createElement(Container$s, {
33329
+ return React.createElement(Container$t, {
33270
33330
  className: "simple-progress-bar"
33271
33331
  }, React.createElement(ProgressBarContainer, {
33272
33332
  margin: margin
@@ -33275,7 +33335,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
33275
33335
  bgColor: bgColor
33276
33336
  }))));
33277
33337
  };
33278
- var Container$s = /*#__PURE__*/styled.div.withConfig({
33338
+ var Container$t = /*#__PURE__*/styled.div.withConfig({
33279
33339
  displayName: "SimpleProgressBar__Container",
33280
33340
  componentId: "sc-mbeil3-0"
33281
33341
  })(["display:flex;justify-content:center;align-items:center;width:100%;"]);
@@ -33608,7 +33668,7 @@ var SocialModal = function SocialModal(_ref) {
33608
33668
  title: "Social Channels",
33609
33669
  width: "500px",
33610
33670
  onCloseButton: onClose
33611
- }, React.createElement(Container$t, null, React.createElement(HeaderImage, {
33671
+ }, React.createElement(Container$u, null, React.createElement(HeaderImage, {
33612
33672
  src: img$9,
33613
33673
  alt: ""
33614
33674
  }), React.createElement(ButtonsContainer$1, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
@@ -33626,7 +33686,7 @@ var SocialModal = function SocialModal(_ref) {
33626
33686
  onClick: handleWhatsAppClick
33627
33687
  }, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
33628
33688
  };
33629
- var Container$t = /*#__PURE__*/styled.div.withConfig({
33689
+ var Container$u = /*#__PURE__*/styled.div.withConfig({
33630
33690
  displayName: "SocialModal__Container",
33631
33691
  componentId: "sc-tbjhp9-0"
33632
33692
  })(["width:100%;display:flex;flex-direction:column;gap:16px;background-color:#5c4132;position:relative;border-radius:8px;overflow:hidden;&:before,&:after{content:'';position:absolute;left:0;right:0;height:3px;}&:before{bottom:0;background:linear-gradient( to right,#5c4132 0%,#2b1810 2%,#2b1810 98%,#5c4132 100% );}"]);
@@ -33672,7 +33732,7 @@ var SpellInfo = function SpellInfo(_ref) {
33672
33732
  castingType = spell.castingType,
33673
33733
  cooldown = spell.cooldown,
33674
33734
  maxDistanceGrid = spell.maxDistanceGrid;
33675
- return React.createElement(Container$u, null, React.createElement(Header$1, null, React.createElement("div", null, React.createElement(Title$8, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
33735
+ return React.createElement(Container$v, null, React.createElement(Header$2, null, React.createElement("div", null, React.createElement(Title$8, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
33676
33736
  className: "label"
33677
33737
  }, "Casting Type:"), React.createElement("div", {
33678
33738
  className: "value"
@@ -33698,7 +33758,7 @@ var SpellInfo = function SpellInfo(_ref) {
33698
33758
  className: "value"
33699
33759
  }, requiredItem))), React.createElement(Description$2, null, description));
33700
33760
  };
33701
- var Container$u = /*#__PURE__*/styled.div.withConfig({
33761
+ var Container$v = /*#__PURE__*/styled.div.withConfig({
33702
33762
  displayName: "SpellInfo__Container",
33703
33763
  componentId: "sc-4hbw3q-0"
33704
33764
  })(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:30rem;@media (max-width:580px){width:80vw;}"], uiFonts.size.small, uiColors.lightGray);
@@ -33714,7 +33774,7 @@ var Description$2 = /*#__PURE__*/styled.div.withConfig({
33714
33774
  displayName: "SpellInfo__Description",
33715
33775
  componentId: "sc-4hbw3q-3"
33716
33776
  })(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
33717
- var Header$1 = /*#__PURE__*/styled.div.withConfig({
33777
+ var Header$2 = /*#__PURE__*/styled.div.withConfig({
33718
33778
  displayName: "SpellInfo__Header",
33719
33779
  componentId: "sc-4hbw3q-4"
33720
33780
  })(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
@@ -33752,7 +33812,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
33752
33812
  var _ref$current;
33753
33813
  (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
33754
33814
  };
33755
- return React.createElement(ModalPortal, null, React.createElement(Container$v, {
33815
+ return React.createElement(ModalPortal, null, React.createElement(Container$w, {
33756
33816
  ref: ref,
33757
33817
  onTouchEnd: function onTouchEnd() {
33758
33818
  handleFadeOut();
@@ -33777,7 +33837,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
33777
33837
  }, option.text);
33778
33838
  }))));
33779
33839
  };
33780
- var Container$v = /*#__PURE__*/styled.div.withConfig({
33840
+ var Container$w = /*#__PURE__*/styled.div.withConfig({
33781
33841
  displayName: "MobileSpellTooltip__Container",
33782
33842
  componentId: "sc-6p7uvr-0"
33783
33843
  })(["position:absolute;z-index:100;left:0;top:0;width:100vw;height:100vh;background-color:rgba(0 0 0 / 0.5);display:flex;justify-content:center;align-items:center;gap:0.5rem;transition:opacity 0.08s;animation:fadeIn 0.1s forwards;@keyframes fadeIn{0%{opacity:0;}100%{opacity:0.92;}}@keyframes fadeOut{0%{opacity:0.92;}100%{opacity:0;}}&.fadeOut{animation:fadeOut 0.1s forwards;}@media (max-width:580px){flex-direction:column;}"]);
@@ -33818,13 +33878,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
33818
33878
  }
33819
33879
  return;
33820
33880
  }, []);
33821
- return React.createElement(ModalPortal, null, React.createElement(Container$w, {
33881
+ return React.createElement(ModalPortal, null, React.createElement(Container$x, {
33822
33882
  ref: ref
33823
33883
  }, React.createElement(SpellInfoDisplay, {
33824
33884
  spell: spell
33825
33885
  })));
33826
33886
  };
33827
- var Container$w = /*#__PURE__*/styled.div.withConfig({
33887
+ var Container$x = /*#__PURE__*/styled.div.withConfig({
33828
33888
  displayName: "SpellTooltip__Container",
33829
33889
  componentId: "sc-1go0gwg-0"
33830
33890
  })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
@@ -33897,7 +33957,7 @@ var Spell = function Spell(_ref) {
33897
33957
  var IMAGE_SCALE = 2;
33898
33958
  return React.createElement(SpellInfoWrapper, {
33899
33959
  spell: spell
33900
- }, React.createElement(Container$x, {
33960
+ }, React.createElement(Container$y, {
33901
33961
  onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
33902
33962
  isSettingShortcut: isSettingShortcut && !disabled,
33903
33963
  className: "spell"
@@ -33916,7 +33976,7 @@ var Spell = function Spell(_ref) {
33916
33976
  className: "mana"
33917
33977
  }, manaCost))));
33918
33978
  };
33919
- var Container$x = /*#__PURE__*/styled.button.withConfig({
33979
+ var Container$y = /*#__PURE__*/styled.button.withConfig({
33920
33980
  displayName: "Spell__Container",
33921
33981
  componentId: "sc-j96fa2-0"
33922
33982
  })(["display:block;background:none;border:2px solid transparent;border-radius:1rem;width:100%;display:flex;gap:1rem;align-items:center;padding:0 1rem;text-align:left;position:relative;animation:", ";@keyframes border-color-change{0%{border-color:", ";}50%{border-color:transparent;}100%{border-color:", ";}}&:hover,&:focus{background-color:", ";}&:active{background:none;}"], function (_ref2) {
@@ -33995,7 +34055,7 @@ var Spellbook = function Spellbook(_ref) {
33995
34055
  height: "inherit",
33996
34056
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
33997
34057
  scale: scale
33998
- }, React.createElement(Container$y, null, React.createElement(Title$a, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
34058
+ }, React.createElement(Container$z, null, React.createElement(Title$a, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
33999
34059
  setSettingShortcutIndex: setSettingShortcutIndex,
34000
34060
  settingShortcutIndex: settingShortcutIndex,
34001
34061
  shortcuts: shortcuts,
@@ -34031,7 +34091,7 @@ var Title$a = /*#__PURE__*/styled.h1.withConfig({
34031
34091
  displayName: "Spellbook__Title",
34032
34092
  componentId: "sc-r02nfq-0"
34033
34093
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
34034
- var Container$y = /*#__PURE__*/styled.div.withConfig({
34094
+ var Container$z = /*#__PURE__*/styled.div.withConfig({
34035
34095
  displayName: "Spellbook__Container",
34036
34096
  componentId: "sc-r02nfq-1"
34037
34097
  })(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
@@ -34513,7 +34573,7 @@ var TradingMenu = function TradingMenu(_ref) {
34513
34573
  width: "500px",
34514
34574
  cancelDrag: "#TraderContainer",
34515
34575
  scale: scale
34516
- }, React.createElement(Container$z, null, React.createElement(Title$b, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
34576
+ }, React.createElement(Container$A, null, React.createElement(Title$b, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
34517
34577
  className: "golden"
34518
34578
  }), React.createElement(ScrollWrapper, {
34519
34579
  id: "TraderContainer"
@@ -34541,7 +34601,7 @@ var TradingMenu = function TradingMenu(_ref) {
34541
34601
  onPointerDown: onClose
34542
34602
  }, "Cancel"))));
34543
34603
  };
34544
- var Container$z = /*#__PURE__*/styled.div.withConfig({
34604
+ var Container$A = /*#__PURE__*/styled.div.withConfig({
34545
34605
  displayName: "TradingMenu__Container",
34546
34606
  componentId: "sc-1wjsz1l-0"
34547
34607
  })(["width:100%;"]);
@@ -34575,11 +34635,11 @@ var Truncate = function Truncate(_ref) {
34575
34635
  var _ref$maxLines = _ref.maxLines,
34576
34636
  maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
34577
34637
  children = _ref.children;
34578
- return React.createElement(Container$A, {
34638
+ return React.createElement(Container$B, {
34579
34639
  maxLines: maxLines
34580
34640
  }, children);
34581
34641
  };
34582
- var Container$A = /*#__PURE__*/styled.div.withConfig({
34642
+ var Container$B = /*#__PURE__*/styled.div.withConfig({
34583
34643
  displayName: "Truncate__Container",
34584
34644
  componentId: "sc-6x00qb-0"
34585
34645
  })(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
@@ -34687,7 +34747,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
34687
34747
  };
34688
34748
  });
34689
34749
  }, [lessons, imageStyle]);
34690
- return React.createElement(Container$B, null, React.createElement(Stepper, {
34750
+ return React.createElement(Container$C, null, React.createElement(Stepper, {
34691
34751
  steps: generateLessons,
34692
34752
  finalCTAButton: {
34693
34753
  label: 'Close',
@@ -34704,7 +34764,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
34704
34764
  displayName: "TutorialStepper__LessonBody",
34705
34765
  componentId: "sc-7tgzv2-1"
34706
34766
  })([""]);
34707
- var Container$B = /*#__PURE__*/styled.div.withConfig({
34767
+ var Container$C = /*#__PURE__*/styled.div.withConfig({
34708
34768
  displayName: "TutorialStepper__Container",
34709
34769
  componentId: "sc-7tgzv2-2"
34710
34770
  })(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
@@ -34725,5 +34785,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
34725
34785
  componentId: "sc-7tgzv2-6"
34726
34786
  })(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
34727
34787
 
34728
- export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
34788
+ export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
34729
34789
  //# sourceMappingURL=long-bow.esm.js.map