lawgic-dev-kit 0.24.2 → 0.25.0
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.
- package/dist/components/atoms/TextInput/TextInput.d.ts +1 -1
- package/dist/components/atoms/TextInput/TextInput.js +26 -21
- package/dist/components/atoms/TextInput/TextInput.types.d.ts +1 -0
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +43 -38
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +1 -0
- package/dist/components/atoms/UploadContainer/UploadContainer.js +104 -92
- package/dist/components/atoms/UploadContainer/UploadContainer.types.d.ts +5 -0
- package/dist/components/molecules/DateInput/DateInput.d.ts +2 -1
- package/dist/components/molecules/DateInput/DateInput.js +32 -30
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +58 -58
- package/dist/src/components/atoms/TextInput/TextInput.d.ts +1 -1
- package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +1 -0
- package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +5 -0
- package/dist/src/components/molecules/DateInput/DateInput.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TextInputProps } from "./TextInput.types";
|
|
3
3
|
import { FieldValues } from "react-hook-form";
|
|
4
|
-
declare const TextInput: <T extends FieldValues = FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, rightSide, translateKey, size, ...props }: TextInputProps<T>) => React.ReactElement;
|
|
4
|
+
declare const TextInput: <T extends FieldValues = FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, rightSide, translateKey, size, required, ...props }: TextInputProps<T>) => React.ReactElement;
|
|
5
5
|
export default TextInput;
|
|
@@ -30,6 +30,11 @@ export interface UploadContainerProps {
|
|
|
30
30
|
*/
|
|
31
31
|
maxSize?: number;
|
|
32
32
|
direction?: 'row' | 'column';
|
|
33
|
+
/**
|
|
34
|
+
* Tamaño del título y la descripción
|
|
35
|
+
* @default 'md' en direction='row', 'lg' en direction='column'
|
|
36
|
+
*/
|
|
37
|
+
size?: 'sm' | 'md' | 'lg';
|
|
33
38
|
disabled?: boolean;
|
|
34
39
|
loading?: boolean;
|
|
35
40
|
loadingDuration?: number;
|
|
@@ -9,6 +9,7 @@ export type DateInputProps<T extends FieldValues = FieldValues> = {
|
|
|
9
9
|
futureDates?: boolean;
|
|
10
10
|
pastDates?: boolean;
|
|
11
11
|
size?: "sm" | "md";
|
|
12
|
+
required?: boolean;
|
|
12
13
|
};
|
|
13
|
-
declare const DateInput: <T extends FieldValues = FieldValues>({ control, name, showTimeSelector, label, translateKey, placeholder, futureDates, pastDates, size, }: DateInputProps<T>) => React.ReactElement;
|
|
14
|
+
declare const DateInput: <T extends FieldValues = FieldValues>({ control, name, showTimeSelector, label, translateKey, placeholder, futureDates, pastDates, size, required, }: DateInputProps<T>) => React.ReactElement;
|
|
14
15
|
export default DateInput;
|