@goodhood-web/ui 1.8.0-development.13 → 1.8.0-development.15

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 { ActionBarProps } from './ActionBar.types';
2
+
3
+ declare const ActionBar: (props: ActionBarProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ActionBar;
@@ -0,0 +1,8 @@
1
+ import { default as ActionBarCtaProps } from './ActionBarCta/ActionBarCta.types';
2
+ import { default as ActionBarListProps } from './ActionBarList/ActionBarList.types';
3
+
4
+ export type ActionBarProps = (ActionBarListProps & {
5
+ type: 'list';
6
+ }) | (ActionBarCtaProps & {
7
+ type: 'cta';
8
+ });
@@ -0,0 +1,4 @@
1
+ import { default as ActionBarCtaProps } from './ActionBarCta.types';
2
+
3
+ declare const ActionBarCta: ({ button, text }: ActionBarCtaProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ActionBarCta;
@@ -0,0 +1,8 @@
1
+ import { ButtonProps } from '../../Button/Button.types';
2
+
3
+ export default interface ActionBarCtaProps {
4
+ button: Pick<ButtonProps, 'onClick' | 'ariaLabel'> & {
5
+ text: string;
6
+ };
7
+ text: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ import { default as ActionBarListProps } from './ActionBarList.types';
2
+
3
+ declare const ActionBarList: ({ items }: ActionBarListProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ActionBarList;
@@ -0,0 +1,5 @@
1
+ import { default as ActionBarItemProps } from './ActionItem/ActionItem.types';
2
+
3
+ export default interface ActionBarListProps {
4
+ items: ActionBarItemProps[];
5
+ }
@@ -0,0 +1,4 @@
1
+ import { default as ActionItemProps } from './ActionItem.types';
2
+
3
+ declare const ActionItem: ({ className, disabled, icon, onClick, text }: ActionItemProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ActionItem;
@@ -0,0 +1,10 @@
1
+ import { ButtonProps } from '../../../Button/Button.types';
2
+ import { Icon24 } from '../../../Icon/Icon.types';
3
+
4
+ export default interface ActionBarItemProps {
5
+ className?: string;
6
+ disabled?: boolean;
7
+ icon: Icon24;
8
+ onClick?: ButtonProps['onClick'];
9
+ text: string;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "1.8.0-development.13",
3
+ "version": "1.8.0-development.15",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {