@economic/taco 1.40.0 → 1.40.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3775,7 +3775,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
3775
3775
  side: placement,
3776
3776
  sideOffset: 3
3777
3777
  }), /*#__PURE__*/React.createElement("div", {
3778
- className: "xs:max-w-[theme(spacing.56)] max-w-[theme(spacing.32)] animate-[fade-in_150ms] rounded-sm bg-blue-900/90 px-2 py-1 text-xs font-bold text-white opacity-90",
3778
+ className: "xs:max-w-[theme(spacing.56)] max-w-[theme(spacing.32)] animate-[fade-in_150ms] rounded-sm bg-blue-900 px-2 py-1 text-xs font-bold text-white",
3779
3779
  "data-taco": "tooltip",
3780
3780
  style: {
3781
3781
  transformOrigin: 'var(--radix-tooltip-content-transform-origin)'
@@ -7055,8 +7055,16 @@ const replaceWithShortform = key => {
7055
7055
  case 'Space':
7056
7056
  case ' ':
7057
7057
  return '␣';
7058
+ case 'ArrowLeft':
7059
+ return '◄';
7060
+ case 'ArrowRight':
7061
+ return '►';
7062
+ case 'ArrowUp':
7063
+ return '▲';
7064
+ case 'ArrowDown':
7065
+ return '▼';
7058
7066
  default:
7059
- return String(key).toLocaleUpperCase();
7067
+ return key.length === 1 ? key.toLocaleUpperCase() : key;
7060
7068
  }
7061
7069
  };
7062
7070
  const getShortcutText = key => {
@@ -7086,7 +7094,7 @@ const Shortcut = ({
7086
7094
  className: className
7087
7095
  }), texts.map(key => /*#__PURE__*/React__default.createElement("kbd", {
7088
7096
  key: key,
7089
- className: "font-display bg-grey-300/[0.25] rounded px-1 text-center"
7097
+ className: "font-display bg-grey-300/[0.25] rounded-sm px-1 text-center font-bold text-white"
7090
7098
  }, key)));
7091
7099
  };
7092
7100
 
@@ -11754,7 +11762,6 @@ const ExpandCell = /*#__PURE__*/React__default.memo(({
11754
11762
  }
11755
11763
  }))
11756
11764
  }, /*#__PURE__*/React__default.createElement(IconButton, {
11757
- title: isExpanded ? texts.table2.columns.expansion.collapse : texts.table2.columns.expansion.expand,
11758
11765
  appearance: "discrete",
11759
11766
  icon: isExpanded ? 'chevron-down' : 'chevron-right',
11760
11767
  onClick: event => {
@@ -11772,7 +11779,6 @@ function createRowExpansionColumn(expandedRowRenderer, texts) {
11772
11779
  }) => /*#__PURE__*/React__default.createElement(Tooltip, {
11773
11780
  title: table.getIsSomeRowsExpanded() ? texts.table2.columns.expansion.collapseAll : texts.table2.columns.expansion.expandAll
11774
11781
  }, /*#__PURE__*/React__default.createElement(IconButton, {
11775
- title: table.getIsSomeRowsExpanded() ? texts.table2.columns.expansion.collapseAll : texts.table2.columns.expansion.expandAll,
11776
11782
  appearance: "discrete",
11777
11783
  className: "-mb-2 -mt-1.5",
11778
11784
  icon: table.getIsSomeRowsExpanded() ? 'chevron-down-double' : 'chevron-right-double',
@@ -13163,7 +13169,7 @@ const Footer$3 = function Footer(props) {
13163
13169
  ...columnProps
13164
13170
  } = props;
13165
13171
  const isFrozen = !!footer.column.getIsPinned();
13166
- const className = cn('group/header sticky bottom-0 bg-white border-t-2 relative z-[1] h-[calc(theme(spacing.10)+2px)]', getCellSizingClasses('normal'), {
13172
+ const className = cn('group/header sticky bottom-0 bg-white border-t-2 relative z-[1]', 'flex items-center px-4 h-[calc(theme(spacing.10)+2px)]', {
13167
13173
  '!z-[2]': isFrozen,
13168
13174
  '!shadow-none': isInternalColumn(footer.id)
13169
13175
  }, props.className);
@@ -15130,10 +15136,10 @@ const BaseTable2 = /*#__PURE__*/React__default.forwardRef(function BaseTable2(pr
15130
15136
  index: cellIndex,
15131
15137
  scrolled: scrolled,
15132
15138
  table: table
15133
- }, footers[footer.id] ? footers[footer.id](rows.map(row => row.original[footer.id])) : null)))))), /*#__PURE__*/React__default.createElement(Summary, {
15139
+ }, footers[footer.id] ? footers[footer.id](rows.map(row => row.original[footer.id])) : null)))), /*#__PURE__*/React__default.createElement(Summary, {
15134
15140
  length: length !== null && length !== void 0 ? length : rows.length,
15135
15141
  table: table
15136
- }), !!_experimentalActionsForTable && table.options.enableRowSelection && (table.getIsSomeRowsSelected() || table.getIsAllRowsSelected()) ? /*#__PURE__*/React__default.createElement(BatchActionsMenu, {
15142
+ }))), !!_experimentalActionsForTable && table.options.enableRowSelection && (table.getIsSomeRowsSelected() || table.getIsAllRowsSelected()) ? /*#__PURE__*/React__default.createElement(BatchActionsMenu, {
15137
15143
  className: "fixed-center-x bottom-0 z-50 mb-4 print:hidden",
15138
15144
  actionsForTable: _experimentalActionsForTable,
15139
15145
  summary: _experimentalActionsForTableSummary,
@@ -15151,10 +15157,8 @@ const Summary = ({
15151
15157
  const label = selectedLength > 0 ? texts.table2.footer.summary.selected : texts.table2.footer.summary.records;
15152
15158
  const total = selectedLength > 0 ? selectedLength : length;
15153
15159
  return /*#__PURE__*/React__default.createElement("div", {
15154
- className: "z-10 -mt-4"
15155
- }, /*#__PURE__*/React__default.createElement("div", {
15156
- className: cn('-mt-10 ml-px h-7 w-fit rounded-bl bg-white !pr-2 shadow-[6px_0px_6px_theme(colors.white)]', getCellSizingClasses('normal'))
15157
- }, label, "\u00A0", /*#__PURE__*/React__default.createElement("strong", null, total)));
15160
+ className: cn('sticky bottom-0 left-0 z-10 -mt-10 flex h-10 w-fit items-center whitespace-nowrap bg-white px-4 !pr-3 shadow-[6px_0px_6px_theme(colors.white)]')
15161
+ }, label, "\u00A0", /*#__PURE__*/React__default.createElement("strong", null, total));
15158
15162
  };
15159
15163
  const Table2 = /*#__PURE__*/React__default.forwardRef(function Table2(props, ref) {
15160
15164
  const key = React__default.useMemo(() => String('tableKey_' + String(props.children)), [props.children]);