@zealicsolutions/web-ui 0.0.8 → 0.0.9
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 +46 -37
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/assets/index.d.ts +1 -0
- package/dist/cjs/src/atoms/GoogleMap/GoogleMap.d.ts +13 -0
- package/dist/cjs/src/atoms/GoogleMap/GoogleMap.stories.d.ts +12 -0
- package/dist/cjs/src/atoms/index.d.ts +1 -0
- package/dist/cjs/src/fieldsConfiguration/mock.d.ts +5 -0
- package/dist/cjs/src/fieldsConfiguration/utils.d.ts +2 -0
- package/dist/cjs/src/icons/Edit.d.ts +3 -0
- package/dist/cjs/src/icons/Save.d.ts +3 -0
- package/dist/cjs/src/icons/index.d.ts +2 -0
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/cjs/src/molecules/Drawer/Drawer.d.ts +1 -1
- package/dist/cjs/src/molecules/Drawer/Drawer.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/Drawer/styles.d.ts +13 -1
- package/dist/cjs/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
- package/dist/cjs/src/molecules/FieldSection/FieldSection.d.ts +10 -0
- package/dist/cjs/src/molecules/FieldSection/FieldSection.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +1 -1
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/cjs/src/organisms/AccountInformation/AccountInformation.d.ts +11 -0
- package/dist/cjs/src/organisms/ProfileInformation/ProfileInformation.d.ts +19 -0
- package/dist/cjs/src/organisms/ProfileInformation/ProfileInformation.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/index.d.ts +1 -0
- package/dist/cjs/src/theme/provider.d.ts +4 -1
- package/dist/esm/index.js +46 -37
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/assets/index.d.ts +1 -0
- package/dist/esm/src/atoms/GoogleMap/GoogleMap.d.ts +13 -0
- package/dist/esm/src/atoms/GoogleMap/GoogleMap.stories.d.ts +12 -0
- package/dist/esm/src/atoms/index.d.ts +1 -0
- package/dist/esm/src/fieldsConfiguration/mock.d.ts +5 -0
- package/dist/esm/src/fieldsConfiguration/utils.d.ts +2 -0
- package/dist/esm/src/icons/Edit.d.ts +3 -0
- package/dist/esm/src/icons/Save.d.ts +3 -0
- package/dist/esm/src/icons/index.d.ts +2 -0
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/esm/src/molecules/Drawer/Drawer.d.ts +1 -1
- package/dist/esm/src/molecules/Drawer/Drawer.stories.d.ts +1 -1
- package/dist/esm/src/molecules/Drawer/styles.d.ts +13 -1
- package/dist/esm/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
- package/dist/esm/src/molecules/FieldSection/FieldSection.d.ts +10 -0
- package/dist/esm/src/molecules/FieldSection/FieldSection.stories.d.ts +9 -0
- package/dist/esm/src/molecules/SelectField/SelectField.d.ts +1 -1
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/esm/src/organisms/AccountInformation/AccountInformation.d.ts +11 -0
- package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.d.ts +19 -0
- package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.stories.d.ts +9 -0
- package/dist/esm/src/organisms/index.d.ts +1 -0
- package/dist/esm/src/theme/provider.d.ts +4 -1
- package/dist/index.d.ts +57 -8
- package/package.json +2 -1
@@ -0,0 +1,13 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
3
|
+
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
4
|
+
export declare type MapPosition = {
|
5
|
+
lat: number;
|
6
|
+
lng: number;
|
7
|
+
};
|
8
|
+
export declare type GoogleMapProps = {
|
9
|
+
position: MapPosition;
|
10
|
+
} & WithScriptjsProps & WithGoogleMapProps;
|
11
|
+
export declare const GoogleMap: React.ComponentClass<{
|
12
|
+
position: MapPosition;
|
13
|
+
} & WithScriptjsProps & WithGoogleMapProps, any>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
/// <reference types="react-google-maps/types" />
|
3
|
+
import type { ComponentStory } from '@storybook/react';
|
4
|
+
import { GoogleMap as GoogleMapComponent } from './GoogleMap';
|
5
|
+
declare const _default: {
|
6
|
+
title: string;
|
7
|
+
component: import("react").ComponentClass<{
|
8
|
+
position: import("./GoogleMap").MapPosition;
|
9
|
+
} & import("react-google-maps/lib/withScriptjs").WithScriptjsProps & import("react-google-maps/lib/withGoogleMap").WithGoogleMapProps, any>;
|
10
|
+
};
|
11
|
+
export default _default;
|
12
|
+
export declare const GoogleMap: ComponentStory<typeof GoogleMapComponent>;
|
@@ -4,3 +4,8 @@ import { SetPasswordFields } from 'organisms/SetPasswordForm/types';
|
|
4
4
|
export declare const acquisitionFormMockFields: UIFields<any>;
|
5
5
|
export declare const setPasswordMockFields: UIFields<SetPasswordFields>;
|
6
6
|
export declare const loginMockFields: UIFields<LoginFields>;
|
7
|
+
export declare const sectionMockFields: UIFields<any>;
|
8
|
+
export declare const profileInformationMockForm: {
|
9
|
+
label: string;
|
10
|
+
fields: UIFields<any>;
|
11
|
+
}[];
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { UIFields } from 'fieldsConfiguration/types';
|
2
|
+
import { FieldSectionProps } from 'molecules';
|
2
3
|
import { DeepPartial, FieldValues, FormState } from 'react-hook-form';
|
3
4
|
export declare const getInitialValuesFromFields: <T extends object>(fields: UIFields<T>) => DeepPartial<T>;
|
4
5
|
export declare const isFormValid: <T extends FieldValues>(formState: FormState<T>) => boolean;
|
6
|
+
export declare const getFieldsFromFieldSections: <T extends object>(sections: Pick<FieldSectionProps<T>, "fields">[]) => UIFields<T>;
|
@@ -3,7 +3,7 @@ import { Control } from 'react-hook-form/dist/types';
|
|
3
3
|
import { CheckBoxProps } from '../../atoms';
|
4
4
|
export declare type CheckboxFieldProps = {
|
5
5
|
name: string;
|
6
|
-
control
|
6
|
+
control?: Control<any>;
|
7
7
|
defaultValue?: boolean;
|
8
8
|
checkboxProps: Omit<CheckBoxProps, 'error' | 'onClick' | 'value'>;
|
9
9
|
};
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
2
2
|
import { DrawerProps } from './styles';
|
3
|
-
export declare const Drawer: ({ children, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
|
3
|
+
export declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
3
3
|
import { Drawer as DrawerComponent } from './Drawer';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ children, ...props }: React.PropsWithChildren<import("./styles").DrawerProps>) => JSX.Element;
|
6
|
+
component: ({ children, closeIconColor, ...props }: React.PropsWithChildren<import("./styles").DrawerProps>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const Drawer: ComponentStory<typeof DrawerComponent>;
|
@@ -1,9 +1,21 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { SizesTypes, ThemeColors } from 'theme/types';
|
1
3
|
import { Drawer as DrawerComponent, DrawerProps as DrawerComponentProps } from '@mui/material';
|
2
4
|
export declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
|
3
5
|
export declare type DrawerProps = DrawerComponentProps & {
|
4
6
|
anchor: Anchor;
|
7
|
+
padding?: SizesTypes | number;
|
8
|
+
closeIconColor?: ThemeColors | string;
|
5
9
|
};
|
6
10
|
export declare const BaseDrawer: import("styled-components").StyledComponent<typeof DrawerComponent, import("styled-components").DefaultTheme, DrawerComponentProps & {
|
7
11
|
anchor: Anchor;
|
12
|
+
padding?: number | SizesTypes | undefined;
|
13
|
+
closeIconColor?: string | undefined;
|
14
|
+
}, never>;
|
15
|
+
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
16
|
+
activeOpacity?: number | undefined;
|
17
|
+
withoutOpacityEffect?: boolean | undefined;
|
18
|
+
disabled?: boolean | undefined;
|
19
|
+
} & {
|
20
|
+
children?: import("react").ReactNode;
|
8
21
|
}, never>;
|
9
|
-
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -3,7 +3,8 @@ import { Control } from 'react-hook-form/dist/types';
|
|
3
3
|
import { UIField } from '../../fieldsConfiguration';
|
4
4
|
export declare type FieldMapperProps<T extends object> = {
|
5
5
|
field: UIField<keyof T>;
|
6
|
-
|
6
|
+
isEditMode?: boolean;
|
7
|
+
control?: Control<T>;
|
7
8
|
spacer?: number;
|
8
9
|
};
|
9
|
-
export declare const FieldMapper: <T extends object>({ field, spacer, control, }: FieldMapperProps<T>) => JSX.Element;
|
10
|
+
export declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, }: FieldMapperProps<T>) => JSX.Element;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form/dist/types';
|
3
|
+
import { UIFields } from '../../fieldsConfiguration';
|
4
|
+
export declare type FieldSectionProps<T extends object> = {
|
5
|
+
label: string;
|
6
|
+
control?: Control<T>;
|
7
|
+
isEditMode?: boolean;
|
8
|
+
fields: UIFields<T>;
|
9
|
+
};
|
10
|
+
export declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { FieldSection as FieldSectionComponent } from './FieldSection';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: <T extends object>({ fields, label, isEditMode, control, }: import("./FieldSection").FieldSectionProps<T>) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const FieldSection: ComponentStory<typeof FieldSectionComponent>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form';
|
3
|
+
import { GoogleMapProps } from '../../atoms';
|
4
|
+
import { FieldSectionProps } from '../../molecules';
|
5
|
+
export declare type AccountInformationProps<T extends object> = {
|
6
|
+
fieldSections: Pick<FieldSectionProps<T>, 'fields' | 'label'>[];
|
7
|
+
control: Control<any>;
|
8
|
+
isEditMode?: boolean;
|
9
|
+
mapConfig: GoogleMapProps;
|
10
|
+
};
|
11
|
+
export declare const AccountInformation: <T extends object>({ fieldSections, control, isEditMode, mapConfig, }: AccountInformationProps<T>) => JSX.Element;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import type { Callback } from 'typescript';
|
3
|
+
import { AvatarProps } from '../../atoms';
|
4
|
+
import { TabProps } from '../../molecules/Tab/Tab';
|
5
|
+
export declare type ProfileInformationProps<TabKeys extends string> = {
|
6
|
+
backgroundImageUrl: string;
|
7
|
+
avatarProps: AvatarProps;
|
8
|
+
tabs: TabProps<string, TabKeys>[];
|
9
|
+
tabContents: Record<TabKeys, () => ReactNode>;
|
10
|
+
initialTabKey: TabKeys;
|
11
|
+
title: string;
|
12
|
+
editIcons?: {
|
13
|
+
isEditMode: boolean;
|
14
|
+
onSave: Callback;
|
15
|
+
onEdit: Callback;
|
16
|
+
onClose: Callback;
|
17
|
+
};
|
18
|
+
};
|
19
|
+
export declare const ProfileInformation: <TabKeys extends string>({ avatarProps, backgroundImageUrl, initialTabKey, tabs, title, editIcons, tabContents, }: ProfileInformationProps<TabKeys>) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { ProfileInformation as ProfileInformationComponent } from './ProfileInformation';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: <TabKeys extends string>({ avatarProps, backgroundImageUrl, initialTabKey, tabs, title, editIcons, tabContents, }: import("./ProfileInformation").ProfileInformationProps<TabKeys>) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const ProfileInformation: ComponentStory<typeof ProfileInformationComponent>;
|
@@ -3,4 +3,5 @@ export * from './AcquisitionForm/AcquisitionForm';
|
|
3
3
|
export * from './LoginForm/LoginForm';
|
4
4
|
export * from './TwoFactorAuth/TwoFactorAuth';
|
5
5
|
export * from './Header/Header';
|
6
|
+
export * from './ProfileInformation/ProfileInformation';
|
6
7
|
export * from './ForgotPasswordForm/ForgotPasswordForm';
|
@@ -1,2 +1,5 @@
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
2
|
-
|
2
|
+
import { DefaultTheme } from 'styled-components';
|
3
|
+
export declare const ZealThemeProvider: (props: PropsWithChildren<{
|
4
|
+
theme?: DefaultTheme;
|
5
|
+
}>) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Callback, StylesType } from 'typescript';
|
3
3
|
import * as react from 'react';
|
4
|
-
import { PropsWithChildren, ReactNode, Dispatch, SetStateAction } from 'react';
|
4
|
+
import react__default, { PropsWithChildren, ReactNode, Dispatch, SetStateAction } from 'react';
|
5
5
|
import * as styled_components from 'styled-components';
|
6
6
|
import { DefaultTheme, CSSProperties } from 'styled-components';
|
7
7
|
import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
|
@@ -9,10 +9,13 @@ import { InputFieldTypes as InputFieldTypes$1, FieldTypes as FieldTypes$1, UIFie
|
|
9
9
|
import { SizesTypes as SizesTypes$1, ThemeColors as ThemeColors$1 } from 'theme/types';
|
10
10
|
import { SizesTypes as SizesTypes$2, ThemeColors as ThemeColors$2 } from 'theme';
|
11
11
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
12
|
+
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
13
|
+
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
12
14
|
import { Control } from 'react-hook-form/dist/types';
|
13
15
|
import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
|
14
16
|
import { DrawerProps as DrawerProps$1 } from '@mui/material';
|
15
17
|
import { SetPasswordFields, SetPasswordRuleValidation } from 'organisms/SetPasswordForm/types';
|
18
|
+
import { FieldSectionProps as FieldSectionProps$1 } from 'molecules';
|
16
19
|
import { DeepPartial, FieldValues, FormState } from 'react-hook-form';
|
17
20
|
import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
|
18
21
|
|
@@ -99,7 +102,9 @@ declare const TextWrapper: styled_components.StyledComponent<"div", styled_compo
|
|
99
102
|
|
100
103
|
declare const defaultTheme: DefaultTheme;
|
101
104
|
|
102
|
-
declare const ZealThemeProvider: (props: PropsWithChildren<{
|
105
|
+
declare const ZealThemeProvider: (props: PropsWithChildren<{
|
106
|
+
theme?: DefaultTheme;
|
107
|
+
}>) => JSX.Element;
|
103
108
|
|
104
109
|
declare type ThemeColors = 'primary' | 'secondary' | 'background' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'indigo' | 'blue' | 'white' | 'black' | 'indigoTint' | 'indigoTint2' | 'success' | 'error' | 'warning';
|
105
110
|
declare type SizesTypes = '2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
@@ -229,6 +234,17 @@ declare type DividerProps = {
|
|
229
234
|
};
|
230
235
|
declare const Divider: styled_components.StyledComponent<"div", styled_components.DefaultTheme, DividerProps, never>;
|
231
236
|
|
237
|
+
declare type MapPosition = {
|
238
|
+
lat: number;
|
239
|
+
lng: number;
|
240
|
+
};
|
241
|
+
declare type GoogleMapProps = {
|
242
|
+
position: MapPosition;
|
243
|
+
} & WithScriptjsProps & WithGoogleMapProps;
|
244
|
+
declare const GoogleMap: react__default.ComponentClass<{
|
245
|
+
position: MapPosition;
|
246
|
+
} & WithScriptjsProps & WithGoogleMapProps, any>;
|
247
|
+
|
232
248
|
declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
|
233
249
|
declare type FieldLabelsProps = {
|
234
250
|
label: string;
|
@@ -280,21 +296,28 @@ declare type UIFields<T extends object> = UIField<keyof T>[];
|
|
280
296
|
|
281
297
|
declare const getInitialValuesFromFields: <T extends object>(fields: UIFields$1<T>) => DeepPartial<T>;
|
282
298
|
declare const isFormValid: <T extends FieldValues>(formState: FormState<T>) => boolean;
|
299
|
+
declare const getFieldsFromFieldSections: <T extends object>(sections: Pick<FieldSectionProps$1<T>, "fields">[]) => UIFields$1<T>;
|
283
300
|
|
284
301
|
declare const acquisitionFormMockFields: UIFields$1<any>;
|
285
302
|
declare const setPasswordMockFields: UIFields$1<SetPasswordFields>;
|
286
303
|
declare const loginMockFields: UIFields$1<LoginFields$1>;
|
304
|
+
declare const sectionMockFields: UIFields$1<any>;
|
305
|
+
declare const profileInformationMockForm: {
|
306
|
+
label: string;
|
307
|
+
fields: UIFields$1<any>;
|
308
|
+
}[];
|
287
309
|
|
288
310
|
declare type FieldMapperProps<T extends object> = {
|
289
311
|
field: UIField<keyof T>;
|
290
|
-
|
312
|
+
isEditMode?: boolean;
|
313
|
+
control?: Control<T>;
|
291
314
|
spacer?: number;
|
292
315
|
};
|
293
|
-
declare const FieldMapper: <T extends object>({ field, spacer, control, }: FieldMapperProps<T>) => JSX.Element;
|
316
|
+
declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, }: FieldMapperProps<T>) => JSX.Element;
|
294
317
|
|
295
318
|
declare type CheckboxFieldProps = {
|
296
319
|
name: string;
|
297
|
-
control
|
320
|
+
control?: Control<any>;
|
298
321
|
defaultValue?: boolean;
|
299
322
|
checkboxProps: Omit<CheckBoxProps, 'error' | 'onClick' | 'value'>;
|
300
323
|
};
|
@@ -304,7 +327,7 @@ declare type SelectFieldProps = {
|
|
304
327
|
selectProps: SelectProps;
|
305
328
|
labelsProps?: FieldLabelsProps;
|
306
329
|
name: string;
|
307
|
-
control
|
330
|
+
control?: Control<any>;
|
308
331
|
required?: boolean;
|
309
332
|
optional?: boolean;
|
310
333
|
defaultValue?: string;
|
@@ -351,9 +374,11 @@ declare const Banner: ({ backgroundImage, button, title, description }: BannerPr
|
|
351
374
|
declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
|
352
375
|
declare type DrawerProps = DrawerProps$1 & {
|
353
376
|
anchor: Anchor;
|
377
|
+
padding?: SizesTypes$1 | number;
|
378
|
+
closeIconColor?: ThemeColors$1 | string;
|
354
379
|
};
|
355
380
|
|
356
|
-
declare const Drawer: ({ children, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
|
381
|
+
declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
|
357
382
|
|
358
383
|
declare type InfoBoxProps = {
|
359
384
|
title: string;
|
@@ -400,6 +425,14 @@ declare type TabGroupProps<T = string, K = string> = {
|
|
400
425
|
};
|
401
426
|
declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, activeTabKey, onTabChange, }: TabGroupProps<T, K>) => JSX.Element;
|
402
427
|
|
428
|
+
declare type FieldSectionProps<T extends object> = {
|
429
|
+
label: string;
|
430
|
+
control?: Control<T>;
|
431
|
+
isEditMode?: boolean;
|
432
|
+
fields: UIFields<T>;
|
433
|
+
};
|
434
|
+
declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
|
435
|
+
|
403
436
|
declare type SetPasswordFormProps = {
|
404
437
|
fields: UIFields<SetPasswordFields>;
|
405
438
|
logoUrl: string;
|
@@ -466,6 +499,22 @@ declare type HeaderProps = {
|
|
466
499
|
};
|
467
500
|
declare const Header: ({ logoUrl, links, onActionButtonClick, tabs, withAvatar }: HeaderProps) => JSX.Element;
|
468
501
|
|
502
|
+
declare type ProfileInformationProps<TabKeys extends string> = {
|
503
|
+
backgroundImageUrl: string;
|
504
|
+
avatarProps: AvatarProps;
|
505
|
+
tabs: TabProps<string, TabKeys>[];
|
506
|
+
tabContents: Record<TabKeys, () => ReactNode>;
|
507
|
+
initialTabKey: TabKeys;
|
508
|
+
title: string;
|
509
|
+
editIcons?: {
|
510
|
+
isEditMode: boolean;
|
511
|
+
onSave: Callback;
|
512
|
+
onEdit: Callback;
|
513
|
+
onClose: Callback;
|
514
|
+
};
|
515
|
+
};
|
516
|
+
declare const ProfileInformation: <TabKeys extends string>({ avatarProps, backgroundImageUrl, initialTabKey, tabs, title, editIcons, tabContents, }: ProfileInformationProps<TabKeys>) => JSX.Element;
|
517
|
+
|
469
518
|
declare type EmailAddressFields = {
|
470
519
|
email: string;
|
471
520
|
};
|
@@ -494,4 +543,4 @@ interface Helpers {
|
|
494
543
|
}
|
495
544
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
496
545
|
|
497
|
-
export { AcquisitionForm, AcquisitionFormProps, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, Banner, BannerProps, BaseButtonProps, Button, ButtonProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldTypes, ForgotPasswordForm, ForgotPasswordFormProps, Header, HeaderProps, HorizontalPadding, HorizontalPaddingProps, Icon, IconNames, IconProps, Image, ImageProps, InfoBox, InfoBoxProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkButton, LinkButtonProps, LoginForm, LoginFormProps, MenuItem, MenuItems, MenuItemsProps, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SizesTypes, Spacer, SpacerProps, Spinner, StyleWrapper, TabGroup, TabGroupProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getInitialValuesFromFields, isFormValid, loginMockFields, setPasswordMockFields, toast, toastStyles, useStep };
|
546
|
+
export { AcquisitionForm, AcquisitionFormProps, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, Banner, BannerProps, BaseButtonProps, Button, ButtonProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HorizontalPadding, HorizontalPaddingProps, Icon, IconNames, IconProps, Image, ImageProps, InfoBox, InfoBoxProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkButton, LinkButtonProps, LoginForm, LoginFormProps, MapPosition, MenuItem, MenuItems, MenuItemsProps, ProfileInformation, ProfileInformationProps, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SizesTypes, Spacer, SpacerProps, Spinner, StyleWrapper, TabGroup, TabGroupProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, toast, toastStyles, useStep };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zealicsolutions/web-ui",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.9",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"
|
@@ -91,6 +91,7 @@
|
|
91
91
|
"rc-notification": "^4.6.0",
|
92
92
|
"rc-tooltip": "^5.2.2",
|
93
93
|
"react-dom": "^18.2.0",
|
94
|
+
"react-google-maps": "^9.4.5",
|
94
95
|
"react-hook-form": "^7.34.2",
|
95
96
|
"styled-components": "^5.3.5"
|
96
97
|
},
|