@senvenli/react 0.3.2 → 0.3.4

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.
Files changed (97) hide show
  1. package/dist/action/fab.d.ts +7 -0
  2. package/dist/action/fab.js +22 -3
  3. package/dist/action/fab.js.map +1 -1
  4. package/dist/collection/data-table.d.ts +1 -1
  5. package/dist/collection/data-table.js +2 -2
  6. package/dist/collection/data-table.js.map +1 -1
  7. package/dist/collection/table.d.ts +7 -2
  8. package/dist/collection/table.js +17 -7
  9. package/dist/collection/table.js.map +1 -1
  10. package/dist/i18n.d.ts +8 -0
  11. package/dist/i18n.js +18 -1
  12. package/dist/i18n.js.map +1 -1
  13. package/dist/navigation/index.d.ts +2 -2
  14. package/dist/navigation/index.js +1 -1
  15. package/dist/navigation/index.js.map +1 -1
  16. package/dist/navigation/sidebar.d.ts +18 -0
  17. package/dist/navigation/sidebar.js +26 -2
  18. package/dist/navigation/sidebar.js.map +1 -1
  19. package/dist/overlay/floating.js +4 -1
  20. package/dist/overlay/floating.js.map +1 -1
  21. package/dist/overlay/index.d.ts +2 -0
  22. package/dist/overlay/index.js +2 -1
  23. package/dist/overlay/index.js.map +1 -1
  24. package/dist/overlay/tour.d.ts +88 -0
  25. package/dist/overlay/tour.js +302 -0
  26. package/dist/overlay/tour.js.map +1 -0
  27. package/manifests/data-table.json +1 -1
  28. package/manifests/index.json +2 -1
  29. package/manifests/sidebar.json +55 -2
  30. package/manifests/table.json +2 -2
  31. package/package.json +2 -2
  32. package/dist/action/files.d.ts +0 -70
  33. package/dist/action/files.js +0 -156
  34. package/dist/action/files.js.map +0 -1
  35. package/dist/action/theme-toggle.d.ts +0 -43
  36. package/dist/action/theme-toggle.js +0 -259
  37. package/dist/action/theme-toggle.js.map +0 -1
  38. package/dist/display/image-crop.d.ts +0 -106
  39. package/dist/display/image-crop.js +0 -117
  40. package/dist/display/image-crop.js.map +0 -1
  41. package/dist/display/image-cropper.d.ts +0 -68
  42. package/dist/display/image-cropper.js +0 -284
  43. package/dist/display/image-cropper.js.map +0 -1
  44. package/dist/display/lozenge.d.ts +0 -30
  45. package/dist/display/lozenge.js +0 -55
  46. package/dist/display/lozenge.js.map +0 -1
  47. package/dist/display/scroll-area.d.ts +0 -29
  48. package/dist/display/scroll-area.js +0 -95
  49. package/dist/display/scroll-area.js.map +0 -1
  50. package/dist/feedback/cooldown.d.ts +0 -17
  51. package/dist/feedback/cooldown.js +0 -59
  52. package/dist/feedback/cooldown.js.map +0 -1
  53. package/dist/feedback/status-dot.d.ts +0 -23
  54. package/dist/feedback/status-dot.js +0 -37
  55. package/dist/feedback/status-dot.js.map +0 -1
  56. package/dist/form/input-otp.d.ts +0 -35
  57. package/dist/form/input-otp.js +0 -83
  58. package/dist/form/input-otp.js.map +0 -1
  59. package/dist/layout/auth-form-layout.d.ts +0 -71
  60. package/dist/layout/auth-form-layout.js +0 -61
  61. package/dist/layout/auth-form-layout.js.map +0 -1
  62. package/dist/layout/auth-layout.d.ts +0 -59
  63. package/dist/layout/auth-layout.js +0 -26
  64. package/dist/layout/auth-layout.js.map +0 -1
  65. package/dist/layout/pressable.d.ts +0 -40
  66. package/dist/layout/pressable.js +0 -65
  67. package/dist/layout/pressable.js.map +0 -1
  68. package/dist/layout/reset-sent-card.d.ts +0 -39
  69. package/dist/layout/reset-sent-card.js +0 -22
  70. package/dist/layout/reset-sent-card.js.map +0 -1
  71. package/dist/navigation/dock.d.ts +0 -27
  72. package/dist/navigation/dock.js +0 -47
  73. package/dist/navigation/dock.js.map +0 -1
  74. package/dist/navigation/footer.d.ts +0 -43
  75. package/dist/navigation/footer.js +0 -43
  76. package/dist/navigation/footer.js.map +0 -1
  77. package/dist/navigation/language-names.d.ts +0 -19
  78. package/dist/navigation/language-names.js +0 -79
  79. package/dist/navigation/language-names.js.map +0 -1
  80. package/dist/navigation/language-switcher.d.ts +0 -55
  81. package/dist/navigation/language-switcher.js +0 -53
  82. package/dist/navigation/language-switcher.js.map +0 -1
  83. package/dist/navigation/panel-header.d.ts +0 -37
  84. package/dist/navigation/panel-header.js +0 -50
  85. package/dist/navigation/panel-header.js.map +0 -1
  86. package/dist/navigation/toolbar.d.ts +0 -37
  87. package/dist/navigation/toolbar.js +0 -334
  88. package/dist/navigation/toolbar.js.map +0 -1
  89. package/dist/overlay/command-palette.d.ts +0 -53
  90. package/dist/overlay/command-palette.js +0 -130
  91. package/dist/overlay/command-palette.js.map +0 -1
  92. package/dist/overlay/overlay.d.ts +0 -299
  93. package/dist/overlay/overlay.js +0 -558
  94. package/dist/overlay/overlay.js.map +0 -1
  95. package/dist/selection/radio-card.d.ts +0 -31
  96. package/dist/selection/radio-card.js +0 -29
  97. package/dist/selection/radio-card.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/collection/table.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,IAAI,IAAI,QAAQ,EAChB,MAAM,IAAI,UAAU,EACpB,GAAG,IAAI,OAAO,EACd,KAAK,IAAI,SAAS,EAClB,SAAS,IAAI,aAAa,EAC1B,WAAW,IAAI,eAAe,EAC9B,WAAW,EACX,SAAS,EACT,WAAW,GAIZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAyDzD,MAAM,SAAS,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAW,CAAC;AAE/E;;;;GAIG;AACH,MAAM,UAAU,GAAG,EAAE,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,eAAe,EAAE,EAA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kB,EAC5B,SAAS,EAAC,+FAA+F,GACzG,CACH,CAAC;AACJ,CAAC","sourcesContent":["\"use client\";\n\nimport type { Density } from \"../density\";\nimport * as React from \"react\";\nimport {\n Cell as AriaCell,\n Column as AriaColumn,\n Row as AriaRow,\n Table as AriaTable,\n TableBody as AriaTableBody,\n TableHeader as AriaTableHeader,\n TableLayout,\n useLocale,\n Virtualizer,\n type Key,\n type Selection,\n type SortDescriptor,\n} from \"react-aria-components\";\n\nimport { cn } from \"../utils\";\nimport { IconGlyph } from \"../display/icon\";\nimport { selectionLabel } from \"../i18n\";\nimport { SelectionCheckbox } from \"./selection-checkbox\";\n\nexport type TableColumn<T> = {\n key: string;\n /** The column's name, a noun (\"Total\"). */\n header: string;\n /** `end` for numbers and money: right-aligned (start in RTL) in tabular figures. */\n align?: \"start\" | \"end\";\n isSortable?: boolean;\n /** A CSS width (\"120px\", \"20%\"). Set one to truncate long values in this column. */\n width?: string;\n /** The cell's content; the row's value under `key` by default. */\n render?: (row: T) => React.ReactNode;\n /** Long text: clamp to two lines with an ellipsis, the full text on hover and keyboard focus. */\n wrap?: boolean;\n /** The row header: the value that names the row (an order number); the first column by default. */\n isRowHeader?: boolean;\n /**\n * Hides the column, header and cells, on viewports narrower than this breakpoint (Tailwind's `sm` 640px,\n * `md` 768px, `lg` 1024px, `xl` 1280px): for secondary columns that crowd a narrow screen. The column\n * leaves the table there, so neither the arrow keys nor screen readers reach it. Ignored on the row\n * header column, which names each row (a development warning says so). Sorting by the other columns is\n * unaffected.\n */\n hideBelow?: \"sm\" | \"md\" | \"lg\" | \"xl\";\n};\n\nexport type TableProps<T> = {\n /** Names the table (\"Orders\"). */\n \"aria-label\": string;\n columns: readonly TableColumn<T>[];\n rows: readonly T[];\n /**\n * The row's stable id; `row.id` by default. Ids must be unique within the table. When the data has no\n * single unique field, build one from the fields that are (`${row.date}:${row.channel}`), or add the row's\n * index as a last resort. A repeated id still renders every row: the first keeps its id and the later ones\n * are keyed `a#2`, `a#3`, … in row order, and selection and `onRowAction` receive those suffixed keys; a\n * development warning names the repeated ids. A suffixed key follows the row's position, not\n * the row: after a sort or filter, a selection made through it can move to another copy of the id.\n */\n rowKey?: (row: T) => Key;\n selectionMode?: \"none\" | \"single\" | \"multiple\";\n selectedKeys?: \"all\" | Iterable<Key>;\n defaultSelectedKeys?: \"all\" | Iterable<Key>;\n onSelectionChange?: (keys: Selection) => void;\n sortDescriptor?: SortDescriptor;\n onSortChange?: (descriptor: SortDescriptor) => void;\n /** `compact` (36px rows) for dense working screens; `default` (48px) for public and content pages. */\n density?: Density;\n /** Shown when there are no rows: an `EmptyState`, or one sentence on why it is empty and the action that fills it. */\n emptyState?: React.ReactNode;\n /** Opens the record: the whole row is the target. */\n onRowAction?: (key: Key) => void;\n /** A height for the scroll area: the header stays put and gets a shadow once rows scroll under it. */\n maxHeight?: string;\n};\n\nconst SORT_ICON = { ascending: \"arrow-up\", descending: \"arrow-down\" } as const;\n\n/**\n * `hideBelow` as CSS: `display: none` under the breakpoint (written out in full for Tailwind to find). Only\n * for the first paint of a server-rendered table, which has no viewport and renders every column; the\n * client then drops the column itself.\n */\nconst HIDE_BELOW = { sm: \"max-sm:hidden\", md: \"max-md:hidden\", lg: \"max-lg:hidden\", xl: \"max-xl:hidden\" } as const;\n/** The same breakpoints as media queries: the client leaves a hidden column out of the table's collection. */\nconst WIDE_ENOUGH = { sm: \"(width >= 40rem)\", md: \"(width >= 48rem)\", lg: \"(width >= 64rem)\", xl: \"(width >= 80rem)\" } as const;\ntype Breakpoint = keyof typeof HIDE_BELOW;\n\n/**\n * The breakpoints the viewport is at or above, as a stable string (\"sm md\"); every one where there is no\n * `matchMedia` (SSR, tests). The server snapshot is every breakpoint, so hydration renders every column,\n * exactly as the server did (no mismatch), with the CSS above hiding the narrow-screen ones; React then\n * re-renders at once with the real viewport and the hidden columns leave the collection. A client-only\n * render reads the viewport on its first render.\n */\nfunction useWideEnough(enabled: boolean) {\n // One MediaQueryList per breakpoint for the table's life, read by every snapshot and subscription.\n const lists = React.useMemo(\n () =>\n enabled && typeof window !== \"undefined\" && window.matchMedia\n ? (Object.keys(WIDE_ENOUGH) as Breakpoint[]).map((key) => [key, window.matchMedia(WIDE_ENOUGH[key])] as const)\n : null,\n [enabled],\n );\n const subscribe = React.useCallback(\n (onChange: () => void) => {\n lists?.forEach(([, list]) => list.addEventListener(\"change\", onChange));\n return () => lists?.forEach(([, list]) => list.removeEventListener(\"change\", onChange));\n },\n [lists],\n );\n const all = Object.keys(WIDE_ENOUGH).join(\" \");\n const snapshot = () => (lists ? lists.filter(([, list]) => list.matches).map(([key]) => key).join(\" \") : all);\n return React.useSyncExternalStore(subscribe, snapshot, () => all);\n}\n\n/**\n * The rows' keys, unique. React Aria keys a collection by id: a repeated id dropped rows (the\n * walk over the rows follows keys, and the last row with that id ends it early) and, on an update, could loop\n * forever. So the first row with an id keeps it and each later one gets `id#2`, `id#3`, … in row order,\n * skipping any suffix another row already uses as its real id. Ids are compared as strings, as React keys\n * are. Unique ids come back as they are, in the same array order. `repeated` lists each repeated id once.\n * A suffix follows the row's position, not the row: after a sort, filter or page change another copy of the\n * id can hold `id#2`. Each id resumes its own suffix count, so many copies of one id stay linear.\n */\nexport function uniqueRowKeys(keys: readonly Key[]): { keys: Key[]; repeated: Key[] } {\n const taken = new Set(keys.map(String));\n if (taken.size === keys.length) return { keys: [...keys], repeated: [] };\n // Each id as its first row gives it, by its string form.\n const first = new Map<string, Key>();\n const repeated = new Map<string, Key>();\n // The next suffix to try per id, so the k-th copy does not re-probe the k-1 suffixes before it.\n const next = new Map<string, number>();\n const unique = keys.map((key) => {\n const name = String(key);\n if (!first.has(name)) {\n first.set(name, key);\n return key;\n }\n repeated.set(name, first.get(name)!);\n let count = next.get(name) ?? 2;\n while (taken.has(`${name}#${count}`)) count++;\n next.set(name, count + 1);\n const suffixed = `${name}#${count}`;\n taken.add(suffixed);\n return suffixed;\n });\n return { keys: unique, repeated: [...repeated.values()] };\n}\n\n/** A row without an id: no `id` field (`undefined`) or `id: null`. */\nconst isMissing = (key: Key | null | undefined) => key == null;\n\n/** A repeated id as the warning shows it: JSON for real ids. */\nconst describeKey = (key: Key) => JSON.stringify(key);\n\n/**\n * Repeated row ids, said once per table and set of ids, in development only. `component` names the caller\n * (\"Table\", \"DataTable\"). Rows without an id (no `id` field, or `id: null`, and no `rowKey`) all repeat\n * `undefined` or `null`; the warning says so in those words instead of listing it as an id.\n */\nfunction useRepeatedKeyWarning(component: string, label: string, repeated: readonly Key[]) {\n const signature = repeated.length ? repeated.map((key) => (isMissing(key) ? String(key) : describeKey(key))).join(\", \") : \"\";\n const warned = React.useRef<Set<string> | null>(null);\n React.useEffect(() => {\n if (process.env.NODE_ENV === \"production\" || !signature) return;\n warned.current ??= new Set();\n if (warned.current.has(signature)) return;\n warned.current.add(signature);\n const missing = repeated.some(isMissing);\n const ids = repeated.filter((key) => !isMissing(key));\n const shown = ids.length > 10 ? `${ids.slice(0, 10).map(describeKey).join(\", \")} and ${ids.length - 10} more` : ids.map(describeKey).join(\", \");\n const problems = [missing && \"rows have no id; pass rowKey\", ids.length > 0 && `the row ids ${shown} repeat`].filter(Boolean).join(\", and \");\n // Only rows without ids: there is no id to show a suffix of, so the tail says how they are keyed instead,\n // in the keys' literal form: the first `undefined` (or `null`) itself, the later ones the strings\n // \"undefined#2\", \"undefined#3\", … by position.\n const positional = repeated\n .filter(isMissing)\n .map((key) => `${String(key)}, \"${String(key)}#2\", \"${String(key)}#3\", …`)\n .join(\" and \");\n const keyed = ids.length > 0\n ? 'the later rows with a repeated id are keyed \"<id>#2\", \"<id>#3\", … in row order'\n : `each row is keyed by its position: ${positional}`;\n console.warn(\n `${component} \"${label}\": ${problems}. Every row still renders: ${keyed}, and selection and onRowAction receive those keys. Give every row a unique id (rowKey).`,\n );\n // `repeated` is read through `signature`.\n }, [signature, label, component]);\n}\n\n/**\n * Records the user scans, compares, sorts and acts on: orders, customers, invoices. On\n * `ds-surface-raised` with a raised shadow; a sunken header row; 48px rows (36px compact) divided by\n * `ds-border`; selection by checkbox with a 2px marker on the leading edge; the row opens the record.\n * Status is a Badge, money right-aligned and formatted by the locale (\"$1,248.00\"). Under 640px use a List.\n *\n * Pressing a row opens the record while nothing is selected; once rows are ticked a press toggles\n * selection, and a record link in the row-header cell always opens, so a link is never trapped behind selection.\n */\nexport function Table<T extends object>(props: TableProps<T>) {\n return <TableView {...props} />;\n}\n\n/**\n * @internal The Table itself, with one option the public Table does not offer: `virtual` renders only\n * the rows in view (React Aria's Virtualizer). DataTable uses it for long client lists; the table becomes\n * its own scroll area at `height` px, rows and header keep their DS heights and look.\n */\nexport function TableView<T extends object>({\n \"aria-label\": label,\n columns: allColumns,\n rows,\n rowKey = (row) => (row as { id: Key }).id,\n selectionMode = \"none\",\n selectedKeys,\n defaultSelectedKeys,\n onSelectionChange,\n sortDescriptor,\n onSortChange,\n density = \"comfortable\",\n emptyState,\n onRowAction,\n maxHeight,\n virtual,\n component = \"Table\",\n}: TableProps<T> & {\n virtual?: { height: number };\n /** The component the warnings name: DataTable passes its own. */\n component?: \"Table\" | \"DataTable\";\n}) {\n const { locale } = useLocale();\n const [scrolled, setScrolled] = React.useState(false);\n const selectable = selectionMode !== \"none\";\n const multiple = selectionMode === \"multiple\";\n const rowHeaderKey = (allColumns.find((column) => column.isRowHeader) ?? allColumns[0])?.key;\n // The row header always shows. A column hidden at this viewport is dropped from the collection, so React\n // Aria's keyboard navigation never lands on it (a `display: none` cell would still be in the grid).\n const hideBelow = (column: TableColumn<T>) => (column.key === rowHeaderKey ? undefined : column.hideBelow);\n const ignoredHideBelow = allColumns.find((column) => column.key === rowHeaderKey)?.hideBelow;\n React.useEffect(() => {\n if (process.env.NODE_ENV !== \"production\" && ignoredHideBelow) {\n console.warn(`Table: hideBelow=\"${ignoredHideBelow}\" is ignored on the row header column \"${String(rowHeaderKey)}\", which names each row.`);\n }\n }, [ignoredHideBelow, rowHeaderKey]);\n const wide = useWideEnough(allColumns.some((column) => hideBelow(column)));\n const columns = allColumns.filter((column) => {\n const breakpoint = hideBelow(column);\n return !breakpoint || wide.split(\" \").includes(breakpoint);\n });\n // A resize that drops the focused cell's column: React Aria's grid state (useGridState) sees the focused\n // key leave the collection and moves focus to the cell now at that index in the same row (the next one\n // toward the end), or to the row itself when the dropped column was the row's end-most; focus never falls\n // to the page (checked in Chromium, LTR and RTL).\n const hiddenClass = (column: TableColumn<T>) => {\n const breakpoint = hideBelow(column);\n return !virtual && breakpoint ? HIDE_BELOW[breakpoint] : undefined;\n };\n const rowHeader = Math.max(0, columns.findIndex((column) => column.isRowHeader));\n const height = density === \"compact\" ? \"h-ds-row-compact\" : \"h-ds-row\";\n // Virtualized, cells are boxes the layout places; they centre their content themselves. Each row sits alone\n // in its own wrapper (so \"last row\" matches every row) and the header row has no box of its own: the\n // header cells carry the sunken fill and the scroll shadow, and every row keeps its divider.\n const cellBox = virtual ? \"flex items-center\" : \"\";\n const headerCell = virtual ? \"bg-ds-surface-sunken in-data-[scrolled]:shadow-ds-overflow\" : \"\";\n const lastRow = virtual ? \"\" : \"group-last/row:border-b-0\";\n // Every render, not memoized: a rows array changed in place (a row grown, removed or\n // replaced, same reference, same length) must not keep a stale key. It is O(n); unique ids take the fast path\n // (one Set) and come back unchanged.\n const { keys, repeated } = uniqueRowKeys(rows.map(rowKey));\n useRepeatedKeyWarning(component, label, repeated);\n const table = (\n <AriaTable\n aria-label={label}\n selectionMode={selectionMode}\n selectionBehavior=\"toggle\"\n selectedKeys={selectedKeys}\n defaultSelectedKeys={defaultSelectedKeys}\n onSelectionChange={onSelectionChange}\n sortDescriptor={sortDescriptor}\n onSortChange={onSortChange}\n onRowAction={onRowAction}\n onScroll={virtual ? (event: React.UIEvent<HTMLElement>) => setScrolled(event.currentTarget.scrollTop > 0) : undefined}\n style={virtual ? { height: virtual.height, overflow: \"auto\" } : undefined}\n className={cn(\"w-full border-separate border-spacing-0 text-body text-ds-text outline-hidden\", virtual && \"block overscroll-contain\")}\n >\n <AriaTableHeader\n data-slot=\"table-header\"\n className={cn(\n \"sticky top-0 z-[3] bg-ds-surface-sunken transition-shadow duration-(--ds-duration-fast) motion-reduce:transition-none\",\n \"in-data-[scrolled]:shadow-ds-overflow\",\n )}\n >\n {selectable && (\n <AriaColumn data-slot=\"table-selection-column\" className={cn(\"w-10 border-b border-ds-border ps-ds-200 text-start\", cellBox, headerCell)}>\n {/* Select all only where several can be selected; single selection names the column for screen readers. */}\n {multiple ? <SelectionCheckbox /> : <span className=\"sr-only\">{selectionLabel(locale)}</span>}\n </AriaColumn>\n )}\n {columns.map((column, index) => (\n <AriaColumn\n key={column.key}\n id={column.key}\n isRowHeader={index === rowHeader}\n allowsSorting={column.isSortable}\n data-slot=\"table-column\"\n data-align={column.align ?? \"start\"}\n data-hide-below={hideBelow(column)}\n style={column.width ? { width: column.width } : undefined}\n className={cn(\n \"h-9 whitespace-nowrap border-b border-ds-border px-ds-200 align-middle text-body-small font-medium text-ds-text-subtle outline-hidden\",\n \"data-[focus-visible]:inset-ring-2 data-[focus-visible]:inset-ring-ds-border-focused\",\n column.align === \"end\" ? \"text-end\" : \"text-start\",\n column.isSortable && \"cursor-pointer data-[hovered]:text-ds-text\",\n cellBox,\n headerCell,\n virtual && column.align === \"end\" && \"justify-end\",\n hiddenClass(column),\n )}\n >\n {({ allowsSorting, sortDirection }) => (\n <span className={cn(\"inline-flex items-center gap-ds-050\", column.align === \"end\" && \"flex-row-reverse\")}>\n {column.header}\n {allowsSorting && (\n <span data-slot=\"table-sort-icon\" data-direction={sortDirection ?? \"none\"} className={cn(\"inline-flex\", sortDirection ? \"text-ds-text\" : \"text-ds-text-subtlest\")}>\n <IconGlyph name={sortDirection ? SORT_ICON[sortDirection] : \"chevrons-up-down\"} size=\"small\" />\n </span>\n )}\n </span>\n )}\n </AriaColumn>\n ))}\n </AriaTableHeader>\n <AriaTableBody\n data-slot=\"table-body\"\n items={rows.map((row, index) => ({ key: keys[index], row }))}\n renderEmptyState={\n emptyState != null && emptyState !== false\n ? () => (\n <div data-slot=\"table-empty\" className=\"px-ds-300 py-ds-500 text-center text-body text-ds-text-subtle\">\n {emptyState}\n </div>\n )\n : undefined\n }\n >\n {(item) => (\n <AriaRow\n id={item.key}\n data-slot=\"table-row\"\n className={cn(\n \"group/row outline-hidden\",\n (onRowAction || selectable) && \"cursor-pointer\",\n \"data-[hovered]:bg-ds-surface-hovered data-[selected]:bg-ds-background-selected\",\n \"data-[focus-visible]:inset-ring-2 data-[focus-visible]:inset-ring-ds-border-focused\",\n )}\n >\n {selectable && (\n <AriaCell data-slot=\"table-cell\" className={cn(height, \"relative border-b border-ds-border ps-ds-200 align-middle\", lastRow, cellBox)}>\n <SelectedMarker />\n <SelectionCheckbox />\n </AriaCell>\n )}\n {columns.map((column, index) => {\n const raw = column.render ? column.render(item.row) : (item.row as Record<string, unknown>)[column.key];\n // Text and numbers are isolated, so a phone or a price keeps its order in RTL (\"+1 555 0100\").\n const value = typeof raw === \"string\" || typeof raw === \"number\" ? <bdi>{raw}</bdi> : raw;\n return (\n <AriaCell\n key={column.key}\n data-slot=\"table-cell\"\n data-align={column.align ?? \"start\"}\n data-hide-below={hideBelow(column)}\n className={cn(\n height,\n \"group/cell relative border-b border-ds-border px-ds-200 align-middle outline-hidden\",\n lastRow,\n \"data-[focus-visible]:inset-ring-2 data-[focus-visible]:inset-ring-ds-border-focused\",\n // One line per cell, as shadcn's tables: on a phone the table scrolls sideways instead of breaking\n // \"SO-1081\" or a name over two lines. `wrap` columns clamp to two lines; `width` columns truncate.\n column.align === \"end\" ? \"whitespace-nowrap text-end tabular-nums\" : cn(\"text-start\", !column.wrap && !column.width && \"whitespace-nowrap\"),\n cellBox,\n virtual && column.align === \"end\" && \"justify-end\",\n hiddenClass(column),\n )}\n >\n {!selectable && index === 0 && <SelectedMarker />}\n {column.wrap ? (\n <>\n <span data-slot=\"table-cell-wrap\" title={typeof raw === \"string\" ? raw : undefined} className=\"line-clamp-2 py-ds-050\">\n {value as React.ReactNode}\n </span>\n {/* The full text floats over the cell on hover and keyboard focus, so the row never changes\n height; screen readers already read it in full from the clamped text. */}\n <span\n aria-hidden\n inert\n data-slot=\"table-cell-full\"\n className=\"absolute inset-x-0 top-0 z-[2] hidden min-h-full rounded-ds-medium bg-ds-surface-overlay px-ds-200 py-ds-150 text-ds-text shadow-ds-overlay group-hover/cell:block group-data-[focus-visible]/cell:block group-data-[focus-visible]/row:block\"\n >\n {value as React.ReactNode}\n </span>\n </>\n ) : (\n (value as React.ReactNode)\n )}\n </AriaCell>\n );\n })}\n </AriaRow>\n )}\n </AriaTableBody>\n </AriaTable>\n );\n const rowHeight = density === \"compact\" ? 36 : 48;\n return (\n <div\n data-slot=\"table\"\n data-density={density}\n data-scrolled={scrolled || undefined}\n data-virtual={virtual ? \"\" : undefined}\n onScroll={maxHeight && !virtual ? (event) => setScrolled(event.currentTarget.scrollTop > 0) : undefined}\n style={maxHeight && !virtual ? { maxHeight } : undefined}\n className={cn(virtual ? \"overflow-hidden\" : \"overflow-auto\", \"rounded-ds-large bg-ds-surface-raised shadow-ds-raised\", maxHeight && \"overscroll-contain\")}\n >\n {virtual ? (\n <Virtualizer layout={TableLayout} layoutOptions={{ rowHeight, headingHeight: 36 }}>\n {table}\n </Virtualizer>\n ) : (\n table\n )}\n </div>\n );\n}\n\n/** The 2px `ds-border-selected` marker on the row's leading edge, shown while the row is selected. */\nfunction SelectedMarker() {\n return (\n <span\n aria-hidden\n data-slot=\"table-row-marker\"\n className=\"absolute inset-y-0 start-0 hidden w-0.5 bg-ds-border-selected group-data-[selected]/row:block\"\n />\n );\n}\n\n"]}
1
+ {"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/collection/table.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,IAAI,IAAI,QAAQ,EAChB,MAAM,IAAI,UAAU,EACpB,GAAG,IAAI,OAAO,EACd,KAAK,IAAI,SAAS,EAClB,SAAS,IAAI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AoB,CAAC,YAExJ,OAAO,CAAC,CAAC,CAAC,CACT,KAAC,WAAW,IAAC,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,YAC3G,KAAK,GACM,CACf,CAAC,CAAC,CAAC,CACF,KAAK,CACN,GACG,CACP,CAAC;AACJ,CAAC;AAED,sGAAsG;AACtG,SAAS,cAAc;IACrB,OAAO,CACL,iDAEY,kBAAkB,EAC5B,SAAS,EAAC,+FAA+F,GACzG,CACH,CAAC;AACJ,CAAC","sourcesContent":["\"use client\";\n\nimport type { Density } from \"../density\";\nimport * as React from \"react\";\nimport {\n Cell as AriaCell,\n Column as AriaColumn,\n Row as AriaRow,\n Table as AriaTable,\n TableBody as AriaTableBody,\n TableHeader as AriaTableHeader,\n TableLayout,\n useLocale,\n Virtualizer,\n type Key,\n type Selection,\n type SortDescriptor,\n} from \"react-aria-components\";\n\nimport { cn } from \"../utils\";\nimport { IconGlyph } from \"../display/icon\";\nimport { selectionLabel } from \"../i18n\";\nimport { SelectionCheckbox } from \"./selection-checkbox\";\n\nexport type TableColumn<T> = {\n key: string;\n /** The column's name, a noun (\"Total\"). */\n header: string;\n /** `end` for numbers and money: right-aligned (start in RTL) in tabular figures. */\n align?: \"start\" | \"end\";\n isSortable?: boolean;\n /** A CSS width (\"120px\", \"20%\"). Set one to truncate long values in this column. */\n width?: string;\n /** The cell's content; the row's value under `key` by default. */\n render?: (row: T) => React.ReactNode;\n /** Long text: clamp to two lines with an ellipsis, the full text on hover and keyboard focus. */\n wrap?: boolean;\n /**\n * A second line under the value, smaller and in the subtle tone: a person's email under the name, a site's domain under\n * its name, a date under a code. Both lines stay on one line each (truncated with a `width`).\n */\n description?: (row: T) => React.ReactNode;\n /** The row header: the value that names the row (an order number); the first column by default. */\n isRowHeader?: boolean;\n /**\n * Hides the column, header and cells, on viewports narrower than this breakpoint (Tailwind's `sm` 640px,\n * `md` 768px, `lg` 1024px, `xl` 1280px): for secondary columns that crowd a narrow screen. The column\n * leaves the table there, so neither the arrow keys nor screen readers reach it. Ignored on the row\n * header column, which names each row (a development warning says so). Sorting by the other columns is\n * unaffected.\n */\n hideBelow?: \"sm\" | \"md\" | \"lg\" | \"xl\";\n};\n\nexport type TableProps<T> = {\n /** Names the table (\"Orders\"). */\n \"aria-label\": string;\n columns: readonly TableColumn<T>[];\n rows: readonly T[];\n /**\n * The row's stable id; `row.id` by default. Ids must be unique within the table. When the data has no\n * single unique field, build one from the fields that are (`${row.date}:${row.channel}`), or add the row's\n * index as a last resort. A repeated id still renders every row: the first keeps its id and the later ones\n * are keyed `a#2`, `a#3`, … in row order, and selection and `onRowAction` receive those suffixed keys; a\n * development warning names the repeated ids. A suffixed key follows the row's position, not\n * the row: after a sort or filter, a selection made through it can move to another copy of the id.\n */\n rowKey?: (row: T) => Key;\n selectionMode?: \"none\" | \"single\" | \"multiple\";\n selectedKeys?: \"all\" | Iterable<Key>;\n defaultSelectedKeys?: \"all\" | Iterable<Key>;\n onSelectionChange?: (keys: Selection) => void;\n sortDescriptor?: SortDescriptor;\n onSortChange?: (descriptor: SortDescriptor) => void;\n /** `comfortable` (default: rows of at least 48px, 12px above and below a value, 24px at the edges) or `compact` (36px rows) for dense working screens. */\n density?: Density;\n /** Shown when there are no rows: an `EmptyState`, or one sentence on why it is empty and the action that fills it. */\n emptyState?: React.ReactNode;\n /** Opens the record: the whole row is the target. */\n onRowAction?: (key: Key) => void;\n /** A height for the scroll area: the header stays put and gets a shadow once rows scroll under it. */\n maxHeight?: string;\n};\n\nconst SORT_ICON = { ascending: \"arrow-up\", descending: \"arrow-down\" } as const;\n\n/**\n * `hideBelow` as CSS: `display: none` under the breakpoint (written out in full for Tailwind to find). Only\n * for the first paint of a server-rendered table, which has no viewport and renders every column; the\n * client then drops the column itself.\n */\nconst HIDE_BELOW = { sm: \"max-sm:hidden\", md: \"max-md:hidden\", lg: \"max-lg:hidden\", xl: \"max-xl:hidden\" } as const;\n/** The same breakpoints as media queries: the client leaves a hidden column out of the table's collection. */\nconst WIDE_ENOUGH = { sm: \"(width >= 40rem)\", md: \"(width >= 48rem)\", lg: \"(width >= 64rem)\", xl: \"(width >= 80rem)\" } as const;\ntype Breakpoint = keyof typeof HIDE_BELOW;\n\n/**\n * The breakpoints the viewport is at or above, as a stable string (\"sm md\"); every one where there is no\n * `matchMedia` (SSR, tests). The server snapshot is every breakpoint, so hydration renders every column,\n * exactly as the server did (no mismatch), with the CSS above hiding the narrow-screen ones; React then\n * re-renders at once with the real viewport and the hidden columns leave the collection. A client-only\n * render reads the viewport on its first render.\n */\nfunction useWideEnough(enabled: boolean) {\n // One MediaQueryList per breakpoint for the table's life, read by every snapshot and subscription.\n const lists = React.useMemo(\n () =>\n enabled && typeof window !== \"undefined\" && window.matchMedia\n ? (Object.keys(WIDE_ENOUGH) as Breakpoint[]).map((key) => [key, window.matchMedia(WIDE_ENOUGH[key])] as const)\n : null,\n [enabled],\n );\n const subscribe = React.useCallback(\n (onChange: () => void) => {\n lists?.forEach(([, list]) => list.addEventListener(\"change\", onChange));\n return () => lists?.forEach(([, list]) => list.removeEventListener(\"change\", onChange));\n },\n [lists],\n );\n const all = Object.keys(WIDE_ENOUGH).join(\" \");\n const snapshot = () => (lists ? lists.filter(([, list]) => list.matches).map(([key]) => key).join(\" \") : all);\n return React.useSyncExternalStore(subscribe, snapshot, () => all);\n}\n\n/**\n * The rows' keys, unique. React Aria keys a collection by id: a repeated id dropped rows (the\n * walk over the rows follows keys, and the last row with that id ends it early) and, on an update, could loop\n * forever. So the first row with an id keeps it and each later one gets `id#2`, `id#3`, … in row order,\n * skipping any suffix another row already uses as its real id. Ids are compared as strings, as React keys\n * are. Unique ids come back as they are, in the same array order. `repeated` lists each repeated id once.\n * A suffix follows the row's position, not the row: after a sort, filter or page change another copy of the\n * id can hold `id#2`. Each id resumes its own suffix count, so many copies of one id stay linear.\n */\nexport function uniqueRowKeys(keys: readonly Key[]): { keys: Key[]; repeated: Key[] } {\n const taken = new Set(keys.map(String));\n if (taken.size === keys.length) return { keys: [...keys], repeated: [] };\n // Each id as its first row gives it, by its string form.\n const first = new Map<string, Key>();\n const repeated = new Map<string, Key>();\n // The next suffix to try per id, so the k-th copy does not re-probe the k-1 suffixes before it.\n const next = new Map<string, number>();\n const unique = keys.map((key) => {\n const name = String(key);\n if (!first.has(name)) {\n first.set(name, key);\n return key;\n }\n repeated.set(name, first.get(name)!);\n let count = next.get(name) ?? 2;\n while (taken.has(`${name}#${count}`)) count++;\n next.set(name, count + 1);\n const suffixed = `${name}#${count}`;\n taken.add(suffixed);\n return suffixed;\n });\n return { keys: unique, repeated: [...repeated.values()] };\n}\n\n/** A row without an id: no `id` field (`undefined`) or `id: null`. */\nconst isMissing = (key: Key | null | undefined) => key == null;\n\n/** A repeated id as the warning shows it: JSON for real ids. */\nconst describeKey = (key: Key) => JSON.stringify(key);\n\n/**\n * Repeated row ids, said once per table and set of ids, in development only. `component` names the caller\n * (\"Table\", \"DataTable\"). Rows without an id (no `id` field, or `id: null`, and no `rowKey`) all repeat\n * `undefined` or `null`; the warning says so in those words instead of listing it as an id.\n */\nfunction useRepeatedKeyWarning(component: string, label: string, repeated: readonly Key[]) {\n const signature = repeated.length ? repeated.map((key) => (isMissing(key) ? String(key) : describeKey(key))).join(\", \") : \"\";\n const warned = React.useRef<Set<string> | null>(null);\n React.useEffect(() => {\n if (process.env.NODE_ENV === \"production\" || !signature) return;\n warned.current ??= new Set();\n if (warned.current.has(signature)) return;\n warned.current.add(signature);\n const missing = repeated.some(isMissing);\n const ids = repeated.filter((key) => !isMissing(key));\n const shown = ids.length > 10 ? `${ids.slice(0, 10).map(describeKey).join(\", \")} and ${ids.length - 10} more` : ids.map(describeKey).join(\", \");\n const problems = [missing && \"rows have no id; pass rowKey\", ids.length > 0 && `the row ids ${shown} repeat`].filter(Boolean).join(\", and \");\n // Only rows without ids: there is no id to show a suffix of, so the tail says how they are keyed instead,\n // in the keys' literal form: the first `undefined` (or `null`) itself, the later ones the strings\n // \"undefined#2\", \"undefined#3\", … by position.\n const positional = repeated\n .filter(isMissing)\n .map((key) => `${String(key)}, \"${String(key)}#2\", \"${String(key)}#3\", …`)\n .join(\" and \");\n const keyed = ids.length > 0\n ? 'the later rows with a repeated id are keyed \"<id>#2\", \"<id>#3\", … in row order'\n : `each row is keyed by its position: ${positional}`;\n console.warn(\n `${component} \"${label}\": ${problems}. Every row still renders: ${keyed}, and selection and onRowAction receive those keys. Give every row a unique id (rowKey).`,\n );\n // `repeated` is read through `signature`.\n }, [signature, label, component]);\n}\n\n/**\n * Records the user scans, compares, sorts and acts on: orders, customers, invoices. On\n * `ds-surface-raised` with a raised shadow; a sunken header row; rows of at least 48px (36px compact) divided by\n * `ds-border`; selection by checkbox with a 2px marker on the leading edge; the row opens the record.\n * Status is a Badge, money right-aligned and formatted by the locale (\"$1,248.00\"). Under 640px use a List.\n *\n * Pressing a row opens the record while nothing is selected; once rows are ticked a press toggles\n * selection, and a record link in the row-header cell always opens, so a link is never trapped behind selection.\n */\nexport function Table<T extends object>(props: TableProps<T>) {\n return <TableView {...props} />;\n}\n\n/**\n * @internal The Table itself, with one option the public Table does not offer: `virtual` renders only\n * the rows in view (React Aria's Virtualizer). DataTable uses it for long client lists; the table becomes\n * its own scroll area at `height` px, rows and header keep their DS heights and look.\n */\nexport function TableView<T extends object>({\n \"aria-label\": label,\n columns: allColumns,\n rows,\n rowKey = (row) => (row as { id: Key }).id,\n selectionMode = \"none\",\n selectedKeys,\n defaultSelectedKeys,\n onSelectionChange,\n sortDescriptor,\n onSortChange,\n density = \"comfortable\",\n emptyState,\n onRowAction,\n maxHeight,\n virtual,\n component = \"Table\",\n}: TableProps<T> & {\n virtual?: { height: number };\n /** The component the warnings name: DataTable passes its own. */\n component?: \"Table\" | \"DataTable\";\n}) {\n const { locale } = useLocale();\n const [scrolled, setScrolled] = React.useState(false);\n const selectable = selectionMode !== \"none\";\n const multiple = selectionMode === \"multiple\";\n const rowHeaderKey = (allColumns.find((column) => column.isRowHeader) ?? allColumns[0])?.key;\n // The row header always shows. A column hidden at this viewport is dropped from the collection, so React\n // Aria's keyboard navigation never lands on it (a `display: none` cell would still be in the grid).\n const hideBelow = (column: TableColumn<T>) => (column.key === rowHeaderKey ? undefined : column.hideBelow);\n const ignoredHideBelow = allColumns.find((column) => column.key === rowHeaderKey)?.hideBelow;\n React.useEffect(() => {\n if (process.env.NODE_ENV !== \"production\" && ignoredHideBelow) {\n console.warn(`Table: hideBelow=\"${ignoredHideBelow}\" is ignored on the row header column \"${String(rowHeaderKey)}\", which names each row.`);\n }\n }, [ignoredHideBelow, rowHeaderKey]);\n const wide = useWideEnough(allColumns.some((column) => hideBelow(column)));\n const columns = allColumns.filter((column) => {\n const breakpoint = hideBelow(column);\n return !breakpoint || wide.split(\" \").includes(breakpoint);\n });\n // A resize that drops the focused cell's column: React Aria's grid state (useGridState) sees the focused\n // key leave the collection and moves focus to the cell now at that index in the same row (the next one\n // toward the end), or to the row itself when the dropped column was the row's end-most; focus never falls\n // to the page (checked in Chromium, LTR and RTL).\n const hiddenClass = (column: TableColumn<T>) => {\n const breakpoint = hideBelow(column);\n return !virtual && breakpoint ? HIDE_BELOW[breakpoint] : undefined;\n };\n const rowHeader = Math.max(0, columns.findIndex((column) => column.isRowHeader));\n const height = density === \"compact\" ? \"h-ds-row-compact\" : \"h-ds-row\";\n // Room around the content. The row height is a minimum: a cell's padding keeps a two-line cell (a name over\n // an email) off the dividers, so it grows the row instead of touching them. Virtualized rows have a fixed\n // height the layout needs, so they keep the height alone.\n const pad = virtual ? \"\" : density === \"compact\" ? \"py-ds-100\" : \"py-ds-150\";\n // The table's outer edge gets more room than the gaps between columns (24px against 16px), so the first\n // and last values do not sit against the card's corner.\n const edge = density === \"compact\" ? \"\" : \"first:ps-ds-300 last:pe-ds-300\";\n const headerHeight = density === \"compact\" ? \"h-9\" : \"h-10\";\n // Virtualized, cells are boxes the layout places; they centre their content themselves. Each row sits alone\n // in its own wrapper (so \"last row\" matches every row) and the header row has no box of its own: the\n // header cells carry the sunken fill and the scroll shadow, and every row keeps its divider.\n const cellBox = virtual ? \"flex items-center\" : \"\";\n const headerCell = virtual ? \"bg-ds-surface-sunken in-data-[scrolled]:shadow-ds-overflow\" : \"\";\n const lastRow = virtual ? \"\" : \"group-last/row:border-b-0\";\n // Every render, not memoized: a rows array changed in place (a row grown, removed or\n // replaced, same reference, same length) must not keep a stale key. It is O(n); unique ids take the fast path\n // (one Set) and come back unchanged.\n const { keys, repeated } = uniqueRowKeys(rows.map(rowKey));\n useRepeatedKeyWarning(component, label, repeated);\n const table = (\n <AriaTable\n aria-label={label}\n selectionMode={selectionMode}\n selectionBehavior=\"toggle\"\n selectedKeys={selectedKeys}\n defaultSelectedKeys={defaultSelectedKeys}\n onSelectionChange={onSelectionChange}\n sortDescriptor={sortDescriptor}\n onSortChange={onSortChange}\n onRowAction={onRowAction}\n onScroll={virtual ? (event: React.UIEvent<HTMLElement>) => setScrolled(event.currentTarget.scrollTop > 0) : undefined}\n style={virtual ? { height: virtual.height, overflow: \"auto\" } : undefined}\n className={cn(\"w-full border-separate border-spacing-0 text-body text-ds-text outline-hidden\", virtual && \"block overscroll-contain\")}\n >\n <AriaTableHeader\n data-slot=\"table-header\"\n className={cn(\n \"sticky top-0 z-[3] bg-ds-surface-sunken transition-shadow duration-(--ds-duration-fast) motion-reduce:transition-none\",\n \"in-data-[scrolled]:shadow-ds-overflow\",\n )}\n >\n {selectable && (\n <AriaColumn data-slot=\"table-selection-column\" className={cn(\"w-10 border-b border-ds-border ps-ds-200 text-start\", edge, cellBox, headerCell)}>\n {/* Select all only where several can be selected; single selection names the column for screen readers. */}\n {multiple ? <SelectionCheckbox /> : <span className=\"sr-only\">{selectionLabel(locale)}</span>}\n </AriaColumn>\n )}\n {columns.map((column, index) => (\n <AriaColumn\n key={column.key}\n id={column.key}\n isRowHeader={index === rowHeader}\n allowsSorting={column.isSortable}\n data-slot=\"table-column\"\n data-align={column.align ?? \"start\"}\n data-hide-below={hideBelow(column)}\n style={column.width ? { width: column.width } : undefined}\n className={cn(\n headerHeight,\n \"whitespace-nowrap border-b border-ds-border px-ds-200 align-middle text-body-small font-medium text-ds-text-subtle outline-hidden\",\n edge,\n \"data-[focus-visible]:inset-ring-2 data-[focus-visible]:inset-ring-ds-border-focused\",\n column.align === \"end\" ? \"text-end\" : \"text-start\",\n column.isSortable && \"cursor-pointer data-[hovered]:text-ds-text\",\n cellBox,\n headerCell,\n virtual && column.align === \"end\" && \"justify-end\",\n hiddenClass(column),\n )}\n >\n {({ allowsSorting, sortDirection }) => (\n <span className={cn(\"inline-flex items-center gap-ds-050\", column.align === \"end\" && \"flex-row-reverse\")}>\n {column.header}\n {allowsSorting && (\n <span data-slot=\"table-sort-icon\" data-direction={sortDirection ?? \"none\"} className={cn(\"inline-flex\", sortDirection ? \"text-ds-text\" : \"text-ds-text-subtlest\")}>\n <IconGlyph name={sortDirection ? SORT_ICON[sortDirection] : \"chevrons-up-down\"} size=\"small\" />\n </span>\n )}\n </span>\n )}\n </AriaColumn>\n ))}\n </AriaTableHeader>\n <AriaTableBody\n data-slot=\"table-body\"\n items={rows.map((row, index) => ({ key: keys[index], row }))}\n renderEmptyState={\n emptyState != null && emptyState !== false\n ? () => (\n <div data-slot=\"table-empty\" className=\"px-ds-300 py-ds-500 text-center text-body text-ds-text-subtle\">\n {emptyState}\n </div>\n )\n : undefined\n }\n >\n {(item) => (\n <AriaRow\n id={item.key}\n data-slot=\"table-row\"\n className={cn(\n \"group/row outline-hidden\",\n (onRowAction || selectable) && \"cursor-pointer\",\n \"data-[hovered]:bg-ds-surface-hovered data-[selected]:bg-ds-background-selected\",\n \"data-[focus-visible]:inset-ring-2 data-[focus-visible]:inset-ring-ds-border-focused\",\n )}\n >\n {selectable && (\n <AriaCell data-slot=\"table-cell\" className={cn(height, pad, \"relative border-b border-ds-border ps-ds-200 align-middle\", edge, lastRow, cellBox)}>\n <SelectedMarker />\n <SelectionCheckbox />\n </AriaCell>\n )}\n {columns.map((column, index) => {\n const raw = column.render ? column.render(item.row) : (item.row as Record<string, unknown>)[column.key];\n // Text and numbers are isolated, so a phone or a price keeps its order in RTL (\"+1 555 0100\").\n const value = typeof raw === \"string\" || typeof raw === \"number\" ? <bdi>{raw}</bdi> : raw;\n return (\n <AriaCell\n key={column.key}\n data-slot=\"table-cell\"\n data-align={column.align ?? \"start\"}\n data-hide-below={hideBelow(column)}\n className={cn(\n height,\n pad,\n \"group/cell relative border-b border-ds-border px-ds-200 align-middle outline-hidden\",\n edge,\n lastRow,\n \"data-[focus-visible]:inset-ring-2 data-[focus-visible]:inset-ring-ds-border-focused\",\n // One line per cell, as shadcn's tables: on a phone the table scrolls sideways instead of breaking\n // \"SO-1081\" or a name over two lines. `wrap` columns clamp to two lines; `width` columns truncate.\n column.align === \"end\" ? \"whitespace-nowrap text-end tabular-nums\" : cn(\"text-start\", !column.wrap && !column.width && \"whitespace-nowrap\"),\n cellBox,\n virtual && column.align === \"end\" && \"justify-end\",\n hiddenClass(column),\n )}\n >\n {!selectable && index === 0 && <SelectedMarker />}\n {column.wrap ? (\n <>\n <span data-slot=\"table-cell-wrap\" title={typeof raw === \"string\" ? raw : undefined} className=\"line-clamp-2 py-ds-050\">\n {value as React.ReactNode}\n </span>\n {/* The full text floats over the cell on hover and keyboard focus, so the row never changes\n height; screen readers already read it in full from the clamped text. */}\n <span\n aria-hidden\n inert\n data-slot=\"table-cell-full\"\n className=\"absolute inset-x-0 top-0 z-[2] hidden min-h-full rounded-ds-medium bg-ds-surface-overlay px-ds-200 py-ds-150 text-ds-text shadow-ds-overlay group-hover/cell:block group-data-[focus-visible]/cell:block group-data-[focus-visible]/row:block\"\n >\n {value as React.ReactNode}\n </span>\n </>\n ) : column.description ? (\n <span data-slot=\"table-cell-stack\" className=\"flex min-w-0 flex-col\">\n <span className=\"truncate\">{value as React.ReactNode}</span>\n <span data-slot=\"table-cell-description\" className=\"truncate text-body-small text-ds-text-subtle\">\n {column.description(item.row)}\n </span>\n </span>\n ) : (\n (value as React.ReactNode)\n )}\n </AriaCell>\n );\n })}\n </AriaRow>\n )}\n </AriaTableBody>\n </AriaTable>\n );\n // A virtualized row has a fixed height: with a two-line column it is tall enough for both lines and the padding.\n const stacked = columns.some((column) => column.description);\n const rowHeight = density === \"compact\" ? (stacked ? 52 : 36) : stacked ? 60 : 48;\n return (\n <div\n data-slot=\"table\"\n data-density={density}\n data-scrolled={scrolled || undefined}\n data-virtual={virtual ? \"\" : undefined}\n onScroll={maxHeight && !virtual ? (event) => setScrolled(event.currentTarget.scrollTop > 0) : undefined}\n style={maxHeight && !virtual ? { maxHeight } : undefined}\n className={cn(virtual ? \"overflow-hidden\" : \"overflow-auto\", \"rounded-ds-large bg-ds-surface-raised shadow-ds-raised\", maxHeight && \"overscroll-contain\")}\n >\n {virtual ? (\n <Virtualizer layout={TableLayout} layoutOptions={{ rowHeight, headingHeight: density === \"compact\" ? 36 : 40 }}>\n {table}\n </Virtualizer>\n ) : (\n table\n )}\n </div>\n );\n}\n\n/** The 2px `ds-border-selected` marker on the row's leading edge, shown while the row is selected. */\nfunction SelectedMarker() {\n return (\n <span\n aria-hidden\n data-slot=\"table-row-marker\"\n className=\"absolute inset-y-0 start-0 hidden w-0.5 bg-ds-border-selected group-data-[selected]/row:block\"\n />\n );\n}\n\n"]}
package/dist/i18n.d.ts CHANGED
@@ -209,6 +209,10 @@ export declare const showHiddenLevelsLabel: (locale: string) => string;
209
209
  export declare const pagesLabel: (locale: string) => string;
210
210
  export declare const previousPageLabel: (locale: string) => string;
211
211
  export declare const nextPageLabel: (locale: string) => string;
212
+ export declare const tourNextLabel: (locale: string) => string;
213
+ export declare const tourBackLabel: (locale: string) => string;
214
+ export declare const tourSkipLabel: (locale: string) => string;
215
+ export declare const tourFinishLabel: (locale: string) => string;
212
216
  export declare const perPageLabel: (locale: string) => string;
213
217
  export declare const pageLabel: (locale: string, n: number) => string;
214
218
  export declare const pageOfLabel: (locale: string, page: number, total: number) => string;
@@ -317,6 +321,10 @@ export declare const DS_STRINGS: {
317
321
  pages: Strings;
318
322
  previousPage: Strings;
319
323
  nextPage: Strings;
324
+ tourNext: Strings;
325
+ tourBack: Strings;
326
+ tourSkip: Strings;
327
+ tourFinish: Strings;
320
328
  pageN: Strings;
321
329
  pageOf: Strings;
322
330
  rangeOf: Strings;
package/dist/i18n.js CHANGED
@@ -360,6 +360,19 @@ const PREVIOUS_PAGE = {
360
360
  const NEXT_PAGE = {
361
361
  en: "Next page",
362
362
  };
363
+ /** Tour: the buttons that move between steps, leave the tour, and end it on the last step. */
364
+ const TOUR_NEXT = {
365
+ en: "Next",
366
+ };
367
+ const TOUR_BACK = {
368
+ en: "Back",
369
+ };
370
+ const TOUR_SKIP = {
371
+ en: "Skip",
372
+ };
373
+ const TOUR_FINISH = {
374
+ en: "Done",
375
+ };
363
376
  const PAGE_N = {
364
377
  en: "Page {n}",
365
378
  };
@@ -911,6 +924,10 @@ export const showHiddenLevelsLabel = (locale) => pick(SHOW_HIDDEN_LEVELS, locale
911
924
  export const pagesLabel = (locale) => pick(PAGES, locale);
912
925
  export const previousPageLabel = (locale) => pick(PREVIOUS_PAGE, locale);
913
926
  export const nextPageLabel = (locale) => pick(NEXT_PAGE, locale);
927
+ export const tourNextLabel = (locale) => pick(TOUR_NEXT, locale);
928
+ export const tourBackLabel = (locale) => pick(TOUR_BACK, locale);
929
+ export const tourSkipLabel = (locale) => pick(TOUR_SKIP, locale);
930
+ export const tourFinishLabel = (locale) => pick(TOUR_FINISH, locale);
914
931
  export const perPageLabel = (locale) => pick(PER_PAGE, locale);
915
932
  export const pageLabel = (locale, n) => pick(PAGE_N, locale).replace("{n}", formatCount(locale, n));
916
933
  export const pageOfLabel = (locale, page, total) => pick(PAGE_OF, locale).replace("{page}", formatCount(locale, page)).replace("{total}", formatCount(locale, total));
@@ -935,7 +952,7 @@ export const removeFileLabel = (locale) => pick(REMOVE_FILE, locale);
935
952
  export const replaceLabel = (locale) => pick(REPLACE, locale);
936
953
  export const uploadedLabel = (locale) => pick(UPLOADED, locale);
937
954
  export const DS_STRINGS = {
938
- chooseFiles: CHOOSE_FILES, orChoose: OR_CHOOSE, upTo: UP_TO, tooLarge: TOO_LARGE, wrongType: WRONG_TYPE, onlyOne: ONLY_ONE, selectPlaceholder: SELECT_PLACEHOLDER, selectAll: SELECT_ALL, selectedCount: SELECTED_COUNT, moreCount: MORE_COUNT, removeItem: REMOVE_ITEM, noMatch: NO_MATCH, createItem: CREATE_ITEM, loading: LOADING, showSuggestions: SHOW_SUGGESTIONS, clearAll: CLEAR_ALL, actionFailed: ACTION_FAILED, retry: RETRY, errorCode: ERROR_CODE, selected: SELECTED, online: ONLINE, morePeople: MORE_PEOPLE, deltaUp: DELTA_UP, deltaDown: DELTA_DOWN, noChange: NO_CHANGE, notSet: NOT_SET, copyValue: COPY_VALUE, copy: COPY, copied: COPIED, copyFailed: COPY_FAILED, imagePosition: IMAGE_POSITION, previousImage: PREVIOUS_IMAGE, nextImage: NEXT_IMAGE, goToImage: GO_TO_IMAGE, previousMonth: PREVIOUS_MONTH, nextMonth: NEXT_MONTH, theme: THEME, themeSystem: THEME_SYSTEM, themeLight: THEME_LIGHT, themeDark: THEME_DARK, themeNowLight: THEME_NOW_LIGHT, themeNowDark: THEME_NOW_DARK, rangeMin: RANGE_MIN, rangeMax: RANGE_MAX, rangeTooShort: RANGE_TOO_SHORT, rangeTooLong: RANGE_TOO_LONG, rangeCrossesClosed: RANGE_CROSSES_CLOSED, today: TODAY, rangeStart: RANGE_START, rangeEnd: RANGE_END, rangeStartTime: RANGE_START_TIME, rangeEndTime: RANGE_END_TIME, monthHasDays: MONTH_HAS_DAYS, thisMonthHasDays: THIS_MONTH_HAS_DAYS, dateIncomplete: DATE_INCOMPLETE, dateTimeIncomplete: DATE_TIME_INCOMPLETE, timeIncomplete: TIME_INCOMPLETE, preview: PREVIEW, previewAction: PREVIEW_ACTION, lowInLight: LOW_IN_LIGHT, lowInDark: LOW_IN_DARK, fixInLight: FIX_IN_LIGHT, fixInDark: FIX_IN_DARK, noStepPasses: NO_STEP_PASSES, hexExpected: HEX_EXPECTED, customColor: CUSTOM_COLOR, nameSelected: NAME_SELECTED, cancel: CANCEL, typeToConfirm: TYPE_TO_CONFIRM, unsavedTitle: UNSAVED_TITLE, unsavedBody: UNSAVED_BODY, discardClose: DISCARD_CLOSE, keepEditing: KEEP_EDITING, expandSheet: EXPAND_SHEET, collapseSheet: COLLAPSE_SHEET, location: LOCATION, showHiddenLevels: SHOW_HIDDEN_LEVELS, pages: PAGES, previousPage: PREVIOUS_PAGE, nextPage: NEXT_PAGE, pageN: PAGE_N, pageOf: PAGE_OF, rangeOf: RANGE_OF, perPage: PER_PAGE, stepN: STEP_N, stepNOf: STEP_N_OF, stepDone: STEP_DONE, stepNow: STEP_NOW, stepNeedsYou: STEP_NEEDS_YOU, stepWithProvider: STEP_WITH_PROVIDER, stepFailed: STEP_FAILED, progressSteps: PROGRESS_STEPS, stepsAllDone: STEPS_ALL_DONE, clearSelection: CLEAR_SELECTION, skipToContent: SKIP_TO_CONTENT, sparklineSummary: SPARKLINE_SUMMARY, gaugeTarget: GAUGE_TARGET, chartOther: CHART_OTHER, chartShare: CHART_SHARE, chartTrend: CHART_TREND, cropHelp: CROP_HELP, cropStatus: CROP_STATUS, cropCentered: CROP_CENTERED, cropPosition: CROP_POSITION, cropZoom: CROP_ZOOM, cropZoomIn: CROP_ZOOM_IN, cropZoomOut: CROP_ZOOM_OUT, cropRotateLeft: CROP_ROTATE_LEFT, cropRotateRight: CROP_ROTATE_RIGHT, cropAspect: CROP_ASPECT, cropFit: CROP_FIT, cropCover: CROP_COVER, cropContain: CROP_CONTAIN, cropSaveFailed: CROP_SAVE_FAILED, cropBackground: CROP_BACKGROUND, colorWhite: COLOR_WHITE, colorLightGrey: COLOR_LIGHT_GREY, colorBlack: COLOR_BLACK, cropOutput: CROP_OUTPUT, cropKeepsAlpha: CROP_KEEPS_ALPHA, cropSmall: CROP_SMALL, cropSave: CROP_SAVE, cropTooLarge: CROP_TOO_LARGE, cropLoadFailed: CROP_LOAD_FAILED, tableSearch: TABLE_SEARCH, tableColumns: TABLE_COLUMNS, tableClearFilters: TABLE_CLEAR_FILTERS, tableEmpty: TABLE_EMPTY, tableNoResults: TABLE_NO_RESULTS, tableLoadFailed: TABLE_LOAD_FAILED, tableLoadFailedHint: TABLE_LOAD_FAILED_HINT, tableTools: TABLE_TOOLS, tableSelected: TABLE_SELECTED, phoneCountry: PHONE_COUNTRY, phoneCountryList: PHONE_COUNTRY_LIST, phoneCountrySearch: PHONE_COUNTRY_SEARCH, phoneSuggestedCountries: PHONE_SUGGESTED_COUNTRIES, phoneAllCountries: PHONE_ALL_COUNTRIES, phoneTooShort: PHONE_TOO_SHORT, phoneTooLong: PHONE_TOO_LONG, showAll: SHOW_ALL, showFewer: SHOW_FEWER, heatmapLess: HEATMAP_LESS, heatmapMore: HEATMAP_MORE, chartBand: CHART_BAND, chartStatus: CHART_STATUS, chartConversion: CHART_CONVERSION, chartValue: CHART_VALUE, chartNoData: CHART_NO_DATA, chartPeriod: CHART_PERIOD, chartCategory: CHART_CATEGORY, chartChange: CHART_CHANGE, chartTotal: CHART_TOTAL, chartIncrease: CHART_INCREASE, chartDecrease: CHART_DECREASE, chartNoValue: CHART_NO_VALUE, showDataTable: SHOW_DATA_TABLE, hideDataTable: HIDE_DATA_TABLE, selection: SELECTION, homePage: HOME_PAGE, mainNavigation: MAIN_NAVIGATION, openMenu: OPEN_MENU, language: LANGUAGE, collapseSidebar: COLLAPSE_SIDEBAR, expandSidebar: EXPAND_SIDEBAR, commandPalette: COMMAND_PALETTE, commandSearch: COMMAND_SEARCH, recentRecords: RECENT_RECORDS, frequentActions: FREQUENT_ACTIONS, hintMove: HINT_MOVE, hintOpen: HINT_OPEN, hintClose: HINT_CLOSE,
955
+ chooseFiles: CHOOSE_FILES, orChoose: OR_CHOOSE, upTo: UP_TO, tooLarge: TOO_LARGE, wrongType: WRONG_TYPE, onlyOne: ONLY_ONE, selectPlaceholder: SELECT_PLACEHOLDER, selectAll: SELECT_ALL, selectedCount: SELECTED_COUNT, moreCount: MORE_COUNT, removeItem: REMOVE_ITEM, noMatch: NO_MATCH, createItem: CREATE_ITEM, loading: LOADING, showSuggestions: SHOW_SUGGESTIONS, clearAll: CLEAR_ALL, actionFailed: ACTION_FAILED, retry: RETRY, errorCode: ERROR_CODE, selected: SELECTED, online: ONLINE, morePeople: MORE_PEOPLE, deltaUp: DELTA_UP, deltaDown: DELTA_DOWN, noChange: NO_CHANGE, notSet: NOT_SET, copyValue: COPY_VALUE, copy: COPY, copied: COPIED, copyFailed: COPY_FAILED, imagePosition: IMAGE_POSITION, previousImage: PREVIOUS_IMAGE, nextImage: NEXT_IMAGE, goToImage: GO_TO_IMAGE, previousMonth: PREVIOUS_MONTH, nextMonth: NEXT_MONTH, theme: THEME, themeSystem: THEME_SYSTEM, themeLight: THEME_LIGHT, themeDark: THEME_DARK, themeNowLight: THEME_NOW_LIGHT, themeNowDark: THEME_NOW_DARK, rangeMin: RANGE_MIN, rangeMax: RANGE_MAX, rangeTooShort: RANGE_TOO_SHORT, rangeTooLong: RANGE_TOO_LONG, rangeCrossesClosed: RANGE_CROSSES_CLOSED, today: TODAY, rangeStart: RANGE_START, rangeEnd: RANGE_END, rangeStartTime: RANGE_START_TIME, rangeEndTime: RANGE_END_TIME, monthHasDays: MONTH_HAS_DAYS, thisMonthHasDays: THIS_MONTH_HAS_DAYS, dateIncomplete: DATE_INCOMPLETE, dateTimeIncomplete: DATE_TIME_INCOMPLETE, timeIncomplete: TIME_INCOMPLETE, preview: PREVIEW, previewAction: PREVIEW_ACTION, lowInLight: LOW_IN_LIGHT, lowInDark: LOW_IN_DARK, fixInLight: FIX_IN_LIGHT, fixInDark: FIX_IN_DARK, noStepPasses: NO_STEP_PASSES, hexExpected: HEX_EXPECTED, customColor: CUSTOM_COLOR, nameSelected: NAME_SELECTED, cancel: CANCEL, typeToConfirm: TYPE_TO_CONFIRM, unsavedTitle: UNSAVED_TITLE, unsavedBody: UNSAVED_BODY, discardClose: DISCARD_CLOSE, keepEditing: KEEP_EDITING, expandSheet: EXPAND_SHEET, collapseSheet: COLLAPSE_SHEET, location: LOCATION, showHiddenLevels: SHOW_HIDDEN_LEVELS, pages: PAGES, previousPage: PREVIOUS_PAGE, nextPage: NEXT_PAGE, tourNext: TOUR_NEXT, tourBack: TOUR_BACK, tourSkip: TOUR_SKIP, tourFinish: TOUR_FINISH, pageN: PAGE_N, pageOf: PAGE_OF, rangeOf: RANGE_OF, perPage: PER_PAGE, stepN: STEP_N, stepNOf: STEP_N_OF, stepDone: STEP_DONE, stepNow: STEP_NOW, stepNeedsYou: STEP_NEEDS_YOU, stepWithProvider: STEP_WITH_PROVIDER, stepFailed: STEP_FAILED, progressSteps: PROGRESS_STEPS, stepsAllDone: STEPS_ALL_DONE, clearSelection: CLEAR_SELECTION, skipToContent: SKIP_TO_CONTENT, sparklineSummary: SPARKLINE_SUMMARY, gaugeTarget: GAUGE_TARGET, chartOther: CHART_OTHER, chartShare: CHART_SHARE, chartTrend: CHART_TREND, cropHelp: CROP_HELP, cropStatus: CROP_STATUS, cropCentered: CROP_CENTERED, cropPosition: CROP_POSITION, cropZoom: CROP_ZOOM, cropZoomIn: CROP_ZOOM_IN, cropZoomOut: CROP_ZOOM_OUT, cropRotateLeft: CROP_ROTATE_LEFT, cropRotateRight: CROP_ROTATE_RIGHT, cropAspect: CROP_ASPECT, cropFit: CROP_FIT, cropCover: CROP_COVER, cropContain: CROP_CONTAIN, cropSaveFailed: CROP_SAVE_FAILED, cropBackground: CROP_BACKGROUND, colorWhite: COLOR_WHITE, colorLightGrey: COLOR_LIGHT_GREY, colorBlack: COLOR_BLACK, cropOutput: CROP_OUTPUT, cropKeepsAlpha: CROP_KEEPS_ALPHA, cropSmall: CROP_SMALL, cropSave: CROP_SAVE, cropTooLarge: CROP_TOO_LARGE, cropLoadFailed: CROP_LOAD_FAILED, tableSearch: TABLE_SEARCH, tableColumns: TABLE_COLUMNS, tableClearFilters: TABLE_CLEAR_FILTERS, tableEmpty: TABLE_EMPTY, tableNoResults: TABLE_NO_RESULTS, tableLoadFailed: TABLE_LOAD_FAILED, tableLoadFailedHint: TABLE_LOAD_FAILED_HINT, tableTools: TABLE_TOOLS, tableSelected: TABLE_SELECTED, phoneCountry: PHONE_COUNTRY, phoneCountryList: PHONE_COUNTRY_LIST, phoneCountrySearch: PHONE_COUNTRY_SEARCH, phoneSuggestedCountries: PHONE_SUGGESTED_COUNTRIES, phoneAllCountries: PHONE_ALL_COUNTRIES, phoneTooShort: PHONE_TOO_SHORT, phoneTooLong: PHONE_TOO_LONG, showAll: SHOW_ALL, showFewer: SHOW_FEWER, heatmapLess: HEATMAP_LESS, heatmapMore: HEATMAP_MORE, chartBand: CHART_BAND, chartStatus: CHART_STATUS, chartConversion: CHART_CONVERSION, chartValue: CHART_VALUE, chartNoData: CHART_NO_DATA, chartPeriod: CHART_PERIOD, chartCategory: CHART_CATEGORY, chartChange: CHART_CHANGE, chartTotal: CHART_TOTAL, chartIncrease: CHART_INCREASE, chartDecrease: CHART_DECREASE, chartNoValue: CHART_NO_VALUE, showDataTable: SHOW_DATA_TABLE, hideDataTable: HIDE_DATA_TABLE, selection: SELECTION, homePage: HOME_PAGE, mainNavigation: MAIN_NAVIGATION, openMenu: OPEN_MENU, language: LANGUAGE, collapseSidebar: COLLAPSE_SIDEBAR, expandSidebar: EXPAND_SIDEBAR, commandPalette: COMMAND_PALETTE, commandSearch: COMMAND_SEARCH, recentRecords: RECENT_RECORDS, frequentActions: FREQUENT_ACTIONS, hintMove: HINT_MOVE, hintOpen: HINT_OPEN, hintClose: HINT_CLOSE,
939
956
  cancelUpload: CANCEL_UPLOAD, removeFile: REMOVE_FILE, replace: REPLACE, uploaded: UPLOADED,
940
957
  resend: RESEND, resendIn: RESEND_IN, increase: INCREASE, decrease: DECREASE,
941
958
  required: REQUIRED, limitExceeded: LIMIT_EXCEEDED,