@dartech/arsenal-ui 1.5.77 → 1.5.78
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -2,7 +2,6 @@ import { ReactNode } from 'react';
|
|
2
2
|
import { TextFieldProps } from '@mui/material/TextField';
|
3
3
|
import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
|
4
4
|
import { Control, Validate } from 'react-hook-form';
|
5
|
-
import { UiSettings } from '../../interfaces';
|
6
5
|
type ControlDateProps = Partial<DatePickerProps<unknown, unknown>> & {
|
7
6
|
/**
|
8
7
|
* React Hook Form `control`
|
@@ -21,7 +20,7 @@ type ControlDateProps = Partial<DatePickerProps<unknown, unknown>> & {
|
|
21
20
|
requiredErrorText?: string;
|
22
21
|
validate?: Validate<any, any>;
|
23
22
|
validateErrorText?: string;
|
24
|
-
dateCondition?:
|
23
|
+
dateCondition?: 'gte' | 'lte' | 'gt' | 'lt' | 'current';
|
25
24
|
defaultValue?: string;
|
26
25
|
};
|
27
26
|
export declare const ControlDate: ({ control, name, required, label, placeholder, defaultValue, format, hideErrorMessage, textFieldProps, requiredErrorText, validate, dateCondition, validateErrorText, ...datePickerProps }: ControlDateProps) => JSX.Element;
|
@@ -2,7 +2,6 @@ import { ReactNode } from 'react';
|
|
2
2
|
import { TextFieldProps } from '@mui/material/TextField';
|
3
3
|
import { DateTimePickerProps } from '@mui/x-date-pickers/DateTimePicker';
|
4
4
|
import { Control, Validate } from 'react-hook-form';
|
5
|
-
import { UiSettings } from '../../interfaces';
|
6
5
|
type dateTimePickerProps = Partial<DateTimePickerProps<unknown, unknown>> & {
|
7
6
|
/**
|
8
7
|
* React Hook Form `control`
|
@@ -21,7 +20,7 @@ type dateTimePickerProps = Partial<DateTimePickerProps<unknown, unknown>> & {
|
|
21
20
|
requiredErrorText?: string;
|
22
21
|
validate?: Validate<any, any>;
|
23
22
|
validateErrorText?: string;
|
24
|
-
dateCondition?:
|
23
|
+
dateCondition?: 'gte' | 'lte' | 'gt' | 'lt' | 'current';
|
25
24
|
defaultValue?: string;
|
26
25
|
};
|
27
26
|
export declare const ControlDateTime: ({ control, name, required, label, placeholder, defaultValue, format, hideErrorMessage, textFieldProps, requiredErrorText, validate, dateCondition, validateErrorText, ...dateTimePickerProps }: dateTimePickerProps) => JSX.Element;
|