@apolitical/component-library 6.4.1-ac.4 → 6.4.1
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/form/components/form/index.d.ts +0 -1
- package/index.js +43 -43
- package/index.mjs +22 -19
- package/layout/content-layout/top-level-page/top-level-page.d.ts +5 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/form/_checkbox.scss +1 -1
- package/styles/base/form/_index.scss +1 -1
- package/styles/variables/colors/theme/_form.scss +0 -1
- package/text/page-heading/page-heading.d.ts +6 -1
- package/styles/base/form/_radio.scss +0 -31
package/index.mjs
CHANGED
|
@@ -2529,16 +2529,29 @@ const km = ({
|
|
|
2529
2529
|
title: t,
|
|
2530
2530
|
subtitle: n,
|
|
2531
2531
|
children: r,
|
|
2532
|
-
className: i = ""
|
|
2532
|
+
className: i = "",
|
|
2533
|
+
ctaButton: a
|
|
2533
2534
|
}) => {
|
|
2534
|
-
const
|
|
2535
|
+
const s = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
2535
2536
|
return /* @__PURE__ */ c.jsxs("section", { className: V("page-heading", i), children: [
|
|
2536
|
-
/* @__PURE__ */ c.jsxs("div", { className: V("content", { "has-max-width": e }), style:
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
n.
|
|
2540
|
-
|
|
2541
|
-
|
|
2537
|
+
/* @__PURE__ */ c.jsxs("div", { className: V("content", { "has-max-width": e }), style: s, children: [
|
|
2538
|
+
/* @__PURE__ */ c.jsxs("div", { className: V("content-wrapper", { "has-max-width": e }), children: [
|
|
2539
|
+
t && t.text && ee.createElement(t.element || "h1", { className: "title" }, t.text),
|
|
2540
|
+
n && n.text && ee.createElement(
|
|
2541
|
+
n.element || "h2",
|
|
2542
|
+
{ className: "text-medium" },
|
|
2543
|
+
n.text
|
|
2544
|
+
)
|
|
2545
|
+
] }),
|
|
2546
|
+
a && /* @__PURE__ */ c.jsx(
|
|
2547
|
+
Fe,
|
|
2548
|
+
{
|
|
2549
|
+
...a,
|
|
2550
|
+
className: V("cta-button", "gtm-trackable"),
|
|
2551
|
+
"data-gtm-event-context": "CreateNewArticle",
|
|
2552
|
+
"data-gtm-event-type": "create-article-click",
|
|
2553
|
+
children: a.text
|
|
2554
|
+
}
|
|
2542
2555
|
)
|
|
2543
2556
|
] }),
|
|
2544
2557
|
r
|
|
@@ -8530,16 +8543,7 @@ const Nd = ({
|
|
|
8530
8543
|
tabIndex: -1
|
|
8531
8544
|
}
|
|
8532
8545
|
),
|
|
8533
|
-
/* @__PURE__ */ c.jsx(
|
|
8534
|
-
"span",
|
|
8535
|
-
{
|
|
8536
|
-
className: V("pretty-checkbox", {
|
|
8537
|
-
radio: u === "radio"
|
|
8538
|
-
}),
|
|
8539
|
-
"data-testid": "pretty-checkbox",
|
|
8540
|
-
children: u === "radio" && /* @__PURE__ */ c.jsx("span", { className: "radio-inner" })
|
|
8541
|
-
}
|
|
8542
|
-
),
|
|
8546
|
+
/* @__PURE__ */ c.jsx("span", { className: "pretty-checkbox", "data-testid": "pretty-checkbox" }),
|
|
8543
8547
|
/* @__PURE__ */ c.jsx(
|
|
8544
8548
|
"label",
|
|
8545
8549
|
{
|
|
@@ -29376,7 +29380,6 @@ export {
|
|
|
29376
29380
|
O_ as CardBlock,
|
|
29377
29381
|
qk as Carousel,
|
|
29378
29382
|
Pd as CharacterLimit,
|
|
29379
|
-
Nd as Checkbox,
|
|
29380
29383
|
oo as CollapsibleSection,
|
|
29381
29384
|
ev as Columns,
|
|
29382
29385
|
hk as CommunityDetails,
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { type IProfileFormProps } from '../../../form';
|
|
2
2
|
import { NavigationMenuProps } from '../../../navigation';
|
|
3
3
|
import { PageHeadingProps } from '../../../text';
|
|
4
|
+
import { ButtonPropsType } from '../../../general';
|
|
4
5
|
interface Props extends NavigationMenuProps, PageHeadingProps {
|
|
5
6
|
/** Props for the profile modal */
|
|
6
7
|
profile?: IProfileFormProps;
|
|
8
|
+
/** Call-To-Action button configuration */
|
|
9
|
+
ctaButton?: ButtonPropsType & {
|
|
10
|
+
text: string;
|
|
11
|
+
};
|
|
7
12
|
}
|
|
8
13
|
declare const TopLevelPage: ({ activeLink, profile, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
14
|
export default TopLevelPage;
|