qbs-react-grid 1.3.1 → 1.3.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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useRef, useState } from 'react';
|
|
2
2
|
import CardMenuDropdown from './CardMenuDropdown';
|
|
3
|
-
import { CustomTableCell } from './SwitchCardColumns';
|
|
4
3
|
import { handleCellFormat } from './handleFormatCell';
|
|
5
4
|
import { ArrowUpIcon } from './icons';
|
|
6
5
|
import { getGridColsClass, getGridColSpanClass } from './store';
|
|
6
|
+
import { CustomTableCell } from './SwitchCardColumns';
|
|
7
7
|
import TooltipComponent from './ToolTip';
|
|
8
8
|
var CardComponent = function CardComponent(_ref) {
|
|
9
9
|
var columns = _ref.columns,
|
|
@@ -34,9 +34,9 @@ var CardComponent = function CardComponent(_ref) {
|
|
|
34
34
|
var _col$colSpan;
|
|
35
35
|
return /*#__PURE__*/React.createElement("div", {
|
|
36
36
|
key: index,
|
|
37
|
-
className: "grid " + getGridColSpanClass((_col$colSpan = col.colSpan) != null ? _col$colSpan : 1) + " place-content-start text-sm qbs-card-column " + (index === initialDisplayCount - 1 ? 'mr-4' : '') + " "
|
|
37
|
+
className: "grid " + getGridColSpanClass((_col$colSpan = col.colSpan) != null ? _col$colSpan : 1) + " gap-2 place-content-start text-sm qbs-card-column " + (index === initialDisplayCount - 1 ? 'mr-4' : '') + " "
|
|
38
38
|
}, /*#__PURE__*/React.createElement("p", {
|
|
39
|
-
className: " text-grey "
|
|
39
|
+
className: " text-grey qbs-card-column-title "
|
|
40
40
|
}, col.title), col.customCell || col.link ? /*#__PURE__*/React.createElement("span", {
|
|
41
41
|
className: "qbs-card-column-content mt-1 " + (!viewMore ? 'line-clamp-1' : '')
|
|
42
42
|
}, /*#__PURE__*/React.createElement(CustomTableCell, {
|
|
@@ -5,10 +5,10 @@ exports.__esModule = true;
|
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
7
|
var _CardMenuDropdown = _interopRequireDefault(require("./CardMenuDropdown"));
|
|
8
|
-
var _SwitchCardColumns = require("./SwitchCardColumns");
|
|
9
8
|
var _handleFormatCell = require("./handleFormatCell");
|
|
10
9
|
var _icons = require("./icons");
|
|
11
10
|
var _store = require("./store");
|
|
11
|
+
var _SwitchCardColumns = require("./SwitchCardColumns");
|
|
12
12
|
var _ToolTip = _interopRequireDefault(require("./ToolTip"));
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -41,9 +41,9 @@ var CardComponent = function CardComponent(_ref) {
|
|
|
41
41
|
var _col$colSpan;
|
|
42
42
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
43
43
|
key: index,
|
|
44
|
-
className: "grid " + (0, _store.getGridColSpanClass)((_col$colSpan = col.colSpan) != null ? _col$colSpan : 1) + " place-content-start text-sm qbs-card-column " + (index === initialDisplayCount - 1 ? 'mr-4' : '') + " "
|
|
44
|
+
className: "grid " + (0, _store.getGridColSpanClass)((_col$colSpan = col.colSpan) != null ? _col$colSpan : 1) + " gap-2 place-content-start text-sm qbs-card-column " + (index === initialDisplayCount - 1 ? 'mr-4' : '') + " "
|
|
45
45
|
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
46
|
-
className: " text-grey "
|
|
46
|
+
className: " text-grey qbs-card-column-title "
|
|
47
47
|
}, col.title), col.customCell || col.link ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
48
48
|
className: "qbs-card-column-content mt-1 " + (!viewMore ? 'line-clamp-1' : '')
|
|
49
49
|
}, /*#__PURE__*/_react["default"].createElement(_SwitchCardColumns.CustomTableCell, {
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useRef, useState } from 'react';
|
|
2
|
+
|
|
2
3
|
import { QbsColumnProps } from '../commontypes';
|
|
3
4
|
import CardMenuDropdown from './CardMenuDropdown';
|
|
4
|
-
import { CustomTableCell } from './SwitchCardColumns';
|
|
5
5
|
import { handleCellFormat } from './handleFormatCell';
|
|
6
6
|
import { ArrowUpIcon } from './icons';
|
|
7
7
|
import { getGridColsClass, getGridColSpanClass } from './store';
|
|
8
|
+
import { CustomTableCell } from './SwitchCardColumns';
|
|
8
9
|
import TooltipComponent from './ToolTip';
|
|
9
10
|
|
|
10
11
|
type Props = {
|
|
@@ -48,11 +49,11 @@ const CardComponent: React.FC<Props> = ({
|
|
|
48
49
|
key={index}
|
|
49
50
|
className={`grid ${getGridColSpanClass(
|
|
50
51
|
col.colSpan ?? 1
|
|
51
|
-
)} place-content-start text-sm qbs-card-column ${
|
|
52
|
+
)} gap-2 place-content-start text-sm qbs-card-column ${
|
|
52
53
|
index === initialDisplayCount - 1 ? 'mr-4' : ''
|
|
53
54
|
} `}
|
|
54
55
|
>
|
|
55
|
-
<p className=" text-grey ">{col.title}</p>
|
|
56
|
+
<p className=" text-grey qbs-card-column-title ">{col.title}</p>
|
|
56
57
|
{col.customCell || col.link ? (
|
|
57
58
|
<span className={`qbs-card-column-content mt-1 ${!viewMore ? 'line-clamp-1' : ''}`}>
|
|
58
59
|
<CustomTableCell
|