eidotter 0.34.0 → 0.35.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.
- package/dist/components/EmptyState/components/EmptyState.d.ts +26 -0
- package/dist/components/EmptyState/components/index.d.ts +2 -0
- package/dist/components/EmptyState/index.d.ts +2 -0
- package/dist/components/SectionHeading/components/SectionHeading.d.ts +26 -0
- package/dist/components/SectionHeading/components/index.d.ts +2 -0
- package/dist/components/SectionHeading/index.d.ts +2 -0
- package/dist/eidotter.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +130 -88
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface EmptyStateProps {
|
|
3
|
+
/** Primary message (e.g. "No documents yet"). */
|
|
4
|
+
title: string;
|
|
5
|
+
/** Optional supporting line below the title. */
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Tone-driven colour for the title. Routes through semantic roles so it
|
|
9
|
+
* re-themes: amber-family under amber-mono, honest under colour themes.
|
|
10
|
+
* @default 'default'
|
|
11
|
+
*/
|
|
12
|
+
tone?: 'default' | 'error' | 'warning' | 'info';
|
|
13
|
+
/** Optional action slot (e.g. a Button), rendered below the description. */
|
|
14
|
+
action?: React.ReactNode;
|
|
15
|
+
/** Additional CSS class name. */
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* DOS-styled empty / zero-state — a centred title, optional description, and an
|
|
20
|
+
* optional action slot. Pure presentational.
|
|
21
|
+
*
|
|
22
|
+
* Ported from Steuerdash (DMNC-859); tones and the description route through
|
|
23
|
+
* `text-dos-*` semantic roles (not raw `cga-*`) so it re-themes and the
|
|
24
|
+
* description stays AA-safe (`text-muted` → lightGray under amber-mono).
|
|
25
|
+
*/
|
|
26
|
+
export declare const EmptyState: React.FC<EmptyStateProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SectionHeadingProps {
|
|
3
|
+
/** Heading text. */
|
|
4
|
+
title: string;
|
|
5
|
+
/** Optional trailing count, rendered as " (count)". */
|
|
6
|
+
count?: string | number;
|
|
7
|
+
/**
|
|
8
|
+
* Tone-driven colour. Routes through semantic roles so it re-themes:
|
|
9
|
+
* amber-family under amber-mono, honest under colour themes.
|
|
10
|
+
* @default 'default'
|
|
11
|
+
*/
|
|
12
|
+
tone?: 'default' | 'error' | 'warning' | 'info';
|
|
13
|
+
/** Additional content rendered after the title/count (e.g. an action). */
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
/** Additional CSS class name. */
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* DOS-styled section heading — an uppercase `<h3>` label with an optional
|
|
20
|
+
* trailing `(count)` and tone-driven colour. Pure presentational.
|
|
21
|
+
*
|
|
22
|
+
* Ported from Steuerdash (DMNC-855); the steuerdash version hardcoded
|
|
23
|
+
* `text-cga-*` — this routes tones through `text-dos-*` semantic roles instead
|
|
24
|
+
* so the heading re-themes and stays AA-safe under amber-mono.
|
|
25
|
+
*/
|
|
26
|
+
export declare const SectionHeading: React.FC<SectionHeadingProps>;
|