lawgic-dev-kit 0.8.6 → 0.9.0
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 +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/components/atoms/Avatar/Avatar.js +1 -1
- package/dist/components/atoms/Button/Button.js +1 -1
- package/dist/components/atoms/CountrySelectInput/CountryDropdown.js +1 -1
- package/dist/components/atoms/IconButton/IconButton.js +1 -1
- package/dist/components/atoms/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/atoms/PhoneInput/PhoneInput.js +1 -1
- package/dist/components/atoms/SelectDropdown/SelectDropdown.js +1 -1
- package/dist/components/atoms/TextButton/TextButton.js +1 -1
- package/dist/components/atoms/TextInput/TextInput.d.ts +1 -1
- package/dist/components/atoms/TextInput/TextInput.js +26 -25
- package/dist/components/atoms/TextInput/TextInput.types.d.ts +1 -0
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +1 -1
- package/dist/components/atoms/UploadContainer/UploadContainer.js +1 -1
- package/dist/components/molecules/AlertModal/AlertModal.js +1 -1
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +1 -1
- package/dist/components/molecules/DateInput/DateInput.js +1 -1
- package/dist/components/molecules/DialogModal/DialogModal.js +1 -1
- package/dist/components/molecules/Dropdown/Dropdown.js +1 -1
- package/dist/components/molecules/FileUpload/FileUpload.js +1 -1
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +1 -1
- package/dist/components/molecules/Stepper/Stepper.js +1 -1
- package/dist/components/molecules/Tabs/Tabs.js +1 -1
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/themeContext.d.ts +3 -0
- package/dist/contexts/themeContext.js +6 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useTheme.d.ts +1 -0
- package/dist/hooks/useTheme.js +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +107 -105
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +14 -14
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/scheduler/index.js +1 -1
- package/dist/providers/ThemeProvider.d.ts +0 -3
- package/dist/providers/ThemeProvider.js +12 -15
- package/dist/src/components/atoms/TextInput/TextInput.d.ts +1 -1
- 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 +1 -0
- package/dist/src/hooks/useTheme.d.ts +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/providers/ThemeProvider.d.ts +0 -3
- package/dist/utils/modal.js +1 -1
- package/dist/utils/toast.js +1 -1
- package/package.json +9 -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 -5
- package/dist/src/components/atoms/CenterModal/index.d.ts +0 -1
- package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +0 -10
- package/dist/src/components/atoms/Checkbox/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/FullLogo/FullLogo.d.ts +0 -3
- package/dist/src/components/atoms/FullLogo/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 -2
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +0 -9
- package/dist/src/components/atoms/InformationDisclaimer/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 -4
- 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.types.d.ts +0 -4
- 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 -1
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +0 -10
- 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 -2
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +0 -3
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +0 -10
- package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +0 -2
- package/dist/src/components/atoms/SelectDropdown/SelectDropdown.d.ts +0 -4
- package/dist/src/components/atoms/SelectDropdown/SelectDropdown.types.d.ts +0 -24
- package/dist/src/components/atoms/SelectDropdown/index.d.ts +0 -1
- package/dist/src/components/atoms/SidebarButton/index.d.ts +0 -10
- 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.types.d.ts +0 -11
- 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/Toast/Toast.d.ts +0 -21
- package/dist/src/components/atoms/Toast/index.d.ts +0 -1
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +0 -16
- 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 -32
- package/dist/src/components/atoms/UploadContainer/index.d.ts +0 -1
- package/dist/src/components/atoms/index.d.ts +0 -30
- 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 -8
- package/dist/src/components/molecules/AlertModal/index.d.ts +0 -2
- package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +0 -9
- 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 -11
- 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 -10
- 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.types.d.ts +0 -7
- 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 -10
- package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +0 -1
- package/dist/src/components/molecules/index.d.ts +0 -10
- package/dist/src/components/organisms/index.d.ts +0 -1
- package/dist/src/constants/countries.d.ts +0 -30
- 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 -31
- 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 -10
- 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,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../_virtual/
|
|
1
|
+
import { __module as r } from "../../_virtual/index3.js";
|
|
2
2
|
import { __require as s } from "./node_modules/react-is/index.js";
|
|
3
3
|
import { __require as t } from "./factoryWithTypeCheckers.js";
|
|
4
4
|
import { __require as p } from "./factoryWithThrowingShims.js";
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { LawgicTheme } from '../themes';
|
|
3
|
-
import { TFunction } from '../types';
|
|
4
3
|
export interface ThemeProviderProps {
|
|
5
4
|
theme?: Partial<LawgicTheme>;
|
|
6
5
|
children: React.ReactNode;
|
|
7
|
-
t: TFunction;
|
|
8
6
|
}
|
|
9
7
|
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
10
|
-
export declare const useTheme: () => LawgicTheme;
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
theme:
|
|
6
|
-
children: r
|
|
7
|
-
t: m
|
|
1
|
+
import { j as m } from "../_virtual/jsx-runtime.js";
|
|
2
|
+
import { defaultTheme as t } from "../themes/default.js";
|
|
3
|
+
import i from "../contexts/themeContext.js";
|
|
4
|
+
const x = ({
|
|
5
|
+
theme: e = {},
|
|
6
|
+
children: r
|
|
8
7
|
}) => {
|
|
9
|
-
const
|
|
10
|
-
...
|
|
11
|
-
...
|
|
12
|
-
t: m
|
|
8
|
+
const o = {
|
|
9
|
+
...t,
|
|
10
|
+
...e
|
|
13
11
|
};
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
}
|
|
12
|
+
return /* @__PURE__ */ m.jsx(i.Provider, { value: o, children: r });
|
|
13
|
+
};
|
|
16
14
|
export {
|
|
17
|
-
|
|
18
|
-
T as useTheme
|
|
15
|
+
x as ThemeProvider
|
|
19
16
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TextInputProps } from "./TextInput.types";
|
|
3
3
|
import { FieldValues } from "react-hook-form";
|
|
4
|
-
declare const TextInput: <T extends FieldValues = FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, rightSide, ...props }: TextInputProps<T>) => React.ReactElement;
|
|
4
|
+
declare const TextInput: <T extends FieldValues = FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, rightSide, translateKey, ...props }: TextInputProps<T>) => React.ReactElement;
|
|
5
5
|
export default TextInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './themeContext';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useTheme: () => import("..").LawgicTheme;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { LawgicTheme } from "../themes";
|
|
3
|
-
import { TFunction } from "../types";
|
|
4
3
|
export interface ThemeProviderProps {
|
|
5
4
|
theme?: Partial<LawgicTheme>;
|
|
6
5
|
children: React.ReactNode;
|
|
7
|
-
t: TFunction;
|
|
8
6
|
}
|
|
9
7
|
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
10
|
-
export declare const useTheme: () => LawgicTheme;
|
package/dist/utils/modal.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useState as l, useRef as a, useCallback as d, useEffect as f } from "re
|
|
|
4
4
|
import M from "../components/molecules/AlertModal/AlertModal.js";
|
|
5
5
|
import "../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
import "../
|
|
7
|
+
import "../contexts/themeContext.js";
|
|
8
8
|
import w from "../components/atoms/CenterModal/CenterModal.js";
|
|
9
9
|
import "../components/atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
10
10
|
import "../constants/countries.js";
|
package/dist/utils/toast.js
CHANGED
|
@@ -4,7 +4,7 @@ import "../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
|
4
4
|
import { AsyncToast as T } from "../components/atoms/AsyncToast/index.js";
|
|
5
5
|
import { useState as u, useEffect as j } from "react";
|
|
6
6
|
import "../_virtual/lodash.js";
|
|
7
|
-
import "../
|
|
7
|
+
import "../contexts/themeContext.js";
|
|
8
8
|
import "../components/atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
9
9
|
import E from "../components/atoms/Toast/Toast.js";
|
|
10
10
|
import "../constants/countries.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lawgic-dev-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Componentes de UI para Lawgic",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -53,6 +53,14 @@
|
|
|
53
53
|
"types": "./dist/providers/index.d.ts",
|
|
54
54
|
"import": "./dist/providers/index.js"
|
|
55
55
|
},
|
|
56
|
+
"./hooks": {
|
|
57
|
+
"types": "./dist/hooks/index.d.ts",
|
|
58
|
+
"import": "./dist/hooks/index.js"
|
|
59
|
+
},
|
|
60
|
+
"./contexts": {
|
|
61
|
+
"types": "./dist/contexts/index.d.ts",
|
|
62
|
+
"import": "./dist/contexts/index.js"
|
|
63
|
+
},
|
|
56
64
|
"./themes": {
|
|
57
65
|
"types": "./dist/themes/index.d.ts",
|
|
58
66
|
"import": "./dist/themes/index.js"
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
-
import { FC } from "react";
|
|
3
|
-
interface ActionButtonProps {
|
|
4
|
-
title: string;
|
|
5
|
-
icon?: IconProp;
|
|
6
|
-
imageUrl?: string;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
isSelected?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const ActionButton: FC<ActionButtonProps>;
|
|
11
|
-
export default ActionButton;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ActionButton } from "./ActionButton";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ToastContent, ToastOptions } from "../../../types";
|
|
2
|
-
export declare const AsyncToast: ({ promise, messages, options, onClose, }: {
|
|
3
|
-
promise: Promise<unknown>;
|
|
4
|
-
messages: {
|
|
5
|
-
loading: ToastContent;
|
|
6
|
-
success: ToastContent;
|
|
7
|
-
error: ToastContent;
|
|
8
|
-
};
|
|
9
|
-
options: ToastOptions;
|
|
10
|
-
onClose: () => void;
|
|
11
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UserStructure } from 'legal-cycle-api-types';
|
|
2
|
-
interface AvatarProps {
|
|
3
|
-
containerProps?: React.HTMLProps<HTMLDivElement>;
|
|
4
|
-
imageProps?: React.HTMLProps<HTMLImageElement>;
|
|
5
|
-
src?: string;
|
|
6
|
-
alt?: string;
|
|
7
|
-
size?: number;
|
|
8
|
-
user?: UserStructure;
|
|
9
|
-
}
|
|
10
|
-
declare const Avatar: React.FC<AvatarProps>;
|
|
11
|
-
export default Avatar;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Avatar } from './Avatar';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as BoxContainer } from "./BoxContainer";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Color, Size, Variant } from "../../../types/styleValues";
|
|
2
|
-
export declare const blueVariants: {
|
|
3
|
-
filled: string;
|
|
4
|
-
transparent: string;
|
|
5
|
-
outline: string;
|
|
6
|
-
invisible: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const aquaVariants: {
|
|
9
|
-
filled: string;
|
|
10
|
-
transparent: string;
|
|
11
|
-
outline: string;
|
|
12
|
-
invisible: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const redVariants: {
|
|
15
|
-
filled: string;
|
|
16
|
-
transparent: string;
|
|
17
|
-
outline: string;
|
|
18
|
-
invisible: string;
|
|
19
|
-
};
|
|
20
|
-
export declare const grayVariants: {
|
|
21
|
-
filled: string;
|
|
22
|
-
transparent: string;
|
|
23
|
-
outline: string;
|
|
24
|
-
invisible: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const resolveButtonClasses: (variant?: Variant, color?: Color, size?: Size) => string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Color, Size, Variant } from "../../../types/styleValues";
|
|
3
|
-
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
4
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
icon?: IconProp;
|
|
7
|
-
rightIcon?: IconProp;
|
|
8
|
-
variant?: Variant;
|
|
9
|
-
color?: Color;
|
|
10
|
-
size?: Size;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Button } from './Button';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CenterModal } from "./CenterModal";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type ColorVariant = "blue" | "aqua" | "red" | "gray";
|
|
3
|
-
type Variant = "rounded" | "square";
|
|
4
|
-
interface CheckboxProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
5
|
-
active?: boolean | string | number;
|
|
6
|
-
color?: ColorVariant;
|
|
7
|
-
variant?: Variant;
|
|
8
|
-
}
|
|
9
|
-
declare const Checkbox: React.FC<CheckboxProps>;
|
|
10
|
-
export default Checkbox;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Checkbox } from './Checkbox';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from "react-hook-form";
|
|
2
|
-
import { CountryDropdownProps } from "./CountryInput.types";
|
|
3
|
-
declare const CountryInput: <T extends FieldValues>({ countries, name, control, label, placeholder, language, className, translateKey, }: CountryDropdownProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default CountryInput;
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CountryInput } from "./CountryInput";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CountryLabel } from './CountryLabel';
|
|
@@ -1,4 +0,0 @@
|
|
|
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;
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CountryDropdown } from "./CountryDropdown";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Divider } from './Divider';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as FullLogo } from './FullLogo';
|
|
@@ -1,10 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as IconButton } from './IconButton';
|
|
@@ -1,4 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as IndexedStep } from './IndexedStep';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as InfoCard } from './InfoCard';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { InformationDisclaimerType } from "./InformationDisclaimer.types";
|
|
2
|
-
export declare const resolveDisclaimerClasses: (type: InformationDisclaimerType) => "bg-yellow-50 border-2 border-yellow-500" | "bg-red-50 border-2 border-red-500" | "bg-blue-50 border-2 border-blue-500";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
-
export type InformationDisclaimerType = "informative" | "warning" | "error";
|
|
3
|
-
export type InformationDisclaimerProps = {
|
|
4
|
-
title: string;
|
|
5
|
-
description: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
icon?: IconProp;
|
|
8
|
-
type?: InformationDisclaimerType;
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as InformationDisclaimer } from './InformationDisclaimer';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface LoadingSpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
size?: number;
|
|
4
|
-
strokeWidth?: number;
|
|
5
|
-
color?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const LoadingSpinner: React.FC<LoadingSpinnerProps>;
|
|
8
|
-
export default LoadingSpinner;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as LoadingSpinner } from './LoadingSpinner';
|
|
@@ -1,5 +0,0 @@
|
|
|
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, leftSide, }: PasswordInputProps<T>) => React.ReactElement;
|
|
5
|
-
export default PasswordInput;
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
control: Control<T>;
|
|
8
|
-
name: Path<T>;
|
|
9
|
-
leftSide?: React.ReactNode;
|
|
10
|
-
rightSide?: React.ReactNode;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PasswordInput } from './PasswordInput';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from "react-hook-form";
|
|
2
|
-
import { PhoneInputProps } from "./PhoneInput.types";
|
|
3
|
-
declare const PhoneInput: <T extends FieldValues>({ name, control, label, placeholder, language, className, translateKey, countries, }: PhoneInputProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default PhoneInput;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Control, FieldValues } from "react-hook-form";
|
|
2
|
-
import { Country } from "../../../constants/countries";
|
|
3
|
-
export interface PhoneInputProps<T extends FieldValues> {
|
|
4
|
-
countries?: Country[];
|
|
5
|
-
name: string;
|
|
6
|
-
control: Control<T>;
|
|
7
|
-
label?: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
language?: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
translateKey?: string;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PhoneInput } from "./PhoneInput";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ProgressBar } from "./ProgressBar";
|