@getsoren/design-system 4.45.0 → 4.46.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.
|
@@ -14,7 +14,7 @@ export declare const defaultKanbanChip: Record<string, KanbanChipFormat>;
|
|
|
14
14
|
/**
|
|
15
15
|
* Props for configuring the empty state of the Kanban component.
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface KanbanEmptyStateProps {
|
|
18
18
|
title: string;
|
|
19
19
|
description?: string;
|
|
20
20
|
buttonText?: string;
|
|
@@ -127,5 +127,5 @@ export interface KanbanProps {
|
|
|
127
127
|
/**
|
|
128
128
|
* Optional empty state configuration.
|
|
129
129
|
*/
|
|
130
|
-
emptyState?: ReactElement |
|
|
130
|
+
emptyState?: ReactElement | KanbanEmptyStateProps;
|
|
131
131
|
}
|
|
@@ -5,6 +5,8 @@ export interface EmptyStateProps<RootComponent extends ElementType = "button"> {
|
|
|
5
5
|
icon?: ReactNode;
|
|
6
6
|
/** Main message explaining the empty state */
|
|
7
7
|
description?: ReactNode;
|
|
8
|
+
/** Secondary message displayed below the description */
|
|
9
|
+
subtitle?: ReactNode;
|
|
8
10
|
/** Label of the action button. The button is only rendered when provided. */
|
|
9
11
|
actionLabel?: ReactNode;
|
|
10
12
|
/**
|
|
@@ -20,5 +22,5 @@ export interface EmptyStateProps<RootComponent extends ElementType = "button"> {
|
|
|
20
22
|
* The action button accepts any root component, so consumers can plug their router link
|
|
21
23
|
* without coupling the design system to a routing library.
|
|
22
24
|
*/
|
|
23
|
-
declare const EmptyState: <RootComponent extends ElementType = "button">({ icon, description, actionLabel, actionProps, children, }: EmptyStateProps<RootComponent>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare const EmptyState: <RootComponent extends ElementType = "button">({ icon, description, subtitle, actionLabel, actionProps, children, }: EmptyStateProps<RootComponent>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
26
|
export default EmptyState;
|