@octaviaflow/core 3.0.18-beta.37 → 3.0.18-beta.39
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/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +5 -1
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/index.cjs +33 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +33 -22
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18864,29 +18864,40 @@ function PageHeader({
|
|
|
18864
18864
|
breadcrumbs,
|
|
18865
18865
|
actions,
|
|
18866
18866
|
meta,
|
|
18867
|
-
className
|
|
18867
|
+
className,
|
|
18868
|
+
divider = true
|
|
18868
18869
|
}) {
|
|
18869
|
-
return /* @__PURE__ */ jsxs71(
|
|
18870
|
-
|
|
18871
|
-
|
|
18872
|
-
|
|
18873
|
-
|
|
18874
|
-
|
|
18875
|
-
|
|
18876
|
-
|
|
18877
|
-
|
|
18878
|
-
|
|
18879
|
-
|
|
18880
|
-
|
|
18881
|
-
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18885
|
-
|
|
18886
|
-
|
|
18887
|
-
|
|
18888
|
-
|
|
18889
|
-
|
|
18870
|
+
return /* @__PURE__ */ jsxs71(
|
|
18871
|
+
"header",
|
|
18872
|
+
{
|
|
18873
|
+
className: cn(
|
|
18874
|
+
"ods-page-header",
|
|
18875
|
+
!divider && "ods-page-header--no-divider",
|
|
18876
|
+
className
|
|
18877
|
+
),
|
|
18878
|
+
children: [
|
|
18879
|
+
/* @__PURE__ */ jsxs71("div", { className: "ods-page-header__main", children: [
|
|
18880
|
+
breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx73("nav", { className: "ods-page-header__crumbs", "aria-label": "Breadcrumb", children: breadcrumbs.map((c, i) => /* @__PURE__ */ jsxs71("span", { className: "ods-page-header__crumb", children: [
|
|
18881
|
+
c.href ? /* @__PURE__ */ jsx73("a", { href: c.href, onClick: c.onClick, children: c.label }) : c.onClick ? /* @__PURE__ */ jsx73("button", { type: "button", onClick: c.onClick, children: c.label }) : /* @__PURE__ */ jsx73("span", { children: c.label }),
|
|
18882
|
+
i < breadcrumbs.length - 1 && /* @__PURE__ */ jsx73("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx73(
|
|
18883
|
+
"path",
|
|
18884
|
+
{
|
|
18885
|
+
d: "m4.5 3 3 3-3 3",
|
|
18886
|
+
stroke: "currentColor",
|
|
18887
|
+
strokeWidth: "1.4",
|
|
18888
|
+
strokeLinecap: "round",
|
|
18889
|
+
strokeLinejoin: "round"
|
|
18890
|
+
}
|
|
18891
|
+
) })
|
|
18892
|
+
] }, i)) }),
|
|
18893
|
+
/* @__PURE__ */ jsx73("h1", { className: "ods-page-header__title", children: title }),
|
|
18894
|
+
description && /* @__PURE__ */ jsx73("p", { className: "ods-page-header__description", children: description }),
|
|
18895
|
+
meta && /* @__PURE__ */ jsx73("div", { className: "ods-page-header__meta", children: meta })
|
|
18896
|
+
] }),
|
|
18897
|
+
actions && /* @__PURE__ */ jsx73("div", { className: "ods-page-header__actions", children: actions })
|
|
18898
|
+
]
|
|
18899
|
+
}
|
|
18900
|
+
);
|
|
18890
18901
|
}
|
|
18891
18902
|
|
|
18892
18903
|
// src/components/Pagination/Pagination.tsx
|