@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/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  <div align="center">
2
2
 
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://dynostack-react-grid.vercel.app/brand/dynostack-grid-wordmark-dark.svg">
5
+ <img src="https://dynostack-react-grid.vercel.app/brand/dynostack-grid-wordmark-light.svg" alt="Dynostack Grid" width="360">
6
+ </picture>
7
+
3
8
  # @dynostack/react-grid
4
9
 
5
10
  **Enterprise-grade React data grid. Drop-in.**
@@ -21,6 +26,8 @@ Try every feature on real sample data, customize themes and density, share a con
21
26
 
22
27
  A single `<DataTable />` component that gives you ag-grid–level functionality with a fraction of the API surface and a shadcn/ui aesthetic. Every behavior is opt-in via props — drop it in and it works; configure it and it scales.
23
28
 
29
+ Dynostack is a growing family of tools. Grid is the first product, with a shared brand system designed for future modules. [Download the Dynostack and Grid logos](https://dynostack-react-grid.vercel.app/brand.html).
30
+
24
31
  ## Showcase
25
32
 
26
33
  A graphite studio for your data. Switch between light and dark, configure every feature, and copy the React configuration in the [live playground](https://dynostack-react-grid.vercel.app/playground).
package/dist/index.cjs CHANGED
@@ -1914,7 +1914,7 @@ function EditableCell({
1914
1914
  {
1915
1915
  className: cn(
1916
1916
  "flex h-7 items-center gap-1.5 rounded px-1.5 text-sm",
1917
- isEditable && "cursor-text outline-1 outline-transparent transition-colors hover:bg-muted/60 hover:outline-border",
1917
+ isEditable && "cursor-text transition-colors hover:bg-muted/60",
1918
1918
  align === "right" && "justify-end",
1919
1919
  align === "center" && "justify-center"
1920
1920
  ),
@@ -1937,6 +1937,7 @@ function EditableCell({
1937
1937
  return /* @__PURE__ */ jsxRuntime.jsx(
1938
1938
  "select",
1939
1939
  {
1940
+ "data-cell-editor": "",
1940
1941
  value: String(local ?? ""),
1941
1942
  onChange: (e) => {
1942
1943
  setLocal(e.target.value);
@@ -1958,7 +1959,15 @@ function EditableCell({
1958
1959
  value: String(local ?? ""),
1959
1960
  onValueChange: (v) => commit(v),
1960
1961
  children: [
1961
- /* @__PURE__ */ jsxRuntime.jsx(SelectTrigger, { size: "sm", className: "h-7 w-full text-xs", children: /* @__PURE__ */ jsxRuntime.jsx(SelectValue, {}) }),
1962
+ /* @__PURE__ */ jsxRuntime.jsx(
1963
+ SelectTrigger,
1964
+ {
1965
+ "data-cell-editor": "",
1966
+ size: "sm",
1967
+ className: "h-7 w-full text-xs focus-visible:ring-0",
1968
+ children: /* @__PURE__ */ jsxRuntime.jsx(SelectValue, {})
1969
+ }
1970
+ ),
1962
1971
  /* @__PURE__ */ jsxRuntime.jsx(SelectContent, { children: opts.map((o) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { value: o.value, children: o.label }, o.value)) })
1963
1972
  ]
1964
1973
  }
@@ -1968,6 +1977,8 @@ function EditableCell({
1968
1977
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-7 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
1969
1978
  Checkbox,
1970
1979
  {
1980
+ "data-cell-editor": "",
1981
+ className: "focus-visible:ring-0",
1971
1982
  checked: !!local,
1972
1983
  onCheckedChange: (c) => commit(!!c),
1973
1984
  autoFocus: true
@@ -1977,6 +1988,7 @@ function EditableCell({
1977
1988
  return /* @__PURE__ */ jsxRuntime.jsx(
1978
1989
  Input,
1979
1990
  {
1991
+ "data-cell-editor": "",
1980
1992
  ref: inputRef,
1981
1993
  type: editor === "number" || editor === "currency" ? "number" : editor === "date" ? "date" : "text",
1982
1994
  value: local == null ? "" : String(local),
@@ -1990,7 +2002,7 @@ function EditableCell({
1990
2002
  onBlur: () => commit(local),
1991
2003
  onKeyDown: handleKey,
1992
2004
  className: cn(
1993
- "h-7 px-1.5 text-sm",
2005
+ "h-7 px-1.5 text-sm focus-visible:ring-0",
1994
2006
  align === "right" && "text-right",
1995
2007
  align === "center" && "text-center"
1996
2008
  )