wafields 0.42.0 → 0.44.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;
@@ -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';
@@ -5,5 +5,6 @@ export * from './broadcast';
5
5
  export * from './collection';
6
6
  export * from './location';
7
7
  export * from './content';
8
+ export * from './rss';
8
9
  export { default as PageList } from './PageList';
9
10
  export { default as NotificationContent } from './NotificationContent';
@@ -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;
@@ -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';
@@ -0,0 +1,10 @@
1
+ export interface RssItemProps {
2
+ title: string;
3
+ link: string;
4
+ pubDate: string;
5
+ sourceName: string;
6
+ sourceUrl?: string;
7
+ className?: string;
8
+ }
9
+ declare function RssItem({ title, link, pubDate, sourceName, sourceUrl, className }: RssItemProps): import("react").JSX.Element;
10
+ export default RssItem;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as RssItem } from './RssItem';
3
+ declare const meta: Meta<typeof RssItem>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithoutSourceLink: Story;
@@ -0,0 +1,10 @@
1
+ import { RssItemProps } from './RssItem';
2
+ export type RssItemData = Omit<RssItemProps, 'className'>;
3
+ interface RssListProps {
4
+ className?: string;
5
+ itemClassName?: string;
6
+ items: RssItemData[];
7
+ emptyLabel?: string;
8
+ }
9
+ declare function RssList({ className, itemClassName, items, emptyLabel }: RssListProps): import("react").JSX.Element;
10
+ export default RssList;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as RssList } from './RssList';
3
+ declare const meta: Meta<typeof RssList>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Empty: Story;
@@ -0,0 +1,4 @@
1
+ export { default as RssItem } from './RssItem';
2
+ export type { RssItemProps } from './RssItem';
3
+ export { default as RssList } from './RssList';
4
+ export type { RssItemData } from './RssList';