@avenue-ticketing/ui 0.10.0 → 0.11.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.
@@ -3,7 +3,7 @@ import React5__default, { useState, useCallback, forwardRef, useImperativeHandle
3
3
  import { clsx } from 'clsx';
4
4
  import { twMerge } from 'tailwind-merge';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
- import { X, MoreVertical, ArrowLeft, ArrowRight, ChevronUp, ChevronDown, Pin, PinOff, EyeOff, GripVertical, ArrowDown, ArrowUp } from 'lucide-react';
6
+ import { X, MoreVertical, ArrowLeft, ArrowRight, ChevronUp, ChevronDown, Pin, PinOff, GripVertical, ArrowDown, ArrowUp } from 'lucide-react';
7
7
  import { createPortal } from 'react-dom';
8
8
 
9
9
  // src/react/table-view/meta.ts
@@ -1037,11 +1037,9 @@ var ColumnHeaderMenuInner = forwardRef(function ColumnHeaderMenuInner2({ table,
1037
1037
  const hasMoveSection = canMoveLeft || canMoveRight;
1038
1038
  const hasSortSection = !!canSort;
1039
1039
  const hasPinSection = canPin;
1040
- const hasHideSection = col.getCanHide();
1041
- if (!hasMoveSection && !hasSortSection && !hasPinSection && !hasHideSection) {
1040
+ if (!hasMoveSection && !hasSortSection && !hasPinSection) {
1042
1041
  return null;
1043
1042
  }
1044
- const showSepBeforeHide = hasHideSection && (hasMoveSection || hasSortSection || hasPinSection);
1045
1043
  return /* @__PURE__ */ jsx(
1046
1044
  "div",
1047
1045
  {
@@ -1185,19 +1183,7 @@ var ColumnHeaderMenuInner = forwardRef(function ColumnHeaderMenuInner2({ table,
1185
1183
  children: "Unpin column"
1186
1184
  }
1187
1185
  ) : null
1188
- ] }) : null,
1189
- showSepBeforeHide ? /* @__PURE__ */ jsx(DropdownSeparator, {}) : null,
1190
- hasHideSection ? /* @__PURE__ */ jsx(
1191
- DropdownItem,
1192
- {
1193
- icon: /* @__PURE__ */ jsx(EyeOff, { className: "size-3.5", strokeWidth: 2.25, "aria-hidden": true }),
1194
- onClick: () => {
1195
- col.toggleVisibility(false);
1196
- setOpen(false);
1197
- },
1198
- children: "Hide column"
1199
- }
1200
- ) : null
1186
+ ] }) : null
1201
1187
  ] })
1202
1188
  ] })
1203
1189
  }
@@ -1856,7 +1842,6 @@ function useTransitionColumnSizing(setColumnSizing) {
1856
1842
  }
1857
1843
  var EMPTY_STRING_ARRAY = [];
1858
1844
  var tableViewColumnRoundTop = "overflow-hidden rounded-t-lg";
1859
- var tableViewColumnRoundBottom = "overflow-hidden rounded-b-lg";
1860
1845
  var TableViewColumnHead = React5.memo(
1861
1846
  function TableViewColumnHead2(props) {
1862
1847
  const {
@@ -2034,8 +2019,7 @@ var TableViewColumnHead = React5.memo(
2034
2019
  var TableViewDataRow = React5.memo(function TableViewDataRow2({
2035
2020
  row,
2036
2021
  getColumnMinClassName,
2037
- options,
2038
- isLastRow
2022
+ options
2039
2023
  }) {
2040
2024
  return /* @__PURE__ */ jsxs(
2041
2025
  TableRow,
@@ -2046,10 +2030,7 @@ var TableViewDataRow = React5.memo(function TableViewDataRow2({
2046
2030
  options.rowSelection ? /* @__PURE__ */ jsx(
2047
2031
  TableCell,
2048
2032
  {
2049
- className: cn(
2050
- "w-10 min-w-10 max-w-12 shrink-0 !px-2 !py-3 text-center align-middle md:!px-2.5 md:!py-4",
2051
- isLastRow && tableViewColumnRoundBottom
2052
- ),
2033
+ className: "w-10 min-w-10 max-w-12 shrink-0 !px-2 !py-3 text-center align-middle md:!px-2.5 md:!py-4",
2053
2034
  onClick: (e) => e.stopPropagation(),
2054
2035
  children: /* @__PURE__ */ jsx("span", { className: "inline-flex w-full items-center justify-center", children: /* @__PURE__ */ jsx(
2055
2036
  Checkbox,
@@ -2081,8 +2062,7 @@ var TableViewDataRow = React5.memo(function TableViewDataRow2({
2081
2062
  columnId: cid,
2082
2063
  className: cn(
2083
2064
  !options.columnResize ? getColumnMinClassName?.(cid) : void 0,
2084
- getColumnPinningClassName(cell.column),
2085
- isLastRow && tableViewColumnRoundBottom
2065
+ getColumnPinningClassName(cell.column)
2086
2066
  ),
2087
2067
  style: { ...cellPin, ...cellSize },
2088
2068
  children: flexRender(cell.column.columnDef.cell, cell.getContext())
@@ -2250,13 +2230,12 @@ function TableView({
2250
2230
  ))
2251
2231
  ] }, headerGroup.id);
2252
2232
  }) }),
2253
- /* @__PURE__ */ jsx(TableBody, { children: pageRows.map((row, rowIndex) => /* @__PURE__ */ jsx(
2233
+ /* @__PURE__ */ jsx(TableBody, { children: pageRows.map((row) => /* @__PURE__ */ jsx(
2254
2234
  TableViewDataRow,
2255
2235
  {
2256
2236
  row,
2257
2237
  getColumnMinClassName,
2258
- options: dataRowOptions,
2259
- isLastRow: rowIndex === pageRows.length - 1
2238
+ options: dataRowOptions
2260
2239
  },
2261
2240
  row.id
2262
2241
  )) })