@croquiscom/pds 6.6.1 → 7.0.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/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { HTMLAttributes, ComponentType } from 'react';
|
|
1
|
+
import { HTMLAttributes, ComponentType, ReactNode } from 'react';
|
|
2
2
|
import { IconProps } from '../../components';
|
|
3
|
-
export type StateKind = 'warning';
|
|
4
|
-
export interface StateProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
export type StateKind = 'warning' | 'empty';
|
|
4
|
+
export interface StateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
5
5
|
kind?: StateKind;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
description: ReactNode;
|
|
8
8
|
icon?: ComponentType<IconProps>;
|
|
9
|
+
action?: ReactNode;
|
|
9
10
|
}
|
|
10
|
-
export declare const State: ({ kind,
|
|
11
|
+
export declare const State: ({ kind, title, description, action, icon, className, ...props }: StateProps) => JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentMeta } from '@storybook/react';
|
|
3
|
-
declare const _default: ComponentMeta<({ kind,
|
|
3
|
+
declare const _default: ComponentMeta<({ kind, title, description, action, icon, className, ...props }: import("./State").StateProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const WarningKind: any;
|
|
6
|
+
export declare const EmptyKind: any;
|
|
7
|
+
export declare const EmptyKindWithAction: any;
|