@zealicsolutions/web-ui 0.2.121 → 0.2.122

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.
@@ -5,31 +5,13 @@ import { CSSProperties } from 'styled-components';
5
5
  import type { AnyObject, Nullable, StrictUnion } from 'typescript';
6
6
  import { ContainerComponentProps } from './types';
7
7
  export declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
8
- export declare type FileType = 'image' | 'video' | 'document' | 'audio';
9
- export declare type ContentStatus = 'in_use' | 'draft';
10
- export declare type FileMatrixMessageDTO = Readonly<Partial<{
11
- id: string;
12
- text: string;
13
- label: string;
14
- locationId: string;
15
- }>>;
16
- export declare type FileObjectDTO = Readonly<Partial<{
17
- id: string;
18
- name: string;
19
- fileType: FileType;
20
- description: string;
21
- originalName: string;
8
+ export declare type DownloadFile = {
22
9
  url: string;
23
- size: number;
24
- type: FileType;
25
- updatedAt: string;
26
- createdAt: string;
27
- status: ContentStatus;
28
- tags: FileMatrixMessageDTO[];
29
- }>> | null;
10
+ name: string;
11
+ };
30
12
  declare type LinkAction = Omit<LinkAttributes, 'attributeType'>;
31
13
  declare type PopupDrawerAction = ContainerComponentProps;
32
- declare type DownloadAction = FileObjectDTO;
14
+ declare type DownloadAction = DownloadFile;
33
15
  declare type SubmitAction = AnyObject;
34
16
  declare type CancelAction = AnyObject;
35
17
  declare type ResetAction = AnyObject;
@@ -1,7 +1,7 @@
1
1
  import { ModalProps as MUIModalProps } from '@mui/material';
2
2
  import React, { KeyboardEvent, PropsWithChildren } from 'react';
3
3
  import { CSSProperties } from 'styled-components';
4
- import { Callback, OverrideStyles } from '../../typescript';
4
+ import type { Callback, OverrideStyles } from 'typescript';
5
5
  export declare type ZealUIModalProps = PropsWithChildren<Pick<MUIModalProps, 'open'>> & {
6
6
  padding?: number | string;
7
7
  wrapperStyles?: CSSProperties;
@@ -9,7 +9,7 @@ export declare type ZealUIModalProps = PropsWithChildren<Pick<MUIModalProps, 'op
9
9
  modalStyles?: CSSProperties;
10
10
  onClose?: Callback;
11
11
  };
12
- export declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, onClose, ...rest }: ZealUIModalProps) => JSX.Element;
12
+ export declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: ZealUIModalProps) => JSX.Element;
13
13
  export declare const ModalWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, OverrideStyles, never>;
14
14
  export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
15
15
  activeOpacity?: number | undefined;
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react';
3
3
  import { ZealUIModal as ZealUIModalComponent } from './ZealUIModal';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, onClose, ...rest }: import("./ZealUIModal").ZealUIModalProps) => JSX.Element;
6
+ component: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: import("./ZealUIModal").ZealUIModalProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const ZealUIModal: StoryFn<typeof ZealUIModalComponent>;
@@ -14,7 +14,7 @@ export declare type CheckboxCaptureProps = {
14
14
  type: 'checkbox';
15
15
  label: string;
16
16
  value: boolean;
17
- onChange: (value: string) => void;
17
+ onChange: (value: boolean) => void;
18
18
  };
19
19
  export declare type ConsentCaptureProps<T extends string = string> = ButtonCaptureProps | RadioButtonsCaptureProps<T> | CheckboxCaptureProps;
20
20
  export declare const ConsentCapture: <T extends string>(props: ConsentCaptureProps<T>) => JSX.Element;