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,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DesktopSectionButtonTypes } from "./desktop";
|
|
3
|
-
import { MobileSectionButtonTypes } from "./mobile";
|
|
4
|
-
interface DesktopSectionButtonProps extends DesktopSectionButtonTypes {
|
|
5
|
-
display: "desktop";
|
|
6
|
-
}
|
|
7
|
-
interface MobileSectionButtonProps extends MobileSectionButtonTypes {
|
|
8
|
-
display: "mobile";
|
|
9
|
-
}
|
|
10
|
-
type SectionButtonProps = DesktopSectionButtonProps | MobileSectionButtonProps;
|
|
11
|
-
declare const SectionButton: React.FC<SectionButtonProps>;
|
|
12
|
-
export default SectionButton;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
-
import { Color } from "../../../../types/styleValues";
|
|
3
|
-
export interface SectionButtonProps {
|
|
4
|
-
/**
|
|
5
|
-
* The label text of the button
|
|
6
|
-
*/
|
|
7
|
-
label: string;
|
|
8
|
-
/**
|
|
9
|
-
* URL to navigate to when the button is clicked (renders as an anchor tag)
|
|
10
|
-
*/
|
|
11
|
-
href?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Click event handler
|
|
14
|
-
*/
|
|
15
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Whether the button is in active state
|
|
18
|
-
*/
|
|
19
|
-
active?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Whether the button is disabled
|
|
22
|
-
*/
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Additional CSS classes to apply
|
|
26
|
-
*/
|
|
27
|
-
className?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Optional icon to display
|
|
30
|
-
*/
|
|
31
|
-
icon?: IconProp;
|
|
32
|
-
/**
|
|
33
|
-
* Color scheme for the button
|
|
34
|
-
*/
|
|
35
|
-
color?: Color;
|
|
36
|
-
}
|
|
37
|
-
export default SectionButtonProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SectionButton } from "./SectionButton";
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
-
import { Color } from "../../../../types/styleValues";
|
|
3
|
-
export interface SectionButtonProps {
|
|
4
|
-
/**
|
|
5
|
-
* The label text of the button
|
|
6
|
-
*/
|
|
7
|
-
label: string;
|
|
8
|
-
/**
|
|
9
|
-
* URL to navigate to when the button is clicked (renders as an anchor tag)
|
|
10
|
-
*/
|
|
11
|
-
href?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Click event handler
|
|
14
|
-
*/
|
|
15
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Whether the button is in active state
|
|
18
|
-
*/
|
|
19
|
-
active?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Whether the button is disabled
|
|
22
|
-
*/
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Additional CSS classes to apply
|
|
26
|
-
*/
|
|
27
|
-
className?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Optional icon to display
|
|
30
|
-
*/
|
|
31
|
-
icon?: IconProp;
|
|
32
|
-
/**
|
|
33
|
-
* Color scheme for the button
|
|
34
|
-
*/
|
|
35
|
-
color?: Color;
|
|
36
|
-
}
|
|
37
|
-
export default SectionButtonProps;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from "react-hook-form";
|
|
2
|
-
import type { SelectInputProps } from "./SelectInput.types";
|
|
3
|
-
declare const SelectInput: <T extends FieldValues>({ options, name, control, label, placeholder, className, input, }: SelectInputProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default SelectInput;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { Control, FieldValues, Path } from "react-hook-form";
|
|
2
|
-
export interface Option {
|
|
3
|
-
key: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
export interface SelectInputProps<T extends FieldValues> {
|
|
7
|
-
options: Option[];
|
|
8
|
-
name: Path<T>;
|
|
9
|
-
control: Control<T>;
|
|
10
|
-
label?: string;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
input?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface SelectInputFieldProps {
|
|
16
|
-
options: Option[];
|
|
17
|
-
value: Option | null;
|
|
18
|
-
onChange: (option: Option | null) => void;
|
|
19
|
-
label?: string;
|
|
20
|
-
placeholder?: string;
|
|
21
|
-
error?: string;
|
|
22
|
-
className?: string;
|
|
23
|
-
input?: boolean;
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SelectInput } from "./SelectInput";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
-
import { Color } from "../../../types/styleValues";
|
|
3
|
-
interface SidebarButtonProps {
|
|
4
|
-
active: boolean;
|
|
5
|
-
icon: IconProp;
|
|
6
|
-
label: string;
|
|
7
|
-
onClick: () => void;
|
|
8
|
-
expanded: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
color?: Color;
|
|
11
|
-
}
|
|
12
|
-
declare const SidebarButton: React.FC<SidebarButtonProps>;
|
|
13
|
-
export default SidebarButton;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Color } from "../../../types/styleValues";
|
|
2
|
-
interface SidebarButtonColorConfig {
|
|
3
|
-
activeTextColor: string;
|
|
4
|
-
activeBgColor: string;
|
|
5
|
-
hoverBgColor: string;
|
|
6
|
-
activeIconColor: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const resolveSidebarButtonColors: (color: Color) => SidebarButtonColorConfig;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SidebarButton } from './SidebarButton';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Switch } from "./Switch";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
-
export default interface TabProps {
|
|
3
|
-
href?: string;
|
|
4
|
-
label: string;
|
|
5
|
-
icon?: IconProp;
|
|
6
|
-
isSelected?: boolean;
|
|
7
|
-
direction?: 'row' | 'col';
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
variant?: 'default' | 'underline';
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Tab } from "./Tab";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TextButton } from './TextButton';
|
|
@@ -1,5 +0,0 @@
|
|
|
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, translateKey, ...props }: TextInputProps<T>) => React.ReactElement;
|
|
5
|
-
export default TextInput;
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
translateKey?: string;
|
|
8
|
-
control: Control<T>;
|
|
9
|
-
name: Path<T>;
|
|
10
|
-
leftSide?: React.ReactNode;
|
|
11
|
-
rightSide?: React.ReactNode;
|
|
12
|
-
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TextInput } from './TextInput';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TextStaticInput } from "./TextStaticInput";
|
package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export interface ColorThreshold {
|
|
2
|
-
threshold: number;
|
|
3
|
-
color: string;
|
|
4
|
-
label?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ThresholdCircleProgressProps {
|
|
7
|
-
progress?: number;
|
|
8
|
-
showPercentage?: boolean;
|
|
9
|
-
showPercentageLabel?: boolean;
|
|
10
|
-
percentageClassName?: string;
|
|
11
|
-
percentageLabelClassName?: string;
|
|
12
|
-
percentageLabel?: string;
|
|
13
|
-
label?: string;
|
|
14
|
-
labelClassName?: string;
|
|
15
|
-
className?: string;
|
|
16
|
-
size?: number;
|
|
17
|
-
strokeWidth?: number;
|
|
18
|
-
backgroundColor?: string;
|
|
19
|
-
animated?: boolean;
|
|
20
|
-
animationDuration?: string;
|
|
21
|
-
colorThresholds?: ColorThreshold[];
|
|
22
|
-
lowThreshold?: number;
|
|
23
|
-
mediumThreshold?: number;
|
|
24
|
-
lowColor?: string;
|
|
25
|
-
mediumColor?: string;
|
|
26
|
-
highColor?: string;
|
|
27
|
-
singleColor?: string;
|
|
28
|
-
clockwise?: boolean;
|
|
29
|
-
startAngle?: number;
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ThresholdCircleProgress } from "./ThresholdCircleProgress";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface ColorThreshold {
|
|
2
|
-
threshold: number;
|
|
3
|
-
color: string;
|
|
4
|
-
label?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ThresholdProgressBarProps {
|
|
7
|
-
progress: number;
|
|
8
|
-
showPercentage?: boolean;
|
|
9
|
-
percentageLabel?: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
height?: string;
|
|
12
|
-
backgroundColor?: string;
|
|
13
|
-
animated?: boolean;
|
|
14
|
-
animationDuration?: string;
|
|
15
|
-
colorThresholds?: ColorThreshold[];
|
|
16
|
-
lowThreshold?: number;
|
|
17
|
-
mediumThreshold?: number;
|
|
18
|
-
lowColor?: string;
|
|
19
|
-
mediumColor?: string;
|
|
20
|
-
highColor?: string;
|
|
21
|
-
singleColor?: string;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ThresholdProgressBar } from "./ThresholdProgressBar";
|
|
@@ -1,21 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Toast } from './Toast';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Tooltip } from "./Tooltip";
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
className?: string;
|
|
15
|
-
allowSearch?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare const UncontrolledSelector: React.FC<UncontrolledSelectorProps>;
|
|
18
|
-
export default UncontrolledSelector;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as UncontrolledSelector } from './UncontrolledSelector';
|
|
@@ -1,13 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as UncontrolledTextInput } from "./UncontrolledTextInput";
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
loading?: boolean;
|
|
33
|
-
loadingDuration?: number;
|
|
34
|
-
className?: string;
|
|
35
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as UploadContainer } from "./UploadContainer";
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export * from "./ActionButton/index";
|
|
2
|
-
export * from "./ActionButton/index";
|
|
3
|
-
export * from "./AsyncToast/index";
|
|
4
|
-
export * from "./Avatar/index";
|
|
5
|
-
export * from "./BoxContainer/index";
|
|
6
|
-
export * from "./Button/index";
|
|
7
|
-
export * from "./CenterModal/index";
|
|
8
|
-
export * from "./Checkbox/index";
|
|
9
|
-
export * from "./CountryInput/index";
|
|
10
|
-
export * from "./CountryLabel/index";
|
|
11
|
-
export * from "./CountrySelectInput/index";
|
|
12
|
-
export * from "./Divider/index";
|
|
13
|
-
export * from "./IconButton/index";
|
|
14
|
-
export * from "./ImageProfileInput/index";
|
|
15
|
-
export * from "./IndexedStep/index";
|
|
16
|
-
export * from "./InfoCard/index";
|
|
17
|
-
export * from "./InformationDisclaimer/index";
|
|
18
|
-
export * from "./LoadingSpinner/index";
|
|
19
|
-
export * from "./PasswordInput/index";
|
|
20
|
-
export * from "./PhoneInput/index";
|
|
21
|
-
export * from "./ProgressBar/index";
|
|
22
|
-
export * from "./SearchBar/index";
|
|
23
|
-
export * from "./SectionButton/index";
|
|
24
|
-
export * from "./SelectInput/index";
|
|
25
|
-
export * from "./SidebarButton/index";
|
|
26
|
-
export * from "./Tab/index";
|
|
27
|
-
export * from "./TextButton/index";
|
|
28
|
-
export * from "./TextInput/index";
|
|
29
|
-
export * from "./TextStaticInput/index";
|
|
30
|
-
export * from "./Toast/index";
|
|
31
|
-
export * from "./UncontrolledSelector/index";
|
|
32
|
-
export * from "./UncontrolledTextInput/index";
|
|
33
|
-
export * from "./UploadContainer/index";
|
|
34
|
-
export * from "./Tooltip/index";
|
|
35
|
-
export * from "./LoadingProgress/index";
|
|
36
|
-
export * from "./ThresholdCircleProgress/index";
|
|
37
|
-
export * from "./ThresholdProgressBar/index";
|
|
38
|
-
export * from "./CircleProgress/index";
|
|
39
|
-
export * from "./Switch/index";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type CalendarSelectorProps = {
|
|
3
|
-
date: Date;
|
|
4
|
-
onDateChange: (date: Date) => void;
|
|
5
|
-
showTimeSelector?: boolean;
|
|
6
|
-
maxDate?: Date;
|
|
7
|
-
futureDates?: boolean;
|
|
8
|
-
pastDates?: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare const CalendarSelector: React.FC<CalendarSelectorProps>;
|
|
11
|
-
export default CalendarSelector;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CalendarSelector } from './CalendarSelector';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
|
-
export type DateInputProps<T extends FieldValues = FieldValues> = {
|
|
3
|
-
control: Control<T>;
|
|
4
|
-
name: Path<T>;
|
|
5
|
-
label?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
showTimeSelector?: boolean;
|
|
8
|
-
translateKey?: string;
|
|
9
|
-
futureDates?: boolean;
|
|
10
|
-
pastDates?: boolean;
|
|
11
|
-
};
|
|
12
|
-
declare const DateInput: <T extends FieldValues = FieldValues>({ control, name, showTimeSelector, label, translateKey, placeholder, futureDates, pastDates }: DateInputProps<T>) => React.ReactElement;
|
|
13
|
-
export default DateInput;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as DateInput } from './DateInput';
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
showCloseButton?: boolean;
|
|
11
|
-
}
|