@rpg-engine/long-bow 0.4.85 → 0.4.86

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 (53) hide show
  1. package/dist/components/PartySystem/PartyCreate/PartyCreate.d.ts +6 -0
  2. package/dist/components/PartySystem/PartyCreate/index.d.ts +1 -0
  3. package/dist/components/PartySystem/PartyDashboard/PartyDashboard.d.ts +6 -0
  4. package/dist/components/PartySystem/PartyDashboard/PartyRows.d.ts +11 -0
  5. package/dist/components/PartySystem/PartyDashboard/index.d.ts +2 -0
  6. package/dist/components/PartySystem/PartyInvite/PartyInvite.d.ts +6 -0
  7. package/dist/components/PartySystem/PartyInvite/PlayersRows.d.ts +9 -0
  8. package/dist/components/PartySystem/PartyInvite/index.d.ts +2 -0
  9. package/dist/components/PartySystem/PartyManager/PartyManager.d.ts +6 -0
  10. package/dist/components/PartySystem/PartyManager/PartyManagerRows.d.ts +8 -0
  11. package/dist/components/PartySystem/PartyManager/index.d.ts +2 -0
  12. package/dist/components/PartySystem/index.d.ts +5 -0
  13. package/dist/components/PartySystem/mockedConstantes/index.d.ts +1 -0
  14. package/dist/components/PartySystem/mockedConstantes/mockedValues.d.ts +6 -0
  15. package/dist/constants/uiColors.d.ts +1 -0
  16. package/dist/index.d.ts +5 -4
  17. package/dist/long-bow.cjs.development.js +484 -109
  18. package/dist/long-bow.cjs.development.js.map +1 -1
  19. package/dist/long-bow.cjs.production.min.js +1 -1
  20. package/dist/long-bow.cjs.production.min.js.map +1 -1
  21. package/dist/long-bow.esm.js +475 -110
  22. package/dist/long-bow.esm.js.map +1 -1
  23. package/dist/stories/PartyCreate.stories.d.ts +5 -0
  24. package/dist/stories/PartyDashboard.stories.d.ts +5 -0
  25. package/dist/stories/PartyInvite.stories.d.ts +5 -0
  26. package/dist/stories/PartyManager.stories.d.ts +5 -0
  27. package/package.json +2 -2
  28. package/src/.DS_Store +0 -0
  29. package/src/components/.DS_Store +0 -0
  30. package/src/components/NPCDialog/.DS_Store +0 -0
  31. package/src/components/NPCDialog/img/.DS_Store +0 -0
  32. package/src/components/PartySystem/PartyCreate/PartyCreate.tsx +79 -0
  33. package/src/components/PartySystem/PartyCreate/index.ts +1 -0
  34. package/src/components/PartySystem/PartyDashboard/PartyDashboard.tsx +67 -0
  35. package/src/components/PartySystem/PartyDashboard/PartyRows.tsx +57 -0
  36. package/src/components/PartySystem/PartyDashboard/index.ts +2 -0
  37. package/src/components/PartySystem/PartyInvite/PartyInvite.tsx +60 -0
  38. package/src/components/PartySystem/PartyInvite/PlayersRows.tsx +49 -0
  39. package/src/components/PartySystem/PartyInvite/index.ts +2 -0
  40. package/src/components/PartySystem/PartyManager/PartyManager.tsx +57 -0
  41. package/src/components/PartySystem/PartyManager/PartyManagerRows.tsx +43 -0
  42. package/src/components/PartySystem/PartyManager/index.ts +2 -0
  43. package/src/components/PartySystem/index.ts +6 -0
  44. package/src/components/PartySystem/mockedConstantes/index.ts +1 -0
  45. package/src/components/PartySystem/mockedConstantes/mockedValues.tsx +150 -0
  46. package/src/constants/uiColors.ts +1 -0
  47. package/src/index.tsx +5 -4
  48. package/src/mocks/.DS_Store +0 -0
  49. package/src/mocks/atlas/.DS_Store +0 -0
  50. package/src/stories/PartyCreate.stories.tsx +24 -0
  51. package/src/stories/PartyDashboard.stories.tsx +27 -0
  52. package/src/stories/PartyInvite.stories.tsx +27 -0
  53. package/src/stories/PartyManager.stories.tsx +27 -0
@@ -12652,7 +12652,8 @@ var uiColors = {
12652
12652
  darkBlue: '#30346D',
12653
12653
  brown: '#854C30',
12654
12654
  lightGreen: '#66cd1c',
12655
- brownGreen: '#346524'
12655
+ brownGreen: '#346524',
12656
+ white: '#fff'
12656
12657
  };
12657
12658
 
12658
12659
  var _excluded$2 = ["innerRef"];
@@ -15558,92 +15559,6 @@ var QuantitySelectorContainer = /*#__PURE__*/styled.div.withConfig({
15558
15559
  componentId: "sc-15y5p9l-1"
15559
15560
  })(["position:absolute;top:0;left:0;width:100vw;height:100vh;z-index:100;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,0.5);"]);
15560
15561
 
15561
- var ItemSelector = function ItemSelector(_ref) {
15562
- var atlasIMG = _ref.atlasIMG,
15563
- atlasJSON = _ref.atlasJSON,
15564
- options = _ref.options,
15565
- onClose = _ref.onClose,
15566
- onSelect = _ref.onSelect;
15567
- var _useState = React.useState(),
15568
- selectedValue = _useState[0],
15569
- setSelectedValue = _useState[1];
15570
- var handleClick = function handleClick() {
15571
- var element = document.querySelector("input[name='test']:checked");
15572
- var elementValue = element.value;
15573
- setSelectedValue(elementValue);
15574
- };
15575
- React.useEffect(function () {
15576
- if (selectedValue) {
15577
- onSelect(selectedValue);
15578
- }
15579
- }, [selectedValue]);
15580
- return React__default.createElement(DraggableContainer, {
15581
- type: exports.RPGUIContainerTypes.Framed,
15582
- width: "500px",
15583
- cancelDrag: ".equipment-container-body .arrow-selector",
15584
- onCloseButton: function onCloseButton() {
15585
- if (onClose) {
15586
- onClose();
15587
- }
15588
- }
15589
- }, React__default.createElement("div", {
15590
- style: {
15591
- width: '100%'
15592
- }
15593
- }, React__default.createElement(Title$3, null, 'Harvesting instruments'), React__default.createElement(Subtitle$1, null, 'Use the tool, you need it'), React__default.createElement("hr", {
15594
- className: "golden"
15595
- })), React__default.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
15596
- return React__default.createElement(RadioOptionsWrapper$1, {
15597
- key: index
15598
- }, React__default.createElement(SpriteAtlasWrapper$1, null, React__default.createElement(SpriteFromAtlas, {
15599
- atlasIMG: atlasIMG,
15600
- atlasJSON: atlasJSON,
15601
- spriteKey: option.imageKey,
15602
- imgScale: 3
15603
- })), React__default.createElement("div", null, React__default.createElement("input", {
15604
- className: "rpgui-radio",
15605
- type: "radio",
15606
- value: option.name,
15607
- name: "test"
15608
- }), React__default.createElement("label", {
15609
- onPointerDown: handleClick,
15610
- style: {
15611
- display: 'flex',
15612
- alignItems: 'center'
15613
- }
15614
- }, option.name, " ", React__default.createElement("br", null), option.description)));
15615
- })), React__default.createElement(ButtonWrapper$1, null, React__default.createElement(Button, {
15616
- buttonType: exports.ButtonTypes.RPGUIButton,
15617
- onPointerDown: onClose
15618
- }, "Cancel"), React__default.createElement(Button, {
15619
- buttonType: exports.ButtonTypes.RPGUIButton
15620
- }, "Select")));
15621
- };
15622
- var Title$3 = /*#__PURE__*/styled.h1.withConfig({
15623
- displayName: "ItemSelector__Title",
15624
- componentId: "sc-gptoxp-0"
15625
- })(["font-size:0.6rem;color:yellow !important;"]);
15626
- var Subtitle$1 = /*#__PURE__*/styled.h1.withConfig({
15627
- displayName: "ItemSelector__Subtitle",
15628
- componentId: "sc-gptoxp-1"
15629
- })(["font-size:0.4rem;color:yellow !important;"]);
15630
- var RadioInputScroller$1 = /*#__PURE__*/styled.div.withConfig({
15631
- displayName: "ItemSelector__RadioInputScroller",
15632
- componentId: "sc-gptoxp-2"
15633
- })(["padding-left:15px;padding-top:10px;width:100%;margin-top:1rem;align-items:center;margin-left:20px;align-items:flex-start;overflow-y:scroll;height:360px;"]);
15634
- var SpriteAtlasWrapper$1 = /*#__PURE__*/styled.div.withConfig({
15635
- displayName: "ItemSelector__SpriteAtlasWrapper",
15636
- componentId: "sc-gptoxp-3"
15637
- })(["margin-right:40px;"]);
15638
- var RadioOptionsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
15639
- displayName: "ItemSelector__RadioOptionsWrapper",
15640
- componentId: "sc-gptoxp-4"
15641
- })(["display:flex;align-items:stretch;margin-bottom:40px;"]);
15642
- var ButtonWrapper$1 = /*#__PURE__*/styled.div.withConfig({
15643
- displayName: "ItemSelector__ButtonWrapper",
15644
- componentId: "sc-gptoxp-5"
15645
- })(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
15646
-
15647
15562
  var ListMenu = function ListMenu(_ref) {
15648
15563
  var options = _ref.options,
15649
15564
  onSelected = _ref.onSelected,
@@ -16247,6 +16162,370 @@ var PagerContainer$1 = /*#__PURE__*/styled.div.withConfig({
16247
16162
  componentId: "sc-h904b1-0"
16248
16163
  })(["display:flex;justify-content:space-between;align-items:center;width:calc(100% - 30px);"]);
16249
16164
 
16165
+ var PartyCreate = function PartyCreate(_ref) {
16166
+ var onClose = _ref.onClose,
16167
+ onCreate = _ref.onCreate;
16168
+ return React__default.createElement(DraggableContainer, {
16169
+ type: exports.RPGUIContainerTypes.Framed,
16170
+ onCloseButton: function onCloseButton() {
16171
+ if (onClose) onClose();
16172
+ },
16173
+ width: "500px",
16174
+ height: "300px",
16175
+ cancelDrag: ".partyRows"
16176
+ }, React__default.createElement(Wrapper$2, null, React__default.createElement("div", {
16177
+ style: {
16178
+ width: '100%'
16179
+ }
16180
+ }, React__default.createElement(Title$3, null, "Create Party"), React__default.createElement("hr", {
16181
+ className: "golden"
16182
+ }))), React__default.createElement("h1", null, "Type your party name"), React__default.createElement(Input, {
16183
+ placeholder: "Type party name",
16184
+ type: "text"
16185
+ }), React__default.createElement(ButtonWrapper$1, null, React__default.createElement(Button, {
16186
+ buttonType: exports.ButtonTypes.RPGUIButton,
16187
+ onPointerDown: function onPointerDown() {
16188
+ onCreate();
16189
+ }
16190
+ }, "Confirm"), React__default.createElement("div", {
16191
+ className: "cancel-button"
16192
+ }, React__default.createElement(Button, {
16193
+ buttonType: exports.ButtonTypes.RPGUIButton,
16194
+ onPointerDown: function onPointerDown() {
16195
+ close();
16196
+ }
16197
+ }, "Cancel"))));
16198
+ };
16199
+ var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
16200
+ displayName: "PartyCreate__Wrapper",
16201
+ componentId: "sc-13brop0-0"
16202
+ })(["display:flex;flex-direction:column;width:100%;"]);
16203
+ var Title$3 = /*#__PURE__*/styled.h1.withConfig({
16204
+ displayName: "PartyCreate__Title",
16205
+ componentId: "sc-13brop0-1"
16206
+ })(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
16207
+ var ButtonWrapper$1 = /*#__PURE__*/styled.div.withConfig({
16208
+ displayName: "PartyCreate__ButtonWrapper",
16209
+ componentId: "sc-13brop0-2"
16210
+ })(["margin-top:10px;width:100%;display:flex;justify-content:space-around;align-items:center;.cancel-button{filter:grayscale(0.7);}"]);
16211
+
16212
+ var PartyRow = function PartyRow(_ref) {
16213
+ var charName = _ref.charName,
16214
+ charClass = _ref.charClass,
16215
+ charLevel = _ref.charLevel,
16216
+ playerQty = _ref.playerQty,
16217
+ isInvited = _ref.isInvited,
16218
+ partyName = _ref.partyName;
16219
+ return React__default.createElement(PartyWrapper, null, React__default.createElement(TextContainer$3, null, partyName), React__default.createElement(TextContainer$3, null, charName), React__default.createElement(TextContainer$3, null, charClass), React__default.createElement(TextContainer$3, null, charLevel), React__default.createElement(TextContainer$3, null, playerQty, "/5"), isInvited ? React__default.createElement(React__default.Fragment, null, React__default.createElement(Button, {
16220
+ buttonType: exports.ButtonTypes.RPGUIButton
16221
+ }, "Accept"), React__default.createElement("div", {
16222
+ className: "cancel-button"
16223
+ }, React__default.createElement(Button, {
16224
+ buttonType: exports.ButtonTypes.RPGUIButton
16225
+ }, "Decline"))) : React__default.createElement(Button, {
16226
+ buttonType: exports.ButtonTypes.RPGUIButton
16227
+ }, "Join"));
16228
+ };
16229
+ var PartyWrapper = /*#__PURE__*/styled.div.withConfig({
16230
+ displayName: "PartyRows__PartyWrapper",
16231
+ componentId: "sc-xzuhrw-0"
16232
+ })(["width:100%;display:flex;align-items:center;justify-content:space-around;.cancel-button{filter:grayscale(0.7);}"]);
16233
+ var TextContainer$3 = /*#__PURE__*/styled.div.withConfig({
16234
+ displayName: "PartyRows__TextContainer",
16235
+ componentId: "sc-xzuhrw-1"
16236
+ })(["color:", ";"], uiColors.white);
16237
+
16238
+ var PartyDashboard = function PartyDashboard(_ref) {
16239
+ var partyRows = _ref.partyRows;
16240
+ return React__default.createElement(DraggableContainer, {
16241
+ type: exports.RPGUIContainerTypes.Framed,
16242
+ onCloseButton: function onCloseButton() {
16243
+ console.log('Close');
16244
+ },
16245
+ width: "800px",
16246
+ height: "400px",
16247
+ cancelDrag: ".partyRows"
16248
+ }, React__default.createElement(Wrapper$3, null, React__default.createElement("div", {
16249
+ style: {
16250
+ width: '100%'
16251
+ }
16252
+ }, React__default.createElement(Title$4, null, "Party Dashboard"), React__default.createElement(Button, {
16253
+ buttonType: exports.ButtonTypes.RPGUIButton
16254
+ }, "Create"), React__default.createElement("hr", {
16255
+ className: "golden"
16256
+ }))), React__default.createElement(RowsWrapper, {
16257
+ className: "partyRows"
16258
+ }, partyRows.map(function (partyRows) {
16259
+ return React__default.createElement(PartyRow, {
16260
+ key: partyRows.id,
16261
+ charName: partyRows.charName,
16262
+ charClass: partyRows.charClass,
16263
+ charLevel: partyRows.charLevel,
16264
+ playerQty: partyRows.playerQty,
16265
+ id: partyRows.id,
16266
+ isInvited: partyRows.isInvited,
16267
+ partyName: partyRows.partyName
16268
+ });
16269
+ })));
16270
+ };
16271
+ var Wrapper$3 = /*#__PURE__*/styled.div.withConfig({
16272
+ displayName: "PartyDashboard__Wrapper",
16273
+ componentId: "sc-16cm41r-0"
16274
+ })(["display:flex;flex-direction:column;width:100%;"]);
16275
+ var RowsWrapper = /*#__PURE__*/styled.div.withConfig({
16276
+ displayName: "PartyDashboard__RowsWrapper",
16277
+ componentId: "sc-16cm41r-1"
16278
+ })(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
16279
+ var Title$4 = /*#__PURE__*/styled.h1.withConfig({
16280
+ displayName: "PartyDashboard__Title",
16281
+ componentId: "sc-16cm41r-2"
16282
+ })(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
16283
+
16284
+ var PlayersRow = function PlayersRow(_ref) {
16285
+ var charName = _ref.charName,
16286
+ charClass = _ref.charClass,
16287
+ charLevel = _ref.charLevel,
16288
+ isNotInvited = _ref.isNotInvited;
16289
+ return React__default.createElement(PartyWrapper$1, null, React__default.createElement(TextContainer$4, null, charName), React__default.createElement(TextContainer$4, null, charClass), React__default.createElement(TextContainer$4, null, charLevel), isNotInvited ? React__default.createElement(React__default.Fragment, null, React__default.createElement(Button, {
16290
+ buttonType: exports.ButtonTypes.RPGUIButton
16291
+ }, "Invite")) : React__default.createElement(TextContainer$4, null, "Invited"));
16292
+ };
16293
+ var PartyWrapper$1 = /*#__PURE__*/styled.div.withConfig({
16294
+ displayName: "PlayersRows__PartyWrapper",
16295
+ componentId: "sc-1ji7yc1-0"
16296
+ })(["width:100%;display:flex;align-items:center;justify-content:space-around;flex-direction:row;flex:auto;"]);
16297
+ var TextContainer$4 = /*#__PURE__*/styled.div.withConfig({
16298
+ displayName: "PlayersRows__TextContainer",
16299
+ componentId: "sc-1ji7yc1-1"
16300
+ })(["color:", ";flex:auto;margin:auto;"], uiColors.white);
16301
+
16302
+ var PartyInvite = function PartyInvite(_ref) {
16303
+ var playersRows = _ref.playersRows;
16304
+ return React__default.createElement(DraggableContainer, {
16305
+ type: exports.RPGUIContainerTypes.Framed,
16306
+ onCloseButton: function onCloseButton() {
16307
+ console.log('Close');
16308
+ },
16309
+ width: "600px",
16310
+ height: "400px",
16311
+ cancelDrag: ".playersRows"
16312
+ }, React__default.createElement(Wrapper$4, null, React__default.createElement("div", {
16313
+ style: {
16314
+ width: '100%'
16315
+ }
16316
+ }, React__default.createElement(Title$5, null, "Invite for Party"), React__default.createElement("hr", {
16317
+ className: "golden"
16318
+ }))), React__default.createElement(RowsWrapper$1, {
16319
+ className: "playersRows"
16320
+ }, playersRows.map(function (playersRows) {
16321
+ return React__default.createElement(PlayersRow, {
16322
+ key: playersRows.id,
16323
+ charName: playersRows.charName,
16324
+ charClass: playersRows.charClass,
16325
+ charLevel: playersRows.charLevel,
16326
+ id: playersRows.id,
16327
+ isNotInvited: playersRows.isNotInvited
16328
+ });
16329
+ })));
16330
+ };
16331
+ var Wrapper$4 = /*#__PURE__*/styled.div.withConfig({
16332
+ displayName: "PartyInvite__Wrapper",
16333
+ componentId: "sc-eu8ggt-0"
16334
+ })(["display:flex;flex-direction:column;width:100%;"]);
16335
+ var Title$5 = /*#__PURE__*/styled.h1.withConfig({
16336
+ displayName: "PartyInvite__Title",
16337
+ componentId: "sc-eu8ggt-1"
16338
+ })(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
16339
+ var RowsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
16340
+ displayName: "PartyInvite__RowsWrapper",
16341
+ componentId: "sc-eu8ggt-2"
16342
+ })(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
16343
+
16344
+ var PartyManagerRow = function PartyManagerRow(_ref) {
16345
+ var charName = _ref.charName,
16346
+ charClass = _ref.charClass,
16347
+ charLevel = _ref.charLevel;
16348
+ return React__default.createElement(PartyWrapper$2, null, React__default.createElement(TextContainer$5, null, charName), React__default.createElement(TextContainer$5, null, charClass), React__default.createElement(TextContainer$5, null, charLevel), React__default.createElement("div", {
16349
+ className: "cancel-button"
16350
+ }, React__default.createElement(Button, {
16351
+ buttonType: exports.ButtonTypes.RPGUIButton
16352
+ }, "Remove")), React__default.createElement(Button, {
16353
+ buttonType: exports.ButtonTypes.RPGUIButton
16354
+ }, "New Leader"));
16355
+ };
16356
+ var PartyWrapper$2 = /*#__PURE__*/styled.div.withConfig({
16357
+ displayName: "PartyManagerRows__PartyWrapper",
16358
+ componentId: "sc-uqajew-0"
16359
+ })(["width:100%;display:flex;align-items:center;justify-content:space-around;.cancel-button{filter:grayscale(0.7);}"]);
16360
+ var TextContainer$5 = /*#__PURE__*/styled.div.withConfig({
16361
+ displayName: "PartyManagerRows__TextContainer",
16362
+ componentId: "sc-uqajew-1"
16363
+ })(["color:", ";"], uiColors.white);
16364
+
16365
+ var PartyManager = function PartyManager(_ref) {
16366
+ var partyRows = _ref.partyRows;
16367
+ return React__default.createElement(DraggableContainer, {
16368
+ type: exports.RPGUIContainerTypes.Framed,
16369
+ onCloseButton: function onCloseButton() {
16370
+ console.log('Close');
16371
+ },
16372
+ width: "800px",
16373
+ height: "400px",
16374
+ cancelDrag: ".partyRows"
16375
+ }, React__default.createElement(Wrapper$5, null, React__default.createElement("div", {
16376
+ style: {
16377
+ width: '100%'
16378
+ }
16379
+ }, React__default.createElement(Title$6, null, "Party Dashboard"), React__default.createElement("hr", {
16380
+ className: "golden"
16381
+ }))), React__default.createElement(RowsWrapper$2, {
16382
+ className: "partyRows"
16383
+ }, partyRows.map(function (partyRows) {
16384
+ return React__default.createElement(PartyManagerRow, {
16385
+ key: partyRows.id,
16386
+ charName: partyRows.charName,
16387
+ charClass: partyRows.charClass,
16388
+ charLevel: partyRows.charLevel,
16389
+ id: partyRows.id
16390
+ });
16391
+ })));
16392
+ };
16393
+ var Wrapper$5 = /*#__PURE__*/styled.div.withConfig({
16394
+ displayName: "PartyManager__Wrapper",
16395
+ componentId: "sc-1yqcad8-0"
16396
+ })(["display:flex;flex-direction:column;width:100%;"]);
16397
+ var RowsWrapper$2 = /*#__PURE__*/styled.div.withConfig({
16398
+ displayName: "PartyManager__RowsWrapper",
16399
+ componentId: "sc-1yqcad8-1"
16400
+ })(["width:100%;"]);
16401
+ var Title$6 = /*#__PURE__*/styled.h1.withConfig({
16402
+ displayName: "PartyManager__Title",
16403
+ componentId: "sc-1yqcad8-2"
16404
+ })(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
16405
+
16406
+ var mockedPartyRows = [{
16407
+ id: /*#__PURE__*/uuid.v4(),
16408
+ charName: 'CharNome',
16409
+ charClass: 'CharClass',
16410
+ charLevel: 1,
16411
+ playerQty: 3,
16412
+ isInvited: true,
16413
+ partyName: 'Party'
16414
+ }, {
16415
+ id: /*#__PURE__*/uuid.v4(),
16416
+ charName: 'CharNome',
16417
+ charClass: 'CharClass',
16418
+ charLevel: 1,
16419
+ playerQty: 3,
16420
+ isInvited: true,
16421
+ partyName: 'Party'
16422
+ }, {
16423
+ id: /*#__PURE__*/uuid.v4(),
16424
+ charName: 'CharNome',
16425
+ charClass: 'CharClass',
16426
+ charLevel: 1,
16427
+ playerQty: 3,
16428
+ isInvited: true,
16429
+ partyName: 'Party'
16430
+ }, {
16431
+ id: /*#__PURE__*/uuid.v4(),
16432
+ charName: 'CharNome',
16433
+ charClass: 'CharClass',
16434
+ charLevel: 1,
16435
+ playerQty: 3,
16436
+ isInvited: true,
16437
+ partyName: 'Party'
16438
+ }, {
16439
+ id: /*#__PURE__*/uuid.v4(),
16440
+ charName: 'CharNome',
16441
+ charClass: 'CharClass',
16442
+ charLevel: 1,
16443
+ playerQty: 3,
16444
+ isInvited: true,
16445
+ partyName: 'Party'
16446
+ }, {
16447
+ id: /*#__PURE__*/uuid.v4(),
16448
+ charName: 'CharNome',
16449
+ charClass: 'CharClass',
16450
+ charLevel: 1,
16451
+ playerQty: 3,
16452
+ isInvited: true,
16453
+ partyName: 'Party'
16454
+ }, {
16455
+ id: /*#__PURE__*/uuid.v4(),
16456
+ charName: 'CharNome',
16457
+ charClass: 'CharClass',
16458
+ charLevel: 1,
16459
+ playerQty: 3,
16460
+ isInvited: true,
16461
+ partyName: 'Party'
16462
+ }, {
16463
+ id: /*#__PURE__*/uuid.v4(),
16464
+ charName: 'CharNome',
16465
+ charClass: 'CharClass',
16466
+ charLevel: 1,
16467
+ playerQty: 3,
16468
+ isInvited: true,
16469
+ partyName: 'Party'
16470
+ }];
16471
+ var mockedPlayersRows = [{
16472
+ id: /*#__PURE__*/uuid.v4(),
16473
+ charName: 'CharNome',
16474
+ charClass: 'CharClass',
16475
+ charLevel: 1,
16476
+ isNotInvited: true
16477
+ }, {
16478
+ id: /*#__PURE__*/uuid.v4(),
16479
+ charName: 'CharNome',
16480
+ charClass: 'CharClass',
16481
+ charLevel: 1,
16482
+ isNotInvited: true
16483
+ }, {
16484
+ id: /*#__PURE__*/uuid.v4(),
16485
+ charName: 'CharNome',
16486
+ charClass: 'CharClass',
16487
+ charLevel: 1,
16488
+ isNotInvited: true
16489
+ }, {
16490
+ id: /*#__PURE__*/uuid.v4(),
16491
+ charName: 'CharNome',
16492
+ charClass: 'CharClass',
16493
+ charLevel: 1,
16494
+ isNotInvited: true
16495
+ }, {
16496
+ id: /*#__PURE__*/uuid.v4(),
16497
+ charName: 'CharNome',
16498
+ charClass: 'CharClass',
16499
+ charLevel: 1,
16500
+ isNotInvited: true
16501
+ }];
16502
+ var mockedPartyManager = [{
16503
+ id: /*#__PURE__*/uuid.v4(),
16504
+ charName: 'CharNome',
16505
+ charClass: 'CharClass',
16506
+ charLevel: 1
16507
+ }, {
16508
+ id: /*#__PURE__*/uuid.v4(),
16509
+ charName: 'CharNome',
16510
+ charClass: 'CharClass',
16511
+ charLevel: 1
16512
+ }, {
16513
+ id: /*#__PURE__*/uuid.v4(),
16514
+ charName: 'CharNome',
16515
+ charClass: 'CharClass',
16516
+ charLevel: 1
16517
+ }, {
16518
+ id: /*#__PURE__*/uuid.v4(),
16519
+ charName: 'CharNome',
16520
+ charClass: 'CharClass',
16521
+ charLevel: 1
16522
+ }, {
16523
+ id: /*#__PURE__*/uuid.v4(),
16524
+ charName: 'CharNome',
16525
+ charClass: 'CharClass',
16526
+ charLevel: 1
16527
+ }];
16528
+
16250
16529
  var ProgressBar = function ProgressBar(_ref) {
16251
16530
  var max = _ref.max,
16252
16531
  value = _ref.value,
@@ -16353,7 +16632,7 @@ var QuestInfo = function QuestInfo(_ref) {
16353
16632
  onPointerDown: onRightClick
16354
16633
  }), React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
16355
16634
  className: "drag-handler"
16356
- }, React__default.createElement(Title$4, null, React__default.createElement(Thumbnail, {
16635
+ }, React__default.createElement(Title$7, null, React__default.createElement(Thumbnail, {
16357
16636
  src: quests[currentIndex].thumbnail || img$8
16358
16637
  }), quests[currentIndex].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
16359
16638
  className: "golden"
@@ -16372,7 +16651,7 @@ var QuestInfo = function QuestInfo(_ref) {
16372
16651
  }, button.title);
16373
16652
  })))) : React__default.createElement(QuestsContainer, null, React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
16374
16653
  className: "drag-handler"
16375
- }, React__default.createElement(Title$4, null, React__default.createElement(Thumbnail, {
16654
+ }, React__default.createElement(Title$7, null, React__default.createElement(Thumbnail, {
16376
16655
  src: quests[0].thumbnail || img$8
16377
16656
  }), quests[0].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
16378
16657
  className: "golden"
@@ -16419,7 +16698,7 @@ var TitleContainer$1 = /*#__PURE__*/styled.div.withConfig({
16419
16698
  displayName: "QuestInfo__TitleContainer",
16420
16699
  componentId: "sc-15s2boc-6"
16421
16700
  })(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
16422
- var Title$4 = /*#__PURE__*/styled.h1.withConfig({
16701
+ var Title$7 = /*#__PURE__*/styled.h1.withConfig({
16423
16702
  displayName: "QuestInfo__Title",
16424
16703
  componentId: "sc-15s2boc-7"
16425
16704
  })(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
@@ -16443,7 +16722,7 @@ var QuestList = function QuestList(_ref) {
16443
16722
  style: {
16444
16723
  width: '100%'
16445
16724
  }
16446
- }, React__default.createElement(Title$5, null, "Quests"), React__default.createElement("hr", {
16725
+ }, React__default.createElement(Title$8, null, "Quests"), React__default.createElement("hr", {
16447
16726
  className: "golden"
16448
16727
  }), React__default.createElement(QuestListContainer, null, quests ? quests.map(function (quest, i) {
16449
16728
  return React__default.createElement("div", {
@@ -16464,7 +16743,7 @@ var QuestDraggableContainer$1 = /*#__PURE__*/styled(DraggableContainer).withConf
16464
16743
  displayName: "QuestList__QuestDraggableContainer",
16465
16744
  componentId: "sc-1a2vx6q-0"
16466
16745
  })([".container-close{top:10px;right:10px;}.quest-title{text-align:left;margin-left:44px;margin-top:20px;color:yellow;}.quest-desc{margin-top:12px;margin-left:44px;}.rpgui-progress{min-width:80%;margin:0 auto;}"]);
16467
- var Title$5 = /*#__PURE__*/styled.h1.withConfig({
16746
+ var Title$8 = /*#__PURE__*/styled.h1.withConfig({
16468
16747
  displayName: "QuestList__Title",
16469
16748
  componentId: "sc-1a2vx6q-1"
16470
16749
  })(["z-index:22;font-size:", " !important;color:yellow !important;"], uiFonts.size.medium);
@@ -16477,6 +16756,15 @@ var NoQuestContainer = /*#__PURE__*/styled.div.withConfig({
16477
16756
  componentId: "sc-1a2vx6q-3"
16478
16757
  })(["text-align:center;p{margin-top:5px;}"]);
16479
16758
 
16759
+ //@ts-ignore
16760
+ var _RPGUI = RPGUI;
16761
+ var RPGUIRoot = function RPGUIRoot(_ref) {
16762
+ var children = _ref.children;
16763
+ return React__default.createElement("div", {
16764
+ className: "rpgui-content"
16765
+ }, children);
16766
+ };
16767
+
16480
16768
  var InputRadio$1 = function InputRadio(_ref) {
16481
16769
  var name = _ref.name,
16482
16770
  items = _ref.items,
@@ -16509,15 +16797,6 @@ var InputRadio$1 = function InputRadio(_ref) {
16509
16797
  }));
16510
16798
  };
16511
16799
 
16512
- //@ts-ignore
16513
- var _RPGUI = RPGUI;
16514
- var RPGUIRoot = function RPGUIRoot(_ref) {
16515
- var children = _ref.children;
16516
- return React__default.createElement("div", {
16517
- className: "rpgui-content"
16518
- }, children);
16519
- };
16520
-
16521
16800
  var Shortcuts = function Shortcuts(_ref) {
16522
16801
  var shortcuts = _ref.shortcuts,
16523
16802
  onShortcutCast = _ref.onShortcutCast,
@@ -16934,7 +17213,7 @@ var SpellInfo = function SpellInfo(_ref) {
16934
17213
  castingType = spell.castingType,
16935
17214
  cooldown = spell.cooldown,
16936
17215
  maxDistanceGrid = spell.maxDistanceGrid;
16937
- return React__default.createElement(Container$o, null, React__default.createElement(Header$1, null, React__default.createElement("div", null, React__default.createElement(Title$6, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
17216
+ return React__default.createElement(Container$o, null, React__default.createElement(Header$1, null, React__default.createElement("div", null, React__default.createElement(Title$9, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
16938
17217
  className: "label"
16939
17218
  }, "Casting Type:"), React__default.createElement("div", {
16940
17219
  className: "value"
@@ -16964,7 +17243,7 @@ var Container$o = /*#__PURE__*/styled.div.withConfig({
16964
17243
  displayName: "SpellInfo__Container",
16965
17244
  componentId: "sc-4hbw3q-0"
16966
17245
  })(["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);
16967
- var Title$6 = /*#__PURE__*/styled.div.withConfig({
17246
+ var Title$9 = /*#__PURE__*/styled.div.withConfig({
16968
17247
  displayName: "SpellInfo__Title",
16969
17248
  componentId: "sc-4hbw3q-1"
16970
17249
  })(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
@@ -17146,7 +17425,7 @@ var Spell = function Spell(_ref) {
17146
17425
  className: "cooldown"
17147
17426
  }, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, magicWords.split(' ').map(function (word) {
17148
17427
  return word[0];
17149
- })), React__default.createElement(Info, null, React__default.createElement(Title$7, null, React__default.createElement("span", null, name), React__default.createElement("span", {
17428
+ })), React__default.createElement(Info, null, React__default.createElement(Title$a, null, React__default.createElement("span", null, name), React__default.createElement("span", {
17150
17429
  className: "spell"
17151
17430
  }, "(", magicWords, ")")), React__default.createElement(Description$2, null, description)), React__default.createElement(Divider, null), React__default.createElement(Cost, null, React__default.createElement("span", null, "Mana cost:"), React__default.createElement("span", {
17152
17431
  className: "mana"
@@ -17167,7 +17446,7 @@ var Info = /*#__PURE__*/styled.span.withConfig({
17167
17446
  displayName: "Spell__Info",
17168
17447
  componentId: "sc-j96fa2-2"
17169
17448
  })(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
17170
- var Title$7 = /*#__PURE__*/styled.p.withConfig({
17449
+ var Title$a = /*#__PURE__*/styled.p.withConfig({
17171
17450
  displayName: "Spell__Title",
17172
17451
  componentId: "sc-j96fa2-3"
17173
17452
  })(["display:flex;flex-wrap:wrap;align-items:center;margin-bottom:5px;margin:0;span{font-size:", " !important;font-weight:bold !important;color:", " !important;margin-right:0.5rem;}.spell{font-size:", " !important;font-weight:normal !important;color:", " !important;}"], uiFonts.size.medium, uiColors.yellow, uiFonts.size.small, uiColors.lightGray);
@@ -17229,7 +17508,7 @@ var Spellbook = function Spellbook(_ref) {
17229
17508
  height: "inherit",
17230
17509
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
17231
17510
  scale: scale
17232
- }, React__default.createElement(Container$s, null, React__default.createElement(Title$8, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
17511
+ }, React__default.createElement(Container$s, null, React__default.createElement(Title$b, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
17233
17512
  setSettingShortcutIndex: setSettingShortcutIndex,
17234
17513
  settingShortcutIndex: settingShortcutIndex,
17235
17514
  shortcuts: shortcuts,
@@ -17259,7 +17538,7 @@ var Spellbook = function Spellbook(_ref) {
17259
17538
  }, spell)));
17260
17539
  }))));
17261
17540
  };
17262
- var Title$8 = /*#__PURE__*/styled.h1.withConfig({
17541
+ var Title$b = /*#__PURE__*/styled.h1.withConfig({
17263
17542
  displayName: "Spellbook__Title",
17264
17543
  componentId: "sc-r02nfq-0"
17265
17544
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
@@ -17500,7 +17779,7 @@ var TradingMenu = function TradingMenu(_ref) {
17500
17779
  style: {
17501
17780
  width: '100%'
17502
17781
  }
17503
- }, React__default.createElement(Title$9, null, Capitalize(type), " Menu"), React__default.createElement("hr", {
17782
+ }, React__default.createElement(Title$c, null, Capitalize(type), " Menu"), React__default.createElement("hr", {
17504
17783
  className: "golden"
17505
17784
  })), React__default.createElement(TradingComponentScrollWrapper, {
17506
17785
  id: "TraderContainer"
@@ -17530,7 +17809,7 @@ var TradingMenu = function TradingMenu(_ref) {
17530
17809
  }
17531
17810
  }, "Cancel"))));
17532
17811
  };
17533
- var Title$9 = /*#__PURE__*/styled.h1.withConfig({
17812
+ var Title$c = /*#__PURE__*/styled.h1.withConfig({
17534
17813
  displayName: "TradingMenu__Title",
17535
17814
  componentId: "sc-1wjsz1l-0"
17536
17815
  })(["z-index:22;font-size:0.6rem;color:yellow !important;"]);
@@ -17575,6 +17854,92 @@ var Container$t = /*#__PURE__*/styled.div.withConfig({
17575
17854
  return props.maxLines;
17576
17855
  });
17577
17856
 
17857
+ var ItemSelector = function ItemSelector(_ref) {
17858
+ var atlasIMG = _ref.atlasIMG,
17859
+ atlasJSON = _ref.atlasJSON,
17860
+ options = _ref.options,
17861
+ onClose = _ref.onClose,
17862
+ onSelect = _ref.onSelect;
17863
+ var _useState = React.useState(),
17864
+ selectedValue = _useState[0],
17865
+ setSelectedValue = _useState[1];
17866
+ var handleClick = function handleClick() {
17867
+ var element = document.querySelector("input[name='test']:checked");
17868
+ var elementValue = element.value;
17869
+ setSelectedValue(elementValue);
17870
+ };
17871
+ React.useEffect(function () {
17872
+ if (selectedValue) {
17873
+ onSelect(selectedValue);
17874
+ }
17875
+ }, [selectedValue]);
17876
+ return React__default.createElement(DraggableContainer, {
17877
+ type: exports.RPGUIContainerTypes.Framed,
17878
+ width: "500px",
17879
+ cancelDrag: ".equipment-container-body .arrow-selector",
17880
+ onCloseButton: function onCloseButton() {
17881
+ if (onClose) {
17882
+ onClose();
17883
+ }
17884
+ }
17885
+ }, React__default.createElement("div", {
17886
+ style: {
17887
+ width: '100%'
17888
+ }
17889
+ }, React__default.createElement(Title$d, null, 'Harvesting instruments'), React__default.createElement(Subtitle$1, null, 'Use the tool, you need it'), React__default.createElement("hr", {
17890
+ className: "golden"
17891
+ })), React__default.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
17892
+ return React__default.createElement(RadioOptionsWrapper$1, {
17893
+ key: index
17894
+ }, React__default.createElement(SpriteAtlasWrapper$1, null, React__default.createElement(SpriteFromAtlas, {
17895
+ atlasIMG: atlasIMG,
17896
+ atlasJSON: atlasJSON,
17897
+ spriteKey: option.imageKey,
17898
+ imgScale: 3
17899
+ })), React__default.createElement("div", null, React__default.createElement("input", {
17900
+ className: "rpgui-radio",
17901
+ type: "radio",
17902
+ value: option.name,
17903
+ name: "test"
17904
+ }), React__default.createElement("label", {
17905
+ onPointerDown: handleClick,
17906
+ style: {
17907
+ display: 'flex',
17908
+ alignItems: 'center'
17909
+ }
17910
+ }, option.name, " ", React__default.createElement("br", null), option.description)));
17911
+ })), React__default.createElement(ButtonWrapper$3, null, React__default.createElement(Button, {
17912
+ buttonType: exports.ButtonTypes.RPGUIButton,
17913
+ onPointerDown: onClose
17914
+ }, "Cancel"), React__default.createElement(Button, {
17915
+ buttonType: exports.ButtonTypes.RPGUIButton
17916
+ }, "Select")));
17917
+ };
17918
+ var Title$d = /*#__PURE__*/styled.h1.withConfig({
17919
+ displayName: "ItemSelector__Title",
17920
+ componentId: "sc-gptoxp-0"
17921
+ })(["font-size:0.6rem;color:yellow !important;"]);
17922
+ var Subtitle$1 = /*#__PURE__*/styled.h1.withConfig({
17923
+ displayName: "ItemSelector__Subtitle",
17924
+ componentId: "sc-gptoxp-1"
17925
+ })(["font-size:0.4rem;color:yellow !important;"]);
17926
+ var RadioInputScroller$1 = /*#__PURE__*/styled.div.withConfig({
17927
+ displayName: "ItemSelector__RadioInputScroller",
17928
+ componentId: "sc-gptoxp-2"
17929
+ })(["padding-left:15px;padding-top:10px;width:100%;margin-top:1rem;align-items:center;margin-left:20px;align-items:flex-start;overflow-y:scroll;height:360px;"]);
17930
+ var SpriteAtlasWrapper$1 = /*#__PURE__*/styled.div.withConfig({
17931
+ displayName: "ItemSelector__SpriteAtlasWrapper",
17932
+ componentId: "sc-gptoxp-3"
17933
+ })(["margin-right:40px;"]);
17934
+ var RadioOptionsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
17935
+ displayName: "ItemSelector__RadioOptionsWrapper",
17936
+ componentId: "sc-gptoxp-4"
17937
+ })(["display:flex;align-items:stretch;margin-bottom:40px;"]);
17938
+ var ButtonWrapper$3 = /*#__PURE__*/styled.div.withConfig({
17939
+ displayName: "ItemSelector__ButtonWrapper",
17940
+ componentId: "sc-gptoxp-5"
17941
+ })(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
17942
+
17578
17943
  exports.Button = Button;
17579
17944
  exports.CharacterSelection = CharacterSelection;
17580
17945
  exports.Chat = Chat;
@@ -17600,6 +17965,13 @@ exports.Marketplace = Marketplace;
17600
17965
  exports.MarketplaceRows = MarketplaceRows;
17601
17966
  exports.NPCDialog = NPCDialog;
17602
17967
  exports.NPCMultiDialog = NPCMultiDialog;
17968
+ exports.PartyCreate = PartyCreate;
17969
+ exports.PartyDashboard = PartyDashboard;
17970
+ exports.PartyInvite = PartyInvite;
17971
+ exports.PartyManager = PartyManager;
17972
+ exports.PartyManagerRow = PartyManagerRow;
17973
+ exports.PartyRow = PartyRow;
17974
+ exports.PlayersRow = PlayersRow;
17603
17975
  exports.ProgressBar = ProgressBar;
17604
17976
  exports.PropertySelect = PropertySelect;
17605
17977
  exports.QuestInfo = QuestInfo;
@@ -17618,6 +17990,9 @@ exports.TimeWidget = TimeWidget;
17618
17990
  exports.TradingMenu = TradingMenu;
17619
17991
  exports.Truncate = Truncate;
17620
17992
  exports._RPGUI = _RPGUI;
17993
+ exports.mockedPartyManager = mockedPartyManager;
17994
+ exports.mockedPartyRows = mockedPartyRows;
17995
+ exports.mockedPlayersRows = mockedPlayersRows;
17621
17996
  exports.rarityColor = rarityColor;
17622
17997
  exports.useEventListener = useEventListener;
17623
17998
  //# sourceMappingURL=long-bow.cjs.development.js.map