@rpg-engine/long-bow 0.8.184 → 0.8.185

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.
@@ -49272,6 +49272,76 @@ var InputRadio = function InputRadio(_ref) {
49272
49272
  }));
49273
49273
  };
49274
49274
 
49275
+ /**
49276
+ * A selectable row with an amber radio circle indicator.
49277
+ * Used for single-select option lists throughout the Marketplace UI.
49278
+ * Export `RadioCircle` separately so consumers can compose custom layouts.
49279
+ */
49280
+ var RadioOption$1 = function RadioOption(_ref) {
49281
+ var selected = _ref.selected,
49282
+ _ref$disabled = _ref.disabled,
49283
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
49284
+ onSelect = _ref.onSelect,
49285
+ children = _ref.children;
49286
+ var handleClick = function handleClick() {
49287
+ if (!disabled) {
49288
+ onSelect();
49289
+ }
49290
+ };
49291
+ return React.createElement(RadioOptionContainer, {
49292
+ "$selected": selected,
49293
+ "$disabled": disabled,
49294
+ onClick: handleClick,
49295
+ role: "radio",
49296
+ "aria-checked": selected,
49297
+ "aria-disabled": disabled
49298
+ }, React.createElement(RadioCircle$2, {
49299
+ "$selected": selected
49300
+ }), children);
49301
+ };
49302
+ var RadioOptionContainer = /*#__PURE__*/styled.div.withConfig({
49303
+ displayName: "RadioOption__RadioOptionContainer",
49304
+ componentId: "sc-rmm0nc-0"
49305
+ })(["display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid ", ";border-radius:6px;background:", ";cursor:", ";opacity:", ";transition:border-color 0.15s,background 0.15s;&:hover{border-color:", ";}"], function (_ref2) {
49306
+ var $selected = _ref2.$selected;
49307
+ return $selected ? '#f59e0b' : 'rgba(255,255,255,0.15)';
49308
+ }, function (_ref3) {
49309
+ var $selected = _ref3.$selected;
49310
+ return $selected ? 'rgba(245,158,11,0.1)' : 'transparent';
49311
+ }, function (_ref4) {
49312
+ var $disabled = _ref4.$disabled;
49313
+ return $disabled ? 'not-allowed' : 'pointer';
49314
+ }, function (_ref5) {
49315
+ var $disabled = _ref5.$disabled;
49316
+ return $disabled ? 0.5 : 1;
49317
+ }, function (_ref6) {
49318
+ var $disabled = _ref6.$disabled;
49319
+ return $disabled ? 'rgba(255,255,255,0.15)' : '#f59e0b';
49320
+ });
49321
+ var RadioCircle$2 = /*#__PURE__*/styled.div.withConfig({
49322
+ displayName: "RadioOption__RadioCircle",
49323
+ componentId: "sc-rmm0nc-1"
49324
+ })(["width:16px;height:16px;border-radius:50%;border:2px solid ", ";display:flex;align-items:center;justify-content:center;flex-shrink:0;&::after{content:'';width:8px;height:8px;border-radius:50%;background:#f59e0b;opacity:", ";transition:opacity 0.15s;}"], function (_ref7) {
49325
+ var $selected = _ref7.$selected;
49326
+ return $selected ? '#f59e0b' : 'rgba(255,255,255,0.4)';
49327
+ }, function (_ref8) {
49328
+ var $selected = _ref8.$selected;
49329
+ return $selected ? 1 : 0;
49330
+ });
49331
+ /** Convenience wrapper for option label text with RPGUI font override. */
49332
+ var RadioOptionLabel = /*#__PURE__*/styled.span.withConfig({
49333
+ displayName: "RadioOption__RadioOptionLabel",
49334
+ componentId: "sc-rmm0nc-2"
49335
+ })(["font-family:'Press Start 2P',cursive !important;font-size:0.65rem !important;color:", " !important;"], function (_ref9) {
49336
+ var $disabled = _ref9.$disabled;
49337
+ return $disabled ? 'rgba(255,255,255,0.4)' : '#ffffff';
49338
+ });
49339
+ /** Convenience wrapper for option sub-text with RPGUI font override. */
49340
+ var RadioOptionSub = /*#__PURE__*/styled.span.withConfig({
49341
+ displayName: "RadioOption__RadioOptionSub",
49342
+ componentId: "sc-rmm0nc-3"
49343
+ })(["font-family:'Press Start 2P',cursive !important;font-size:0.55rem !important;color:rgba(255,255,255,0.5) !important;"]);
49344
+
49275
49345
  var Shortcuts = function Shortcuts(_ref) {
49276
49346
  var shortcuts = _ref.shortcuts,
49277
49347
  onShortcutCast = _ref.onShortcutCast,
@@ -71529,27 +71599,27 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
71529
71599
  }, React.createElement(Header$f, null, React.createElement(Title$m, null, "How would you like to pay?"), React.createElement(CloseButton$g, {
71530
71600
  onPointerDown: onClose,
71531
71601
  "aria-label": "Close"
71532
- }, React.createElement(FaTimes, null))), React.createElement(Options$1, null, React.createElement(RadioOption$1, {
71602
+ }, React.createElement(FaTimes, null))), React.createElement(Options$1, null, React.createElement(RadioOption$2, {
71533
71603
  "$selected": selected === 'card',
71534
71604
  onPointerDown: function onPointerDown() {
71535
71605
  return setSelected('card');
71536
71606
  }
71537
- }, React.createElement(RadioCircle$2, {
71607
+ }, React.createElement(RadioCircle$3, {
71538
71608
  "$selected": selected === 'card'
71539
- }), React.createElement(OptionText$1, null, React.createElement(OptionLabel$2, null, "Credit Card"), React.createElement(OptionSub$1, null, "Stripe secure checkout"))), showPix && React.createElement(RadioOption$1, {
71609
+ }), React.createElement(OptionText$1, null, React.createElement(OptionLabel$2, null, "Credit Card"), React.createElement(OptionSub$1, null, "Stripe secure checkout"))), showPix && React.createElement(RadioOption$2, {
71540
71610
  "$selected": selected === 'pix',
71541
71611
  onPointerDown: function onPointerDown() {
71542
71612
  return setSelected('pix');
71543
71613
  }
71544
- }, React.createElement(RadioCircle$2, {
71614
+ }, React.createElement(RadioCircle$3, {
71545
71615
  "$selected": selected === 'pix'
71546
- }), React.createElement(OptionText$1, null, React.createElement(OptionLabel$2, null, "Pix"), React.createElement(OptionSub$1, null, "Instant payment via Pix"))), React.createElement(RadioOption$1, {
71616
+ }), React.createElement(OptionText$1, null, React.createElement(OptionLabel$2, null, "Pix"), React.createElement(OptionSub$1, null, "Instant payment via Pix"))), React.createElement(RadioOption$2, {
71547
71617
  "$selected": selected === 'dc',
71548
71618
  "$disabled": dcDisabled,
71549
71619
  onPointerDown: dcDisabled ? undefined : function () {
71550
71620
  return setSelected('dc');
71551
71621
  }
71552
- }, React.createElement(RadioCircle$2, {
71622
+ }, React.createElement(RadioCircle$3, {
71553
71623
  "$selected": selected === 'dc'
71554
71624
  }), React.createElement(OptionText$1, null, React.createElement(OptionLabel$2, null, "Definya Coin"), React.createElement(OptionSub$1, null, dcSubText)))), React.createElement(ConfirmRow$1, null, React.createElement(Button, {
71555
71625
  buttonType: ButtonTypes.RPGUIButton,
@@ -71584,7 +71654,7 @@ var Options$1 = /*#__PURE__*/styled.div.withConfig({
71584
71654
  displayName: "PaymentMethodModal__Options",
71585
71655
  componentId: "sc-1dxy6lr-6"
71586
71656
  })(["display:flex;flex-direction:column;gap:8px;"]);
71587
- var RadioOption$1 = /*#__PURE__*/styled.div.withConfig({
71657
+ var RadioOption$2 = /*#__PURE__*/styled.div.withConfig({
71588
71658
  displayName: "PaymentMethodModal__RadioOption",
71589
71659
  componentId: "sc-1dxy6lr-7"
71590
71660
  })(["display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid ", ";border-radius:6px;background:", ";cursor:", ";opacity:", ";transition:border-color 0.15s,background 0.15s,opacity 0.15s;&:hover{border-color:", ";}"], function (_ref2) {
@@ -71603,7 +71673,7 @@ var RadioOption$1 = /*#__PURE__*/styled.div.withConfig({
71603
71673
  var $disabled = _ref6.$disabled;
71604
71674
  return $disabled ? 'rgba(255,255,255,0.15)' : '#f59e0b';
71605
71675
  });
71606
- var RadioCircle$2 = /*#__PURE__*/styled.div.withConfig({
71676
+ var RadioCircle$3 = /*#__PURE__*/styled.div.withConfig({
71607
71677
  displayName: "PaymentMethodModal__RadioCircle",
71608
71678
  componentId: "sc-1dxy6lr-8"
71609
71679
  })(["width:16px;height:16px;border-radius:50%;border:2px solid ", ";display:flex;align-items:center;justify-content:center;flex-shrink:0;&::after{content:'';width:8px;height:8px;border-radius:50%;background:#f59e0b;opacity:", ";transition:opacity 0.15s;}"], function (_ref7) {
@@ -73762,5 +73832,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
73762
73832
  componentId: "sc-7tgzv2-6"
73763
73833
  })(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
73764
73834
 
73765
- export { ActionButtons, AsyncDropdown, BLUEPRINTS_PER_PAGE, BUY_ORDERS_PER_PAGE, BlueprintSearchModal, Button, ButtonTypes, BuyOrderPanel, BuyOrderRow, CTAButton, CartView, CharacterListingForm, CharacterMarketplacePanel, CharacterMarketplaceRows, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CountdownTimer, CraftBook, DCWalletContent, DCWalletModal, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FeaturedBanner, FriendList, GemSelector, GroupedBuyOrderRow, GroupedCharacterMarketplaceRow, GroupedMarketplaceRow, HISTORY_ITEMS_PER_PAGE, HistoryDialog, HistoryPanel, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, LoginStreakPanel, Marketplace, MarketplaceBuyModal, MarketplaceRows, MarketplaceSettingsPanel, MetadataCollector, MultitabType, MyCharacterListingsPanel, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PaymentMethodModal, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, PurchaseSuccess, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, StoreBadges, TRANSACTION_TYPE_FILTER_ALL, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer$1 as TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TrustBar, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener, useStoreCart };
73835
+ export { ActionButtons, AsyncDropdown, BLUEPRINTS_PER_PAGE, BUY_ORDERS_PER_PAGE, BlueprintSearchModal, Button, ButtonTypes, BuyOrderPanel, BuyOrderRow, CTAButton, CartView, CharacterListingForm, CharacterListingModal, CharacterMarketplacePanel, CharacterMarketplaceRows, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CountdownTimer, CraftBook, DCRateStrip, DCWalletContent, DCWalletModal, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FeaturedBanner, FriendList, GemSelector, GroupedBuyOrderRow, GroupedCharacterMarketplaceRow, GroupedMarketplaceRow, HISTORY_ITEMS_PER_PAGE, HistoryDialog, HistoryPanel, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, LoginStreakPanel, Marketplace, MarketplaceBuyModal, MarketplaceRows, MarketplaceSettingsPanel, MetadataCollector, MultitabType, MyCharacterListingsPanel, NPCDialog, NPCDialogType, NPCMultiDialog, Pagination, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PaymentMethodModal, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, PurchaseSuccess, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RadioCircle$2 as RadioCircle, RadioOption$1 as RadioOption, RadioOptionLabel, RadioOptionSub, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, StoreBadges, TRANSACTION_TYPE_FILTER_ALL, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer$1 as TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TrustBar, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener, useStoreCart };
73766
73836
  //# sourceMappingURL=long-bow.esm.js.map