@zealicsolutions/web-ui 0.1.46 → 0.1.48

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.
@@ -9,7 +9,9 @@ export declare type BaseButtonProps = {
9
9
  export declare type ButtonProps = BaseButtonProps & {
10
10
  fullWidth?: boolean;
11
11
  text?: string;
12
+ link?: string;
13
+ elementId?: string;
12
14
  loading?: boolean;
13
15
  isRichText?: boolean;
14
16
  };
15
- export declare const Button: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, }: ButtonProps) => JSX.Element;
17
+ export declare const Button: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, }: ButtonProps) => JSX.Element;
@@ -5,7 +5,7 @@ import { LinkButtonProps } from './LinkButton';
5
5
  import { TouchableOpacityProps } from './TouchableOpacity';
6
6
  declare const _default: {
7
7
  title: string;
8
- component: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, }: import("./Button").ButtonProps) => JSX.Element;
8
+ component: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, }: import("./Button").ButtonProps) => JSX.Element;
9
9
  };
10
10
  export default _default;
11
11
  export declare const Button: ComponentStory<typeof ButtonComponent>;
@@ -5,6 +5,8 @@ export declare type LinkButtonProps = PropsWithChildren<{
5
5
  withoutOpacityEffect?: boolean;
6
6
  disabled?: boolean;
7
7
  onClick?: Callback;
8
+ buttonLink?: string;
9
+ elementId?: string;
8
10
  }>;
9
11
  export declare const LinkButton: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
10
12
  activeOpacity?: number | undefined;
@@ -17,4 +19,6 @@ export declare const LinkButton: import("styled-components").StyledComponent<"di
17
19
  withoutOpacityEffect?: boolean | undefined;
18
20
  disabled?: boolean | undefined;
19
21
  onClick?: Callback | undefined;
22
+ buttonLink?: string | undefined;
23
+ elementId?: string | undefined;
20
24
  }, never>;
@@ -1,11 +1,10 @@
1
- export declare type Format = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'numbered-list' | 'bulleted-list' | 'communicationLink' | 'button' | 'tag';
1
+ export declare type Format = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'numbered-list' | 'bulleted-list' | 'communicationLink' | 'tag';
2
2
  export declare type TextFormat = Partial<{
3
3
  bold: boolean;
4
4
  italic: boolean;
5
5
  underline: boolean;
6
6
  strikethrough: boolean;
7
7
  communicationLink: CommunicationLinkPayload;
8
- button: ButtonPayload;
9
8
  tag: {
10
9
  id: string;
11
10
  };
@@ -28,8 +27,3 @@ export declare type CommunicationLinkPayload = {
28
27
  type: LinkType;
29
28
  url: string;
30
29
  };
31
- export declare type ButtonPayload = {
32
- buttonLink: string;
33
- elementId?: string;
34
- isColumnLink?: boolean;
35
- };
@@ -9,7 +9,7 @@ export declare type AlertProps = {
9
9
  isMobile?: boolean;
10
10
  logo?: string;
11
11
  fullWidth?: boolean;
12
- margins?: string;
12
+ isPreview?: boolean;
13
13
  withCloseIcon?: {
14
14
  onClose: Callback;
15
15
  };
@@ -11,7 +11,8 @@ export declare type HeaderAProps<T = string> = {
11
11
  tabsProps: TabGroupProps;
12
12
  onActionButtonClick?: Callback;
13
13
  buttonText: string;
14
+ buttonLink: string;
14
15
  isMobile?: boolean;
15
16
  };
16
- export declare const HeaderA: <T extends string | number>({ logoUrl, links, onActionButtonClick, tabsProps, buttonText, isMobile, }: HeaderAProps<T>) => JSX.Element;
17
+ export declare const HeaderA: <T extends string | number>({ logoUrl, links, onActionButtonClick, tabsProps, buttonText, isMobile, buttonLink, }: HeaderAProps<T>) => JSX.Element;
17
18
  export {};
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { HeaderAProps } from 'organisms/Header/HeaderA';
3
- export declare type HeaderBProps<T = string> = Pick<HeaderAProps<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | 'buttonText' | 'onActionButtonClick'>;
4
- export declare const HeaderB: <T extends string | number>({ logoUrl, onActionButtonClick, buttonText, isMobile, tabsProps, }: HeaderBProps<T>) => JSX.Element;
3
+ export declare type HeaderBProps<T = string> = Pick<HeaderAProps<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | 'buttonText' | 'onActionButtonClick' | 'buttonLink'>;
4
+ export declare const HeaderB: <T extends string | number>({ logoUrl, onActionButtonClick, buttonText, isMobile, tabsProps, buttonLink, }: HeaderBProps<T>) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -40,10 +40,12 @@ declare type BaseButtonProps = {
40
40
  declare type ButtonProps = BaseButtonProps & {
41
41
  fullWidth?: boolean;
42
42
  text?: string;
43
+ link?: string;
44
+ elementId?: string;
43
45
  loading?: boolean;
44
46
  isRichText?: boolean;
45
47
  };
46
- declare const Button: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, }: ButtonProps) => JSX.Element;
48
+ declare const Button: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, }: ButtonProps) => JSX.Element;
47
49
 
48
50
  declare type TouchableOpacityProps = PropsWithChildren<{
49
51
  activeOpacity?: number;
@@ -164,6 +166,8 @@ declare type LinkButtonProps = PropsWithChildren<{
164
166
  withoutOpacityEffect?: boolean;
165
167
  disabled?: boolean;
166
168
  onClick?: Callback;
169
+ buttonLink?: string;
170
+ elementId?: string;
167
171
  }>;
168
172
  declare const LinkButton: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
169
173
  activeOpacity?: number | undefined;
@@ -176,6 +180,8 @@ declare const LinkButton: styled_components.StyledComponent<"div", styled_compon
176
180
  withoutOpacityEffect?: boolean | undefined;
177
181
  disabled?: boolean | undefined;
178
182
  onClick?: Callback | undefined;
183
+ buttonLink?: string | undefined;
184
+ elementId?: string | undefined;
179
185
  }, never>;
180
186
 
181
187
  declare type ValidationTagStatus = 'DEFAULT' | 'ERROR' | 'SUCCESS';
@@ -544,7 +550,7 @@ declare type AlertProps = {
544
550
  isMobile?: boolean;
545
551
  logo?: string;
546
552
  fullWidth?: boolean;
547
- margins?: string;
553
+ isPreview?: boolean;
548
554
  withCloseIcon?: {
549
555
  onClose: Callback;
550
556
  };
@@ -680,10 +686,11 @@ declare type HeaderAProps<T = string> = {
680
686
  tabsProps: TabGroupProps$1;
681
687
  onActionButtonClick?: Callback;
682
688
  buttonText: string;
689
+ buttonLink: string;
683
690
  isMobile?: boolean;
684
691
  };
685
692
 
686
- declare type HeaderBProps<T = string> = Pick<HeaderAProps$1<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | 'buttonText' | 'onActionButtonClick'>;
693
+ declare type HeaderBProps<T = string> = Pick<HeaderAProps$1<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | 'buttonText' | 'onActionButtonClick' | 'buttonLink'>;
687
694
 
688
695
  declare type HeaderCProps<T> = Pick<HeaderAProps$1<T>, 'logoUrl' | 'tabsProps' | 'isMobile'>;
689
696
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"