wacomm 2.2.12 → 2.4.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,9 +1,10 @@
1
1
  import { ZeroFuncType } from 'waujs';
2
- interface AvatarProps {
3
- letter?: string;
2
+ export interface AvatarProps {
3
+ label?: string;
4
4
  className?: string;
5
5
  imgSrc?: string;
6
+ fallbackImgSrc?: string;
6
7
  onClick?: ZeroFuncType;
7
8
  }
8
- declare function Avatar({ letter, className, imgSrc, onClick }: AvatarProps): import("react/jsx-runtime").JSX.Element;
9
+ declare function Avatar({ label, className, imgSrc, fallbackImgSrc, onClick }: AvatarProps): import("react/jsx-runtime").JSX.Element;
9
10
  export default Avatar;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Avatar } from './Avatar';
3
+ declare const meta: Meta<typeof Avatar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithImage: Story;
8
+ export declare const WithFallback: Story;
@@ -1,10 +1,6 @@
1
- import { ZeroFuncType } from 'waujs';
2
- interface AvatarTagProps {
3
- name: string;
4
- onClick?: ZeroFuncType;
5
- className?: string;
1
+ import { AvatarProps } from './Avatar';
2
+ export interface AvatarTagProps extends AvatarProps {
6
3
  avatarClassName?: string;
7
- imgSrc?: string;
8
4
  }
9
- declare function AvatarTag({ name, onClick, className, avatarClassName, imgSrc }: AvatarTagProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function AvatarTag({ label, onClick, className, imgSrc, fallbackImgSrc, avatarClassName, }: AvatarTagProps): import("react/jsx-runtime").JSX.Element;
10
6
  export default AvatarTag;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as AvatarTag } from './AvatarTag';
3
+ declare const meta: Meta<typeof AvatarTag>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithImage: Story;
8
+ export declare const WithFallback: Story;
@@ -1,11 +1,6 @@
1
- import { ZeroFuncType } from 'waujs';
2
- interface AvatarTimeTagProps {
3
- name: string;
1
+ import { AvatarTagProps } from './AvatarTag';
2
+ interface AvatarTimeTagProps extends AvatarTagProps {
4
3
  date: string;
5
- onClick?: ZeroFuncType;
6
- className?: string;
7
- avatarClassName?: string;
8
- imgSrc?: string;
9
4
  }
10
- declare function AvatarTimeTag({ name, date, onClick, className, avatarClassName, imgSrc }: AvatarTimeTagProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function AvatarTimeTag({ label, date, onClick, className, avatarClassName, imgSrc, fallbackImgSrc }: AvatarTimeTagProps): import("react/jsx-runtime").JSX.Element;
11
6
  export default AvatarTimeTag;