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.
- package/dist/_virtual/index2.js +3 -2
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +5 -3
- package/dist/_virtual/index5.js +2 -5
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/package.json +1 -1
- package/dist/src/Root.d.ts +0 -2
- package/dist/src/app.d.ts +0 -1
- package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +0 -11
- package/dist/src/components/atoms/ActionButton/index.d.ts +0 -1
- package/dist/src/components/atoms/AsyncToast/index.d.ts +0 -11
- package/dist/src/components/atoms/Avatar/Avatar.d.ts +0 -11
- package/dist/src/components/atoms/Avatar/index.d.ts +0 -1
- package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +0 -4
- package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +0 -6
- package/dist/src/components/atoms/BoxContainer/index.d.ts +0 -1
- package/dist/src/components/atoms/Button/Button.d.ts +0 -4
- package/dist/src/components/atoms/Button/Button.styles.d.ts +0 -26
- package/dist/src/components/atoms/Button/Button.types.d.ts +0 -12
- package/dist/src/components/atoms/Button/index.d.ts +0 -1
- package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +0 -4
- package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +0 -6
- package/dist/src/components/atoms/CenterModal/index.d.ts +0 -1
- package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +0 -12
- package/dist/src/components/atoms/Checkbox/index.d.ts +0 -1
- package/dist/src/components/atoms/CircleProgress/CircleProgress.d.ts +0 -22
- package/dist/src/components/atoms/CircleProgress/index.d.ts +0 -1
- package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +0 -4
- package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +0 -37
- package/dist/src/components/atoms/CountryInput/index.d.ts +0 -1
- package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +0 -6
- package/dist/src/components/atoms/CountryLabel/index.d.ts +0 -1
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +0 -4
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +0 -36
- package/dist/src/components/atoms/CountrySelectInput/index.d.ts +0 -1
- package/dist/src/components/atoms/Divider/Divider.d.ts +0 -7
- package/dist/src/components/atoms/Divider/index.d.ts +0 -1
- package/dist/src/components/atoms/FloatingCard/FloatingCard.d.ts +0 -4
- package/dist/src/components/atoms/FloatingCard/FloatingCard.types.d.ts +0 -9
- package/dist/src/components/atoms/FloatingCard/index.d.ts +0 -1
- package/dist/src/components/atoms/IconButton/IconButton.d.ts +0 -4
- package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +0 -10
- package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +0 -11
- package/dist/src/components/atoms/IconButton/index.d.ts +0 -1
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +0 -4
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +0 -12
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +0 -9
- package/dist/src/components/atoms/ImageProfileInput/index.d.ts +0 -2
- package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +0 -9
- package/dist/src/components/atoms/IndexedStep/index.d.ts +0 -1
- package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +0 -3
- package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +0 -6
- package/dist/src/components/atoms/InfoCard/index.d.ts +0 -1
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.d.ts +0 -4
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +0 -3
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +0 -10
- package/dist/src/components/atoms/InformationDisclaimer/index.d.ts +0 -1
- package/dist/src/components/atoms/LoadingProgress/LoadingProgress.d.ts +0 -12
- package/dist/src/components/atoms/LoadingProgress/index.d.ts +0 -1
- package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -8
- package/dist/src/components/atoms/LoadingSpinner/index.d.ts +0 -1
- package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +0 -5
- package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +0 -11
- package/dist/src/components/atoms/PasswordInput/index.d.ts +0 -1
- package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +0 -5
- package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +0 -12
- package/dist/src/components/atoms/PhoneInput/index.d.ts +0 -1
- package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +0 -3
- package/dist/src/components/atoms/ProgressBar/ProgressBar.styles.d.ts +0 -7
- package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +0 -6
- package/dist/src/components/atoms/ProgressBar/index.d.ts +0 -1
- package/dist/src/components/atoms/SearchBar/index.d.ts +0 -2
- package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +0 -12
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +0 -3
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +0 -2
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +0 -37
- package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +0 -2
- package/dist/src/components/atoms/SectionButton/index.d.ts +0 -1
- package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +0 -3
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +0 -3
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +0 -37
- package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +0 -2
- package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +0 -4
- package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +0 -24
- package/dist/src/components/atoms/SelectInput/index.d.ts +0 -1
- package/dist/src/components/atoms/SidebarButton/SidebarButton.d.ts +0 -13
- package/dist/src/components/atoms/SidebarButton/SidebarButton.styles.d.ts +0 -9
- package/dist/src/components/atoms/SidebarButton/index.d.ts +0 -1
- package/dist/src/components/atoms/Switch/Switch.d.ts +0 -7
- package/dist/src/components/atoms/Switch/index.d.ts +0 -1
- package/dist/src/components/atoms/Tab/Tab.d.ts +0 -3
- package/dist/src/components/atoms/Tab/Tab.styles.d.ts +0 -6
- package/dist/src/components/atoms/Tab/Tab.types.d.ts +0 -10
- package/dist/src/components/atoms/Tab/index.d.ts +0 -1
- package/dist/src/components/atoms/TextButton/TextButton.d.ts +0 -4
- package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +0 -2
- package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +0 -6
- package/dist/src/components/atoms/TextButton/index.d.ts +0 -1
- package/dist/src/components/atoms/TextInput/TextInput.d.ts +0 -5
- package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +0 -12
- package/dist/src/components/atoms/TextInput/index.d.ts +0 -1
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +0 -3
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +0 -5
- package/dist/src/components/atoms/TextStaticInput/index.d.ts +0 -1
- package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.d.ts +0 -4
- package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +0 -30
- package/dist/src/components/atoms/ThresholdCircleProgress/index.d.ts +0 -1
- package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.d.ts +0 -4
- package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.types.d.ts +0 -22
- package/dist/src/components/atoms/ThresholdProgressBar/index.d.ts +0 -1
- package/dist/src/components/atoms/Toast/Toast.d.ts +0 -21
- package/dist/src/components/atoms/Toast/index.d.ts +0 -1
- package/dist/src/components/atoms/Tooltip/Tooltip.d.ts +0 -4
- package/dist/src/components/atoms/Tooltip/Tooltip.types.d.ts +0 -9
- package/dist/src/components/atoms/Tooltip/index.d.ts +0 -1
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +0 -18
- package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +0 -1
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +0 -4
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +0 -13
- package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +0 -1
- package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +0 -4
- package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +0 -35
- package/dist/src/components/atoms/UploadContainer/index.d.ts +0 -1
- package/dist/src/components/atoms/index.d.ts +0 -39
- package/dist/src/components/index.d.ts +0 -3
- package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +0 -3
- package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +0 -9
- package/dist/src/components/molecules/AlertModal/index.d.ts +0 -2
- package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +0 -11
- package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +0 -6
- package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +0 -7
- package/dist/src/components/molecules/CalendarSelector/index.d.ts +0 -1
- package/dist/src/components/molecules/DateInput/DateInput.d.ts +0 -13
- package/dist/src/components/molecules/DateInput/index.d.ts +0 -1
- package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +0 -3
- package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +0 -11
- package/dist/src/components/molecules/DialogModal/index.d.ts +0 -1
- package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +0 -3
- package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +0 -9
- package/dist/src/components/molecules/Dropdown/index.d.ts +0 -1
- package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +0 -4
- package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +0 -17
- package/dist/src/components/molecules/FileUpload/index.d.ts +0 -1
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +0 -4
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +0 -11
- package/dist/src/components/molecules/FloatingMenu/index.d.ts +0 -1
- package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +0 -7
- package/dist/src/components/molecules/IndexedStepper/index.d.ts +0 -1
- package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +0 -14
- package/dist/src/components/molecules/InformationContainer/index.d.ts +0 -1
- package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +0 -4
- package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +0 -5
- package/dist/src/components/molecules/SearchModal/index.d.ts +0 -1
- package/dist/src/components/molecules/Stepper/Stepper.d.ts +0 -3
- package/dist/src/components/molecules/Stepper/Stepper.styles.d.ts +0 -11
- package/dist/src/components/molecules/Stepper/Stepper.types.d.ts +0 -9
- package/dist/src/components/molecules/Stepper/index.d.ts +0 -1
- package/dist/src/components/molecules/Tabs/Tabs.d.ts +0 -20
- package/dist/src/components/molecules/Tabs/index.d.ts +0 -1
- package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +0 -12
- package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +0 -1
- package/dist/src/components/molecules/index.d.ts +0 -15
- package/dist/src/components/organisms/index.d.ts +0 -1
- package/dist/src/constants/countries.d.ts +0 -30
- package/dist/src/contexts/index.d.ts +0 -1
- package/dist/src/contexts/themeContext.d.ts +0 -3
- package/dist/src/hooks/index.d.ts +0 -1
- package/dist/src/hooks/useTheme.d.ts +0 -1
- package/dist/src/index.d.ts +0 -8
- package/dist/src/lab/Laboratory.d.ts +0 -2
- package/dist/src/lab/LaboratoryLayout.d.ts +0 -5
- package/dist/src/lab/index.lab.d.ts +0 -1
- package/dist/src/providers/ThemeProvider.d.ts +0 -7
- package/dist/src/providers/index.d.ts +0 -1
- package/dist/src/themes/default.d.ts +0 -2
- package/dist/src/themes/index.d.ts +0 -2
- package/dist/src/themes/types.d.ts +0 -6
- package/dist/src/types/baseModalProps.d.ts +0 -4
- package/dist/src/types/display.d.ts +0 -2
- package/dist/src/types/fileInfo.d.ts +0 -2
- package/dist/src/types/i18n.d.ts +0 -1
- package/dist/src/types/index.d.ts +0 -9
- package/dist/src/types/modal.d.ts +0 -34
- package/dist/src/types/modalType.d.ts +0 -1
- package/dist/src/types/navbarOption.d.ts +0 -7
- package/dist/src/types/sidebarOption.d.ts +0 -7
- package/dist/src/types/styleValues.d.ts +0 -4
- package/dist/src/types/toast.d.ts +0 -26
- package/dist/src/utils/dates.d.ts +0 -1
- package/dist/src/utils/files.d.ts +0 -8
- package/dist/src/utils/images.d.ts +0 -1
- package/dist/src/utils/index.d.ts +0 -7
- package/dist/src/utils/modal.d.ts +0 -13
- package/dist/src/utils/renderContentOptions.d.ts +0 -3
- package/dist/src/utils/strings.d.ts +0 -2
- package/dist/src/utils/toast.d.ts +0 -15
- package/dist/vite.config.d.ts +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as DialogModal } from './DialogModal';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Dropdown } from "./Dropdown";
|
|
@@ -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,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 +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 +0,0 @@
|
|
|
1
|
-
export { default as SearchModal } from "./SearchModal";
|
|
@@ -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 +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 +0,0 @@
|
|
|
1
|
-
export * from './useTheme';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useTheme: () => import("..").LawgicTheme;
|
package/dist/src/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../index.css";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./ThemeProvider";
|
package/dist/src/types/i18n.d.ts
DELETED
|
@@ -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,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,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,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;
|
package/dist/vite.config.d.ts
DELETED