lawgic-dev-kit 0.21.6 → 0.22.2
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/README.md +54 -54
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/atoms/Checkbox/Checkbox.js +43 -30
- package/dist/components/atoms/SelectInput/SelectInput.d.ts +1 -1
- package/dist/components/atoms/SelectInput/SelectInput.js +125 -140
- package/dist/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
- package/dist/components/atoms/StepIndicator/StepIndicator.d.ts +5 -0
- package/dist/components/atoms/StepIndicator/StepIndicator.js +58 -0
- package/dist/components/atoms/StepIndicator/index.d.ts +1 -0
- package/dist/components/atoms/TextInput/TextInput.js +33 -33
- package/dist/components/atoms/Toast/Toast.d.ts +2 -3
- package/dist/components/atoms/Toast/Toast.js +46 -53
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -0
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +102 -88
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +20 -26
- package/dist/components/atoms/UploadContainer/UploadContainer.js +4 -4
- package/dist/components/atoms/index.d.ts +1 -1
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +8 -8
- package/dist/components/molecules/EmptyState/EmptyState.d.ts +9 -0
- package/dist/components/molecules/EmptyState/EmptyState.js +16 -0
- package/dist/components/molecules/EmptyState/index.d.ts +1 -0
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +23 -0
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +190 -0
- package/dist/components/molecules/MultiSelectDropdown/index.d.ts +1 -0
- package/dist/components/molecules/Stepper/Stepper.d.ts +1 -1
- package/dist/components/molecules/Stepper/Stepper.js +78 -231
- package/dist/components/molecules/Stepper/Stepper.styles.d.ts +7 -3
- package/dist/components/molecules/Stepper/Stepper.styles.js +23 -15
- package/dist/components/molecules/Tooltip/Tooltip.d.ts +20 -0
- package/dist/components/molecules/Tooltip/Tooltip.js +41 -0
- package/dist/components/molecules/index.d.ts +3 -0
- package/dist/index.js +71 -65
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +80 -73
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +396 -712
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +33 -81
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +7 -2
- package/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +14 -49
- package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +32 -12
- package/dist/src/Root.d.ts +2 -0
- package/dist/src/app.d.ts +1 -0
- package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +11 -0
- package/dist/src/components/atoms/ActionButton/index.d.ts +1 -0
- package/dist/src/components/atoms/AsyncToast/index.d.ts +11 -0
- package/dist/src/components/atoms/Avatar/Avatar.d.ts +11 -0
- package/dist/src/components/atoms/Avatar/index.d.ts +1 -0
- package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +4 -0
- package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +6 -0
- package/dist/src/components/atoms/BoxContainer/index.d.ts +1 -0
- package/dist/src/components/atoms/Button/Button.d.ts +4 -0
- package/dist/src/components/atoms/Button/Button.styles.d.ts +26 -0
- package/dist/src/components/atoms/Button/Button.types.d.ts +12 -0
- package/dist/src/components/atoms/Button/index.d.ts +1 -0
- package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +4 -0
- package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +6 -0
- package/dist/src/components/atoms/CenterModal/index.d.ts +1 -0
- package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +13 -0
- package/dist/src/components/atoms/Checkbox/index.d.ts +1 -0
- package/dist/src/components/atoms/CircleProgress/CircleProgress.d.ts +22 -0
- package/dist/src/components/atoms/CircleProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/ClickAwayListener/ClickAwayListener.d.ts +4 -0
- package/dist/src/components/atoms/ClickAwayListener/ClickAwayListener.types.d.ts +7 -0
- package/dist/src/components/atoms/ClickAwayListener/index.d.ts +1 -0
- package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +4 -0
- package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +37 -0
- package/dist/src/components/atoms/CountryInput/index.d.ts +1 -0
- package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +6 -0
- package/dist/src/components/atoms/CountryLabel/index.d.ts +1 -0
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +4 -0
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +36 -0
- package/dist/src/components/atoms/CountrySelectInput/index.d.ts +1 -0
- package/dist/src/components/atoms/Divider/Divider.d.ts +7 -0
- package/dist/src/components/atoms/Divider/index.d.ts +1 -0
- package/dist/src/components/atoms/FilterPill/FilterPill.d.ts +8 -0
- package/dist/src/components/atoms/FilterPill/index.d.ts +1 -0
- package/dist/src/components/atoms/FloatingCard/FloatingCard.d.ts +4 -0
- package/dist/{components/atoms/Tooltip/Tooltip.types.d.ts → src/components/atoms/FloatingCard/FloatingCard.types.d.ts} +3 -3
- package/dist/src/components/atoms/FloatingCard/index.d.ts +1 -0
- package/dist/src/components/atoms/IconButton/IconButton.d.ts +4 -0
- package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +10 -0
- package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +11 -0
- package/dist/src/components/atoms/IconButton/index.d.ts +1 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +4 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +12 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +9 -0
- package/dist/src/components/atoms/ImageProfileInput/index.d.ts +2 -0
- package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +9 -0
- package/dist/src/components/atoms/IndexedStep/index.d.ts +1 -0
- package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +3 -0
- package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +6 -0
- package/dist/src/components/atoms/InfoCard/index.d.ts +1 -0
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.d.ts +4 -0
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +3 -0
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +10 -0
- package/dist/src/components/atoms/InformationDisclaimer/index.d.ts +1 -0
- package/dist/src/components/atoms/LoadingProgress/LoadingProgress.d.ts +13 -0
- package/dist/src/components/atoms/LoadingProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +8 -0
- package/dist/src/components/atoms/LoadingSpinner/index.d.ts +1 -0
- package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +5 -0
- package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +11 -0
- package/dist/src/components/atoms/PasswordInput/index.d.ts +1 -0
- package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +5 -0
- package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +12 -0
- package/dist/src/components/atoms/PhoneInput/index.d.ts +1 -0
- package/dist/src/components/atoms/Pill/Pill.d.ts +8 -0
- package/dist/src/components/atoms/Pill/index.d.ts +1 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.styles.d.ts +7 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +6 -0
- package/dist/src/components/atoms/ProgressBar/index.d.ts +1 -0
- package/dist/src/components/atoms/SearchBar/index.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +12 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +37 -0
- package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/index.d.ts +1 -0
- package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +37 -0
- package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +2 -0
- package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +1 -1
- package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
- package/dist/src/components/atoms/SelectInput/index.d.ts +1 -0
- package/dist/src/components/atoms/SidebarButton/SidebarButton.d.ts +13 -0
- package/dist/src/components/atoms/SidebarButton/SidebarButton.styles.d.ts +9 -0
- package/dist/src/components/atoms/SidebarButton/index.d.ts +1 -0
- package/dist/src/components/atoms/StepIndicator/StepIndicator.d.ts +5 -0
- package/dist/src/components/atoms/StepIndicator/index.d.ts +1 -0
- package/dist/src/components/atoms/Switch/Switch.d.ts +7 -0
- package/dist/src/components/atoms/Switch/index.d.ts +1 -0
- package/dist/src/components/atoms/Tab/Tab.d.ts +3 -0
- package/dist/src/components/atoms/Tab/Tab.styles.d.ts +6 -0
- package/dist/src/components/atoms/Tab/Tab.types.d.ts +11 -0
- package/dist/src/components/atoms/Tab/index.d.ts +1 -0
- package/dist/src/components/atoms/TextButton/TextButton.d.ts +4 -0
- package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +2 -0
- package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +6 -0
- package/dist/src/components/atoms/TextButton/index.d.ts +1 -0
- package/dist/src/components/atoms/TextInput/TextInput.d.ts +5 -0
- package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +13 -0
- package/dist/src/components/atoms/TextInput/index.d.ts +1 -0
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +3 -0
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +5 -0
- package/dist/src/components/atoms/TextStaticInput/index.d.ts +1 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.d.ts +4 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +30 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.d.ts +4 -0
- package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.types.d.ts +22 -0
- package/dist/src/components/atoms/ThresholdProgressBar/index.d.ts +1 -0
- package/dist/src/components/atoms/Toast/Toast.d.ts +20 -0
- package/dist/src/components/atoms/Toast/index.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +4 -0
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +14 -0
- package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +1 -0
- package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +4 -0
- package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +37 -0
- package/dist/src/components/atoms/UploadContainer/index.d.ts +1 -0
- package/dist/src/components/atoms/index.d.ts +42 -0
- package/dist/src/components/index.d.ts +3 -0
- package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +3 -0
- package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +9 -0
- package/dist/src/components/molecules/AlertModal/index.d.ts +2 -0
- package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.d.ts +3 -0
- package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.types.d.ts +28 -0
- package/dist/src/components/molecules/AutocompleteInput/index.d.ts +1 -0
- package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +14 -0
- package/dist/src/components/molecules/CalendarSelector/CalendarSelector.styles.d.ts +36 -0
- package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +15 -0
- package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +7 -0
- package/dist/src/components/molecules/CalendarSelector/index.d.ts +1 -0
- package/dist/src/components/molecules/DateInput/DateInput.d.ts +14 -0
- package/dist/src/components/molecules/DateInput/index.d.ts +1 -0
- package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +3 -0
- package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +11 -0
- package/dist/src/components/molecules/DialogModal/index.d.ts +1 -0
- package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +3 -0
- package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +9 -0
- package/dist/src/components/molecules/Dropdown/index.d.ts +1 -0
- package/dist/src/components/molecules/EmptyState/EmptyState.d.ts +9 -0
- package/dist/src/components/molecules/EmptyState/index.d.ts +1 -0
- package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +4 -0
- package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +17 -0
- package/dist/src/components/molecules/FileUpload/index.d.ts +1 -0
- package/dist/src/components/molecules/FiltersMenu/FiltersMenu.d.ts +13 -0
- package/dist/src/components/molecules/FiltersMenu/index.d.ts +1 -0
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +4 -0
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +13 -0
- package/dist/src/components/molecules/FloatingMenu/index.d.ts +1 -0
- package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +7 -0
- package/dist/src/components/molecules/IndexedStepper/index.d.ts +1 -0
- package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +14 -0
- package/dist/src/components/molecules/InformationContainer/index.d.ts +1 -0
- package/dist/src/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +23 -0
- package/dist/src/components/molecules/MultiSelectDropdown/index.d.ts +1 -0
- package/dist/src/components/molecules/PillsContainer/PillsContainer.d.ts +9 -0
- package/dist/src/components/molecules/PillsContainer/index.d.ts +1 -0
- package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +4 -0
- package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +5 -0
- package/dist/src/components/molecules/SearchModal/index.d.ts +1 -0
- package/dist/src/components/molecules/SideModal/SideModal.d.ts +4 -0
- package/dist/src/components/molecules/SideModal/SideModal.types.d.ts +11 -0
- package/dist/src/components/molecules/SideModal/index.d.ts +1 -0
- package/dist/src/components/molecules/Stepper/Stepper.d.ts +3 -0
- package/dist/src/components/molecules/Stepper/Stepper.styles.d.ts +15 -0
- package/dist/src/components/molecules/Stepper/index.d.ts +1 -0
- package/dist/src/components/molecules/Tabs/Tabs.d.ts +21 -0
- package/dist/src/components/molecules/Tabs/index.d.ts +1 -0
- package/dist/src/components/molecules/Tooltip/Tooltip.d.ts +20 -0
- package/dist/src/components/molecules/Tooltip/index.d.ts +1 -0
- package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +16 -0
- package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
- package/dist/src/components/molecules/index.d.ts +22 -0
- package/dist/src/components/organisms/index.d.ts +1 -0
- package/dist/src/constants/countries.d.ts +30 -0
- package/dist/src/contexts/index.d.ts +1 -0
- package/dist/src/contexts/themeContext.d.ts +3 -0
- package/dist/src/hooks/index.d.ts +2 -0
- package/dist/src/hooks/useFilterToggler.d.ts +5 -0
- package/dist/src/hooks/useTheme.d.ts +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/lab/Laboratory.d.ts +2 -0
- package/dist/src/lab/LaboratoryLayout.d.ts +5 -0
- package/dist/src/lab/index.lab.d.ts +1 -0
- package/dist/src/providers/ThemeProvider.d.ts +7 -0
- package/dist/src/providers/index.d.ts +1 -0
- package/dist/src/themes/default.d.ts +2 -0
- package/dist/src/themes/index.d.ts +2 -0
- package/dist/src/themes/types.d.ts +6 -0
- package/dist/src/types/baseModalProps.d.ts +4 -0
- package/dist/src/types/cycles.d.ts +103 -0
- package/dist/src/types/display.d.ts +2 -0
- package/dist/src/types/fileInfo.d.ts +2 -0
- package/dist/src/types/filters.d.ts +22 -0
- package/dist/src/types/i18n.d.ts +1 -0
- package/dist/src/types/index.d.ts +10 -0
- package/dist/src/types/modal.d.ts +34 -0
- package/dist/src/types/modalType.d.ts +1 -0
- package/dist/src/types/navbarOption.d.ts +7 -0
- package/dist/src/types/sidebarOption.d.ts +7 -0
- package/dist/src/types/stepper.d.ts +23 -0
- package/dist/src/types/styleValues.d.ts +4 -0
- package/dist/src/types/toast.d.ts +29 -0
- package/dist/src/utils/cycles.d.ts +2 -0
- package/dist/src/utils/dates.d.ts +1 -0
- package/dist/src/utils/files.d.ts +8 -0
- package/dist/src/utils/images.d.ts +1 -0
- package/dist/src/utils/index.d.ts +7 -0
- package/dist/src/utils/modal.d.ts +13 -0
- package/dist/src/utils/renderContentOptions.d.ts +3 -0
- package/dist/src/utils/stepper.d.ts +2 -0
- package/dist/src/utils/strings.d.ts +2 -0
- package/dist/src/utils/toast.d.ts +15 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stepper.d.ts +23 -0
- package/dist/types/toast.d.ts +6 -3
- package/dist/utils/stepper.d.ts +2 -0
- package/dist/utils/toast.js +3 -3
- package/dist/vite-env.d.ts +1 -1
- package/dist/vite.config.d.ts +2 -0
- package/package.json +157 -157
- package/dist/components/atoms/Tooltip/Tooltip.d.ts +0 -4
- package/dist/components/atoms/Tooltip/Tooltip.js +0 -121
- package/dist/components/molecules/Stepper/Stepper.types.d.ts +0 -9
- /package/dist/components/{atoms → molecules}/Tooltip/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Stepper } from "./Stepper";
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
labelClassName?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const Tabs: ({ variant, color, tabs, activeTab, onTabChange, className, direction, showLabel, labelClassName, }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default Tabs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Tabs } from "./Tabs";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
3
|
+
type TooltipLocation = 'top' | 'bottom' | 'left' | 'right';
|
|
4
|
+
interface TooltipProps {
|
|
5
|
+
text: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
icon?: IconDefinition;
|
|
8
|
+
location?: TooltipLocation;
|
|
9
|
+
childClassName?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Smart Tooltip Component
|
|
13
|
+
* * Automatically detects if the children's text is truncated.
|
|
14
|
+
* The tooltip bubble only appears if the content overflows its container.
|
|
15
|
+
* * Usage Note:
|
|
16
|
+
* By default, it truncates based on the parent's width. To truncate earlier,
|
|
17
|
+
* pass a specific width class to `childClassName` (e.g., `max-w-[200px]`).
|
|
18
|
+
*/
|
|
19
|
+
declare const Tooltip: ({ text, children, icon, location, childClassName }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default Tooltip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Tooltip } from './Tooltip';
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
minDate?: Date;
|
|
12
|
+
maxDate?: Date;
|
|
13
|
+
customDisplay?: React.ReactNode;
|
|
14
|
+
size?: "sm" | "base";
|
|
15
|
+
};
|
|
16
|
+
export default function UncontrolledDateInput({ currentDate, onDateChange, label, placeholder, error, translatedKey, showTimeSelector, futureDates, pastDates, minDate, maxDate, customDisplay, size, }: UncontrolledDateInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UncontrolledDateInput } from './UncontrolledDateInput';
|
|
@@ -0,0 +1,22 @@
|
|
|
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";
|
|
16
|
+
export * from "./AutocompleteInput";
|
|
17
|
+
export * from "./PillsContainer";
|
|
18
|
+
export * from "./SideModal";
|
|
19
|
+
export * from "./FiltersMenu";
|
|
20
|
+
export * from "./MultiSelectDropdown";
|
|
21
|
+
export * from "./EmptyState";
|
|
22
|
+
export * from "./Tooltip";
|
|
@@ -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 @@
|
|
|
1
|
+
export * from './themeContext';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useTheme: () => import("..").LawgicTheme;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../index.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ThemeProvider";
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { FileStructure } from "legal-cycle-api-types";
|
|
2
|
+
export type CycleEventLabel = "registration_requested" | "registration_granted" | "use_statement_due" | "renewal_due";
|
|
3
|
+
export interface CycleEvent {
|
|
4
|
+
_id: string;
|
|
5
|
+
label: CycleEventLabel;
|
|
6
|
+
start_date: Date | string;
|
|
7
|
+
end_date: Date | string;
|
|
8
|
+
}
|
|
9
|
+
export interface CycleClient {
|
|
10
|
+
name: string;
|
|
11
|
+
address: string;
|
|
12
|
+
country: string;
|
|
13
|
+
}
|
|
14
|
+
export interface CycleMember {
|
|
15
|
+
_id: string;
|
|
16
|
+
email: string;
|
|
17
|
+
accepted: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface Cycle {
|
|
20
|
+
_id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
country: string;
|
|
23
|
+
client?: CycleClient;
|
|
24
|
+
members: CycleMember[];
|
|
25
|
+
classes?: {
|
|
26
|
+
code: string;
|
|
27
|
+
description: string;
|
|
28
|
+
}[];
|
|
29
|
+
expedient_number: string;
|
|
30
|
+
logo_url?: string;
|
|
31
|
+
files: (string | FileStructure)[];
|
|
32
|
+
gaceta_files: (string | FileStructure)[];
|
|
33
|
+
events: CycleEvent[];
|
|
34
|
+
created_by: string;
|
|
35
|
+
created_at: Date;
|
|
36
|
+
updated_at: Date;
|
|
37
|
+
}
|
|
38
|
+
export type ViewMode = "week" | "month" | "year" | "lustrum" | "decade";
|
|
39
|
+
export interface TimeDivision {
|
|
40
|
+
label: string;
|
|
41
|
+
subLabel: string;
|
|
42
|
+
date: Date;
|
|
43
|
+
key: string;
|
|
44
|
+
}
|
|
45
|
+
export interface CycleTimelineRowProps {
|
|
46
|
+
cycle: Cycle;
|
|
47
|
+
startDate: Date;
|
|
48
|
+
endDate: Date;
|
|
49
|
+
hoveredRowIndex: number | null;
|
|
50
|
+
index: number;
|
|
51
|
+
bottomBorder: boolean;
|
|
52
|
+
onRowHover: (index: number) => void;
|
|
53
|
+
onRowLeave: () => void;
|
|
54
|
+
onOverlayFocus: () => void;
|
|
55
|
+
currentViewMode: string;
|
|
56
|
+
timelineWidth: number;
|
|
57
|
+
getDivisionWidth: () => number;
|
|
58
|
+
onScrollY: (scrollEvent: WheelEvent) => void;
|
|
59
|
+
}
|
|
60
|
+
export interface ScrollInfo {
|
|
61
|
+
scrollLeft: number;
|
|
62
|
+
scrollWidth: number;
|
|
63
|
+
clientWidth: number;
|
|
64
|
+
rightEdgeDistance: number;
|
|
65
|
+
}
|
|
66
|
+
export interface RangeUpdateResult {
|
|
67
|
+
range: {
|
|
68
|
+
start: Date;
|
|
69
|
+
end: Date;
|
|
70
|
+
};
|
|
71
|
+
preserveScrollPosition: boolean;
|
|
72
|
+
addedWidth?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface CycleTimelineProps {
|
|
75
|
+
cycles: Cycle[];
|
|
76
|
+
viewMode?: ViewMode;
|
|
77
|
+
}
|
|
78
|
+
export interface JobStructure<T = {
|
|
79
|
+
lawyer_name: string;
|
|
80
|
+
}> {
|
|
81
|
+
_id: string;
|
|
82
|
+
type: "lawyer_scraping" | "expedient_analysis" | "client_scraping";
|
|
83
|
+
status: "pending" | "processing" | "completed" | "failed";
|
|
84
|
+
notified: boolean;
|
|
85
|
+
progress: {
|
|
86
|
+
total: number;
|
|
87
|
+
currentStep: string;
|
|
88
|
+
percentage: number;
|
|
89
|
+
expedients_to_analyze: {
|
|
90
|
+
status: "pending" | "processing" | "completed" | "failed";
|
|
91
|
+
name: string;
|
|
92
|
+
}[];
|
|
93
|
+
};
|
|
94
|
+
created_by: string;
|
|
95
|
+
params: T;
|
|
96
|
+
error?: string;
|
|
97
|
+
createdAt: Date;
|
|
98
|
+
updatedAt: Date;
|
|
99
|
+
}
|
|
100
|
+
export type Option = {
|
|
101
|
+
label: string;
|
|
102
|
+
value: unknown;
|
|
103
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
+
export type FilterFn<T> = (value: unknown, item: T) => boolean;
|
|
3
|
+
export interface SelectOption {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
}
|
|
7
|
+
export interface Filter<T> {
|
|
8
|
+
key: keyof T;
|
|
9
|
+
value: unknown;
|
|
10
|
+
label: string;
|
|
11
|
+
type: "text" | "date" | "select";
|
|
12
|
+
icon?: IconProp;
|
|
13
|
+
fn: FilterFn<T>;
|
|
14
|
+
options?: SelectOption[];
|
|
15
|
+
}
|
|
16
|
+
export interface FilterControl<T> {
|
|
17
|
+
addFilter: ({ key, value, label, type, icon, options, }: Omit<Filter<T>, "fn">) => void;
|
|
18
|
+
updateFilter: ({ key, value, }: Omit<Filter<T>, "icon" | "fn" | "options">) => void;
|
|
19
|
+
removeFilter: ({ key }: Pick<Filter<T>, "key">) => void;
|
|
20
|
+
clearFilters: () => void;
|
|
21
|
+
activeFilters: Omit<Filter<T>, "fn">[];
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TFunction = (key: string, options?: Record<string, unknown>) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
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';
|
|
10
|
+
export * from './stepper';
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModalType = 'center' | 'alert' | 'dialog' | 'custom';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Color } from "../types/styleValues";
|
|
2
|
+
export type Step = {
|
|
3
|
+
id: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type StepStatus = 'pending' | 'active' | 'completed' | 'disabled';
|
|
8
|
+
export type StepOrientation = 'horizontal' | 'vertical';
|
|
9
|
+
export interface StepProps {
|
|
10
|
+
status: "pending" | "focus" | "done";
|
|
11
|
+
label?: string;
|
|
12
|
+
shouldAnimate: boolean;
|
|
13
|
+
color: Color;
|
|
14
|
+
index: number;
|
|
15
|
+
}
|
|
16
|
+
export interface StepperProps {
|
|
17
|
+
steps: {
|
|
18
|
+
label?: string;
|
|
19
|
+
completed: boolean;
|
|
20
|
+
}[];
|
|
21
|
+
direction?: "horizontal" | "vertical";
|
|
22
|
+
color?: Color;
|
|
23
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type ToastContent = {
|
|
2
|
+
title: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
};
|
|
5
|
+
export type ToastPosition = "top-left" | "top-right" | "top-center" | "bottom-left" | "bottom-right" | "bottom-center";
|
|
6
|
+
export interface ToastOptions {
|
|
7
|
+
duration?: number;
|
|
8
|
+
position?: ToastPosition;
|
|
9
|
+
}
|
|
10
|
+
export type ToastType = "success" | "error" | "warning" | "notification" | "loading";
|
|
11
|
+
export interface ToastMethods {
|
|
12
|
+
success: (content: ToastContent, options?: ToastOptions) => void;
|
|
13
|
+
error: (content: ToastContent, options?: ToastOptions) => void;
|
|
14
|
+
warning: (content: ToastContent, options?: ToastOptions) => void;
|
|
15
|
+
notification: (content: ToastContent, options?: ToastOptions) => void;
|
|
16
|
+
loading: (messages: {
|
|
17
|
+
loading: ToastContent;
|
|
18
|
+
success: ToastContent;
|
|
19
|
+
error: ToastContent;
|
|
20
|
+
}, options?: ToastOptions) => {
|
|
21
|
+
resolve: (value?: unknown) => void;
|
|
22
|
+
reject: (reason?: unknown) => void;
|
|
23
|
+
};
|
|
24
|
+
async: (promise: Promise<unknown>, messages: {
|
|
25
|
+
loading: ToastContent;
|
|
26
|
+
success: ToastContent;
|
|
27
|
+
error: ToastContent;
|
|
28
|
+
}, options?: ToastOptions) => void;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatLocalizedDate: (date: Date | string, dateFormat?: string, language?: "es" | "en") => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getImageUrl: (imageName: string) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
@@ -0,0 +1,15 @@
|
|
|
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/types/index.d.ts
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Color } from '../types/styleValues';
|
|
2
|
+
export type Step = {
|
|
3
|
+
id: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type StepStatus = 'pending' | 'active' | 'completed' | 'disabled';
|
|
8
|
+
export type StepOrientation = 'horizontal' | 'vertical';
|
|
9
|
+
export interface StepProps {
|
|
10
|
+
status: "pending" | "focus" | "done";
|
|
11
|
+
label?: string;
|
|
12
|
+
shouldAnimate: boolean;
|
|
13
|
+
color: Color;
|
|
14
|
+
index: number;
|
|
15
|
+
}
|
|
16
|
+
export interface StepperProps {
|
|
17
|
+
steps: {
|
|
18
|
+
label?: string;
|
|
19
|
+
completed: boolean;
|
|
20
|
+
}[];
|
|
21
|
+
direction?: "horizontal" | "vertical";
|
|
22
|
+
color?: Color;
|
|
23
|
+
}
|
package/dist/types/toast.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
export type ToastContent =
|
|
1
|
+
export type ToastContent = {
|
|
2
|
+
title: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
};
|
|
2
5
|
export type ToastPosition = "top-left" | "top-right" | "top-center" | "bottom-left" | "bottom-right" | "bottom-center";
|
|
3
6
|
export interface ToastOptions {
|
|
4
7
|
duration?: number;
|
|
5
8
|
position?: ToastPosition;
|
|
6
9
|
}
|
|
7
|
-
export type ToastType = "success" | "error" | "warning" | "
|
|
10
|
+
export type ToastType = "success" | "error" | "warning" | "notification" | "loading";
|
|
8
11
|
export interface ToastMethods {
|
|
9
12
|
success: (content: ToastContent, options?: ToastOptions) => void;
|
|
10
13
|
error: (content: ToastContent, options?: ToastOptions) => void;
|
|
11
14
|
warning: (content: ToastContent, options?: ToastOptions) => void;
|
|
12
|
-
|
|
15
|
+
notification: (content: ToastContent, options?: ToastOptions) => void;
|
|
13
16
|
loading: (messages: {
|
|
14
17
|
loading: ToastContent;
|
|
15
18
|
success: ToastContent;
|
package/dist/utils/toast.js
CHANGED
|
@@ -104,17 +104,17 @@ const p = (t, o, e = {}) => {
|
|
|
104
104
|
});
|
|
105
105
|
return p(n, t, o), {
|
|
106
106
|
resolve: (s) => {
|
|
107
|
-
typeof s == "string" && (t.success = s), e(s);
|
|
107
|
+
typeof s == "string" && (t.success = { title: "Success", description: s }), e(s);
|
|
108
108
|
},
|
|
109
109
|
reject: (s) => {
|
|
110
|
-
typeof s == "string" && (t.error = s), i(s);
|
|
110
|
+
typeof s == "string" && (t.error = { title: "Error", description: s }), i(s);
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
}, F = {
|
|
114
114
|
success: (t, o = {}) => a(t, "success", o),
|
|
115
115
|
error: (t, o = {}) => a(t, "error", o),
|
|
116
116
|
warning: (t, o = {}) => a(t, "warning", o),
|
|
117
|
-
|
|
117
|
+
notification: (t, o = {}) => a(t, "notification", o),
|
|
118
118
|
async: (t, o, e = {}) => p(t, o, e),
|
|
119
119
|
loading: (t, o = {}) => b(t, o)
|
|
120
120
|
};
|
package/dist/vite-env.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
1
|
+
/// <reference types="vite/client" />
|