@veeqo/ui 5.5.0 → 5.5.2

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.
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { ViewTabProps } from './types';
3
2
  export interface ClassNamesReturnPayload {
4
3
  delete?: string;
5
4
  edit?: string;
@@ -7,4 +6,16 @@ export interface ClassNamesReturnPayload {
7
6
  active?: string;
8
7
  counter?: string;
9
8
  }
10
- export declare const ViewTab: React.ForwardRefExoticComponent<ViewTabProps & React.RefAttributes<HTMLButtonElement>>;
9
+ export declare const ViewTab: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "name" | "id" | "onClick"> & {
10
+ colourPalette?: import("../../theme/modules/colors").ColourPalette | undefined;
11
+ customTextColour?: string | undefined;
12
+ active?: boolean | undefined;
13
+ name: string;
14
+ iconSlot?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
15
+ id: string;
16
+ type?: "fixed" | "saved" | "draft" | undefined;
17
+ count?: string | number | null | undefined;
18
+ onClick: (id: string) => void;
19
+ subAction?: ((id: string) => void) | undefined;
20
+ ariaContext: string;
21
+ } & React.RefAttributes<HTMLButtonElement>>;
@@ -1,13 +1,11 @@
1
- import { ReactElement } from 'react';
1
+ import { ButtonHTMLAttributes, ReactElement } from 'react';
2
2
  import { ColourPalette } from '../../theme/modules/colors';
3
3
  export declare enum ViewTabTypes {
4
4
  saved = "saved",
5
5
  fixed = "fixed",
6
6
  draft = "draft"
7
7
  }
8
- export type ViewTabProps = {
9
- /** ClassName to override styles on outer root element */
10
- className?: string;
8
+ export type ViewTabProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'name' | 'id' | 'type'> & {
11
9
  /** Colour palette for the ViewTab */
12
10
  colourPalette?: ColourPalette;
13
11
  /** customTextColour - Custom Rest State colour */
@@ -23,7 +21,7 @@ export type ViewTabProps = {
23
21
  /** ViewTab type */
24
22
  type?: keyof typeof ViewTabTypes;
25
23
  /** Number or string value to show near viewTab label */
26
- count?: number | string;
24
+ count?: number | string | null;
27
25
  /** Event handler for when ViewTab component is clicked (should get activated) */
28
26
  onClick: (id: string) => void;
29
27
  /** Event handler for when ViewTab component is clicked and isActive */