@7shifts/sous-chef 4.12.1 → 4.13.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.
@@ -0,0 +1,6 @@
1
+ type AvatarContextType = {
2
+ size: 'small' | 'medium' | 'large' | 'extra-large' | null;
3
+ };
4
+ declare const AvatarContext: import("react").Context<AvatarContextType>;
5
+ export declare const useAvatarContext: () => AvatarContextType;
6
+ export default AvatarContext;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  type Props = {
3
- url?: string;
4
- color?: string;
3
+ url: string;
5
4
  alt?: string;
6
5
  onImageFallbackError: () => void;
6
+ onImageLoad: () => void;
7
7
  };
8
8
  declare const AvatarImage: React.FC<Props>;
9
9
  export default AvatarImage;
@@ -4,6 +4,11 @@ type Props = {
4
4
  theme?: 'success' | 'danger' | 'warning' | 'info';
5
5
  /** This will show a black tooltip when the user hover the badge */
6
6
  title?: string;
7
+ /**
8
+ * `default` renders the badge with its content. `dot` renders a
9
+ * small solid circle with no content — used by small/medium Avatars.
10
+ */
11
+ size?: 'dot' | 'default';
7
12
  testId?: string;
8
13
  };
9
14
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "4.12.1",
3
+ "version": "4.13.0",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",