@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.js
CHANGED
|
@@ -80,6 +80,9 @@ __export(src_exports, {
|
|
|
80
80
|
ModalEntidade: () => ModalEntidade,
|
|
81
81
|
ModalMudancaEntidade: () => ModalMudancaEntidade,
|
|
82
82
|
PageHeader: () => PageHeader,
|
|
83
|
+
PageHeaderActionsContainer: () => PageHeaderActionsContainer,
|
|
84
|
+
PageHeaderTitle: () => PageHeaderTitle,
|
|
85
|
+
PageHeaderTitleContent: () => PageHeaderTitleContent,
|
|
83
86
|
Popover: () => Popover2,
|
|
84
87
|
PopoverContent: () => PopoverContent2,
|
|
85
88
|
PopoverTrigger: () => PopoverTrigger2,
|
|
@@ -9612,51 +9615,63 @@ var AnimatedCollapsibleContent = ({
|
|
|
9612
9615
|
// src/components/molecules/display/page-header.tsx
|
|
9613
9616
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
9614
9617
|
function PageHeader({
|
|
9618
|
+
children,
|
|
9619
|
+
className
|
|
9620
|
+
}) {
|
|
9621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
9622
|
+
"header",
|
|
9623
|
+
{
|
|
9624
|
+
className: cn(
|
|
9625
|
+
"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",
|
|
9626
|
+
className
|
|
9627
|
+
),
|
|
9628
|
+
children
|
|
9629
|
+
}
|
|
9630
|
+
);
|
|
9631
|
+
}
|
|
9632
|
+
function PageHeaderTitleContent({
|
|
9633
|
+
children,
|
|
9634
|
+
className
|
|
9635
|
+
}) {
|
|
9636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
9637
|
+
"div",
|
|
9638
|
+
{
|
|
9639
|
+
className: cn(
|
|
9640
|
+
"cnc-flex cnc-flex-col cnc-items-center cnc-text-center md:cnc-flex-row md:cnc-items-start md:cnc-text-left",
|
|
9641
|
+
className
|
|
9642
|
+
),
|
|
9643
|
+
children
|
|
9644
|
+
}
|
|
9645
|
+
);
|
|
9646
|
+
}
|
|
9647
|
+
function PageHeaderTitle({
|
|
9615
9648
|
title,
|
|
9616
9649
|
description,
|
|
9617
|
-
|
|
9618
|
-
titleAs = "h1",
|
|
9619
|
-
showGoBack = false
|
|
9650
|
+
titleAs = "h1"
|
|
9620
9651
|
}) {
|
|
9621
9652
|
const ComponentTitle = titleAs;
|
|
9622
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.
|
|
9623
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
stroke: "currentColor",
|
|
9638
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
9639
|
-
"path",
|
|
9640
|
-
{
|
|
9641
|
-
strokeLinecap: "round",
|
|
9642
|
-
strokeLinejoin: "round",
|
|
9643
|
-
d: "M15.75 19.5 8.25 12l7.5-7.5"
|
|
9644
|
-
}
|
|
9645
|
-
)
|
|
9646
|
-
}
|
|
9647
|
-
)
|
|
9648
|
-
}
|
|
9653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { children: [
|
|
9654
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ComponentTitle, { className: "cnc-text-2xl cnc-font-semibold cnc-text-brand-blue-600", children: title }),
|
|
9655
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "cnc-text-sm cnc-text-brand-gray-500", children: description })
|
|
9656
|
+
] });
|
|
9657
|
+
}
|
|
9658
|
+
function PageHeaderActionsContainer({
|
|
9659
|
+
children,
|
|
9660
|
+
className
|
|
9661
|
+
}) {
|
|
9662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
9663
|
+
"div",
|
|
9664
|
+
{
|
|
9665
|
+
className: cn(
|
|
9666
|
+
"cnc-flex cnc-items-center cnc-gap-2 md:cnc-flex-row md:cnc-gap-4",
|
|
9667
|
+
className
|
|
9649
9668
|
),
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
] })
|
|
9654
|
-
] }) }),
|
|
9655
|
-
actions && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "cnc-flex cnc-gap-4", children: actions })
|
|
9656
|
-
] }) });
|
|
9669
|
+
children
|
|
9670
|
+
}
|
|
9671
|
+
);
|
|
9657
9672
|
}
|
|
9658
9673
|
function Title2({ title, as: Component = "h1" }) {
|
|
9659
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Component, { className: "cnc-text-[
|
|
9674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(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 });
|
|
9660
9675
|
}
|
|
9661
9676
|
// Annotate the CommonJS export names for ESM import in node:
|
|
9662
9677
|
0 && (module.exports = {
|
|
@@ -9705,6 +9720,9 @@ function Title2({ title, as: Component = "h1" }) {
|
|
|
9705
9720
|
ModalEntidade,
|
|
9706
9721
|
ModalMudancaEntidade,
|
|
9707
9722
|
PageHeader,
|
|
9723
|
+
PageHeaderActionsContainer,
|
|
9724
|
+
PageHeaderTitle,
|
|
9725
|
+
PageHeaderTitleContent,
|
|
9708
9726
|
Popover,
|
|
9709
9727
|
PopoverContent,
|
|
9710
9728
|
PopoverTrigger,
|