lawgic-dev-kit 0.18.4 → 0.18.8
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/components/atoms/Pill/Pill.d.ts +8 -0
- package/dist/components/atoms/Pill/Pill.js +31 -0
- package/dist/components/atoms/Pill/index.d.ts +1 -0
- package/dist/components/atoms/Tab/Tab.d.ts +1 -1
- package/dist/components/atoms/Tab/Tab.js +19 -14
- package/dist/components/atoms/Tab/Tab.types.d.ts +3 -2
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/molecules/AutocompleteInput/AutocompleteInput.js +128 -119
- package/dist/components/molecules/AutocompleteInput/AutocompleteInput.types.d.ts +3 -0
- package/dist/components/molecules/PillsContainer/PillsContainer.d.ts +6 -0
- package/dist/components/molecules/PillsContainer/PillsContainer.js +60 -0
- package/dist/components/molecules/PillsContainer/index.d.ts +1 -0
- package/dist/components/molecules/Tabs/Tabs.d.ts +3 -2
- package/dist/components/molecules/Tabs/Tabs.js +13 -10
- package/dist/components/molecules/index.d.ts +1 -0
- package/dist/index.js +67 -63
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +54 -54
- package/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +27 -17
- package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +6 -1
- package/package.json +1 -1
- package/dist/src/components/atoms/LoadingProgress/LoadingProgress.d.ts +0 -13
- package/dist/src/components/atoms/TextInput/TextInput.d.ts +0 -5
- package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +0 -13
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +0 -14
- package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +0 -37
|
@@ -12,18 +12,22 @@ const c = {
|
|
|
12
12
|
iconName: "eye-slash",
|
|
13
13
|
icon: [640, 512, [], "f070", "M25.9 3.4C19-2 8.9-.8 3.4 6.1S-.8 23.1 6.1 28.6l608 480c6.9 5.5 17 4.3 22.5-2.6s4.3-17-2.6-22.5L25.9 3.4zM605.5 268.3c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-51.2 0-96 14.8-133.9 36.8l27.3 21.5C244.6 74.2 280.2 64 320 64c70.4 0 127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-9.2 22.1-25.9 52-49.5 81.5l25.1 19.8c25.6-32 43.7-64.4 53.9-89zM88.4 154.7c-25.6 32-43.7 64.4-53.9 89c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c51.2 0 96-14.8 133.9-36.8l-27.3-21.5C395.4 437.8 359.8 448 320 448c-70.4 0-127.7-32-170.8-72C106.1 336 77.3 288 64 256c9.2-22.1 25.9-52 49.5-81.5L88.4 154.7zM320 384c16.7 0 32.7-3.2 47.4-9.1l-30.9-24.4c-5.4 .9-10.9 1.4-16.5 1.4c-51 0-92.8-39.8-95.8-90.1l-30.9-24.4c-.9 6-1.3 12.2-1.3 18.5c0 70.7 57.3 128 128 128zM448 256c0-70.7-57.3-128-128-128c-16.7 0-32.7 3.2-47.4 9.1l30.9 24.4c5.4-.9 10.9-1.4 16.5-1.4c51 0 92.8 39.8 95.8 90.1l30.9 24.4c.9-6 1.3-12.2 1.3-18.5z"]
|
|
14
14
|
}, a = {
|
|
15
|
+
prefix: "fal",
|
|
16
|
+
iconName: "chevron-up",
|
|
17
|
+
icon: [512, 512, [], "f077", "M244.7 116.7c6.2-6.2 16.4-6.2 22.6 0l192 192c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L256 150.6 75.3 331.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l192-192z"]
|
|
18
|
+
}, e = {
|
|
15
19
|
prefix: "fal",
|
|
16
20
|
iconName: "circle-check",
|
|
17
21
|
icon: [512, 512, [61533, "check-circle"], "f058", "M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM363.3 203.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L224 297.4l-52.7-52.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l64 64c6.2 6.2 16.4 6.2 22.6 0l128-128z"]
|
|
18
|
-
},
|
|
22
|
+
}, i = {
|
|
19
23
|
prefix: "fal",
|
|
20
24
|
iconName: "arrows-rotate",
|
|
21
25
|
icon: [512, 512, [128472, "refresh", "sync"], "f021", "M69.4 210.6C89.8 126.5 165.6 64 256 64c71.1 0 133.1 38.6 166.3 96L368 160c-8.8 0-16 7.2-16 16s7.2 16 16 16l80.7 0 15.3 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 60.6C408.8 75.5 337.5 32 256 32C149.6 32 60.5 106.2 37.7 205.6C35.5 215.2 43.1 224 53 224c7.9 0 14.6-5.7 16.5-13.4zm373.2 90.9C422.2 385.5 346.4 448 256 448c-71.1 0-133.1-38.6-166.3-96l54.5 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-80.9 0-15.1 0c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-60.2C103.4 436.6 174.7 480 256 480c106.4 0 195.5-74.2 218.3-173.6c2.2-9.6-5.4-18.4-15.3-18.4c-7.9 0-14.6 5.7-16.5 13.4z"]
|
|
22
|
-
},
|
|
26
|
+
}, o = {
|
|
23
27
|
prefix: "fal",
|
|
24
28
|
iconName: "eye",
|
|
25
29
|
icon: [576, 512, [128065], "f06e", "M117.2 136C160.3 96 217.6 64 288 64s127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-13.3 32-42.1 80-85.2 120c-43.1 40-100.4 72-170.8 72s-127.7-32-170.8-72C74.1 336 45.3 288 32 256c13.3-32 42.1-80 85.2-120zM288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM192 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]
|
|
26
|
-
},
|
|
30
|
+
}, n = {
|
|
27
31
|
prefix: "fal",
|
|
28
32
|
iconName: "trash",
|
|
29
33
|
icon: [448, 512, [], "f1f8", "M177.7 32l92.5 0c5.5 0 10.6 2.8 13.6 7.5L299.1 64 148.9 64l15.3-24.5c2.9-4.7 8.1-7.5 13.6-7.5zM336.9 64L311 22.6C302.2 8.5 286.8 0 270.3 0L177.7 0C161.2 0 145.8 8.5 137 22.6L111.1 64 64.1 64 32 64 16 64C7.2 64 0 71.2 0 80s7.2 16 16 16l18.3 0L59.8 452.6C62.1 486.1 90 512 123.6 512l200.8 0c33.6 0 61.4-25.9 63.8-59.4L413.7 96 432 96c8.8 0 16-7.2 16-16s-7.2-16-16-16l-16 0-32.1 0-47.1 0zm44.8 32L356.3 450.3C355.1 467 341.2 480 324.4 480l-200.8 0c-16.8 0-30.7-13-31.9-29.7L66.4 96l315.3 0z"]
|
|
@@ -35,39 +39,45 @@ const c = {
|
|
|
35
39
|
prefix: "fal",
|
|
36
40
|
iconName: "circle-info",
|
|
37
41
|
icon: [512, 512, ["info-circle"], "f05a", "M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM208 352c-8.8 0-16 7.2-16 16s7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-112c0-8.8-7.2-16-16-16l-40 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l24 0 0 96-32 0zm48-168a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]
|
|
38
|
-
},
|
|
42
|
+
}, r = {
|
|
39
43
|
prefix: "fal",
|
|
40
44
|
iconName: "file",
|
|
41
45
|
icon: [384, 512, [128196, 128459, 61462], "f15b", "M352 448l0-256-112 0c-26.5 0-48-21.5-48-48l0-112L64 32C46.3 32 32 46.3 32 64l0 384c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32zm-.5-288c-.7-2.8-2.1-5.4-4.2-7.4L231.4 36.7c-2.1-2.1-4.6-3.5-7.4-4.2L224 144c0 8.8 7.2 16 16 16l111.5 0zM0 64C0 28.7 28.7 0 64 0L220.1 0c12.7 0 24.9 5.1 33.9 14.1L369.9 129.9c9 9 14.1 21.2 14.1 33.9L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]
|
|
42
|
-
},
|
|
46
|
+
}, z = {
|
|
47
|
+
prefix: "fal",
|
|
48
|
+
iconName: "chevron-down",
|
|
49
|
+
icon: [512, 512, [], "f078", "M267.3 395.3c-6.2 6.2-16.4 6.2-22.6 0l-192-192c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L256 361.4 436.7 180.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-192 192z"]
|
|
50
|
+
}, m = {
|
|
43
51
|
prefix: "fal",
|
|
44
52
|
iconName: "xmark",
|
|
45
53
|
icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M324.5 411.1c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L214.6 256 347.1 123.5c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L192 233.4 59.6 100.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L169.4 256 36.9 388.5c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L192 278.6 324.5 411.1z"]
|
|
46
|
-
},
|
|
54
|
+
}, C = {
|
|
47
55
|
prefix: "fal",
|
|
48
56
|
iconName: "check",
|
|
49
57
|
icon: [448, 512, [10003, 10004], "f00c", "M443.3 100.7c6.2 6.2 6.2 16.4 0 22.6l-272 272c-6.2 6.2-16.4 6.2-22.6 0l-144-144c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L160 361.4 420.7 100.7c6.2-6.2 16.4-6.2 22.6 0z"]
|
|
50
|
-
},
|
|
58
|
+
}, L = {
|
|
51
59
|
prefix: "fal",
|
|
52
60
|
iconName: "triangle-exclamation",
|
|
53
61
|
icon: [512, 512, [9888, "exclamation-triangle", "warning"], "f071", "M34.5 420.4c-1.6 2.8-2.5 6-2.5 9.3c0 10.2 8.2 18.4 18.4 18.4l411.2 0c10.2 0 18.4-8.2 18.4-18.4c0-3.3-.9-6.4-2.5-9.3L276.5 75.8C272.2 68.5 264.4 64 256 64s-16.2 4.5-20.5 11.8L34.5 420.4zM6.9 404.2l201-344.6C217.9 42.5 236.2 32 256 32s38.1 10.5 48.1 27.6l201 344.6c4.5 7.7 6.9 16.5 6.9 25.4c0 27.8-22.6 50.4-50.4 50.4L50.4 480C22.6 480 0 457.4 0 429.6c0-8.9 2.4-17.7 6.9-25.4zM256 160c8.8 0 16 7.2 16 16l0 128c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zM232 384a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]
|
|
54
|
-
},
|
|
62
|
+
}, t = {
|
|
55
63
|
prefix: "fal",
|
|
56
64
|
iconName: "x",
|
|
57
65
|
icon: [384, 512, [120], "58", "M380.2 58.3c5.7-6.7 4.9-16.8-1.9-22.5s-16.8-4.9-22.6 1.9L192 231.2 28.2 37.7c-5.7-6.7-15.8-7.6-22.5-1.9s-7.6 15.8-1.9 22.5L171 256 3.8 453.7c-5.7 6.7-4.9 16.8 1.9 22.6s16.8 4.9 22.5-1.9L192 280.8 355.8 474.3c5.7 6.7 15.8 7.6 22.6 1.9s7.6-15.8 1.9-22.6L213 256 380.2 58.3z"]
|
|
58
66
|
};
|
|
59
67
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
68
|
+
i as faArrowsRotate,
|
|
69
|
+
C as faCheck,
|
|
70
|
+
z as faChevronDown,
|
|
71
|
+
a as faChevronUp,
|
|
72
|
+
e as faCircleCheck,
|
|
63
73
|
c as faCircleExclamation,
|
|
64
74
|
s as faCircleInfo,
|
|
65
75
|
f as faClockSix,
|
|
66
|
-
|
|
76
|
+
o as faEye,
|
|
67
77
|
l as faEyeSlash,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
78
|
+
r as faFile,
|
|
79
|
+
n as faTrash,
|
|
80
|
+
L as faTriangleExclamation,
|
|
81
|
+
t as faX,
|
|
82
|
+
m as faXmark
|
|
73
83
|
};
|
|
@@ -23,6 +23,10 @@ const o = {
|
|
|
23
23
|
prefix: "far",
|
|
24
24
|
iconName: "check",
|
|
25
25
|
icon: [448, 512, [10003, 10004], "f00c", "M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]
|
|
26
|
+
}, e = {
|
|
27
|
+
prefix: "far",
|
|
28
|
+
iconName: "x",
|
|
29
|
+
icon: [384, 512, [120], "58", "M378.4 71.4c8.5-10.1 7.2-25.3-2.9-33.8s-25.3-7.2-33.8 2.9L192 218.7 42.4 40.6C33.9 30.4 18.7 29.1 8.6 37.6S-2.9 61.3 5.6 71.4L160.7 256 5.6 440.6c-8.5 10.2-7.2 25.3 2.9 33.8s25.3 7.2 33.8-2.9L192 293.3 341.6 471.4c8.5 10.2 23.7 11.5 33.8 2.9s11.5-23.7 2.9-33.8L223.3 256l155-184.6z"]
|
|
26
30
|
};
|
|
27
31
|
export {
|
|
28
32
|
f as faCheck,
|
|
@@ -30,5 +34,6 @@ export {
|
|
|
30
34
|
o as faChevronUp,
|
|
31
35
|
a as faCircleInfo,
|
|
32
36
|
c as faCloudArrowUp,
|
|
33
|
-
l as faCloudUpload
|
|
37
|
+
l as faCloudUpload,
|
|
38
|
+
e as faX
|
|
34
39
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TextInputProps } from "./TextInput.types";
|
|
3
|
-
import { FieldValues } from "react-hook-form";
|
|
4
|
-
declare const TextInput: <T extends FieldValues = FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, rightSide, translateKey, size, ...props }: TextInputProps<T>) => React.ReactElement;
|
|
5
|
-
export default TextInput;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Control, FieldValues, Path } from "react-hook-form";
|
|
2
|
-
export type TextInputProps<T extends FieldValues = FieldValues> = {
|
|
3
|
-
label?: string;
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
translateKey?: string;
|
|
8
|
-
size?: 'sm' | 'base';
|
|
9
|
-
control: Control<T>;
|
|
10
|
-
name: Path<T>;
|
|
11
|
-
leftSide?: React.ReactNode;
|
|
12
|
-
rightSide?: React.ReactNode;
|
|
13
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type UncontrolledTextInputProps = {
|
|
2
|
-
name: string;
|
|
3
|
-
label?: string;
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
onChange: (value: string) => void;
|
|
7
|
-
value: string;
|
|
8
|
-
error?: string | undefined;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
disabledInput?: boolean;
|
|
11
|
-
size?: 'sm' | 'base';
|
|
12
|
-
leftSide?: React.ReactNode;
|
|
13
|
-
rightSide?: React.ReactNode;
|
|
14
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export interface UploadContainerProps {
|
|
2
|
-
/**
|
|
3
|
-
* Título que se muestra en el área de carga
|
|
4
|
-
* @default 'drag_and_drop_your_files_here'
|
|
5
|
-
*/
|
|
6
|
-
title?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Subtítulo opcional para mostrar información adicional
|
|
9
|
-
* @default null
|
|
10
|
-
*/
|
|
11
|
-
subtitle?: string | null;
|
|
12
|
-
/**
|
|
13
|
-
* Texto del botón de selección de archivos
|
|
14
|
-
* @default 'choose_files'
|
|
15
|
-
*/
|
|
16
|
-
buttonTitle?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Función que se ejecuta cuando se cargan archivos válidos
|
|
19
|
-
* @param files Array de objetos File seleccionados
|
|
20
|
-
*/
|
|
21
|
-
onUpload?: (files: File[]) => void;
|
|
22
|
-
/**
|
|
23
|
-
* Lista de extensiones de archivo permitidas
|
|
24
|
-
* @default ['pdf', 'png', 'jpg', 'jpeg', 'svg', 'docx', 'doc', 'xls', 'xlsx']
|
|
25
|
-
*/
|
|
26
|
-
acceptedExtensions?: string[];
|
|
27
|
-
/**
|
|
28
|
-
* Tamaño máximo de archivo en KB
|
|
29
|
-
* @default 1024
|
|
30
|
-
*/
|
|
31
|
-
maxSize?: number;
|
|
32
|
-
direction?: 'row' | 'column';
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
loading?: boolean;
|
|
35
|
-
loadingDuration?: number;
|
|
36
|
-
className?: string;
|
|
37
|
-
}
|