@producteca/producteca-ui-kit 1.89.1 → 1.90.0

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,2 +1,2 @@
1
1
  export { Tabs } from './tabs';
2
- export type { TabsProps, TabItem } from './tabs';
2
+ export type { TabsProps, TabItem, TabItemTooltipProps } from './tabs.types';
@@ -1,19 +1,6 @@
1
1
  import { default as React } from 'react';
2
+ import { TabsProps } from './tabs.types';
2
3
 
3
- export interface TabItem {
4
- id: string;
5
- href?: string;
6
- target?: string;
7
- disabled?: boolean;
8
- onClick?: () => void;
9
- label: React.ReactNode;
10
- }
11
- export interface TabsProps {
12
- value?: string;
13
- items: TabItem[];
14
- defaultValue?: string;
15
- sx?: React.CSSProperties;
16
- onChange?: (item: TabItem | undefined) => void;
17
- }
18
4
  export declare const Tabs: React.FC<TabsProps>;
19
5
  export default Tabs;
6
+ export type { TabItem, TabsProps, TabItemTooltipProps } from './tabs.types';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ import { BaseTooltipProps } from '../tooltip/tooltip.types';
3
+
4
+ export interface TabItemTooltipProps extends Omit<BaseTooltipProps, 'trigger'> {
5
+ content: string | React.ReactNode;
6
+ }
7
+ export interface TabItem {
8
+ id: string;
9
+ href?: string;
10
+ target?: string;
11
+ disabled?: boolean;
12
+ onClick?: () => void;
13
+ label: React.ReactNode;
14
+ tooltipProps?: TabItemTooltipProps;
15
+ }
16
+ export interface TabsProps {
17
+ value?: string;
18
+ items: TabItem[];
19
+ defaultValue?: string;
20
+ sx?: React.CSSProperties;
21
+ onChange?: (item: TabItem | undefined) => void;
22
+ }
@@ -10,6 +10,7 @@ export interface BaseTooltipProps {
10
10
  maxWidth?: number | string;
11
11
  trigger?: TooltipTrigger;
12
12
  shouldShowTooltip?: boolean;
13
+ describeChild?: boolean;
13
14
  }
14
15
  export interface WithTooltipProps extends BaseTooltipProps {
15
16
  children: React.ReactElement;
@@ -457,6 +457,9 @@ declare const _default: {
457
457
  tab1: string;
458
458
  tab2: string;
459
459
  tab3: string;
460
+ tooltip: string;
461
+ disabledTooltip: string;
462
+ tooltipsDescription: string;
460
463
  };
461
464
  menuAction: {
462
465
  edit: string;