@vendorflow/components 3.0.4 → 3.0.5

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,5 +1,5 @@
1
1
  import { ButtonProps } from '@mui/material';
2
- declare type Props = {
2
+ type Props = {
3
3
  loading?: boolean;
4
4
  progressClasses?: any;
5
5
  } & ButtonProps;
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ButtonProps, MenuProps } from '@mui/material';
3
3
  import { MenuItem as MenuItemType, Divider as DividerType } from '../../../types/Component.types';
4
- declare type Variant = 'text' | 'contained' | 'outlined' | undefined;
5
- declare type Props = {
4
+ type Variant = 'text' | 'contained' | 'outlined' | undefined;
5
+ type Props = {
6
6
  buttonRenderer?: ReactNode | (() => ReactNode);
7
7
  button?: {
8
8
  text: string;
@@ -1,4 +1,4 @@
1
1
  import { Props as InputGroupProps } from '../InputGroup/InputGroup';
2
- declare type Props = InputGroupProps;
2
+ type Props = InputGroupProps;
3
3
  export default function ColorPicker({ name, value, onChange, ...restOfProps }: Props): JSX.Element;
4
4
  export {};
@@ -25,8 +25,8 @@ export declare function DataTable<D extends object>({ title, labels, columns, in
25
25
  export declare function usePluginConfig<D extends object>(options: TableFeatureOptions<D>): PluginHook<D>[];
26
26
  export declare function useDefaultTableInstance<D extends object>({ columns, data, options, initialState, defaultColumn, }: UseDefaultTableInstanceProps<D>): {
27
27
  setColumnWidth: (columnId: string, width: number) => void;
28
- data: readonly D[];
29
28
  columns: ColumnInstance<D>[];
29
+ data: readonly D[];
30
30
  headers: ColumnInstance<D>[];
31
31
  rows: Row<D>[];
32
32
  plugins: PluginHook<D>[];
@@ -2,10 +2,10 @@ import React from 'react';
2
2
  import { DatePickerProps } from '@mui/lab';
3
3
  import { SimpleEventHandler } from '../../../types';
4
4
  import { TextFieldProps } from '@mui/material';
5
- declare type Props = {
5
+ type Props = {
6
6
  name?: string;
7
7
  onChange: SimpleEventHandler<string>;
8
8
  InputProps?: Omit<TextFieldProps, 'id'>;
9
- } & Omit<DatePickerProps, 'onChange' | 'renderInput' | 'date' | 'rawValue' | 'openPicker' | 'InputProps'> & React.RefAttributes<HTMLDivElement>;
9
+ } & Omit<DatePickerProps<any>, 'onChange' | 'renderInput' | 'date' | 'rawValue' | 'openPicker' | 'InputProps'> & React.RefAttributes<HTMLDivElement>;
10
10
  export default function InputDate(props: Props): JSX.Element;
11
11
  export {};
@@ -2,10 +2,10 @@ import React from 'react';
2
2
  import { DateTimePickerProps } from '@mui/lab';
3
3
  import { SimpleEventHandler } from '../../../types';
4
4
  import { TextFieldProps } from '@mui/material';
5
- declare type Props = {
5
+ type Props = {
6
6
  name?: string;
7
7
  onChange: SimpleEventHandler<string>;
8
8
  InputProps?: Omit<TextFieldProps, 'id'>;
9
- } & Omit<DateTimePickerProps, 'onChange' | 'renderInput' | 'date' | 'rawValue' | 'openPicker' | 'InputProps'> & React.RefAttributes<HTMLDivElement>;
9
+ } & Omit<DateTimePickerProps<any>, 'onChange' | 'renderInput' | 'date' | 'rawValue' | 'openPicker' | 'InputProps'> & React.RefAttributes<HTMLDivElement>;
10
10
  export default function InputDateTime(props: Props): JSX.Element;
11
11
  export {};
@@ -1,5 +1,5 @@
1
1
  import { TextFieldProps } from '@mui/material';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  value: string | null;
4
4
  charLimit?: number;
5
5
  hideCharCounter?: boolean;
@@ -1,8 +1,8 @@
1
1
  import { ChangeEvent, ReactNode, Ref } from 'react';
2
2
  import { AutocompleteProps, AutocompleteChangeReason, AutocompleteRenderInputParams } from '@mui/material';
3
3
  import { Variant } from '../../../types';
4
- declare type MaybeBoolean = boolean | undefined;
5
- declare type Props<T> = {
4
+ type MaybeBoolean = boolean | undefined;
5
+ type Props<T> = {
6
6
  error?: boolean;
7
7
  errors?: boolean[];
8
8
  label?: string;
@@ -1,10 +1,10 @@
1
1
  import { TimePickerProps } from '@mui/lab';
2
2
  import { SimpleEventHandler, ParsableDate } from '../../../types';
3
3
  import { TextFieldProps } from '@mui/material';
4
- declare type Props = {
4
+ type Props = {
5
5
  name?: string;
6
6
  onChange: SimpleEventHandler<ParsableDate>;
7
7
  InputProps?: Omit<TextFieldProps, 'id'>;
8
- } & Omit<TimePickerProps, 'onChange' | 'renderInput' | 'openPicker' | 'rawValue' | 'InputProps'>;
8
+ } & Omit<TimePickerProps<any>, 'onChange' | 'renderInput' | 'openPicker' | 'rawValue' | 'InputProps'>;
9
9
  export default function InputTime(props: Props): JSX.Element;
10
10
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { DialogProps } from '@mui/material';
3
- declare type Props = DialogProps & {
3
+ type Props = DialogProps & {
4
4
  children: ReactNode;
5
5
  classes?: any;
6
6
  cancelButton?: {