@sector.siit/mlz-components 1.0.6 → 1.0.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/FileInput/FileInput.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/toastHelpers.d.ts +2 -2
- package/dist/components/Toast/toastHelpers.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +11 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -13
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/fonts/Geometria-Bold.woff2 +0 -0
- package/dist/fonts/Geometria-ExtraLight.woff2 +0 -0
- package/dist/fonts/Geometria-Light.woff2 +0 -0
- package/dist/fonts/Geometria-Regular.woff2 +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/FileInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,cAAc;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACzD,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;CAC7D;
|
|
1
|
+
{"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/FileInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,cAAc;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACzD,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;CAC7D;AAiDD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmE9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpE,MAAM,WAAW,UAAU;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAyCD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpE,MAAM,WAAW,UAAU;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAyCD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA2EtC,CAAC"}
|
|
@@ -5,10 +5,10 @@ export interface ToastOptions {
|
|
|
5
5
|
variant?: ToastVariant;
|
|
6
6
|
duration?: number;
|
|
7
7
|
}
|
|
8
|
-
export declare const showToast: ({ title, description, variant, duration }: ToastOptions) => string;
|
|
8
|
+
export declare const showToast: ({ title, description, variant, duration, }: ToastOptions) => string;
|
|
9
9
|
export declare const toastSuccess: (title: string, description?: string, duration?: number) => string;
|
|
10
10
|
export declare const toastInfo: (title: string, description?: string, duration?: number) => string;
|
|
11
11
|
export declare const toastWarning: (title: string, description?: string, duration?: number) => string;
|
|
12
12
|
export declare const toastError: (title: string, description?: string, duration?: number) => string;
|
|
13
|
-
export {
|
|
13
|
+
export { Toaster, toast } from "react-hot-toast";
|
|
14
14
|
//# sourceMappingURL=toastHelpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toastHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/toastHelpers.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpE,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"toastHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/toastHelpers.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpE,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAoHD,eAAO,MAAM,SAAS,+CAKnB,YAAY,KAAG,MAejB,CAAC;AAEF,eAAO,MAAM,YAAY,UACjB,MAAM,gBACC,MAAM,aACT,MAAM,WACkD,CAAC;AAErE,eAAO,MAAM,SAAS,UACd,MAAM,gBACC,MAAM,aACT,MAAM,WAC+C,CAAC;AAElE,eAAO,MAAM,YAAY,UACjB,MAAM,gBACC,MAAM,aACT,MAAM,WACkD,CAAC;AAErE,eAAO,MAAM,UAAU,UACf,MAAM,gBACC,MAAM,aACT,MAAM,WACgD,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -14861,7 +14861,7 @@ interface ToastOptions {
|
|
|
14861
14861
|
variant?: ToastVariant;
|
|
14862
14862
|
duration?: number;
|
|
14863
14863
|
}
|
|
14864
|
-
declare const showToast: ({ title, description, variant, duration }: ToastOptions) => string;
|
|
14864
|
+
declare const showToast: ({ title, description, variant, duration, }: ToastOptions) => string;
|
|
14865
14865
|
declare const toastSuccess: (title: string, description?: string, duration?: number) => string;
|
|
14866
14866
|
declare const toastInfo: (title: string, description?: string, duration?: number) => string;
|
|
14867
14867
|
declare const toastWarning: (title: string, description?: string, duration?: number) => string;
|
package/dist/index.esm.js
CHANGED
|
@@ -1400,7 +1400,7 @@ const inputClasses = (hasError, fullWidth) => {
|
|
|
1400
1400
|
const colorClass = hasError ? "semantic-error-600" : "primary-600";
|
|
1401
1401
|
const borderColorClass = hasError ? "semantic-error-600" : "primary-400";
|
|
1402
1402
|
return {
|
|
1403
|
-
containerStyle: "flex flex-col relative
|
|
1403
|
+
containerStyle: "flex flex-col relative " + (fullWidth ? " w-full" : ""),
|
|
1404
1404
|
labelStyle: `block text-base font-bold text-${colorClass}`,
|
|
1405
1405
|
inputStyle: [
|
|
1406
1406
|
"disabled:bg-primary-100 disabled:cursor-not-allowed disabled:text-primary-300",
|
|
@@ -1428,12 +1428,12 @@ function UserCard({ name, email, changeUser, editUser }) {
|
|
|
1428
1428
|
|
|
1429
1429
|
const CheckCircleIcon = (props) => (jsxRuntimeExports.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: jsxRuntimeExports.jsx("path", { d: "M8.6 14.6L15.65 7.55L14.25 6.15L8.6 11.8L5.75 8.95L4.35 10.35L8.6 14.6ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM10 18C12.2333 18 14.125 17.225 15.675 15.675C17.225 14.125 18 12.2333 18 10C18 7.76667 17.225 5.875 15.675 4.325C14.125 2.775 12.2333 2 10 2C7.76667 2 5.875 2.775 4.325 4.325C2.775 5.875 2 7.76667 2 10C2 12.2333 2.775 14.125 4.325 15.675C5.875 17.225 7.76667 18 10 18Z", fill: "currentColor" }) }));
|
|
1430
1430
|
|
|
1431
|
+
const ErrorCircleIcon = (props) => (jsxRuntimeExports.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [jsxRuntimeExports.jsx("circle", { cx: "10", cy: "10", r: "10", fill: "currentColor" }), jsxRuntimeExports.jsx("path", { d: "M7 7L13 13M13 7L7 13", stroke: "white", strokeWidth: "2", strokeLinecap: "round" })] }));
|
|
1432
|
+
|
|
1431
1433
|
const InfoCircleIcon = (props) => (jsxRuntimeExports.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: jsxRuntimeExports.jsx("path", { d: "M10 15C10.2833 15 10.5208 14.9042 10.7125 14.7125C10.9042 14.5208 11 14.2833 11 14C11 13.7167 10.9042 13.4792 10.7125 13.2875C10.5208 13.0958 10.2833 13 10 13C9.71667 13 9.47917 13.0958 9.2875 13.2875C9.09583 13.4792 9 13.7167 9 14C9 14.2833 9.09583 14.5208 9.2875 14.7125C9.47917 14.9042 9.71667 15 10 15ZM9 11H11V5H9V11ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM10 18C12.2333 18 14.125 17.225 15.675 15.675C17.225 14.125 18 12.2333 18 10C18 7.76667 17.225 5.875 15.675 4.325C14.125 2.775 12.2333 2 10 2C7.76667 2 5.875 2.775 4.325 4.325C2.775 5.875 2 7.76667 2 10C2 12.2333 2.775 14.125 4.325 15.675C5.875 17.225 7.76667 18 10 18Z", fill: "currentColor" }) }));
|
|
1432
1434
|
|
|
1433
1435
|
const WarningTriangleIcon = (props) => (jsxRuntimeExports.jsx("svg", { width: "22", height: "19", viewBox: "0 0 22 19", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: jsxRuntimeExports.jsx("path", { d: "M0 19L11 0L22 19H0ZM3.45 17H18.55L11 4L3.45 17ZM11 16C11.2833 16 11.5208 15.9042 11.7125 15.7125C11.9042 15.5208 12 15.2833 12 15C12 14.7167 11.9042 14.4792 11.7125 14.2875C11.5208 14.0958 11.2833 14 11 14C10.7167 14 10.4792 14.0958 10.2875 14.2875C10.0958 14.4792 10 14.7167 10 15C10 15.2833 10.0958 15.5208 10.2875 15.7125C10.4792 15.9042 10.7167 16 11 16ZM10 13H12V8H10V13Z", fill: "currentColor" }) }));
|
|
1434
1436
|
|
|
1435
|
-
const ErrorCircleIcon = (props) => (jsxRuntimeExports.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [jsxRuntimeExports.jsx("circle", { cx: "10", cy: "10", r: "10", fill: "currentColor" }), jsxRuntimeExports.jsx("path", { d: "M7 7L13 13M13 7L7 13", stroke: "white", strokeWidth: "2", strokeLinecap: "round" })] }));
|
|
1436
|
-
|
|
1437
1437
|
const toastClasses$1 = (variant) => {
|
|
1438
1438
|
const variants = {
|
|
1439
1439
|
success: {
|
|
@@ -1471,24 +1471,23 @@ const toastClasses$1 = (variant) => {
|
|
|
1471
1471
|
};
|
|
1472
1472
|
return variants[variant];
|
|
1473
1473
|
};
|
|
1474
|
-
const Toast = ({ title, description, variant = "info", onClose }) => {
|
|
1474
|
+
const Toast = ({ title, description, variant = "info", onClose, }) => {
|
|
1475
1475
|
const classes = toastClasses$1(variant);
|
|
1476
1476
|
const IconComponent = classes.iconComponent;
|
|
1477
1477
|
return (jsxRuntimeExports.jsxs("div", { className: [
|
|
1478
1478
|
"flex items-start",
|
|
1479
1479
|
"w-[400px] min-h-[88px]",
|
|
1480
|
-
"rounded-
|
|
1480
|
+
"rounded-lg",
|
|
1481
1481
|
"border border-solid",
|
|
1482
1482
|
"p-4",
|
|
1483
1483
|
"gap-4",
|
|
1484
|
-
"font-geometria",
|
|
1485
1484
|
"shadow-[0px_3px_6px_0px_rgba(0,0,0,0.16)]",
|
|
1486
1485
|
classes.bg,
|
|
1487
1486
|
classes.border,
|
|
1488
1487
|
].join(" "), children: [jsxRuntimeExports.jsx("div", { className: [
|
|
1489
1488
|
"flex items-center justify-center",
|
|
1490
|
-
"w-
|
|
1491
|
-
"rounded-
|
|
1489
|
+
"w-10 h-10",
|
|
1490
|
+
"rounded-lg",
|
|
1492
1491
|
"p-2",
|
|
1493
1492
|
"flex-none",
|
|
1494
1493
|
classes.iconBg,
|
|
@@ -1592,18 +1591,17 @@ const CustomToast = ({ t, title, description, variant = "info" }) => {
|
|
|
1592
1591
|
return (jsxRuntimeExports.jsxs("div", { className: [
|
|
1593
1592
|
"flex items-start",
|
|
1594
1593
|
"w-[400px] min-h-[88px]",
|
|
1595
|
-
"rounded-
|
|
1594
|
+
"rounded-lg",
|
|
1596
1595
|
"border border-solid",
|
|
1597
1596
|
"p-4",
|
|
1598
1597
|
"gap-4",
|
|
1599
|
-
"font-geometria",
|
|
1600
1598
|
"shadow-[0px_3px_6px_0px_rgba(0,0,0,0.16)]",
|
|
1601
1599
|
classes.bg,
|
|
1602
1600
|
classes.border,
|
|
1603
1601
|
].join(" "), children: [jsxRuntimeExports.jsx("div", { className: [
|
|
1604
1602
|
"flex items-center justify-center",
|
|
1605
|
-
"w-
|
|
1606
|
-
"rounded-
|
|
1603
|
+
"w-10 h-10",
|
|
1604
|
+
"rounded-lg",
|
|
1607
1605
|
"p-2",
|
|
1608
1606
|
"flex-none",
|
|
1609
1607
|
classes.iconBg,
|
|
@@ -1621,7 +1619,7 @@ const CustomToast = ({ t, title, description, variant = "info" }) => {
|
|
|
1621
1619
|
classes.text,
|
|
1622
1620
|
].join(" "), children: description }))] }), jsxRuntimeExports.jsx("button", { type: "button", onClick: () => toast.dismiss(t.id), className: "text-gray-400 hover:text-gray-600", "aria-label": "Cerrar", children: "\u00D7" })] }));
|
|
1623
1621
|
};
|
|
1624
|
-
const showToast = ({ title, description, variant = "info", duration = 5000 }) => {
|
|
1622
|
+
const showToast = ({ title, description, variant = "info", duration = 5000, }) => {
|
|
1625
1623
|
return toast.custom((t) => (jsxRuntimeExports.jsx(CustomToast, { t: t, title: title, description: description, variant: variant })), {
|
|
1626
1624
|
duration,
|
|
1627
1625
|
position: "top-right",
|