@zealicsolutions/web-ui 0.2.65 → 0.2.67
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 +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Buttons/Button.d.ts +1 -3
- package/dist/cjs/src/atoms/Buttons/Button.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +5 -3
- package/dist/cjs/src/{molecules → atoms}/Tab/Tab.d.ts +11 -2
- package/dist/cjs/src/atoms/Tab/Tab.stories.d.ts +12 -0
- package/dist/cjs/src/{molecules → atoms}/Tab/styles.d.ts +4 -7
- package/dist/cjs/src/atoms/Tab/utils.d.ts +4 -0
- package/dist/cjs/src/atoms/index.d.ts +1 -0
- package/dist/cjs/src/helpers/constants.d.ts +2 -0
- package/dist/cjs/src/index.d.ts +1 -0
- package/dist/cjs/src/molecules/Columns/styles.d.ts +4 -2
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +14 -5
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +3 -3
- package/dist/cjs/src/molecules/TabGroup/styles.d.ts +4 -2
- package/dist/cjs/src/molecules/index.d.ts +0 -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/atoms/Buttons/Button.d.ts +1 -3
- package/dist/esm/src/atoms/Buttons/Button.stories.d.ts +1 -1
- package/dist/esm/src/atoms/Buttons/TextButton.d.ts +5 -3
- package/dist/esm/src/{molecules → atoms}/Tab/Tab.d.ts +11 -2
- package/dist/esm/src/atoms/Tab/Tab.stories.d.ts +12 -0
- package/dist/esm/src/{molecules → atoms}/Tab/styles.d.ts +4 -7
- package/dist/esm/src/atoms/Tab/utils.d.ts +4 -0
- package/dist/esm/src/atoms/index.d.ts +1 -0
- package/dist/esm/src/helpers/constants.d.ts +2 -0
- package/dist/esm/src/index.d.ts +1 -0
- package/dist/esm/src/molecules/Columns/styles.d.ts +4 -2
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +14 -5
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +3 -3
- package/dist/esm/src/molecules/TabGroup/styles.d.ts +4 -2
- package/dist/esm/src/molecules/index.d.ts +0 -1
- package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.d.ts +2 -2
- package/dist/index.d.ts +56 -40
- package/package.json +1 -1
- package/dist/cjs/src/molecules/Tab/utils.d.ts +0 -2
- package/dist/esm/src/molecules/Tab/utils.d.ts +0 -2
@@ -8,8 +8,6 @@ export declare type BaseButtonProps = PropsWithChildren<{
|
|
8
8
|
disabled?: boolean;
|
9
9
|
fullWidth?: boolean;
|
10
10
|
size?: 'medium' | 'small';
|
11
|
-
activeOpacity?: number;
|
12
|
-
withoutOpacityEffect?: boolean;
|
13
11
|
}>;
|
14
12
|
export declare type ButtonProps = BaseButtonProps & {
|
15
13
|
fullWidth?: boolean;
|
@@ -21,4 +19,4 @@ export declare type ButtonProps = BaseButtonProps & {
|
|
21
19
|
containerStyle?: CSSProperties;
|
22
20
|
buttonStyle?: CSSProperties;
|
23
21
|
};
|
24
|
-
export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children,
|
22
|
+
export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, }: ButtonProps) => JSX.Element | null;
|
@@ -6,7 +6,7 @@ import { IconButton as IconButtonComponent } from './IconButton';
|
|
6
6
|
import { TouchableOpacityProps } from './TouchableOpacity';
|
7
7
|
declare const _default: {
|
8
8
|
title: string;
|
9
|
-
component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children,
|
9
|
+
component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, }: import("./Button").ButtonProps) => JSX.Element | null;
|
10
10
|
};
|
11
11
|
export default _default;
|
12
12
|
export declare const Button: ComponentStory<typeof ButtonComponent>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { BaseButtonProps } from './Button';
|
3
|
-
export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | '
|
3
|
+
export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'children'> & {
|
4
4
|
buttonLink?: string;
|
5
5
|
elementId?: string;
|
6
6
|
};
|
@@ -10,7 +10,9 @@ export declare const TextButton: import("styled-components").StyledComponent<"di
|
|
10
10
|
disabled?: boolean | undefined;
|
11
11
|
} & {
|
12
12
|
children?: import("react").ReactNode;
|
13
|
-
} &
|
13
|
+
} & {
|
14
|
+
withoutOpacityEffect: boolean;
|
15
|
+
} & Pick<BaseButtonProps, "children" | "onClick" | "disabled"> & {
|
14
16
|
buttonLink?: string | undefined;
|
15
17
|
elementId?: string | undefined;
|
16
|
-
},
|
18
|
+
}, "withoutOpacityEffect">;
|
@@ -1,5 +1,7 @@
|
|
1
|
+
import { MenuItem } from 'molecules';
|
1
2
|
import React from 'react';
|
2
|
-
import {
|
3
|
+
import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme';
|
4
|
+
import { StylesType } from 'typescript';
|
3
5
|
export declare type TabOption<T = string> = {
|
4
6
|
menuText: string;
|
5
7
|
menuKey: T;
|
@@ -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?: 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>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import React from 'react';
|
3
|
+
import { Tab as TabComponent } from './Tab';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: <T, K>(props: import("atoms").TabProps<T, K> & {
|
7
|
+
ref?: React.ForwardedRef<HTMLDivElement | null> | undefined;
|
8
|
+
}) => JSX.Element;
|
9
|
+
};
|
10
|
+
export default _default;
|
11
|
+
declare type Story = StoryObj<typeof TabComponent>;
|
12
|
+
export declare const Tab: Story;
|
@@ -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 'atoms/Tab/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 {};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { TabTheme } from 'atoms/Tab/Tab';
|
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;
|
package/dist/cjs/src/index.d.ts
CHANGED
@@ -9,10 +9,12 @@ export declare const Link: import("styled-components").StyledComponent<"div", im
|
|
9
9
|
disabled?: boolean | undefined;
|
10
10
|
} & {
|
11
11
|
children?: import("react").ReactNode;
|
12
|
-
} &
|
12
|
+
} & {
|
13
|
+
withoutOpacityEffect: boolean;
|
14
|
+
} & Pick<import("atoms").BaseButtonProps, "children" | "onClick" | "disabled"> & {
|
13
15
|
buttonLink?: string | undefined;
|
14
16
|
elementId?: string | undefined;
|
15
|
-
},
|
17
|
+
}, "withoutOpacityEffect">;
|
16
18
|
export declare const ColumnCardWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
17
19
|
isMobile: boolean;
|
18
20
|
}, never>;
|
@@ -1,15 +1,24 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { TabProps, TabTheme } from 'atoms';
|
2
3
|
import { CSSProperties } from 'styled-components';
|
3
|
-
import { SizesTypes } from 'theme/types';
|
4
|
-
import {
|
4
|
+
import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme/types';
|
5
|
+
import { StylesType } from 'typescript';
|
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?: 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;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type {
|
2
|
+
import type { StoryFn } 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
|
-
export declare const TabGroup:
|
9
|
+
export declare const TabGroup: StoryFn<typeof TabGroupComponent>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { TabTheme } from '
|
3
|
-
import { SizesTypes } from 'theme/types';
|
2
|
+
import { TabTheme } from 'atoms/Tab/Tab';
|
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 {};
|
@@ -10,7 +10,6 @@ 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';
|
14
13
|
export * from './TabGroup/TabGroup';
|
15
14
|
export * from './FieldSection/FieldSection';
|
16
15
|
export * from './MenuNavigation/MenuNavigation';
|
@@ -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;
|