@loczer/storefront-sdk 0.225.0 → 0.226.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,20 +1,21 @@
1
1
  import { formatContractSaleDocumentLegalLabel as e } from "./language.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import { useTranslation as r } from "react-i18next";
4
+ import { cn as i } from "@rpcbase/ui";
4
5
  //#region src/components/ContractSaleDocument/PageHeader.tsx
5
- function i({ documentTitle: i, saleDocumentNumber: a, currentPage: o, totalPages: s, documentLanguage: c }) {
6
- let { t: l } = r(), u = e(l, c, "docs_contract_sale_page_counter", {
7
- current_page: o,
8
- total_pages: s
6
+ function a({ documentTitle: a, saleDocumentNumber: o, currentPage: s, totalPages: c, documentLanguage: l, compact: u = !1 }) {
7
+ let { t: d } = r(), f = e(d, l, "docs_contract_sale_page_counter", {
8
+ current_page: s,
9
+ total_pages: c
9
10
  });
10
11
  return /* @__PURE__ */ n("div", {
11
- className: "sticky top-0 z-10 mb-8 flex items-center justify-between border-b border-border bg-card/95 px-4 pb-4 pt-4 text-sm text-muted-foreground backdrop-blur md:px-8",
12
+ className: i("sticky top-0 z-10 flex items-center justify-between border-b border-border bg-card/95 px-4 text-sm text-muted-foreground backdrop-blur md:px-8", u ? "mb-4 py-3" : "mb-8 pb-4 pt-4"),
12
13
  children: [/* @__PURE__ */ n("span", { children: [
13
- i,
14
+ a,
14
15
  " #",
15
- a
16
- ] }), s > 1 && /* @__PURE__ */ t("span", { children: u })]
16
+ o
17
+ ] }), c > 1 && /* @__PURE__ */ t("span", { children: f })]
17
18
  });
18
19
  }
19
20
  //#endregion
20
- export { i as PageHeader };
21
+ export { a as PageHeader };