@cnc-ti/layout-basic 8.3.2 → 8.3.4

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,53 +9512,65 @@ 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-flex-col cnc-items-center cnc-gap-4 cnc-p-4 cnc-bg-brand-blue-50 cnc-border-b-2 cnc-border-brand-blue-60 md:cnc-flex-row md:cnc-justify-between md:cnc-items-start md:cnc-p-8",
9525
+ className
9526
+ ),
9527
+ children
9528
+ }
9529
+ );
9530
+ }
9531
+ function PageHeaderTitleContent({
9532
+ children,
9533
+ className
9534
+ }) {
9535
+ return /* @__PURE__ */ jsx29(
9536
+ "div",
9537
+ {
9538
+ className: cn(
9539
+ "cnc-flex cnc-flex-col cnc-items-center cnc-text-center md:cnc-flex-row md:cnc-items-start md:cnc-text-left",
9540
+ className
9541
+ ),
9542
+ children
9543
+ }
9544
+ );
9545
+ }
9546
+ function PageHeaderTitle({
9517
9547
  title,
9518
9548
  description,
9519
- actions,
9520
- titleAs = "h1",
9521
- showGoBack = false
9549
+ titleAs = "h1"
9522
9550
  }) {
9523
9551
  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
- }
9552
+ return /* @__PURE__ */ jsxs12("div", { children: [
9553
+ /* @__PURE__ */ jsx29(ComponentTitle, { className: "cnc-text-2xl cnc-font-semibold cnc-text-brand-blue-600", children: title }),
9554
+ description && /* @__PURE__ */ jsx29("p", { className: "cnc-text-sm cnc-text-brand-gray-500", children: description })
9555
+ ] });
9556
+ }
9557
+ function PageHeaderActionsContainer({
9558
+ children,
9559
+ className
9560
+ }) {
9561
+ return /* @__PURE__ */ jsx29(
9562
+ "div",
9563
+ {
9564
+ className: cn(
9565
+ "cnc-flex cnc-items-center cnc-gap-2 md:cnc-flex-row md:cnc-gap-4",
9566
+ className
9551
9567
  ),
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
- ] }) });
9568
+ children
9569
+ }
9570
+ );
9559
9571
  }
9560
9572
  function Title2({ title, as: Component = "h1" }) {
9561
- return /* @__PURE__ */ jsx29(Component, { className: "cnc-text-[28px] cnc-text-[#1F2C4D] cnc-font-bold cnc-mt-[10px] cnc-mb-5", children: title });
9573
+ return /* @__PURE__ */ jsx29(Component, { className: "cnc-text-[24px] cnc-text-[#1F2C4D] cnc-font-bold cnc-mt-2 cnc-mb-4 text-center md:cnc-text-[28px] md:cnc-text-left", children: title });
9562
9574
  }
9563
9575
  export {
9564
9576
  AplicationsHeader,
@@ -9606,6 +9618,9 @@ export {
9606
9618
  ModalEntidade,
9607
9619
  ModalMudancaEntidade,
9608
9620
  PageHeader,
9621
+ PageHeaderActionsContainer,
9622
+ PageHeaderTitle,
9623
+ PageHeaderTitleContent,
9609
9624
  Popover2 as Popover,
9610
9625
  PopoverContent2 as PopoverContent,
9611
9626
  PopoverTrigger2 as PopoverTrigger,