@7shifts/sous-chef 3.78.1 → 3.79.1

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.
@@ -4,6 +4,7 @@ import { PositionStyles } from '../../foundation/types';
4
4
  type Props = {
5
5
  children: React.ReactNode;
6
6
  theme?: InlineBannerTheme;
7
+ icon?: React.ReactElement;
7
8
  title?: string;
8
9
  onClose?: () => void;
9
10
  caption?: React.ReactNode;
@@ -2,7 +2,8 @@ import React from 'react';
2
2
  import { ToastOptions } from 'react-toastify';
3
3
  import type { Theme } from './types';
4
4
  import 'react-toastify/dist/ReactToastify.css';
5
- export declare const toast: (text: string, theme?: Theme, options?: ToastOptions) => void;
5
+ import type { ToastAction } from './types';
6
+ export declare const toast: (text: string, theme?: Theme, options?: ToastOptions & ToastAction) => void;
6
7
  type Props = {
7
8
  containerId?: string;
8
9
  };
@@ -1 +1,5 @@
1
1
  export type Theme = 'default' | 'danger';
2
+ export type ToastAction = {
3
+ actionText?: string;
4
+ onActionClick?: () => void;
5
+ };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { IconSize } from '../types';
3
+ type Props = {
4
+ size?: IconSize;
5
+ color?: string;
6
+ testId?: string;
7
+ } & React.SVGProps<SVGSVGElement>;
8
+ declare const IconSparkle: React.ForwardRefExoticComponent<Omit<Props, 'ref'>>;
9
+ export default IconSparkle;
@@ -123,6 +123,7 @@ export { default as IconSignOut } from './IconSignOut';
123
123
  export { default as IconSitemap } from './IconSitemap';
124
124
  export { default as IconSlidersH } from './IconSlidersH';
125
125
  export { default as IconSort } from './IconSort';
126
+ export { default as IconSparkle } from './IconSparkle';
126
127
  export { default as IconStarSolid } from './IconStarSolid';
127
128
  export { default as IconStar } from './IconStar';
128
129
  export { default as IconStickyNoteLines } from './IconStickyNoteLines';