Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+9
-9
@@ -150,10 +150,10 @@ function Table<T>({
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={clsx("shadow-2xs border-border-default w-full overflow-hidden rounded-lg border", darkMode && "")}>
|
||||
<div className={clsx("border-border-default w-full overflow-hidden rounded-lg border shadow-2xs", darkMode && "")}>
|
||||
{/* tabIndex makes the horizontally-scrollable region keyboard-reachable
|
||||
(axe scrollable-region-focusable) when the table overflows on mobile. */}
|
||||
<div className="bg-surface-neutral-primary w-full overflow-x-auto" tabIndex={0}>
|
||||
<div className="bg-surface-neutral-primary w-full overflow-x-auto" role="region" aria-label={t("shared.content")} tabIndex={0}>
|
||||
{/* Subframe Table root layout: full-width, fit height, collapsed borders. */}
|
||||
<table className="whitespace-no-wrap h-fit w-full border-collapse">
|
||||
<thead className={clsx("", darkMode && "")}>
|
||||
@@ -170,7 +170,7 @@ function Table<T>({
|
||||
<Checkbox
|
||||
title={t("shared.selectAll")}
|
||||
ref={checkbox}
|
||||
className="text-text-neutral-on-solid focus:shadow-focus border-border-default absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded sm:left-6"
|
||||
className="text-text-neutral-on-solid focus:shadow-focus border-border-default absolute top-1/2 left-4 -mt-2 h-4 w-4 rounded sm:left-6"
|
||||
checked={checked}
|
||||
onCheckedChange={toggleAll}
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
@@ -186,7 +186,7 @@ function Table<T>({
|
||||
className={clsx(
|
||||
idxHeader === 0 && firstColumnActions.length === 0 && "pl-4",
|
||||
// Subframe HeaderCell measures: h-10 row, px-4 cell padding.
|
||||
"h-10 whitespace-nowrap px-4 tracking-wider",
|
||||
"h-10 px-4 tracking-wider whitespace-nowrap",
|
||||
header.breakpoint === "sm" && "hidden sm:table-cell",
|
||||
header.breakpoint === "md" && "hidden md:table-cell",
|
||||
header.breakpoint === "lg" && "hidden lg:table-cell",
|
||||
@@ -204,7 +204,7 @@ function Table<T>({
|
||||
header.align === "left" && "justify-start"
|
||||
)}
|
||||
>
|
||||
<div className={clsx(header.className, "select-none truncate")}>{translateLabel(t, i18n, header.title)}</div>
|
||||
<div className={clsx(header.className, "truncate select-none")}>{translateLabel(t, i18n, header.title)}</div>
|
||||
{header.sortBy && (
|
||||
<div className="text text-text-neutral-tertiary group-hover:text-text-neutral-primary">
|
||||
{getSortDirection(header) === "desc" ? (
|
||||
@@ -270,9 +270,9 @@ function Table<T>({
|
||||
<div className="flex items-center space-x-1">
|
||||
<Checkbox
|
||||
title={t("shared.select")}
|
||||
className="text-text-neutral-on-solid focus:shadow-focus border-border-default absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded sm:left-6"
|
||||
className="text-text-neutral-on-solid focus:shadow-focus border-border-default absolute top-1/2 left-4 -mt-2 h-4 w-4 rounded sm:left-6"
|
||||
checked={selectedRowsSet.has(item)}
|
||||
onCheckedChange={(e) => {
|
||||
onCheckedChange={(_e) => {
|
||||
toggleSelected(idxRow, item);
|
||||
}}
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
@@ -286,7 +286,7 @@ function Table<T>({
|
||||
key={idxHeader}
|
||||
className={clsx(
|
||||
idxHeader === 0 && firstColumnActions.length === 0 && "pl-4",
|
||||
"whitespace-nowrap text-sm",
|
||||
"text-sm whitespace-nowrap",
|
||||
darkMode && "",
|
||||
header.className,
|
||||
padding ?? "px-4 py-1",
|
||||
@@ -338,7 +338,7 @@ function ActionsCells<T>({
|
||||
return (
|
||||
<>
|
||||
{actions && actions.length > 0 && (
|
||||
<td className={clsx("whitespace-nowrap px-4 py-1", className && className(idxRow, item))}>
|
||||
<td className={clsx("px-4 py-1 whitespace-nowrap", className && className(idxRow, item))}>
|
||||
<div className="flex space-x-2">
|
||||
{actions
|
||||
.filter((f) => !f.hidden || !f.hidden(item))
|
||||
|
||||
Reference in new issue
Block a user