@zealicsolutions/web-ui 0.1.84 → 0.1.86

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,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { FeedContentProps } from './types';
3
- export declare const FeedContent: ({ template, ...props }: FeedContentProps) => JSX.Element;
3
+ export declare const FeedContent: ({ feedContentTemplate, ...props }: FeedContentProps) => JSX.Element;
@@ -3,7 +3,7 @@ import { ComponentStory } from '@storybook/react';
3
3
  import { FeedContent as FeedContentComponent } from './FeedContent';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ template, ...props }: import("./types").FeedContentProps) => JSX.Element;
6
+ component: ({ feedContentTemplate, ...props }: import("./types").FeedContentProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const FeedContent: ComponentStory<typeof FeedContentComponent>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { FeedContentProps } from 'organisms/FeedContent/types';
3
- export declare const ExpandedContent: ({ document, lastUpdated, description, title, image, video, isMobile, buttonConfig, template, type, imageStyles, videoStyles, }: Omit<FeedContentProps, 'isExpanded'>) => JSX.Element;
3
+ export declare const ExpandedContent: ({ document, lastUpdated, description, title, image, video, isMobile, buttonConfig, feedContentTemplate, feedContentType, imageStyles, videoStyles, }: Omit<FeedContentProps, 'isExpanded'>) => JSX.Element;
@@ -3,8 +3,8 @@ import { CSSProperties } from 'styled-components';
3
3
  import { Callback, Nullable } from 'typescript';
4
4
  export declare type FeedContentTemplateTypes = 'full_width_content' | 'standard_content' | 'auto_play' | '';
5
5
  export declare type FeedContentProps = {
6
- type: Omit<FilteredFeedContentType, 'all'>;
7
- template: FeedContentTemplateTypes;
6
+ feedContentType: Omit<FilteredFeedContentType, 'all'>;
7
+ feedContentTemplate: FeedContentTemplateTypes;
8
8
  image?: string;
9
9
  video?: string;
10
10
  document?: string;
@@ -16,7 +16,7 @@ export declare type FeedContentProps = {
16
16
  onClick?: () => void;
17
17
  };
18
18
  isMobile?: boolean;
19
- isExpanded: boolean;
19
+ isExpanded?: boolean;
20
20
  destinationLink?: string;
21
21
  onDestinationHandler?: Callback;
22
22
  imageStyles?: CSSProperties;
@@ -0,0 +1,4 @@
1
+ export declare const useSwitchExpanded: () => {
2
+ isExpandedContent: boolean;
3
+ onClickHandler: () => void;
4
+ };
@@ -10,25 +10,23 @@ export default _default;
10
10
  export declare const FeedContentContainer: ComponentStory<typeof FeedContentContainerComponent>;
11
11
  export declare const feedContentContainerMockProps: {
12
12
  feedContent: ({
13
- type: string;
13
+ feedContentType: string;
14
14
  buttonConfig: {
15
15
  disabled: boolean;
16
16
  };
17
- isExpanded: boolean;
18
17
  image: string;
19
- template: FeedContentTemplateTypes;
18
+ feedContentTemplate: FeedContentTemplateTypes;
20
19
  lastUpdated: string;
21
20
  title: string;
22
21
  description: string;
23
22
  video?: undefined;
24
23
  } | {
25
- type: string;
24
+ feedContentType: string;
26
25
  buttonConfig: {
27
26
  disabled: boolean;
28
27
  };
29
- isExpanded: boolean;
30
28
  image: string;
31
- template: FeedContentTemplateTypes;
29
+ feedContentTemplate: FeedContentTemplateTypes;
32
30
  lastUpdated: string;
33
31
  title: string;
34
32
  description: string;
package/dist/index.d.ts CHANGED
@@ -683,8 +683,8 @@ declare const Footer: (props: FooterProps) => JSX.Element;
683
683
 
684
684
  declare type FeedContentTemplateTypes = 'full_width_content' | 'standard_content' | 'auto_play' | '';
685
685
  declare type FeedContentProps = {
686
- type: Omit<FilteredFeedContentType$1, 'all'>;
687
- template: FeedContentTemplateTypes;
686
+ feedContentType: Omit<FilteredFeedContentType$1, 'all'>;
687
+ feedContentTemplate: FeedContentTemplateTypes;
688
688
  image?: string;
689
689
  video?: string;
690
690
  document?: string;
@@ -696,14 +696,14 @@ declare type FeedContentProps = {
696
696
  onClick?: () => void;
697
697
  };
698
698
  isMobile?: boolean;
699
- isExpanded: boolean;
699
+ isExpanded?: boolean;
700
700
  destinationLink?: string;
701
701
  onDestinationHandler?: Callback;
702
702
  imageStyles?: CSSProperties;
703
703
  videoStyles?: CSSProperties;
704
704
  };
705
705
 
706
- declare const FeedContent: ({ template, ...props }: FeedContentProps) => JSX.Element;
706
+ declare const FeedContent: ({ feedContentTemplate, ...props }: FeedContentProps) => JSX.Element;
707
707
 
708
708
  declare type FooterContentInfo = {
709
709
  phoneNumber: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.84",
3
+ "version": "0.1.86",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"