@zealicsolutions/web-ui 0.1.6 → 0.1.8

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 (34) hide show
  1. package/dist/cjs/index.js +24 -24
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/assets/index.d.ts +1 -1
  4. package/dist/cjs/src/fieldsConfiguration/types.d.ts +3 -5
  5. package/dist/cjs/src/molecules/Columns/Columns.d.ts +12 -0
  6. package/dist/cjs/src/molecules/Columns/Columns.stories.d.ts +9 -0
  7. package/dist/cjs/src/molecules/EmphasizedText/EmphasizedText.d.ts +6 -0
  8. package/dist/cjs/src/molecules/EmphasizedText/EmphasizedText.stories.d.ts +9 -0
  9. package/dist/cjs/src/molecules/HeroImage/HeroImage.d.ts +11 -0
  10. package/dist/cjs/src/molecules/HeroImage/HeroImage.stories.d.ts +9 -0
  11. package/dist/cjs/src/molecules/index.d.ts +3 -2
  12. package/dist/cjs/src/templates/DefaultTemplate/mockProps.d.ts +2 -2
  13. package/dist/esm/index.js +2 -2
  14. package/dist/esm/index.js.map +1 -1
  15. package/dist/esm/src/assets/index.d.ts +1 -1
  16. package/dist/esm/src/fieldsConfiguration/types.d.ts +3 -5
  17. package/dist/esm/src/molecules/Columns/Columns.d.ts +12 -0
  18. package/dist/esm/src/molecules/Columns/Columns.stories.d.ts +9 -0
  19. package/dist/esm/src/molecules/EmphasizedText/EmphasizedText.d.ts +6 -0
  20. package/dist/esm/src/molecules/EmphasizedText/EmphasizedText.stories.d.ts +9 -0
  21. package/dist/esm/src/molecules/HeroImage/HeroImage.d.ts +11 -0
  22. package/dist/esm/src/molecules/HeroImage/HeroImage.stories.d.ts +9 -0
  23. package/dist/esm/src/molecules/index.d.ts +3 -2
  24. package/dist/esm/src/templates/DefaultTemplate/mockProps.d.ts +2 -2
  25. package/dist/index.d.ts +25 -16
  26. package/package.json +1 -1
  27. package/dist/cjs/src/molecules/Banner/Banner.d.ts +0 -9
  28. package/dist/cjs/src/molecules/Banner/Banner.stories.d.ts +0 -9
  29. package/dist/cjs/src/molecules/InfoBox/InfoBox.d.ts +0 -9
  30. package/dist/cjs/src/molecules/InfoBox/InfoBox.stories.d.ts +0 -9
  31. package/dist/esm/src/molecules/Banner/Banner.d.ts +0 -9
  32. package/dist/esm/src/molecules/Banner/Banner.stories.d.ts +0 -9
  33. package/dist/esm/src/molecules/InfoBox/InfoBox.d.ts +0 -9
  34. package/dist/esm/src/molecules/InfoBox/InfoBox.stories.d.ts +0 -9
@@ -1,3 +1,3 @@
1
1
  export declare const AppLogo: string;
2
- export declare const HomeBannerImage: string;
2
+ export declare const HomeHeroImageImage: string;
3
3
  export declare const ProfileGraphic: string;
@@ -1,9 +1,10 @@
1
1
  import { SelectOption } from 'atoms/Select/types';
2
2
  import { ControllerProps } from 'react-hook-form';
3
3
  export declare type InputFieldTypes = 'number' | 'text' | 'email' | 'password';
4
- export declare type FieldTypes = 'input' | 'select' | 'date-picker' | 'checkbox' | 'switch';
5
- export declare type UIField<T = string> = (UIInputField | UISelectField | UICheckboxField) & {
4
+ export declare type FieldTypes = 'input' | 'select' | 'checkbox';
5
+ export declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
6
6
  name: T;
7
+ type: FieldTypes;
7
8
  value?: string;
8
9
  label?: string;
9
10
  placeholder?: string;
@@ -14,16 +15,13 @@ export declare type UIField<T = string> = (UIInputField | UISelectField | UIChec
14
15
  order?: number;
15
16
  };
16
17
  export declare type UIInputField = {
17
- type: 'input';
18
18
  inputType?: InputFieldTypes;
19
19
  maxLength?: number;
20
20
  };
21
21
  export declare type UISelectField = {
22
- type: 'select';
23
22
  options: SelectOption[];
24
23
  };
25
24
  export declare type UICheckboxField = {
26
- type: 'checkbox';
27
25
  checkboxLabel?: string;
28
26
  };
29
27
  export declare type UIFields<T extends object> = UIField<keyof T>[];
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { LinkButtonProps } from '../../atoms';
3
+ export declare type ColumnItem = {
4
+ title?: string;
5
+ mainContent?: string;
6
+ button?: LinkButtonProps;
7
+ icon: string;
8
+ };
9
+ export declare type ColumnsProps = {
10
+ columns: ColumnItem[];
11
+ };
12
+ export declare const Columns: ({ columns }: ColumnsProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { ComponentStory } from '@storybook/react';
3
+ import { Columns as ColumnsComponent } from './Columns';
4
+ declare const _default: {
5
+ title: string;
6
+ component: ({ columns }: import("./Columns").ColumnsProps) => JSX.Element;
7
+ };
8
+ export default _default;
9
+ export declare const Columns: ComponentStory<typeof ColumnsComponent>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare type EmphasizedTextProps = {
3
+ invertColors: boolean;
4
+ textContent: string;
5
+ };
6
+ export declare const EmphasizedText: ({ textContent, invertColors }: EmphasizedTextProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { ComponentStory } from '@storybook/react';
3
+ import { EmphasizedText as EmphasizedTextComponent } from './EmphasizedText';
4
+ declare const _default: {
5
+ title: string;
6
+ component: ({ textContent, invertColors }: import("./EmphasizedText").EmphasizedTextProps) => JSX.Element;
7
+ };
8
+ export default _default;
9
+ export declare const EmphasizedText: ComponentStory<typeof EmphasizedTextComponent>;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps, ImageProps } from '../../atoms';
3
+ export declare type HeroImageAlignment = 'left_aligned' | 'center_aligned';
4
+ export declare type HeroImageProps = {
5
+ backgroundImage: ImageProps;
6
+ mainHeading: string;
7
+ subHeading?: string;
8
+ button?: ButtonProps;
9
+ contentAlignment?: HeroImageAlignment;
10
+ };
11
+ export declare const HeroImage: ({ backgroundImage, button, contentAlignment, mainHeading, subHeading, }: HeroImageProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { ComponentStory } from '@storybook/react';
3
+ import { HeroImage as HeroImageComponent } from './HeroImage';
4
+ declare const _default: {
5
+ title: string;
6
+ component: ({ backgroundImage, button, contentAlignment, mainHeading, subHeading, }: import("./HeroImage").HeroImageProps) => JSX.Element;
7
+ };
8
+ export default _default;
9
+ export declare const HeroImage: ComponentStory<typeof HeroImageComponent>;
@@ -5,10 +5,11 @@ export * from './CheckboxField/CheckboxField';
5
5
  export * from './SelectField/SelectField';
6
6
  export * from './CustomValidation/CustomValidation';
7
7
  export * from './SelectableInfoCard/SelectableCardGroup';
8
- export * from './Banner/Banner';
8
+ export * from './HeroImage/HeroImage';
9
9
  export * from './Drawer/Drawer';
10
- export * from './InfoBox/InfoBox';
10
+ export * from './Columns/Columns';
11
11
  export * from './MenuItems/MenuItems';
12
12
  export * from './AvatarDropdown/AvatarDropdown';
13
13
  export * from './TabGroup/TabGroup';
14
14
  export * from './FieldSection/FieldSection';
15
+ export * from './EmphasizedText/EmphasizedText';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { BannerProps } from 'molecules';
2
+ import { HeroImageProps } from 'molecules';
3
3
  import { HeaderProps } from 'organisms';
4
4
  export declare const headerProps: HeaderProps;
5
- export declare const bannerProps: BannerProps;
5
+ export declare const bannerProps: HeroImageProps;
6
6
  export declare const Content: () => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -276,9 +276,10 @@ declare const InputField: ({ control, name, inputProps, styles, labelsProps, def
276
276
  declare const getFieldPlaceholder: (type: FieldTypes$1, title?: string) => string;
277
277
 
278
278
  declare type InputFieldTypes = 'number' | 'text' | 'email' | 'password';
279
- declare type FieldTypes = 'input' | 'select' | 'date-picker' | 'checkbox' | 'switch';
280
- declare type UIField<T = string> = (UIInputField | UISelectField | UICheckboxField) & {
279
+ declare type FieldTypes = 'input' | 'select' | 'checkbox';
280
+ declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
281
281
  name: T;
282
+ type: FieldTypes;
282
283
  value?: string;
283
284
  label?: string;
284
285
  placeholder?: string;
@@ -289,16 +290,13 @@ declare type UIField<T = string> = (UIInputField | UISelectField | UICheckboxFie
289
290
  order?: number;
290
291
  };
291
292
  declare type UIInputField = {
292
- type: 'input';
293
293
  inputType?: InputFieldTypes;
294
294
  maxLength?: number;
295
295
  };
296
296
  declare type UISelectField = {
297
- type: 'select';
298
297
  options: SelectOption$1[];
299
298
  };
300
299
  declare type UICheckboxField = {
301
- type: 'checkbox';
302
300
  checkboxLabel?: string;
303
301
  };
304
302
  declare type UIFields<T extends object> = UIField<keyof T>[];
@@ -373,13 +371,15 @@ declare type SelectableCardGroupProps<T> = {
373
371
  };
374
372
  declare const SelectableCardGroup: <T extends string>({ cards, handleChange, spacing, initialValue, }: SelectableCardGroupProps<T>) => JSX.Element;
375
373
 
376
- declare type BannerProps = {
374
+ declare type HeroImageAlignment = 'left_aligned' | 'center_aligned';
375
+ declare type HeroImageProps = {
377
376
  backgroundImage: ImageProps;
378
- title: string;
379
- description?: string;
377
+ mainHeading: string;
378
+ subHeading?: string;
380
379
  button?: ButtonProps;
380
+ contentAlignment?: HeroImageAlignment;
381
381
  };
382
- declare const Banner: ({ backgroundImage, button, title, description }: BannerProps) => JSX.Element;
382
+ declare const HeroImage: ({ backgroundImage, button, contentAlignment, mainHeading, subHeading, }: HeroImageProps) => JSX.Element;
383
383
 
384
384
  declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
385
385
  declare type DrawerProps = DrawerProps$1 & {
@@ -390,13 +390,16 @@ declare type DrawerProps = DrawerProps$1 & {
390
390
 
391
391
  declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
392
392
 
393
- declare type InfoBoxProps = {
394
- title: string;
395
- description?: string;
396
- linkButton?: LinkButtonProps;
397
- icon?: IconNames;
393
+ declare type ColumnItem = {
394
+ title?: string;
395
+ mainContent?: string;
396
+ button?: LinkButtonProps;
397
+ icon: string;
398
+ };
399
+ declare type ColumnsProps = {
400
+ columns: ColumnItem[];
398
401
  };
399
- declare const InfoBox: ({ title, icon, description, linkButton }: InfoBoxProps) => JSX.Element;
402
+ declare const Columns: ({ columns }: ColumnsProps) => JSX.Element;
400
403
 
401
404
  declare type MenuItem<T> = {
402
405
  id: T;
@@ -443,6 +446,12 @@ declare type FieldSectionProps<T extends object> = {
443
446
  };
444
447
  declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
445
448
 
449
+ declare type EmphasizedTextProps = {
450
+ invertColors: boolean;
451
+ textContent: string;
452
+ };
453
+ declare const EmphasizedText: ({ textContent, invertColors }: EmphasizedTextProps) => JSX.Element;
454
+
446
455
  declare type SetPasswordRuleValidation = {
447
456
  label: string;
448
457
  rule: MaxRuleValidation | MinRuleValidation;
@@ -560,4 +569,4 @@ interface Helpers {
560
569
  }
561
570
  declare const useStep: (maxStep: number) => [number, Helpers];
562
571
 
563
- 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, SetPasswordRuleValidation, 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 };
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, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HorizontalPadding, HorizontalPaddingProps, Icon, IconNames, IconProps, Image, ImageProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkButton, LinkButtonProps, LoginForm, LoginFormProps, MapPosition, MenuItem, MenuItems, MenuItemsProps, ProfileInformation, ProfileInformationProps, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, 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.1.6",
3
+ "version": "0.1.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { ButtonProps, ImageProps } from '../../atoms';
3
- export declare type BannerProps = {
4
- backgroundImage: ImageProps;
5
- title: string;
6
- description?: string;
7
- button?: ButtonProps;
8
- };
9
- export declare const Banner: ({ backgroundImage, button, title, description }: BannerProps) => JSX.Element;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ComponentStory } from '@storybook/react';
3
- import { Banner as BannerComponent } from './Banner';
4
- declare const _default: {
5
- title: string;
6
- component: ({ backgroundImage, button, title, description }: import("./Banner").BannerProps) => JSX.Element;
7
- };
8
- export default _default;
9
- export declare const Banner: ComponentStory<typeof BannerComponent>;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconNames, LinkButtonProps } from '../../atoms';
3
- export declare type InfoBoxProps = {
4
- title: string;
5
- description?: string;
6
- linkButton?: LinkButtonProps;
7
- icon?: IconNames;
8
- };
9
- export declare const InfoBox: ({ title, icon, description, linkButton }: InfoBoxProps) => JSX.Element;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ComponentStory } from '@storybook/react';
3
- import { InfoBox as InfoBoxComponent } from './InfoBox';
4
- declare const _default: {
5
- title: string;
6
- component: ({ title, icon, description, linkButton }: import("./InfoBox").InfoBoxProps) => JSX.Element;
7
- };
8
- export default _default;
9
- export declare const InfoBox: ComponentStory<typeof InfoBoxComponent>;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { ButtonProps, ImageProps } from '../../atoms';
3
- export declare type BannerProps = {
4
- backgroundImage: ImageProps;
5
- title: string;
6
- description?: string;
7
- button?: ButtonProps;
8
- };
9
- export declare const Banner: ({ backgroundImage, button, title, description }: BannerProps) => JSX.Element;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ComponentStory } from '@storybook/react';
3
- import { Banner as BannerComponent } from './Banner';
4
- declare const _default: {
5
- title: string;
6
- component: ({ backgroundImage, button, title, description }: import("./Banner").BannerProps) => JSX.Element;
7
- };
8
- export default _default;
9
- export declare const Banner: ComponentStory<typeof BannerComponent>;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconNames, LinkButtonProps } from '../../atoms';
3
- export declare type InfoBoxProps = {
4
- title: string;
5
- description?: string;
6
- linkButton?: LinkButtonProps;
7
- icon?: IconNames;
8
- };
9
- export declare const InfoBox: ({ title, icon, description, linkButton }: InfoBoxProps) => JSX.Element;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ComponentStory } from '@storybook/react';
3
- import { InfoBox as InfoBoxComponent } from './InfoBox';
4
- declare const _default: {
5
- title: string;
6
- component: ({ title, icon, description, linkButton }: import("./InfoBox").InfoBoxProps) => JSX.Element;
7
- };
8
- export default _default;
9
- export declare const InfoBox: ComponentStory<typeof InfoBoxComponent>;