@zealicsolutions/web-ui 0.2.61 → 0.2.63
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/molecules/Tab/Tab.d.ts +4 -1
- package/dist/cjs/src/molecules/Tab/styles.d.ts +5 -3
- package/dist/cjs/src/molecules/Tab/utils.d.ts +2 -0
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +4 -3
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/TabGroup/styles.d.ts +17 -0
- package/dist/cjs/src/molecules/TabGroup/useTabAnimation.d.ts +2 -3
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/molecules/Tab/Tab.d.ts +4 -1
- package/dist/esm/src/molecules/Tab/styles.d.ts +5 -3
- package/dist/esm/src/molecules/Tab/utils.d.ts +2 -0
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +4 -3
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
- package/dist/esm/src/molecules/TabGroup/styles.d.ts +17 -0
- package/dist/esm/src/molecules/TabGroup/useTabAnimation.d.ts +2 -3
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/index.d.ts +18 -3
- package/package.json +1 -1
@@ -7,6 +7,7 @@ export declare type TabOption<T = string> = {
|
|
7
7
|
isSelected?: boolean;
|
8
8
|
};
|
9
9
|
declare type TabElement = HTMLDivElement | null;
|
10
|
+
export declare type TabTheme = 'light' | 'dark';
|
10
11
|
export declare type TabProps<T = string, K = string> = {
|
11
12
|
tabKey: T;
|
12
13
|
text: string;
|
@@ -16,8 +17,10 @@ export declare type TabProps<T = string, K = string> = {
|
|
16
17
|
onClick?: (key: T) => void;
|
17
18
|
options?: MenuItem<K>[];
|
18
19
|
onOptionClick?: (optionKey: K) => void;
|
20
|
+
tabTheme?: TabTheme;
|
21
|
+
divider?: boolean;
|
19
22
|
};
|
20
|
-
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, ...tabProps }: TabProps<T, K>, ref: React.ForwardedRef<TabElement>) => JSX.Element;
|
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;
|
21
24
|
export declare const Tab: <T, K>(props: TabProps<T, K> & {
|
22
25
|
ref?: React.ForwardedRef<TabElement> | undefined;
|
23
26
|
}) => ReturnType<typeof ZealTab>;
|
@@ -1,7 +1,9 @@
|
|
1
|
-
import { TabProps } from './Tab';
|
2
|
-
declare type TabContainerProps = Pick<TabProps, 'isActive' | 'disabled'>;
|
3
|
-
export declare const TabText: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").BoxTypeMap<{}, "div">>, import("styled-components").DefaultTheme, import("
|
1
|
+
import { TabProps, TabTheme } from './Tab';
|
2
|
+
declare type TabContainerProps = Pick<TabProps, 'isActive' | 'disabled' | 'tabTheme'>;
|
3
|
+
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 & {
|
4
4
|
variant: string;
|
5
|
+
} & {
|
6
|
+
tabTheme?: TabTheme | undefined;
|
5
7
|
}, "variant">;
|
6
8
|
export declare const TabContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabContainerProps, never>;
|
7
9
|
export declare const CaretIconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabContainerProps, never>;
|
@@ -1,14 +1,15 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CSSProperties } from 'styled-components';
|
3
3
|
import { SizesTypes } from 'theme/types';
|
4
|
-
import { TabProps } from '../Tab/Tab';
|
4
|
+
import { TabProps, TabTheme } from '../Tab/Tab';
|
5
5
|
export declare type TabGroupProps<T = string, K = string> = {
|
6
|
-
tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options'>[];
|
6
|
+
tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>[];
|
7
7
|
activeTabKey: T;
|
8
8
|
spacing?: SizesTypes;
|
9
9
|
onTabChange?: (tabKey: T) => void;
|
10
10
|
onOptionClick?: (optionKey: K) => void;
|
11
11
|
style?: CSSProperties;
|
12
12
|
vertical?: boolean;
|
13
|
+
tabTheme?: TabTheme;
|
13
14
|
};
|
14
|
-
export declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, }: TabGroupProps<T, K>) => JSX.Element;
|
15
|
+
export declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, tabTheme, }: 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, spacing, vertical, activeTabKey, onTabChange, style, }: import("./TabGroup").TabGroupProps<T, K>) => JSX.Element;
|
6
|
+
component: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, tabTheme, }: import("./TabGroup").TabGroupProps<T, K>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const TabGroup: ComponentStory<typeof TabGroupComponent>;
|
@@ -1,3 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { TabTheme } from 'molecules/Tab/Tab';
|
1
3
|
import { SizesTypes } from 'theme/types';
|
2
4
|
export declare const TabsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
3
5
|
spacing: SizesTypes;
|
@@ -7,6 +9,21 @@ export declare const TabGroupContainer: import("styled-components").StyledCompon
|
|
7
9
|
declare type TabSliderProps = {
|
8
10
|
width: number;
|
9
11
|
left: number;
|
12
|
+
isActiveTab?: boolean;
|
13
|
+
vertical?: boolean;
|
14
|
+
tabTheme?: TabTheme;
|
10
15
|
};
|
11
16
|
export declare const TabSlider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabSliderProps, never>;
|
17
|
+
export declare const TabWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
18
|
+
activeOpacity?: number | undefined;
|
19
|
+
withoutOpacityEffect?: boolean | undefined;
|
20
|
+
disabled?: boolean | undefined;
|
21
|
+
} & {
|
22
|
+
children?: import("react").ReactNode;
|
23
|
+
} & {
|
24
|
+
withoutOpacityEffect: boolean;
|
25
|
+
} & {
|
26
|
+
disabled?: boolean | undefined;
|
27
|
+
tabTheme?: TabTheme | undefined;
|
28
|
+
}, "withoutOpacityEffect">;
|
12
29
|
export {};
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
export declare const useTabAnimation: (activeTab: string) => {
|
3
|
-
|
4
|
-
|
5
|
-
tabUnderlineWidth: number;
|
3
|
+
tabsUnderlineLeft: number[];
|
4
|
+
tabsUnderlineWidth: number[];
|
6
5
|
tabsRef: import("react").MutableRefObject<(HTMLDivElement | null)[]>;
|
7
6
|
};
|
@@ -10,6 +10,7 @@ export * from './Drawer/Drawer';
|
|
10
10
|
export * from './Columns/Columns';
|
11
11
|
export * from './MenuItems/MenuItems';
|
12
12
|
export * from './AvatarDropdown/AvatarDropdown';
|
13
|
+
export * from './Tab/Tab';
|
13
14
|
export * from './TabGroup/TabGroup';
|
14
15
|
export * from './FieldSection/FieldSection';
|
15
16
|
export * from './MenuNavigation/MenuNavigation';
|