lawgic-dev-kit 0.4.4 → 0.6.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.
Files changed (167) hide show
  1. package/dist/_virtual/index3.js +3 -2
  2. package/dist/_virtual/index4.js +3 -3
  3. package/dist/_virtual/index5.js +5 -3
  4. package/dist/_virtual/index6.js +2 -5
  5. package/dist/node_modules/prop-types/index.js +1 -1
  6. package/dist/node_modules/yup/index.esm.js +3 -3
  7. package/package.json +1 -1
  8. package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +0 -11
  9. package/dist/src/components/atoms/ActionButton/index.d.ts +0 -1
  10. package/dist/src/components/atoms/AsyncToast/index.d.ts +0 -11
  11. package/dist/src/components/atoms/Avatar/Avatar.d.ts +0 -11
  12. package/dist/src/components/atoms/Avatar/index.d.ts +0 -1
  13. package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +0 -4
  14. package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +0 -6
  15. package/dist/src/components/atoms/BoxContainer/index.d.ts +0 -1
  16. package/dist/src/components/atoms/Button/Button.d.ts +0 -4
  17. package/dist/src/components/atoms/Button/Button.styles.d.ts +0 -26
  18. package/dist/src/components/atoms/Button/Button.types.d.ts +0 -9
  19. package/dist/src/components/atoms/Button/index.d.ts +0 -1
  20. package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +0 -4
  21. package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +0 -5
  22. package/dist/src/components/atoms/CenterModal/index.d.ts +0 -1
  23. package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +0 -5
  24. package/dist/src/components/atoms/Checkbox/index.d.ts +0 -1
  25. package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +0 -4
  26. package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +0 -37
  27. package/dist/src/components/atoms/CountryInput/index.d.ts +0 -1
  28. package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +0 -6
  29. package/dist/src/components/atoms/CountryLabel/index.d.ts +0 -1
  30. package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +0 -4
  31. package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +0 -36
  32. package/dist/src/components/atoms/CountrySelectInput/index.d.ts +0 -1
  33. package/dist/src/components/atoms/Divider/Divider.d.ts +0 -7
  34. package/dist/src/components/atoms/Divider/index.d.ts +0 -1
  35. package/dist/src/components/atoms/FullLogo/FullLogo.d.ts +0 -3
  36. package/dist/src/components/atoms/FullLogo/index.d.ts +0 -1
  37. package/dist/src/components/atoms/IconButton/IconButton.d.ts +0 -4
  38. package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +0 -10
  39. package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +0 -11
  40. package/dist/src/components/atoms/IconButton/index.d.ts +0 -1
  41. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +0 -4
  42. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +0 -12
  43. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +0 -9
  44. package/dist/src/components/atoms/ImageProfileInput/index.d.ts +0 -2
  45. package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +0 -9
  46. package/dist/src/components/atoms/IndexedStep/index.d.ts +0 -1
  47. package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +0 -3
  48. package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +0 -6
  49. package/dist/src/components/atoms/InfoCard/index.d.ts +0 -1
  50. package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -8
  51. package/dist/src/components/atoms/LoadingSpinner/index.d.ts +0 -1
  52. package/dist/src/components/atoms/Logo/Logo.d.ts +0 -3
  53. package/dist/src/components/atoms/Logo/Slogan.d.ts +0 -3
  54. package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +0 -5
  55. package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +0 -11
  56. package/dist/src/components/atoms/PasswordInput/index.d.ts +0 -1
  57. package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +0 -4
  58. package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +0 -12
  59. package/dist/src/components/atoms/PhoneInput/index.d.ts +0 -1
  60. package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +0 -3
  61. package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +0 -4
  62. package/dist/src/components/atoms/ProgressBar/index.d.ts +0 -1
  63. package/dist/src/components/atoms/SearchBar/index.d.ts +0 -2
  64. package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +0 -12
  65. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +0 -3
  66. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +0 -1
  67. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +0 -10
  68. package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +0 -2
  69. package/dist/src/components/atoms/SectionButton/index.d.ts +0 -1
  70. package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +0 -2
  71. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +0 -3
  72. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +0 -10
  73. package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +0 -2
  74. package/dist/src/components/atoms/SelectDropdown/SelectDropdown.d.ts +0 -4
  75. package/dist/src/components/atoms/SelectDropdown/SelectDropdown.types.d.ts +0 -24
  76. package/dist/src/components/atoms/SelectDropdown/index.d.ts +0 -1
  77. package/dist/src/components/atoms/SidebarButton/index.d.ts +0 -10
  78. package/dist/src/components/atoms/Tab/Tab.d.ts +0 -3
  79. package/dist/src/components/atoms/Tab/Tab.styles.d.ts +0 -6
  80. package/dist/src/components/atoms/Tab/Tab.types.d.ts +0 -10
  81. package/dist/src/components/atoms/Tab/index.d.ts +0 -1
  82. package/dist/src/components/atoms/TextButton/TextButton.d.ts +0 -4
  83. package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +0 -2
  84. package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +0 -6
  85. package/dist/src/components/atoms/TextButton/index.d.ts +0 -1
  86. package/dist/src/components/atoms/TextInput/TextInput.d.ts +0 -5
  87. package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +0 -11
  88. package/dist/src/components/atoms/TextInput/index.d.ts +0 -1
  89. package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +0 -3
  90. package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +0 -5
  91. package/dist/src/components/atoms/TextStaticInput/index.d.ts +0 -1
  92. package/dist/src/components/atoms/Toast/Toast.d.ts +0 -21
  93. package/dist/src/components/atoms/Toast/index.d.ts +0 -1
  94. package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +0 -16
  95. package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +0 -1
  96. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +0 -4
  97. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +0 -13
  98. package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +0 -1
  99. package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +0 -4
  100. package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +0 -32
  101. package/dist/src/components/atoms/UploadContainer/index.d.ts +0 -1
  102. package/dist/src/components/atoms/index.d.ts +0 -26
  103. package/dist/src/components/index.d.ts +0 -3
  104. package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +0 -3
  105. package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +0 -8
  106. package/dist/src/components/molecules/AlertModal/index.d.ts +0 -2
  107. package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +0 -8
  108. package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +0 -6
  109. package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +0 -7
  110. package/dist/src/components/molecules/CalendarSelector/index.d.ts +0 -1
  111. package/dist/src/components/molecules/DateInput/DateInput.d.ts +0 -11
  112. package/dist/src/components/molecules/DateInput/index.d.ts +0 -1
  113. package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +0 -3
  114. package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +0 -10
  115. package/dist/src/components/molecules/DialogModal/index.d.ts +0 -1
  116. package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +0 -3
  117. package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +0 -7
  118. package/dist/src/components/molecules/Dropdown/index.d.ts +0 -1
  119. package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +0 -4
  120. package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +0 -17
  121. package/dist/src/components/molecules/FileUpload/index.d.ts +0 -1
  122. package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +0 -4
  123. package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +0 -11
  124. package/dist/src/components/molecules/FloatingMenu/index.d.ts +0 -1
  125. package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +0 -7
  126. package/dist/src/components/molecules/IndexedStepper/index.d.ts +0 -1
  127. package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +0 -14
  128. package/dist/src/components/molecules/InformationContainer/index.d.ts +0 -1
  129. package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +0 -4
  130. package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +0 -5
  131. package/dist/src/components/molecules/SearchModal/index.d.ts +0 -1
  132. package/dist/src/components/molecules/Stepper/Stepper.d.ts +0 -3
  133. package/dist/src/components/molecules/Stepper/Stepper.types.d.ts +0 -7
  134. package/dist/src/components/molecules/Stepper/index.d.ts +0 -1
  135. package/dist/src/components/molecules/Tabs/Tabs.d.ts +0 -19
  136. package/dist/src/components/molecules/Tabs/index.d.ts +0 -1
  137. package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +0 -12
  138. package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +0 -1
  139. package/dist/src/components/molecules/index.d.ts +0 -10
  140. package/dist/src/components/organisms/index.d.ts +0 -1
  141. package/dist/src/constants/countries.d.ts +0 -30
  142. package/dist/src/index.d.ts +0 -6
  143. package/dist/src/providers/ThemeProvider.d.ts +0 -10
  144. package/dist/src/providers/index.d.ts +0 -1
  145. package/dist/src/themes/default.d.ts +0 -2
  146. package/dist/src/themes/index.d.ts +0 -2
  147. package/dist/src/themes/types.d.ts +0 -6
  148. package/dist/src/types/baseModalProps.d.ts +0 -4
  149. package/dist/src/types/display.d.ts +0 -2
  150. package/dist/src/types/fileInfo.d.ts +0 -2
  151. package/dist/src/types/i18n.d.ts +0 -1
  152. package/dist/src/types/index.d.ts +0 -9
  153. package/dist/src/types/modal.d.ts +0 -31
  154. package/dist/src/types/modalType.d.ts +0 -1
  155. package/dist/src/types/navbarOption.d.ts +0 -7
  156. package/dist/src/types/sidebarOption.d.ts +0 -7
  157. package/dist/src/types/styleValues.d.ts +0 -4
  158. package/dist/src/types/toast.d.ts +0 -26
  159. package/dist/src/utils/dates.d.ts +0 -1
  160. package/dist/src/utils/files.d.ts +0 -8
  161. package/dist/src/utils/images.d.ts +0 -1
  162. package/dist/src/utils/index.d.ts +0 -7
  163. package/dist/src/utils/modal.d.ts +0 -10
  164. package/dist/src/utils/renderContentOptions.d.ts +0 -3
  165. package/dist/src/utils/strings.d.ts +0 -2
  166. package/dist/src/utils/toast.d.ts +0 -15
  167. package/dist/vite.config.d.ts +0 -2
@@ -1,4 +1,5 @@
1
- var p = { exports: {} };
1
+ import { __require as r } from "../node_modules/property-expr/index.js";
2
+ var e = r();
2
3
  export {
3
- p as __module
4
+ e as p
4
5
  };
@@ -1,5 +1,5 @@
1
- import { __require as r } from "../node_modules/property-expr/index.js";
2
- var e = r();
1
+ import { __require as r } from "../node_modules/tiny-case/index.js";
2
+ var a = r();
3
3
  export {
4
- e as p
4
+ a as t
5
5
  };
@@ -1,5 +1,7 @@
1
- import { __require as r } from "../node_modules/tiny-case/index.js";
2
- var a = r();
1
+ import { getDefaultExportFromCjs as o } from "./_commonjsHelpers.js";
2
+ import { __require as r } from "../node_modules/toposort/index.js";
3
+ var t = r();
4
+ const s = /* @__PURE__ */ o(t);
3
5
  export {
4
- a as t
6
+ s as default
5
7
  };
@@ -1,7 +1,4 @@
1
- import { getDefaultExportFromCjs as o } from "./_commonjsHelpers.js";
2
- import { __require as r } from "../node_modules/toposort/index.js";
3
- var t = r();
4
- const s = /* @__PURE__ */ o(t);
1
+ var p = { exports: {} };
5
2
  export {
6
- s as default
3
+ p as __module
7
4
  };
@@ -1,4 +1,4 @@
1
- import { __module as r } from "../../_virtual/index3.js";
1
+ import { __module as r } from "../../_virtual/index6.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,6 +1,6 @@
1
- import { p as v } from "../../_virtual/index4.js";
2
- import { t as U } from "../../_virtual/index5.js";
3
- import oe from "../../_virtual/index6.js";
1
+ import { p as v } from "../../_virtual/index3.js";
2
+ import { t as U } from "../../_virtual/index4.js";
3
+ import oe from "../../_virtual/index5.js";
4
4
  const ce = Object.prototype.toString, he = Error.prototype.toString, fe = RegExp.prototype.toString, de = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", pe = /^Symbol\((.*)\)(.*)$/;
5
5
  function me(n) {
6
6
  return n != +n ? "NaN" : n === 0 && 1 / n < 0 ? "-0" : "" + n;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lawgic-dev-kit",
3
- "version": "0.4.4",
3
+ "version": "0.6.4",
4
4
  "description": "Componentes de UI para Lawgic",
5
5
  "type": "module",
6
6
  "private": false,
@@ -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,4 +0,0 @@
1
- import React from "react";
2
- import type { BoxContainerProps } from "./BoxContainer.types";
3
- declare const BoxContainer: React.FC<BoxContainerProps>;
4
- export default BoxContainer;
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- export interface BoxContainerProps {
3
- children: React.ReactNode;
4
- className?: string;
5
- element?: keyof React.JSX.IntrinsicElements;
6
- }
@@ -1 +0,0 @@
1
- export { default as BoxContainer } from "./BoxContainer";
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { ButtonProps } from "./Button.types";
3
- declare const Button: React.FC<ButtonProps>;
4
- export default Button;
@@ -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,9 +0,0 @@
1
- import React from "react";
2
- import { Color, Size, Variant } from "../../../types/styleValues";
3
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
- children: React.ReactNode;
5
- variant?: Variant;
6
- color?: Color;
7
- size?: Size;
8
- disabled?: boolean;
9
- }
@@ -1 +0,0 @@
1
- export { default as Button } from './Button';
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { CenterModalProps } from "./CenterModal.types";
3
- declare const CenterModal: React.FC<CenterModalProps>;
4
- export default CenterModal;
@@ -1,5 +0,0 @@
1
- import { ModalProps } from "../../../types";
2
- export interface CenterModalProps extends ModalProps {
3
- title?: string;
4
- children: React.ReactNode | ((onClose: () => void) => React.ReactNode);
5
- }
@@ -1 +0,0 @@
1
- export { default as CenterModal } from "./CenterModal";
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- declare const Checkbox: React.FC<{
3
- active?: boolean | string | number;
4
- }>;
5
- 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,6 +0,0 @@
1
- import React from 'react';
2
- import { Country } from '../../../constants/countries';
3
- declare const CountryLabel: React.FC<{
4
- country: Country;
5
- }>;
6
- export default CountryLabel;
@@ -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,7 +0,0 @@
1
- import React from 'react';
2
- export interface DividerProps {
3
- className?: string;
4
- direction?: 'horizontal' | 'vertical';
5
- }
6
- declare const Divider: React.FC<DividerProps>;
7
- export default Divider;
@@ -1 +0,0 @@
1
- export { default as Divider } from './Divider';
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const FullLogo: React.FC<React.SVGProps<SVGSVGElement>>;
3
- export default FullLogo;
@@ -1 +0,0 @@
1
- export { default as FullLogo } from './FullLogo';
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { IconButtonProps } from "./IconButton.types";
3
- declare const IconButton: React.FC<IconButtonProps>;
4
- export default IconButton;
@@ -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,9 +0,0 @@
1
- import * as yup from "yup";
2
- declare const yupImageProfileValidator: yup.ObjectSchema<{
3
- name: string | undefined;
4
- base64: string | undefined;
5
- }, yup.AnyObject, {
6
- name: undefined;
7
- base64: undefined;
8
- }, "">;
9
- export default yupImageProfileValidator;
@@ -1,2 +0,0 @@
1
- export { default as ImageProfileInput } from "./ImageProfileInput";
2
- export { default as yupImageProfileValidator } from "./ImageProfileInput.validators";
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export type IndexedStepProps = {
3
- index: number;
4
- label: string;
5
- active?: boolean;
6
- completed?: boolean;
7
- };
8
- declare const IndexedStep: React.FC<IndexedStepProps>;
9
- export default IndexedStep;
@@ -1 +0,0 @@
1
- export { default as IndexedStep } from './IndexedStep';
@@ -1,3 +0,0 @@
1
- import InfoCardProps from './InfoCard.types';
2
- declare const InfoCard: React.FC<InfoCardProps>;
3
- export default InfoCard;
@@ -1,6 +0,0 @@
1
- interface InfoCardProps {
2
- imageUrl: string;
3
- title: string;
4
- subtitle: string;
5
- }
6
- export default InfoCardProps;
@@ -1 +0,0 @@
1
- export { default as InfoCard } from './InfoCard';
@@ -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,3 +0,0 @@
1
- import * as React from "react";
2
- declare const Logo: React.FC<React.SVGProps<SVGSVGElement>>;
3
- export default Logo;
@@ -1,3 +0,0 @@
1
- import * as React from "react";
2
- declare const Slogan: React.FC<React.SVGProps<SVGSVGElement>>;
3
- export default Slogan;
@@ -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,3 +0,0 @@
1
- import type { ProgressBarProps } from "./ProgressBar.types";
2
- declare const ProgressBar: ({ progress, showPercentage, }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
3
- export default ProgressBar;
@@ -1,4 +0,0 @@
1
- export interface ProgressBarProps {
2
- progress: number;
3
- showPercentage?: boolean;
4
- }
@@ -1 +0,0 @@
1
- export { default as ProgressBar } from "./ProgressBar";
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export declare const SearchBar: React.FC;
@@ -1,12 +0,0 @@
1
- import React from "react";
2
- import { DesktopSectionButtonTypes } from "./desktop";
3
- import { MobileSectionButtonTypes } from "./mobile";
4
- interface DesktopSectionButtonProps extends DesktopSectionButtonTypes {
5
- display: "desktop";
6
- }
7
- interface MobileSectionButtonProps extends MobileSectionButtonTypes {
8
- display: "mobile";
9
- }
10
- type SectionButtonProps = DesktopSectionButtonProps | MobileSectionButtonProps;
11
- declare const SectionButton: React.FC<SectionButtonProps>;
12
- export default SectionButton;
@@ -1,3 +0,0 @@
1
- import SectionButtonProps from "../desktop/SectionButton.types";
2
- declare const SectionButton: React.FC<SectionButtonProps>;
3
- export default SectionButton;
@@ -1 +0,0 @@
1
- export declare const resolveSectionButtonClasses: (active?: boolean) => string;
@@ -1,10 +0,0 @@
1
- import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
- export default interface SectionButtonProps {
3
- label: string;
4
- href?: string;
5
- icon?: IconProp;
6
- onClick?: (e: React.MouseEvent) => void;
7
- active?: boolean;
8
- disabled?: boolean;
9
- className?: string;
10
- }
@@ -1,2 +0,0 @@
1
- export { default as DesktopSectionButton } from "./SectionButton";
2
- export type { default as DesktopSectionButtonTypes } from "./SectionButton.types";
@@ -1 +0,0 @@
1
- export { default as SectionButton } from "./SectionButton";
@@ -1,2 +0,0 @@
1
- export declare const resolveSectionButtonClassesMobile: (active?: boolean) => string;
2
- export declare const resolveIconButtonClassesMobile: (active?: boolean) => string;
@@ -1,3 +0,0 @@
1
- import SectionButtonProps from "./SectionButton.types";
2
- declare const SectionButton: React.FC<SectionButtonProps>;
3
- export default SectionButton;
@@ -1,10 +0,0 @@
1
- import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
- export default interface SectionButtonProps {
3
- label: string;
4
- href?: string;
5
- onClick?: (e: React.MouseEvent) => void;
6
- active?: boolean;
7
- disabled?: boolean;
8
- icon: IconProp;
9
- className?: string;
10
- }
@@ -1,2 +0,0 @@
1
- export { default as MobileSectionButton } from "./SectionButton";
2
- export type { default as MobileSectionButtonTypes } from "./SectionButton.types";
@@ -1,4 +0,0 @@
1
- import { FieldValues } from "react-hook-form";
2
- import type { SelectDropdownProps } from "./SelectDropdown.types";
3
- declare const SelectDropdown: <T extends FieldValues>({ options, name, control, label, placeholder, className, input, }: SelectDropdownProps<T>) => import("react/jsx-runtime").JSX.Element;
4
- export default SelectDropdown;
@@ -1,24 +0,0 @@
1
- import type { Control, FieldValues, Path } from "react-hook-form";
2
- export interface Option {
3
- key: string;
4
- label: string;
5
- }
6
- export interface SelectDropdownProps<T extends FieldValues> {
7
- options: Option[];
8
- name: Path<T>;
9
- control: Control<T>;
10
- label?: string;
11
- placeholder?: string;
12
- className?: string;
13
- input?: boolean;
14
- }
15
- export interface SelectDropdownFieldProps {
16
- options: Option[];
17
- value: Option | null;
18
- onChange: (option: Option | null) => void;
19
- label?: string;
20
- placeholder?: string;
21
- error?: string;
22
- className?: string;
23
- input?: boolean;
24
- }