@zealicsolutions/web-ui 0.2.65 → 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/esm/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;
|
package/dist/index.d.ts
CHANGED
@@ -15,12 +15,12 @@ import { FeedContentTemplateTypes as FeedContentTemplateTypes$1, FeedContentProp
|
|
15
15
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
16
16
|
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
17
17
|
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
18
|
-
import { IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, InputProps as InputProps$1, ImageProps as ImageProps$1, ButtonProps as ButtonProps$1, TextButtonProps as TextButtonProps$1, RadioButtonsProps as RadioButtonsProps$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1 } from 'atoms';
|
18
|
+
import { IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, InputProps as InputProps$1, ImageProps as ImageProps$1, ButtonProps as ButtonProps$1, TextButtonProps as TextButtonProps$1, RadioButtonsProps as RadioButtonsProps$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1, AvatarProps as AvatarProps$1 } from 'atoms';
|
19
19
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
20
20
|
import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
|
21
21
|
import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormState, Control as Control$1 } from 'react-hook-form';
|
22
22
|
import { ProcessTrackerStatus as ProcessTrackerStatus$1, FilteredFeedContentType as FilteredFeedContentType$1, ConsentProps as ConsentProps$1, HeroSliderProps as HeroSliderProps$1, ProcessTrackerProps as ProcessTrackerProps$1 } from 'organisms';
|
23
|
-
import { FieldSectionProps as FieldSectionProps$1, MenuItemsProps as MenuItemsProps$1, InputFieldProps as InputFieldProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1 } from 'molecules';
|
23
|
+
import { FieldSectionProps as FieldSectionProps$1, MenuItemsProps as MenuItemsProps$1, InputFieldProps as InputFieldProps$1, TabProps as TabProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1 } from 'molecules';
|
24
24
|
import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
|
25
25
|
import { UIFields as UIFields$2 } from 'fieldsConfiguration';
|
26
26
|
import { ConsentProps as ConsentProps$2 } from 'organisms/Consent/Consent';
|
@@ -36,6 +36,7 @@ import { AlertProps as AlertProps$2 } from 'molecules/Alert/Alert';
|
|
36
36
|
import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
|
37
37
|
import { AnnotationsList as AnnotationsList$1 } from 'contexts/MlrRichTextViewerContext/types';
|
38
38
|
import * as contexts_MlrRichTextViewerContext_MlrRichTextViewerContext from 'contexts/MlrRichTextViewerContext/MlrRichTextViewerContext';
|
39
|
+
export * from 'helpers/constants';
|
39
40
|
|
40
41
|
declare type ButtonVariant = 'primary' | 'secondary' | 'text';
|
41
42
|
declare type BaseButtonProps = PropsWithChildren<{
|
@@ -548,8 +549,15 @@ declare type TabProps<T = string, K = string> = {
|
|
548
549
|
onOptionClick?: (optionKey: K) => void;
|
549
550
|
tabTheme?: TabTheme;
|
550
551
|
divider?: boolean;
|
552
|
+
tabFont?: FontSizesTypes$2;
|
553
|
+
textSize?: SizesTypes$1 | number;
|
554
|
+
tabPadding?: SizesTypes$1 | number;
|
555
|
+
textColor?: ThemeColors$2 | string;
|
556
|
+
selectedTabTextColor?: ThemeColors$2 | string;
|
557
|
+
selectedTabIndicatorColor?: ThemeColors$2 | string;
|
558
|
+
styles?: StylesType;
|
551
559
|
};
|
552
|
-
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, ...tabProps }: TabProps<T, K>, ref: React__default.ForwardedRef<TabElement>) => JSX.Element;
|
560
|
+
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;
|
553
561
|
declare const Tab: <T, K>(props: TabProps<T, K> & {
|
554
562
|
ref?: React__default.ForwardedRef<TabElement> | undefined;
|
555
563
|
}) => ReturnType<typeof ZealTab>;
|
@@ -557,14 +565,22 @@ declare const Tab: <T, K>(props: TabProps<T, K> & {
|
|
557
565
|
declare type TabGroupProps<T = string, K = string> = {
|
558
566
|
tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>[];
|
559
567
|
activeTabKey: T;
|
560
|
-
spacing?: SizesTypes$2;
|
561
568
|
onTabChange?: (tabKey: T) => void;
|
562
569
|
onOptionClick?: (optionKey: K) => void;
|
563
|
-
|
570
|
+
styles?: StylesType;
|
564
571
|
vertical?: boolean;
|
565
572
|
tabTheme?: TabTheme;
|
573
|
+
tabFont?: FontSizesTypes$1;
|
574
|
+
textSize?: SizesTypes$2 | number;
|
575
|
+
tabPadding?: SizesTypes$2 | number;
|
576
|
+
tabSpacing?: SizesTypes$2;
|
577
|
+
textColor?: ThemeColors$1 | string;
|
578
|
+
selectedTabTextColor?: ThemeColors$1 | string;
|
579
|
+
selectedTabIndicatorColor?: ThemeColors$1 | string;
|
580
|
+
containerStyle?: CSSProperties;
|
581
|
+
containerProps?: Record<string, unknown>;
|
566
582
|
};
|
567
|
-
declare const TabGroup: <T extends string, K extends string>({ tabs,
|
583
|
+
declare const TabGroup: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, containerStyle, containerProps, tabSpacing, ...props }: TabGroupProps<T, K>) => JSX.Element;
|
568
584
|
|
569
585
|
declare type FieldSectionProps<T extends object> = {
|
570
586
|
label: string;
|
@@ -796,8 +812,8 @@ declare type FooterLink = {
|
|
796
812
|
|
797
813
|
declare type ProfileInformationProps<TabKeys extends string> = {
|
798
814
|
backgroundImageUrl: string;
|
799
|
-
avatarProps: AvatarProps;
|
800
|
-
tabs: TabProps<string, TabKeys>[];
|
815
|
+
avatarProps: AvatarProps$1;
|
816
|
+
tabs: TabProps$1<string, TabKeys>[];
|
801
817
|
tabContents: Record<TabKeys, () => ReactNode>;
|
802
818
|
initialTabKey: TabKeys;
|
803
819
|
title: string;
|