@octaviaflow/core 3.0.18-beta.38 → 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.
@@ -11,6 +11,10 @@ export interface PageHeaderProps {
11
11
  actions?: ReactNode;
12
12
  meta?: ReactNode;
13
13
  className?: string;
14
+ /** Render a divider below the header. Default true. Set false when the
15
+ * PageHeader sits flush with a master/detail body that owns its own
16
+ * visual seam (e.g., split panes, sticky toolbars). */
17
+ divider?: boolean;
14
18
  }
15
- export declare function PageHeader({ title, description, breadcrumbs, actions, meta, className, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function PageHeader({ title, description, breadcrumbs, actions, meta, className, divider, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
16
20
  //# sourceMappingURL=PageHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACrC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,WAAW,EACX,WAAW,EACX,OAAO,EACP,IAAI,EACJ,SAAS,GACV,EAAE,eAAe,2CAyCjB"}
1
+ {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACrC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;4DAEwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,WAAW,EACX,WAAW,EACX,OAAO,EACP,IAAI,EACJ,SAAS,EACT,OAAc,GACf,EAAE,eAAe,2CA+CjB"}
package/dist/index.cjs CHANGED
@@ -19038,29 +19038,40 @@ function PageHeader({
19038
19038
  breadcrumbs,
19039
19039
  actions,
19040
19040
  meta,
19041
- className
19041
+ className,
19042
+ divider = true
19042
19043
  }) {
19043
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("header", { className: cn("ods-page-header", className), children: [
19044
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "ods-page-header__main", children: [
19045
- breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("nav", { className: "ods-page-header__crumbs", "aria-label": "Breadcrumb", children: breadcrumbs.map((c, i) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("span", { className: "ods-page-header__crumb", children: [
19046
- c.href ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("a", { href: c.href, onClick: c.onClick, children: c.label }) : c.onClick ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("button", { type: "button", onClick: c.onClick, children: c.label }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: c.label }),
19047
- i < breadcrumbs.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
19048
- "path",
19049
- {
19050
- d: "m4.5 3 3 3-3 3",
19051
- stroke: "currentColor",
19052
- strokeWidth: "1.4",
19053
- strokeLinecap: "round",
19054
- strokeLinejoin: "round"
19055
- }
19056
- ) })
19057
- ] }, i)) }),
19058
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("h1", { className: "ods-page-header__title", children: title }),
19059
- description && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "ods-page-header__description", children: description }),
19060
- meta && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "ods-page-header__meta", children: meta })
19061
- ] }),
19062
- actions && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "ods-page-header__actions", children: actions })
19063
- ] });
19044
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
19045
+ "header",
19046
+ {
19047
+ className: cn(
19048
+ "ods-page-header",
19049
+ !divider && "ods-page-header--no-divider",
19050
+ className
19051
+ ),
19052
+ children: [
19053
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "ods-page-header__main", children: [
19054
+ breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("nav", { className: "ods-page-header__crumbs", "aria-label": "Breadcrumb", children: breadcrumbs.map((c, i) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("span", { className: "ods-page-header__crumb", children: [
19055
+ c.href ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("a", { href: c.href, onClick: c.onClick, children: c.label }) : c.onClick ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("button", { type: "button", onClick: c.onClick, children: c.label }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: c.label }),
19056
+ i < breadcrumbs.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
19057
+ "path",
19058
+ {
19059
+ d: "m4.5 3 3 3-3 3",
19060
+ stroke: "currentColor",
19061
+ strokeWidth: "1.4",
19062
+ strokeLinecap: "round",
19063
+ strokeLinejoin: "round"
19064
+ }
19065
+ ) })
19066
+ ] }, i)) }),
19067
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("h1", { className: "ods-page-header__title", children: title }),
19068
+ description && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "ods-page-header__description", children: description }),
19069
+ meta && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "ods-page-header__meta", children: meta })
19070
+ ] }),
19071
+ actions && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "ods-page-header__actions", children: actions })
19072
+ ]
19073
+ }
19074
+ );
19064
19075
  }
19065
19076
 
19066
19077
  // src/components/Pagination/Pagination.tsx