@dynostack/react-grid 0.5.0 → 0.5.1

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.js CHANGED
@@ -1912,7 +1912,7 @@ function EditableCell({
1912
1912
  {
1913
1913
  className: cn(
1914
1914
  "flex h-7 items-center gap-1.5 rounded px-1.5 text-sm",
1915
- isEditable && "cursor-text outline-1 outline-transparent transition-colors hover:bg-muted/60 hover:outline-border",
1915
+ isEditable && "cursor-text transition-colors hover:bg-muted/60",
1916
1916
  align === "right" && "justify-end",
1917
1917
  align === "center" && "justify-center"
1918
1918
  ),
@@ -1935,6 +1935,7 @@ function EditableCell({
1935
1935
  return /* @__PURE__ */ jsx(
1936
1936
  "select",
1937
1937
  {
1938
+ "data-cell-editor": "",
1938
1939
  value: String(local ?? ""),
1939
1940
  onChange: (e) => {
1940
1941
  setLocal(e.target.value);
@@ -1956,7 +1957,15 @@ function EditableCell({
1956
1957
  value: String(local ?? ""),
1957
1958
  onValueChange: (v) => commit(v),
1958
1959
  children: [
1959
- /* @__PURE__ */ jsx(SelectTrigger, { size: "sm", className: "h-7 w-full text-xs", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
1960
+ /* @__PURE__ */ jsx(
1961
+ SelectTrigger,
1962
+ {
1963
+ "data-cell-editor": "",
1964
+ size: "sm",
1965
+ className: "h-7 w-full text-xs focus-visible:ring-0",
1966
+ children: /* @__PURE__ */ jsx(SelectValue, {})
1967
+ }
1968
+ ),
1960
1969
  /* @__PURE__ */ jsx(SelectContent, { children: opts.map((o) => /* @__PURE__ */ jsx(SelectItem, { value: o.value, children: o.label }, o.value)) })
1961
1970
  ]
1962
1971
  }
@@ -1966,6 +1975,8 @@ function EditableCell({
1966
1975
  return /* @__PURE__ */ jsx("div", { className: "flex h-7 items-center justify-center", children: /* @__PURE__ */ jsx(
1967
1976
  Checkbox,
1968
1977
  {
1978
+ "data-cell-editor": "",
1979
+ className: "focus-visible:ring-0",
1969
1980
  checked: !!local,
1970
1981
  onCheckedChange: (c) => commit(!!c),
1971
1982
  autoFocus: true
@@ -1975,6 +1986,7 @@ function EditableCell({
1975
1986
  return /* @__PURE__ */ jsx(
1976
1987
  Input,
1977
1988
  {
1989
+ "data-cell-editor": "",
1978
1990
  ref: inputRef,
1979
1991
  type: editor === "number" || editor === "currency" ? "number" : editor === "date" ? "date" : "text",
1980
1992
  value: local == null ? "" : String(local),
@@ -1988,7 +2000,7 @@ function EditableCell({
1988
2000
  onBlur: () => commit(local),
1989
2001
  onKeyDown: handleKey,
1990
2002
  className: cn(
1991
- "h-7 px-1.5 text-sm",
2003
+ "h-7 px-1.5 text-sm focus-visible:ring-0",
1992
2004
  align === "right" && "text-right",
1993
2005
  align === "center" && "text-center"
1994
2006
  )