@7shifts/sous-chef 3.36.3 → 3.38.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/README.md +0 -1
- package/dist/empty_states/EmptyState/EmptyState.d.ts +3 -3
- package/dist/empty_states/EmptyStateContainer/types.d.ts +7 -0
- package/dist/empty_states/Paywall/Paywall.d.ts +3 -2
- package/dist/i18n/locales/en.json +3 -0
- package/dist/i18n/locales/es.json +3 -0
- package/dist/i18n/locales/fr.json +3 -0
- package/dist/icons/components/IconHatChef.d.ts +9 -0
- package/dist/icons/components/IconPlateUtensils.d.ts +9 -0
- package/dist/icons/components/index.d.ts +2 -0
- package/dist/index.css +27 -4
- package/dist/index.js +312 -211
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +310 -211
- package/dist/index.modern.js.map +1 -1
- package/dist/layout/CalloutCard/CalloutCard.d.ts +3 -0
- package/dist/layout/Card/Card.d.ts +3 -2
- package/package.json +1 -1
|
@@ -11,5 +11,8 @@ type Props = {
|
|
|
11
11
|
};
|
|
12
12
|
testId?: string;
|
|
13
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `<EmptyState as='card' />` instead
|
|
16
|
+
*/
|
|
14
17
|
declare const CalloutCard: ({ header, title, children, mediaUrl, onClose, actions, testId }: Props) => React.JSX.Element;
|
|
15
18
|
export default CalloutCard;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataProps, PositionStyles } from '../../foundation/types';
|
|
3
3
|
import { MenuAction } from '../../overlay/KebabMenu/types';
|
|
4
4
|
type Props = {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
onClick?: () => void;
|
|
7
|
+
onClose?: () => void;
|
|
7
8
|
isSelected?: boolean;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
actions?: MenuAction[];
|
|
10
11
|
testId?: string;
|
|
11
12
|
} & PositionStyles & DataProps;
|
|
12
|
-
declare const Card: ({ children, onClick, isSelected, disabled, actions, testId, ...rest }: Props) => React.JSX.Element;
|
|
13
|
+
declare const Card: ({ children, onClick, onClose, isSelected, disabled, actions, testId, ...rest }: Props) => React.JSX.Element;
|
|
13
14
|
export default Card;
|