@zealicsolutions/web-ui 0.1.47 → 0.1.49

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
- };
@@ -6,12 +6,14 @@ declare type ImportantLink = {
6
6
  href: string;
7
7
  };
8
8
  export declare type HeaderAProps<T = string> = {
9
+ className?: string;
9
10
  links?: ImportantLink[];
10
11
  logoUrl: string;
11
12
  tabsProps: TabGroupProps;
12
13
  onActionButtonClick?: Callback;
13
14
  buttonText: string;
15
+ buttonLink: string;
14
16
  isMobile?: boolean;
15
17
  };
16
- export declare const HeaderA: <T extends string | number>({ logoUrl, links, onActionButtonClick, tabsProps, buttonText, isMobile, }: HeaderAProps<T>) => JSX.Element;
18
+ export declare const HeaderA: <T extends string | number>({ logoUrl, links, onActionButtonClick, tabsProps, buttonText, isMobile, className, buttonLink, }: HeaderAProps<T>) => JSX.Element;
17
19
  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' | 'className'>;
4
+ export declare const HeaderB: <T extends string | number>({ logoUrl, onActionButtonClick, buttonText, isMobile, tabsProps, className, buttonLink, }: HeaderBProps<T>) => JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { HeaderAProps } from 'organisms/Header/HeaderA';
3
- export declare type HeaderCProps<T> = Pick<HeaderAProps<T>, 'logoUrl' | 'tabsProps' | 'isMobile'>;
4
- export declare const HeaderC: <T extends string | number>({ logoUrl, tabsProps, isMobile, }: HeaderCProps<T>) => JSX.Element;
3
+ export declare type HeaderCProps<T> = Pick<HeaderAProps<T>, 'logoUrl' | 'tabsProps' | 'isMobile' | 'className'>;
4
+ export declare const HeaderC: <T extends string | number>({ logoUrl, tabsProps, isMobile, className, }: HeaderCProps<T>) => JSX.Element;
@@ -3,5 +3,5 @@ import { AvatarDropdownProps } from 'molecules';
3
3
  import { HeaderAProps } from 'organisms/Header/HeaderA';
4
4
  export declare type HeaderDProps = {
5
5
  withAvatar: AvatarDropdownProps<string>;
6
- } & Pick<HeaderAProps, 'isMobile' | 'logoUrl' | 'links' | 'tabsProps'>;
7
- export declare const HeaderD: ({ tabsProps, logoUrl, links, withAvatar, isMobile }: HeaderDProps) => JSX.Element;
6
+ } & Pick<HeaderAProps, 'isMobile' | 'logoUrl' | 'links' | 'tabsProps' | 'className'>;
7
+ export declare const HeaderD: ({ tabsProps, logoUrl, links, withAvatar, isMobile, className, }: HeaderDProps) => 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';
@@ -675,21 +681,23 @@ declare type ImportantLink = {
675
681
  href: string;
676
682
  };
677
683
  declare type HeaderAProps<T = string> = {
684
+ className?: string;
678
685
  links?: ImportantLink[];
679
686
  logoUrl: string;
680
687
  tabsProps: TabGroupProps$1;
681
688
  onActionButtonClick?: Callback;
682
689
  buttonText: string;
690
+ buttonLink: string;
683
691
  isMobile?: boolean;
684
692
  };
685
693
 
686
- declare type HeaderBProps<T = string> = Pick<HeaderAProps$1<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | 'buttonText' | 'onActionButtonClick'>;
694
+ declare type HeaderBProps<T = string> = Pick<HeaderAProps$1<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | 'buttonText' | 'onActionButtonClick' | 'buttonLink' | 'className'>;
687
695
 
688
- declare type HeaderCProps<T> = Pick<HeaderAProps$1<T>, 'logoUrl' | 'tabsProps' | 'isMobile'>;
696
+ declare type HeaderCProps<T> = Pick<HeaderAProps$1<T>, 'logoUrl' | 'tabsProps' | 'isMobile' | 'className'>;
689
697
 
690
698
  declare type HeaderDProps = {
691
699
  withAvatar: AvatarDropdownProps$1<string>;
692
- } & Pick<HeaderAProps$1, 'isMobile' | 'logoUrl' | 'links' | 'tabsProps'>;
700
+ } & Pick<HeaderAProps$1, 'isMobile' | 'logoUrl' | 'links' | 'tabsProps' | 'className'>;
693
701
 
694
702
  declare type HeaderProps<T = string> = (HeaderAProps<T> & {
695
703
  type: 'header_a';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"