@goodhood-web/ui 2.1.0-development.23 → 2.1.0-development.25
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.
- package/index.js +34 -34
- package/index.mjs +329 -327
- package/lib/Atoms/Badges/BadgeIcon/BadgeIcon.types.d.ts +2 -1
- package/lib/Atoms/Badges/BadgeLabel/BadgeLabel.types.d.ts +1 -1
- package/lib/Atoms/Badges/Tooltip/Tooltip.d.ts +1 -1
- package/lib/Atoms/Badges/Tooltip/Tooltip.types.d.ts +1 -0
- package/lib/Atoms/Content/UserAvatarCluster/UserAvatarCluster.types.d.ts +0 -2
- package/lib/Atoms/Content/UserAvatarCluster/utils.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AriaRole } from 'react';
|
|
2
|
+
import { BadgeIconType } from '../../../../../../api/src/lib/types/newsFeeds';
|
|
2
3
|
export default interface BadgeIconProps {
|
|
3
4
|
ariaLabel?: string;
|
|
4
5
|
className?: string;
|
|
5
6
|
role?: AriaRole;
|
|
6
7
|
size: 'small' | 'medium';
|
|
7
|
-
type:
|
|
8
|
+
type: BadgeIconType;
|
|
8
9
|
}
|
|
@@ -5,5 +5,5 @@ export default interface BadgeLabelProps {
|
|
|
5
5
|
buttonOnClick: TextButtonProps['onClick'];
|
|
6
6
|
buttonText: string;
|
|
7
7
|
text: string;
|
|
8
|
-
type: Extract<BadgeIconProps['type'], '
|
|
8
|
+
type: Extract<BadgeIconProps['type'], 'is_super_neighbour' | 'is_supporter' | 'muted'>;
|
|
9
9
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as TooltipProps } from './Tooltip.types';
|
|
2
|
-
declare const Tooltip: ({ children, className, hasPointer, id, position, showTooltip, text, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Tooltip: ({ children, className, customSpacing, hasPointer, id, position, showTooltip, text, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Tooltip;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export type BadgeIconType = 'ben' | 'localBiz' | 'localOrg' | 'is_supporter' | 'muted';
|
|
2
1
|
export type User = {
|
|
3
2
|
achievements: unknown[];
|
|
4
3
|
address: string | null;
|
|
5
|
-
badges: [] | BadgeIconType[];
|
|
6
4
|
business_profile_id: number | null;
|
|
7
5
|
city: string;
|
|
8
6
|
created_at: string;
|