@zealicsolutions/web-ui 0.1.91 → 0.1.93
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 +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/HorizontalButtons/HorizontalButtons.d.ts +12 -0
- package/dist/cjs/src/atoms/HorizontalButtons/HorizontalButtons.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/index.d.ts +1 -0
- package/dist/cjs/src/molecules/Drawer/styles.d.ts +4 -0
- package/dist/cjs/src/molecules/HorizontalButtonsField/HorizontalButtonsField.d.ts +13 -0
- package/dist/cjs/src/molecules/HorizontalButtonsField/HorizontalButtonsField.stories.d.ts +16 -0
- package/dist/cjs/src/molecules/SettingsSelectionField/SettingsSelectionField.d.ts +10 -0
- package/dist/cjs/src/molecules/SettingsSelectionField/SettingsSelectionField.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/HorizontalButtons/HorizontalButtons.d.ts +12 -0
- package/dist/esm/src/atoms/HorizontalButtons/HorizontalButtons.stories.d.ts +9 -0
- package/dist/esm/src/atoms/index.d.ts +1 -0
- package/dist/esm/src/molecules/Drawer/styles.d.ts +4 -0
- package/dist/esm/src/molecules/HorizontalButtonsField/HorizontalButtonsField.d.ts +13 -0
- package/dist/esm/src/molecules/HorizontalButtonsField/HorizontalButtonsField.stories.d.ts +16 -0
- package/dist/esm/src/molecules/SettingsSelectionField/SettingsSelectionField.d.ts +10 -0
- package/dist/esm/src/molecules/SettingsSelectionField/SettingsSelectionField.stories.d.ts +9 -0
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/index.d.ts +26 -2
- package/package.json +1 -1
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare type HorizontalButtonsProps = {
|
3
|
+
selectedButtonId: string;
|
4
|
+
buttonOptions: {
|
5
|
+
value: string;
|
6
|
+
id: string;
|
7
|
+
}[];
|
8
|
+
onClick: (value: string) => void;
|
9
|
+
disabled?: boolean;
|
10
|
+
error?: boolean;
|
11
|
+
};
|
12
|
+
export declare const HorizontalButtons: ({ onClick, disabled, buttonOptions, selectedButtonId, error, }: HorizontalButtonsProps) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { HorizontalButtons as HorizontalButtonsComponent } from './HorizontalButtons';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ onClick, disabled, buttonOptions, selectedButtonId, error, }: import("./HorizontalButtons").HorizontalButtonsProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const HorizontalButtons: ComponentStory<typeof HorizontalButtonsComponent>;
|
@@ -13,6 +13,7 @@ export * from './ValidationTag/ValidationTag';
|
|
13
13
|
export * from './Video/Video';
|
14
14
|
export * from './Tooltip/Tooltip';
|
15
15
|
export * from './Toast/toast';
|
16
|
+
export * from './HorizontalButtons/HorizontalButtons';
|
16
17
|
export * from './Avatar/Avatar';
|
17
18
|
export * from './Paddings/Paddings';
|
18
19
|
export * from './Divider/Divider';
|
@@ -5,11 +5,15 @@ export declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
|
|
5
5
|
export declare type DrawerProps = DrawerComponentProps & {
|
6
6
|
anchor: Anchor;
|
7
7
|
padding?: SizesTypes | number;
|
8
|
+
height?: number | string;
|
9
|
+
width?: number | string;
|
8
10
|
closeIconColor?: ThemeColors | string;
|
9
11
|
};
|
10
12
|
export declare const BaseDrawer: import("styled-components").StyledComponent<typeof DrawerComponent, import("styled-components").DefaultTheme, DrawerComponentProps & {
|
11
13
|
anchor: Anchor;
|
12
14
|
padding?: number | SizesTypes | undefined;
|
15
|
+
height?: string | number | undefined;
|
16
|
+
width?: string | number | undefined;
|
13
17
|
closeIconColor?: string | undefined;
|
14
18
|
}, never>;
|
15
19
|
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { HorizontalButtonsProps } from 'atoms';
|
3
|
+
import { Control } from 'react-hook-form/dist/types';
|
4
|
+
declare type ToggleFieldProps = {
|
5
|
+
name: string;
|
6
|
+
title: string;
|
7
|
+
control?: Control<any>;
|
8
|
+
description?: string;
|
9
|
+
horizontalButtonsProps: HorizontalButtonsProps;
|
10
|
+
defaultValue?: string;
|
11
|
+
};
|
12
|
+
export declare const HorizontalButtonsField: ({ name, title, control, description, horizontalButtonsProps, }: ToggleFieldProps) => JSX.Element;
|
13
|
+
export {};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { HorizontalButtonsField as HorizontalButtonsFieldComponent } from './HorizontalButtonsField';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ name, title, control, description, horizontalButtonsProps, }: {
|
7
|
+
name: string;
|
8
|
+
title: string;
|
9
|
+
control?: import("react-hook-form").Control<any, any> | undefined;
|
10
|
+
description?: string | undefined;
|
11
|
+
horizontalButtonsProps: import("../..").HorizontalButtonsProps;
|
12
|
+
defaultValue?: string | undefined;
|
13
|
+
}) => JSX.Element;
|
14
|
+
};
|
15
|
+
export default _default;
|
16
|
+
export declare const HorizontalButtonsField: ComponentStory<typeof HorizontalButtonsFieldComponent>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare type SettingsSelectionFieldProps = {
|
3
|
+
options: {
|
4
|
+
title: string;
|
5
|
+
id: string;
|
6
|
+
}[];
|
7
|
+
onChange?: (id: string) => void;
|
8
|
+
fieldTitle: string;
|
9
|
+
};
|
10
|
+
export declare const SettingsSelectionField: ({ options, onChange, fieldTitle, }: SettingsSelectionFieldProps) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { SettingsSelectionField as SettingsSelectionFieldComponent } from './SettingsSelectionField';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ options, onChange, fieldTitle, }: import("./SettingsSelectionField").SettingsSelectionFieldProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const SettingsSelectionField: ComponentStory<typeof SettingsSelectionFieldComponent>;
|
package/dist/index.d.ts
CHANGED
@@ -15,7 +15,7 @@ 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 { InputProps as InputProps$1, RadioButtonsProps as RadioButtonsProps$1, ButtonProps as ButtonProps$1 } from 'atoms';
|
18
|
+
import { InputProps as InputProps$1, RadioButtonsProps as RadioButtonsProps$1, HorizontalButtonsProps as HorizontalButtonsProps$1, ButtonProps as ButtonProps$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 } from 'react-hook-form';
|
@@ -221,6 +221,18 @@ declare type ToastParams = {
|
|
221
221
|
|
222
222
|
declare const toast: ({ message, type, duration }: ToastParams) => void | undefined;
|
223
223
|
|
224
|
+
declare type HorizontalButtonsProps = {
|
225
|
+
selectedButtonId: string;
|
226
|
+
buttonOptions: {
|
227
|
+
value: string;
|
228
|
+
id: string;
|
229
|
+
}[];
|
230
|
+
onClick: (value: string) => void;
|
231
|
+
disabled?: boolean;
|
232
|
+
error?: boolean;
|
233
|
+
};
|
234
|
+
declare const HorizontalButtons: ({ onClick, disabled, buttonOptions, selectedButtonId, error, }: HorizontalButtonsProps) => JSX.Element;
|
235
|
+
|
224
236
|
declare type AvatarProps = {
|
225
237
|
size?: SizesTypes$1 | number;
|
226
238
|
withShadow?: boolean;
|
@@ -470,6 +482,8 @@ declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
|
|
470
482
|
declare type DrawerProps = DrawerProps$1 & {
|
471
483
|
anchor: Anchor;
|
472
484
|
padding?: SizesTypes$2 | number;
|
485
|
+
height?: number | string;
|
486
|
+
width?: number | string;
|
473
487
|
closeIconColor?: ThemeColors$1 | string;
|
474
488
|
};
|
475
489
|
|
@@ -611,6 +625,16 @@ declare type FeedContentHeaderProps = {
|
|
611
625
|
} & Partial<Omit<InputFieldProps$1, 'labelsProps' | 'required' | 'optional'>>;
|
612
626
|
declare const FeedContentHeader: ({ templateType, title, name, inputProps, isMobile, menuConfig, ...rest }: FeedContentHeaderProps) => JSX.Element;
|
613
627
|
|
628
|
+
declare type ToggleFieldProps = {
|
629
|
+
name: string;
|
630
|
+
title: string;
|
631
|
+
control?: Control<any>;
|
632
|
+
description?: string;
|
633
|
+
horizontalButtonsProps: HorizontalButtonsProps$1;
|
634
|
+
defaultValue?: string;
|
635
|
+
};
|
636
|
+
declare const HorizontalButtonsField: ({ name, title, control, description, horizontalButtonsProps, }: ToggleFieldProps) => JSX.Element;
|
637
|
+
|
614
638
|
declare type SetPasswordRuleValidation = {
|
615
639
|
label: string;
|
616
640
|
rule: MaxRuleValidation | MinRuleValidation;
|
@@ -919,4 +943,4 @@ declare type AnnotationsList = {
|
|
919
943
|
|
920
944
|
declare const useMlrRichTextViewerContext: () => contexts_MlrRichTextViewerContext_MlrRichTextViewerContext.MlrRichTextViewerContextType;
|
921
945
|
|
922
|
-
export { AcquisitionForm, AcquisitionFormProps, Alert, AlertProps, AnnotationsList, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BaseButtonProps, Body, BodyProps, BreakpointSizesTypes, Button, ButtonProps, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, Circle, CircleBoxProps, 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, FooterContentInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconNames, IconProps, Image, ImageProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkButton, LinkButtonProps, 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, TabGroup, TabGroupProps, 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 };
|
946
|
+
export { AcquisitionForm, AcquisitionFormProps, Alert, AlertProps, AnnotationsList, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BaseButtonProps, Body, BodyProps, BreakpointSizesTypes, Button, ButtonProps, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, Circle, CircleBoxProps, 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, FooterContentInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconNames, IconProps, Image, ImageProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkButton, LinkButtonProps, 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, TabGroup, TabGroupProps, 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 };
|