@xsolla/xui-quest-card 0.127.0 → 0.129.0

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.
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
+ import { ThemeOverrideProps } from '@xsolla/xui-core';
2
3
 
3
4
  /** @deprecated Use `QuestCardState` instead. */
4
5
  type QuestCardStatus = "default" | "alert" | "warning" | "success";
5
6
  type QuestCardState = "default" | "completed" | "expired" | "expiring";
6
- interface QuestCardProps {
7
+ interface QuestCardProps extends ThemeOverrideProps {
7
8
  /** Quest title text */
8
9
  title: string;
9
10
  /** Secondary description text displayed below the title */
package/native/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
+ import { ThemeOverrideProps } from '@xsolla/xui-core';
2
3
 
3
4
  /** @deprecated Use `QuestCardState` instead. */
4
5
  type QuestCardStatus = "default" | "alert" | "warning" | "success";
5
6
  type QuestCardState = "default" | "completed" | "expired" | "expiring";
6
- interface QuestCardProps {
7
+ interface QuestCardProps extends ThemeOverrideProps {
7
8
  /** Quest title text */
8
9
  title: string;
9
10
  /** Secondary description text displayed below the title */
package/native/index.js CHANGED
@@ -77,6 +77,10 @@ var Box = ({
77
77
  left,
78
78
  right,
79
79
  width,
80
+ minWidth,
81
+ minHeight,
82
+ maxWidth,
83
+ maxHeight,
80
84
  flex,
81
85
  overflow,
82
86
  zIndex,
@@ -108,6 +112,10 @@ var Box = ({
108
112
  zIndex,
109
113
  height,
110
114
  width,
115
+ minWidth,
116
+ minHeight,
117
+ maxWidth,
118
+ maxHeight,
111
119
  padding,
112
120
  paddingHorizontal,
113
121
  paddingVertical,
@@ -236,7 +244,7 @@ var Text = ({
236
244
  }
237
245
  const incomingStyle = import_react_native2.StyleSheet.flatten(styleProp);
238
246
  const baseStyle = {
239
- color,
247
+ color: color ?? incomingStyle?.color,
240
248
  fontSize: typeof fontSize === "number" ? fontSize : void 0,
241
249
  fontWeight,
242
250
  fontFamily: resolvedFontFamily,
@@ -769,9 +777,11 @@ var QuestCard = ({
769
777
  // deprecated
770
778
  subtitle,
771
779
  status,
772
- statusIcon
780
+ statusIcon,
781
+ themeMode,
782
+ themeProductContext
773
783
  }) => {
774
- const { theme } = (0, import_xui_core.useDesignSystem)();
784
+ const { theme } = (0, import_xui_core.useResolvedTheme)({ themeMode, themeProductContext });
775
785
  if (subtitle !== void 0 && description === void 0) {
776
786
  warnDeprecated("subtitle", "description");
777
787
  }