@zealicsolutions/web-ui 0.2.68 → 0.2.70
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.map +1 -1
- package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +1 -1
- package/dist/cjs/src/atoms/Tab/Tab.d.ts +37 -17
- package/dist/cjs/src/atoms/Tab/Tab.stories.d.ts +20 -1
- package/dist/cjs/src/atoms/Tab/styles.d.ts +0 -1
- package/dist/cjs/src/molecules/Columns/styles.d.ts +1 -1
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +2 -2
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +0 -1
- package/dist/cjs/src/molecules/TabGroup/styles.d.ts +0 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Buttons/TextButton.d.ts +1 -1
- package/dist/esm/src/atoms/Tab/Tab.d.ts +37 -17
- package/dist/esm/src/atoms/Tab/Tab.stories.d.ts +20 -1
- package/dist/esm/src/atoms/Tab/styles.d.ts +0 -1
- package/dist/esm/src/molecules/Columns/styles.d.ts +1 -1
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +2 -2
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +0 -1
- package/dist/esm/src/molecules/TabGroup/styles.d.ts +0 -1
- package/dist/index.d.ts +41 -20
- package/package.json +1 -1
@@ -12,7 +12,7 @@ export declare const TextButton: import("styled-components").StyledComponent<"di
|
|
12
12
|
children?: import("react").ReactNode;
|
13
13
|
} & {
|
14
14
|
withoutOpacityEffect: boolean;
|
15
|
-
} & Pick<BaseButtonProps, "
|
15
|
+
} & Pick<BaseButtonProps, "disabled" | "onClick" | "textSize" | "textColor" | "styles" | "children" | "buttonPadding" | "buttonFont"> & {
|
16
16
|
buttonLink?: string | undefined;
|
17
17
|
elementId?: string | undefined;
|
18
18
|
}, "withoutOpacityEffect">;
|
@@ -13,24 +13,44 @@ export declare type TabTheme = 'light' | 'dark';
|
|
13
13
|
export declare type TabProps<T = string, K = string> = {
|
14
14
|
tabKey: T;
|
15
15
|
text: string;
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
16
|
+
} & Partial<{
|
17
|
+
disabled: boolean;
|
18
|
+
vertical: boolean;
|
19
|
+
isActive: boolean;
|
20
|
+
onClick: (key: T) => void;
|
21
|
+
options: MenuItem<K>[];
|
22
|
+
onOptionClick: (optionKey: K) => void;
|
23
|
+
tabTheme: TabTheme;
|
24
|
+
divider: boolean;
|
25
|
+
tabFont: FontSizesTypes;
|
26
|
+
textSize: number;
|
27
|
+
tabPadding: SizesTypes | number;
|
28
|
+
textColor: ThemeColors | string;
|
29
|
+
selectedTabTextColor: ThemeColors | string;
|
30
|
+
selectedTabIndicatorColor: ThemeColors | string;
|
31
|
+
styles: StylesType;
|
32
|
+
}>;
|
32
33
|
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;
|
33
|
-
export declare const Tab: <T, K>(props:
|
34
|
+
export declare const Tab: <T, K>(props: {
|
35
|
+
tabKey: T;
|
36
|
+
text: string;
|
37
|
+
} & Partial<{
|
38
|
+
disabled: boolean;
|
39
|
+
vertical: boolean;
|
40
|
+
isActive: boolean;
|
41
|
+
onClick: (key: T) => void;
|
42
|
+
options: MenuItem<K>[];
|
43
|
+
onOptionClick: (optionKey: K) => void;
|
44
|
+
tabTheme: TabTheme;
|
45
|
+
divider: boolean;
|
46
|
+
tabFont: FontSizesTypes;
|
47
|
+
textSize: number;
|
48
|
+
tabPadding: SizesTypes | number;
|
49
|
+
textColor: ThemeColors | string;
|
50
|
+
selectedTabTextColor: ThemeColors | string;
|
51
|
+
selectedTabIndicatorColor: ThemeColors | string;
|
52
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
53
|
+
}> & {
|
34
54
|
ref?: React.ForwardedRef<TabElement> | undefined;
|
35
55
|
}) => ReturnType<typeof ZealTab>;
|
36
56
|
export {};
|
@@ -3,7 +3,26 @@ import React from 'react';
|
|
3
3
|
import { Tab as TabComponent } from './Tab';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T, K>(props:
|
6
|
+
component: <T, K>(props: {
|
7
|
+
tabKey: T;
|
8
|
+
text: string;
|
9
|
+
} & Partial<{
|
10
|
+
disabled: boolean;
|
11
|
+
vertical: boolean;
|
12
|
+
isActive: boolean;
|
13
|
+
onClick: (key: T) => void;
|
14
|
+
options: import("../..").MenuItem<K>[];
|
15
|
+
onOptionClick: (optionKey: K) => void;
|
16
|
+
tabTheme: import("atoms").TabTheme;
|
17
|
+
divider: boolean;
|
18
|
+
tabFont: import("theme").FontSizesTypes;
|
19
|
+
textSize: number;
|
20
|
+
tabPadding: number | import("theme").SizesTypes;
|
21
|
+
textColor: string;
|
22
|
+
selectedTabTextColor: string;
|
23
|
+
selectedTabIndicatorColor: string;
|
24
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
25
|
+
}> & {
|
7
26
|
ref?: React.ForwardedRef<HTMLDivElement | null> | undefined;
|
8
27
|
}) => JSX.Element;
|
9
28
|
};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { TabProps } from 'atoms/Tab/Tab';
|
3
2
|
declare type TabContainerProps = Pick<TabProps, 'isActive' | 'disabled' | 'tabTheme' | 'selectedTabTextColor' | 'styles' | 'textColor'>;
|
4
3
|
declare type TabTextProps = Pick<TabProps, 'tabTheme' | 'textSize' | 'textColor' | 'tabPadding'>;
|
@@ -11,7 +11,7 @@ export declare const Link: import("styled-components").StyledComponent<"div", im
|
|
11
11
|
children?: import("react").ReactNode;
|
12
12
|
} & {
|
13
13
|
withoutOpacityEffect: boolean;
|
14
|
-
} & Pick<import("atoms").BaseButtonProps, "
|
14
|
+
} & Pick<import("atoms").BaseButtonProps, "disabled" | "onClick" | "textSize" | "textColor" | "styles" | "children" | "buttonPadding" | "buttonFont"> & {
|
15
15
|
buttonLink?: string | undefined;
|
16
16
|
elementId?: string | undefined;
|
17
17
|
}, "withoutOpacityEffect">;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { TabProps, TabTheme } from 'atoms';
|
3
2
|
import { CSSProperties } from 'styled-components';
|
4
3
|
import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme/types';
|
5
4
|
import { StylesType } from 'typescript';
|
5
|
+
export declare type TabType<T = string, K = string> = Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>;
|
6
6
|
export declare type TabGroupProps<T = string, K = string> = {
|
7
|
-
tabs:
|
7
|
+
tabs: TabType<T, K>[];
|
8
8
|
activeTabKey: T;
|
9
9
|
onTabChange?: (tabKey: T) => void;
|
10
10
|
onOptionClick?: (optionKey: K) => void;
|