@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.
Files changed (40) hide show
  1. package/dist/cjs/index.js +3 -3
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/atoms/Buttons/Button.d.ts +1 -3
  4. package/dist/cjs/src/atoms/Buttons/Button.stories.d.ts +1 -1
  5. package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +5 -3
  6. package/dist/cjs/src/{molecules → atoms}/Tab/Tab.d.ts +11 -2
  7. package/dist/cjs/src/atoms/Tab/Tab.stories.d.ts +12 -0
  8. package/dist/cjs/src/{molecules → atoms}/Tab/styles.d.ts +4 -7
  9. package/dist/cjs/src/atoms/Tab/utils.d.ts +4 -0
  10. package/dist/cjs/src/atoms/index.d.ts +1 -0
  11. package/dist/cjs/src/helpers/constants.d.ts +2 -0
  12. package/dist/cjs/src/index.d.ts +1 -0
  13. package/dist/cjs/src/molecules/Columns/styles.d.ts +4 -2
  14. package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +14 -5
  15. package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +3 -3
  16. package/dist/cjs/src/molecules/TabGroup/styles.d.ts +4 -2
  17. package/dist/cjs/src/molecules/index.d.ts +0 -1
  18. package/dist/cjs/src/organisms/ProfileInformation/ProfileInformation.d.ts +2 -2
  19. package/dist/esm/index.js +11 -11
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/esm/src/atoms/Buttons/Button.d.ts +1 -3
  22. package/dist/esm/src/atoms/Buttons/Button.stories.d.ts +1 -1
  23. package/dist/esm/src/atoms/Buttons/TextButton.d.ts +5 -3
  24. package/dist/esm/src/{molecules → atoms}/Tab/Tab.d.ts +11 -2
  25. package/dist/esm/src/atoms/Tab/Tab.stories.d.ts +12 -0
  26. package/dist/esm/src/{molecules → atoms}/Tab/styles.d.ts +4 -7
  27. package/dist/esm/src/atoms/Tab/utils.d.ts +4 -0
  28. package/dist/esm/src/atoms/index.d.ts +1 -0
  29. package/dist/esm/src/helpers/constants.d.ts +2 -0
  30. package/dist/esm/src/index.d.ts +1 -0
  31. package/dist/esm/src/molecules/Columns/styles.d.ts +4 -2
  32. package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +14 -5
  33. package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +3 -3
  34. package/dist/esm/src/molecules/TabGroup/styles.d.ts +4 -2
  35. package/dist/esm/src/molecules/index.d.ts +0 -1
  36. package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.d.ts +2 -2
  37. package/dist/index.d.ts +56 -40
  38. package/package.json +1 -1
  39. package/dist/cjs/src/molecules/Tab/utils.d.ts +0 -2
  40. 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, activeOpacity, withoutOpacityEffect, buttonStyle, size, }: ButtonProps) => JSX.Element | null;
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, activeOpacity, withoutOpacityEffect, buttonStyle, size, }: import("./Button").ButtonProps) => JSX.Element | null;
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' | 'activeOpacity' | 'withoutOpacityEffect' | 'onClick' | 'children'> & {
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
- } & Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "activeOpacity" | "withoutOpacityEffect"> & {
13
+ } & {
14
+ withoutOpacityEffect: boolean;
15
+ } & Pick<BaseButtonProps, "children" | "onClick" | "disabled"> & {
14
16
  buttonLink?: string | undefined;
15
17
  elementId?: string | undefined;
16
- }, never>;
18
+ }, "withoutOpacityEffect">;
@@ -1,5 +1,7 @@
1
+ import { MenuItem } from 'molecules';
1
2
  import React from 'react';
2
- import { MenuItem } from '..';
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, 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
- variant: string;
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;
@@ -23,3 +23,4 @@ export * from './RadioButtons/RadioButtons';
23
23
  export * from './Circle/Circle';
24
24
  export * from './CircularIndicator/CircularIndicator';
25
25
  export * from './Buttons/IconButton';
26
+ export * from './Tab/Tab';
@@ -0,0 +1,2 @@
1
+ export declare const sizings: (string | number)[];
2
+ export declare const fonts: string[];
@@ -6,3 +6,4 @@ export * from './hooks';
6
6
  export * from './theme';
7
7
  export * from './fieldsConfiguration';
8
8
  export * from './contexts';
9
+ export * from 'helpers/constants';
@@ -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
- } & Pick<import("atoms").BaseButtonProps, "children" | "onClick" | "disabled" | "activeOpacity" | "withoutOpacityEffect"> & {
12
+ } & {
13
+ withoutOpacityEffect: boolean;
14
+ } & Pick<import("atoms").BaseButtonProps, "children" | "onClick" | "disabled"> & {
13
15
  buttonLink?: string | undefined;
14
16
  elementId?: string | undefined;
15
- }, never>;
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 { TabProps, TabTheme } from '../Tab/Tab';
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
- style?: CSSProperties;
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, spacing, vertical, activeTabKey, onTabChange, style, tabTheme, }: TabGroupProps<T, K>) => JSX.Element;
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 { ComponentStory } from '@storybook/react';
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, spacing, vertical, activeTabKey, onTabChange, style, tabTheme, }: import("./TabGroup").TabGroupProps<T, K>) => JSX.Element;
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: ComponentStory<typeof TabGroupComponent>;
9
+ export declare const TabGroup: StoryFn<typeof TabGroupComponent>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { TabTheme } from 'molecules/Tab/Tab';
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;
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, TabProps as TabProps$1, TabTheme as TabTheme$1, RadioButtonsProps as RadioButtonsProps$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1, AvatarProps as AvatarProps$1 } from 'atoms';
19
+ import { MenuItem as MenuItem$1, FieldSectionProps as FieldSectionProps$1, MenuItemsProps as MenuItemsProps$1, InputFieldProps as InputFieldProps$1, TabProps as TabProps$2, 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';
19
20
  import { Control, ControllerProps } from 'react-hook-form/dist/types';
20
21
  import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
21
22
  import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormState, Control as Control$1 } from 'react-hook-form';
22
23
  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';
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<{
@@ -44,8 +45,6 @@ declare type BaseButtonProps = PropsWithChildren<{
44
45
  disabled?: boolean;
45
46
  fullWidth?: boolean;
46
47
  size?: 'medium' | 'small';
47
- activeOpacity?: number;
48
- withoutOpacityEffect?: boolean;
49
48
  }>;
50
49
  declare type ButtonProps = BaseButtonProps & {
51
50
  fullWidth?: boolean;
@@ -57,7 +56,7 @@ declare type ButtonProps = BaseButtonProps & {
57
56
  containerStyle?: CSSProperties;
58
57
  buttonStyle?: CSSProperties;
59
58
  };
60
- declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, activeOpacity, withoutOpacityEffect, buttonStyle, size, }: ButtonProps) => JSX.Element | null;
59
+ declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, }: ButtonProps) => JSX.Element | null;
61
60
 
62
61
  declare type TouchableOpacityProps = PropsWithChildren<{
63
62
  activeOpacity?: number;
@@ -187,7 +186,7 @@ declare type ImageProps = {
187
186
  declare const Image: styled_components.StyledComponent<"img", styled_components.DefaultTheme, ImageProps, never>;
188
187
  declare const BackgroundImage: styled_components.StyledComponent<"img", styled_components.DefaultTheme, ImageProps, never>;
189
188
 
190
- declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'activeOpacity' | 'withoutOpacityEffect' | 'onClick' | 'children'> & {
189
+ declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'children'> & {
191
190
  buttonLink?: string;
192
191
  elementId?: string;
193
192
  };
@@ -197,10 +196,12 @@ declare const TextButton: styled_components.StyledComponent<"div", styled_compon
197
196
  disabled?: boolean | undefined;
198
197
  } & {
199
198
  children?: React$1.ReactNode;
200
- } & Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "activeOpacity" | "withoutOpacityEffect"> & {
199
+ } & {
200
+ withoutOpacityEffect: boolean;
201
+ } & Pick<BaseButtonProps, "children" | "onClick" | "disabled"> & {
201
202
  buttonLink?: string | undefined;
202
203
  elementId?: string | undefined;
203
- }, never>;
204
+ }, "withoutOpacityEffect">;
204
205
 
205
206
  declare type ValidationTagStatus = 'DEFAULT' | 'ERROR' | 'SUCCESS';
206
207
  declare type ValidationTagProps = {
@@ -343,6 +344,38 @@ declare type IconButtonProps = {
343
344
  };
344
345
  declare const IconButton: ({ name, color, onClick, disabled, activeOpacity, withoutOpacityEffect, ...props }: IconButtonProps & TouchableOpacityProps$1) => JSX.Element;
345
346
 
347
+ declare type TabOption<T = string> = {
348
+ menuText: string;
349
+ menuKey: T;
350
+ onMenuClick?: (key: T) => void;
351
+ isSelected?: boolean;
352
+ };
353
+ declare type TabElement = HTMLDivElement | null;
354
+ declare type TabTheme = 'light' | 'dark';
355
+ declare type TabProps<T = string, K = string> = {
356
+ tabKey: T;
357
+ text: string;
358
+ disabled?: boolean;
359
+ vertical?: boolean;
360
+ isActive?: boolean;
361
+ onClick?: (key: T) => void;
362
+ options?: MenuItem$1<K>[];
363
+ onOptionClick?: (optionKey: K) => void;
364
+ tabTheme?: TabTheme;
365
+ divider?: boolean;
366
+ tabFont?: FontSizesTypes$2;
367
+ textSize?: number;
368
+ tabPadding?: SizesTypes$1 | number;
369
+ textColor?: ThemeColors$2 | string;
370
+ selectedTabTextColor?: ThemeColors$2 | string;
371
+ selectedTabIndicatorColor?: ThemeColors$2 | string;
372
+ styles?: StylesType;
373
+ };
374
+ 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;
375
+ declare const Tab: <T, K>(props: TabProps<T, K> & {
376
+ ref?: React__default.ForwardedRef<TabElement> | undefined;
377
+ }) => ReturnType<typeof ZealTab>;
378
+
346
379
  declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
347
380
  declare type FieldLabelsProps = {
348
381
  label: string;
@@ -529,42 +562,25 @@ declare type AvatarDropdownProps<T> = {
529
562
  };
530
563
  declare const AvatarDropdown: <T extends string | number>({ avatarProps, menuConfig, }: AvatarDropdownProps<T>) => JSX.Element;
531
564
 
532
- declare type TabOption<T = string> = {
533
- menuText: string;
534
- menuKey: T;
535
- onMenuClick?: (key: T) => void;
536
- isSelected?: boolean;
537
- };
538
- declare type TabElement = HTMLDivElement | null;
539
- declare type TabTheme = 'light' | 'dark';
540
- declare type TabProps<T = string, K = string> = {
541
- tabKey: T;
542
- text: string;
543
- disabled?: boolean;
544
- vertical?: boolean;
545
- isActive?: boolean;
546
- onClick?: (key: T) => void;
547
- options?: MenuItem<K>[];
548
- onOptionClick?: (optionKey: K) => void;
549
- tabTheme?: TabTheme;
550
- divider?: boolean;
551
- };
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;
553
- declare const Tab: <T, K>(props: TabProps<T, K> & {
554
- ref?: React__default.ForwardedRef<TabElement> | undefined;
555
- }) => ReturnType<typeof ZealTab>;
556
-
557
565
  declare type TabGroupProps<T = string, K = string> = {
558
- tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>[];
566
+ tabs: Pick<TabProps$1<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
- style?: CSSProperties;
570
+ styles?: StylesType;
564
571
  vertical?: boolean;
565
- tabTheme?: TabTheme;
572
+ tabTheme?: TabTheme$1;
573
+ tabFont?: FontSizesTypes$1;
574
+ textSize?: 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, spacing, vertical, activeTabKey, onTabChange, style, tabTheme, }: TabGroupProps<T, K>) => JSX.Element;
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$2<string, TabKeys>[];
801
817
  tabContents: Record<TabKeys, () => ReactNode>;
802
818
  initialTabKey: TabKeys;
803
819
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.2.65",
3
+ "version": "0.2.67",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"
@@ -1,2 +0,0 @@
1
- import { TabTheme } from 'molecules/Tab/Tab';
2
- export declare const getColorForCaretDownIcon: (tabTheme?: TabTheme, disabled?: boolean) => string;
@@ -1,2 +0,0 @@
1
- import { TabTheme } from 'molecules/Tab/Tab';
2
- export declare const getColorForCaretDownIcon: (tabTheme?: TabTheme, disabled?: boolean) => string;