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.
Files changed (192) hide show
  1. package/dist/_virtual/index3.js +2 -3
  2. package/dist/_virtual/index4.js +3 -3
  3. package/dist/_virtual/index5.js +3 -5
  4. package/dist/_virtual/index6.js +5 -2
  5. package/dist/components/atoms/Avatar/Avatar.js +3 -2
  6. package/dist/components/atoms/Checkbox/Checkbox.d.ts +7 -2
  7. package/dist/components/atoms/CountryLabel/CountryLabel.js +32 -0
  8. package/dist/components/atoms/PhoneInput/PhoneInput.js +282 -0
  9. package/dist/components/atoms/Tab/Tab.d.ts +1 -1
  10. package/dist/components/atoms/Tab/Tab.js +19 -12
  11. package/dist/components/atoms/UploadContainer/UploadContainer.js +14 -13
  12. package/dist/components/atoms/index.d.ts +3 -0
  13. package/dist/components/molecules/AlertModal/AlertModal.js +7 -6
  14. package/dist/components/molecules/CalendarSelector/CalendarSelector.d.ts +1 -0
  15. package/dist/components/molecules/CalendarSelector/CalendarSelector.js +166 -106
  16. package/dist/components/molecules/DateInput/DateInput.js +8 -7
  17. package/dist/components/molecules/DialogModal/DialogModal.js +3 -2
  18. package/dist/components/molecules/Dropdown/Dropdown.js +22 -21
  19. package/dist/components/molecules/Dropdown/Dropdown.types.d.ts +2 -0
  20. package/dist/components/molecules/FloatingMenu/FloatingMenu.js +6 -5
  21. package/dist/components/molecules/Tabs/Tabs.d.ts +3 -2
  22. package/dist/components/molecules/Tabs/Tabs.js +86 -28
  23. package/dist/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +5 -7
  24. package/dist/constants/countries.js +1749 -0
  25. package/dist/index.js +61 -57
  26. package/dist/lawgic-dev-kit.css +1 -1
  27. package/dist/lawgic-dev-kit.umd.js +160 -161
  28. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  29. package/dist/node_modules/scheduler/index.js +1 -1
  30. package/dist/node_modules/yup/index.esm.js +3 -3
  31. package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +11 -0
  32. package/dist/src/components/atoms/ActionButton/index.d.ts +1 -0
  33. package/dist/src/components/atoms/AsyncToast/index.d.ts +11 -0
  34. package/dist/src/components/atoms/Avatar/Avatar.d.ts +11 -0
  35. package/dist/src/components/atoms/Avatar/index.d.ts +1 -0
  36. package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +4 -0
  37. package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +6 -0
  38. package/dist/src/components/atoms/BoxContainer/index.d.ts +1 -0
  39. package/dist/src/components/atoms/Button/Button.d.ts +4 -0
  40. package/dist/src/components/atoms/Button/Button.styles.d.ts +26 -0
  41. package/dist/src/components/atoms/Button/index.d.ts +1 -0
  42. package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +4 -0
  43. package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +5 -0
  44. package/dist/src/components/atoms/CenterModal/index.d.ts +1 -0
  45. package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +10 -0
  46. package/dist/src/components/atoms/Checkbox/index.d.ts +1 -0
  47. package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +4 -0
  48. package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +37 -0
  49. package/dist/src/components/atoms/CountryInput/index.d.ts +1 -0
  50. package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +6 -0
  51. package/dist/src/components/atoms/CountryLabel/index.d.ts +1 -0
  52. package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +4 -0
  53. package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +36 -0
  54. package/dist/src/components/atoms/CountrySelectInput/index.d.ts +1 -0
  55. package/dist/src/components/atoms/Divider/Divider.d.ts +7 -0
  56. package/dist/src/components/atoms/Divider/index.d.ts +1 -0
  57. package/dist/src/components/atoms/FullLogo/FullLogo.d.ts +3 -0
  58. package/dist/src/components/atoms/FullLogo/index.d.ts +1 -0
  59. package/dist/src/components/atoms/IconButton/IconButton.d.ts +4 -0
  60. package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +10 -0
  61. package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +11 -0
  62. package/dist/src/components/atoms/IconButton/index.d.ts +1 -0
  63. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +4 -0
  64. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +12 -0
  65. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +9 -0
  66. package/dist/src/components/atoms/ImageProfileInput/index.d.ts +2 -0
  67. package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +9 -0
  68. package/dist/src/components/atoms/IndexedStep/index.d.ts +1 -0
  69. package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +3 -0
  70. package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +6 -0
  71. package/dist/src/components/atoms/InfoCard/index.d.ts +1 -0
  72. package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +8 -0
  73. package/dist/src/components/atoms/LoadingSpinner/index.d.ts +1 -0
  74. package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +5 -0
  75. package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +11 -0
  76. package/dist/src/components/atoms/PasswordInput/index.d.ts +1 -0
  77. package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +4 -0
  78. package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +12 -0
  79. package/dist/src/components/atoms/PhoneInput/index.d.ts +1 -0
  80. package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +3 -0
  81. package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +4 -0
  82. package/dist/src/components/atoms/ProgressBar/index.d.ts +1 -0
  83. package/dist/src/components/atoms/SearchBar/index.d.ts +2 -0
  84. package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +12 -0
  85. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +3 -0
  86. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +1 -0
  87. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +10 -0
  88. package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +2 -0
  89. package/dist/src/components/atoms/SectionButton/index.d.ts +1 -0
  90. package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +2 -0
  91. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +3 -0
  92. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +10 -0
  93. package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +2 -0
  94. package/dist/src/components/atoms/SelectDropdown/SelectDropdown.d.ts +4 -0
  95. package/dist/src/components/atoms/SelectDropdown/SelectDropdown.types.d.ts +24 -0
  96. package/dist/src/components/atoms/SelectDropdown/index.d.ts +1 -0
  97. package/dist/src/components/atoms/SidebarButton/index.d.ts +10 -0
  98. package/dist/src/components/atoms/Tab/Tab.d.ts +3 -0
  99. package/dist/src/components/atoms/Tab/Tab.styles.d.ts +6 -0
  100. package/dist/src/components/atoms/Tab/Tab.types.d.ts +10 -0
  101. package/dist/src/components/atoms/Tab/index.d.ts +1 -0
  102. package/dist/src/components/atoms/TextButton/TextButton.d.ts +4 -0
  103. package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +2 -0
  104. package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +6 -0
  105. package/dist/src/components/atoms/TextButton/index.d.ts +1 -0
  106. package/dist/src/components/atoms/TextInput/TextInput.d.ts +5 -0
  107. package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +11 -0
  108. package/dist/src/components/atoms/TextInput/index.d.ts +1 -0
  109. package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +3 -0
  110. package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +5 -0
  111. package/dist/src/components/atoms/TextStaticInput/index.d.ts +1 -0
  112. package/dist/src/components/atoms/Toast/Toast.d.ts +21 -0
  113. package/dist/src/components/atoms/Toast/index.d.ts +1 -0
  114. package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +16 -0
  115. package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +1 -0
  116. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +4 -0
  117. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +13 -0
  118. package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +1 -0
  119. package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +4 -0
  120. package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +32 -0
  121. package/dist/src/components/atoms/UploadContainer/index.d.ts +1 -0
  122. package/dist/src/components/atoms/index.d.ts +3 -0
  123. package/dist/src/components/index.d.ts +3 -0
  124. package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +3 -0
  125. package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +8 -0
  126. package/dist/src/components/molecules/AlertModal/index.d.ts +2 -0
  127. package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +9 -0
  128. package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +6 -0
  129. package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +7 -0
  130. package/dist/src/components/molecules/CalendarSelector/index.d.ts +1 -0
  131. package/dist/src/components/molecules/DateInput/DateInput.d.ts +11 -0
  132. package/dist/src/components/molecules/DateInput/index.d.ts +1 -0
  133. package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +3 -0
  134. package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +10 -0
  135. package/dist/src/components/molecules/DialogModal/index.d.ts +1 -0
  136. package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +3 -0
  137. package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +9 -0
  138. package/dist/src/components/molecules/Dropdown/index.d.ts +1 -0
  139. package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +4 -0
  140. package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +17 -0
  141. package/dist/src/components/molecules/FileUpload/index.d.ts +1 -0
  142. package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +4 -0
  143. package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +11 -0
  144. package/dist/src/components/molecules/FloatingMenu/index.d.ts +1 -0
  145. package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +7 -0
  146. package/dist/src/components/molecules/IndexedStepper/index.d.ts +1 -0
  147. package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +14 -0
  148. package/dist/src/components/molecules/InformationContainer/index.d.ts +1 -0
  149. package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +4 -0
  150. package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +5 -0
  151. package/dist/src/components/molecules/SearchModal/index.d.ts +1 -0
  152. package/dist/src/components/molecules/Stepper/Stepper.d.ts +3 -0
  153. package/dist/src/components/molecules/Stepper/Stepper.types.d.ts +7 -0
  154. package/dist/src/components/molecules/Stepper/index.d.ts +1 -0
  155. package/dist/src/components/molecules/Tabs/Tabs.d.ts +20 -0
  156. package/dist/src/components/molecules/Tabs/index.d.ts +1 -0
  157. package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +10 -0
  158. package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
  159. package/dist/src/components/molecules/index.d.ts +10 -0
  160. package/dist/src/components/organisms/index.d.ts +1 -0
  161. package/dist/src/constants/countries.d.ts +30 -0
  162. package/dist/src/index.d.ts +6 -0
  163. package/dist/src/providers/ThemeProvider.d.ts +10 -0
  164. package/dist/src/providers/index.d.ts +1 -0
  165. package/dist/src/themes/default.d.ts +2 -0
  166. package/dist/src/themes/index.d.ts +2 -0
  167. package/dist/src/themes/types.d.ts +6 -0
  168. package/dist/src/types/baseModalProps.d.ts +4 -0
  169. package/dist/src/types/display.d.ts +2 -0
  170. package/dist/src/types/fileInfo.d.ts +2 -0
  171. package/dist/src/types/i18n.d.ts +1 -0
  172. package/dist/src/types/index.d.ts +9 -0
  173. package/dist/src/types/modal.d.ts +31 -0
  174. package/dist/src/types/modalType.d.ts +1 -0
  175. package/dist/src/types/navbarOption.d.ts +7 -0
  176. package/dist/src/types/sidebarOption.d.ts +7 -0
  177. package/dist/src/types/styleValues.d.ts +4 -0
  178. package/dist/src/types/toast.d.ts +26 -0
  179. package/dist/src/utils/dates.d.ts +1 -0
  180. package/dist/src/utils/files.d.ts +8 -0
  181. package/dist/src/utils/images.d.ts +1 -0
  182. package/dist/src/utils/index.d.ts +7 -0
  183. package/dist/src/utils/modal.d.ts +10 -0
  184. package/dist/src/utils/renderContentOptions.d.ts +3 -0
  185. package/dist/src/utils/strings.d.ts +2 -0
  186. package/dist/src/utils/toast.d.ts +15 -0
  187. package/dist/utils/modal.js +18 -17
  188. package/dist/utils/toast.js +3 -2
  189. package/dist/vite.config.d.ts +2 -0
  190. package/package.json +1 -1
  191. package/dist/components/atoms/Logo/Logo.d.ts +0 -3
  192. 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,3 @@
1
+ import { TextStaticInputProps } from "./TextStaticInput.types";
2
+ declare const TextStaticInput: React.FC<TextStaticInputProps>;
3
+ export default TextStaticInput;
@@ -0,0 +1,5 @@
1
+ export interface TextStaticInputProps {
2
+ label: string;
3
+ value: string;
4
+ className?: string;
5
+ }
@@ -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,4 @@
1
+ import React from "react";
2
+ import { UncontrolledTextInputProps } from "./UncontrolledTextInput.types";
3
+ declare const UncontrolledTextInput: React.FC<UncontrolledTextInputProps>;
4
+ export default UncontrolledTextInput;
@@ -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,4 @@
1
+ import React from "react";
2
+ import { UploadContainerProps } from "./UploadContainer.types";
3
+ declare const UploadContainer: React.FC<UploadContainerProps>;
4
+ export default UploadContainer;
@@ -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,3 @@
1
+ export * from "./atoms/index";
2
+ export * from "./molecules/index";
3
+ export * from "./organisms/index";
@@ -0,0 +1,3 @@
1
+ import { AlertModalProps } from "./AlertModal.types";
2
+ declare const AlertModal: ({ title, description, open, onClose, onConfirm, onCancel, }: AlertModalProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AlertModal;
@@ -0,0 +1,8 @@
1
+ export interface AlertModalProps {
2
+ title: string;
3
+ description: string;
4
+ open: boolean;
5
+ onClose: () => void;
6
+ onConfirm: () => void;
7
+ onCancel: () => void;
8
+ }
@@ -0,0 +1,2 @@
1
+ export { default as AlertModal } from "./AlertModal";
2
+ export * from "./AlertModal.types";
@@ -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,3 @@
1
+ import { DialogModalProps } from "./DialogModal.types";
2
+ declare const DialogModal: ({ title, description, open, onClose, onConfirm, onCancel, icon, }: DialogModalProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default DialogModal;
@@ -0,0 +1,10 @@
1
+ import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
+ export interface DialogModalProps {
3
+ title: string;
4
+ description: string;
5
+ open: boolean;
6
+ icon?: IconProp;
7
+ onClose: () => void;
8
+ onConfirm: () => void;
9
+ onCancel: () => void;
10
+ }
@@ -0,0 +1 @@
1
+ export { default as DialogModal } from './DialogModal';
@@ -0,0 +1,3 @@
1
+ import { DropdownMenuProps } from "./Dropdown.types";
2
+ declare const DropdownMenu: React.FC<DropdownMenuProps>;
3
+ export default DropdownMenu;
@@ -0,0 +1,9 @@
1
+ export interface DropdownMenuProps {
2
+ label: string;
3
+ className?: string;
4
+ labelClassName?: string;
5
+ children: React.ReactNode;
6
+ subtitle?: string;
7
+ open?: boolean;
8
+ onClick?: () => void;
9
+ }
@@ -0,0 +1 @@
1
+ export { default as Dropdown } from "./Dropdown";
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { FileUploadProps } from "./FileUpload.types";
3
+ declare const FileUpload: React.FC<FileUploadProps>;
4
+ export default FileUpload;
@@ -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,4 @@
1
+ import React from "react";
2
+ import { FloatingMenuProps } from "./FloatingMenu.types";
3
+ declare const FloatingMenu: React.FC<FloatingMenuProps>;
4
+ export default FloatingMenu;
@@ -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,7 @@
1
+ import React from 'react';
2
+ export type IndexedStepperProps = {
3
+ currentStep: number;
4
+ steps: string[];
5
+ };
6
+ declare const IndexedStepper: React.FC<IndexedStepperProps>;
7
+ export default IndexedStepper;
@@ -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,4 @@
1
+ import React from "react";
2
+ import type { SearchModalProps } from "./SearchModal.types";
3
+ declare const SearchModal: React.FC<SearchModalProps>;
4
+ export default SearchModal;
@@ -0,0 +1,5 @@
1
+ export interface SearchModalProps {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ onSearch?: (searchTerm: string) => void;
5
+ }
@@ -0,0 +1 @@
1
+ export { default as SearchModal } from "./SearchModal";
@@ -0,0 +1,3 @@
1
+ import type { StepperProps } from "./Stepper.types";
2
+ declare const Stepper: React.FC<StepperProps>;
3
+ export default Stepper;
@@ -0,0 +1,7 @@
1
+ export interface StepperProps {
2
+ steps: {
3
+ label: string;
4
+ completed: boolean;
5
+ }[];
6
+ direction?: "horizontal" | "vertical";
7
+ }
@@ -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,6 @@
1
+ import "./index.css";
2
+ export * from "./components/index";
3
+ export * from "./types/index";
4
+ export * from "./utils/index";
5
+ export * from "./providers/index";
6
+ export * from "./themes/index";
@@ -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,2 @@
1
+ import { LawgicTheme } from "./types";
2
+ export declare const defaultTheme: LawgicTheme;
@@ -0,0 +1,2 @@
1
+ export * from "./default";
2
+ export * from "./types";
@@ -0,0 +1,6 @@
1
+ import { TFunction } from "../types";
2
+ import { Color } from "../types/styleValues";
3
+ export interface LawgicTheme {
4
+ defaultColorScheme: Color;
5
+ t: TFunction;
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface BaseModalProps {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ }
@@ -0,0 +1,2 @@
1
+ type Display = 'mobile' | 'desktop';
2
+ export default Display;
@@ -0,0 +1,2 @@
1
+ import { FileStructure } from "legal-cycle-api-types";
2
+ export type FileInfo = Omit<FileStructure, 'uploaded_by' | '_id' | 'uploaded_by' | 'created_at' | 'updated_at'>;
@@ -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';
@@ -0,0 +1,7 @@
1
+ import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
+ export interface NavbarOption {
3
+ label: string;
4
+ href: string;
5
+ icon: IconProp;
6
+ disabled?: boolean;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
+ export interface SidebarOption {
3
+ label: string;
4
+ href: string;
5
+ icon: IconProp;
6
+ disabled?: boolean;
7
+ }
@@ -0,0 +1,4 @@
1
+ export type Color = 'blue' | 'aqua' | 'red' | 'gray';
2
+ export type Variant = 'filled' | 'outline' | 'transparent' | 'invisible';
3
+ export type Size = 'lg' | 'base' | 'md' | 'sm' | 'xs';
4
+ export type Shadow = 'none' | 'blue';