ar-design 0.4.64 → 0.4.65

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.
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import React, { useEffect, useMemo, useRef, useState } from "react";
2
3
  import "../../../assets/css/components/data-display/diagram/styles.css";
3
4
  import Grid from "../grid-system";
@@ -47,7 +47,7 @@ function TBody({ data, columns, refs, methods, states, config }) {
47
47
  const [triggerForRender, setTriggerForRender] = useState(false);
48
48
  const [rowHeights, setRowHeights] = useState([]);
49
49
  const _subrowSelector = config.subrow?.selector ?? "subitems";
50
- const _subrowButton = config.subrow?.button ?? true;
50
+ const _subrowButton = config.subrow?.button ?? false;
51
51
  const { t } = useTranslation(String(config.locale ?? "tr"));
52
52
  const renderCell = ({ item, column, index, cIndex, depth, level, height = 0, isSubrows = false }) => {
53
53
  let render;
@@ -37,7 +37,7 @@ const Table = forwardRef(({ children, trackBy, title, description, data, columns
37
37
  const lastSentRef = useRef([]);
38
38
  const _subrowOpenAutomatically = config.subrow?.openAutomatically ?? false;
39
39
  const _subrowSelector = config.subrow?.selector ?? "subitems";
40
- const _subrowButton = config.subrow?.button ?? true;
40
+ const _subrowButton = config.subrow?.button ?? false;
41
41
  const _tableClassName = ["ar-table", "scroll"];
42
42
  const [selectAll, setSelectAll] = useState(false);
43
43
  const [showSubitems, setShowSubitems] = useState({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ar-design",
3
- "version": "0.4.64",
3
+ "version": "0.4.65",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",