@zealicsolutions/web-ui 0.1.12 → 0.1.13

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.
@@ -3,6 +3,6 @@ import { CSSProperties } from 'styled-components';
3
3
  export declare type ImageProps = {
4
4
  src: string;
5
5
  alt?: string;
6
- styles?: CSSProperties;
6
+ style?: CSSProperties;
7
7
  };
8
8
  export declare const Image: (props: ImageProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
+ import { RenderElementProps } from 'slate-react/dist/components/editable';
2
3
  export declare const EditorElement: ({ element, children, attributes }: RenderElementProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
+ import { RenderLeafProps } from 'slate-react';
2
3
  export declare const Leaf: ({ leaf, children, attributes }: RenderLeafProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
+ import { RenderElementProps } from 'slate-react';
2
3
  export declare const LinkElement: ({ attributes, element, children }: RenderElementProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export declare type AppDateFormats = "'Last Updated' MMMM dd, yyyy";
2
2
  export declare const getDateFromString: <T = Date>(date: unknown, defaultDate?: T) => Date | T;
3
- export declare const dateFormatter: <T>(value: string | Date | undefined, formatType: AppDateFormats, defaultValue?: T) => any;
3
+ export declare const dateFormatter: <T>(value: string | Date | undefined, formatType: AppDateFormats, defaultValue?: T) => string | T;
@@ -8,5 +8,6 @@ export declare type HeroImageProps = {
8
8
  subHeading?: string;
9
9
  button?: ButtonProps;
10
10
  contentAlignment?: HeroImageAlignment;
11
+ horizontalPaddings?: number;
11
12
  };
12
- export declare const HeroImage: ({ backgroundImage, button, contentAlignment, mainHeading, subHeading, }: HeroImageProps) => JSX.Element;
13
+ export declare const HeroImage: ({ backgroundImage, button, contentAlignment, mainHeading, horizontalPaddings, subHeading, }: HeroImageProps) => JSX.Element;
@@ -3,7 +3,7 @@ import type { ComponentStory } from '@storybook/react';
3
3
  import { HeroImage as HeroImageComponent } from './HeroImage';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ backgroundImage, button, contentAlignment, mainHeading, subHeading, }: import("./HeroImage").HeroImageProps) => JSX.Element;
6
+ component: ({ backgroundImage, button, contentAlignment, mainHeading, horizontalPaddings, subHeading, }: import("./HeroImage").HeroImageProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const HeroImage: ComponentStory<typeof HeroImageComponent>;
@@ -6,6 +6,7 @@ export declare type BodyProps = {
6
6
  data: (HeroImageProps | ColumnsProps | EmphasizedTextProps)[];
7
7
  spacer?: number;
8
8
  };
9
+ horizontalPaddings?: number;
9
10
  containerStyles?: CSSProperties;
10
11
  };
11
- export declare const Body: ({ elements, containerStyles }: BodyProps) => JSX.Element;
12
+ export declare const Body: ({ elements, horizontalPaddings, containerStyles }: BodyProps) => JSX.Element;
@@ -3,7 +3,7 @@ import { ComponentStory } from '@storybook/react';
3
3
  import { Body as BodyComponent } from './Body';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ elements, containerStyles }: import("./Body").BodyProps) => JSX.Element;
6
+ component: ({ elements, horizontalPaddings, containerStyles }: import("./Body").BodyProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Body: ComponentStory<typeof BodyComponent>;
package/dist/index.d.ts CHANGED
@@ -148,7 +148,7 @@ declare const Spinner: styled_components.StyledComponent<"div", styled_component
148
148
  declare type ImageProps = {
149
149
  src: string;
150
150
  alt?: string;
151
- styles?: CSSProperties;
151
+ style?: CSSProperties;
152
152
  };
153
153
  declare const Image: (props: ImageProps) => JSX.Element;
154
154
 
@@ -397,8 +397,9 @@ declare type HeroImageProps = {
397
397
  subHeading?: string;
398
398
  button?: ButtonProps;
399
399
  contentAlignment?: HeroImageAlignment;
400
+ horizontalPaddings?: number;
400
401
  };
401
- declare const HeroImage: ({ backgroundImage, button, contentAlignment, mainHeading, subHeading, }: HeroImageProps) => JSX.Element;
402
+ declare const HeroImage: ({ backgroundImage, button, contentAlignment, mainHeading, horizontalPaddings, subHeading, }: HeroImageProps) => JSX.Element;
402
403
 
403
404
  declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
404
405
  declare type DrawerProps = DrawerProps$1 & {
@@ -584,9 +585,10 @@ declare type BodyProps = {
584
585
  data: (HeroImageProps$1 | ColumnsProps$1 | EmphasizedTextProps$1)[];
585
586
  spacer?: number;
586
587
  };
588
+ horizontalPaddings?: number;
587
589
  containerStyles?: CSSProperties;
588
590
  };
589
- declare const Body: ({ elements, containerStyles }: BodyProps) => JSX.Element;
591
+ declare const Body: ({ elements, horizontalPaddings, containerStyles }: BodyProps) => JSX.Element;
590
592
 
591
593
  declare type ISIProps = ISIAProps;
592
594
  declare const ISI: (props: ISIProps) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"