lawgic-dev-kit 0.17.2 → 0.17.4

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 (198) hide show
  1. package/dist/_virtual/index2.js +3 -2
  2. package/dist/_virtual/index3.js +3 -3
  3. package/dist/_virtual/index4.js +5 -3
  4. package/dist/_virtual/index5.js +2 -5
  5. package/dist/node_modules/prop-types/index.js +1 -1
  6. package/dist/node_modules/yup/index.esm.js +3 -3
  7. package/package.json +1 -1
  8. package/dist/src/Root.d.ts +0 -2
  9. package/dist/src/app.d.ts +0 -1
  10. package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +0 -11
  11. package/dist/src/components/atoms/ActionButton/index.d.ts +0 -1
  12. package/dist/src/components/atoms/AsyncToast/index.d.ts +0 -11
  13. package/dist/src/components/atoms/Avatar/Avatar.d.ts +0 -11
  14. package/dist/src/components/atoms/Avatar/index.d.ts +0 -1
  15. package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +0 -4
  16. package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +0 -6
  17. package/dist/src/components/atoms/BoxContainer/index.d.ts +0 -1
  18. package/dist/src/components/atoms/Button/Button.d.ts +0 -4
  19. package/dist/src/components/atoms/Button/Button.styles.d.ts +0 -26
  20. package/dist/src/components/atoms/Button/Button.types.d.ts +0 -12
  21. package/dist/src/components/atoms/Button/index.d.ts +0 -1
  22. package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +0 -4
  23. package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +0 -6
  24. package/dist/src/components/atoms/CenterModal/index.d.ts +0 -1
  25. package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +0 -12
  26. package/dist/src/components/atoms/Checkbox/index.d.ts +0 -1
  27. package/dist/src/components/atoms/CircleProgress/CircleProgress.d.ts +0 -22
  28. package/dist/src/components/atoms/CircleProgress/index.d.ts +0 -1
  29. package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +0 -4
  30. package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +0 -37
  31. package/dist/src/components/atoms/CountryInput/index.d.ts +0 -1
  32. package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +0 -6
  33. package/dist/src/components/atoms/CountryLabel/index.d.ts +0 -1
  34. package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +0 -4
  35. package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +0 -36
  36. package/dist/src/components/atoms/CountrySelectInput/index.d.ts +0 -1
  37. package/dist/src/components/atoms/Divider/Divider.d.ts +0 -7
  38. package/dist/src/components/atoms/Divider/index.d.ts +0 -1
  39. package/dist/src/components/atoms/FloatingCard/FloatingCard.d.ts +0 -4
  40. package/dist/src/components/atoms/FloatingCard/FloatingCard.types.d.ts +0 -9
  41. package/dist/src/components/atoms/FloatingCard/index.d.ts +0 -1
  42. package/dist/src/components/atoms/IconButton/IconButton.d.ts +0 -4
  43. package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +0 -10
  44. package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +0 -11
  45. package/dist/src/components/atoms/IconButton/index.d.ts +0 -1
  46. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +0 -4
  47. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +0 -12
  48. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +0 -9
  49. package/dist/src/components/atoms/ImageProfileInput/index.d.ts +0 -2
  50. package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +0 -9
  51. package/dist/src/components/atoms/IndexedStep/index.d.ts +0 -1
  52. package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +0 -3
  53. package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +0 -6
  54. package/dist/src/components/atoms/InfoCard/index.d.ts +0 -1
  55. package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.d.ts +0 -4
  56. package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +0 -3
  57. package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +0 -10
  58. package/dist/src/components/atoms/InformationDisclaimer/index.d.ts +0 -1
  59. package/dist/src/components/atoms/LoadingProgress/LoadingProgress.d.ts +0 -12
  60. package/dist/src/components/atoms/LoadingProgress/index.d.ts +0 -1
  61. package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -8
  62. package/dist/src/components/atoms/LoadingSpinner/index.d.ts +0 -1
  63. package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +0 -5
  64. package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +0 -11
  65. package/dist/src/components/atoms/PasswordInput/index.d.ts +0 -1
  66. package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +0 -5
  67. package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +0 -12
  68. package/dist/src/components/atoms/PhoneInput/index.d.ts +0 -1
  69. package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +0 -3
  70. package/dist/src/components/atoms/ProgressBar/ProgressBar.styles.d.ts +0 -7
  71. package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +0 -6
  72. package/dist/src/components/atoms/ProgressBar/index.d.ts +0 -1
  73. package/dist/src/components/atoms/SearchBar/index.d.ts +0 -2
  74. package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +0 -12
  75. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +0 -3
  76. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +0 -2
  77. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +0 -37
  78. package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +0 -2
  79. package/dist/src/components/atoms/SectionButton/index.d.ts +0 -1
  80. package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +0 -3
  81. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +0 -3
  82. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +0 -37
  83. package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +0 -2
  84. package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +0 -4
  85. package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +0 -24
  86. package/dist/src/components/atoms/SelectInput/index.d.ts +0 -1
  87. package/dist/src/components/atoms/SidebarButton/SidebarButton.d.ts +0 -13
  88. package/dist/src/components/atoms/SidebarButton/SidebarButton.styles.d.ts +0 -9
  89. package/dist/src/components/atoms/SidebarButton/index.d.ts +0 -1
  90. package/dist/src/components/atoms/Switch/Switch.d.ts +0 -7
  91. package/dist/src/components/atoms/Switch/index.d.ts +0 -1
  92. package/dist/src/components/atoms/Tab/Tab.d.ts +0 -3
  93. package/dist/src/components/atoms/Tab/Tab.styles.d.ts +0 -6
  94. package/dist/src/components/atoms/Tab/Tab.types.d.ts +0 -10
  95. package/dist/src/components/atoms/Tab/index.d.ts +0 -1
  96. package/dist/src/components/atoms/TextButton/TextButton.d.ts +0 -4
  97. package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +0 -2
  98. package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +0 -6
  99. package/dist/src/components/atoms/TextButton/index.d.ts +0 -1
  100. package/dist/src/components/atoms/TextInput/TextInput.d.ts +0 -5
  101. package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +0 -12
  102. package/dist/src/components/atoms/TextInput/index.d.ts +0 -1
  103. package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +0 -3
  104. package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +0 -5
  105. package/dist/src/components/atoms/TextStaticInput/index.d.ts +0 -1
  106. package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.d.ts +0 -4
  107. package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +0 -30
  108. package/dist/src/components/atoms/ThresholdCircleProgress/index.d.ts +0 -1
  109. package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.d.ts +0 -4
  110. package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.types.d.ts +0 -22
  111. package/dist/src/components/atoms/ThresholdProgressBar/index.d.ts +0 -1
  112. package/dist/src/components/atoms/Toast/Toast.d.ts +0 -21
  113. package/dist/src/components/atoms/Toast/index.d.ts +0 -1
  114. package/dist/src/components/atoms/Tooltip/Tooltip.d.ts +0 -4
  115. package/dist/src/components/atoms/Tooltip/Tooltip.types.d.ts +0 -9
  116. package/dist/src/components/atoms/Tooltip/index.d.ts +0 -1
  117. package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +0 -18
  118. package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +0 -1
  119. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +0 -4
  120. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +0 -13
  121. package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +0 -1
  122. package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +0 -4
  123. package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +0 -35
  124. package/dist/src/components/atoms/UploadContainer/index.d.ts +0 -1
  125. package/dist/src/components/atoms/index.d.ts +0 -39
  126. package/dist/src/components/index.d.ts +0 -3
  127. package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +0 -3
  128. package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +0 -9
  129. package/dist/src/components/molecules/AlertModal/index.d.ts +0 -2
  130. package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +0 -11
  131. package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +0 -6
  132. package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +0 -7
  133. package/dist/src/components/molecules/CalendarSelector/index.d.ts +0 -1
  134. package/dist/src/components/molecules/DateInput/DateInput.d.ts +0 -13
  135. package/dist/src/components/molecules/DateInput/index.d.ts +0 -1
  136. package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +0 -3
  137. package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +0 -11
  138. package/dist/src/components/molecules/DialogModal/index.d.ts +0 -1
  139. package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +0 -3
  140. package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +0 -9
  141. package/dist/src/components/molecules/Dropdown/index.d.ts +0 -1
  142. package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +0 -4
  143. package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +0 -17
  144. package/dist/src/components/molecules/FileUpload/index.d.ts +0 -1
  145. package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +0 -4
  146. package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +0 -11
  147. package/dist/src/components/molecules/FloatingMenu/index.d.ts +0 -1
  148. package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +0 -7
  149. package/dist/src/components/molecules/IndexedStepper/index.d.ts +0 -1
  150. package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +0 -14
  151. package/dist/src/components/molecules/InformationContainer/index.d.ts +0 -1
  152. package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +0 -4
  153. package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +0 -5
  154. package/dist/src/components/molecules/SearchModal/index.d.ts +0 -1
  155. package/dist/src/components/molecules/Stepper/Stepper.d.ts +0 -3
  156. package/dist/src/components/molecules/Stepper/Stepper.styles.d.ts +0 -11
  157. package/dist/src/components/molecules/Stepper/Stepper.types.d.ts +0 -9
  158. package/dist/src/components/molecules/Stepper/index.d.ts +0 -1
  159. package/dist/src/components/molecules/Tabs/Tabs.d.ts +0 -20
  160. package/dist/src/components/molecules/Tabs/index.d.ts +0 -1
  161. package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +0 -12
  162. package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +0 -1
  163. package/dist/src/components/molecules/index.d.ts +0 -15
  164. package/dist/src/components/organisms/index.d.ts +0 -1
  165. package/dist/src/constants/countries.d.ts +0 -30
  166. package/dist/src/contexts/index.d.ts +0 -1
  167. package/dist/src/contexts/themeContext.d.ts +0 -3
  168. package/dist/src/hooks/index.d.ts +0 -1
  169. package/dist/src/hooks/useTheme.d.ts +0 -1
  170. package/dist/src/index.d.ts +0 -8
  171. package/dist/src/lab/Laboratory.d.ts +0 -2
  172. package/dist/src/lab/LaboratoryLayout.d.ts +0 -5
  173. package/dist/src/lab/index.lab.d.ts +0 -1
  174. package/dist/src/providers/ThemeProvider.d.ts +0 -7
  175. package/dist/src/providers/index.d.ts +0 -1
  176. package/dist/src/themes/default.d.ts +0 -2
  177. package/dist/src/themes/index.d.ts +0 -2
  178. package/dist/src/themes/types.d.ts +0 -6
  179. package/dist/src/types/baseModalProps.d.ts +0 -4
  180. package/dist/src/types/display.d.ts +0 -2
  181. package/dist/src/types/fileInfo.d.ts +0 -2
  182. package/dist/src/types/i18n.d.ts +0 -1
  183. package/dist/src/types/index.d.ts +0 -9
  184. package/dist/src/types/modal.d.ts +0 -34
  185. package/dist/src/types/modalType.d.ts +0 -1
  186. package/dist/src/types/navbarOption.d.ts +0 -7
  187. package/dist/src/types/sidebarOption.d.ts +0 -7
  188. package/dist/src/types/styleValues.d.ts +0 -4
  189. package/dist/src/types/toast.d.ts +0 -26
  190. package/dist/src/utils/dates.d.ts +0 -1
  191. package/dist/src/utils/files.d.ts +0 -8
  192. package/dist/src/utils/images.d.ts +0 -1
  193. package/dist/src/utils/index.d.ts +0 -7
  194. package/dist/src/utils/modal.d.ts +0 -13
  195. package/dist/src/utils/renderContentOptions.d.ts +0 -3
  196. package/dist/src/utils/strings.d.ts +0 -2
  197. package/dist/src/utils/toast.d.ts +0 -15
  198. package/dist/vite.config.d.ts +0 -2
@@ -1 +0,0 @@
1
- export { default as DialogModal } from './DialogModal';
@@ -1,3 +0,0 @@
1
- import { DropdownMenuProps } from "./Dropdown.types";
2
- declare const DropdownMenu: React.FC<DropdownMenuProps>;
3
- export default DropdownMenu;
@@ -1,9 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export { default as Dropdown } from "./Dropdown";
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { FileUploadProps } from "./FileUpload.types";
3
- declare const FileUpload: React.FC<FileUploadProps>;
4
- export default FileUpload;
@@ -1,17 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export { default as FileUpload } from './FileUpload';
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { FloatingMenuProps } from "./FloatingMenu.types";
3
- declare const FloatingMenu: React.FC<FloatingMenuProps>;
4
- export default FloatingMenu;
@@ -1,11 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export { default as FloatingMenu } from './FloatingMenu';
@@ -1,7 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default as IndexedStepper } from './IndexedStepper';
@@ -1,14 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default as InformationContainer } from './InformationContainer';
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import type { SearchModalProps } from "./SearchModal.types";
3
- declare const SearchModal: React.FC<SearchModalProps>;
4
- export default SearchModal;
@@ -1,5 +0,0 @@
1
- export interface SearchModalProps {
2
- isOpen: boolean;
3
- onClose: () => void;
4
- onSearch?: (searchTerm: string) => void;
5
- }
@@ -1 +0,0 @@
1
- export { default as SearchModal } from "./SearchModal";
@@ -1,3 +0,0 @@
1
- import type { StepperProps } from "./Stepper.types";
2
- declare const Stepper: React.FC<StepperProps>;
3
- export default Stepper;
@@ -1,11 +0,0 @@
1
- import { Color } from "../../../types/styleValues";
2
- interface StepperColorConfig {
3
- completedBgColor: string;
4
- focusBorderColor: string;
5
- pendingBorderColor: string;
6
- iconActiveColor: string;
7
- lineActiveColor: string;
8
- lineGradientFrom: string;
9
- }
10
- export declare const resolveStepperColors: (color: Color) => StepperColorConfig;
11
- export {};
@@ -1,9 +0,0 @@
1
- import { Color } from "../../../types/styleValues";
2
- export interface StepperProps {
3
- steps: {
4
- label: string;
5
- completed: boolean;
6
- }[];
7
- direction?: "horizontal" | "vertical";
8
- color?: Color;
9
- }
@@ -1 +0,0 @@
1
- export { default as Stepper } from "./Stepper";
@@ -1,20 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default as Tabs } from "./Tabs";
@@ -1,12 +0,0 @@
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
- futureDates?: boolean;
9
- pastDates?: boolean;
10
- showTimeSelector?: boolean;
11
- };
12
- export default function UncontrolledDateInput({ currentDate, onDateChange, label, placeholder, error, translatedKey, showTimeSelector, futureDates, pastDates, }: UncontrolledDateInputProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export { default as UncontrolledDateInput } from './UncontrolledDateInput';
@@ -1,15 +0,0 @@
1
- export * from './AlertModal';
2
- export * from './CalendarSelector';
3
- export * from './CalendarSelector';
4
- export * from './CalendarSelector';
5
- export * from './DateInput';
6
- export * from './DialogModal';
7
- export * from './Dropdown';
8
- export * from './FileUpload';
9
- export * from './FloatingMenu';
10
- export * from './IndexedStepper';
11
- export * from './InformationContainer';
12
- export * from './SearchModal';
13
- export * from './Stepper';
14
- export * from './Tabs';
15
- export * from './UncontrolledDateInput';
@@ -1 +0,0 @@
1
- export declare const Organism = "Alejo";
@@ -1,30 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export * from './themeContext';
@@ -1,3 +0,0 @@
1
- import { LawgicTheme } from "../themes";
2
- declare const ThemeContext: import("react").Context<LawgicTheme>;
3
- export default ThemeContext;
@@ -1 +0,0 @@
1
- export * from './useTheme';
@@ -1 +0,0 @@
1
- export declare const useTheme: () => import("..").LawgicTheme;
@@ -1,8 +0,0 @@
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 "./hooks/index";
7
- export * from "./contexts/index";
8
- export * from "./themes/index";
@@ -1,2 +0,0 @@
1
- declare const Laboratory: () => import("react/jsx-runtime").JSX.Element;
2
- export default Laboratory;
@@ -1,5 +0,0 @@
1
- import '../index.css';
2
- declare const LaboratoryLayout: ({ children }: {
3
- children: React.ReactNode;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default LaboratoryLayout;
@@ -1 +0,0 @@
1
- import "../index.css";
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- import { LawgicTheme } from "../themes";
3
- export interface ThemeProviderProps {
4
- theme?: Partial<LawgicTheme>;
5
- children: React.ReactNode;
6
- }
7
- export declare const ThemeProvider: React.FC<ThemeProviderProps>;
@@ -1 +0,0 @@
1
- export * from "./ThemeProvider";
@@ -1,2 +0,0 @@
1
- import { LawgicTheme } from "./types";
2
- export declare const defaultTheme: LawgicTheme;
@@ -1,2 +0,0 @@
1
- export * from "./default";
2
- export * from "./types";
@@ -1,6 +0,0 @@
1
- import { TFunction } from "../types";
2
- import { Color } from "../types/styleValues";
3
- export interface LawgicTheme {
4
- defaultColorScheme: Color;
5
- t: TFunction;
6
- }
@@ -1,4 +0,0 @@
1
- export interface BaseModalProps {
2
- open: boolean;
3
- onClose: () => void;
4
- }
@@ -1,2 +0,0 @@
1
- type Display = 'mobile' | 'desktop';
2
- export default Display;
@@ -1,2 +0,0 @@
1
- import { FileStructure } from "legal-cycle-api-types";
2
- export type FileInfo = Omit<FileStructure, 'uploaded_by' | '_id' | 'uploaded_by' | 'created_at' | 'updated_at'>;
@@ -1 +0,0 @@
1
- export type TFunction = (key: string, options?: Record<string, unknown>) => string;
@@ -1,9 +0,0 @@
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';
@@ -1,34 +0,0 @@
1
- import { ReactElement } from "react";
2
- import { CenterModalProps } from "../components/atoms/CenterModal/CenterModal.types";
3
- import { AlertModalProps } from "../components/molecules";
4
- import { DialogModalProps } from "../components/molecules/DialogModal/DialogModal.types";
5
- import { ModalType } from "./modalType";
6
- export interface ModalProps {
7
- open: boolean;
8
- onClose: () => void;
9
- showCloseButton?: boolean;
10
- }
11
- export interface ModalOptionsBase {
12
- id?: string;
13
- onClose?: () => void;
14
- }
15
- export interface AlertModalOptions extends ModalOptionsBase {
16
- type: "alert";
17
- props: Omit<AlertModalProps, "open" | "onClose">;
18
- }
19
- export interface CenterModalOptions extends ModalOptionsBase {
20
- type: "center";
21
- props: Omit<CenterModalProps, "open" | "onClose">;
22
- }
23
- export interface DialogModalOptions extends ModalOptionsBase {
24
- type: "dialog";
25
- props: Omit<DialogModalProps, "open" | "onClose">;
26
- }
27
- export type ModalOptions = AlertModalOptions | CenterModalOptions | DialogModalOptions;
28
- export interface ModalState extends Omit<ModalOptionsBase, "id"> {
29
- id: string;
30
- open: boolean;
31
- type: ModalType;
32
- props?: AlertModalProps | CenterModalProps | DialogModalProps | Record<string, any>;
33
- component?: (open: boolean, onClose: () => void) => ReactElement;
34
- }
@@ -1 +0,0 @@
1
- export type ModalType = 'center' | 'alert' | 'dialog' | 'custom';
@@ -1,7 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
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';
@@ -1,26 +0,0 @@
1
- export type ToastContent = React.ReactNode;
2
- export type ToastPosition = "top-left" | "top-right" | "top-center" | "bottom-left" | "bottom-right" | "bottom-center";
3
- export interface ToastOptions {
4
- duration?: number;
5
- position?: ToastPosition;
6
- }
7
- export type ToastType = "success" | "error" | "warning" | "info" | "loading";
8
- export interface ToastMethods {
9
- success: (content: ToastContent, options?: ToastOptions) => void;
10
- error: (content: ToastContent, options?: ToastOptions) => void;
11
- warning: (content: ToastContent, options?: ToastOptions) => void;
12
- info: (content: ToastContent, options?: ToastOptions) => void;
13
- loading: (messages: {
14
- loading: ToastContent;
15
- success: ToastContent;
16
- error: ToastContent;
17
- }, options?: ToastOptions) => {
18
- resolve: () => void;
19
- reject: () => void;
20
- };
21
- async: (promise: Promise<unknown>, messages: {
22
- loading: ToastContent;
23
- success: ToastContent;
24
- error: ToastContent;
25
- }, options?: ToastOptions) => void;
26
- }
@@ -1 +0,0 @@
1
- export declare const formatLocalizedDate: (date: Date | string, dateFormat?: string, language?: "es" | "en") => string;
@@ -1,8 +0,0 @@
1
- export declare const toBase64: (file: File) => Promise<string>;
2
- /**
3
- * Convierte un valor en bytes a la unidad de medida especificada
4
- * @param bytes Número de bytes a convertir
5
- * @param measureSize Unidad de medida deseada ('b', 'kb', 'mb', 'gb', 'tb', 'pb')
6
- * @returns Cadena formateada con el valor convertido y la unidad
7
- */
8
- export declare function translateBytes(bytes: number, measureSize: "b" | "kb" | "mb" | "gb" | "tb" | "pb"): string;
@@ -1 +0,0 @@
1
- export declare const getImageUrl: (imageName: string) => string;
@@ -1,7 +0,0 @@
1
- export * from './dates';
2
- export * from './files';
3
- export * from './images';
4
- export * from './modal';
5
- export * from './renderContentOptions';
6
- export * from './strings';
7
- export * from './toast';
@@ -1,13 +0,0 @@
1
- import { ReactElement } from "react";
2
- import { ModalOptions } from "../types";
3
- declare global {
4
- interface Window {
5
- openModal?: (options: ModalOptions) => void;
6
- closeModal?: (id: string) => void;
7
- openCustomModal?: (component: (open: boolean, onClose: () => void) => ReactElement) => void;
8
- }
9
- }
10
- export declare const ModalContainer: () => import("react/jsx-runtime").JSX.Element;
11
- export declare function openModal(options: ModalOptions): void;
12
- export declare function openCustomModal(component: (open: boolean, onClose: () => void) => ReactElement): void;
13
- export declare function closeModal(id: string): void;
@@ -1,3 +0,0 @@
1
- import { ReactNode } from "react";
2
- import React from "react";
3
- export declare function renderTabContent<T extends string>(activeTab: T, contentMap: Record<T, ReactNode | React.FC>, contentProps?: Record<string, unknown>): ReactNode;
@@ -1,2 +0,0 @@
1
- export declare const capitalizeFirstLetter: (string: string) => string;
2
- export declare const stringToColor: (string: string) => string;
@@ -1,15 +0,0 @@
1
- import { ToastContent, ToastMethods, ToastOptions } from "../types/toast";
2
- export declare const showToastAsync: (promise: Promise<unknown>, messages: {
3
- loading: ToastContent;
4
- success: ToastContent;
5
- error: ToastContent;
6
- }, options?: ToastOptions) => void;
7
- export declare const showToastLoading: (messages: {
8
- loading: ToastContent;
9
- success: ToastContent;
10
- error: ToastContent;
11
- }, options?: ToastOptions) => {
12
- resolve: (value?: unknown) => void;
13
- reject: (reason?: unknown) => void;
14
- };
15
- export declare const toast: ToastMethods;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vite").UserConfig;
2
- export default _default;