@helpwave/hightide 0.6.7 → 0.6.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/index.mjs CHANGED
@@ -13300,6 +13300,7 @@ var TableBody = React5.memo(function TableBodyVisual() {
13300
13300
  "tr",
13301
13301
  {
13302
13302
  onClick: () => onRowClick?.(row, table),
13303
+ "data-clickable": PropsUtil.dataAttributes.bool(!!onRowClick),
13303
13304
  className: clsx26("table-body-row", BagFunctionUtil.resolve(table.options.meta?.bodyRowClassName, row.original)),
13304
13305
  children: row.getVisibleCells().map((cell) => {
13305
13306
  return /* @__PURE__ */ jsx56("td", { className: clsx26("table-body-cell", cell.column.columnDef.meta?.className), children: flexRender(
@@ -15135,12 +15136,10 @@ var TablePagination = ({ allowChangingPageSize = true, pageSizeOptions, ...props
15135
15136
  ] }) });
15136
15137
  };
15137
15138
 
15138
- // src/components/layout/table/TableWithSelectionProvider.tsx
15139
- import clsx35 from "clsx";
15140
-
15141
15139
  // src/components/user-interaction/Checkbox.tsx
15142
15140
  import { Check as Check2, Minus as Minus2 } from "lucide-react";
15143
15141
  import { useCallback as useCallback23 } from "react";
15142
+ import clsx35 from "clsx";
15144
15143
  import { jsx as jsx71, jsxs as jsxs42 } from "react/jsx-runtime";
15145
15144
  var Checkbox = ({
15146
15145
  value = false,
@@ -15177,7 +15176,6 @@ var Checkbox = ({
15177
15176
  props.onKeyDown?.(event);
15178
15177
  }
15179
15178
  },
15180
- "data-name": PropsUtil.dataAttributes.name("checkbox", props),
15181
15179
  "data-checked": !indeterminate ? value : "indeterminate",
15182
15180
  "data-size": size ?? void 0,
15183
15181
  ...PropsUtil.dataAttributes.interactionStates({ disabled, invalid, readOnly, required }),
@@ -15185,9 +15183,10 @@ var Checkbox = ({
15185
15183
  tabIndex: disabled ? -1 : 0,
15186
15184
  "aria-checked": indeterminate ? "mixed" : value,
15187
15185
  ...PropsUtil.aria.interactionStates({ disabled, invalid, readOnly, required }, props),
15186
+ className: clsx35("checkbox", props.className),
15188
15187
  children: [
15189
- /* @__PURE__ */ jsx71(Visibility, { isVisible: indeterminate, children: /* @__PURE__ */ jsx71(Minus2, { "data-name": "checkbox-indicator", "aria-hidden": true }) }),
15190
- /* @__PURE__ */ jsx71(Visibility, { isVisible: !indeterminate && (alwaysShowCheckIcon || value), children: /* @__PURE__ */ jsx71(Check2, { "data-name": "checkbox-indicator", "aria-hidden": true }) })
15188
+ /* @__PURE__ */ jsx71(Visibility, { isVisible: indeterminate, children: /* @__PURE__ */ jsx71(Minus2, { className: "checkbox-indicator", "aria-hidden": true }) }),
15189
+ /* @__PURE__ */ jsx71(Visibility, { isVisible: !indeterminate && (alwaysShowCheckIcon || value), children: /* @__PURE__ */ jsx71(Check2, { className: "checkbox-indicator", "aria-hidden": true }) })
15191
15190
  ]
15192
15191
  }
15193
15192
  );
@@ -15219,7 +15218,6 @@ var TableWithSelectionProvider = ({
15219
15218
  disableClickRowClickSelection = false,
15220
15219
  selectionRowId = "selection",
15221
15220
  onRowClick,
15222
- meta,
15223
15221
  ...props
15224
15222
  }) => {
15225
15223
  const columnDef = useMemo27(() => [
@@ -15279,13 +15277,6 @@ var TableWithSelectionProvider = ({
15279
15277
  }
15280
15278
  onRowClick?.(row, table);
15281
15279
  }, [disableClickRowClickSelection, onRowClick]),
15282
- meta: {
15283
- ...meta,
15284
- bodyRowClassName: clsx35(
15285
- { "cursor-pointer": !disableClickRowClickSelection },
15286
- meta?.bodyRowClassName
15287
- )
15288
- },
15289
15280
  children
15290
15281
  }
15291
15282
  );