@zealicsolutions/web-ui 0.0.8 → 0.1.0

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.
Files changed (54) hide show
  1. package/dist/cjs/index.js +46 -37
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/assets/index.d.ts +1 -0
  4. package/dist/cjs/src/atoms/GoogleMap/GoogleMap.d.ts +13 -0
  5. package/dist/cjs/src/atoms/GoogleMap/GoogleMap.stories.d.ts +12 -0
  6. package/dist/cjs/src/atoms/index.d.ts +1 -0
  7. package/dist/cjs/src/fieldsConfiguration/mock.d.ts +5 -0
  8. package/dist/cjs/src/fieldsConfiguration/utils.d.ts +2 -0
  9. package/dist/cjs/src/icons/Edit.d.ts +3 -0
  10. package/dist/cjs/src/icons/Save.d.ts +3 -0
  11. package/dist/cjs/src/icons/index.d.ts +2 -0
  12. package/dist/cjs/src/molecules/CheckboxField/CheckboxField.d.ts +1 -1
  13. package/dist/cjs/src/molecules/Drawer/Drawer.d.ts +1 -1
  14. package/dist/cjs/src/molecules/Drawer/Drawer.stories.d.ts +1 -1
  15. package/dist/cjs/src/molecules/Drawer/styles.d.ts +13 -1
  16. package/dist/cjs/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
  17. package/dist/cjs/src/molecules/FieldSection/FieldSection.d.ts +10 -0
  18. package/dist/cjs/src/molecules/FieldSection/FieldSection.stories.d.ts +9 -0
  19. package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +1 -1
  20. package/dist/cjs/src/molecules/index.d.ts +1 -0
  21. package/dist/cjs/src/organisms/AccountInformation/AccountInformation.d.ts +11 -0
  22. package/dist/cjs/src/organisms/ProfileInformation/ProfileInformation.d.ts +19 -0
  23. package/dist/cjs/src/organisms/ProfileInformation/ProfileInformation.stories.d.ts +9 -0
  24. package/dist/cjs/src/organisms/index.d.ts +1 -0
  25. package/dist/cjs/src/theme/provider.d.ts +4 -1
  26. package/dist/cjs/src/theme/types.d.ts +5 -0
  27. package/dist/esm/index.js +46 -37
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/esm/src/assets/index.d.ts +1 -0
  30. package/dist/esm/src/atoms/GoogleMap/GoogleMap.d.ts +13 -0
  31. package/dist/esm/src/atoms/GoogleMap/GoogleMap.stories.d.ts +12 -0
  32. package/dist/esm/src/atoms/index.d.ts +1 -0
  33. package/dist/esm/src/fieldsConfiguration/mock.d.ts +5 -0
  34. package/dist/esm/src/fieldsConfiguration/utils.d.ts +2 -0
  35. package/dist/esm/src/icons/Edit.d.ts +3 -0
  36. package/dist/esm/src/icons/Save.d.ts +3 -0
  37. package/dist/esm/src/icons/index.d.ts +2 -0
  38. package/dist/esm/src/molecules/CheckboxField/CheckboxField.d.ts +1 -1
  39. package/dist/esm/src/molecules/Drawer/Drawer.d.ts +1 -1
  40. package/dist/esm/src/molecules/Drawer/Drawer.stories.d.ts +1 -1
  41. package/dist/esm/src/molecules/Drawer/styles.d.ts +13 -1
  42. package/dist/esm/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
  43. package/dist/esm/src/molecules/FieldSection/FieldSection.d.ts +10 -0
  44. package/dist/esm/src/molecules/FieldSection/FieldSection.stories.d.ts +9 -0
  45. package/dist/esm/src/molecules/SelectField/SelectField.d.ts +1 -1
  46. package/dist/esm/src/molecules/index.d.ts +1 -0
  47. package/dist/esm/src/organisms/AccountInformation/AccountInformation.d.ts +11 -0
  48. package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.d.ts +19 -0
  49. package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.stories.d.ts +9 -0
  50. package/dist/esm/src/organisms/index.d.ts +1 -0
  51. package/dist/esm/src/theme/provider.d.ts +4 -1
  52. package/dist/esm/src/theme/types.d.ts +5 -0
  53. package/dist/index.d.ts +62 -8
  54. package/package.json +2 -1
@@ -1,2 +1,3 @@
1
1
  export declare const AppLogo: string;
2
2
  export declare const HomeBannerImage: string;
3
+ export declare const ProfileGraphic: string;
@@ -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>;
@@ -15,3 +15,4 @@ export * from './Toast/toast';
15
15
  export * from './Avatar/Avatar';
16
16
  export * from './Paddings/Paddings';
17
17
  export * from './Divider/Divider';
18
+ export * from './GoogleMap/GoogleMap';
@@ -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>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { IconProps } from 'atoms/Icon/Icon';
3
+ export declare const Edit: ({ size, color }: Omit<IconProps, 'name'>) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { IconProps } from 'atoms/Icon/Icon';
3
+ export declare const Save: ({ size, color }: Omit<IconProps, 'name'>) => JSX.Element;
@@ -12,3 +12,5 @@ export { Bell } from './Bell';
12
12
  export { Warning } from './Warning';
13
13
  export { Mobile } from './Mobile';
14
14
  export { Mail } from './Mail';
15
+ export { Edit } from './Edit';
16
+ export { Save } from './Save';
@@ -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: Control<any>;
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
- control: Control<T>;
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>;
@@ -7,7 +7,7 @@ export declare type SelectFieldProps = {
7
7
  selectProps: SelectProps;
8
8
  labelsProps?: FieldLabelsProps;
9
9
  name: string;
10
- control: Control<any>;
10
+ control?: Control<any>;
11
11
  required?: boolean;
12
12
  optional?: boolean;
13
13
  defaultValue?: string;
@@ -11,3 +11,4 @@ export * from './InfoBox/InfoBox';
11
11
  export * from './MenuItems/MenuItems';
12
12
  export * from './AvatarDropdown/AvatarDropdown';
13
13
  export * from './TabGroup/TabGroup';
14
+ export * from './FieldSection/FieldSection';
@@ -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
- export declare const ZealThemeProvider: (props: PropsWithChildren<{}>) => JSX.Element;
2
+ import { DefaultTheme } from 'styled-components';
3
+ export declare const ZealThemeProvider: (props: PropsWithChildren<{
4
+ theme?: DefaultTheme;
5
+ }>) => JSX.Element;
@@ -7,3 +7,8 @@ export declare type ThemeTextType = Record<SizesTypes, {
7
7
  'line-height': number;
8
8
  }>;
9
9
  export declare type ThemeSizesType = Record<SizesTypes, number>;
10
+ export declare type ZealTheme = {
11
+ colors: ThemeColorsType;
12
+ fonts: ThemeTextType;
13
+ sizes: ThemeSizesType;
14
+ };
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<{}>) => JSX.Element;
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';
@@ -110,6 +115,11 @@ declare type ThemeTextType = Record<SizesTypes, {
110
115
  'line-height': number;
111
116
  }>;
112
117
  declare type ThemeSizesType = Record<SizesTypes, number>;
118
+ declare type ZealTheme = {
119
+ colors: ThemeColorsType;
120
+ fonts: ThemeTextType;
121
+ sizes: ThemeSizesType;
122
+ };
113
123
 
114
124
  declare const toastStyles: styled_components.FlattenSimpleInterpolation;
115
125
 
@@ -229,6 +239,17 @@ declare type DividerProps = {
229
239
  };
230
240
  declare const Divider: styled_components.StyledComponent<"div", styled_components.DefaultTheme, DividerProps, never>;
231
241
 
242
+ declare type MapPosition = {
243
+ lat: number;
244
+ lng: number;
245
+ };
246
+ declare type GoogleMapProps = {
247
+ position: MapPosition;
248
+ } & WithScriptjsProps & WithGoogleMapProps;
249
+ declare const GoogleMap: react__default.ComponentClass<{
250
+ position: MapPosition;
251
+ } & WithScriptjsProps & WithGoogleMapProps, any>;
252
+
232
253
  declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
233
254
  declare type FieldLabelsProps = {
234
255
  label: string;
@@ -280,21 +301,28 @@ declare type UIFields<T extends object> = UIField<keyof T>[];
280
301
 
281
302
  declare const getInitialValuesFromFields: <T extends object>(fields: UIFields$1<T>) => DeepPartial<T>;
282
303
  declare const isFormValid: <T extends FieldValues>(formState: FormState<T>) => boolean;
304
+ declare const getFieldsFromFieldSections: <T extends object>(sections: Pick<FieldSectionProps$1<T>, "fields">[]) => UIFields$1<T>;
283
305
 
284
306
  declare const acquisitionFormMockFields: UIFields$1<any>;
285
307
  declare const setPasswordMockFields: UIFields$1<SetPasswordFields>;
286
308
  declare const loginMockFields: UIFields$1<LoginFields$1>;
309
+ declare const sectionMockFields: UIFields$1<any>;
310
+ declare const profileInformationMockForm: {
311
+ label: string;
312
+ fields: UIFields$1<any>;
313
+ }[];
287
314
 
288
315
  declare type FieldMapperProps<T extends object> = {
289
316
  field: UIField<keyof T>;
290
- control: Control<T>;
317
+ isEditMode?: boolean;
318
+ control?: Control<T>;
291
319
  spacer?: number;
292
320
  };
293
- declare const FieldMapper: <T extends object>({ field, spacer, control, }: FieldMapperProps<T>) => JSX.Element;
321
+ declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, }: FieldMapperProps<T>) => JSX.Element;
294
322
 
295
323
  declare type CheckboxFieldProps = {
296
324
  name: string;
297
- control: Control<any>;
325
+ control?: Control<any>;
298
326
  defaultValue?: boolean;
299
327
  checkboxProps: Omit<CheckBoxProps, 'error' | 'onClick' | 'value'>;
300
328
  };
@@ -304,7 +332,7 @@ declare type SelectFieldProps = {
304
332
  selectProps: SelectProps;
305
333
  labelsProps?: FieldLabelsProps;
306
334
  name: string;
307
- control: Control<any>;
335
+ control?: Control<any>;
308
336
  required?: boolean;
309
337
  optional?: boolean;
310
338
  defaultValue?: string;
@@ -351,9 +379,11 @@ declare const Banner: ({ backgroundImage, button, title, description }: BannerPr
351
379
  declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
352
380
  declare type DrawerProps = DrawerProps$1 & {
353
381
  anchor: Anchor;
382
+ padding?: SizesTypes$1 | number;
383
+ closeIconColor?: ThemeColors$1 | string;
354
384
  };
355
385
 
356
- declare const Drawer: ({ children, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
386
+ declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
357
387
 
358
388
  declare type InfoBoxProps = {
359
389
  title: string;
@@ -400,6 +430,14 @@ declare type TabGroupProps<T = string, K = string> = {
400
430
  };
401
431
  declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, activeTabKey, onTabChange, }: TabGroupProps<T, K>) => JSX.Element;
402
432
 
433
+ declare type FieldSectionProps<T extends object> = {
434
+ label: string;
435
+ control?: Control<T>;
436
+ isEditMode?: boolean;
437
+ fields: UIFields<T>;
438
+ };
439
+ declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
440
+
403
441
  declare type SetPasswordFormProps = {
404
442
  fields: UIFields<SetPasswordFields>;
405
443
  logoUrl: string;
@@ -466,6 +504,22 @@ declare type HeaderProps = {
466
504
  };
467
505
  declare const Header: ({ logoUrl, links, onActionButtonClick, tabs, withAvatar }: HeaderProps) => JSX.Element;
468
506
 
507
+ declare type ProfileInformationProps<TabKeys extends string> = {
508
+ backgroundImageUrl: string;
509
+ avatarProps: AvatarProps;
510
+ tabs: TabProps<string, TabKeys>[];
511
+ tabContents: Record<TabKeys, () => ReactNode>;
512
+ initialTabKey: TabKeys;
513
+ title: string;
514
+ editIcons?: {
515
+ isEditMode: boolean;
516
+ onSave: Callback;
517
+ onEdit: Callback;
518
+ onClose: Callback;
519
+ };
520
+ };
521
+ declare const ProfileInformation: <TabKeys extends string>({ avatarProps, backgroundImageUrl, initialTabKey, tabs, title, editIcons, tabContents, }: ProfileInformationProps<TabKeys>) => JSX.Element;
522
+
469
523
  declare type EmailAddressFields = {
470
524
  email: string;
471
525
  };
@@ -494,4 +548,4 @@ interface Helpers {
494
548
  }
495
549
  declare const useStep: (maxStep: number) => [number, Helpers];
496
550
 
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 };
551
+ 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, ZealTheme, 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.8",
3
+ "version": "0.1.0",
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
  },