@zealicsolutions/web-ui 0.2.69 → 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 +0 -1
- 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 +0 -1
- 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 +38 -18
- 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">;
|
package/dist/index.d.ts
CHANGED
@@ -214,7 +214,7 @@ declare const TextButton: styled_components.StyledComponent<"div", styled_compon
|
|
214
214
|
children?: React$1.ReactNode;
|
215
215
|
} & {
|
216
216
|
withoutOpacityEffect: boolean;
|
217
|
-
} & Pick<BaseButtonProps, "
|
217
|
+
} & Pick<BaseButtonProps, "disabled" | "onClick" | "textSize" | "textColor" | "styles" | "children" | "buttonPadding" | "buttonFont"> & {
|
218
218
|
buttonLink?: string | undefined;
|
219
219
|
elementId?: string | undefined;
|
220
220
|
}, "withoutOpacityEffect">;
|
@@ -372,24 +372,44 @@ declare type TabTheme = 'light' | 'dark';
|
|
372
372
|
declare type TabProps<T = string, K = string> = {
|
373
373
|
tabKey: T;
|
374
374
|
text: string;
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
375
|
+
} & Partial<{
|
376
|
+
disabled: boolean;
|
377
|
+
vertical: boolean;
|
378
|
+
isActive: boolean;
|
379
|
+
onClick: (key: T) => void;
|
380
|
+
options: MenuItem$1<K>[];
|
381
|
+
onOptionClick: (optionKey: K) => void;
|
382
|
+
tabTheme: TabTheme;
|
383
|
+
divider: boolean;
|
384
|
+
tabFont: FontSizesTypes$1;
|
385
|
+
textSize: number;
|
386
|
+
tabPadding: SizesTypes$1 | number;
|
387
|
+
textColor: ThemeColors$1 | string;
|
388
|
+
selectedTabTextColor: ThemeColors$1 | string;
|
389
|
+
selectedTabIndicatorColor: ThemeColors$1 | string;
|
390
|
+
styles: StylesType;
|
391
|
+
}>;
|
391
392
|
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__default.ForwardedRef<TabElement>) => JSX.Element;
|
392
|
-
declare const Tab: <T, K>(props:
|
393
|
+
declare const Tab: <T, K>(props: {
|
394
|
+
tabKey: T;
|
395
|
+
text: string;
|
396
|
+
} & Partial<{
|
397
|
+
disabled: boolean;
|
398
|
+
vertical: boolean;
|
399
|
+
isActive: boolean;
|
400
|
+
onClick: (key: T) => void;
|
401
|
+
options: MenuItem$1<K>[];
|
402
|
+
onOptionClick: (optionKey: K) => void;
|
403
|
+
tabTheme: TabTheme;
|
404
|
+
divider: boolean;
|
405
|
+
tabFont: FontSizesTypes$1;
|
406
|
+
textSize: number;
|
407
|
+
tabPadding: SizesTypes$1 | number;
|
408
|
+
textColor: ThemeColors$1 | string;
|
409
|
+
selectedTabTextColor: ThemeColors$1 | string;
|
410
|
+
selectedTabIndicatorColor: ThemeColors$1 | string;
|
411
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
412
|
+
}> & {
|
393
413
|
ref?: React__default.ForwardedRef<TabElement> | undefined;
|
394
414
|
}) => ReturnType<typeof ZealTab>;
|
395
415
|
|