draft-components 2.5.2 → 2.5.3

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.
@@ -8,5 +8,5 @@ export type EmptyStateProps = {
8
8
  primaryAction?: ReactNode;
9
9
  secondaryAction?: ReactNode;
10
10
  } & EmptyStateBaseProps;
11
- export declare function EmptyState({ className, image, title, message, primaryAction, secondaryAction, children, }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function EmptyState({ className, image, title, message, primaryAction, secondaryAction, children, ...props }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
12
12
  export {};
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { classNames } from '../../lib/react-helpers.js';
3
- export function EmptyState({ className, image, title, message, primaryAction, secondaryAction, children, }) {
4
- return (_jsxs("section", { className: classNames('dc-empty-state', className), children: [image
3
+ export function EmptyState({ className, image, title, message, primaryAction, secondaryAction, children, ...props }) {
4
+ return (_jsxs("div", { ...props, className: classNames('dc-empty-state', className), children: [image
5
5
  ? _jsx("div", { className: "dc-empty-state__image", children: image })
6
6
  : null, title
7
7
  ? _jsx("h2", { className: "dc-empty-state__title", children: title })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "draft-components",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "The React based UI components library.",
5
5
  "type": "module",
6
6
  "exports": {