@zealicsolutions/web-ui 0.2.87 → 0.2.88

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,29 @@
1
1
  /// <reference types="react" />
2
- import type { SelectProps } from './types';
3
- export declare const Select: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, }: SelectProps) => JSX.Element;
2
+ import { ThemeColors } from 'theme';
3
+ import { StylesType } from 'typescript';
4
+ export declare type SelectOption = {
5
+ id: string;
6
+ label: string;
7
+ };
8
+ export declare type SelectInternalConfigurationOptions = {
9
+ placeholderTextColor: ThemeColors | string;
10
+ placeholderTextFontSize: number;
11
+ selectedTextColor: ThemeColors | string;
12
+ selectedTextFontSize: number;
13
+ verticalPadding: number;
14
+ horizontalPadding: number;
15
+ wrapperStyles: StylesType;
16
+ styles: StylesType;
17
+ };
18
+ export declare type SelectProps = {
19
+ value?: string;
20
+ optionsPresentation?: boolean;
21
+ onChange?: (value: string) => void;
22
+ placeholder?: string;
23
+ disabled?: boolean;
24
+ options?: SelectOption[];
25
+ isError?: boolean;
26
+ isEditMode?: boolean;
27
+ selectInternalConfig?: SelectInternalConfigurationOptions;
28
+ };
29
+ export declare const Select: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, selectInternalConfig, }: SelectProps) => JSX.Element;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import type { ComponentStory } from '@storybook/react';
3
- import { Select as SelectComponent } from './Select';
2
+ import { StoryFn } from '@storybook/react';
3
+ import { SelectProps } from './Select';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, }: import("./types").SelectProps) => JSX.Element;
6
+ component: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, selectInternalConfig, }: SelectProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
- export declare const Select: ComponentStory<typeof SelectComponent>;
9
+ export declare const Select: StoryFn<SelectProps>;
@@ -1,12 +1,16 @@
1
+ import { StylesType } from 'typescript';
2
+ import { SelectInternalConfigurationOptions } from './Select';
1
3
  declare type SelectContainerProps = {
2
4
  hasValue: boolean;
3
5
  disabled: boolean;
4
6
  isOpen: boolean;
5
7
  hasError: boolean;
8
+ $styles: StylesType;
6
9
  };
7
10
  export declare const SelectContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, SelectContainerProps, never>;
8
11
  export declare const DropdownMenu: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
12
  export declare const DropdownMenuItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
10
- selected: boolean;
13
+ $selected: boolean;
11
14
  }, never>;
15
+ export declare const getSelectStyles: (internalConfig?: SelectInternalConfigurationOptions, isSelectedOption?: boolean) => import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
12
16
  export {};
@@ -8,6 +8,7 @@ export declare type BaseButtonProps = PropsWithChildren<{
8
8
  onClick?: Callback;
9
9
  variant?: ButtonVariant;
10
10
  disabled?: boolean;
11
+ state?: 'disabled' | 'enabled';
11
12
  fullWidth?: boolean;
12
13
  size?: 'medium' | 'small';
13
14
  buttonFont?: FontSizesTypes;
@@ -37,4 +38,4 @@ export declare type ButtonProps = BaseButtonProps & {
37
38
  containerStyle?: CSSProperties;
38
39
  buttonStyle?: CSSProperties;
39
40
  };
40
- export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, ...props }: ButtonProps) => JSX.Element | null;
41
+ export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, ...props }: ButtonProps) => JSX.Element | null;
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react';
3
3
  import { Button as ButtonComponent } from 'molecules/Button/Button';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, ...props }: import("molecules/Button/Button").ButtonProps) => JSX.Element | null;
6
+ component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, ...props }: import("molecules/Button/Button").ButtonProps) => JSX.Element | null;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Button: StoryFn<typeof ButtonComponent>;
@@ -30,7 +30,7 @@ export declare type TooltipInternalConfig = {
30
30
  wrapperStyles: StylesType;
31
31
  };
32
32
  export declare type FieldLabelsProps = {
33
- label: string;
33
+ label?: string;
34
34
  tooltipText?: string;
35
35
  isError?: boolean;
36
36
  isTooltipVisible?: boolean;
@@ -0,0 +1,8 @@
1
+ import { TooltipInternalConfig } from './FieldLabels';
2
+ import { StylesType } from 'typescript';
3
+ declare type ToolTipStylesConfig = {
4
+ tooltipStyles: StylesType;
5
+ tooltipWrapperStyles: StylesType;
6
+ };
7
+ export declare const getTooltipStyles: (internalConfig?: TooltipInternalConfig) => ToolTipStylesConfig;
8
+ export {};
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Control, ControllerProps } from 'react-hook-form/dist/types';
3
- import { SelectProps } from '../../atoms/Select/types';
3
+ import { SelectProps } from '../../atoms/Select/Select';
4
4
  import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
5
5
  import { StylesType } from 'typescript';
6
6
  export declare type SelectFieldProps = {
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import type { ComponentStory } from '@storybook/react';
3
- import { SelectField as SelectFieldComponent } from './SelectField';
2
+ import { StoryFn } from '@storybook/react';
3
+ import { SelectFieldProps } from './SelectField';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: import("./SelectField").SelectFieldProps) => JSX.Element;
6
+ component: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: SelectFieldProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
- export declare const SelectField: ComponentStory<typeof SelectFieldComponent>;
9
+ export declare const SelectField: StoryFn<SelectFieldProps>;
package/dist/index.d.ts CHANGED
@@ -3,11 +3,11 @@ import * as React$1 from 'react';
3
3
  import React__default, { PropsWithChildren, ReactNode, Dispatch, SetStateAction, CSSProperties as CSSProperties$1, ComponentType } from 'react';
4
4
  import * as styled_components from 'styled-components';
5
5
  import { CSSProperties, DefaultTheme } from 'styled-components';
6
+ import { ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
7
+ import { StylesType, Callback as Callback$1, OverrideStyles, Nullable, StrictUnion } from 'typescript';
6
8
  import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
7
9
  import { InputFieldTypes as InputFieldTypes$1, FieldTypes as FieldTypes$1, UIFields as UIFields$2 } from 'fieldsConfiguration/types';
8
- import { ThemeColors as ThemeColors$1, FontSizesTypes as FontSizesTypes$1, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
9
- import { StylesType, Callback as Callback$1, OverrideStyles, Nullable, StrictUnion } from 'typescript';
10
- import { ThemeColors as ThemeColors$2, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
10
+ import { ThemeColors as ThemeColors$2, FontSizesTypes as FontSizesTypes$1, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
11
11
  import { BaseButtonProps as BaseButtonProps$1, MenuItem as MenuItem$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, ButtonProps as ButtonProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1, FieldLabelsProps as FieldLabelsProps$1, FieldSectionProps as FieldSectionProps$1, MenuItemsProps as MenuItemsProps$1, InputFieldProps as InputFieldProps$1, ImageProps as ImageProps$1 } from 'molecules';
12
12
  import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
13
13
  import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
@@ -65,6 +65,16 @@ declare type SelectOption = {
65
65
  id: string;
66
66
  label: string;
67
67
  };
68
+ declare type SelectInternalConfigurationOptions = {
69
+ placeholderTextColor: ThemeColors$1 | string;
70
+ placeholderTextFontSize: number;
71
+ selectedTextColor: ThemeColors$1 | string;
72
+ selectedTextFontSize: number;
73
+ verticalPadding: number;
74
+ horizontalPadding: number;
75
+ wrapperStyles: StylesType;
76
+ styles: StylesType;
77
+ };
68
78
  declare type SelectProps = {
69
79
  value?: string;
70
80
  optionsPresentation?: boolean;
@@ -74,14 +84,14 @@ declare type SelectProps = {
74
84
  options?: SelectOption[];
75
85
  isError?: boolean;
76
86
  isEditMode?: boolean;
87
+ selectInternalConfig?: SelectInternalConfigurationOptions;
77
88
  };
78
-
79
- declare const Select: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, }: SelectProps) => JSX.Element;
89
+ declare const Select: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, selectInternalConfig, }: SelectProps) => JSX.Element;
80
90
 
81
91
  declare type InputFieldInternalConfigProps = {
82
- textColor: ThemeColors$1 | string;
92
+ textColor: ThemeColors$2 | string;
83
93
  textFontSize: number;
84
- placeholderTextColor: ThemeColors$1 | string;
94
+ placeholderTextColor: ThemeColors$2 | string;
85
95
  placeholderTextFontSize: number;
86
96
  verticalPadding: number;
87
97
  horizontalPadding: number;
@@ -117,7 +127,7 @@ declare type TextProps = {
117
127
  layout?: 'div' | 'span';
118
128
  type?: TextTypes;
119
129
  styles?: StylesType;
120
- color?: ThemeColors$1 | string;
130
+ color?: ThemeColors$2 | string;
121
131
  numberOfLines?: number;
122
132
  textAlign?: TextAlign;
123
133
  behaveAs?: 'text' | 'button';
@@ -129,8 +139,8 @@ declare const TextWrapper: ({ children, seoTag, ...textProps }: TextWrapperProps
129
139
  declare type IconProps = {
130
140
  name: IconNames;
131
141
  size?: number;
132
- color?: ThemeColors$2 | string;
133
- fill?: ThemeColors$2 | string;
142
+ color?: ThemeColors$1 | string;
143
+ fill?: ThemeColors$1 | string;
134
144
  pointerEvents?: 'auto' | 'none';
135
145
  style?: CSSProperties;
136
146
  };
@@ -170,7 +180,7 @@ declare type SpacerProps = {
170
180
  declare const Spacer: styled_components.StyledComponent<"div", styled_components.DefaultTheme, SpacerProps, never>;
171
181
 
172
182
  declare const Spinner: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
173
- color?: ThemeColors$1 | undefined;
183
+ color?: ThemeColors$2 | undefined;
174
184
  size?: SizesTypes$2 | undefined;
175
185
  }, never>;
176
186
 
@@ -249,9 +259,9 @@ declare type AvatarProps = {
249
259
  size?: SizesTypes$1 | number;
250
260
  withShadow?: boolean;
251
261
  label?: string;
252
- backgroundColor?: ThemeColors$2;
262
+ backgroundColor?: ThemeColors$1;
253
263
  textConfig?: {
254
- color?: ThemeColors$2;
264
+ color?: ThemeColors$1;
255
265
  font?: FontSizesTypes$2;
256
266
  };
257
267
  content: {
@@ -271,7 +281,7 @@ declare const VerticalPadding: styled_components.StyledComponent<"div", styled_c
271
281
 
272
282
  declare type DividerProps = {
273
283
  type?: 'horizontal' | 'vertical';
274
- color?: ThemeColors$2 | string;
284
+ color?: ThemeColors$1 | string;
275
285
  marginVertical?: SizesTypes$1 | number;
276
286
  marginHorizontal?: SizesTypes$1 | number;
277
287
  weight?: number;
@@ -297,7 +307,7 @@ declare const COMMUNICATION_LINK_DATA_TEXT = "communication-link-text";
297
307
  declare type RichTextEditorProps = Partial<{
298
308
  value: string;
299
309
  font: FontSizesTypes$2;
300
- color: ThemeColors$2 | string;
310
+ color: ThemeColors$1 | string;
301
311
  textStyles: StylesType;
302
312
  numberOfLines?: number;
303
313
  extraTextProps?: TextProps$1;
@@ -330,8 +340,8 @@ declare const Circle: ({ index, type }: CircleBoxProps) => JSX.Element;
330
340
 
331
341
  declare type CircularIndicatorProps = {
332
342
  active: boolean;
333
- activeColor?: ThemeColors$2 | string;
334
- inactiveColor?: ThemeColors$2 | string;
343
+ activeColor?: ThemeColors$1 | string;
344
+ inactiveColor?: ThemeColors$1 | string;
335
345
  };
336
346
  declare const CircularIndicator: ({ activeColor, inactiveColor, ...props }: CircularIndicatorProps) => JSX.Element;
337
347
  declare const CircularIndicatorStyledComponent: styled_components.StyledComponent<"span", styled_components.DefaultTheme, CircularIndicatorProps, never>;
@@ -340,8 +350,8 @@ declare type IconButtonProps = {
340
350
  name: IconNames$2;
341
351
  size?: number;
342
352
  onClick: Callback$1;
343
- color?: ThemeColors$2 | string;
344
- fill?: ThemeColors$2 | string;
353
+ color?: ThemeColors$1 | string;
354
+ fill?: ThemeColors$1 | string;
345
355
  pointerEvents?: 'auto' | 'none';
346
356
  };
347
357
  declare const IconButton: ({ name, color, onClick, disabled, activeOpacity, withoutOpacityEffect, ...props }: IconButtonProps & TouchableOpacityProps$1) => JSX.Element;
@@ -369,9 +379,9 @@ declare type TabProps<T = string, K = string> = {
369
379
  tabFont: FontSizesTypes$2;
370
380
  textSize: number;
371
381
  tabPadding: SizesTypes$1 | number;
372
- defaultTabTextColor: ThemeColors$2 | string;
373
- selectedTabTextColor: ThemeColors$2 | string;
374
- selectedTabIndicatorColor: ThemeColors$2 | string;
382
+ defaultTabTextColor: ThemeColors$1 | string;
383
+ selectedTabTextColor: ThemeColors$1 | string;
384
+ selectedTabIndicatorColor: ThemeColors$1 | string;
375
385
  styles: StylesType;
376
386
  }>;
377
387
  declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, tabFont, tabPadding, selectedTabIndicatorColor, textSize, defaultTabTextColor, ...tabProps }: TabProps<T, K>, ref: React__default.ForwardedRef<TabElement>) => JSX.Element;
@@ -390,9 +400,9 @@ declare const Tab: <T, K>(props: {
390
400
  tabFont: FontSizesTypes$2;
391
401
  textSize: number;
392
402
  tabPadding: SizesTypes$1 | number;
393
- defaultTabTextColor: ThemeColors$2 | string;
394
- selectedTabTextColor: ThemeColors$2 | string;
395
- selectedTabIndicatorColor: ThemeColors$2 | string;
403
+ defaultTabTextColor: ThemeColors$1 | string;
404
+ selectedTabTextColor: ThemeColors$1 | string;
405
+ selectedTabIndicatorColor: ThemeColors$1 | string;
396
406
  styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
397
407
  }> & {
398
408
  ref?: React__default.ForwardedRef<TabElement> | undefined;
@@ -822,14 +832,14 @@ declare type LabelInternalConfig = {
822
832
  fontVariant: FontSizesTypes$2;
823
833
  fontSize: number;
824
834
  fontWeight: string | number;
825
- color: ThemeColors$2 | string;
835
+ color: ThemeColors$1 | string;
826
836
  padding: string;
827
837
  styles: StylesType;
828
838
  wrapperStyles: StylesType;
829
839
  };
830
840
  declare type RuleLabelInternalConfig = {
831
- requiredTextColor: ThemeColors$2 | string;
832
- optionalTextColor: ThemeColors$2 | string;
841
+ requiredTextColor: ThemeColors$1 | string;
842
+ optionalTextColor: ThemeColors$1 | string;
833
843
  padding: string;
834
844
  fontSize: number;
835
845
  styles: StylesType;
@@ -838,15 +848,15 @@ declare type TooltipInternalConfig = {
838
848
  fontVariant: FontSizesTypes$2;
839
849
  fontSize: number;
840
850
  fontWeight: string | number;
841
- color: ThemeColors$2 | string;
851
+ color: ThemeColors$1 | string;
842
852
  padding: string;
843
- backgroundColor: ThemeColors$2 | string;
844
- iconColor: ThemeColors$2 | string;
853
+ backgroundColor: ThemeColors$1 | string;
854
+ iconColor: ThemeColors$1 | string;
845
855
  styles: StylesType;
846
856
  wrapperStyles: StylesType;
847
857
  };
848
858
  declare type FieldLabelsProps = {
849
- label: string;
859
+ label?: string;
850
860
  tooltipText?: string;
851
861
  isError?: boolean;
852
862
  isTooltipVisible?: boolean;
@@ -952,7 +962,7 @@ declare type DrawerProps = DrawerProps$1 & {
952
962
  padding?: SizesTypes$2 | number;
953
963
  height?: number | string;
954
964
  width?: number | string;
955
- closeIconColor?: ThemeColors$1 | string;
965
+ closeIconColor?: ThemeColors$2 | string;
956
966
  };
957
967
 
958
968
  declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
@@ -1008,9 +1018,9 @@ declare type TabGroupProps<T = string, K = string> = {
1008
1018
  textSize?: number;
1009
1019
  tabPadding?: SizesTypes$2 | number;
1010
1020
  tabSpacing?: SizesTypes$2;
1011
- defaultTabTextColor?: ThemeColors$1 | string;
1012
- selectedTabTextColor?: ThemeColors$1 | string;
1013
- selectedTabIndicatorColor?: ThemeColors$1 | string;
1021
+ defaultTabTextColor?: ThemeColors$2 | string;
1022
+ selectedTabTextColor?: ThemeColors$2 | string;
1023
+ selectedTabIndicatorColor?: ThemeColors$2 | string;
1014
1024
  wide?: AdditionalTabContainerProps;
1015
1025
  compact?: AdditionalTabContainerProps;
1016
1026
  };
@@ -1063,7 +1073,7 @@ declare type AlertProps = {
1063
1073
  withCloseIcon?: {
1064
1074
  onClose: Callback$1;
1065
1075
  };
1066
- fontColor?: ThemeColors$2;
1076
+ fontColor?: ThemeColors$1;
1067
1077
  destinationLink?: string;
1068
1078
  onDestinationHandler?: Callback$1;
1069
1079
  containerStyles?: CSSProperties;
@@ -1086,12 +1096,12 @@ declare type PdfDocumentProps = {
1086
1096
  source: string;
1087
1097
  isMobile?: boolean;
1088
1098
  customDocumentStyles?: Partial<{
1089
- wrapperBackgroundColor: ThemeColors$2 | string;
1090
- pageNumberColor: ThemeColors$2 | string;
1099
+ wrapperBackgroundColor: ThemeColors$1 | string;
1100
+ pageNumberColor: ThemeColors$1 | string;
1091
1101
  pageWidth: number;
1092
1102
  pageHeight: number;
1093
- paginationArrowColor: ThemeColors$2 | string;
1094
- disabledPaginationArrowColor: ThemeColors$2 | string;
1103
+ paginationArrowColor: ThemeColors$1 | string;
1104
+ disabledPaginationArrowColor: ThemeColors$1 | string;
1095
1105
  }>;
1096
1106
  };
1097
1107
  declare const PdfDocument: ({ source, isMobile, customDocumentStyles, }: PdfDocumentProps) => JSX.Element;
@@ -1172,7 +1182,7 @@ declare type TextMoleculeProps = Partial<{
1172
1182
  variant: 'base' | 'custom';
1173
1183
  fontVariant: FontSizesTypes$2;
1174
1184
  textSize: number;
1175
- textColor: ThemeColors$2 | string;
1185
+ textColor: ThemeColors$1 | string;
1176
1186
  letterSpacing: number;
1177
1187
  lineHeight: number;
1178
1188
  fontWeight: string | number;
@@ -1187,21 +1197,22 @@ declare type BaseButtonProps = PropsWithChildren<{
1187
1197
  onClick?: Callback$1;
1188
1198
  variant?: ButtonVariant;
1189
1199
  disabled?: boolean;
1200
+ state?: 'disabled' | 'enabled';
1190
1201
  fullWidth?: boolean;
1191
1202
  size?: 'medium' | 'small';
1192
1203
  buttonFont?: FontSizesTypes$2;
1193
- textColor?: ThemeColors$2 | string;
1204
+ textColor?: ThemeColors$1 | string;
1194
1205
  textSize?: number;
1195
1206
  horizontalPadding?: SizesTypes$1;
1196
1207
  verticalPadding?: SizesTypes$1;
1197
- buttonColor?: ThemeColors$2 | string;
1198
- buttonStroke?: ThemeColors$2 | string;
1208
+ buttonColor?: ThemeColors$1 | string;
1209
+ buttonStroke?: ThemeColors$1 | string;
1199
1210
  cornerRadius?: SizesTypes$1 | number;
1200
- hoverButtonColor?: ThemeColors$2 | string;
1201
- hoverStrokeColor?: ThemeColors$2 | string;
1202
- inactiveButtonColor?: ThemeColors$2 | string;
1203
- inactiveStrokeColor?: ThemeColors$2 | string;
1204
- inactiveTextColor?: ThemeColors$2 | string;
1211
+ hoverButtonColor?: ThemeColors$1 | string;
1212
+ hoverStrokeColor?: ThemeColors$1 | string;
1213
+ inactiveButtonColor?: ThemeColors$1 | string;
1214
+ inactiveStrokeColor?: ThemeColors$1 | string;
1215
+ inactiveTextColor?: ThemeColors$1 | string;
1205
1216
  styles?: StylesType;
1206
1217
  colorTheme?: 'light' | 'dark';
1207
1218
  href?: string;
@@ -1216,7 +1227,7 @@ declare type ButtonProps = BaseButtonProps & {
1216
1227
  containerStyle?: CSSProperties;
1217
1228
  buttonStyle?: CSSProperties;
1218
1229
  };
1219
- declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, ...props }: ButtonProps) => JSX.Element | null;
1230
+ declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, ...props }: ButtonProps) => JSX.Element | null;
1220
1231
 
1221
1232
  declare const Container: ({ children, wide, compact, type, ...props }: ContainerProps$1) => JSX.Element;
1222
1233
  declare const ContainerComponent: ({ type, items, config, tabsProps }: ContainerComponentProps$1) => JSX.Element | null;
@@ -1278,7 +1289,7 @@ interface TextMoleculeType extends BaseMolecule {
1278
1289
  props: {
1279
1290
  fontVariant: FontSizesTypes$2;
1280
1291
  textSize: number;
1281
- textColor: ThemeColors$2 | string;
1292
+ textColor: ThemeColors$1 | string;
1282
1293
  letterSpacing: number;
1283
1294
  lineHeight: number;
1284
1295
  isRichText: boolean;
@@ -1370,4 +1381,4 @@ declare const OrganismItem: ({ item, tabsProps, }: {
1370
1381
  tabsProps?: Pick<TabGroupProps$1<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
1371
1382
  }) => JSX.Element | null;
1372
1383
 
1373
- export { AcquisitionForm, AcquisitionFormProps, AdditionalContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonMolecule, ButtonProps, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, Circle, CircleBoxProps, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, FontWeight, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, Image, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldInternalConfigProps, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LabelInternalConfig, LinkAttributes, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismItem, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, RuleLabelInternalConfig, Select, SelectAttributes, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Slide, SlidesWrapper, Spacer, SpacerProps, Spinner, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupMolecule, TabGroupProps, TabOption, TabProps, TabTheme, TabType, TextAlign, TextAttributes, TextButton, TextButtonProps, TextMolecule, TextMoleculeProps, TextMoleculeType, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipInternalConfig, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoAttributes, VideoMolecule, VideoProps, Wrapper, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
1384
+ export { AcquisitionForm, AcquisitionFormProps, AdditionalContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonMolecule, ButtonProps, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, Circle, CircleBoxProps, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, FontWeight, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, Image, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldInternalConfigProps, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LabelInternalConfig, LinkAttributes, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismItem, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, RuleLabelInternalConfig, Select, SelectAttributes, SelectField, SelectFieldProps, SelectInternalConfigurationOptions, SelectOption, SelectProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Slide, SlidesWrapper, Spacer, SpacerProps, Spinner, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupMolecule, TabGroupProps, TabOption, TabProps, TabTheme, TabType, TextAlign, TextAttributes, TextButton, TextButtonProps, TextMolecule, TextMoleculeProps, TextMoleculeType, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipInternalConfig, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoAttributes, VideoMolecule, VideoProps, Wrapper, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.2.87",
3
+ "version": "0.2.88",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"
@@ -1,14 +0,0 @@
1
- export declare type SelectOption = {
2
- id: string;
3
- label: string;
4
- };
5
- export declare type SelectProps = {
6
- value?: string;
7
- optionsPresentation?: boolean;
8
- onChange?: (value: string) => void;
9
- placeholder?: string;
10
- disabled?: boolean;
11
- options?: SelectOption[];
12
- isError?: boolean;
13
- isEditMode?: boolean;
14
- };
@@ -1,14 +0,0 @@
1
- export declare type SelectOption = {
2
- id: string;
3
- label: string;
4
- };
5
- export declare type SelectProps = {
6
- value?: string;
7
- optionsPresentation?: boolean;
8
- onChange?: (value: string) => void;
9
- placeholder?: string;
10
- disabled?: boolean;
11
- options?: SelectOption[];
12
- isError?: boolean;
13
- isEditMode?: boolean;
14
- };