ar-design 0.2.51 → 0.2.53

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.
@@ -264,7 +264,7 @@ const Table = forwardRef(({ children, title, description, data, columns, actions
264
264
  if (c.config?.textWrap)
265
265
  _className.push(`text-${c.config.textWrap}`);
266
266
  return (React.createElement("td", { key: `cell-${index}-${cIndex}`, className: _className.join(" "), style: c.config?.width ? { minWidth: c.config.width, maxWidth: c.config.width } : {}, "data-sticky-position": c.config?.sticky },
267
- React.createElement("div", { style: { paddingLeft: `${depth}rem` }, className: "table-cell" }, React.isValidElement(render) ? render : String(render))));
267
+ React.createElement("div", { style: { paddingLeft: `${depth == 0 ? 1 : depth}rem` }, className: "table-cell" }, React.isValidElement(render) ? render : String(render))));
268
268
  };
269
269
  const SubitemList = ({ items, columns, index, depth }) => {
270
270
  return items.map((subitem, subindex) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ar-design",
3
- "version": "0.2.51",
3
+ "version": "0.2.53",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -45,8 +45,8 @@
45
45
  "license": "MIT",
46
46
  "description": "AR Design is a (react | nextjs) ui library.",
47
47
  "peerDependencies": {
48
- "react": "^18.3.1",
49
- "react-dom": "^18.3.1"
48
+ "react": ">=18.0.0",
49
+ "react-dom": ">=18.0.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^22.2.0",