@ttoss/react-dashboard 0.2.0 → 0.2.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/dist/esm/index.js CHANGED
@@ -142,7 +142,6 @@ var getTrendColor = /* @__PURE__ */__name(status => {
142
142
  var BigNumber = /* @__PURE__ */__name(props => {
143
143
  const total = props.data.meta?.total ?? props.data.api?.total ?? void 0;
144
144
  const formattedValue = formatNumber(total, props.numberType, props.numberDecimalPlaces);
145
- const displayValue = props.numberType === "number" && props.title.toLowerCase().includes("roas") ? `${formattedValue}x` : formattedValue;
146
145
  const valueColor = getValueColor(props.color, props.variant);
147
146
  const variant = props.variant || "default";
148
147
  return /* @__PURE__ */React.createElement(CardWrapper, {
@@ -161,7 +160,7 @@ var BigNumber = /* @__PURE__ */__name(props => {
161
160
  fontWeight: "bold",
162
161
  lineHeight: "1.2"
163
162
  }
164
- }, displayValue), props.trend && /* @__PURE__ */React.createElement(Flex2, {
163
+ }, formattedValue), props.trend && /* @__PURE__ */React.createElement(Flex2, {
165
164
  sx: {
166
165
  alignItems: "center",
167
166
  gap: "1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/react-dashboard",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "ttoss dashboard module for React apps.",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -27,8 +27,8 @@
27
27
  "react-day-picker": "^9.11.3",
28
28
  "react-grid-layout": "^1.5.2",
29
29
  "@ttoss/components": "^2.12.4",
30
- "@ttoss/forms": "^0.38.0",
31
30
  "@ttoss/react-i18n": "^2.0.25",
31
+ "@ttoss/forms": "^0.38.0",
32
32
  "@ttoss/react-icons": "^0.5.6",
33
33
  "@ttoss/ui": "^6.5.0"
34
34
  },