@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.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/StatCard/StatCard.tsx +14 -3
package/dist/index.cjs
CHANGED
|
@@ -2250,7 +2250,16 @@ var styles6 = reactNative.StyleSheet.create({
|
|
|
2250
2250
|
}
|
|
2251
2251
|
});
|
|
2252
2252
|
var ICON_SIZE5 = 28;
|
|
2253
|
-
var StatCard = react.forwardRef(function StatCard2({
|
|
2253
|
+
var StatCard = react.forwardRef(function StatCard2({
|
|
2254
|
+
label,
|
|
2255
|
+
icon: Icon2,
|
|
2256
|
+
iconProps,
|
|
2257
|
+
iconSize = ICON_SIZE5,
|
|
2258
|
+
style,
|
|
2259
|
+
className,
|
|
2260
|
+
accessibilityLabel,
|
|
2261
|
+
...rest
|
|
2262
|
+
}, forwardedRef) {
|
|
2254
2263
|
const containerRef = react.useRef(null);
|
|
2255
2264
|
const resolvedClassName = className?.trim() || void 0;
|
|
2256
2265
|
const setContainerRef = react.useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
@@ -2264,7 +2273,7 @@ var StatCard = react.forwardRef(function StatCard2({ label, icon: Icon2, style,
|
|
|
2264
2273
|
accessibilityRole: "text",
|
|
2265
2274
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
2266
2275
|
children: [
|
|
2267
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon2, { size:
|
|
2276
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon2, { ...iconProps, size: iconSize, color: iconProps?.color ?? colors.white }),
|
|
2268
2277
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles7.label, children: label })
|
|
2269
2278
|
]
|
|
2270
2279
|
}
|