@fluid-app/portal-sdk 0.1.388 → 0.1.389

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.
@@ -55,6 +55,6 @@ require("./translation-adapter-B4lyFC8D.cjs");
55
55
  require("./translation-adapter-B2lZnxOW.cjs");
56
56
  require("./ScreenHeaderContext-Ctj2-eLn.cjs");
57
57
  require("./display-Bbu9dVv-.cjs");
58
- const require_OrdersScreen = require("./OrdersScreen-DDZw9Irw.cjs");
58
+ const require_OrdersScreen = require("./OrdersScreen-CrJ1zwId.cjs");
59
59
  exports.OrdersScreen = require_OrdersScreen.OrdersScreen;
60
60
  exports.ordersScreenPropertySchema = require_OrdersScreen.ordersScreenPropertySchema;
@@ -1304,6 +1304,25 @@ function ItemsSection({ order, onSubscriptionClick }) {
1304
1304
  label: t("tax"),
1305
1305
  value: moneyDisplay(order.tax_in_currency, order.tax)
1306
1306
  }),
1307
+ order.points_applied != null && order.points_applied > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1308
+ className: "flex items-center justify-between text-sm",
1309
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
1310
+ className: "text-muted-foreground",
1311
+ children: [t("points_applied"), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
1312
+ className: "ml-1 text-xs",
1313
+ children: [
1314
+ "(",
1315
+ order.points_applied.toLocaleString(),
1316
+ " ",
1317
+ order.points_applied === 1 ? t("points_applied_singular") : t("points_applied_plural"),
1318
+ ")"
1319
+ ]
1320
+ })]
1321
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1322
+ className: "text-foreground",
1323
+ children: asNegative(moneyDisplay(order.points_applied_amount_in_currency ?? null, String(order.points_applied_amount ?? 0)))
1324
+ })]
1325
+ }),
1307
1326
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1308
1327
  className: "mt-2 flex items-center justify-between text-base font-medium",
1309
1328
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
@@ -1583,4 +1602,4 @@ Object.defineProperty(exports, "ordersScreenPropertySchema", {
1583
1602
  }
1584
1603
  });
1585
1604
 
1586
- //# sourceMappingURL=OrdersScreen-DDZw9Irw.cjs.map
1605
+ //# sourceMappingURL=OrdersScreen-CrJ1zwId.cjs.map