@goodhood-web/ui 1.6.0-development.25 → 1.6.0-development.26

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,4 @@
1
+ import { BadgeProps } from './Badge.types';
2
+
3
+ declare const Badge: ({ ariaLabel, badgeIcons, children }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Badge;
@@ -0,0 +1,10 @@
1
+ import { BadgeOwnProps } from '@mui/base';
2
+ import { default as BadgeIconProps } from '../BadgeIcon/BadgeIcon.types';
3
+
4
+ type BadgeIcon = BadgeIconProps['type'];
5
+ export interface BadgeProps {
6
+ ariaLabel?: string;
7
+ badgeIcons: [BadgeIcon] | [BadgeIcon, BadgeIcon] | [BadgeIcon, BadgeIcon, BadgeIcon];
8
+ children: BadgeOwnProps['children'];
9
+ }
10
+ export {};
@@ -0,0 +1,4 @@
1
+ import { default as BadgeIconProps } from './BadgeIcon.types';
2
+
3
+ declare const BadgeIcon: ({ className, size, type }: BadgeIconProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default BadgeIcon;
@@ -0,0 +1,5 @@
1
+ export default interface BadgeIconProps {
2
+ className?: string;
3
+ size: 'small' | 'medium';
4
+ type: 'ben' | 'localBiz' | 'localOrg' | 'supporter' | 'muted';
5
+ }
@@ -0,0 +1,4 @@
1
+ import { default as BadgeLabelProps } from './BadgeLabel.types';
2
+
3
+ declare const BadgeLabel: ({ buttonHref, buttonOnClick, text, type }: BadgeLabelProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default BadgeLabel;
@@ -0,0 +1,9 @@
1
+ import { default as BadgeIconProps } from '../BadgeIcon/BadgeIcon.types';
2
+ import { TextButtonProps } from '../TextButton/TextButton.types';
3
+
4
+ export default interface BadgeLabelProps {
5
+ buttonHref: TextButtonProps['href'];
6
+ buttonOnClick: TextButtonProps['onClick'];
7
+ text: string;
8
+ type: Extract<BadgeIconProps['type'], 'ben' | 'supporter' | 'muted'>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "1.6.0-development.25",
3
+ "version": "1.6.0-development.26",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {