@asante-org/atlascopco-vt-litesitegenerator 3.8.6 → 3.8.10

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.esm.js CHANGED
@@ -4994,10 +4994,20 @@ var LsgTable = function (_a) {
4994
4994
  id = _a.id,
4995
4995
  className = _a.className;
4996
4996
  var wrapperClassName = ["table-focus", "background-color-".concat(headerBackground), "accent-color-".concat(accentColors), "no-alternating-rows-".concat(noAlternatingRows), className].filter(Boolean).join(" ");
4997
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
4997
+ // Three-column Figma examples fill the available width. Wider datasets keep
4998
+ // equal-width columns but receive a practical minimum width so mobile can
4999
+ // scroll horizontally instead of crushing every column.
5000
+ var tableStyle = headers.length > 3 ? {
5001
+ minWidth: "".concat(headers.length * 120, "px")
5002
+ } : undefined;
5003
+ return /*#__PURE__*/React.createElement(React.Fragment, null, caption ? /*#__PURE__*/React.createElement("div", {
5004
+ className: "table-caption"
5005
+ }, caption) : null, /*#__PURE__*/React.createElement("div", {
4998
5006
  id: id,
4999
5007
  className: wrapperClassName
5000
- }, /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, headers.map(function (cell, index) {
5008
+ }, /*#__PURE__*/React.createElement("table", {
5009
+ style: tableStyle
5010
+ }, /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, headers.map(function (cell, index) {
5001
5011
  return /*#__PURE__*/React.createElement("td", {
5002
5012
  key: "header-".concat(index)
5003
5013
  }, cell);
@@ -5009,9 +5019,7 @@ var LsgTable = function (_a) {
5009
5019
  key: "cell-".concat(rowIndex, "-").concat(cellIndex)
5010
5020
  }, cell);
5011
5021
  }));
5012
- })))), /*#__PURE__*/React.createElement("div", {
5013
- className: "table-caption"
5014
- }, caption));
5022
+ })))));
5015
5023
  };
5016
5024
 
5017
5025
  var LsgFormFieldText = function (_a) {