wafields 0.41.0 → 0.43.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,13 @@
1
+ import { CollectionType } from 'wenum';
2
+ import { ZeroFuncType } from 'waujs';
3
+ interface CollectionAvatarProps {
4
+ id: string;
5
+ name: string;
6
+ collectionTypeLabel: string;
7
+ collectionType: CollectionType;
8
+ avatarImageID?: string;
9
+ className?: string;
10
+ onClick?: ZeroFuncType;
11
+ }
12
+ declare function CollectionAvatar({ id, name, collectionTypeLabel, collectionType, avatarImageID, className, onClick }: CollectionAvatarProps): import("react").JSX.Element;
13
+ export default CollectionAvatar;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as CollectionAvatar } from './CollectionAvatar';
3
+ declare const meta: Meta<typeof CollectionAvatar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -2,6 +2,9 @@ import { CollectionType } from 'wenum';
2
2
  interface CollectionTypeTagProps {
3
3
  collectionType: CollectionType;
4
4
  label: string;
5
+ isHighlighted?: boolean;
6
+ onClick?: () => void;
7
+ className?: string;
5
8
  }
6
- declare function CollectionTypeTag({ collectionType, label }: CollectionTypeTagProps): import("react").JSX.Element;
9
+ declare function CollectionTypeTag({ collectionType, label, isHighlighted, onClick, className }: CollectionTypeTagProps): import("react").JSX.Element;
7
10
  export default CollectionTypeTag;
@@ -1,11 +1,10 @@
1
- import { CollectionType } from 'wenum';
2
- export interface CollectionTypeTagsItem {
3
- collectionType: CollectionType;
4
- label: string;
5
- }
1
+ import { CollectionMetaProps, CollectionType } from 'wenum';
6
2
  interface CollectionTypeTagsProps {
7
- items: CollectionTypeTagsItem[];
8
3
  className?: string;
4
+ tagClassName?: string;
5
+ collectionMetas: CollectionMetaProps[];
6
+ pickedCollectionType?: CollectionType;
7
+ setPickedCollectionType: (collectionType: CollectionType) => void;
9
8
  }
10
- declare function CollectionTypeTags({ items, className }: CollectionTypeTagsProps): import("react").JSX.Element;
9
+ declare function CollectionTypeTags({ className, tagClassName, collectionMetas, pickedCollectionType, setPickedCollectionType }: CollectionTypeTagsProps): import("react").JSX.Element;
11
10
  export default CollectionTypeTags;
@@ -5,4 +5,5 @@ export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Default: Story;
7
7
  export declare const Pets: Story;
8
+ export declare const PetsPicked: Story;
8
9
  export declare const Tennis: Story;
@@ -1,3 +1,4 @@
1
1
  export { default as CollectionTypePicker } from './CollectionTypePicker';
2
2
  export { default as CollectionTypeTag } from './CollectionTypeTag';
3
3
  export { default as CollectionTypeTags } from './CollectionTypeTags';
4
+ export { default as CollectionAvatar } from './CollectionAvatar';
@@ -2,6 +2,9 @@ import { GameType } from 'wenum';
2
2
  interface GameTypeTagProps {
3
3
  gameType: GameType;
4
4
  label: string;
5
+ isHighlighted?: boolean;
6
+ onClick?: () => void;
7
+ className?: string;
5
8
  }
6
- declare function GameTypeTag({ gameType, label }: GameTypeTagProps): import("react").JSX.Element;
9
+ declare function GameTypeTag({ gameType, label, isHighlighted, onClick, className }: GameTypeTagProps): import("react").JSX.Element;
7
10
  export default GameTypeTag;
@@ -1,11 +1,10 @@
1
- import { GameType } from 'wenum';
2
- export interface GameTypeTagsItem {
3
- gameType: GameType;
4
- label: string;
5
- }
1
+ import { GameMetaProps, GameType } from 'wenum';
6
2
  interface GameTypeTagsProps {
7
- items: GameTypeTagsItem[];
8
3
  className?: string;
4
+ tagClassName?: string;
5
+ gameMetas: GameMetaProps[];
6
+ pickedGameType?: GameType;
7
+ setPickedGameType: (gameType: GameType) => void;
9
8
  }
10
- declare function GameTypeTags({ items, className }: GameTypeTagsProps): import("react").JSX.Element;
9
+ declare function GameTypeTags({ className, tagClassName, gameMetas, pickedGameType, setPickedGameType }: GameTypeTagsProps): import("react").JSX.Element;
11
10
  export default GameTypeTags;
@@ -1,7 +1,10 @@
1
1
  import { LeaderboardType } from 'wenum';
2
- interface LeaderboardTypeTagProps {
2
+ export interface LeaderboardTypeTagProps {
3
3
  leaderboardType: LeaderboardType;
4
4
  label: string;
5
+ isHighlighted?: boolean;
6
+ onClick?: () => void;
7
+ className?: string;
5
8
  }
6
- declare function LeaderboardTypeTag({ leaderboardType, label }: LeaderboardTypeTagProps): import("react").JSX.Element;
9
+ declare function LeaderboardTypeTag({ leaderboardType, label, isHighlighted, onClick, className }: LeaderboardTypeTagProps): import("react").JSX.Element;
7
10
  export default LeaderboardTypeTag;
@@ -1,11 +1,11 @@
1
1
  import { LeaderboardType } from 'wenum';
2
- export interface LeaderboardTypeTagsItem {
3
- leaderboardType: LeaderboardType;
4
- label: string;
5
- }
2
+ import { LeaderboardTypeTagProps } from './LeaderboardTypeTag';
6
3
  interface LeaderboardTypeTagsProps {
7
- items: LeaderboardTypeTagsItem[];
8
4
  className?: string;
5
+ tagClassName?: string;
6
+ leaderboardMetas: LeaderboardTypeTagProps[];
7
+ pickedLeaderboardType?: LeaderboardType;
8
+ setPickedLeaderboardType: (leaderboardType: LeaderboardType) => void;
9
9
  }
10
- declare function LeaderboardTypeTags({ items, className }: LeaderboardTypeTagsProps): import("react").JSX.Element;
10
+ declare function LeaderboardTypeTags({ className, tagClassName, leaderboardMetas, pickedLeaderboardType, setPickedLeaderboardType }: LeaderboardTypeTagsProps): import("react").JSX.Element;
11
11
  export default LeaderboardTypeTags;
@@ -0,0 +1,13 @@
1
+ import { MarketType } from 'wenum';
2
+ import { ZeroFuncType } from 'waujs';
3
+ interface MarketAvatarProps {
4
+ id: string;
5
+ name: string;
6
+ marketTypeLabel: string;
7
+ marketType: MarketType;
8
+ avatarImageID?: string;
9
+ className?: string;
10
+ onClick?: ZeroFuncType;
11
+ }
12
+ declare function MarketAvatar({ id, name, marketTypeLabel, marketType, avatarImageID, className, onClick }: MarketAvatarProps): import("react").JSX.Element;
13
+ export default MarketAvatar;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as MarketAvatar } from './MarketAvatar';
3
+ declare const meta: Meta<typeof MarketAvatar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -2,6 +2,9 @@ import { MarketType } from 'wenum';
2
2
  interface MarketTypeTagProps {
3
3
  marketType: MarketType;
4
4
  label: string;
5
+ isHighlighted?: boolean;
6
+ onClick?: () => void;
7
+ className?: string;
5
8
  }
6
- declare function MarketTypeTag({ marketType, label }: MarketTypeTagProps): import("react").JSX.Element;
9
+ declare function MarketTypeTag({ marketType, label, isHighlighted, onClick, className }: MarketTypeTagProps): import("react").JSX.Element;
7
10
  export default MarketTypeTag;
@@ -1,11 +1,10 @@
1
- import { MarketType } from 'wenum';
2
- export interface MarketTypeTagsItem {
3
- marketType: MarketType;
4
- label: string;
5
- }
1
+ import { MarketMetaProps, MarketType } from 'wenum';
6
2
  interface MarketTypeTagsProps {
7
- items: MarketTypeTagsItem[];
8
3
  className?: string;
4
+ tagClassName?: string;
5
+ marketMetas: MarketMetaProps[];
6
+ pickedMarketType?: MarketType;
7
+ setPickedMarketType: (marketType: MarketType) => void;
9
8
  }
10
- declare function MarketTypeTags({ items, className }: MarketTypeTagsProps): import("react").JSX.Element;
9
+ declare function MarketTypeTags({ className, tagClassName, marketMetas, pickedMarketType, setPickedMarketType }: MarketTypeTagsProps): import("react").JSX.Element;
11
10
  export default MarketTypeTags;
@@ -1,3 +1,4 @@
1
1
  export { default as MarketTypePicker } from './MarketTypePicker';
2
2
  export { default as MarketTypeTag } from './MarketTypeTag';
3
3
  export { default as MarketTypeTags } from './MarketTypeTags';
4
+ export { default as MarketAvatar } from './MarketAvatar';