@lincros-ui/components 0.2.25 → 0.2.26
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/index.cjs +0 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5480,7 +5480,6 @@ var FilterBar = ({
|
|
|
5480
5480
|
updateFilter(key, newArray);
|
|
5481
5481
|
};
|
|
5482
5482
|
const activeFiltersCount = [
|
|
5483
|
-
filters.vehicleId,
|
|
5484
5483
|
filters.operatorType,
|
|
5485
5484
|
filters.startDate,
|
|
5486
5485
|
filters.endDate,
|
|
@@ -5492,27 +5491,6 @@ var FilterBar = ({
|
|
|
5492
5491
|
].filter((value) => value !== "").length;
|
|
5493
5492
|
return /* @__PURE__ */ jsxs("div", { className: "bg-white border-b border-gray-200 p-4 space-y-4", children: [
|
|
5494
5493
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 flex-wrap", children: [
|
|
5495
|
-
/* @__PURE__ */ jsx("div", { className: "relative flex-shrink-0", children: /* @__PURE__ */ jsx(
|
|
5496
|
-
Input,
|
|
5497
|
-
{
|
|
5498
|
-
placeholder: "Buscar por placa...",
|
|
5499
|
-
value: filters.vehicleId,
|
|
5500
|
-
onChange: (e) => updateFilter("vehicleId", e.target.value),
|
|
5501
|
-
leftIcon: /* @__PURE__ */ jsx(Search, { className: "w-4 h-4" }),
|
|
5502
|
-
rightIcon: filters.vehicleId ? /* @__PURE__ */ jsx(
|
|
5503
|
-
Button,
|
|
5504
|
-
{
|
|
5505
|
-
variant: "ghost",
|
|
5506
|
-
size: "sm",
|
|
5507
|
-
onClick: () => clearFilter("vehicleId"),
|
|
5508
|
-
className: "h-6 w-6 p-0 hover:bg-gray-100 -mr-2",
|
|
5509
|
-
children: /* @__PURE__ */ jsx(X, { className: "w-3 h-3" })
|
|
5510
|
-
}
|
|
5511
|
-
) : void 0,
|
|
5512
|
-
className: "w-48",
|
|
5513
|
-
showValidationIcon: false
|
|
5514
|
-
}
|
|
5515
|
-
) }),
|
|
5516
5494
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
5517
5495
|
/* @__PURE__ */ jsx(
|
|
5518
5496
|
Input,
|
|
@@ -5780,20 +5758,6 @@ var FilterBar = ({
|
|
|
5780
5758
|
] }),
|
|
5781
5759
|
activeFiltersCount > 0 && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 flex-wrap", children: [
|
|
5782
5760
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-gray-600", children: "Filtros ativos:" }),
|
|
5783
|
-
filters.vehicleId && /* @__PURE__ */ jsxs(Badge, { variant: "secondary", className: "flex items-center gap-1", children: [
|
|
5784
|
-
"Placa: ",
|
|
5785
|
-
filters.vehicleId,
|
|
5786
|
-
/* @__PURE__ */ jsx(
|
|
5787
|
-
Button,
|
|
5788
|
-
{
|
|
5789
|
-
variant: "ghost",
|
|
5790
|
-
size: "sm",
|
|
5791
|
-
onClick: () => clearFilter("vehicleId"),
|
|
5792
|
-
className: "icon-size p-0 hover:bg-gray-200 ml-1",
|
|
5793
|
-
children: /* @__PURE__ */ jsx(X, { className: "w-3 h-3" })
|
|
5794
|
-
}
|
|
5795
|
-
)
|
|
5796
|
-
] }),
|
|
5797
5761
|
filters.operatorType && /* @__PURE__ */ jsxs(Badge, { variant: "secondary", className: "flex items-center gap-1", children: [
|
|
5798
5762
|
"Tipo: ",
|
|
5799
5763
|
filters.operatorType === "ia" ? "IA" : "Humano",
|