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