@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.css +26 -29
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +59 -9
- package/dist/index.d.ts +59 -9
- package/dist/index.js +56 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +54 -39
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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 {
|
|
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
|
-
|
|
9520
|
-
titleAs = "h1",
|
|
9521
|
-
showGoBack = false
|
|
9549
|
+
titleAs = "h1"
|
|
9522
9550
|
}) {
|
|
9523
9551
|
const ComponentTitle = titleAs;
|
|
9524
|
-
return /* @__PURE__ */
|
|
9525
|
-
/* @__PURE__ */ jsx29(
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
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
|
-
|
|
9553
|
-
|
|
9554
|
-
|
|
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-[
|
|
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,
|