@zealicsolutions/web-ui 0.2.64 → 0.2.66
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.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/helpers/constants.d.ts +2 -0
- package/dist/cjs/src/index.d.ts +1 -0
- package/dist/cjs/src/molecules/Tab/Tab.d.ts +10 -1
- package/dist/cjs/src/molecules/Tab/styles.d.ts +4 -7
- package/dist/cjs/src/molecules/Tab/utils.d.ts +3 -1
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +13 -4
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/TabGroup/styles.d.ts +3 -1
- package/dist/cjs/src/organisms/ProfileInformation/ProfileInformation.d.ts +2 -2
- package/dist/esm/index.js +11 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/helpers/constants.d.ts +2 -0
- package/dist/esm/src/index.d.ts +1 -0
- package/dist/esm/src/molecules/Tab/Tab.d.ts +10 -1
- package/dist/esm/src/molecules/Tab/styles.d.ts +4 -7
- package/dist/esm/src/molecules/Tab/utils.d.ts +3 -1
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +13 -4
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
- package/dist/esm/src/molecules/TabGroup/styles.d.ts +3 -1
- package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.d.ts +2 -2
- package/dist/index.d.ts +24 -8
- package/package.json +1 -1
package/dist/cjs/src/index.d.ts
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme';
|
3
|
+
import { StylesType } from 'typescript';
|
2
4
|
import { MenuItem } from '..';
|
3
5
|
export declare type TabOption<T = string> = {
|
4
6
|
menuText: string;
|
@@ -19,8 +21,15 @@ export declare type TabProps<T = string, K = string> = {
|
|
19
21
|
onOptionClick?: (optionKey: K) => void;
|
20
22
|
tabTheme?: TabTheme;
|
21
23
|
divider?: boolean;
|
24
|
+
tabFont?: FontSizesTypes;
|
25
|
+
textSize?: SizesTypes | number;
|
26
|
+
tabPadding?: SizesTypes | number;
|
27
|
+
textColor?: ThemeColors | string;
|
28
|
+
selectedTabTextColor?: ThemeColors | string;
|
29
|
+
selectedTabIndicatorColor?: ThemeColors | string;
|
30
|
+
styles?: StylesType;
|
22
31
|
};
|
23
|
-
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, ...tabProps }: TabProps<T, K>, ref: React.ForwardedRef<TabElement>) => JSX.Element;
|
32
|
+
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, tabFont, tabPadding, selectedTabIndicatorColor, textSize, textColor, ...tabProps }: TabProps<T, K>, ref: React.ForwardedRef<TabElement>) => JSX.Element;
|
24
33
|
export declare const Tab: <T, K>(props: TabProps<T, K> & {
|
25
34
|
ref?: React.ForwardedRef<TabElement> | undefined;
|
26
35
|
}) => ReturnType<typeof ZealTab>;
|
@@ -1,10 +1,7 @@
|
|
1
|
-
import { TabProps
|
2
|
-
declare type TabContainerProps = Pick<TabProps, 'isActive' | 'disabled' | 'tabTheme'>;
|
3
|
-
|
4
|
-
|
5
|
-
} & {
|
6
|
-
tabTheme?: TabTheme | undefined;
|
7
|
-
}, "variant">;
|
1
|
+
import { TabProps } from './Tab';
|
2
|
+
declare type TabContainerProps = Pick<TabProps, 'isActive' | 'disabled' | 'tabTheme' | 'selectedTabTextColor' | 'styles' | 'textColor'>;
|
3
|
+
declare type TabTextProps = Pick<TabProps, 'tabTheme' | 'textSize' | 'textColor' | 'tabPadding'>;
|
4
|
+
export declare const TabText: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").BoxTypeMap<{}, "div">>, import("styled-components").DefaultTheme, import("atoms").TextWrapperProps & TabTextProps, never>;
|
8
5
|
export declare const TabContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabContainerProps, never>;
|
9
6
|
export declare const CaretIconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabContainerProps, never>;
|
10
7
|
export {};
|
@@ -1,2 +1,4 @@
|
|
1
1
|
import { TabTheme } from 'molecules/Tab/Tab';
|
2
|
-
|
2
|
+
import { ThemeColors } from 'theme';
|
3
|
+
export declare const getColorForCaretDownIcon: (color?: ThemeColors | string, tabTheme?: TabTheme, disabled?: boolean) => string;
|
4
|
+
export declare const getSelectionIndicatorColor: (selectedTabIndicatorColor?: ThemeColors | string, isActiveTab?: boolean, tabTheme?: TabTheme) => string;
|
@@ -1,15 +1,24 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CSSProperties } from 'styled-components';
|
3
|
-
import { SizesTypes } from 'theme/types';
|
3
|
+
import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme/types';
|
4
|
+
import { StylesType } from 'typescript';
|
4
5
|
import { TabProps, TabTheme } from '../Tab/Tab';
|
5
6
|
export declare type TabGroupProps<T = string, K = string> = {
|
6
7
|
tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>[];
|
7
8
|
activeTabKey: T;
|
8
|
-
spacing?: SizesTypes;
|
9
9
|
onTabChange?: (tabKey: T) => void;
|
10
10
|
onOptionClick?: (optionKey: K) => void;
|
11
|
-
|
11
|
+
styles?: StylesType;
|
12
12
|
vertical?: boolean;
|
13
13
|
tabTheme?: TabTheme;
|
14
|
+
tabFont?: FontSizesTypes;
|
15
|
+
textSize?: SizesTypes | number;
|
16
|
+
tabPadding?: SizesTypes | number;
|
17
|
+
tabSpacing?: SizesTypes;
|
18
|
+
textColor?: ThemeColors | string;
|
19
|
+
selectedTabTextColor?: ThemeColors | string;
|
20
|
+
selectedTabIndicatorColor?: ThemeColors | string;
|
21
|
+
containerStyle?: CSSProperties;
|
22
|
+
containerProps?: Record<string, unknown>;
|
14
23
|
};
|
15
|
-
export declare const TabGroup: <T extends string, K extends string>({ tabs,
|
24
|
+
export declare const TabGroup: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, containerStyle, containerProps, tabSpacing, ...props }: TabGroupProps<T, K>) => JSX.Element;
|
@@ -3,7 +3,7 @@ import type { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { TabGroup as TabGroupComponent } from './TabGroup';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T extends string, K extends string>({ tabs,
|
6
|
+
component: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, containerStyle, containerProps, tabSpacing, ...props }: import("./TabGroup").TabGroupProps<T, K>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const TabGroup: ComponentStory<typeof TabGroupComponent>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { TabTheme } from 'molecules/Tab/Tab';
|
3
|
-
import { SizesTypes } from 'theme/types';
|
3
|
+
import { SizesTypes, ThemeColors } from 'theme/types';
|
4
4
|
export declare const TabsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
5
5
|
spacing: SizesTypes;
|
6
6
|
vertical: boolean;
|
@@ -12,6 +12,7 @@ declare type TabSliderProps = {
|
|
12
12
|
isActiveTab?: boolean;
|
13
13
|
vertical?: boolean;
|
14
14
|
tabTheme?: TabTheme;
|
15
|
+
selectedTabIndicatorColor?: ThemeColors | string;
|
15
16
|
};
|
16
17
|
export declare const TabSlider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabSliderProps, never>;
|
17
18
|
export declare const TabWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
@@ -25,5 +26,6 @@ export declare const TabWrapper: import("styled-components").StyledComponent<"di
|
|
25
26
|
} & {
|
26
27
|
disabled?: boolean | undefined;
|
27
28
|
tabTheme?: TabTheme | undefined;
|
29
|
+
selectedTabTextColor?: string | undefined;
|
28
30
|
}, "withoutOpacityEffect">;
|
29
31
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import { AvatarProps } from 'atoms';
|
2
|
+
import { TabProps } from 'molecules';
|
1
3
|
import { ReactNode } from 'react';
|
2
4
|
import type { Callback } from 'typescript';
|
3
|
-
import { AvatarProps } from '../../atoms';
|
4
|
-
import { TabProps } from '../../molecules/Tab/Tab';
|
5
5
|
export declare type ProfileInformationProps<TabKeys extends string> = {
|
6
6
|
backgroundImageUrl: string;
|
7
7
|
avatarProps: AvatarProps;
|