@zealicsolutions/web-ui 0.1.40 → 0.1.43

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;
@@ -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 } 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;
@@ -713,11 +714,12 @@ declare type ConsentProps<T extends string = string> = {
713
714
  declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
714
715
 
715
716
  declare type DefaultTemplateProps = {
717
+ alerts?: AlertProps[];
716
718
  header: React.ReactNode;
717
719
  banner?: React.ReactNode;
718
720
  content?: React.ReactNode;
719
721
  };
720
- declare const DefaultTemplate: ({ header, banner, content }: DefaultTemplateProps) => JSX.Element;
722
+ declare const DefaultTemplate: ({ header, banner, content, alerts }: DefaultTemplateProps) => JSX.Element;
721
723
 
722
724
  interface Helpers {
723
725
  goToNextStep: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.40",
3
+ "version": "0.1.43",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"