@7shifts/sous-chef 3.59.0 → 3.61.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.
@@ -1,7 +1,11 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import type { ActionListEmptyState } from './type';
2
3
  type Props = {
3
- children: ReactNode;
4
+ children?: ReactNode;
4
5
  testId?: string;
6
+ title?: ReactNode;
7
+ emptyState?: ActionListEmptyState;
8
+ maxHeight?: number;
5
9
  };
6
- declare const ActionList: ({ children, testId }: Props) => React.JSX.Element;
10
+ declare const ActionList: ({ children, testId, title, emptyState, maxHeight }: Props) => React.JSX.Element;
7
11
  export default ActionList;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export type ActionListEmptyState = {
3
+ title: string;
4
+ caption?: string;
5
+ image?: string;
6
+ actions?: {
7
+ primary?: React.ReactElement;
8
+ secondary?: React.ReactElement;
9
+ };
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "3.59.0",
3
+ "version": "3.61.0",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const EmptyStateIllustration: () => React.JSX.Element;
3
- export default EmptyStateIllustration;
@@ -1 +0,0 @@
1
- export { default } from './EmptyStateIllustration';