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