@rebasepro/ui 0.1.0 → 0.1.2

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.umd.js CHANGED
@@ -7423,7 +7423,7 @@
7423
7423
  const thisColumnIsResizing = isResizingIndex === columnIndex;
7424
7424
  const anotherColumnIsResizing = isResizingIndex !== columnIndex && isResizingIndex > 0;
7425
7425
  const hovered = !anotherColumnIsResizing && (onHover || thisColumnIsResizing);
7426
- const t3 = isDragging ? "bg-primary-bg dark:bg-primary-bg-dark" : "bg-surface-50 dark:bg-surface-800";
7426
+ const t3 = isDragging ? "bg-primary-bg dark:bg-primary-bg-dark" : "bg-surface-50 dark:bg-surface-900";
7427
7427
  const t4 = !isDragging && "hover:bg-surface-100 dark:hover:bg-surface-900 hover:bg-opacity-50 hover:bg-surface-100/50 dark:hover:bg-opacity-50 dark:hover:bg-surface-900/50";
7428
7428
  const t5 = column.frozen ? "sticky left-0 z-10" : "relative z-0";
7429
7429
  const t6 = isDraggable && "cursor-grab";
@@ -7514,7 +7514,7 @@
7514
7514
  }
7515
7515
  let t18;
7516
7516
  if ($[28] !== column.key || $[29] !== column.sortable || $[30] !== hovered || $[31] !== onColumnSort || $[32] !== onHover || $[33] !== openFilter || $[34] !== sort) {
7517
- t18 = column.sortable && (sort || hovered || openFilter) && /* @__PURE__ */ jsxRuntime.jsx(Badge, { color: "secondary", invisible: !sort, children: /* @__PURE__ */ jsxRuntime.jsxs(IconButton, { size: "small", className: onHover || openFilter ? "bg-white dark:bg-surface-800" : void 0, onClick: () => {
7517
+ t18 = column.sortable && (sort || hovered || openFilter) && /* @__PURE__ */ jsxRuntime.jsx(Badge, { color: "secondary", invisible: !sort, children: /* @__PURE__ */ jsxRuntime.jsxs(IconButton, { size: "small", className: onHover || openFilter ? "bg-white dark:bg-surface-900" : void 0, onClick: () => {
7518
7518
  onColumnSort(column.key);
7519
7519
  }, children: [
7520
7520
  !sort && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowUpIcon, {}),
@@ -7546,7 +7546,7 @@
7546
7546
  }
7547
7547
  let t20;
7548
7548
  if ($[39] !== column || $[40] !== createFilterField || $[41] !== filter || $[42] !== hidden || $[43] !== onHover || $[44] !== openFilter || $[45] !== update) {
7549
- t20 = column.filter && createFilterField && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(Badge, { color: "secondary", invisible: !filter, children: /* @__PURE__ */ jsxRuntime.jsx(Popover, { open: openFilter, onOpenChange: setOpenFilter, className: hidden ? "hidden" : void 0, modal: true, trigger: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { className: onHover || openFilter ? "bg-white dark:bg-surface-800" : void 0, size: "small", onClick: handleSettingsClick, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FilterIcon, { size: iconSize.small }) }), children: /* @__PURE__ */ jsxRuntime.jsx(FilterForm, { column, filter, onHover, onFilterUpdate: update, createFilterField, hidden, setHidden }) }) }) });
7549
+ t20 = column.filter && createFilterField && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(Badge, { color: "secondary", invisible: !filter, children: /* @__PURE__ */ jsxRuntime.jsx(Popover, { open: openFilter, onOpenChange: setOpenFilter, className: hidden ? "hidden" : void 0, modal: true, trigger: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { className: onHover || openFilter ? "bg-white dark:bg-surface-900" : void 0, size: "small", onClick: handleSettingsClick, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FilterIcon, { size: iconSize.small }) }), children: /* @__PURE__ */ jsxRuntime.jsx(FilterForm, { column, filter, onHover, onFilterUpdate: update, createFilterField, hidden, setHidden }) }) }) });
7550
7550
  $[39] = column;
7551
7551
  $[40] = createFilterField;
7552
7552
  $[41] = filter;
@@ -7975,7 +7975,7 @@
7975
7975
  setIsResizing(index_0);
7976
7976
  setCursorDocument(true);
7977
7977
  }, [setCursorDocument]);
7978
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cls(defaultBorderMixin, "z-20 sticky min-w-full flex w-fit flex-row top-0 left-0 border-b bg-surface-50 dark:bg-surface-800"), style: {
7978
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cls(defaultBorderMixin, "z-20 sticky min-w-full flex w-fit flex-row top-0 left-0 border-b bg-surface-50 dark:bg-surface-900"), style: {
7979
7979
  height: headerHeight
7980
7980
  }, children: [
7981
7981
  columns.map((column_0, columnIndex) => {
@@ -8020,7 +8020,7 @@
8020
8020
  const onClick = t1;
8021
8021
  let t2;
8022
8022
  if ($[4] !== hoverRow || $[5] !== onRowClick || $[6] !== rowClassName || $[7] !== rowData) {
8023
- t2 = cls("flex min-w-full text-sm border-b border-surface-200/60 dark:border-surface-700/60 dark:bg-surface-900", rowClassName ? rowClassName(rowData) : "", {
8023
+ t2 = cls("flex min-w-full text-sm border-b border-surface-200/60 dark:border-surface-700/60 dark:bg-surface-800", rowClassName ? rowClassName(rowData) : "", {
8024
8024
  "hover:!bg-surface-50/75 dark:hover:!bg-surface-800/75": hoverRow,
8025
8025
  "cursor-pointer ": onRowClick
8026
8026
  });
@@ -8404,7 +8404,7 @@
8404
8404
  t5 = $[8];
8405
8405
  }
8406
8406
  const style = t5;
8407
- const t6 = frozen && "sticky left-0 z-10 bg-white dark:bg-surface-800";
8407
+ const t6 = frozen && "sticky left-0 z-10 bg-white dark:bg-surface-900";
8408
8408
  let t7;
8409
8409
  if ($[9] !== t6) {
8410
8410
  t7 = cls("flex-shrink-0", t6);
@@ -8485,7 +8485,7 @@
8485
8485
  columnIndex,
8486
8486
  extraData
8487
8487
  }
8488
- ) }, `cell_wrapper_${column.key}`) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("flex-shrink-0 relative", column.frozen && "sticky left-0 z-10 bg-white dark:bg-surface-800"), style: {
8488
+ ) }, `cell_wrapper_${column.key}`) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("flex-shrink-0 relative", column.frozen && "sticky left-0 z-10 bg-white dark:bg-surface-900"), style: {
8489
8489
  minWidth: column.width,
8490
8490
  maxWidth: column.width,
8491
8491
  width: column.width