gantri-components 2.157.1 → 2.158.0-beta.1

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.
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ButtonMenuProps } from './button-menu.types';
3
- export declare const ButtonMenu: {
4
- <T extends Record<any, any>>(props: ButtonMenuProps<T>): React.JSX.Element;
5
- defaultProps: Partial<ButtonMenuProps<Record<string, unknown>>>;
6
- };
3
+ export declare const ButtonMenu: <T extends Record<any, any>>(props: ButtonMenuProps<T>) => React.JSX.Element;
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { CheckboxListProps } from './checkbox-list.types';
3
- export declare const CheckboxList: {
4
- <Value extends string | Record<any, any>>(props: CheckboxListProps<Value>): React.JSX.Element;
5
- defaultProps: import("./checkbox-list.types").CheckboxListDefaultProps<string | Record<any, any>>;
6
- };
3
+ export declare const CheckboxList: <Value extends string | Record<any, any>>(props: CheckboxListProps<Value>) => React.JSX.Element;
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { DropdownMenuProps } from './dropdown-menu.types';
3
- export declare const DropdownMenu: {
4
- <T extends Record<any, any>>(props: DropdownMenuProps<T>): React.JSX.Element;
5
- defaultProps: Partial<DropdownMenuProps<Record<any, any>>>;
6
- };
3
+ export declare const DropdownMenu: <T extends Record<any, any>>(props: DropdownMenuProps<T>) => React.JSX.Element;
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { FileUploaderThumbnailVariantProps } from './file-uploader-thumbnail-variant.types';
3
- export declare const FileUploaderThumbnailVariant: {
4
- (props: FileUploaderThumbnailVariantProps): React.JSX.Element;
5
- defaultProps: Pick<FileUploaderThumbnailVariantProps, "thumbnailSize">;
6
- };
3
+ export declare const FileUploaderThumbnailVariant: (props: FileUploaderThumbnailVariantProps) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconRecoverFilePropsDef } from './icon-recover.types';
3
+ export declare const IconRecoverFile: (props: IconRecoverFilePropsDef) => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ export type HandleRecoverFileDef = (fileUrl: string) => Promise<void>;
2
+ export interface IconRecoverFilePropsDef {
3
+ fileUrl: string | undefined;
4
+ handleRecoverFile: HandleRecoverFileDef | undefined;
5
+ isDisabled: boolean | undefined;
6
+ thumbnailUrl: string | undefined;
7
+ }
@@ -0,0 +1 @@
1
+ export * from './icon-recover';
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { FileUploaderProps } from './file-uploader.types';
3
- export declare const FileUploader: {
4
- (props: FileUploaderProps): React.JSX.Element;
5
- defaultProps: import("./file-uploader.types").FileUploaderDefaultProps;
6
- };
3
+ export declare const FileUploader: (props: FileUploaderProps) => React.JSX.Element;
@@ -75,7 +75,8 @@ export interface SelectedFileDetails {
75
75
  /** If invalid, return the error message to display. */
76
76
  export type ValidateFile = (file: SelectedFileDetails) => Promise<string | undefined | void> | string | undefined | void;
77
77
  export type HandleFileSelected = (validFile: SelectedFileDetails) => Promise<any>;
78
- export type FileUploaderCustomContent = (props: {
78
+ export type FileUploaderCustomContent = (props: FileUploaderCustomContentPropsDef) => JSX.Element;
79
+ export interface FileUploaderCustomContentPropsDef {
79
80
  IconCopyUrl: () => JSX.Element;
80
81
  IconDelete: () => JSX.Element;
81
82
  IconDrag: () => JSX.Element;
@@ -87,7 +88,7 @@ export type FileUploaderCustomContent = (props: {
87
88
  isDisabled: boolean | undefined;
88
89
  isDraggingOver: boolean;
89
90
  processing: boolean;
90
- }) => JSX.Element;
91
+ }
91
92
  export type OnFileUploaderError = (props: {
92
93
  error: unknown;
93
94
  fallbackMessage: string;
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { MultiSelectListProps } from './multi-select-list.types';
3
- export declare const MultiSelectList: {
4
- <Item extends Record<any, any>>(props: MultiSelectListProps<Item>): React.JSX.Element;
5
- defaultProps: import("./multi-select-list.types").MultiSelectListDefaultProps<Record<string, unknown>>;
6
- };
3
+ export declare const MultiSelectList: <Item extends Record<any, any>>(props: MultiSelectListProps<Item>) => React.JSX.Element;
@@ -1,6 +1,3 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import { RadioProps } from './radio.types';
3
- export declare const Radio: {
4
- (props: PropsWithChildren<RadioProps>): React.JSX.Element;
5
- defaultProps: RadioProps;
6
- };
3
+ export declare const Radio: (props: PropsWithChildren<RadioProps>) => React.JSX.Element;
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { RadioListProps } from './radio-list.types';
3
- export declare const RadioList: {
4
- <Value extends string>(props: RadioListProps<Value>): React.JSX.Element;
5
- defaultProps: import("./radio-list.types").RadioListDefaultProps<string | Record<any, any>>;
6
- };
3
+ export declare const RadioList: <Value extends string>(props: RadioListProps<Value>) => React.JSX.Element;
@@ -1,6 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { StyledRadioItemProps } from './radio-list.types';
3
- export declare const StyledRadioItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../radio/radio.types").RadioProps, StyledRadioItemProps>> & string & Omit<{
4
- (props: import("../radio/radio.types").RadioProps): import("react").JSX.Element;
5
- defaultProps: import("../radio/radio.types").RadioProps;
6
- }, keyof import("react").Component<any, {}, any>>;
3
+ export declare const StyledRadioItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../radio/radio.types").RadioProps, StyledRadioItemProps>> & string & Omit<(props: import("../radio/radio.types").RadioProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { SearchFieldProps } from './search-field.types';
3
- export declare const SearchField: {
4
- <T extends Record<any, any>>(props: SearchFieldProps<T>): React.JSX.Element;
5
- defaultProps: Partial<SearchFieldProps<any>>;
6
- };
3
+ export declare const SearchField: <T extends Record<any, any>>(props: SearchFieldProps<T>) => React.JSX.Element;
@@ -20,6 +20,7 @@ export interface SearchFieldProps<T extends DynamicListItem<Record<any, any> & {
20
20
  /** Applies to any disabled tooltips within the dropdown menu. */
21
21
  disabledTooltipProps?: Partial<TooltipProps>;
22
22
  dropdownPopupWidth?: Property.Width<string | number>;
23
+ /** If used outside of a formik form, use `onChange` to interact with the selected items values. */
23
24
  enableSelectedItemsList?: boolean;
24
25
  errorMessage?: ErrorMessageType;
25
26
  filterFn?: (searchBy: string, item: T) => boolean;
@@ -63,6 +64,7 @@ export interface SearchFieldProps<T extends DynamicListItem<Record<any, any> & {
63
64
  * the new items must be provided after.
64
65
  * */
65
66
  searchMode?: 'internal' | 'external';
67
+ /** The initial values for the selected items list. */
66
68
  selectedItemsList?: T[keyof T][];
67
69
  size?: ResolutionAwareProp<TextFieldSize>;
68
70
  style?: CSSProperties;
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { PagingComponentProps } from './paging.types';
3
- export declare const Paging: {
4
- (props: PagingComponentProps): React.JSX.Element;
5
- defaultProps: Partial<import("./paging.types").PagingProps>;
6
- };
3
+ export declare const Paging: (props: PagingComponentProps) => React.JSX.Element;
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { SearchComponentProps } from './search.types';
3
- export declare const Search: {
4
- (props: SearchComponentProps): React.JSX.Element;
5
- defaultProps: import("./search.types").SearchDefaultProps;
6
- };
3
+ export declare const Search: (props: SearchComponentProps) => React.JSX.Element;
@@ -6,7 +6,4 @@ import { TableProps } from './table.types';
6
6
  *
7
7
  * Official docs: https://tanstack.com/table/v8/docs/guide/overview
8
8
  */
9
- export declare const Table: {
10
- <TData extends RowData<import("./table.types").CustomTData>>(props: TableProps<TData>): React.JSX.Element;
11
- defaultProps: import("./table.types").TableDefaultProps;
12
- };
9
+ export declare const Table: <TData extends RowData<import("./table.types").CustomTData>>(props: TableProps<TData>) => React.JSX.Element;