@stenajs-webui/elements 23.20.1 → 23.21.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.
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import { PropsWithChildren } from "react";
3
+ export interface CardyListCardyProps extends PropsWithChildren {
4
+ }
5
+ export declare const CardyList: React.FC<CardyListCardyProps>;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import { CardyProps } from "../cardy/Cardy";
3
+ export interface CardyListItemProps extends CardyProps {
4
+ }
5
+ export declare const CardyListCardy: React.FC<CardyListItemProps>;
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import { ReactNode } from "react";
3
+ import { HeadingVariant } from "@stenajs-webui/core";
4
+ import { MediumIcon } from "../../../icons/IconSizes";
5
+ export interface CardyListCardyHeaderProps {
6
+ children: ReactNode;
7
+ /** Semantic heading level (`as`). The visual size is fixed at `h3`. */
8
+ headingLevel?: HeadingVariant;
9
+ icon?: MediumIcon;
10
+ }
11
+ /**
12
+ * Heading for a single cardy inside a `CardyList`. Owns the visual size
13
+ * (`h3`) so every card header in a list is consistent; the caller supplies
14
+ * only the text, the semantic level, and an optional leading icon.
15
+ */
16
+ export declare const CardyListCardyHeader: React.FC<CardyListCardyHeaderProps>;
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import { ReactNode } from "react";
3
+ import { HeadingVariant } from "@stenajs-webui/core";
4
+ import { MediumIcon } from "../../../icons/IconSizes";
5
+ export interface CardyListHeaderProps {
6
+ children: ReactNode;
7
+ /** Semantic heading level (`as`). The visual size is fixed at `h2`. */
8
+ headingLevel?: HeadingVariant;
9
+ icon?: MediumIcon;
10
+ }
11
+ /**
12
+ * Heading for a `CardyList` as a whole — one level up from
13
+ * {@link CardyListCardyHeader}. Owns the visual size (`h2`) so every list
14
+ * header is consistent; the caller supplies the text, the semantic level,
15
+ * and an optional leading icon.
16
+ */
17
+ export declare const CardyListHeader: React.FC<CardyListHeaderProps>;
package/dist/index.d.ts CHANGED
@@ -49,6 +49,10 @@ export * from "./components/ui/cardy/Cardy";
49
49
  export * from "./components/ui/cardy/CardyHeader";
50
50
  export * from "./components/ui/cardy/CardyBody";
51
51
  export * from "./components/ui/cardy/CardyBottomBanner";
52
+ export * from "./components/ui/cardy-list/CardyList";
53
+ export * from "./components/ui/cardy-list/CardyListCardy";
54
+ export * from "./components/ui/cardy-list/CardyListCardyHeader";
55
+ export * from "./components/ui/cardy-list/CardyListHeader";
52
56
  export * from "./components/ui/chip/Chip";
53
57
  export * from "./components/ui/label/Label";
54
58
  export * from "./components/ui/label/LabelHighlight";