@xsolla/xui-quest-card 0.138.0 → 0.138.1

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/native/index.js CHANGED
@@ -295,6 +295,9 @@ var Icon = ({ children, color, size }) => {
295
295
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_native3.View, { style, children: childrenWithProps });
296
296
  };
297
297
 
298
+ // ../primitives-native/src/index.tsx
299
+ var isWeb = false;
300
+
298
301
  // src/QuestCard.tsx
299
302
  var import_xui_core = require("@xsolla/xui-core");
300
303
 
@@ -808,7 +811,7 @@ var QuestCard = ({
808
811
  flexDirection: "row",
809
812
  alignItems: "center",
810
813
  overflow: "hidden",
811
- style: import_xui_core.isWeb ? {
814
+ style: isWeb ? {
812
815
  borderRadius: `${CARD_RADIUS}px`,
813
816
  border: hasBorder ? `1px solid ${theme.colors.border.secondary}` : "none",
814
817
  opacity: isDimmed ? 0.48 : 1,
@@ -831,7 +834,7 @@ var QuestCard = ({
831
834
  alignItems: "center",
832
835
  justifyContent: "center",
833
836
  flexShrink: 0,
834
- style: import_xui_core.isWeb ? { position: "relative" } : { position: "relative" },
837
+ style: isWeb ? { position: "relative" } : { position: "relative" },
835
838
  children: [
836
839
  /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(Icon, { size: ICON_SIZE, color: theme.colors.content.primary, children: icon }),
837
840
  showBadge && /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(
@@ -843,7 +846,7 @@ var QuestCard = ({
843
846
  borderRadius: BADGE_SIZE / 2,
844
847
  alignItems: "center",
845
848
  justifyContent: "center",
846
- style: import_xui_core.isWeb ? { position: "absolute", top: -4, right: -4 } : { position: "absolute", top: -4, right: -4 },
849
+ style: isWeb ? { position: "absolute", top: -4, right: -4 } : { position: "absolute", top: -4, right: -4 },
847
850
  children: /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(Icon, { size: BADGE_ICON_SIZE, color: "#ffffff", children: /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(Lightning, {}) })
848
851
  }
849
852
  )
@@ -867,7 +870,7 @@ var QuestCard = ({
867
870
  lineHeight: TITLE_LINE_HEIGHT,
868
871
  fontWeight: "400",
869
872
  numberOfLines: 1,
870
- style: import_xui_core.isWeb ? {
873
+ style: isWeb ? {
871
874
  overflow: "hidden",
872
875
  textOverflow: "ellipsis",
873
876
  whiteSpace: "nowrap"
@@ -883,7 +886,7 @@ var QuestCard = ({
883
886
  lineHeight: BODY_LINE_HEIGHT,
884
887
  fontWeight: "400",
885
888
  numberOfLines: 1,
886
- style: import_xui_core.isWeb ? {
889
+ style: isWeb ? {
887
890
  overflow: "hidden",
888
891
  textOverflow: "ellipsis",
889
892
  whiteSpace: "nowrap"
@@ -899,7 +902,7 @@ var QuestCard = ({
899
902
  lineHeight: BODY_LINE_HEIGHT,
900
903
  fontWeight: "400",
901
904
  numberOfLines: 1,
902
- style: import_xui_core.isWeb ? {
905
+ style: isWeb ? {
903
906
  overflow: "hidden",
904
907
  textOverflow: "ellipsis",
905
908
  whiteSpace: "nowrap",