@zealicsolutions/web-ui 0.2.71 → 0.2.72

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.
@@ -5,19 +5,19 @@ import { CSSProperties } from 'styled-components';
5
5
  import { FontSizesTypes, ThemeColors } from 'theme';
6
6
  import { Nullable, StrictUnion } from 'typescript';
7
7
  export declare type ImageAttributes = {
8
- attribute_type: 'image';
8
+ attributeType: 'image';
9
9
  imageSource: string;
10
10
  };
11
11
  export interface TextAttributes {
12
- attribute_type: 'text';
12
+ attributeType: 'text';
13
13
  text: string;
14
14
  }
15
15
  export interface VideoAttributes {
16
- attribute_type: 'video';
16
+ attributeType: 'video';
17
17
  videoSource: string;
18
18
  }
19
19
  export interface LinkAttributes {
20
- attribute_type: 'link';
20
+ attributeType: 'link';
21
21
  id: string;
22
22
  type: 'internalLink' | 'externalLink';
23
23
  internalLink: Nullable<string>;
@@ -25,12 +25,12 @@ export interface LinkAttributes {
25
25
  name: string;
26
26
  }
27
27
  export interface SelectAttributes {
28
- attribute_type: 'select';
28
+ attributeType: 'select';
29
29
  value: string;
30
30
  options: SelectOption[];
31
31
  }
32
32
  export interface BooleanAttributes {
33
- attribute_type: 'boolean';
33
+ attributeType: 'boolean';
34
34
  value: boolean;
35
35
  }
36
36
  export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header-tab-group';
@@ -6,4 +6,5 @@ export * from './hooks';
6
6
  export * from './theme';
7
7
  export * from './fieldsConfiguration';
8
8
  export * from './contexts';
9
+ export * from './containers';
9
10
  export * from 'helpers/constants';
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import React__default, { PropsWithChildren, ReactNode, CSSProperties as CSSPrope
4
4
  import * as styled_components from 'styled-components';
5
5
  import { CSSProperties, DefaultTheme } from 'styled-components';
6
6
  import { FontSizesTypes as FontSizesTypes$1, ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$1 } from 'theme';
7
- import { Callback as Callback$1, StylesType, Nullable } from 'typescript';
7
+ import { Callback as Callback$1, StylesType, Nullable, StrictUnion } from 'typescript';
8
8
  import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
9
9
  import { InputFieldTypes as InputFieldTypes$1, FieldTypes as FieldTypes$1, UIFields as UIFields$1 } from 'fieldsConfiguration/types';
10
10
  import { FontSizesTypes as FontSizesTypes$2, ThemeColors as ThemeColors$2, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
@@ -12,7 +12,7 @@ import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
12
12
  import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
13
13
  import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
14
14
  import { TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, InputProps as InputProps$1, CheckBoxProps as CheckBoxProps$1, RegularImageProps as RegularImageProps$1, ButtonProps as ButtonProps$1, TextButtonProps as TextButtonProps$1, AvatarProps as AvatarProps$1, TabProps as TabProps$1, TabTheme as TabTheme$1, RadioButtonsProps as RadioButtonsProps$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1 } from 'atoms';
15
- 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';
15
+ 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, ImageProps as ImageProps$1 } from 'molecules';
16
16
  import { Control, ControllerProps } from 'react-hook-form/dist/types';
17
17
  import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
18
18
  import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormState, Control as Control$1 } from 'react-hook-form';
@@ -34,6 +34,9 @@ import { AlertProps as AlertProps$2 } from 'molecules/Alert/Alert';
34
34
  import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
35
35
  import { AnnotationsList as AnnotationsList$1 } from 'contexts/MlrRichTextViewerContext/types';
36
36
  import * as contexts_MlrRichTextViewerContext_MlrRichTextViewerContext from 'contexts/MlrRichTextViewerContext/MlrRichTextViewerContext';
37
+ import { ContainerProps as ContainerProps$1, ContainerComponentProps as ContainerComponentProps$1, Molecule as Molecule$1 } from 'containers';
38
+ import * as containers_types_types from 'containers/types/types';
39
+ import { ContainerProps as ContainerProps$2 } from 'containers/types/types';
37
40
  export * from 'helpers/constants';
38
41
 
39
42
  declare type ButtonVariant = 'primary' | 'secondary' | 'text' | 'custom';
@@ -1138,4 +1141,153 @@ declare type AnnotationsList = {
1138
1141
 
1139
1142
  declare const useMlrRichTextViewerContext: () => contexts_MlrRichTextViewerContext_MlrRichTextViewerContext.MlrRichTextViewerContextType;
1140
1143
 
1141
- export { AcquisitionForm, AcquisitionFormProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, Body, BodyProps, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonProps, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, 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, FontWeight, 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, NavigationDotsWrapper, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Slide, SlidesWrapper, Spacer, SpacerProps, Spinner, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupProps, TabOption, TabProps, TabTheme, TabType, TextAlign, TextButton, TextButtonProps, TextProps, 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, Wrapper, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
1144
+ declare const Container: ({ children, wide, compact, type, ...props }: ContainerProps$1) => JSX.Element;
1145
+ declare const ContainerComponent: ({ type, items, config }: ContainerComponentProps$1) => JSX.Element | null;
1146
+
1147
+ declare type ImageAttributes = {
1148
+ attributeType: 'image';
1149
+ imageSource: string;
1150
+ };
1151
+ interface TextAttributes {
1152
+ attributeType: 'text';
1153
+ text: string;
1154
+ }
1155
+ interface VideoAttributes {
1156
+ attributeType: 'video';
1157
+ videoSource: string;
1158
+ }
1159
+ interface LinkAttributes {
1160
+ attributeType: 'link';
1161
+ id: string;
1162
+ type: 'internalLink' | 'externalLink';
1163
+ internalLink: Nullable<string>;
1164
+ externalLink: Nullable<string>;
1165
+ name: string;
1166
+ }
1167
+ interface SelectAttributes {
1168
+ attributeType: 'select';
1169
+ value: string;
1170
+ options: SelectOption$1[];
1171
+ }
1172
+ interface BooleanAttributes {
1173
+ attributeType: 'boolean';
1174
+ value: boolean;
1175
+ }
1176
+ declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header-tab-group';
1177
+ interface BaseMolecule {
1178
+ id: string;
1179
+ instance: 'molecule';
1180
+ type: MoleculeTypes;
1181
+ }
1182
+ interface ImageMolecule extends BaseMolecule {
1183
+ type: 'image';
1184
+ attributes: {
1185
+ image: ImageAttributes;
1186
+ altText: TextAttributes;
1187
+ link: LinkAttributes;
1188
+ };
1189
+ config: {
1190
+ props: Omit<ImageProps$1, 'src' | 'link' | 'altText'>;
1191
+ };
1192
+ }
1193
+ interface TextMolecule extends BaseMolecule {
1194
+ type: 'text';
1195
+ attributes: {
1196
+ text: TextAttributes;
1197
+ seoStyle: SelectAttributes;
1198
+ };
1199
+ config: {
1200
+ props: {
1201
+ fontVariant: FontSizesTypes$1;
1202
+ textSize: number;
1203
+ textColor: ThemeColors$1 | string;
1204
+ letterSpacing: number;
1205
+ lineHeight: number;
1206
+ isRichText: boolean;
1207
+ styles: CSSProperties;
1208
+ };
1209
+ };
1210
+ }
1211
+ interface ButtonMolecule extends BaseMolecule {
1212
+ type: 'button';
1213
+ attributes: {
1214
+ title: TextAttributes;
1215
+ buttonLink: LinkAttributes;
1216
+ };
1217
+ config: {
1218
+ props: Omit<ButtonProps$1, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>;
1219
+ };
1220
+ }
1221
+ interface VideoMolecule extends BaseMolecule {
1222
+ type: 'video';
1223
+ attributes: {
1224
+ video: VideoAttributes;
1225
+ altText: TextAttributes;
1226
+ autoPlayVideo: BooleanAttributes;
1227
+ enableCoverImage: BooleanAttributes;
1228
+ coverImage: ImageAttributes;
1229
+ };
1230
+ config: {
1231
+ props: {
1232
+ width: number;
1233
+ styles: CSSProperties;
1234
+ };
1235
+ };
1236
+ }
1237
+ interface TabGroupMolecule extends BaseMolecule {
1238
+ type: 'header-tab-group';
1239
+ config: {
1240
+ props: TabGroupProps$1;
1241
+ wide: {
1242
+ containerStyle?: CSSProperties;
1243
+ containerProps?: Record<string, unknown>;
1244
+ };
1245
+ compact: {
1246
+ containerStyle?: CSSProperties;
1247
+ containerProps?: Record<string, unknown>;
1248
+ };
1249
+ };
1250
+ }
1251
+ declare type Molecule = StrictUnion<ImageMolecule | TextMolecule | ButtonMolecule | VideoMolecule | TabGroupMolecule>;
1252
+
1253
+ declare type ContainerType = 'row' | 'column' | 'slider';
1254
+ declare type ContainerPositionType = 'fixed' | 'sticky' | 'static';
1255
+ declare type ContainerScrollBehaviourType = 'vertical' | 'horizontal' | 'auto' | 'none';
1256
+ declare type ContainerPropsType = Partial<{
1257
+ position: ContainerPositionType;
1258
+ scrollBehaviour: ContainerScrollBehaviourType;
1259
+ cornerRadius: number;
1260
+ }>;
1261
+ declare type AdditionalContainerProps = Partial<{
1262
+ containerStyle: CSSProperties;
1263
+ containerProps: ContainerPropsType;
1264
+ }>;
1265
+ declare type ContainerProps = PropsWithChildren<Partial<{
1266
+ type: ContainerType;
1267
+ wide: AdditionalContainerProps;
1268
+ compact: AdditionalContainerProps;
1269
+ }>>;
1270
+ declare type ContainerComponentProps = {
1271
+ id: string;
1272
+ instance: 'container';
1273
+ type: ContainerType;
1274
+ config: {
1275
+ wide: AdditionalContainerProps;
1276
+ compact: AdditionalContainerProps;
1277
+ };
1278
+ items: (ContainerComponentProps | Molecule)[];
1279
+ };
1280
+
1281
+ declare const ContainerWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, Pick<ContainerProps$2, "type"> & {
1282
+ containerProps?: Partial<{
1283
+ position: containers_types_types.ContainerPositionType;
1284
+ scrollBehaviour: containers_types_types.ContainerScrollBehaviourType;
1285
+ cornerRadius: number;
1286
+ }> | undefined;
1287
+ }, never>;
1288
+
1289
+ declare const OrganismItem: ({ item }: {
1290
+ item: ContainerComponentProps$1 | Molecule$1;
1291
+ }) => JSX.Element | null;
1292
+
1293
+ export { AcquisitionForm, AcquisitionFormProps, AdditionalContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonMolecule, ButtonProps, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, Circle, CircleBoxProps, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, 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, FontWeight, 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, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkAttributes, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismItem, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, Select, SelectAttributes, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Slide, SlidesWrapper, Spacer, SpacerProps, Spinner, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupMolecule, TabGroupProps, TabOption, TabProps, TabTheme, TabType, TextAlign, TextAttributes, TextButton, TextButtonProps, TextMolecule, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoAttributes, VideoMolecule, VideoProps, Wrapper, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.2.71",
3
+ "version": "0.2.72",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"