@cnc-ti/layout-basic 8.3.2 → 8.3.3

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/index.mjs CHANGED
@@ -9512,50 +9512,44 @@ var AnimatedCollapsibleContent = ({
9512
9512
  };
9513
9513
 
9514
9514
  // src/components/molecules/display/page-header.tsx
9515
- import { Fragment as Fragment8, jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
9515
+ import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
9516
9516
  function PageHeader({
9517
+ children,
9518
+ className
9519
+ }) {
9520
+ return /* @__PURE__ */ jsx29(
9521
+ "header",
9522
+ {
9523
+ className: cn(
9524
+ "cnc-w-full cnc-flex cnc-items-center cnc-justify-between cnc-p-8 cnc-bg-brand-blue-50 cnc-border-b-2 cnc-border-brand-blue-60",
9525
+ className
9526
+ ),
9527
+ children
9528
+ }
9529
+ );
9530
+ }
9531
+ function PageHeaderTitleContent({
9532
+ children,
9533
+ className
9534
+ }) {
9535
+ return /* @__PURE__ */ jsx29("div", { className: "cnc-flex cnc-flex-col cnc-gap-2", children: /* @__PURE__ */ jsx29("div", { className: cn("cnc-flex cnc-items-start cnc-gap-2", className), children }) });
9536
+ }
9537
+ function PageHeaderTitle({
9517
9538
  title,
9518
9539
  description,
9519
- actions,
9520
- titleAs = "h1",
9521
- showGoBack = false
9540
+ titleAs = "h1"
9522
9541
  }) {
9523
9542
  const ComponentTitle = titleAs;
9524
- return /* @__PURE__ */ jsx29(Fragment8, { children: title && /* @__PURE__ */ jsxs12("header", { className: "cnc-w-full cnc-flex cnc-items-center cnc-justify-between cnc-p-8 cnc-bg-brand-blue-50 cnc-border-b-2 cnc-border-brand-blue-60", children: [
9525
- /* @__PURE__ */ jsx29("div", { className: "cnc-flex cnc-flex-col cnc-gap-2", children: /* @__PURE__ */ jsxs12("div", { className: "cnc-flex cnc-items-start cnc-gap-2", children: [
9526
- showGoBack && /* @__PURE__ */ jsx29(
9527
- "button",
9528
- {
9529
- className: "cnc-mt-1 hover:cnc-opacity-60",
9530
- onClick: () => window.history.back(),
9531
- children: /* @__PURE__ */ jsx29(
9532
- "svg",
9533
- {
9534
- xmlns: "http://www.w3.org/2000/svg",
9535
- className: "cnc-w-6 cnc-h-6 cnc-text-[#1F2C4D]",
9536
- fill: "none",
9537
- viewBox: "0 0 24 24",
9538
- strokeWidth: 1.5,
9539
- stroke: "currentColor",
9540
- children: /* @__PURE__ */ jsx29(
9541
- "path",
9542
- {
9543
- strokeLinecap: "round",
9544
- strokeLinejoin: "round",
9545
- d: "M15.75 19.5 8.25 12l7.5-7.5"
9546
- }
9547
- )
9548
- }
9549
- )
9550
- }
9551
- ),
9552
- /* @__PURE__ */ jsxs12("div", { children: [
9553
- /* @__PURE__ */ jsx29(ComponentTitle, { className: "cnc-text-2xl cnc-leading-8 cnc-font-semibold cnc-text-brand-blue-600", children: title }),
9554
- description && /* @__PURE__ */ jsx29("p", { className: "cnc-text-brand-gray-500 cnc-leading-4", children: description })
9555
- ] })
9556
- ] }) }),
9557
- actions && /* @__PURE__ */ jsx29("div", { className: "cnc-flex cnc-gap-4", children: actions })
9558
- ] }) });
9543
+ return /* @__PURE__ */ jsxs12("div", { children: [
9544
+ /* @__PURE__ */ jsx29(ComponentTitle, { className: "cnc-text-2xl cnc-leading-8 cnc-font-semibold cnc-text-brand-blue-600", children: title }),
9545
+ description && /* @__PURE__ */ jsx29("p", { className: "cnc-text-brand-gray-500 cnc-leading-4", children: description })
9546
+ ] });
9547
+ }
9548
+ function PageHeaderActionsContainer({
9549
+ children,
9550
+ className
9551
+ }) {
9552
+ return /* @__PURE__ */ jsx29("div", { className: cn("cnc-flex cnc-gap-4", className), children });
9559
9553
  }
9560
9554
  function Title2({ title, as: Component = "h1" }) {
9561
9555
  return /* @__PURE__ */ jsx29(Component, { className: "cnc-text-[28px] cnc-text-[#1F2C4D] cnc-font-bold cnc-mt-[10px] cnc-mb-5", children: title });
@@ -9606,6 +9600,9 @@ export {
9606
9600
  ModalEntidade,
9607
9601
  ModalMudancaEntidade,
9608
9602
  PageHeader,
9603
+ PageHeaderActionsContainer,
9604
+ PageHeaderTitle,
9605
+ PageHeaderTitleContent,
9609
9606
  Popover2 as Popover,
9610
9607
  PopoverContent2 as PopoverContent,
9611
9608
  PopoverTrigger2 as PopoverTrigger,