@zealicsolutions/web-ui 0.1.8 → 0.1.10
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.
- package/dist/cjs/index.js +33 -27
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/assets/index.d.ts +1 -0
- package/dist/cjs/src/atoms/Icon/Icon.d.ts +2 -1
- package/dist/cjs/src/atoms/RichTextViewer/RichTextViewer.d.ts +5 -0
- package/dist/cjs/src/atoms/RichTextViewer/components/EditorElement.d.ts +3 -0
- package/dist/cjs/src/atoms/RichTextViewer/components/Leaf.d.ts +3 -0
- package/dist/cjs/src/atoms/RichTextViewer/components/LinkElement.d.ts +3 -0
- package/dist/cjs/src/atoms/RichTextViewer/components/index.d.ts +3 -0
- package/dist/cjs/src/atoms/RichTextViewer/types.d.ts +21 -0
- package/dist/cjs/src/atoms/TextWrapper/TextWrapper.d.ts +3 -3
- package/dist/cjs/src/atoms/TextWrapper/TextWrapper.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/index.d.ts +1 -0
- package/dist/cjs/src/helpers/date.d.ts +3 -0
- package/dist/cjs/src/icons/Menu.d.ts +3 -0
- package/dist/cjs/src/icons/index.d.ts +1 -0
- package/dist/cjs/src/molecules/Columns/Columns.d.ts +4 -1
- package/dist/cjs/src/molecules/Columns/Columns.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/EmphasizedText/EmphasizedText.d.ts +1 -0
- package/dist/cjs/src/molecules/HeroImage/HeroImage.d.ts +1 -0
- package/dist/cjs/src/molecules/MenuNavigation/MenuNavigation.d.ts +6 -0
- package/dist/cjs/src/molecules/MenuNavigation/MenuNavigation.stories.d.ts +10 -0
- package/dist/cjs/src/molecules/SelectableInfoCard/styles.d.ts +1 -1
- package/dist/cjs/src/molecules/Tab/styles.d.ts +1 -1
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +3 -1
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/cjs/src/organisms/Body/Body.d.ts +11 -0
- package/dist/cjs/src/organisms/Body/Body.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/Footer/Footer.d.ts +6 -0
- package/dist/cjs/src/organisms/Footer/Footer.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/Footer/FooterA.d.ts +13 -0
- package/dist/cjs/src/organisms/Footer/FooterB.d.ts +11 -0
- package/dist/cjs/src/organisms/Footer/FooterC.d.ts +6 -0
- package/dist/cjs/src/organisms/Footer/styles.d.ts +9 -0
- package/dist/cjs/src/organisms/Footer/types.d.ts +10 -0
- package/dist/cjs/src/organisms/Header/Header/Header.d.ts +16 -0
- package/dist/cjs/src/organisms/Header/Header/Header.stories.d.ts +17 -0
- package/dist/cjs/src/organisms/Header/HeaderA/HeaderA.d.ts +18 -0
- package/dist/cjs/src/organisms/Header/HeaderA/HeaderA.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/Header/HeaderB/HeaderB.d.ts +12 -0
- package/dist/cjs/src/organisms/Header/HeaderB/HeaderB.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/Header/HeaderC/HeaderC.d.ts +9 -0
- package/dist/cjs/src/organisms/Header/HeaderC/HeaderC.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/Header/HeaderD/HeaderD.d.ts +17 -0
- package/dist/cjs/src/organisms/Header/HeaderD/HeaderD.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/Header/styles.d.ts +2 -1
- package/dist/cjs/src/organisms/ISI/ISI.d.ts +4 -0
- package/dist/cjs/src/organisms/ISI/ISI.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/ISI/ISIA.d.ts +7 -0
- package/dist/cjs/src/organisms/index.d.ts +5 -1
- package/dist/cjs/src/theme/index.d.ts +1 -0
- package/dist/cjs/src/theme/types.d.ts +6 -2
- package/dist/cjs/src/theme/useMediaQuery.d.ts +2 -0
- package/dist/esm/index.js +33 -27
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/assets/index.d.ts +1 -0
- package/dist/esm/src/atoms/Icon/Icon.d.ts +2 -1
- package/dist/esm/src/atoms/RichTextViewer/RichTextViewer.d.ts +5 -0
- package/dist/esm/src/atoms/RichTextViewer/components/EditorElement.d.ts +3 -0
- package/dist/esm/src/atoms/RichTextViewer/components/Leaf.d.ts +3 -0
- package/dist/esm/src/atoms/RichTextViewer/components/LinkElement.d.ts +3 -0
- package/dist/esm/src/atoms/RichTextViewer/components/index.d.ts +3 -0
- package/dist/esm/src/atoms/RichTextViewer/types.d.ts +21 -0
- package/dist/esm/src/atoms/TextWrapper/TextWrapper.d.ts +3 -3
- package/dist/esm/src/atoms/TextWrapper/TextWrapper.stories.d.ts +1 -1
- package/dist/esm/src/atoms/index.d.ts +1 -0
- package/dist/esm/src/helpers/date.d.ts +3 -0
- package/dist/esm/src/icons/Menu.d.ts +3 -0
- package/dist/esm/src/icons/index.d.ts +1 -0
- package/dist/esm/src/molecules/Columns/Columns.d.ts +4 -1
- package/dist/esm/src/molecules/Columns/Columns.stories.d.ts +1 -1
- package/dist/esm/src/molecules/EmphasizedText/EmphasizedText.d.ts +1 -0
- package/dist/esm/src/molecules/HeroImage/HeroImage.d.ts +1 -0
- package/dist/esm/src/molecules/MenuNavigation/MenuNavigation.d.ts +6 -0
- package/dist/esm/src/molecules/MenuNavigation/MenuNavigation.stories.d.ts +10 -0
- package/dist/esm/src/molecules/SelectableInfoCard/styles.d.ts +1 -1
- package/dist/esm/src/molecules/Tab/styles.d.ts +1 -1
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +3 -1
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/esm/src/organisms/Body/Body.d.ts +11 -0
- package/dist/esm/src/organisms/Body/Body.stories.d.ts +9 -0
- package/dist/esm/src/organisms/Footer/Footer.d.ts +6 -0
- package/dist/esm/src/organisms/Footer/Footer.stories.d.ts +9 -0
- package/dist/esm/src/organisms/Footer/FooterA.d.ts +13 -0
- package/dist/esm/src/organisms/Footer/FooterB.d.ts +11 -0
- package/dist/esm/src/organisms/Footer/FooterC.d.ts +6 -0
- package/dist/esm/src/organisms/Footer/styles.d.ts +9 -0
- package/dist/esm/src/organisms/Footer/types.d.ts +10 -0
- package/dist/esm/src/organisms/Header/Header/Header.d.ts +16 -0
- package/dist/esm/src/organisms/Header/Header/Header.stories.d.ts +17 -0
- package/dist/esm/src/organisms/Header/HeaderA/HeaderA.d.ts +18 -0
- package/dist/esm/src/organisms/Header/HeaderA/HeaderA.stories.d.ts +9 -0
- package/dist/esm/src/organisms/Header/HeaderB/HeaderB.d.ts +12 -0
- package/dist/esm/src/organisms/Header/HeaderB/HeaderB.stories.d.ts +9 -0
- package/dist/esm/src/organisms/Header/HeaderC/HeaderC.d.ts +9 -0
- package/dist/esm/src/organisms/Header/HeaderC/HeaderC.stories.d.ts +9 -0
- package/dist/esm/src/organisms/Header/HeaderD/HeaderD.d.ts +17 -0
- package/dist/esm/src/organisms/Header/HeaderD/HeaderD.stories.d.ts +9 -0
- package/dist/esm/src/organisms/Header/styles.d.ts +2 -1
- package/dist/esm/src/organisms/ISI/ISI.d.ts +4 -0
- package/dist/esm/src/organisms/ISI/ISI.stories.d.ts +9 -0
- package/dist/esm/src/organisms/ISI/ISIA.d.ts +7 -0
- package/dist/esm/src/organisms/index.d.ts +5 -1
- package/dist/esm/src/theme/index.d.ts +1 -0
- package/dist/esm/src/theme/types.d.ts +6 -2
- package/dist/esm/src/theme/useMediaQuery.d.ts +2 -0
- package/dist/index.d.ts +150 -56
- package/package.json +8 -5
- package/dist/cjs/src/organisms/Header/Header.d.ts +0 -18
- package/dist/cjs/src/organisms/Header/Header.stories.d.ts +0 -9
- package/dist/esm/src/organisms/Header/Header.d.ts +0 -18
- package/dist/esm/src/organisms/Header/Header.stories.d.ts +0 -9
package/dist/index.d.ts
CHANGED
|
@@ -3,11 +3,14 @@ import { Callback, StylesType } from 'typescript';
|
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import react__default, { PropsWithChildren, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
5
5
|
import * as styled_components from 'styled-components';
|
|
6
|
-
import {
|
|
6
|
+
import { CSSProperties, DefaultTheme } from 'styled-components';
|
|
7
7
|
import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
|
|
8
8
|
import { InputFieldTypes as InputFieldTypes$1, FieldTypes as FieldTypes$1, UIFields as UIFields$1 } from 'fieldsConfiguration/types';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
10
|
+
import * as _mui_material from '@mui/material';
|
|
11
|
+
import { DrawerProps as DrawerProps$1 } from '@mui/material';
|
|
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';
|
|
11
14
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
|
12
15
|
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
|
13
16
|
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
|
@@ -15,9 +18,12 @@ import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
|
|
15
18
|
import { InputProps as InputProps$1 } from 'atoms';
|
|
16
19
|
import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
|
|
17
20
|
import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormState } from 'react-hook-form';
|
|
18
|
-
import { DrawerProps as DrawerProps$1 } from '@mui/material';
|
|
19
21
|
import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
|
|
20
|
-
import {
|
|
22
|
+
import { FooterAProps } from 'organisms/Footer/FooterA';
|
|
23
|
+
import { FooterBProps } from 'organisms/Footer/FooterB';
|
|
24
|
+
import { FooterCProps } from 'organisms/Footer/FooterC';
|
|
25
|
+
import { FieldSectionProps as FieldSectionProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, MenuItemsProps as MenuItemsProps$1, AvatarDropdownProps as AvatarDropdownProps$1 } from 'molecules';
|
|
26
|
+
import { ISIAProps } from 'organisms/ISI/ISIA';
|
|
21
27
|
import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
|
|
22
28
|
|
|
23
29
|
declare type BaseButtonProps = {
|
|
@@ -93,41 +99,18 @@ declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled,
|
|
|
93
99
|
declare type TextTypes = 'primary' | 'secondary' | 'error' | 'success';
|
|
94
100
|
declare type TextWrapperProps = {
|
|
95
101
|
children: ReactNode;
|
|
96
|
-
variant:
|
|
102
|
+
variant: FontSizesTypes$1;
|
|
97
103
|
layout?: 'div' | 'span';
|
|
98
104
|
type?: TextTypes;
|
|
99
105
|
styles?: StylesType;
|
|
100
106
|
color?: ThemeColors$1 | string;
|
|
101
107
|
};
|
|
102
|
-
declare const TextWrapper: styled_components.StyledComponent<"div"
|
|
103
|
-
|
|
104
|
-
declare const defaultTheme: DefaultTheme;
|
|
105
|
-
|
|
106
|
-
declare const ZealThemeProvider: (props: PropsWithChildren<{
|
|
107
|
-
theme?: DefaultTheme;
|
|
108
|
-
}>) => JSX.Element;
|
|
109
|
-
|
|
110
|
-
declare type ThemeColors = 'primary' | 'secondary' | 'background' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'indigo' | 'blue' | 'white' | 'black' | 'indigoTint' | 'indigoTint2' | 'success' | 'error' | 'warning';
|
|
111
|
-
declare type SizesTypes = '2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
112
|
-
declare type ThemeColorsType = Record<ThemeColors, string>;
|
|
113
|
-
declare type ThemeTextType = Record<SizesTypes, {
|
|
114
|
-
'font-weight': string;
|
|
115
|
-
'font-size': number;
|
|
116
|
-
'line-height': number;
|
|
117
|
-
}>;
|
|
118
|
-
declare type ThemeSizesType = Record<SizesTypes, number>;
|
|
119
|
-
declare type ZealTheme = {
|
|
120
|
-
colors: ThemeColorsType;
|
|
121
|
-
fonts: ThemeTextType;
|
|
122
|
-
sizes: ThemeSizesType;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
declare const toastStyles: styled_components.FlattenSimpleInterpolation;
|
|
108
|
+
declare const TextWrapper: styled_components.StyledComponent<_mui_material_OverridableComponent.OverridableComponent<_mui_material.BoxTypeMap<{}, "div">>, styled_components.DefaultTheme, TextWrapperProps, never>;
|
|
126
109
|
|
|
127
110
|
declare type IconProps = {
|
|
128
111
|
name: IconNames;
|
|
129
112
|
size?: number;
|
|
130
|
-
color?: ThemeColors | string;
|
|
113
|
+
color?: ThemeColors$2 | string;
|
|
131
114
|
pointerEvents?: 'auto' | 'none';
|
|
132
115
|
};
|
|
133
116
|
declare const availableIcons: {
|
|
@@ -145,20 +128,21 @@ declare const availableIcons: {
|
|
|
145
128
|
Bell: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
146
129
|
Mobile: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
147
130
|
Mail: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
131
|
+
Menu: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
148
132
|
};
|
|
149
133
|
declare type IconNames = keyof typeof availableIcons;
|
|
150
134
|
declare const Icon: ({ name, color, ...props }: IconProps) => JSX.Element;
|
|
151
135
|
|
|
152
136
|
declare type SpacerProps = {
|
|
153
|
-
width?: SizesTypes$
|
|
154
|
-
height?: SizesTypes$
|
|
137
|
+
width?: SizesTypes$1 | number;
|
|
138
|
+
height?: SizesTypes$1 | number;
|
|
155
139
|
layout?: 'div' | 'span';
|
|
156
140
|
};
|
|
157
141
|
declare const Spacer: styled_components.StyledComponent<"div", styled_components.DefaultTheme, SpacerProps, never>;
|
|
158
142
|
|
|
159
143
|
declare const Spinner: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
|
160
144
|
color?: ThemeColors$1 | undefined;
|
|
161
|
-
size?: SizesTypes$
|
|
145
|
+
size?: SizesTypes$2 | undefined;
|
|
162
146
|
}, never>;
|
|
163
147
|
|
|
164
148
|
declare type ImageProps = {
|
|
@@ -208,13 +192,13 @@ declare type ToastParams = {
|
|
|
208
192
|
declare const toast: ({ message, type, duration }: ToastParams) => void | undefined;
|
|
209
193
|
|
|
210
194
|
declare type AvatarProps = {
|
|
211
|
-
size?: SizesTypes$
|
|
195
|
+
size?: SizesTypes$1 | number;
|
|
212
196
|
withShadow?: boolean;
|
|
213
197
|
label?: string;
|
|
214
198
|
backgroundColor?: ThemeColors$2;
|
|
215
199
|
textConfig?: {
|
|
216
200
|
color?: ThemeColors$2;
|
|
217
|
-
font?: SizesTypes$
|
|
201
|
+
font?: SizesTypes$1;
|
|
218
202
|
};
|
|
219
203
|
content: {
|
|
220
204
|
initials?: string;
|
|
@@ -226,7 +210,7 @@ declare type AvatarProps = {
|
|
|
226
210
|
declare const Avatar: ({ size, withShadow, label, backgroundColor, onPress, content: { initials, iconName, imageUrl }, textConfig: { color, font }, }: AvatarProps) => JSX.Element;
|
|
227
211
|
|
|
228
212
|
declare type HorizontalPaddingProps = {
|
|
229
|
-
padding: SizesTypes$
|
|
213
|
+
padding: SizesTypes$1 | number;
|
|
230
214
|
};
|
|
231
215
|
declare const HorizontalPadding: styled_components.StyledComponent<"div", styled_components.DefaultTheme, HorizontalPaddingProps, never>;
|
|
232
216
|
declare const VerticalPadding: styled_components.StyledComponent<"div", styled_components.DefaultTheme, HorizontalPaddingProps, never>;
|
|
@@ -234,8 +218,8 @@ declare const VerticalPadding: styled_components.StyledComponent<"div", styled_c
|
|
|
234
218
|
declare type DividerProps = {
|
|
235
219
|
type?: 'horizontal' | 'vertical';
|
|
236
220
|
color?: ThemeColors$2 | string;
|
|
237
|
-
marginVertical?: SizesTypes$
|
|
238
|
-
marginHorizontal?: SizesTypes$
|
|
221
|
+
marginVertical?: SizesTypes$1 | number;
|
|
222
|
+
marginHorizontal?: SizesTypes$1 | number;
|
|
239
223
|
weight?: number;
|
|
240
224
|
};
|
|
241
225
|
declare const Divider: styled_components.StyledComponent<"div", styled_components.DefaultTheme, DividerProps, never>;
|
|
@@ -251,6 +235,11 @@ declare const GoogleMap: react__default.ComponentClass<{
|
|
|
251
235
|
position: MapPosition;
|
|
252
236
|
} & WithScriptjsProps & WithGoogleMapProps, any>;
|
|
253
237
|
|
|
238
|
+
declare type RichTextEditorProps = Partial<{
|
|
239
|
+
value: string;
|
|
240
|
+
}>;
|
|
241
|
+
declare const RichTextViewer: ({ value }: RichTextEditorProps) => JSX.Element | null;
|
|
242
|
+
|
|
254
243
|
declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
|
|
255
244
|
declare type FieldLabelsProps = {
|
|
256
245
|
label: string;
|
|
@@ -355,6 +344,35 @@ declare type CustomValidationProps<T = string> = {
|
|
|
355
344
|
};
|
|
356
345
|
declare const CustomValidation: <T extends string = string>({ rules, value, isSubmitted, label, }: CustomValidationProps<T>) => JSX.Element;
|
|
357
346
|
|
|
347
|
+
declare const defaultTheme: DefaultTheme;
|
|
348
|
+
|
|
349
|
+
declare const ZealThemeProvider: (props: PropsWithChildren<{
|
|
350
|
+
theme?: DefaultTheme;
|
|
351
|
+
}>) => JSX.Element;
|
|
352
|
+
|
|
353
|
+
declare type ThemeColors = 'primary' | 'secondary' | 'background' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'indigo' | 'blue' | 'white' | 'black' | 'indigoTint' | 'indigoTint2' | 'success' | 'error' | 'warning';
|
|
354
|
+
declare type SizesTypes = '2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
355
|
+
declare type FontSizesTypes = SizesTypes | 'H2';
|
|
356
|
+
declare type BreakpointSizesTypes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
357
|
+
declare type ThemeColorsType = Record<ThemeColors, string>;
|
|
358
|
+
declare type ThemeTextType = Record<FontSizesTypes, {
|
|
359
|
+
'font-weight': string;
|
|
360
|
+
'font-size': number;
|
|
361
|
+
'line-height': number;
|
|
362
|
+
}>;
|
|
363
|
+
declare type ThemeSizesType = Record<SizesTypes, number>;
|
|
364
|
+
declare type ThemeDevicesType = Record<BreakpointSizesTypes, string>;
|
|
365
|
+
declare type ZealTheme = {
|
|
366
|
+
colors: ThemeColorsType;
|
|
367
|
+
fonts: Record<FontSizesTypes, number>;
|
|
368
|
+
sizes: ThemeSizesType;
|
|
369
|
+
devices: ThemeDevicesType;
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
declare const toastStyles: styled_components.FlattenSimpleInterpolation;
|
|
373
|
+
|
|
374
|
+
declare const useMediaQuery: (breakpointSize: BreakpointSizesTypes$1) => boolean;
|
|
375
|
+
|
|
358
376
|
declare type BaseSelectableProps<T> = {
|
|
359
377
|
iconName: IconNames;
|
|
360
378
|
infoText: string;
|
|
@@ -373,6 +391,7 @@ declare const SelectableCardGroup: <T extends string>({ cards, handleChange, spa
|
|
|
373
391
|
|
|
374
392
|
declare type HeroImageAlignment = 'left_aligned' | 'center_aligned';
|
|
375
393
|
declare type HeroImageProps = {
|
|
394
|
+
type: 'hero_image';
|
|
376
395
|
backgroundImage: ImageProps;
|
|
377
396
|
mainHeading: string;
|
|
378
397
|
subHeading?: string;
|
|
@@ -384,7 +403,7 @@ declare const HeroImage: ({ backgroundImage, button, contentAlignment, mainHeadi
|
|
|
384
403
|
declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
|
|
385
404
|
declare type DrawerProps = DrawerProps$1 & {
|
|
386
405
|
anchor: Anchor;
|
|
387
|
-
padding?: SizesTypes$
|
|
406
|
+
padding?: SizesTypes$2 | number;
|
|
388
407
|
closeIconColor?: ThemeColors$1 | string;
|
|
389
408
|
};
|
|
390
409
|
|
|
@@ -397,9 +416,11 @@ declare type ColumnItem = {
|
|
|
397
416
|
icon: string;
|
|
398
417
|
};
|
|
399
418
|
declare type ColumnsProps = {
|
|
419
|
+
type: 'columns';
|
|
400
420
|
columns: ColumnItem[];
|
|
421
|
+
containerStyles?: CSSProperties;
|
|
401
422
|
};
|
|
402
|
-
declare const Columns: ({ columns }: ColumnsProps) => JSX.Element;
|
|
423
|
+
declare const Columns: ({ columns, containerStyles }: ColumnsProps) => JSX.Element;
|
|
403
424
|
|
|
404
425
|
declare type MenuItem<T> = {
|
|
405
426
|
id: T;
|
|
@@ -432,11 +453,12 @@ declare type TabProps<T = string, K = string> = {
|
|
|
432
453
|
declare type TabGroupProps<T = string, K = string> = {
|
|
433
454
|
tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options'>[];
|
|
434
455
|
activeTabKey: T;
|
|
435
|
-
spacing?: SizesTypes$
|
|
456
|
+
spacing?: SizesTypes$2;
|
|
436
457
|
onTabChange?: (tabKey: T) => void;
|
|
437
458
|
onOptionClick?: (optionKey: K) => void;
|
|
459
|
+
style?: CSSProperties;
|
|
438
460
|
};
|
|
439
|
-
declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, activeTabKey, onTabChange, }: TabGroupProps<T, K>) => JSX.Element;
|
|
461
|
+
declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, activeTabKey, onTabChange, style, }: TabGroupProps<T, K>) => JSX.Element;
|
|
440
462
|
|
|
441
463
|
declare type FieldSectionProps<T extends object> = {
|
|
442
464
|
label: string;
|
|
@@ -446,7 +468,13 @@ declare type FieldSectionProps<T extends object> = {
|
|
|
446
468
|
};
|
|
447
469
|
declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
|
|
448
470
|
|
|
471
|
+
declare type MenuNavigationProps<T> = {
|
|
472
|
+
menuConfig: MenuItemsProps<T>;
|
|
473
|
+
};
|
|
474
|
+
declare const MenuNavigation: <T extends string | number>({ menuConfig, }: MenuNavigationProps<T>) => JSX.Element;
|
|
475
|
+
|
|
449
476
|
declare type EmphasizedTextProps = {
|
|
477
|
+
type: 'emphasized_text';
|
|
450
478
|
invertColors: boolean;
|
|
451
479
|
textContent: string;
|
|
452
480
|
};
|
|
@@ -510,20 +538,19 @@ declare type LoginFormProps = {
|
|
|
510
538
|
};
|
|
511
539
|
declare const LoginForm: ({ logoUrl, fields, onSubmit, onSignUpButtonClick, isLoading, twoFactorAuthConfig, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
|
|
512
540
|
|
|
513
|
-
declare type
|
|
514
|
-
|
|
515
|
-
|
|
541
|
+
declare type FooterProps = FooterAProps | FooterBProps | FooterCProps;
|
|
542
|
+
declare const Footer: (props: FooterProps) => JSX.Element;
|
|
543
|
+
|
|
544
|
+
declare type FooterContentInfo = {
|
|
545
|
+
phoneNumber: string;
|
|
546
|
+
addressLine1: string;
|
|
547
|
+
addressLine2: string;
|
|
516
548
|
};
|
|
517
|
-
declare type
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
withAvatar?: {
|
|
522
|
-
props: AvatarDropdownProps<string>;
|
|
523
|
-
};
|
|
524
|
-
onActionButtonClick?: Callback;
|
|
549
|
+
declare type FooterLink = {
|
|
550
|
+
id: string;
|
|
551
|
+
name: string;
|
|
552
|
+
location: string;
|
|
525
553
|
};
|
|
526
|
-
declare const Header: ({ logoUrl, links, onActionButtonClick, tabs, withAvatar }: HeaderProps) => JSX.Element;
|
|
527
554
|
|
|
528
555
|
declare type ProfileInformationProps<TabKeys extends string> = {
|
|
529
556
|
backgroundImageUrl: string;
|
|
@@ -552,6 +579,73 @@ declare type ForgotPasswordFormProps = {
|
|
|
552
579
|
};
|
|
553
580
|
declare const ForgotPasswordForm: ({ logoUrl, onBack, onSubmit, isLoading, }: ForgotPasswordFormProps) => JSX.Element;
|
|
554
581
|
|
|
582
|
+
declare type BodyProps = {
|
|
583
|
+
elements: {
|
|
584
|
+
data: (HeroImageProps$1 | ColumnsProps$1 | EmphasizedTextProps$1)[];
|
|
585
|
+
spacer?: number;
|
|
586
|
+
};
|
|
587
|
+
containerStyles?: CSSProperties;
|
|
588
|
+
};
|
|
589
|
+
declare const Body: ({ elements, containerStyles }: BodyProps) => JSX.Element;
|
|
590
|
+
|
|
591
|
+
declare type ISIProps = ISIAProps;
|
|
592
|
+
declare const ISI: (props: ISIProps) => JSX.Element;
|
|
593
|
+
|
|
594
|
+
declare type ImportantLink$1 = {
|
|
595
|
+
text: string;
|
|
596
|
+
href: string;
|
|
597
|
+
};
|
|
598
|
+
declare type HeaderAProps<T> = {
|
|
599
|
+
links?: ImportantLink$1[];
|
|
600
|
+
logoUrl: string;
|
|
601
|
+
tabs: TabGroupProps$1['tabs'];
|
|
602
|
+
onActionButtonClick?: Callback;
|
|
603
|
+
buttonText: string;
|
|
604
|
+
menuConfig: MenuItemsProps$1<T>;
|
|
605
|
+
isMobile?: boolean;
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
declare type HeaderBProps<T> = {
|
|
609
|
+
logoUrl: string;
|
|
610
|
+
tabs: TabGroupProps$1['tabs'];
|
|
611
|
+
onActionButtonClick?: Callback;
|
|
612
|
+
buttonText?: string;
|
|
613
|
+
menuConfig: MenuItemsProps$1<T>;
|
|
614
|
+
isMobile?: boolean;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
declare type HeaderCProps<T> = {
|
|
618
|
+
logoUrl: string;
|
|
619
|
+
tabs: TabGroupProps$1['tabs'];
|
|
620
|
+
menuConfig: MenuItemsProps$1<T>;
|
|
621
|
+
isMobile?: boolean;
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
declare type ImportantLink = {
|
|
625
|
+
text: string;
|
|
626
|
+
href: string;
|
|
627
|
+
};
|
|
628
|
+
declare type HeaderDProps = {
|
|
629
|
+
links?: ImportantLink[];
|
|
630
|
+
logoUrl: string;
|
|
631
|
+
tabs: TabGroupProps$1['tabs'];
|
|
632
|
+
withAvatar: {
|
|
633
|
+
props: AvatarDropdownProps$1<string>;
|
|
634
|
+
};
|
|
635
|
+
isMobile?: boolean;
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
declare type HeaderProps<T> = (HeaderAProps<T> & {
|
|
639
|
+
type: 'header_a';
|
|
640
|
+
}) | (HeaderBProps<T> & {
|
|
641
|
+
type: 'header_b';
|
|
642
|
+
}) | (HeaderCProps<T> & {
|
|
643
|
+
type: 'header_c';
|
|
644
|
+
}) | (HeaderDProps & {
|
|
645
|
+
type: 'header_d';
|
|
646
|
+
});
|
|
647
|
+
declare const Header: <T extends string | number>(props: HeaderProps<T>) => JSX.Element;
|
|
648
|
+
|
|
555
649
|
declare type DefaultTemplateProps = {
|
|
556
650
|
header: React.ReactNode;
|
|
557
651
|
banner?: React.ReactNode;
|
|
@@ -569,4 +663,4 @@ interface Helpers {
|
|
|
569
663
|
}
|
|
570
664
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
|
571
665
|
|
|
572
|
-
export { AcquisitionForm, AcquisitionFormProps, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BaseButtonProps, Button, ButtonProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, ColumnItem, Columns, ColumnsProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, EmphasizedText, EmphasizedTextProps, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header,
|
|
666
|
+
export { AcquisitionForm, AcquisitionFormProps, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BaseButtonProps, Body, BodyProps, BreakpointSizesTypes, Button, ButtonProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, ColumnItem, Columns, ColumnsProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, EmphasizedText, EmphasizedTextProps, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FontSizesTypes, Footer, FooterContentInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeroImage, HeroImageAlignment, HeroImageProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconNames, IconProps, Image, ImageProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkButton, LinkButtonProps, LoginForm, LoginFormProps, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, ProfileInformation, ProfileInformationProps, RichTextEditorProps, RichTextViewer, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Spacer, SpacerProps, Spinner, StyleWrapper, TabGroup, TabGroupProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, toast, toastStyles, useMediaQuery, useStep };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zealicsolutions/web-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"
|
|
@@ -83,17 +83,20 @@
|
|
|
83
83
|
"styled-components": "^5.3.5"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"react": "^18.2.0",
|
|
87
|
-
"react-dom": "^18.2.0",
|
|
88
|
-
"styled-components": "^5.3.5",
|
|
89
86
|
"@mui/material": "^5.10.4",
|
|
90
87
|
"@mui/styled-engine-sc": "npm:@mui/styled-engine-sc@latest",
|
|
91
88
|
"@types/react-dom": "^18.0.6",
|
|
89
|
+
"date-fns": "^2.29.3",
|
|
92
90
|
"rc-dropdown": "^4.0.1",
|
|
93
91
|
"rc-notification": "^4.6.0",
|
|
94
92
|
"rc-tooltip": "^5.2.2",
|
|
93
|
+
"react": "^18.2.0",
|
|
94
|
+
"react-dom": "^18.2.0",
|
|
95
95
|
"react-google-maps": "^9.4.5",
|
|
96
|
-
"react-hook-form": "^7.34.2"
|
|
96
|
+
"react-hook-form": "^7.34.2",
|
|
97
|
+
"slate": "^0.85.0",
|
|
98
|
+
"slate-react": "^0.83.2",
|
|
99
|
+
"styled-components": "^5.3.5"
|
|
97
100
|
},
|
|
98
101
|
"resolutions": {
|
|
99
102
|
"@mui/styled-engine": "npm:@mui/styled-engine-sc@latest"
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Callback } from 'typescript';
|
|
3
|
-
import { AvatarDropdownProps, TabGroupProps } from '../../molecules';
|
|
4
|
-
declare type ImportantLink = {
|
|
5
|
-
text: string;
|
|
6
|
-
href: string;
|
|
7
|
-
};
|
|
8
|
-
export declare type HeaderProps = {
|
|
9
|
-
links?: ImportantLink[];
|
|
10
|
-
logoUrl: string;
|
|
11
|
-
tabs: TabGroupProps['tabs'];
|
|
12
|
-
withAvatar?: {
|
|
13
|
-
props: AvatarDropdownProps<string>;
|
|
14
|
-
};
|
|
15
|
-
onActionButtonClick?: Callback;
|
|
16
|
-
};
|
|
17
|
-
export declare const Header: ({ logoUrl, links, onActionButtonClick, tabs, withAvatar }: HeaderProps) => JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory } from '@storybook/react';
|
|
3
|
-
import { Header as HeaderComponent } from './Header';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: ({ logoUrl, links, onActionButtonClick, tabs, withAvatar }: import("./Header").HeaderProps) => JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Header: ComponentStory<typeof HeaderComponent>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Callback } from 'typescript';
|
|
3
|
-
import { AvatarDropdownProps, TabGroupProps } from '../../molecules';
|
|
4
|
-
declare type ImportantLink = {
|
|
5
|
-
text: string;
|
|
6
|
-
href: string;
|
|
7
|
-
};
|
|
8
|
-
export declare type HeaderProps = {
|
|
9
|
-
links?: ImportantLink[];
|
|
10
|
-
logoUrl: string;
|
|
11
|
-
tabs: TabGroupProps['tabs'];
|
|
12
|
-
withAvatar?: {
|
|
13
|
-
props: AvatarDropdownProps<string>;
|
|
14
|
-
};
|
|
15
|
-
onActionButtonClick?: Callback;
|
|
16
|
-
};
|
|
17
|
-
export declare const Header: ({ logoUrl, links, onActionButtonClick, tabs, withAvatar }: HeaderProps) => JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory } from '@storybook/react';
|
|
3
|
-
import { Header as HeaderComponent } from './Header';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: ({ logoUrl, links, onActionButtonClick, tabs, withAvatar }: import("./Header").HeaderProps) => JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Header: ComponentStory<typeof HeaderComponent>;
|