@stenajs-webui/elements 21.24.6 → 21.25.0
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.
@@ -1,9 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { HeadingVariant } from "@stenajs-webui/core";
|
2
2
|
import * as React from "react";
|
3
|
+
import { ReactNode } from "react";
|
3
4
|
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
4
5
|
export interface CardyHeaderProps {
|
5
6
|
text: string;
|
6
7
|
leftIcon?: IconDefinition;
|
7
8
|
right?: ReactNode;
|
9
|
+
headingLevel?: HeadingVariant;
|
8
10
|
}
|
9
11
|
export declare const CardyHeader: React.FC<CardyHeaderProps>;
|
package/dist/index.es.js
CHANGED
@@ -4681,12 +4681,13 @@ const T5 = f(
|
|
4681
4681
|
text: n,
|
4682
4682
|
right: L,
|
4683
4683
|
leftIcon: e,
|
4684
|
-
|
4684
|
+
headingLevel: i,
|
4685
|
+
...o
|
4685
4686
|
}) => /* @__PURE__ */ r(p, { className: d1.cardyIndent, children: [
|
4686
4687
|
/* @__PURE__ */ r(Z, { alignItems: "center", justifyContent: "space-between", gap: 2, children: [
|
4687
4688
|
/* @__PURE__ */ r(Z, { alignItems: "center", gap: 2, children: [
|
4688
4689
|
e && /* @__PURE__ */ C(z, { icon: e, size: "var(--swui-heading-font-size)" }),
|
4689
|
-
/* @__PURE__ */ C(X, { ...H(
|
4690
|
+
/* @__PURE__ */ C(X, { as: i, ...H(o), children: n })
|
4690
4691
|
] }),
|
4691
4692
|
L
|
4692
4693
|
] }),
|