lawgic-dev-kit 0.21.6 → 0.22.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/README.md +54 -54
- package/dist/_virtual/index2.js +2 -3
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index5.js +5 -2
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/atoms/Checkbox/Checkbox.js +43 -30
- package/dist/components/atoms/Chip/Chip.d.ts +13 -0
- package/dist/components/atoms/Chip/Chip.js +32 -0
- package/dist/components/atoms/Chip/index.d.ts +1 -0
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.js +17 -30
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +8 -2
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.js +46 -12
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +3 -3
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.js +56 -12
- package/dist/components/atoms/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/atoms/PasswordInput/PasswordInput.js +57 -41
- package/dist/components/atoms/PasswordInput/PasswordInput.types.d.ts +1 -0
- 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/TextInput/TextInput.types.d.ts +1 -1
- 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 +98 -84
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +29 -35
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +1 -1
- package/dist/components/atoms/UploadContainer/UploadContainer.js +4 -4
- package/dist/components/atoms/index.d.ts +2 -1
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +8 -8
- package/dist/components/molecules/DateInput/DateInput.d.ts +1 -1
- 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 +24 -0
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +208 -0
- package/dist/components/molecules/MultiSelectDropdown/index.d.ts +1 -0
- package/dist/components/molecules/SingleSelectDropdown/SingleSelectDropdown.d.ts +25 -0
- package/dist/components/molecules/SingleSelectDropdown/SingleSelectDropdown.js +212 -0
- package/dist/components/molecules/SingleSelectDropdown/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/UncontrolledDateInput/UncontrolledDateInput.d.ts +1 -1
- package/dist/components/molecules/index.d.ts +4 -0
- package/dist/index.js +139 -129
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +109 -97
- 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/node_modules/@fortawesome/pro-solid-svg-icons/index.js +14 -9
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- 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/Chip/Chip.d.ts +13 -0
- package/dist/src/components/atoms/Chip/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 +9 -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 +12 -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 +43 -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 +24 -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/SingleSelectDropdown/SingleSelectDropdown.d.ts +25 -0
- package/dist/src/components/molecules/SingleSelectDropdown/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 +23 -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,37 @@
|
|
|
1
|
+
import { Control, FieldValues, Path } from "react-hook-form";
|
|
2
|
+
export type Country = {
|
|
3
|
+
labelES: string;
|
|
4
|
+
label: string;
|
|
5
|
+
code: string;
|
|
6
|
+
codeISO2: string;
|
|
7
|
+
phone: string;
|
|
8
|
+
};
|
|
9
|
+
export interface CountryDropdownProps<T extends FieldValues> {
|
|
10
|
+
countries?: Country[];
|
|
11
|
+
name: Path<T>;
|
|
12
|
+
control: Control<T>;
|
|
13
|
+
label?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
language?: "en" | "es";
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CountryDropdownProps<T extends FieldValues> {
|
|
19
|
+
countries?: Country[];
|
|
20
|
+
name: Path<T>;
|
|
21
|
+
control: Control<T>;
|
|
22
|
+
label?: string;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
language?: "en" | "es";
|
|
25
|
+
className?: string;
|
|
26
|
+
translateKey?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface CountryDropdownFieldProps {
|
|
29
|
+
countries: Country[];
|
|
30
|
+
value: Country | null;
|
|
31
|
+
onChange: (country: Country | null) => void;
|
|
32
|
+
label?: string;
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
language?: "en" | "es";
|
|
35
|
+
error?: string;
|
|
36
|
+
className?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CountryInput } from "./CountryInput";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CountryLabel } from './CountryLabel';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FieldValues } from "react-hook-form";
|
|
2
|
+
import { CountryDropdownProps } from "./CountryDropdown.types";
|
|
3
|
+
declare const CountryDropdown: <T extends FieldValues>({ countries, name, control, label, placeholder, language, className, }: CountryDropdownProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default CountryDropdown;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Control, FieldValues, Path } from "react-hook-form";
|
|
2
|
+
export type Country = {
|
|
3
|
+
labelES: string;
|
|
4
|
+
label: string;
|
|
5
|
+
code: string;
|
|
6
|
+
codeISO2: string;
|
|
7
|
+
phone: string;
|
|
8
|
+
};
|
|
9
|
+
export interface CountryDropdownProps<T extends FieldValues> {
|
|
10
|
+
countries: Country[];
|
|
11
|
+
name: Path<T>;
|
|
12
|
+
control: Control<T>;
|
|
13
|
+
label?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
language?: "en" | "es";
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CountryDropdownProps<T extends FieldValues> {
|
|
19
|
+
countries: Country[];
|
|
20
|
+
name: Path<T>;
|
|
21
|
+
control: Control<T>;
|
|
22
|
+
label?: string;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
language?: "en" | "es";
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface CountryDropdownFieldProps {
|
|
28
|
+
countries: Country[];
|
|
29
|
+
value: Country | null;
|
|
30
|
+
onChange: (country: Country | null) => void;
|
|
31
|
+
label?: string;
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
language?: "en" | "es";
|
|
34
|
+
error?: string;
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CountryDropdown } from "./CountryDropdown";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Divider } from './Divider';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Filter, FilterControl } from "@/types/filters";
|
|
2
|
+
interface FilterPillProps<T> {
|
|
3
|
+
filter: Omit<Filter<T>, "fn">;
|
|
4
|
+
filterControl: FilterControl<T>;
|
|
5
|
+
translations?: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
declare const FilterPill: <T>({ filter, filterControl, translations, }: FilterPillProps<T>) => React.ReactElement;
|
|
8
|
+
export default FilterPill;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FilterPill } from "./FilterPill";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Placement } from
|
|
2
|
-
export interface
|
|
3
|
-
|
|
1
|
+
import type { Placement } from "@floating-ui/dom";
|
|
2
|
+
export interface FloatingCardProps {
|
|
3
|
+
content: React.ReactNode;
|
|
4
4
|
children: React.ReactElement;
|
|
5
5
|
className?: string;
|
|
6
6
|
placement?: Placement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FloatingCard } from "./FloatingCard";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const resolveIconButtonClasses: (variant?: "filled" | "outline" | "transparent" | "invisible", color?: "blue" | "aqua" | "red" | "gray", size?: "lg" | "base" | "md" | "sm" | "xs", shadow?: "none" | "blue") => string;
|
|
2
|
+
declare const iconSizeVariants: {
|
|
3
|
+
lg: string;
|
|
4
|
+
base: string;
|
|
5
|
+
md: string;
|
|
6
|
+
sm: string;
|
|
7
|
+
xs: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const resolveIconClasses: (size?: keyof typeof iconSizeVariants) => string;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { Color, Shadow, Size, Variant } from "../../../types/styleValues";
|
|
4
|
+
export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
variant?: Variant;
|
|
6
|
+
color?: Color;
|
|
7
|
+
size?: Size;
|
|
8
|
+
shadow?: Shadow;
|
|
9
|
+
icon?: FontAwesomeIconProps['icon'];
|
|
10
|
+
iconProps?: Omit<FontAwesomeIconProps, 'icon'>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as IconButton } from './IconButton';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FieldValues } from "react-hook-form";
|
|
2
|
+
import type { ImageProfileInputProps } from "./ImageProfileInput.types";
|
|
3
|
+
declare const ImageProfileInput: <T extends FieldValues = FieldValues>({ src: defaultImageSrc, alt, isEditable, onChange, className, name, control, user, }: ImageProfileInputProps<T>) => React.ReactElement;
|
|
4
|
+
export default ImageProfileInput;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UserStructure } from 'legal-cycle-api-types';
|
|
2
|
+
import { Control, FieldValues, Path } from "react-hook-form";
|
|
3
|
+
export interface ImageProfileInputProps<T extends FieldValues = FieldValues> {
|
|
4
|
+
src: string;
|
|
5
|
+
alt: string;
|
|
6
|
+
isEditable?: boolean;
|
|
7
|
+
onChange?: (file: File | null) => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
name?: Path<T>;
|
|
10
|
+
control?: Control<T>;
|
|
11
|
+
user?: UserStructure;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as IndexedStep } from './IndexedStep';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as InfoCard } from './InfoCard';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InformationDisclaimerType } from "./InformationDisclaimer.types";
|
|
2
|
+
export declare const resolveSizeStyles: (size: "small" | "normal") => {
|
|
3
|
+
containerStyles: string;
|
|
4
|
+
titleStyles: string;
|
|
5
|
+
descriptionStyles: string;
|
|
6
|
+
iconStyles: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const resolveIconColor: (type: InformationDisclaimerType) => "bg-green-100 text-green-500" | "bg-yellow-100 text-yellow-500" | "bg-red-100 text-red-500" | "bg-blue-100 text-blue-500";
|
|
9
|
+
export declare const resolveIcon: (type: InformationDisclaimerType) => "info" | import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type InformationDisclaimerType = "success" | "informative" | "warning" | "error";
|
|
2
|
+
export type InformationDisclaimerProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
showIcon?: boolean;
|
|
7
|
+
type?: InformationDisclaimerType;
|
|
8
|
+
iconClassName?: string;
|
|
9
|
+
size?: "small" | "normal";
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as InformationDisclaimer } from './InformationDisclaimer';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface LoadingProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
size?: number;
|
|
4
|
+
strokeWidth?: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
duration?: number;
|
|
7
|
+
label?: string;
|
|
8
|
+
initialProgress?: number;
|
|
9
|
+
automaticProgress?: boolean;
|
|
10
|
+
showProgress?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const LoadingProgress: React.FC<LoadingProgressProps>;
|
|
13
|
+
export default LoadingProgress;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LoadingProgress } from './LoadingProgress';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface LoadingSpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
variant?: 'circle' | 'cube';
|
|
4
|
+
size?: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const LoadingSpinner: React.FC<LoadingSpinnerProps>;
|
|
8
|
+
export default LoadingSpinner;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LoadingSpinner } from './LoadingSpinner';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PasswordInputProps } from "./PasswordInput.types";
|
|
3
|
+
import { FieldValues } from "react-hook-form";
|
|
4
|
+
declare const PasswordInput: <T extends FieldValues>({ label, control, name, placeholder, className, disabled, size, leftSide, }: PasswordInputProps<T>) => React.ReactElement;
|
|
5
|
+
export default PasswordInput;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Control, FieldValues, Path } from "react-hook-form";
|
|
2
|
+
export type PasswordInputProps<T extends FieldValues> = {
|
|
3
|
+
label: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
size?: 'sm' | 'md';
|
|
8
|
+
control: Control<T>;
|
|
9
|
+
name: Path<T>;
|
|
10
|
+
leftSide?: React.ReactNode;
|
|
11
|
+
rightSide?: React.ReactNode;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PasswordInput } from './PasswordInput';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FieldValues } from "react-hook-form";
|
|
3
|
+
import { PhoneInputProps } from "./PhoneInput.types";
|
|
4
|
+
declare const PhoneInput: <T extends FieldValues = FieldValues>({ name, control, label, placeholder, language, className, translateKey, countries, }: PhoneInputProps<T>) => React.ReactElement;
|
|
5
|
+
export default PhoneInput;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Control, FieldValues, Path } from "react-hook-form";
|
|
2
|
+
import { Country } from "../../../constants/countries";
|
|
3
|
+
export interface PhoneInputProps<T extends FieldValues = FieldValues> {
|
|
4
|
+
countries?: Country[];
|
|
5
|
+
name: Path<T>;
|
|
6
|
+
control: Control<T>;
|
|
7
|
+
label?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
language?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
translateKey?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PhoneInput } from "./PhoneInput";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Pill } from "./Pill";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ProgressBar } from "./ProgressBar";
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,37 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SectionButton } from "./SectionButton";
|
|
@@ -0,0 +1,37 @@
|
|
|
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 +1,4 @@
|
|
|
1
1
|
import { FieldValues } from "react-hook-form";
|
|
2
2
|
import type { SelectInputProps } from "./SelectInput.types";
|
|
3
|
-
declare const SelectInput: <T extends FieldValues>({ options, name, control, label, placeholder, className, input, dropdownStyle, innerClassName, showChevron, }: SelectInputProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const SelectInput: <T extends FieldValues>({ options, name, control, label, placeholder, className, input, dropdownStyle, innerClassName, showChevron, size, }: SelectInputProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default SelectInput;
|
|
@@ -15,6 +15,7 @@ export interface SelectInputProps<T extends FieldValues> {
|
|
|
15
15
|
innerClassName?: string;
|
|
16
16
|
dropdownStyle?: React.CSSProperties;
|
|
17
17
|
showChevron?: boolean;
|
|
18
|
+
size?: 'sm' | 'md';
|
|
18
19
|
}
|
|
19
20
|
export interface SelectInputFieldProps {
|
|
20
21
|
options: Option[];
|
|
@@ -28,4 +29,5 @@ export interface SelectInputFieldProps {
|
|
|
28
29
|
innerClassName?: string;
|
|
29
30
|
dropdownStyle?: React.CSSProperties;
|
|
30
31
|
showChevron?: boolean;
|
|
32
|
+
size?: 'sm' | 'md';
|
|
31
33
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SelectInput } from "./SelectInput";
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SidebarButton } from './SidebarButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as StepIndicator } from './StepIndicator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Switch } from "./Switch";
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
labelClassName?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Tab } from "./Tab";
|