wafields 0.45.0 → 0.46.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,4 +4,3 @@ export { default as PasswordRequirement } from './PasswordRequirement';
4
4
  export { default as InviteByEmails } from './inviteByEmails/InviteByEmails';
5
5
  export type { EmailEntry } from './inviteByEmails/types';
6
6
  export * from './message';
7
- export * from './text';
@@ -2,6 +2,7 @@ interface MessageInputProps {
2
2
  onSend: (content: string) => void;
3
3
  disabled?: boolean;
4
4
  autoFocus?: boolean;
5
+ initialContent?: string;
5
6
  }
6
- declare function MessageInput({ onSend, disabled, autoFocus }: MessageInputProps): import("react").JSX.Element;
7
+ declare function MessageInput({ onSend, disabled, autoFocus, initialContent }: MessageInputProps): import("react").JSX.Element;
7
8
  export default MessageInput;
@@ -2,6 +2,8 @@ interface MessageSenderProps {
2
2
  onSend: (content: string) => void;
3
3
  errorMessage: string;
4
4
  disabled: boolean;
5
+ label?: string;
6
+ defaultContent?: string;
5
7
  }
6
- declare function MessageSender({ onSend, errorMessage, disabled }: MessageSenderProps): import("react").JSX.Element;
8
+ declare function MessageSender({ onSend, errorMessage, disabled, label, defaultContent }: MessageSenderProps): import("react").JSX.Element;
7
9
  export default MessageSender;
@@ -0,0 +1,9 @@
1
+ import { AccountStatus } from 'wenum';
2
+ import { ZeroFuncType } from 'waujs';
3
+ interface ProfileStatusControlProps {
4
+ status: AccountStatus;
5
+ onClick?: ZeroFuncType;
6
+ className?: string;
7
+ }
8
+ declare function ProfileStatusControl({ status, onClick, className }: ProfileStatusControlProps): import("react").JSX.Element | null;
9
+ export default ProfileStatusControl;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as ProfileStatusControl } from './ProfileStatusControl';
3
+ declare const meta: Meta<typeof ProfileStatusControl>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Active: Story;
7
+ export declare const DeletedByUser: Story;
8
+ export declare const None: Story;
@@ -5,3 +5,4 @@ export * from './game';
5
5
  export * from './player';
6
6
  export * from './market';
7
7
  export { default as ProfileTag } from './ProfileTag';
8
+ export { default as ProfileStatusControl } from './ProfileStatusControl';