ui-mathilde-web 0.10.12 → 0.10.13
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/style.css +1 -1
- package/dist/ui-mathilde-web.d.ts +1 -1
- package/dist/ui-mathilde-web.js +21 -17
- package/dist/ui-mathilde-web.umd.cjs +2 -2
- package/package.json +1 -1
|
@@ -228,7 +228,7 @@ declare interface CollapsibleTableProps {
|
|
|
228
228
|
/**
|
|
229
229
|
* La flecha se renderiza dentro de esta columna (por defecto "id")
|
|
230
230
|
*/
|
|
231
|
-
collapseToggleColumnKey?:
|
|
231
|
+
collapseToggleColumnKey?: "id" | "estado" | "status" | "state";
|
|
232
232
|
/**
|
|
233
233
|
* Clases opcionales
|
|
234
234
|
*/
|
package/dist/ui-mathilde-web.js
CHANGED
|
@@ -65,7 +65,7 @@ const Cx = "button-module__mth-btn-white__nTgLW", Mx = "button-module__mth-btn-b
|
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
67
|
/* @__PURE__ */ p("span", { className: fs.checkmark }),
|
|
68
|
-
t && /* @__PURE__ */ p("span", { className: "ml-
|
|
68
|
+
t && /* @__PURE__ */ p("span", { className: "ml-1.5", children: t })
|
|
69
69
|
] }), Fa = ({
|
|
70
70
|
src: t,
|
|
71
71
|
alt: e,
|
|
@@ -31315,7 +31315,7 @@ const S6 = {
|
|
|
31315
31315
|
] });
|
|
31316
31316
|
};
|
|
31317
31317
|
function mx({ content: t, trigger: e, children: n }) {
|
|
31318
|
-
return /* @__PURE__ */ p("div", { className: "flex
|
|
31318
|
+
return /* @__PURE__ */ p("div", { className: "flex", children: /* @__PURE__ */ p(_l, { content: t, trigger: e, className: "p-4 z-50 bg-[#191960] text-white text-xs font-semibold max-w-[280px]", children: n }) });
|
|
31319
31319
|
}
|
|
31320
31320
|
const jF = ({
|
|
31321
31321
|
label: t,
|
|
@@ -31326,7 +31326,7 @@ const jF = ({
|
|
|
31326
31326
|
onChange: o
|
|
31327
31327
|
}) => /* @__PURE__ */ j("div", { className: `flex max-w-md flex-col gap-2 ${a ?? ""}`, children: [
|
|
31328
31328
|
t ? /* @__PURE__ */ p("div", { className: "text-sm font-medium text-gray-900", children: t }) : null,
|
|
31329
|
-
/* @__PURE__ */ p("div", { className: "flex items-center gap-
|
|
31329
|
+
/* @__PURE__ */ p("div", { className: "flex items-center gap-4", children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ j("div", { className: "flex items-center gap-x-1.5", children: [
|
|
31330
31330
|
/* @__PURE__ */ p(
|
|
31331
31331
|
F0,
|
|
31332
31332
|
{
|
|
@@ -31336,16 +31336,16 @@ const jF = ({
|
|
|
31336
31336
|
onChange: o,
|
|
31337
31337
|
defaultChecked: i.checked,
|
|
31338
31338
|
disabled: i.disabled,
|
|
31339
|
-
className: `ring-1 ring-[#C4C4C4] focus:ring-[#C0D4FF] ${n ?? ""}`
|
|
31339
|
+
className: `ring-1 ring-[#C4C4C4] focus:ring-[#C0D4FF] cursor-pointer size-5 ${n ?? ""}`
|
|
31340
31340
|
}
|
|
31341
31341
|
),
|
|
31342
|
-
/* @__PURE__ */ p(Gd, { htmlFor: i.id, className: r ?? ""
|
|
31342
|
+
/* @__PURE__ */ p(Gd, { htmlFor: i.id, className: `text-sm font-medium text-gray-900 ${r ?? ""}`, children: i.label }),
|
|
31343
31343
|
i.tooltip ? /* @__PURE__ */ p(mx, { content: i.tooltip, trigger: i.tooltipTrigger ?? "hover", children: i.tooltipChildren ?? /* @__PURE__ */ p(
|
|
31344
31344
|
"button",
|
|
31345
31345
|
{
|
|
31346
31346
|
type: "button",
|
|
31347
31347
|
"aria-label": "Más información",
|
|
31348
|
-
className: "
|
|
31348
|
+
className: "inline-flex size-4 items-center justify-center rounded-full border border-gray-300 text-[10px] leading-none text-gray-600 hover:bg-gray-50",
|
|
31349
31349
|
children: "i"
|
|
31350
31350
|
}
|
|
31351
31351
|
) }) : null
|
|
@@ -31401,7 +31401,7 @@ const cl = ({
|
|
|
31401
31401
|
"div",
|
|
31402
31402
|
{
|
|
31403
31403
|
className: "overflow-hidden",
|
|
31404
|
-
children: /* @__PURE__ */ p("div", { className: "px-4
|
|
31404
|
+
children: /* @__PURE__ */ p("div", { className: "px-4 pb-3 text-gray-700 dark:text-gray-300", children: n })
|
|
31405
31405
|
},
|
|
31406
31406
|
"content"
|
|
31407
31407
|
)
|
|
@@ -31706,6 +31706,7 @@ const cl = ({
|
|
|
31706
31706
|
l && /* @__PURE__ */ p(Qe.HeadCell, { children: /* @__PURE__ */ p(
|
|
31707
31707
|
Yo,
|
|
31708
31708
|
{
|
|
31709
|
+
className: "bg-transparent",
|
|
31709
31710
|
checked: C,
|
|
31710
31711
|
ref: (W) => {
|
|
31711
31712
|
W && (W.indeterminate = z);
|
|
@@ -31727,7 +31728,7 @@ const cl = ({
|
|
|
31727
31728
|
const te = x ? x(W) : [], $ = f && te.length > 0, re = $ && F.includes(W.id);
|
|
31728
31729
|
return /* @__PURE__ */ j(B.Fragment, { children: [
|
|
31729
31730
|
/* @__PURE__ */ j(Qe.Row, { className: _ ?? "mth-parent-row", children: [
|
|
31730
|
-
l && /* @__PURE__ */ p(Qe.Cell, { children: /* @__PURE__ */ p(Yo, { checked: c.has(W.id), onChange: () => R(W.id) }) }),
|
|
31731
|
+
l && /* @__PURE__ */ p(Qe.Cell, { children: /* @__PURE__ */ p(Yo, { className: "bg-transparent", checked: c.has(W.id), onChange: () => R(W.id) }) }),
|
|
31731
31732
|
t.map((oe, se) => oe.relation === w ? /* @__PURE__ */ p(Qe.Cell, { className: "whitespace-nowrap font-medium text-gray-900", children: Z(W, $, re) }, `${W.id}-${se}`) : /* @__PURE__ */ p(Qe.Cell, { className: "whitespace-nowrap font-medium text-gray-900", children: q(oe, W) }, `${W.id}-${se}`))
|
|
31732
31733
|
] }),
|
|
31733
31734
|
$ && re && te.map((oe, se) => /* @__PURE__ */ j(Qe.Row, { className: T ?? "mth-sub-row", children: [
|
|
@@ -32185,16 +32186,19 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, sF
|
|
|
32185
32186
|
icon: /* @__PURE__ */ p(dl, { className: "w-5 h-5" }),
|
|
32186
32187
|
iconPosition: "right",
|
|
32187
32188
|
classes: "p-5",
|
|
32188
|
-
children: /* @__PURE__ */ p("div", { className: "border border-qb-border rounded-[10px] p-2.5", children: /* @__PURE__ */ p("div", { className: "flex flex-col items-start lg:flex-row lg:flex-wrap lg:gap-1", children: s.groups.length === 0 ? /* @__PURE__ */
|
|
32189
|
-
|
|
32190
|
-
|
|
32191
|
-
|
|
32192
|
-
|
|
32193
|
-
|
|
32194
|
-
|
|
32189
|
+
children: /* @__PURE__ */ p("div", { className: "border border-qb-border rounded-[10px] p-2.5", children: /* @__PURE__ */ p("div", { className: "flex flex-col items-start lg:flex-row lg:flex-wrap lg:gap-1", children: s.groups.length === 0 ? /* @__PURE__ */ j("div", { className: "w-full", children: [
|
|
32190
|
+
/* @__PURE__ */ p("span", { className: "text-sm text-[#9F9F9F] font-normal", children: "Selecciona las opciones y arrastra hasta aquí." }),
|
|
32191
|
+
/* @__PURE__ */ p(
|
|
32192
|
+
Hc,
|
|
32193
|
+
{
|
|
32194
|
+
conditions: [],
|
|
32195
|
+
categoryId: void 0,
|
|
32196
|
+
onDrop: (l, c) => o(s.id, null, c),
|
|
32197
|
+
onRemoveCondition: () => {
|
|
32198
|
+
}
|
|
32195
32199
|
}
|
|
32196
|
-
|
|
32197
|
-
|
|
32200
|
+
)
|
|
32201
|
+
] }) : /* @__PURE__ */ j(Tt, { children: [
|
|
32198
32202
|
s.groups.map((l, c) => /* @__PURE__ */ j(Cd, { children: [
|
|
32199
32203
|
c > 0 && /* @__PURE__ */ p("div", { className: "flex items-center justify-center my-2 lg:my-0 lg:px-2", children: /* @__PURE__ */ p("span", { className: "px-2 py-1 bg-qb-primary text-white text-xs font-semibold rounded", children: "AND" }) }),
|
|
32200
32204
|
/* @__PURE__ */ p("div", { className: "shrink-0 w-full lg:min-w-[90px]", children: /* @__PURE__ */ p(
|