@zealicsolutions/web-ui 0.2.61 → 0.2.63
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/molecules/Tab/Tab.d.ts +4 -1
- package/dist/cjs/src/molecules/Tab/styles.d.ts +5 -3
- package/dist/cjs/src/molecules/Tab/utils.d.ts +2 -0
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +4 -3
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/TabGroup/styles.d.ts +17 -0
- package/dist/cjs/src/molecules/TabGroup/useTabAnimation.d.ts +2 -3
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/molecules/Tab/Tab.d.ts +4 -1
- package/dist/esm/src/molecules/Tab/styles.d.ts +5 -3
- package/dist/esm/src/molecules/Tab/utils.d.ts +2 -0
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +4 -3
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
- package/dist/esm/src/molecules/TabGroup/styles.d.ts +17 -0
- package/dist/esm/src/molecules/TabGroup/useTabAnimation.d.ts +2 -3
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/index.d.ts +18 -3
- package/package.json +1 -1
@@ -7,6 +7,7 @@ export declare type TabOption<T = string> = {
|
|
7
7
|
isSelected?: boolean;
|
8
8
|
};
|
9
9
|
declare type TabElement = HTMLDivElement | null;
|
10
|
+
export declare type TabTheme = 'light' | 'dark';
|
10
11
|
export declare type TabProps<T = string, K = string> = {
|
11
12
|
tabKey: T;
|
12
13
|
text: string;
|
@@ -16,8 +17,10 @@ export declare type TabProps<T = string, K = string> = {
|
|
16
17
|
onClick?: (key: T) => void;
|
17
18
|
options?: MenuItem<K>[];
|
18
19
|
onOptionClick?: (optionKey: K) => void;
|
20
|
+
tabTheme?: TabTheme;
|
21
|
+
divider?: boolean;
|
19
22
|
};
|
20
|
-
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, ...tabProps }: TabProps<T, K>, ref: React.ForwardedRef<TabElement>) => JSX.Element;
|
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;
|
21
24
|
export declare const Tab: <T, K>(props: TabProps<T, K> & {
|
22
25
|
ref?: React.ForwardedRef<TabElement> | undefined;
|
23
26
|
}) => ReturnType<typeof ZealTab>;
|
@@ -1,7 +1,9 @@
|
|
1
|
-
import { TabProps } from './Tab';
|
2
|
-
declare type TabContainerProps = Pick<TabProps, 'isActive' | 'disabled'>;
|
3
|
-
export declare const TabText: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").BoxTypeMap<{}, "div">>, import("styled-components").DefaultTheme, import("
|
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
4
|
variant: string;
|
5
|
+
} & {
|
6
|
+
tabTheme?: TabTheme | undefined;
|
5
7
|
}, "variant">;
|
6
8
|
export declare const TabContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabContainerProps, never>;
|
7
9
|
export declare const CaretIconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabContainerProps, never>;
|
@@ -1,14 +1,15 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CSSProperties } from 'styled-components';
|
3
3
|
import { SizesTypes } from 'theme/types';
|
4
|
-
import { TabProps } from '../Tab/Tab';
|
4
|
+
import { TabProps, TabTheme } from '../Tab/Tab';
|
5
5
|
export declare type TabGroupProps<T = string, K = string> = {
|
6
|
-
tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options'>[];
|
6
|
+
tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>[];
|
7
7
|
activeTabKey: T;
|
8
8
|
spacing?: SizesTypes;
|
9
9
|
onTabChange?: (tabKey: T) => void;
|
10
10
|
onOptionClick?: (optionKey: K) => void;
|
11
11
|
style?: CSSProperties;
|
12
12
|
vertical?: boolean;
|
13
|
+
tabTheme?: TabTheme;
|
13
14
|
};
|
14
|
-
export declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, }: TabGroupProps<T, K>) => JSX.Element;
|
15
|
+
export declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, tabTheme, }: 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, spacing, vertical, activeTabKey, onTabChange, style, }: import("./TabGroup").TabGroupProps<T, K>) => JSX.Element;
|
6
|
+
component: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, tabTheme, }: import("./TabGroup").TabGroupProps<T, K>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const TabGroup: ComponentStory<typeof TabGroupComponent>;
|
@@ -1,3 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { TabTheme } from 'molecules/Tab/Tab';
|
1
3
|
import { SizesTypes } from 'theme/types';
|
2
4
|
export declare const TabsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
3
5
|
spacing: SizesTypes;
|
@@ -7,6 +9,21 @@ export declare const TabGroupContainer: import("styled-components").StyledCompon
|
|
7
9
|
declare type TabSliderProps = {
|
8
10
|
width: number;
|
9
11
|
left: number;
|
12
|
+
isActiveTab?: boolean;
|
13
|
+
vertical?: boolean;
|
14
|
+
tabTheme?: TabTheme;
|
10
15
|
};
|
11
16
|
export declare const TabSlider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabSliderProps, never>;
|
17
|
+
export declare const TabWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
18
|
+
activeOpacity?: number | undefined;
|
19
|
+
withoutOpacityEffect?: boolean | undefined;
|
20
|
+
disabled?: boolean | undefined;
|
21
|
+
} & {
|
22
|
+
children?: import("react").ReactNode;
|
23
|
+
} & {
|
24
|
+
withoutOpacityEffect: boolean;
|
25
|
+
} & {
|
26
|
+
disabled?: boolean | undefined;
|
27
|
+
tabTheme?: TabTheme | undefined;
|
28
|
+
}, "withoutOpacityEffect">;
|
12
29
|
export {};
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
export declare const useTabAnimation: (activeTab: string) => {
|
3
|
-
|
4
|
-
|
5
|
-
tabUnderlineWidth: number;
|
3
|
+
tabsUnderlineLeft: number[];
|
4
|
+
tabsUnderlineWidth: number[];
|
6
5
|
tabsRef: import("react").MutableRefObject<(HTMLDivElement | null)[]>;
|
7
6
|
};
|
@@ -10,6 +10,7 @@ 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';
|
13
14
|
export * from './TabGroup/TabGroup';
|
14
15
|
export * from './FieldSection/FieldSection';
|
15
16
|
export * from './MenuNavigation/MenuNavigation';
|
package/dist/index.d.ts
CHANGED
@@ -562,6 +562,14 @@ declare type AvatarDropdownProps<T> = {
|
|
562
562
|
};
|
563
563
|
declare const AvatarDropdown: <T extends string | number>({ avatarProps, menuConfig, }: AvatarDropdownProps<T>) => JSX.Element;
|
564
564
|
|
565
|
+
declare type TabOption<T = string> = {
|
566
|
+
menuText: string;
|
567
|
+
menuKey: T;
|
568
|
+
onMenuClick?: (key: T) => void;
|
569
|
+
isSelected?: boolean;
|
570
|
+
};
|
571
|
+
declare type TabElement = HTMLDivElement | null;
|
572
|
+
declare type TabTheme = 'light' | 'dark';
|
565
573
|
declare type TabProps<T = string, K = string> = {
|
566
574
|
tabKey: T;
|
567
575
|
text: string;
|
@@ -571,18 +579,25 @@ declare type TabProps<T = string, K = string> = {
|
|
571
579
|
onClick?: (key: T) => void;
|
572
580
|
options?: MenuItem<K>[];
|
573
581
|
onOptionClick?: (optionKey: K) => void;
|
582
|
+
tabTheme?: TabTheme;
|
583
|
+
divider?: boolean;
|
574
584
|
};
|
585
|
+
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;
|
586
|
+
declare const Tab: <T, K>(props: TabProps<T, K> & {
|
587
|
+
ref?: React__default.ForwardedRef<TabElement> | undefined;
|
588
|
+
}) => ReturnType<typeof ZealTab>;
|
575
589
|
|
576
590
|
declare type TabGroupProps<T = string, K = string> = {
|
577
|
-
tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options'>[];
|
591
|
+
tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>[];
|
578
592
|
activeTabKey: T;
|
579
593
|
spacing?: SizesTypes$2;
|
580
594
|
onTabChange?: (tabKey: T) => void;
|
581
595
|
onOptionClick?: (optionKey: K) => void;
|
582
596
|
style?: CSSProperties;
|
583
597
|
vertical?: boolean;
|
598
|
+
tabTheme?: TabTheme;
|
584
599
|
};
|
585
|
-
declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, }: TabGroupProps<T, K>) => JSX.Element;
|
600
|
+
declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, tabTheme, }: TabGroupProps<T, K>) => JSX.Element;
|
586
601
|
|
587
602
|
declare type FieldSectionProps<T extends object> = {
|
588
603
|
label: string;
|
@@ -1041,4 +1056,4 @@ declare type AnnotationsList = {
|
|
1041
1056
|
|
1042
1057
|
declare const useMlrRichTextViewerContext: () => contexts_MlrRichTextViewerContext_MlrRichTextViewerContext.MlrRichTextViewerContextType;
|
1043
1058
|
|
1044
|
-
export { AcquisitionForm, AcquisitionFormProps, Alert, AlertProps, AnnotationsList, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, Body, BodyProps, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonProps, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, Circle, CircleBoxProps, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, Image, ImageProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RichTextEditorProps, RichTextViewer, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Spacer, SpacerProps, Spinner, Stepper, StepperProps, StyleWrapper, SubscribePanel, TabGroup, TabGroupProps, TextAlign, TextButton, TextButtonProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoProps, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|
1059
|
+
export { AcquisitionForm, AcquisitionFormProps, Alert, AlertProps, AnnotationsList, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, Body, BodyProps, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonProps, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, Circle, CircleBoxProps, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, Image, ImageProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RichTextEditorProps, RichTextViewer, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Spacer, SpacerProps, Spinner, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupProps, TabOption, TabProps, TabTheme, TextAlign, TextButton, TextButtonProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoProps, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|