@galaxy-io/dls 2.13.0 → 2.13.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.
@@ -40,7 +40,7 @@ interface InfiniteTableBaseProps<TData> extends AriaAttributes {
40
40
  emptyState?: ReactNode;
41
41
  /** Called when the last row comes within 500px of view, for loading the next page; called again only after `data` grows. Setting it also makes sorting server-side. */
42
42
  onEndReached?: () => void;
43
- /** Called when a row is clicked or Enter is pressed on it. Not called for clicks on a control inside the row. */
43
+ /** Called when a row is clicked or Enter is pressed on it. Not called for clicks on a control inside the row: a native control or an element with an interactive role (`combobox`, `switch`, `menuitem`, …). */
44
44
  onRowClick?: (row: TData, event: MouseEvent<HTMLTableRowElement> | KeyboardEvent<HTMLTableRowElement>) => void;
45
45
  /** Id of the row shown as current, such as the one open in a side panel. Display only: set it from `onRowClick`. */
46
46
  activeRowId?: string | null;
@@ -513,8 +513,27 @@ function TableColumnsMenu({ entries, metrics, onToggle, onReset }) {
513
513
  }
514
514
  /** Spread on a built-in control outside the roving row: reachable by pointer, not by Tab. */
515
515
  var UNTABBABLE = { tabIndex: -1 };
516
- /** Clicks on these, inside a row, never activate the row. */
517
- var INTERACTIVE_SELECTOR = "a[href], button, input, select, textarea, [role=\"button\"], [role=\"link\"], [role=\"checkbox\"]";
516
+ /**
517
+ * Clicks on these, inside a row, never activate the row: native controls and the interactive
518
+ * ARIA roles a cell can hold (a `SelectInput` trigger is a `div` with `role="combobox"`).
519
+ */
520
+ var INTERACTIVE_SELECTOR = [
521
+ "a[href]",
522
+ "button",
523
+ "input",
524
+ "select",
525
+ "textarea",
526
+ "[role=\"button\"]",
527
+ "[role=\"link\"]",
528
+ "[role=\"checkbox\"]",
529
+ "[role=\"combobox\"]",
530
+ "[role=\"switch\"]",
531
+ "[role=\"radio\"]",
532
+ "[role=\"tab\"]",
533
+ "[role=\"slider\"]",
534
+ "[role=\"spinbutton\"]",
535
+ "[role=\"menuitem\"]"
536
+ ].join(", ");
518
537
  /** @internal One body row with its synthetic and data cells. Memoized: every prop is stable or primitive. */
519
538
  var TableBodyRow = memo(function TableBodyRow({ row, rowIndex, rowId, columns, metrics, callbacks, cellRole, isFocusable, isTabStop, isClickable, isBorderless, isActive, isSelected, isSelectionLocked, hasExpandColumn, isExpanded, panelId, hasTrailingColumn, isActionsOpen, ariaRowIndex, hasColIndex, className, style }) {
520
539
  const shiftRef = useRef(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galaxy-io/dls",
3
- "version": "2.13.0",
3
+ "version": "2.13.1",
4
4
  "description": "Galaxy Design Language System",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",