@veeqo/ui 13.22.3 → 13.22.4

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.
@@ -6,6 +6,6 @@ export declare const FeatureBanner: React.ForwardRefExoticComponent<Omit<React.H
6
6
  title: string;
7
7
  contentSlot?: React.ReactNode;
8
8
  iconSlot?: React.ReactNode;
9
- actions?: import("./types").FeatureBannerAction[] | undefined;
9
+ actions?: import("..").Action[] | undefined;
10
10
  onClose?: (() => void) | undefined;
11
11
  } & React.RefAttributes<never>>;
@@ -1,2 +1,2 @@
1
1
  export { FeatureBanner } from './FeatureBanner';
2
- export type { FeatureBannerProps, FeatureBannerVariant, FeatureBannerSize, FeatureBannerLayout, FeatureBannerAction } from './types';
2
+ export type { FeatureBannerProps, FeatureBannerVariant, FeatureBannerSize, FeatureBannerLayout, } from './types';
@@ -1,20 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { WithTokensProps } from '../../hoc/withTokens/withTokens';
3
+ import { Action } from '../Modal';
3
4
  /** Visual style of the banner */
4
5
  export type FeatureBannerVariant = 'primary' | 'secondary';
5
6
  /** Controls the padding density of the banner */
6
7
  export type FeatureBannerSize = 'default' | 'sm' | 'xs';
7
8
  /** Direction of the banner content flow */
8
9
  export type FeatureBannerLayout = 'vertical' | 'horizontal';
9
- /** Configuration for an action button within the banner */
10
- export type FeatureBannerAction = {
11
- /** Button label text */
12
- label: string;
13
- /** Click handler for the action */
14
- onClick: () => void;
15
- /** Button style — `'primary'` for emphasis, `'default'` for secondary actions */
16
- variant?: 'primary' | 'default';
17
- };
18
10
  export type FeatureBannerProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & WithTokensProps & {
19
11
  /** Visual style of the banner. `'primary'` has a solid icon background, `'secondary'` has a white background */
20
12
  variant?: FeatureBannerVariant;
@@ -29,7 +21,7 @@ export type FeatureBannerProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'chi
29
21
  /** Icon displayed in a themed background container */
30
22
  iconSlot?: ReactNode;
31
23
  /** Action buttons rendered below the content */
32
- actions?: FeatureBannerAction[];
24
+ actions?: Action[];
33
25
  /** Close handler. When provided, renders a close button */
34
26
  onClose?: () => void;
35
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veeqo/ui",
3
- "version": "13.22.3",
3
+ "version": "13.22.4",
4
4
  "description": "New optimised component library for Veeqo.",
5
5
  "author": "Robert Wealthall",
6
6
  "license": "ISC",