lawgic-dev-kit 0.8.0 → 0.8.6
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/_virtual/index3.js +2 -3
- package/dist/_virtual/index4.js +3 -3
- package/dist/_virtual/index5.js +3 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/atoms/Avatar/Avatar.js +3 -2
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +7 -2
- package/dist/components/atoms/CountryLabel/CountryLabel.js +32 -0
- package/dist/components/atoms/PhoneInput/PhoneInput.js +282 -0
- package/dist/components/atoms/Tab/Tab.d.ts +1 -1
- package/dist/components/atoms/Tab/Tab.js +19 -12
- package/dist/components/atoms/UploadContainer/UploadContainer.js +14 -13
- package/dist/components/atoms/index.d.ts +3 -0
- package/dist/components/molecules/AlertModal/AlertModal.js +7 -6
- package/dist/components/molecules/CalendarSelector/CalendarSelector.d.ts +1 -0
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +166 -106
- package/dist/components/molecules/DateInput/DateInput.js +8 -7
- package/dist/components/molecules/DialogModal/DialogModal.js +3 -2
- package/dist/components/molecules/Dropdown/Dropdown.js +22 -21
- package/dist/components/molecules/Dropdown/Dropdown.types.d.ts +2 -0
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +6 -5
- package/dist/components/molecules/Tabs/Tabs.d.ts +3 -2
- package/dist/components/molecules/Tabs/Tabs.js +86 -28
- package/dist/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +5 -7
- package/dist/constants/countries.js +1749 -0
- package/dist/index.js +61 -57
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +160 -161
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/scheduler/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +11 -0
- package/dist/src/components/atoms/ActionButton/index.d.ts +1 -0
- package/dist/src/components/atoms/AsyncToast/index.d.ts +11 -0
- package/dist/src/components/atoms/Avatar/Avatar.d.ts +11 -0
- package/dist/src/components/atoms/Avatar/index.d.ts +1 -0
- package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +4 -0
- package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +6 -0
- package/dist/src/components/atoms/BoxContainer/index.d.ts +1 -0
- package/dist/src/components/atoms/Button/Button.d.ts +4 -0
- package/dist/src/components/atoms/Button/Button.styles.d.ts +26 -0
- package/dist/src/components/atoms/Button/index.d.ts +1 -0
- package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +4 -0
- package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +5 -0
- package/dist/src/components/atoms/CenterModal/index.d.ts +1 -0
- package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +10 -0
- package/dist/src/components/atoms/Checkbox/index.d.ts +1 -0
- package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +4 -0
- package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +37 -0
- package/dist/src/components/atoms/CountryInput/index.d.ts +1 -0
- package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +6 -0
- package/dist/src/components/atoms/CountryLabel/index.d.ts +1 -0
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +4 -0
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +36 -0
- package/dist/src/components/atoms/CountrySelectInput/index.d.ts +1 -0
- package/dist/src/components/atoms/Divider/Divider.d.ts +7 -0
- package/dist/src/components/atoms/Divider/index.d.ts +1 -0
- package/dist/src/components/atoms/FullLogo/FullLogo.d.ts +3 -0
- package/dist/src/components/atoms/FullLogo/index.d.ts +1 -0
- package/dist/src/components/atoms/IconButton/IconButton.d.ts +4 -0
- package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +10 -0
- package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +11 -0
- package/dist/src/components/atoms/IconButton/index.d.ts +1 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +4 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +12 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +9 -0
- package/dist/src/components/atoms/ImageProfileInput/index.d.ts +2 -0
- package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +9 -0
- package/dist/src/components/atoms/IndexedStep/index.d.ts +1 -0
- package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +3 -0
- package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +6 -0
- package/dist/src/components/atoms/InfoCard/index.d.ts +1 -0
- package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +8 -0
- package/dist/src/components/atoms/LoadingSpinner/index.d.ts +1 -0
- package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +5 -0
- package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +11 -0
- package/dist/src/components/atoms/PasswordInput/index.d.ts +1 -0
- package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +4 -0
- package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +12 -0
- package/dist/src/components/atoms/PhoneInput/index.d.ts +1 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +4 -0
- package/dist/src/components/atoms/ProgressBar/index.d.ts +1 -0
- package/dist/src/components/atoms/SearchBar/index.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +12 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +1 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +10 -0
- package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/index.d.ts +1 -0
- package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +10 -0
- package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +2 -0
- package/dist/src/components/atoms/SelectDropdown/SelectDropdown.d.ts +4 -0
- package/dist/src/components/atoms/SelectDropdown/SelectDropdown.types.d.ts +24 -0
- package/dist/src/components/atoms/SelectDropdown/index.d.ts +1 -0
- package/dist/src/components/atoms/SidebarButton/index.d.ts +10 -0
- package/dist/src/components/atoms/Tab/Tab.d.ts +3 -0
- package/dist/src/components/atoms/Tab/Tab.styles.d.ts +6 -0
- package/dist/src/components/atoms/Tab/Tab.types.d.ts +10 -0
- package/dist/src/components/atoms/Tab/index.d.ts +1 -0
- package/dist/src/components/atoms/TextButton/TextButton.d.ts +4 -0
- package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +2 -0
- package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +6 -0
- package/dist/src/components/atoms/TextButton/index.d.ts +1 -0
- package/dist/src/components/atoms/TextInput/TextInput.d.ts +5 -0
- package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +11 -0
- package/dist/src/components/atoms/TextInput/index.d.ts +1 -0
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +3 -0
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +5 -0
- package/dist/src/components/atoms/TextStaticInput/index.d.ts +1 -0
- package/dist/src/components/atoms/Toast/Toast.d.ts +21 -0
- package/dist/src/components/atoms/Toast/index.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +16 -0
- package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +4 -0
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +13 -0
- package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +1 -0
- package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +4 -0
- package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +32 -0
- package/dist/src/components/atoms/UploadContainer/index.d.ts +1 -0
- package/dist/src/components/atoms/index.d.ts +3 -0
- package/dist/src/components/index.d.ts +3 -0
- package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +3 -0
- package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +8 -0
- package/dist/src/components/molecules/AlertModal/index.d.ts +2 -0
- package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +9 -0
- package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +6 -0
- package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +7 -0
- package/dist/src/components/molecules/CalendarSelector/index.d.ts +1 -0
- package/dist/src/components/molecules/DateInput/DateInput.d.ts +11 -0
- package/dist/src/components/molecules/DateInput/index.d.ts +1 -0
- package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +3 -0
- package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +10 -0
- package/dist/src/components/molecules/DialogModal/index.d.ts +1 -0
- package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +3 -0
- package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +9 -0
- package/dist/src/components/molecules/Dropdown/index.d.ts +1 -0
- package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +4 -0
- package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +17 -0
- package/dist/src/components/molecules/FileUpload/index.d.ts +1 -0
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +4 -0
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +11 -0
- package/dist/src/components/molecules/FloatingMenu/index.d.ts +1 -0
- package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +7 -0
- package/dist/src/components/molecules/IndexedStepper/index.d.ts +1 -0
- package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +14 -0
- package/dist/src/components/molecules/InformationContainer/index.d.ts +1 -0
- package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +4 -0
- package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +5 -0
- package/dist/src/components/molecules/SearchModal/index.d.ts +1 -0
- package/dist/src/components/molecules/Stepper/Stepper.d.ts +3 -0
- package/dist/src/components/molecules/Stepper/Stepper.types.d.ts +7 -0
- package/dist/src/components/molecules/Stepper/index.d.ts +1 -0
- package/dist/src/components/molecules/Tabs/Tabs.d.ts +20 -0
- package/dist/src/components/molecules/Tabs/index.d.ts +1 -0
- package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +10 -0
- package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
- package/dist/src/components/molecules/index.d.ts +10 -0
- package/dist/src/components/organisms/index.d.ts +1 -0
- package/dist/src/constants/countries.d.ts +30 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/providers/ThemeProvider.d.ts +10 -0
- package/dist/src/providers/index.d.ts +1 -0
- package/dist/src/themes/default.d.ts +2 -0
- package/dist/src/themes/index.d.ts +2 -0
- package/dist/src/themes/types.d.ts +6 -0
- package/dist/src/types/baseModalProps.d.ts +4 -0
- package/dist/src/types/display.d.ts +2 -0
- package/dist/src/types/fileInfo.d.ts +2 -0
- package/dist/src/types/i18n.d.ts +1 -0
- package/dist/src/types/index.d.ts +9 -0
- package/dist/src/types/modal.d.ts +31 -0
- package/dist/src/types/modalType.d.ts +1 -0
- package/dist/src/types/navbarOption.d.ts +7 -0
- package/dist/src/types/sidebarOption.d.ts +7 -0
- package/dist/src/types/styleValues.d.ts +4 -0
- package/dist/src/types/toast.d.ts +26 -0
- package/dist/src/utils/dates.d.ts +1 -0
- package/dist/src/utils/files.d.ts +8 -0
- package/dist/src/utils/images.d.ts +1 -0
- package/dist/src/utils/index.d.ts +7 -0
- package/dist/src/utils/modal.d.ts +10 -0
- package/dist/src/utils/renderContentOptions.d.ts +3 -0
- package/dist/src/utils/strings.d.ts +2 -0
- package/dist/src/utils/toast.d.ts +15 -0
- package/dist/utils/modal.js +18 -17
- package/dist/utils/toast.js +3 -2
- package/dist/vite.config.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/atoms/Logo/Logo.d.ts +0 -3
- package/dist/components/atoms/Logo/Slogan.d.ts +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TextButton } from './TextButton';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TextInputProps } from "./TextInput.types";
|
|
3
|
+
import { FieldValues } from "react-hook-form";
|
|
4
|
+
declare const TextInput: <T extends FieldValues = FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, rightSide, ...props }: TextInputProps<T>) => React.ReactElement;
|
|
5
|
+
export default TextInput;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Control, FieldValues, Path } from "react-hook-form";
|
|
2
|
+
export type TextInputProps<T extends FieldValues = FieldValues> = {
|
|
3
|
+
label: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
control: Control<T>;
|
|
8
|
+
name: Path<T>;
|
|
9
|
+
leftSide?: React.ReactNode;
|
|
10
|
+
rightSide?: React.ReactNode;
|
|
11
|
+
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TextInput } from './TextInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TextStaticInput } from "./TextStaticInput";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ToastType } from "../../../types";
|
|
2
|
+
type ToastContent = string | React.ReactNode;
|
|
3
|
+
interface ToastProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
content: ToastContent;
|
|
6
|
+
type?: ToastType;
|
|
7
|
+
duration?: number;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Toast: React.FC<ToastProps>;
|
|
11
|
+
export default Toast;
|
|
12
|
+
interface ToastManagerProps {
|
|
13
|
+
toasts: Array<{
|
|
14
|
+
id: string;
|
|
15
|
+
content: ToastContent;
|
|
16
|
+
type: "success" | "error" | "warning" | "info" | "loading";
|
|
17
|
+
duration?: number;
|
|
18
|
+
}>;
|
|
19
|
+
removeToast: (id: string) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const ToastManager: React.FC<ToastManagerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Toast } from './Toast';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Option {
|
|
3
|
+
label: string | React.ReactNode;
|
|
4
|
+
value: number | string;
|
|
5
|
+
}
|
|
6
|
+
interface UncontrolledSelectorProps {
|
|
7
|
+
value: number | string;
|
|
8
|
+
onChange: (value: number | string) => void;
|
|
9
|
+
options: Option[];
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
error?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const UncontrolledSelector: React.FC<UncontrolledSelectorProps>;
|
|
16
|
+
export default UncontrolledSelector;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UncontrolledSelector } from './UncontrolledSelector';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type UncontrolledTextInputProps = {
|
|
2
|
+
name: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
value: string;
|
|
8
|
+
error?: string | undefined;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
disabledInput?: boolean;
|
|
11
|
+
leftSide?: React.ReactNode;
|
|
12
|
+
rightSide?: React.ReactNode;
|
|
13
|
+
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UncontrolledTextInput } from "./UncontrolledTextInput";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface UploadContainerProps {
|
|
2
|
+
/**
|
|
3
|
+
* Título que se muestra en el área de carga
|
|
4
|
+
* @default 'drag_and_drop_your_files_here'
|
|
5
|
+
*/
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Subtítulo opcional para mostrar información adicional
|
|
9
|
+
* @default null
|
|
10
|
+
*/
|
|
11
|
+
subtitle?: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Texto del botón de selección de archivos
|
|
14
|
+
* @default 'choose_files'
|
|
15
|
+
*/
|
|
16
|
+
buttonTitle?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Función que se ejecuta cuando se cargan archivos válidos
|
|
19
|
+
* @param files Array de objetos File seleccionados
|
|
20
|
+
*/
|
|
21
|
+
onUpload?: (files: File[]) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Lista de extensiones de archivo permitidas
|
|
24
|
+
* @default ['pdf', 'png', 'jpg', 'jpeg', 'svg', 'docx', 'doc', 'xls', 'xlsx']
|
|
25
|
+
*/
|
|
26
|
+
acceptedExtensions?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* Tamaño máximo de archivo en KB
|
|
29
|
+
* @default 1024
|
|
30
|
+
*/
|
|
31
|
+
maxSize?: number;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UploadContainer } from "./UploadContainer";
|
|
@@ -25,3 +25,6 @@ export * from "./UncontrolledSelector/index";
|
|
|
25
25
|
export * from "./UncontrolledTextInput/index";
|
|
26
26
|
export * from "./UploadContainer/index";
|
|
27
27
|
export * from "./InformationDisclaimer/index";
|
|
28
|
+
export * from "./CountryLabel/index";
|
|
29
|
+
export * from "./PhoneInput/index";
|
|
30
|
+
export * from "./SidebarButton/index";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type CalendarSelectorProps = {
|
|
3
|
+
date: Date;
|
|
4
|
+
onDateChange: (date: Date) => void;
|
|
5
|
+
showTimeSelector?: boolean;
|
|
6
|
+
maxDate?: Date;
|
|
7
|
+
};
|
|
8
|
+
declare const CalendarSelector: React.FC<CalendarSelectorProps>;
|
|
9
|
+
export default CalendarSelector;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface PeriodToggleProps {
|
|
2
|
+
selectedPeriod: string;
|
|
3
|
+
handlePeriodChange: (period: string) => void;
|
|
4
|
+
}
|
|
5
|
+
declare const PeriodToggle: ({ selectedPeriod, handlePeriodChange, }: PeriodToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default PeriodToggle;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface TimeDisplayProps {
|
|
2
|
+
setHourMenuOpen: (value: boolean) => void;
|
|
3
|
+
hourMenuOpen: boolean;
|
|
4
|
+
selectedHour: number;
|
|
5
|
+
}
|
|
6
|
+
declare const TimeDisplay: ({ setHourMenuOpen, hourMenuOpen, selectedHour, }: TimeDisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default TimeDisplay;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CalendarSelector } from './CalendarSelector';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
export type DateInputProps<T extends FieldValues = FieldValues> = {
|
|
4
|
+
control: Control<T>;
|
|
5
|
+
name: Path<T>;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
showTimeSelector?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const DateInput: <T extends FieldValues = FieldValues>({ control, name, showTimeSelector, label, placeholder }: DateInputProps<T>) => React.ReactElement;
|
|
11
|
+
export default DateInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DateInput } from './DateInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DialogModal } from './DialogModal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Dropdown } from "./Dropdown";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FileInfo } from "../../../types";
|
|
2
|
+
export declare const FileStatus: {
|
|
3
|
+
LOADING: string;
|
|
4
|
+
COMPLETE: string;
|
|
5
|
+
ERROR: string;
|
|
6
|
+
};
|
|
7
|
+
export interface UploadingFile extends FileInfo {
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
analyzing?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface FileUploadProps {
|
|
13
|
+
file: UploadingFile;
|
|
14
|
+
onDelete?: () => void;
|
|
15
|
+
onRetry?: () => void;
|
|
16
|
+
uploadDuration?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FileUpload } from './FileUpload';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface FloatingMenuProps {
|
|
2
|
+
open?: boolean;
|
|
3
|
+
onClose?: () => void;
|
|
4
|
+
component: React.ReactNode | (() => React.ReactNode);
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
placement?: "top" | "bottom" | "left" | "right";
|
|
7
|
+
className?: string;
|
|
8
|
+
strategy?: "fixed" | "absolute";
|
|
9
|
+
offset?: number;
|
|
10
|
+
padding?: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FloatingMenu } from './FloatingMenu';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as IndexedStepper } from './IndexedStepper';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
type InformationContainerProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
type InformationContainerComponent = React.FC<InformationContainerProps> & {
|
|
8
|
+
Entry: React.FC<{
|
|
9
|
+
label: string;
|
|
10
|
+
value: string | ReactNode | Element;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
declare const InformationContainer: InformationContainerComponent;
|
|
14
|
+
export default InformationContainer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as InformationContainer } from './InformationContainer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SearchModal } from "./SearchModal";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Stepper } from "./Stepper";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
+
import { Tab } from "../../atoms";
|
|
3
|
+
interface Tab {
|
|
4
|
+
id: string | number;
|
|
5
|
+
label: string;
|
|
6
|
+
icon: IconProp;
|
|
7
|
+
href?: string;
|
|
8
|
+
}
|
|
9
|
+
interface TabsProps {
|
|
10
|
+
variant?: "default" | "underline";
|
|
11
|
+
color?: "blue" | "aqua";
|
|
12
|
+
tabs: Tab[];
|
|
13
|
+
activeTab: string | number;
|
|
14
|
+
onTabChange: (tab: string | number) => void;
|
|
15
|
+
direction?: "row" | "col";
|
|
16
|
+
className?: string;
|
|
17
|
+
showLabel?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const Tabs: ({ variant, color, tabs, activeTab, onTabChange, className, direction, showLabel, }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default Tabs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Tabs } from "./Tabs";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type UncontrolledDateInputProps = {
|
|
2
|
+
currentDate: Date | null;
|
|
3
|
+
onDateChange: (date: Date | null) => void;
|
|
4
|
+
label?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
translatedKey: string;
|
|
8
|
+
showTimeSelector?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export default function UncontrolledDateInput({ currentDate, onDateChange, label, placeholder, error, translatedKey, showTimeSelector, }: UncontrolledDateInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DateInput } from './UncontrolledDateInput';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./AlertModal/index";
|
|
2
|
+
export * from "./CalendarSelector/index";
|
|
3
|
+
export * from "./DateInput/index";
|
|
4
|
+
export * from "./DialogModal/index";
|
|
5
|
+
export * from "./Dropdown/index";
|
|
6
|
+
export * from "./FileUpload/index";
|
|
7
|
+
export * from "./FloatingMenu/index";
|
|
8
|
+
export * from "./SearchModal/index";
|
|
9
|
+
export * from "./Stepper/index";
|
|
10
|
+
export * from "./Tabs/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Organism = "Alejo";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as yup from "yup";
|
|
2
|
+
export type Country = {
|
|
3
|
+
labelES: string;
|
|
4
|
+
label: string;
|
|
5
|
+
code: string;
|
|
6
|
+
codeISO2: string;
|
|
7
|
+
phone: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const countryValidator: yup.ObjectSchema<{
|
|
10
|
+
labelES: string;
|
|
11
|
+
label: string;
|
|
12
|
+
code: string;
|
|
13
|
+
codeISO2: string;
|
|
14
|
+
phone: string;
|
|
15
|
+
}, yup.AnyObject, {
|
|
16
|
+
labelES: undefined;
|
|
17
|
+
label: undefined;
|
|
18
|
+
code: undefined;
|
|
19
|
+
codeISO2: undefined;
|
|
20
|
+
phone: undefined;
|
|
21
|
+
}, "">;
|
|
22
|
+
export declare const mxCountry: {
|
|
23
|
+
labelES: string;
|
|
24
|
+
label: string;
|
|
25
|
+
codeISO2: string;
|
|
26
|
+
code: string;
|
|
27
|
+
phone: string;
|
|
28
|
+
};
|
|
29
|
+
declare const countries: Country[];
|
|
30
|
+
export default countries;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LawgicTheme } from "../themes";
|
|
3
|
+
import { TFunction } from "../types";
|
|
4
|
+
export interface ThemeProviderProps {
|
|
5
|
+
theme?: Partial<LawgicTheme>;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
t: TFunction;
|
|
8
|
+
}
|
|
9
|
+
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
10
|
+
export declare const useTheme: () => LawgicTheme;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ThemeProvider";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TFunction = (key: string, options?: Record<string, unknown>) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './baseModalProps';
|
|
2
|
+
export * from './display';
|
|
3
|
+
export * from './fileInfo';
|
|
4
|
+
export * from './i18n';
|
|
5
|
+
export * from './modal';
|
|
6
|
+
export * from './modalType';
|
|
7
|
+
export * from './navbarOption';
|
|
8
|
+
export * from './sidebarOption';
|
|
9
|
+
export * from './toast';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ModalType } from "./modalType";
|
|
2
|
+
import { CenterModalProps } from "../components/atoms/CenterModal/CenterModal.types";
|
|
3
|
+
import { DialogModalProps } from "../components/molecules/DialogModal/DialogModal.types";
|
|
4
|
+
import { AlertModalProps } from "../components/molecules";
|
|
5
|
+
export interface ModalProps {
|
|
6
|
+
open: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface ModalOptionsBase {
|
|
10
|
+
id?: string;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export interface AlertModalOptions extends ModalOptionsBase {
|
|
14
|
+
type: "alert";
|
|
15
|
+
props: Omit<AlertModalProps, "open" | "onClose">;
|
|
16
|
+
}
|
|
17
|
+
export interface CenterModalOptions extends ModalOptionsBase {
|
|
18
|
+
type: "center";
|
|
19
|
+
props: Omit<CenterModalProps, "open" | "onClose">;
|
|
20
|
+
}
|
|
21
|
+
export interface DialogModalOptions extends ModalOptionsBase {
|
|
22
|
+
type: "dialog";
|
|
23
|
+
props: Omit<DialogModalProps, "open" | "onClose">;
|
|
24
|
+
}
|
|
25
|
+
export type ModalOptions = AlertModalOptions | CenterModalOptions | DialogModalOptions;
|
|
26
|
+
export interface ModalState extends Omit<ModalOptionsBase, "id"> {
|
|
27
|
+
id: string;
|
|
28
|
+
open: boolean;
|
|
29
|
+
type: ModalType;
|
|
30
|
+
props: AlertModalProps | CenterModalProps | DialogModalProps;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModalType = 'center' | 'alert' | 'dialog';
|