@zealicsolutions/web-ui 0.1.41 → 0.1.44

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.
@@ -1,4 +1,5 @@
1
1
  export declare const AppLogo: string;
2
2
  export declare const HomeHeroImageImage: string;
3
3
  export declare const ProfileGraphic: string;
4
+ export declare const PulseEmblem: string;
4
5
  export declare const Logo: string;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { CSSProperties } from 'styled-components';
3
2
  export declare type ImageProps = {
4
3
  src: string;
5
4
  alt?: string;
6
5
  style?: CSSProperties;
7
6
  };
8
- export declare const Image: (props: ImageProps) => JSX.Element;
7
+ export declare const Image: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, ImageProps, never>;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import type { ComponentStory } from '@storybook/react';
3
2
  import { Image as ImageComponent } from './Image';
4
3
  declare const _default: {
5
4
  title: string;
6
- component: (props: import("./Image").ImageProps) => JSX.Element;
5
+ component: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("./Image").ImageProps, never>;
7
6
  };
8
7
  export default _default;
9
8
  export declare const Image: ComponentStory<typeof ImageComponent>;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { CSSProperties } from 'styled-components';
3
+ import type { Callback } from 'typescript';
4
+ export declare type AlertProps = {
5
+ style?: CSSProperties;
6
+ title: string;
7
+ description: string;
8
+ color?: string;
9
+ isMobile?: boolean;
10
+ logo?: string;
11
+ fullWidth?: boolean;
12
+ withCloseIcon?: {
13
+ onClose: Callback;
14
+ };
15
+ };
16
+ export declare const Alert: ({ logo, title, withCloseIcon, description, style, ...props }: AlertProps) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { ComponentStory } from '@storybook/react';
3
+ import { Alert as AlertComponent, AlertProps } from './Alert';
4
+ declare const _default: {
5
+ title: string;
6
+ component: ({ logo, title, withCloseIcon, description, style, ...props }: AlertProps) => JSX.Element;
7
+ };
8
+ export default _default;
9
+ export declare const Alert: ComponentStory<typeof AlertComponent>;
10
+ export declare const AlertMockProps: AlertProps;
@@ -15,3 +15,4 @@ export * from './FieldSection/FieldSection';
15
15
  export * from './MenuNavigation/MenuNavigation';
16
16
  export * from './EmphasizedText/EmphasizedText';
17
17
  export * from './RadioButtonField/RadioButtonField';
18
+ export * from './Alert/Alert';
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  export declare const Wrapper: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {
3
2
  isMobile?: boolean | undefined;
4
3
  }, never>;
5
- export declare const FooterImage: import("styled-components").StyledComponent<(props: import("atoms").ImageProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const FooterImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("atoms").ImageProps, never>;
6
5
  export declare const ContactInfoWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
6
  export declare const FooterContentWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
8
7
  isMobile?: boolean | undefined;
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
+ import { AlertProps } from 'molecules/Alert/Alert';
2
3
  export declare type DefaultTemplateProps = {
4
+ alerts?: AlertProps[];
3
5
  header: React.ReactNode;
4
6
  banner?: React.ReactNode;
5
7
  content?: React.ReactNode;
6
8
  };
7
- export declare const DefaultTemplate: ({ header, banner, content }: DefaultTemplateProps) => JSX.Element;
9
+ export declare const DefaultTemplate: ({ header, banner, content, alerts }: DefaultTemplateProps) => JSX.Element;
@@ -3,7 +3,7 @@ import type { ComponentStory } from '@storybook/react';
3
3
  import { DefaultTemplate as DefaultTemplateComponent } from './DefaultTemplate';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ header, banner, content }: import("./DefaultTemplate").DefaultTemplateProps) => JSX.Element;
6
+ component: ({ header, banner, content, alerts }: import("./DefaultTemplate").DefaultTemplateProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const DefaultTemplate: ComponentStory<typeof DefaultTemplateComponent>;
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ import { FooterCProps } from 'organisms/Footer/FooterC';
26
26
  import { FieldSectionProps as FieldSectionProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1 } from 'molecules';
27
27
  import { ISIAProps } from 'organisms/ISI/ISIA';
28
28
  import { HeaderAProps as HeaderAProps$1 } from 'organisms/Header/HeaderA';
29
+ import { AlertProps as AlertProps$1 } from 'molecules/Alert/Alert';
29
30
  import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
30
31
  import { AnnotationsList as AnnotationsList$1 } from 'contexts/MlrRichTextViewerContext/types';
31
32
  import * as contexts_MlrRichTextViewerContext_MlrRichTextViewerContext from 'contexts/MlrRichTextViewerContext/MlrRichTextViewerContext';
@@ -156,7 +157,7 @@ declare type ImageProps = {
156
157
  alt?: string;
157
158
  style?: CSSProperties;
158
159
  };
159
- declare const Image: (props: ImageProps) => JSX.Element;
160
+ declare const Image: styled_components.StyledComponent<"img", styled_components.DefaultTheme, ImageProps, never>;
160
161
 
161
162
  declare type LinkButtonProps = PropsWithChildren<{
162
163
  activeOpacity?: number;
@@ -535,6 +536,20 @@ declare type RadioButtonFieldProps<T extends string> = {
535
536
  };
536
537
  declare const RadioButtonField: <T extends string>({ control, name, radioButtonsProps, styles, labelsProps, defaultValue, optional, required, rules, }: RadioButtonFieldProps<T>) => JSX.Element;
537
538
 
539
+ declare type AlertProps = {
540
+ style?: CSSProperties;
541
+ title: string;
542
+ description: string;
543
+ color?: string;
544
+ isMobile?: boolean;
545
+ logo?: string;
546
+ fullWidth?: boolean;
547
+ withCloseIcon?: {
548
+ onClose: Callback;
549
+ };
550
+ };
551
+ declare const Alert: ({ logo, title, withCloseIcon, description, style, ...props }: AlertProps) => JSX.Element;
552
+
538
553
  declare type SetPasswordRuleValidation = {
539
554
  label: string;
540
555
  rule: MaxRuleValidation | MinRuleValidation;
@@ -713,11 +728,12 @@ declare type ConsentProps<T extends string = string> = {
713
728
  declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
714
729
 
715
730
  declare type DefaultTemplateProps = {
731
+ alerts?: AlertProps$1[];
716
732
  header: React.ReactNode;
717
733
  banner?: React.ReactNode;
718
734
  content?: React.ReactNode;
719
735
  };
720
- declare const DefaultTemplate: ({ header, banner, content }: DefaultTemplateProps) => JSX.Element;
736
+ declare const DefaultTemplate: ({ header, banner, content, alerts }: DefaultTemplateProps) => JSX.Element;
721
737
 
722
738
  interface Helpers {
723
739
  goToNextStep: () => void;
@@ -757,4 +773,4 @@ declare type AnnotationsList = {
757
773
 
758
774
  declare const useMlrRichTextViewerContext: () => contexts_MlrRichTextViewerContext_MlrRichTextViewerContext.MlrRichTextViewerContextType;
759
775
 
760
- export { AcquisitionForm, AcquisitionFormProps, AnnotationsList, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BaseButtonProps, Body, BodyProps, BreakpointSizesTypes, Button, ButtonProps, CaretIconWrapper, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, Circle, CircleBoxProps, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, EmphasizedText, EmphasizedTextProps, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, 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, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RichTextEditorProps, RichTextViewer, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Spacer, SpacerProps, Spinner, 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, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useStep };
776
+ export { AcquisitionForm, AcquisitionFormProps, Alert, AlertProps, AnnotationsList, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BaseButtonProps, Body, BodyProps, BreakpointSizesTypes, Button, ButtonProps, CaretIconWrapper, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, Circle, CircleBoxProps, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, EmphasizedText, EmphasizedTextProps, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, 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, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RichTextEditorProps, RichTextViewer, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Spacer, SpacerProps, Spinner, 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, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useStep };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.41",
3
+ "version": "0.1.44",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"