@rpg-engine/long-bow 0.8.173 → 0.8.175
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/long-bow.cjs.development.js +19 -19
- 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 +19 -19
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Store/CartView.tsx +47 -25
- package/src/components/Store/Store.tsx +2 -2
- package/src/components/Store/TrustBar.tsx +2 -0
- package/src/components/shared/ScrollableContent/ScrollableContent.tsx +1 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -69628,11 +69628,11 @@ var TrustBar = function TrustBar(_ref) {
|
|
|
69628
69628
|
var Bar = /*#__PURE__*/styled.div.withConfig({
|
|
69629
69629
|
displayName: "TrustBar__Bar",
|
|
69630
69630
|
componentId: "sc-mvuqvo-0"
|
|
69631
|
-
})(["display:flex;align-items:center;justify-content:center;gap:1.25rem;padding:0.6rem 1rem;background:rgba(74,222,128,0.06);border:1px solid rgba(74,222,128,0.2);border-radius:4px;@media (max-width:950px){flex-wrap:wrap;gap:0.6rem;}"]);
|
|
69631
|
+
})(["display:flex;align-items:center;justify-content:center;gap:1.25rem;padding:0.6rem 1rem;background:rgba(74,222,128,0.06);border:1px solid rgba(74,222,128,0.2);border-radius:4px;@media (max-width:950px){flex-wrap:wrap;gap:0.6rem;padding:0.6rem;}"]);
|
|
69632
69632
|
var Signal = /*#__PURE__*/styled.div.withConfig({
|
|
69633
69633
|
displayName: "TrustBar__Signal",
|
|
69634
69634
|
componentId: "sc-mvuqvo-1"
|
|
69635
|
-
})(["display:flex;align-items:center;gap:0.35rem;"]);
|
|
69635
|
+
})(["display:flex;align-items:center;gap:0.35rem;justify-content:center;"]);
|
|
69636
69636
|
var SignalIcon = /*#__PURE__*/styled.span.withConfig({
|
|
69637
69637
|
displayName: "TrustBar__SignalIcon",
|
|
69638
69638
|
componentId: "sc-mvuqvo-2"
|
|
@@ -69897,9 +69897,9 @@ var CartView = function CartView(_ref2) {
|
|
|
69897
69897
|
atlasJSON: cartItem.item.metadataType === MetadataType.CharacterSkin ? characterAtlasJSON : atlasJSON,
|
|
69898
69898
|
atlasIMG: cartItem.item.metadataType === MetadataType.CharacterSkin ? img$a : atlasIMG,
|
|
69899
69899
|
spriteKey: cartItem.item.metadataType === MetadataType.CharacterSkin && (_cartItem$metadata = cartItem.metadata) != null && _cartItem$metadata.selectedSkinTextureKey ? getSpriteKey(cartItem.metadata.selectedSkinTextureKey) : cartItem.item.texturePath,
|
|
69900
|
-
width:
|
|
69901
|
-
height:
|
|
69902
|
-
imgScale:
|
|
69900
|
+
width: 24,
|
|
69901
|
+
height: 24,
|
|
69902
|
+
imgScale: 1.5,
|
|
69903
69903
|
centered: true
|
|
69904
69904
|
})), React.createElement(ItemDetails$3, null, React.createElement(ItemName$5, null, cartItem.item.name), ((_cartItem$metadata2 = cartItem.metadata) == null ? void 0 : _cartItem$metadata2.inputValue) && React.createElement(CartMeta, null, cartItem.metadata.inputValue), React.createElement(ItemInfo$2, null, React.createElement("span", null, "$", formatPrice(cartItem.item.price)), React.createElement("span", null, "\xD7"), React.createElement("span", null, cartItem.quantity), React.createElement("span", null, "="), React.createElement("span", null, "$", formatPrice(cartItem.item.price * cartItem.quantity))), cartItem.metadata && cartItem.item.metadataType && React.createElement(MetadataDisplay, {
|
|
69905
69905
|
type: cartItem.item.metadataType,
|
|
@@ -69928,7 +69928,7 @@ var CartView = function CartView(_ref2) {
|
|
|
69928
69928
|
var Container$M = /*#__PURE__*/styled.div.withConfig({
|
|
69929
69929
|
displayName: "CartView__Container",
|
|
69930
69930
|
componentId: "sc-ydtyl1-0"
|
|
69931
|
-
})(["display:flex;flex-direction:column;width:100%;
|
|
69931
|
+
})(["display:flex;flex-direction:column;width:100%;gap:1rem;padding:1rem;"]);
|
|
69932
69932
|
var Header$d = /*#__PURE__*/styled.div.withConfig({
|
|
69933
69933
|
displayName: "CartView__Header",
|
|
69934
69934
|
componentId: "sc-ydtyl1-1"
|
|
@@ -69944,7 +69944,7 @@ var CloseButton$e = /*#__PURE__*/styled.div.withConfig({
|
|
|
69944
69944
|
var CartItems = /*#__PURE__*/styled.div.withConfig({
|
|
69945
69945
|
displayName: "CartView__CartItems",
|
|
69946
69946
|
componentId: "sc-ydtyl1-4"
|
|
69947
|
-
})(["display:flex;flex-direction:column;gap:
|
|
69947
|
+
})(["display:flex;flex-direction:column;gap:0.5rem;overflow-y:auto;max-height:250px;padding-right:0.5rem;&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-track{background:rgba(0,0,0,0.2);border-radius:4px;}&::-webkit-scrollbar-thumb{background:#f59e0b;border-radius:4px;&:hover{background:#fbbf24;}}"]);
|
|
69948
69948
|
var EmptyCart = /*#__PURE__*/styled.div.withConfig({
|
|
69949
69949
|
displayName: "CartView__EmptyCart",
|
|
69950
69950
|
componentId: "sc-ydtyl1-5"
|
|
@@ -69952,11 +69952,11 @@ var EmptyCart = /*#__PURE__*/styled.div.withConfig({
|
|
|
69952
69952
|
var CartItemRow = /*#__PURE__*/styled.div.withConfig({
|
|
69953
69953
|
displayName: "CartView__CartItemRow",
|
|
69954
69954
|
componentId: "sc-ydtyl1-6"
|
|
69955
|
-
})(["display:flex;align-items:center;gap:
|
|
69955
|
+
})(["display:flex;align-items:center;gap:0.75rem;padding:0.5rem 0.75rem;background:rgba(0,0,0,0.2);border-radius:4px;"]);
|
|
69956
69956
|
var ItemIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
69957
69957
|
displayName: "CartView__ItemIconContainer",
|
|
69958
69958
|
componentId: "sc-ydtyl1-7"
|
|
69959
|
-
})(["width:
|
|
69959
|
+
})(["width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:2px;"]);
|
|
69960
69960
|
var ItemDetails$3 = /*#__PURE__*/styled.div.withConfig({
|
|
69961
69961
|
displayName: "CartView__ItemDetails",
|
|
69962
69962
|
componentId: "sc-ydtyl1-8"
|
|
@@ -69964,15 +69964,15 @@ var ItemDetails$3 = /*#__PURE__*/styled.div.withConfig({
|
|
|
69964
69964
|
var ItemName$5 = /*#__PURE__*/styled.div.withConfig({
|
|
69965
69965
|
displayName: "CartView__ItemName",
|
|
69966
69966
|
componentId: "sc-ydtyl1-9"
|
|
69967
|
-
})(["font-family:'Press Start 2P',cursive;font-size:0.
|
|
69967
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:#ffffff;"]);
|
|
69968
69968
|
var ItemInfo$2 = /*#__PURE__*/styled.div.withConfig({
|
|
69969
69969
|
displayName: "CartView__ItemInfo",
|
|
69970
69970
|
componentId: "sc-ydtyl1-10"
|
|
69971
|
-
})(["display:flex;align-items:center;gap:0.
|
|
69971
|
+
})(["display:flex;align-items:center;gap:0.4rem;font-family:'Press Start 2P',cursive;font-size:0.55rem;color:#fef08a;"]);
|
|
69972
69972
|
var Footer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
69973
69973
|
displayName: "CartView__Footer",
|
|
69974
69974
|
componentId: "sc-ydtyl1-11"
|
|
69975
|
-
})(["display:flex;flex-direction:column;gap:
|
|
69975
|
+
})(["display:flex;flex-direction:column;gap:1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,0.1);flex-shrink:0;@media (max-width:600px){gap:0.75rem;padding-top:0.75rem;}"]);
|
|
69976
69976
|
var TotalInfo = /*#__PURE__*/styled.div.withConfig({
|
|
69977
69977
|
displayName: "CartView__TotalInfo",
|
|
69978
69978
|
componentId: "sc-ydtyl1-12"
|
|
@@ -69998,11 +69998,11 @@ var PaymentMethodRow = /*#__PURE__*/styled.div.withConfig({
|
|
|
69998
69998
|
var DCNudge = /*#__PURE__*/styled.div.withConfig({
|
|
69999
69999
|
displayName: "CartView__DCNudge",
|
|
70000
70000
|
componentId: "sc-ydtyl1-16"
|
|
70001
|
-
})(["display:flex;align-items:center;gap:0.5rem;padding:0.5rem 0.75rem;background:rgba(245,158,11,0.1);border:1px solid rgba(245,158,11,0.3);border-radius:4px;cursor:pointer;font-family:'Press Start 2P',cursive;font-size:0.45rem;color:#fbbf24;transition:background 0.15s;&:hover{background:rgba(245,158,11,0.18);}svg{flex-shrink:0;font-size:0.7rem;}span{flex:1;}"]);
|
|
70001
|
+
})(["display:flex;align-items:center;gap:0.5rem;padding:0.5rem 0.75rem;background:rgba(245,158,11,0.1);border:1px solid rgba(245,158,11,0.3);border-radius:4px;cursor:pointer;font-family:'Press Start 2P',cursive;font-size:0.45rem;color:#fbbf24;transition:background 0.15s;line-height:1.4;flex-wrap:wrap;&:hover{background:rgba(245,158,11,0.18);}svg{flex-shrink:0;font-size:0.7rem;}span{flex:1;min-width:140px;}"]);
|
|
70002
70002
|
var DCNudgeLink = /*#__PURE__*/styled.span.withConfig({
|
|
70003
70003
|
displayName: "CartView__DCNudgeLink",
|
|
70004
70004
|
componentId: "sc-ydtyl1-17"
|
|
70005
|
-
})(["color:#f59e0b;white-space:nowrap;text-decoration:underline;"]);
|
|
70005
|
+
})(["color:#f59e0b;white-space:nowrap;text-decoration:underline;flex:0 0 auto !important;"]);
|
|
70006
70006
|
var ErrorMessage$2 = /*#__PURE__*/styled.div.withConfig({
|
|
70007
70007
|
displayName: "CartView__ErrorMessage",
|
|
70008
70008
|
componentId: "sc-ydtyl1-18"
|
|
@@ -70010,7 +70010,7 @@ var ErrorMessage$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
70010
70010
|
var MetadataInfo = /*#__PURE__*/styled.div.withConfig({
|
|
70011
70011
|
displayName: "CartView__MetadataInfo",
|
|
70012
70012
|
componentId: "sc-ydtyl1-19"
|
|
70013
|
-
})(["display:flex;align-items:center;margin-top:0.
|
|
70013
|
+
})(["display:flex;align-items:center;margin-top:0.25rem;gap:0.4rem;font-size:0.55rem;color:#a3e635;background:rgba(163,230,53,0.1);padding:0.2rem 0.4rem;border-radius:4px;"]);
|
|
70014
70014
|
var MetadataLabel = /*#__PURE__*/styled.div.withConfig({
|
|
70015
70015
|
displayName: "CartView__MetadataLabel",
|
|
70016
70016
|
componentId: "sc-ydtyl1-20"
|
|
@@ -70022,7 +70022,7 @@ var MetadataValue = /*#__PURE__*/styled.div.withConfig({
|
|
|
70022
70022
|
var CartMeta = /*#__PURE__*/styled.div.withConfig({
|
|
70023
70023
|
displayName: "CartView__CartMeta",
|
|
70024
70024
|
componentId: "sc-ydtyl1-22"
|
|
70025
|
-
})(["font-family:'Press Start 2P',cursive;font-size:0.
|
|
70025
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.55rem;color:#ffffff;opacity:0.8;margin-top:0.25rem;"]);
|
|
70026
70026
|
|
|
70027
70027
|
function calcTimeLeft(endsAt) {
|
|
70028
70028
|
var diff = new Date(endsAt).getTime() - Date.now();
|
|
@@ -70702,7 +70702,7 @@ var StyledDropdown$7 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
|
70702
70702
|
var Content$4 = /*#__PURE__*/styled.div.withConfig({
|
|
70703
70703
|
displayName: "ScrollableContent__Content",
|
|
70704
70704
|
componentId: "sc-xhh2um-7"
|
|
70705
|
-
})(["display:flex;flex-direction:column;gap:0.5rem;flex:1;padding:1rem;max-height:", ";overflow-y:auto;overflow-x:hidden;&.grid{display:grid;grid-template-columns:repeat( ", ",minmax(0,1fr) );gap:1rem;align-items:start;.ScrollableContent-item{display:flex;align-items:flex-start;}}&.list{display:flex;flex-direction:column;gap:0.5rem;}"], function (props) {
|
|
70705
|
+
})(["display:flex;flex-direction:column;gap:0.5rem;flex:1;padding:1rem;max-height:", ";overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;&.grid{display:grid;grid-template-columns:repeat( ", ",minmax(0,1fr) );gap:1rem;align-items:start;.ScrollableContent-item{display:flex;align-items:flex-start;}}&.list{display:flex;flex-direction:column;gap:0.5rem;}"], function (props) {
|
|
70706
70706
|
return props.$maxHeight;
|
|
70707
70707
|
}, function (props) {
|
|
70708
70708
|
return props.$gridColumns;
|
|
@@ -72154,11 +72154,11 @@ var Container$P = /*#__PURE__*/styled.div.withConfig({
|
|
|
72154
72154
|
var HeaderRow = /*#__PURE__*/styled.div.withConfig({
|
|
72155
72155
|
displayName: "Store__HeaderRow",
|
|
72156
72156
|
componentId: "sc-64dj00-1"
|
|
72157
|
-
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.25rem;"]);
|
|
72157
|
+
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.25rem;padding-top:10px;padding-right:12px;"]);
|
|
72158
72158
|
var CartButtonWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
72159
72159
|
displayName: "Store__CartButtonWrapper",
|
|
72160
72160
|
componentId: "sc-64dj00-2"
|
|
72161
|
-
})(["position:relative;
|
|
72161
|
+
})(["position:relative;"]);
|
|
72162
72162
|
var CartBadge = /*#__PURE__*/styled.div.withConfig({
|
|
72163
72163
|
displayName: "Store__CartBadge",
|
|
72164
72164
|
componentId: "sc-64dj00-3"
|