@ballistix.digital/react-components 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/dist/index.js CHANGED
@@ -1702,7 +1702,7 @@ var base$c = {
1702
1702
  icon: {
1703
1703
  container: 'w-5',
1704
1704
  },
1705
- }
1705
+ },
1706
1706
  },
1707
1707
  },
1708
1708
  body: {
@@ -2402,9 +2402,11 @@ var TableColumnOptionsCustom = function (props) {
2402
2402
  ids.splice(location, 0, column.id);
2403
2403
  setColumnOrder(ids);
2404
2404
  }, []);
2405
- return (jsxRuntime.jsxs(react.Popover, { children: [jsxRuntime.jsx(react.Popover.Button, { children: trigger }), jsxRuntime.jsx(react.Popover.Panel, { className: styles$7.controls.content, children: table.getAllLeafColumns().map(function (column, index) {
2406
- var canSort = column === null || column === void 0 ? void 0 : column.getCanSort();
2407
- return (jsxRuntime.jsxs("div", { className: toClassName(styles$7.controls.dropdown.container, !canSort && 'hidden'), children: [jsxRuntime.jsx("input", { className: styles$7.controls.dropdown.input, type: "checkbox", checked: column.getIsVisible(), onChange: column.getToggleVisibilityHandler() }), jsxRuntime.jsx("label", { className: styles$7.controls.dropdown.label, children: column.columnDef.header }), jsxRuntime.jsxs("div", { className: styles$7.controls.dropdown.actions, children: [jsxRuntime.jsx(outline$2.ChevronDownIcon, { className: styles$7.controls.dropdown.upIcon, onClick: function () {
2405
+ return (jsxRuntime.jsxs(react.Popover, { children: [jsxRuntime.jsx(react.Popover.Button, { children: trigger }), jsxRuntime.jsx(react.Popover.Panel, { className: styles$7.controls.content, children: table
2406
+ .getAllLeafColumns()
2407
+ .map(function (column, index) {
2408
+ var isAccessorColumn = !!(column === null || column === void 0 ? void 0 : column.accessorFn);
2409
+ return (jsxRuntime.jsxs("div", { className: toClassName(styles$7.controls.dropdown.container, !isAccessorColumn && 'hidden'), children: [jsxRuntime.jsx("input", { className: styles$7.controls.dropdown.input, type: "checkbox", checked: column.getIsVisible(), onChange: column.getToggleVisibilityHandler() }), jsxRuntime.jsx("label", { className: styles$7.controls.dropdown.label, children: column.columnDef.header }), jsxRuntime.jsxs("div", { className: styles$7.controls.dropdown.actions, children: [jsxRuntime.jsx(outline$2.ChevronDownIcon, { className: styles$7.controls.dropdown.upIcon, onClick: function () {
2408
2410
  return handleUpdateColumnOrder(table, column, index - 1, setColumnOrder);
2409
2411
  } }), jsxRuntime.jsx(outline$2.ChevronDownIcon, { className: styles$7.controls.dropdown.downIcon, onClick: function () {
2410
2412
  return handleUpdateColumnOrder(table, column, index + 1, setColumnOrder);