@zealicsolutions/web-ui 0.1.22 → 0.1.23

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.
@@ -10,5 +10,6 @@ export declare type ButtonProps = BaseButtonProps & {
10
10
  fullWidth?: boolean;
11
11
  text?: string;
12
12
  loading?: boolean;
13
+ isRichText?: boolean;
13
14
  };
14
- export declare const Button: ({ text, onClick, loading, disabled, variant, fullWidth, }: ButtonProps) => JSX.Element;
15
+ export declare const Button: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, }: 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, fullWidth, }: import("./Button").ButtonProps) => JSX.Element;
8
+ component: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, }: import("./Button").ButtonProps) => JSX.Element;
9
9
  };
10
10
  export default _default;
11
11
  export declare const Button: ComponentStory<typeof ButtonComponent>;
@@ -1,5 +1,10 @@
1
1
  /// <reference types="react" />
2
+ import { CSSProperties } from 'styled-components';
3
+ import { FontSizesTypes, ThemeColors } from 'theme';
2
4
  export declare type RichTextEditorProps = Partial<{
3
5
  value: string;
6
+ font: FontSizesTypes;
7
+ color: ThemeColors;
8
+ textStyles: CSSProperties;
4
9
  }>;
5
- export declare const RichTextViewer: ({ value }: RichTextEditorProps) => JSX.Element | null;
10
+ export declare const RichTextViewer: ({ value, color, textStyles, font, }: RichTextEditorProps) => JSX.Element | null;
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import * as _mui_material_OverridableComponent from '@mui/material/OverridableCo
10
10
  import * as _mui_material from '@mui/material';
11
11
  import { DrawerProps as DrawerProps$1 } from '@mui/material';
12
12
  import { FontSizesTypes as FontSizesTypes$1, ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
13
- import { ThemeColors as ThemeColors$2, SizesTypes as SizesTypes$1 } from 'theme';
13
+ import { ThemeColors as ThemeColors$2, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
14
14
  import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
15
15
  import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
16
16
  import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
@@ -37,8 +37,9 @@ declare type ButtonProps = BaseButtonProps & {
37
37
  fullWidth?: boolean;
38
38
  text?: string;
39
39
  loading?: boolean;
40
+ isRichText?: boolean;
40
41
  };
41
- declare const Button: ({ text, onClick, loading, disabled, variant, fullWidth, }: ButtonProps) => JSX.Element;
42
+ declare const Button: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, }: ButtonProps) => JSX.Element;
42
43
 
43
44
  declare type TouchableOpacityProps = PropsWithChildren<{
44
45
  activeOpacity?: number;
@@ -238,8 +239,11 @@ declare const GoogleMap: react__default.ComponentClass<{
238
239
 
239
240
  declare type RichTextEditorProps = Partial<{
240
241
  value: string;
242
+ font: FontSizesTypes$2;
243
+ color: ThemeColors$2;
244
+ textStyles: CSSProperties;
241
245
  }>;
242
- declare const RichTextViewer: ({ value }: RichTextEditorProps) => JSX.Element | null;
246
+ declare const RichTextViewer: ({ value, color, textStyles, font, }: RichTextEditorProps) => JSX.Element | null;
243
247
 
244
248
  declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
245
249
  declare type FieldLabelsProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"