@rpg-engine/long-bow 0.8.229 → 0.8.230
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.
- package/dist/components/RadioSelectCard/RadioSelectCard.d.ts +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +89 -10
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +89 -11
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/RadioSelectCard/RadioSelectCard.tsx +123 -0
- package/src/index.tsx +1 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -15843,6 +15843,84 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
15843
15843
|
}));
|
|
15844
15844
|
};
|
|
15845
15845
|
|
|
15846
|
+
/**
|
|
15847
|
+
* Dark RPG-themed radio-style card.
|
|
15848
|
+
* Matches the aesthetic of MarketplaceSettingsPanel OptionCard.
|
|
15849
|
+
* Uses !important overrides to survive RPGUI global CSS.
|
|
15850
|
+
*/
|
|
15851
|
+
var RadioSelectCard = function RadioSelectCard(_ref) {
|
|
15852
|
+
var label = _ref.label,
|
|
15853
|
+
description = _ref.description,
|
|
15854
|
+
badge = _ref.badge,
|
|
15855
|
+
icon = _ref.icon,
|
|
15856
|
+
_ref$active = _ref.active,
|
|
15857
|
+
active = _ref$active === void 0 ? false : _ref$active,
|
|
15858
|
+
onClick = _ref.onClick,
|
|
15859
|
+
testId = _ref['data-testid'];
|
|
15860
|
+
return React.createElement(Card, {
|
|
15861
|
+
"$active": active,
|
|
15862
|
+
onClick: onClick,
|
|
15863
|
+
"data-testid": testId,
|
|
15864
|
+
type: "button"
|
|
15865
|
+
}, icon && React.createElement(IconWrap, null, icon), React.createElement(Body, null, React.createElement(Label$7, {
|
|
15866
|
+
"$active": active
|
|
15867
|
+
}, label), description && React.createElement(Description$5, null, description)), badge && React.createElement(Badge, {
|
|
15868
|
+
"$active": active
|
|
15869
|
+
}, badge));
|
|
15870
|
+
};
|
|
15871
|
+
// ─── Styled Components ────────────────────────────────────────────────────────
|
|
15872
|
+
var Card = /*#__PURE__*/styled.button.withConfig({
|
|
15873
|
+
displayName: "RadioSelectCard__Card",
|
|
15874
|
+
componentId: "sc-12jrcz1-0"
|
|
15875
|
+
})(["display:flex !important;flex-direction:row !important;align-items:center !important;gap:0.6rem !important;width:100% !important;padding:0.75rem 0.9rem !important;background:", " !important;border:2px solid ", " !important;border-radius:6px !important;cursor:pointer !important;text-align:left !important;transition:border-color 0.15s ease,background 0.15s ease,box-shadow 0.15s ease !important;font-family:inherit !important;box-sizing:border-box !important;&:hover{border-color:", " !important;background:", " !important;box-shadow:", " !important;}&:active{background:rgba(0,0,0,0.5) !important;}"], function (_ref2) {
|
|
15876
|
+
var $active = _ref2.$active;
|
|
15877
|
+
return $active ? 'rgba(245, 158, 11, 0.12)' : 'rgba(0, 0, 0, 0.25)';
|
|
15878
|
+
}, function (_ref3) {
|
|
15879
|
+
var $active = _ref3.$active;
|
|
15880
|
+
return $active ? '#f59e0b' : 'rgba(255, 255, 255, 0.08)';
|
|
15881
|
+
}, function (_ref4) {
|
|
15882
|
+
var $active = _ref4.$active;
|
|
15883
|
+
return $active ? '#f59e0b' : 'rgba(255, 255, 255, 0.3)';
|
|
15884
|
+
}, function (_ref5) {
|
|
15885
|
+
var $active = _ref5.$active;
|
|
15886
|
+
return $active ? 'rgba(245, 158, 11, 0.18)' : 'rgba(255, 255, 255, 0.04)';
|
|
15887
|
+
}, function (_ref6) {
|
|
15888
|
+
var $active = _ref6.$active;
|
|
15889
|
+
return $active ? '0 0 14px rgba(245, 158, 11, 0.3)' : '0 0 8px rgba(255, 255, 255, 0.05)';
|
|
15890
|
+
});
|
|
15891
|
+
var IconWrap = /*#__PURE__*/styled.span.withConfig({
|
|
15892
|
+
displayName: "RadioSelectCard__IconWrap",
|
|
15893
|
+
componentId: "sc-12jrcz1-1"
|
|
15894
|
+
})(["font-size:1.4rem !important;line-height:1 !important;flex-shrink:0 !important;"]);
|
|
15895
|
+
var Body = /*#__PURE__*/styled.div.withConfig({
|
|
15896
|
+
displayName: "RadioSelectCard__Body",
|
|
15897
|
+
componentId: "sc-12jrcz1-2"
|
|
15898
|
+
})(["flex:1 !important;min-width:0 !important;display:flex !important;flex-direction:column !important;gap:0.2rem !important;"]);
|
|
15899
|
+
var Label$7 = /*#__PURE__*/styled.span.withConfig({
|
|
15900
|
+
displayName: "RadioSelectCard__Label",
|
|
15901
|
+
componentId: "sc-12jrcz1-3"
|
|
15902
|
+
})(["font-size:0.72rem !important;font-weight:bold !important;color:", " !important;text-transform:uppercase !important;letter-spacing:0.8px !important;line-height:1.2 !important;"], function (_ref7) {
|
|
15903
|
+
var $active = _ref7.$active;
|
|
15904
|
+
return $active ? '#f59e0b' : 'rgba(255, 255, 255, 0.9)';
|
|
15905
|
+
});
|
|
15906
|
+
var Description$5 = /*#__PURE__*/styled.span.withConfig({
|
|
15907
|
+
displayName: "RadioSelectCard__Description",
|
|
15908
|
+
componentId: "sc-12jrcz1-4"
|
|
15909
|
+
})(["font-size:0.62rem !important;color:rgba(255,255,255,0.45) !important;line-height:1.4 !important;"]);
|
|
15910
|
+
var Badge = /*#__PURE__*/styled.span.withConfig({
|
|
15911
|
+
displayName: "RadioSelectCard__Badge",
|
|
15912
|
+
componentId: "sc-12jrcz1-5"
|
|
15913
|
+
})(["flex-shrink:0 !important;padding:0.15rem 0.45rem !important;background:", " !important;border:1px solid ", " !important;border-radius:20px !important;font-size:0.55rem !important;font-weight:bold !important;letter-spacing:0.5px !important;text-transform:uppercase !important;color:", " !important;white-space:nowrap !important;"], function (_ref8) {
|
|
15914
|
+
var $active = _ref8.$active;
|
|
15915
|
+
return $active ? 'rgba(245, 158, 11, 0.2)' : 'rgba(255, 255, 255, 0.06)';
|
|
15916
|
+
}, function (_ref9) {
|
|
15917
|
+
var $active = _ref9.$active;
|
|
15918
|
+
return $active ? 'rgba(245, 158, 11, 0.5)' : 'rgba(255, 255, 255, 0.12)';
|
|
15919
|
+
}, function (_ref10) {
|
|
15920
|
+
var $active = _ref10.$active;
|
|
15921
|
+
return $active ? '#f59e0b' : 'rgba(255, 255, 255, 0.45)';
|
|
15922
|
+
});
|
|
15923
|
+
|
|
15846
15924
|
/**
|
|
15847
15925
|
* A selectable row with an amber radio circle indicator.
|
|
15848
15926
|
* Used for single-select option lists throughout the Marketplace UI.
|
|
@@ -16362,7 +16440,7 @@ var SkillInfoModal = function SkillInfoModal(_ref) {
|
|
|
16362
16440
|
"$color": info.color
|
|
16363
16441
|
}, info.name), React.createElement(CloseButton$g, {
|
|
16364
16442
|
onPointerDown: onClose
|
|
16365
|
-
}, React.createElement(FaTimes, null))), React.createElement(Section$4, null, React.createElement(Label$
|
|
16443
|
+
}, React.createElement(FaTimes, null))), React.createElement(Section$4, null, React.createElement(Label$8, null, "What it does"), React.createElement(Text$1, null, info.description)), React.createElement(Section$4, null, React.createElement(Label$8, null, "How to train"), React.createElement(Text$1, null, info.howToTrain)), info.notes && React.createElement(Section$4, null, React.createElement(Label$8, null, "Notes"), React.createElement(Text$1, null, info.notes)))));
|
|
16366
16444
|
};
|
|
16367
16445
|
var Overlay$9 = /*#__PURE__*/styled.div.withConfig({
|
|
16368
16446
|
displayName: "SkillInfoModal__Overlay",
|
|
@@ -16395,7 +16473,7 @@ var Section$4 = /*#__PURE__*/styled.div.withConfig({
|
|
|
16395
16473
|
displayName: "SkillInfoModal__Section",
|
|
16396
16474
|
componentId: "sc-pqkzdj-6"
|
|
16397
16475
|
})(["display:flex;flex-direction:column;gap:6px;"]);
|
|
16398
|
-
var Label$
|
|
16476
|
+
var Label$8 = /*#__PURE__*/styled.span.withConfig({
|
|
16399
16477
|
displayName: "SkillInfoModal__Label",
|
|
16400
16478
|
componentId: "sc-pqkzdj-7"
|
|
16401
16479
|
})(["font-size:0.5rem;font-weight:bold;text-transform:uppercase;letter-spacing:0.05em;color:rgba(255,255,255,0.45);"]);
|
|
@@ -16732,7 +16810,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
16732
16810
|
className: "label"
|
|
16733
16811
|
}, "Required Item:"), React.createElement("div", {
|
|
16734
16812
|
className: "value"
|
|
16735
|
-
}, requiredItem))), React.createElement(Description$
|
|
16813
|
+
}, requiredItem))), React.createElement(Description$6, null, description));
|
|
16736
16814
|
};
|
|
16737
16815
|
var Container$G = /*#__PURE__*/styled.div.withConfig({
|
|
16738
16816
|
displayName: "SpellInfo__Container",
|
|
@@ -16746,7 +16824,7 @@ var Type$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
16746
16824
|
displayName: "SpellInfo__Type",
|
|
16747
16825
|
componentId: "sc-4hbw3q-2"
|
|
16748
16826
|
})(["font-size:", ";margin-top:0.2rem;color:", ";"], uiFonts.size.small, uiColors.lightGray);
|
|
16749
|
-
var Description$
|
|
16827
|
+
var Description$6 = /*#__PURE__*/styled.div.withConfig({
|
|
16750
16828
|
displayName: "SpellInfo__Description",
|
|
16751
16829
|
componentId: "sc-4hbw3q-3"
|
|
16752
16830
|
})(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
|
|
@@ -16979,7 +17057,7 @@ var Spell = function Spell(_ref) {
|
|
|
16979
17057
|
centered: true
|
|
16980
17058
|
})), React.createElement(Info, null, React.createElement(Title$k, null, React.createElement("span", null, name), React.createElement("span", {
|
|
16981
17059
|
className: "spell"
|
|
16982
|
-
}, "(", magicWords, ")")), React.createElement(Description$
|
|
17060
|
+
}, "(", magicWords, ")")), React.createElement(Description$7, null, description)), React.createElement(Divider$2, null), React.createElement(Cost, null, React.createElement("span", null, "Mana cost:"), React.createElement("span", {
|
|
16983
17061
|
className: "mana"
|
|
16984
17062
|
}, manaCost))));
|
|
16985
17063
|
};
|
|
@@ -17002,7 +17080,7 @@ var Title$k = /*#__PURE__*/styled.p.withConfig({
|
|
|
17002
17080
|
displayName: "Spell__Title",
|
|
17003
17081
|
componentId: "sc-j96fa2-3"
|
|
17004
17082
|
})(["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);
|
|
17005
|
-
var Description$
|
|
17083
|
+
var Description$7 = /*#__PURE__*/styled.div.withConfig({
|
|
17006
17084
|
displayName: "Spell__Description",
|
|
17007
17085
|
componentId: "sc-j96fa2-4"
|
|
17008
17086
|
})(["font-size:", " !important;line-height:1.1 !important;"], uiFonts.size.small);
|
|
@@ -39790,7 +39868,7 @@ var StoreRedeemSection = function StoreRedeemSection(_ref) {
|
|
|
39790
39868
|
onClick: handleReset
|
|
39791
39869
|
}))));
|
|
39792
39870
|
}
|
|
39793
|
-
return React.createElement(Container$O, null, React.createElement(Title$p, null, "Redeem a Voucher Code"), React.createElement(Description$
|
|
39871
|
+
return React.createElement(Container$O, null, React.createElement(Title$p, null, "Redeem a Voucher Code"), React.createElement(Description$8, null, "Enter your voucher code below to receive Definya Coins."), React.createElement(InputRow, null, React.createElement(CodeInput, {
|
|
39794
39872
|
type: "text",
|
|
39795
39873
|
value: code,
|
|
39796
39874
|
onChange: function onChange(e) {
|
|
@@ -39821,7 +39899,7 @@ var Title$p = /*#__PURE__*/styled.h3.withConfig({
|
|
|
39821
39899
|
displayName: "StoreRedeemSection__Title",
|
|
39822
39900
|
componentId: "sc-1pzosml-1"
|
|
39823
39901
|
})(["font-family:'Press Start 2P',cursive;font-size:0.85rem;color:", ";margin:0;text-align:center;"], uiColors.white);
|
|
39824
|
-
var Description$
|
|
39902
|
+
var Description$8 = /*#__PURE__*/styled.p.withConfig({
|
|
39825
39903
|
displayName: "StoreRedeemSection__Description",
|
|
39826
39904
|
componentId: "sc-1pzosml-2"
|
|
39827
39905
|
})(["font-family:'Press Start 2P',cursive;font-size:0.55rem;color:", ";margin:0;text-align:center;line-height:1.6;"], uiColors.lightGray);
|
|
@@ -39887,7 +39965,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
39887
39965
|
alt: item.name
|
|
39888
39966
|
})), React.createElement(ItemInfo$3, null, React.createElement(ItemName$9, null, item.name), React.createElement(ItemPrice$2, null, currencySymbol, 'priceUSD' in item ? item.priceUSD : (_item$regionalPrice = item.regionalPrice) != null ? _item$regionalPrice : item.price, item.dcPrice ? React.createElement(React.Fragment, null, ' ', "\xB7 ", React.createElement(MMORPGNumber, {
|
|
39889
39967
|
value: item.dcPrice
|
|
39890
|
-
}), " DC") : ''), React.createElement(Description$
|
|
39968
|
+
}), " DC") : ''), React.createElement(Description$9, null, item.description))), React.createElement(Actions$1, null, React.createElement(CTAButton, {
|
|
39891
39969
|
icon: React.createElement(ShoppingCart, null),
|
|
39892
39970
|
label: "Add to Cart",
|
|
39893
39971
|
onClick: function onClick() {
|
|
@@ -39932,7 +40010,7 @@ var ItemPrice$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
39932
40010
|
displayName: "StoreItemDetails__ItemPrice",
|
|
39933
40011
|
componentId: "sc-k3ho5z-8"
|
|
39934
40012
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#fef08a;"]);
|
|
39935
|
-
var Description$
|
|
40013
|
+
var Description$9 = /*#__PURE__*/styled.p.withConfig({
|
|
39936
40014
|
displayName: "StoreItemDetails__Description",
|
|
39937
40015
|
componentId: "sc-k3ho5z-9"
|
|
39938
40016
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.875rem;line-height:1.6;color:#ffffff;"]);
|
|
@@ -40845,5 +40923,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
40845
40923
|
componentId: "sc-7tgzv2-7"
|
|
40846
40924
|
})(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
|
|
40847
40925
|
|
|
40848
|
-
export { ActionButtons, AsyncDropdown, BLUEPRINTS_PER_PAGE, BUY_ORDERS_PER_PAGE, BlueprintSearchModal, Button, ButtonTypes, BuyOrderPanel, BuyOrderRow, CTAButton, CartView, CharacterDetailModal, CharacterListingForm, CharacterListingModal, CharacterMarketplacePanel, CharacterMarketplaceRows, CharacterSelection, CharacterSkinSelectionModal, CharacterTradePanel, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, ConfirmModal, 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, StoreRedeemSection, 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 };
|
|
40926
|
+
export { ActionButtons, AsyncDropdown, BLUEPRINTS_PER_PAGE, BUY_ORDERS_PER_PAGE, BlueprintSearchModal, Button, ButtonTypes, BuyOrderPanel, BuyOrderRow, CTAButton, CartView, CharacterDetailModal, CharacterListingForm, CharacterListingModal, CharacterMarketplacePanel, CharacterMarketplaceRows, CharacterSelection, CharacterSkinSelectionModal, CharacterTradePanel, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, ConfirmModal, 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, RadioSelectCard, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, StoreBadges, StoreRedeemSection, 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 };
|
|
40849
40927
|
//# sourceMappingURL=long-bow.esm.js.map
|