@ecohouse/ui 0.1.17 → 0.1.18

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/index.d.cts CHANGED
@@ -404,6 +404,8 @@ declare const LanguageSwitcher: react.ForwardRefExoticComponent<LanguageSwitcher
404
404
  interface StatCardProps extends Omit<ViewProps, "style" | "children"> {
405
405
  label: string;
406
406
  icon: IconComponent;
407
+ iconProps?: Omit<IconProps, "size">;
408
+ iconSize?: number;
407
409
  style?: StyleProp<ViewStyle>;
408
410
  className?: string;
409
411
  }
package/dist/index.d.ts CHANGED
@@ -404,6 +404,8 @@ declare const LanguageSwitcher: react.ForwardRefExoticComponent<LanguageSwitcher
404
404
  interface StatCardProps extends Omit<ViewProps, "style" | "children"> {
405
405
  label: string;
406
406
  icon: IconComponent;
407
+ iconProps?: Omit<IconProps, "size">;
408
+ iconSize?: number;
407
409
  style?: StyleProp<ViewStyle>;
408
410
  className?: string;
409
411
  }
package/dist/index.js CHANGED
@@ -2244,7 +2244,16 @@ var styles6 = StyleSheet.create({
2244
2244
  }
2245
2245
  });
2246
2246
  var ICON_SIZE5 = 28;
2247
- var StatCard = forwardRef(function StatCard2({ label, icon: Icon2, style, className, accessibilityLabel, ...rest }, forwardedRef) {
2247
+ var StatCard = forwardRef(function StatCard2({
2248
+ label,
2249
+ icon: Icon2,
2250
+ iconProps,
2251
+ iconSize = ICON_SIZE5,
2252
+ style,
2253
+ className,
2254
+ accessibilityLabel,
2255
+ ...rest
2256
+ }, forwardedRef) {
2248
2257
  const containerRef = useRef(null);
2249
2258
  const resolvedClassName = className?.trim() || void 0;
2250
2259
  const setContainerRef = useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
@@ -2258,7 +2267,7 @@ var StatCard = forwardRef(function StatCard2({ label, icon: Icon2, style, classN
2258
2267
  accessibilityRole: "text",
2259
2268
  accessibilityLabel: accessibilityLabel ?? label,
2260
2269
  children: [
2261
- /* @__PURE__ */ jsx(Icon2, { size: ICON_SIZE5, color: colors.white }),
2270
+ /* @__PURE__ */ jsx(Icon2, { ...iconProps, size: iconSize, color: iconProps?.color ?? colors.white }),
2262
2271
  /* @__PURE__ */ jsx(Text, { style: styles7.label, children: label })
2263
2272
  ]
2264
2273
  }