@facter/ds-core 1.7.7 → 1.8.0

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.mjs CHANGED
@@ -191,6 +191,7 @@ var Input = React10.forwardRef(
191
191
  variant: error ? "error" : variant,
192
192
  inputSize
193
193
  }),
194
+ !label && "h-9 pt-0 pb-0 py-2",
194
195
  Icon2 && "pl-10",
195
196
  type === "password" && "pr-11",
196
197
  className
@@ -583,6 +584,7 @@ var Select = React10.forwardRef(
583
584
  variant: error ? "error" : variant,
584
585
  selectSize
585
586
  }),
587
+ !label && "h-9 pt-0 pb-0 py-2",
586
588
  Icon2 && "pl-10",
587
589
  "flex items-center justify-between",
588
590
  className
@@ -1457,6 +1459,7 @@ var DataTableContent = React10.memo(function DataTableContent2({
1457
1459
  stickyHeader = false,
1458
1460
  stripedRows = false,
1459
1461
  highlightOnHover = true,
1462
+ onRowClick,
1460
1463
  className
1461
1464
  }) {
1462
1465
  const table = useDataTable();
@@ -1496,8 +1499,10 @@ var DataTableContent = React10.memo(function DataTableContent2({
1496
1499
  "data-state": row.getIsSelected() && "selected",
1497
1500
  className: cn(
1498
1501
  highlightOnHover && "hover:bg-muted/50",
1499
- stripedRows && index % 2 === 1 && "bg-muted/30"
1502
+ stripedRows && index % 2 === 1 && "bg-muted/30",
1503
+ onRowClick && "cursor-pointer"
1500
1504
  ),
1505
+ onClick: onRowClick ? () => onRowClick(row) : void 0,
1501
1506
  children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx(TableCell, { className: cellClasses, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))
1502
1507
  },
1503
1508
  row.id
@@ -1509,7 +1514,7 @@ var DataTableToolbar = React10.memo(function DataTableToolbar2({
1509
1514
  className,
1510
1515
  children
1511
1516
  }) {
1512
- return /* @__PURE__ */ jsx("div", { className: cn("flex items-center justify-between gap-2", className), children });
1517
+ return /* @__PURE__ */ jsx("div", { className: cn("flex items-center justify-between gap-2 bg-accent/50 p-4 rounded-t-lg", className), children });
1513
1518
  });
1514
1519
  function useDebounce(value, delay = 300) {
1515
1520
  const [debouncedValue, setDebouncedValue] = React10.useState(value);
@@ -1836,6 +1841,7 @@ var checkboxVariants = cva(
1836
1841
  variants: {
1837
1842
  variant: {
1838
1843
  default: "border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
1844
+ muted: "border-muted-foreground/40 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
1839
1845
  secondary: "border-secondary data-[state=checked]:bg-secondary data-[state=checked]:text-secondary-foreground",
1840
1846
  outline: "border-border data-[state=checked]:bg-background data-[state=checked]:text-primary data-[state=checked]:border-primary"
1841
1847
  },
@@ -2270,7 +2276,7 @@ function DataTableTabs({
2270
2276
  return /* @__PURE__ */ jsx(
2271
2277
  "div",
2272
2278
  {
2273
- className: cn("flex items-center gap-1 border-b", className),
2279
+ className: cn("flex items-center gap-1", className),
2274
2280
  role: "tablist",
2275
2281
  "aria-label": "Filtros",
2276
2282
  children: tabs.map((tab) => {