@flipdish/ui-library 0.67.1 → 0.69.0

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 (195) hide show
  1. package/dist/components/atoms/PhoneInput/hooks/usePhoneEntry.cjs +10 -4
  2. package/dist/components/atoms/PhoneInput/hooks/usePhoneEntry.cjs.map +1 -1
  3. package/dist/components/atoms/PhoneInput/hooks/usePhoneEntry.d.ts +3 -3
  4. package/dist/components/atoms/PhoneInput/hooks/usePhoneEntry.d.ts.map +1 -1
  5. package/dist/components/atoms/PhoneInput/hooks/usePhoneEntry.js +11 -5
  6. package/dist/components/atoms/PhoneInput/hooks/usePhoneEntry.js.map +1 -1
  7. package/dist/components/atoms/PhoneInput/utilities/phoneEntry.utils.cjs +13 -0
  8. package/dist/components/atoms/PhoneInput/utilities/phoneEntry.utils.cjs.map +1 -1
  9. package/dist/components/atoms/PhoneInput/utilities/phoneEntry.utils.d.ts +9 -0
  10. package/dist/components/atoms/PhoneInput/utilities/phoneEntry.utils.d.ts.map +1 -1
  11. package/dist/components/atoms/PhoneInput/utilities/phoneEntry.utils.js +14 -2
  12. package/dist/components/atoms/PhoneInput/utilities/phoneEntry.utils.js.map +1 -1
  13. package/dist/components/atoms/PhoneInput/utilities/phoneInput.utils.cjs +51 -16
  14. package/dist/components/atoms/PhoneInput/utilities/phoneInput.utils.cjs.map +1 -1
  15. package/dist/components/atoms/PhoneInput/utilities/phoneInput.utils.d.ts +19 -6
  16. package/dist/components/atoms/PhoneInput/utilities/phoneInput.utils.d.ts.map +1 -1
  17. package/dist/components/atoms/PhoneInput/utilities/phoneInput.utils.js +51 -17
  18. package/dist/components/atoms/PhoneInput/utilities/phoneInput.utils.js.map +1 -1
  19. package/dist/components/forms/Form/index.cjs +5 -3
  20. package/dist/components/forms/Form/index.cjs.map +1 -1
  21. package/dist/components/forms/Form/index.d.ts +8 -2
  22. package/dist/components/forms/Form/index.d.ts.map +1 -1
  23. package/dist/components/forms/Form/index.js +5 -3
  24. package/dist/components/forms/Form/index.js.map +1 -1
  25. package/dist/components/forms/Form/utilities/focusFromCode.utils.cjs +47 -0
  26. package/dist/components/forms/Form/utilities/focusFromCode.utils.cjs.map +1 -0
  27. package/dist/components/forms/Form/utilities/focusFromCode.utils.d.ts +12 -0
  28. package/dist/components/forms/Form/utilities/focusFromCode.utils.d.ts.map +1 -0
  29. package/dist/components/forms/Form/utilities/focusFromCode.utils.js +45 -0
  30. package/dist/components/forms/Form/utilities/focusFromCode.utils.js.map +1 -0
  31. package/dist/components/molecules/EmptyState/index.cjs +4 -2
  32. package/dist/components/molecules/EmptyState/index.cjs.map +1 -1
  33. package/dist/components/molecules/EmptyState/index.d.ts.map +1 -1
  34. package/dist/components/molecules/EmptyState/index.js +4 -2
  35. package/dist/components/molecules/EmptyState/index.js.map +1 -1
  36. package/dist/components/molecules/Pagination/index.d.ts +1 -1
  37. package/dist/components/molecules/Pagination/index.d.ts.map +1 -1
  38. package/dist/components/molecules/Paginations/Pagination/Pagination.cjs +21 -5
  39. package/dist/components/molecules/Paginations/Pagination/Pagination.cjs.map +1 -1
  40. package/dist/components/molecules/Paginations/Pagination/Pagination.d.ts +7 -1
  41. package/dist/components/molecules/Paginations/Pagination/Pagination.d.ts.map +1 -1
  42. package/dist/components/molecules/Paginations/Pagination/Pagination.js +22 -6
  43. package/dist/components/molecules/Paginations/Pagination/Pagination.js.map +1 -1
  44. package/dist/components/molecules/Paginations/components/PaginationBase.cjs +2 -2
  45. package/dist/components/molecules/Paginations/components/PaginationBase.cjs.map +1 -1
  46. package/dist/components/molecules/Paginations/components/PaginationBase.d.ts +4 -2
  47. package/dist/components/molecules/Paginations/components/PaginationBase.d.ts.map +1 -1
  48. package/dist/components/molecules/Paginations/components/PaginationBase.js +2 -2
  49. package/dist/components/molecules/Paginations/components/PaginationBase.js.map +1 -1
  50. package/dist/components/molecules/Paginations/utilities/paginationScroll.utils.cjs +125 -0
  51. package/dist/components/molecules/Paginations/utilities/paginationScroll.utils.cjs.map +1 -0
  52. package/dist/components/molecules/Paginations/utilities/paginationScroll.utils.d.ts +42 -0
  53. package/dist/components/molecules/Paginations/utilities/paginationScroll.utils.d.ts.map +1 -0
  54. package/dist/components/molecules/Paginations/utilities/paginationScroll.utils.js +118 -0
  55. package/dist/components/molecules/Paginations/utilities/paginationScroll.utils.js.map +1 -0
  56. package/dist/components/organisms/FilterBar/index.cjs +3 -1
  57. package/dist/components/organisms/FilterBar/index.cjs.map +1 -1
  58. package/dist/components/organisms/FilterBar/index.d.ts.map +1 -1
  59. package/dist/components/organisms/FilterBar/index.js +3 -1
  60. package/dist/components/organisms/FilterBar/index.js.map +1 -1
  61. package/dist/components/organisms/Table/components/TableCardList.cjs +27 -0
  62. package/dist/components/organisms/Table/components/TableCardList.cjs.map +1 -0
  63. package/dist/components/organisms/Table/components/TableCardList.d.ts +4 -0
  64. package/dist/components/organisms/Table/components/TableCardList.d.ts.map +1 -0
  65. package/dist/components/organisms/Table/components/TableCardList.js +25 -0
  66. package/dist/components/organisms/Table/components/TableCardList.js.map +1 -0
  67. package/dist/components/organisms/Table/components/TableCardRow.cjs +80 -0
  68. package/dist/components/organisms/Table/components/TableCardRow.cjs.map +1 -0
  69. package/dist/components/organisms/Table/components/TableCardRow.d.ts +4 -0
  70. package/dist/components/organisms/Table/components/TableCardRow.d.ts.map +1 -0
  71. package/dist/components/organisms/Table/components/TableCardRow.js +78 -0
  72. package/dist/components/organisms/Table/components/TableCardRow.js.map +1 -0
  73. package/dist/components/organisms/Table/components/TableCardsSelectAll.cjs +24 -0
  74. package/dist/components/organisms/Table/components/TableCardsSelectAll.cjs.map +1 -0
  75. package/dist/components/organisms/Table/components/TableCardsSelectAll.d.ts +13 -0
  76. package/dist/components/organisms/Table/components/TableCardsSelectAll.d.ts.map +1 -0
  77. package/dist/components/organisms/Table/components/TableCardsSelectAll.js +22 -0
  78. package/dist/components/organisms/Table/components/TableCardsSelectAll.js.map +1 -0
  79. package/dist/components/organisms/Table/components/TableFallbackCard.cjs +12 -0
  80. package/dist/components/organisms/Table/components/TableFallbackCard.cjs.map +1 -0
  81. package/dist/components/organisms/Table/components/TableFallbackCard.d.ts +6 -0
  82. package/dist/components/organisms/Table/components/TableFallbackCard.d.ts.map +1 -0
  83. package/dist/components/organisms/Table/components/TableFallbackCard.js +10 -0
  84. package/dist/components/organisms/Table/components/TableFallbackCard.js.map +1 -0
  85. package/dist/components/organisms/Table/components/TableFocusGuard.cjs +23 -0
  86. package/dist/components/organisms/Table/components/TableFocusGuard.cjs.map +1 -0
  87. package/dist/components/organisms/Table/components/TableFocusGuard.d.ts +2 -0
  88. package/dist/components/organisms/Table/components/TableFocusGuard.d.ts.map +1 -0
  89. package/dist/components/organisms/Table/components/TableFocusGuard.js +21 -0
  90. package/dist/components/organisms/Table/components/TableFocusGuard.js.map +1 -0
  91. package/dist/components/organisms/Table/components/TableLayoutToggle.cjs +27 -0
  92. package/dist/components/organisms/Table/components/TableLayoutToggle.cjs.map +1 -0
  93. package/dist/components/organisms/Table/components/TableLayoutToggle.d.ts +17 -0
  94. package/dist/components/organisms/Table/components/TableLayoutToggle.d.ts.map +1 -0
  95. package/dist/components/organisms/Table/components/TableLayoutToggle.js +25 -0
  96. package/dist/components/organisms/Table/components/TableLayoutToggle.js.map +1 -0
  97. package/dist/components/organisms/Table/components/TableRowCard.cjs +79 -0
  98. package/dist/components/organisms/Table/components/TableRowCard.cjs.map +1 -0
  99. package/dist/components/organisms/Table/components/TableRowCard.d.ts +71 -0
  100. package/dist/components/organisms/Table/components/TableRowCard.d.ts.map +1 -0
  101. package/dist/components/organisms/Table/components/TableRowCard.js +72 -0
  102. package/dist/components/organisms/Table/components/TableRowCard.js.map +1 -0
  103. package/dist/components/organisms/Table/components/TableSortMenu.cjs +48 -0
  104. package/dist/components/organisms/Table/components/TableSortMenu.cjs.map +1 -0
  105. package/dist/components/organisms/Table/components/TableSortMenu.d.ts +35 -0
  106. package/dist/components/organisms/Table/components/TableSortMenu.d.ts.map +1 -0
  107. package/dist/components/organisms/Table/components/TableSortMenu.js +46 -0
  108. package/dist/components/organisms/Table/components/TableSortMenu.js.map +1 -0
  109. package/dist/components/organisms/Table/hooks/useFirstSortDirection.cjs +25 -0
  110. package/dist/components/organisms/Table/hooks/useFirstSortDirection.cjs.map +1 -0
  111. package/dist/components/organisms/Table/hooks/useFirstSortDirection.d.ts +12 -0
  112. package/dist/components/organisms/Table/hooks/useFirstSortDirection.d.ts.map +1 -0
  113. package/dist/components/organisms/Table/hooks/useFirstSortDirection.js +23 -0
  114. package/dist/components/organisms/Table/hooks/useFirstSortDirection.js.map +1 -0
  115. package/dist/components/organisms/Table/hooks/useIsAtLeastMd.cjs +21 -0
  116. package/dist/components/organisms/Table/hooks/useIsAtLeastMd.cjs.map +1 -0
  117. package/dist/components/organisms/Table/hooks/useIsAtLeastMd.d.ts +9 -0
  118. package/dist/components/organisms/Table/hooks/useIsAtLeastMd.d.ts.map +1 -0
  119. package/dist/components/organisms/Table/hooks/useIsAtLeastMd.js +19 -0
  120. package/dist/components/organisms/Table/hooks/useIsAtLeastMd.js.map +1 -0
  121. package/dist/components/organisms/Table/hooks/usePlaceholderRows.cjs +43 -0
  122. package/dist/components/organisms/Table/hooks/usePlaceholderRows.cjs.map +1 -0
  123. package/dist/components/organisms/Table/hooks/usePlaceholderRows.d.ts +23 -0
  124. package/dist/components/organisms/Table/hooks/usePlaceholderRows.d.ts.map +1 -0
  125. package/dist/components/organisms/Table/hooks/usePlaceholderRows.js +40 -0
  126. package/dist/components/organisms/Table/hooks/usePlaceholderRows.js.map +1 -0
  127. package/dist/components/organisms/Table/hooks/useSelectableRowRegistry.cjs +20 -2
  128. package/dist/components/organisms/Table/hooks/useSelectableRowRegistry.cjs.map +1 -1
  129. package/dist/components/organisms/Table/hooks/useSelectableRowRegistry.d.ts +8 -4
  130. package/dist/components/organisms/Table/hooks/useSelectableRowRegistry.d.ts.map +1 -1
  131. package/dist/components/organisms/Table/hooks/useSelectableRowRegistry.js +21 -3
  132. package/dist/components/organisms/Table/hooks/useSelectableRowRegistry.js.map +1 -1
  133. package/dist/components/organisms/Table/hooks/useTableSelection.cjs +47 -0
  134. package/dist/components/organisms/Table/hooks/useTableSelection.cjs.map +1 -0
  135. package/dist/components/organisms/Table/hooks/useTableSelection.d.ts +31 -0
  136. package/dist/components/organisms/Table/hooks/useTableSelection.d.ts.map +1 -0
  137. package/dist/components/organisms/Table/hooks/useTableSelection.js +45 -0
  138. package/dist/components/organisms/Table/hooks/useTableSelection.js.map +1 -0
  139. package/dist/components/organisms/Table/index.cjs +169 -38
  140. package/dist/components/organisms/Table/index.cjs.map +1 -1
  141. package/dist/components/organisms/Table/index.d.ts +57 -20
  142. package/dist/components/organisms/Table/index.d.ts.map +1 -1
  143. package/dist/components/organisms/Table/index.js +162 -33
  144. package/dist/components/organisms/Table/index.js.map +1 -1
  145. package/dist/components/organisms/Table/providers/Table.context.cjs +19 -0
  146. package/dist/components/organisms/Table/providers/Table.context.cjs.map +1 -0
  147. package/dist/components/organisms/Table/providers/Table.context.d.ts +44 -0
  148. package/dist/components/organisms/Table/providers/Table.context.d.ts.map +1 -0
  149. package/dist/components/organisms/Table/providers/Table.context.js +13 -0
  150. package/dist/components/organisms/Table/providers/Table.context.js.map +1 -0
  151. package/dist/components/organisms/Table/table.types.d.ts +35 -0
  152. package/dist/components/organisms/Table/table.types.d.ts.map +1 -0
  153. package/dist/components/organisms/Table/utilities/tableCard.utils.cjs +197 -0
  154. package/dist/components/organisms/Table/utilities/tableCard.utils.cjs.map +1 -0
  155. package/dist/components/organisms/Table/utilities/tableCard.utils.d.ts +161 -0
  156. package/dist/components/organisms/Table/utilities/tableCard.utils.d.ts.map +1 -0
  157. package/dist/components/organisms/Table/utilities/tableCard.utils.js +180 -0
  158. package/dist/components/organisms/Table/utilities/tableCard.utils.js.map +1 -0
  159. package/dist/components/organisms/Table/utilities/tableChildren.utils.cjs +47 -0
  160. package/dist/components/organisms/Table/utilities/tableChildren.utils.cjs.map +1 -0
  161. package/dist/components/organisms/Table/utilities/tableChildren.utils.d.ts +39 -0
  162. package/dist/components/organisms/Table/utilities/tableChildren.utils.d.ts.map +1 -0
  163. package/dist/components/organisms/Table/utilities/tableChildren.utils.js +43 -0
  164. package/dist/components/organisms/Table/utilities/tableChildren.utils.js.map +1 -0
  165. package/dist/components/organisms/Table/utilities/tableSelection.utils.cjs +106 -0
  166. package/dist/components/organisms/Table/utilities/tableSelection.utils.cjs.map +1 -0
  167. package/dist/components/organisms/Table/utilities/tableSelection.utils.d.ts +82 -0
  168. package/dist/components/organisms/Table/utilities/tableSelection.utils.d.ts.map +1 -0
  169. package/dist/components/organisms/Table/utilities/tableSelection.utils.js +98 -0
  170. package/dist/components/organisms/Table/utilities/tableSelection.utils.js.map +1 -0
  171. package/dist/components/organisms/Table/utilities/tableSort.utils.cjs +87 -0
  172. package/dist/components/organisms/Table/utilities/tableSort.utils.cjs.map +1 -0
  173. package/dist/components/organisms/Table/utilities/tableSort.utils.d.ts +67 -0
  174. package/dist/components/organisms/Table/utilities/tableSort.utils.d.ts.map +1 -0
  175. package/dist/components/organisms/Table/utilities/tableSort.utils.js +79 -0
  176. package/dist/components/organisms/Table/utilities/tableSort.utils.js.map +1 -0
  177. package/dist/hooks/__internal__/useReturnFocus/useReturnFocus.cjs +2 -2
  178. package/dist/hooks/__internal__/useReturnFocus/useReturnFocus.d.ts +2 -2
  179. package/dist/hooks/__internal__/useReturnFocus/useReturnFocus.js +2 -2
  180. package/dist/hooks/useFocusAfterRetry/index.cjs +1 -1
  181. package/dist/hooks/useFocusAfterRetry/index.d.ts +1 -1
  182. package/dist/hooks/useFocusAfterRetry/index.js +1 -1
  183. package/dist/utilities/searchParamsUtils/index.cjs +2 -9
  184. package/dist/utilities/searchParamsUtils/index.cjs.map +1 -1
  185. package/dist/utilities/searchParamsUtils/index.d.ts +5 -3
  186. package/dist/utilities/searchParamsUtils/index.d.ts.map +1 -1
  187. package/dist/utilities/searchParamsUtils/index.js +2 -9
  188. package/dist/utilities/searchParamsUtils/index.js.map +1 -1
  189. package/package.json +2 -2
  190. package/dist/components/organisms/Table/table.utils.cjs +0 -61
  191. package/dist/components/organisms/Table/table.utils.cjs.map +0 -1
  192. package/dist/components/organisms/Table/table.utils.d.ts +0 -48
  193. package/dist/components/organisms/Table/table.utils.d.ts.map +0 -1
  194. package/dist/components/organisms/Table/table.utils.js +0 -55
  195. package/dist/components/organisms/Table/table.utils.js.map +0 -1
@@ -6,22 +6,37 @@ import { Tooltip, TooltipTrigger } from '@flipdish/ui-library/components/atoms/T
6
6
  import { Dropdown } from '@flipdish/ui-library/components/molecules/Dropdown';
7
7
  import { cx } from '@flipdish/ui-library/utilities/cx';
8
8
  import { useResolvedTestId, joinTestId, slugifyTestId } from '@flipdish/ui-library/utilities/testIdUtils';
9
- import { createContext, forwardRef, useContext, isValidElement } from 'react';
10
- import { Table as Table$1, useTableOptions, Cell, TableBody, TableHeader as TableHeader$1, Column, Collection, Row, Group } from 'react-aria-components';
9
+ import { forwardRef, useContext, useLayoutEffect, useState, isValidElement } from 'react';
10
+ import { CollectionRendererContext, Table as Table$1, useTableOptions, Cell, TableHeader as TableHeader$1, Column, Collection, Row, TableBody as TableBody$1, Group } from 'react-aria-components';
11
+ import { TableCardList } from './components/TableCardList.js';
12
+ import { TableCardRow } from './components/TableCardRow.js';
13
+ import { TableCardsSelectAll } from './components/TableCardsSelectAll.js';
14
+ import { TableFocusGuard } from './components/TableFocusGuard.js';
15
+ export { TableLayoutToggle } from './components/TableLayoutToggle.js';
16
+ import { TableRowCardHeader, TableRowCard, TableRowCardContent, TableRowCardFooter, TableRowCardSkeleton, isRowCardElement } from './components/TableRowCard.js';
11
17
  import { TableSortIcon } from './components/TableSortIcon.js';
18
+ export { TableSortMenu } from './components/TableSortMenu.js';
19
+ import { useFirstSortDirection } from './hooks/useFirstSortDirection.js';
20
+ import { useIsAtLeastMd } from './hooks/useIsAtLeastMd.js';
21
+ import { usePlaceholderRows, useRegisterPlaceholderRow } from './hooks/usePlaceholderRows.js';
12
22
  import { useSelectableRowRegistry, useRegisterSelectableRow } from './hooks/useSelectableRowRegistry.js';
13
- import { hasSelectionListener, selectionOfKey, reportSelectionChange } from './table.utils.js';
23
+ import { useTableSelection } from './hooks/useTableSelection.js';
24
+ import { TableContext, TableCardLayoutContext, TableRowCardContext, TableRowCardSurfaceContext, TableRowCardHeaderCheckboxContext } from './providers/Table.context.js';
25
+ import { cardListPropsOf, tableLayoutOf, rowTestIdOf, cardCellPropsOf } from './utilities/tableCard.utils.js';
26
+ import { findElement, columnsOfHeader, splitRowChildren } from './utilities/tableChildren.utils.js';
27
+ import { sortStepOf } from './utilities/tableSort.utils.js';
14
28
 
15
29
  /** Row actions menu behind a dots button with fixed Edit, Copy link and Delete items, for use in a table's last column. */
16
30
  const TableRowActionsDropdown = () => (jsxs(Dropdown.Root, { children: [jsx(Dropdown.DotsButton, { color: "tertiary" }), jsx(Dropdown.Popover, { className: "w-min", children: jsxs(Dropdown.Menu, { children: [jsx(Dropdown.Item, { icon: Edit01, children: jsx("span", { className: "pr-4", children: "Edit" }) }), jsx(Dropdown.Item, { icon: Copy01, children: jsx("span", { className: "pr-4", children: "Copy link" }) }), jsx(Dropdown.Item, { icon: Trash01, children: jsx("span", { className: "pr-4", children: "Delete" }) })] }) })] }));
17
- const TableContext = createContext({ size: 'md' });
18
- /** Bordered card around a `Table` and its optional `Pagination`; sets the `size` every child inherits. */
31
+ /** Bordered card around a `Table` and its optional `Pagination`; sets the `size` every child inherits, and has no surface while its table shows cards. */
19
32
  const TableCardRoot = ({ children, className, size = 'md', ...props }) => {
20
- return (jsx(TableContext.Provider, { value: { size }, children: jsx("div", { ...props, className: cx('overflow-hidden rounded-xl bg-primary shadow-xs ring-1 ring-secondary', className), children: children }) }));
33
+ const [layout, setLayout] = useState('table');
34
+ return (jsx(TableCardLayoutContext.Provider, { value: { layout, setLayout }, children: jsx(TableContext.Provider, { value: { size }, children: jsx("div", { ...props, "data-pagination-scroll-target": "", "data-table-layout": layout, className: cx(layout === 'cards' ? 'flex flex-col gap-4' : 'overflow-hidden rounded-xl bg-primary shadow-xs ring-1 ring-secondary', className), children: children }) }) }));
21
35
  };
22
36
  /** Titled header for a table embedded in a dashboard or panel; page-level tables use `PageHeader` instead. */
23
37
  const TableCardHeader = ({ title, badge, description, contentTrailing, className }) => {
24
38
  const { size } = useContext(TableContext);
39
+ const { layout } = useContext(TableCardLayoutContext);
25
40
  const renderBadge = () => {
26
41
  if (!badge)
27
42
  return null;
@@ -29,26 +44,79 @@ const TableCardHeader = ({ title, badge, description, contentTrailing, className
29
44
  return badge;
30
45
  return (jsx(Badge, { color: "gray", size: "sm", type: "modern", children: badge }));
31
46
  };
32
- return (jsxs("div", { className: cx('relative flex flex-col items-start gap-4 border-b border-secondary bg-primary px-4 md:flex-row', size === 'sm' ? 'py-4 md:px-5' : 'py-5 md:px-6', className), children: [jsxs("div", { className: "flex flex-1 flex-col gap-0.5", children: [jsxs("div", { className: "flex items-center gap-2", children: [jsx("h2", { className: "text-md font-semibold text-primary", children: title }), renderBadge()] }), description && jsx("p", { className: "text-sm text-tertiary", children: description })] }), contentTrailing] }));
47
+ return (jsxs("div", { className: cx('relative flex flex-col items-start gap-4 md:flex-row',
48
+ // Above cards the header is a plain heading row: the card it would divide from has no surface.
49
+ layout !== 'cards' && 'border-b border-secondary bg-primary px-4', layout !== 'cards' && (size === 'sm' ? 'py-4 md:px-5' : 'py-5 md:px-6'), className), children: [jsxs("div", { className: "flex flex-1 flex-col gap-0.5", children: [jsxs("div", { className: "flex items-center gap-2", children: [jsx("h2", { className: "text-md font-semibold text-primary", children: title }), renderBadge()] }), description && jsx("p", { className: "text-sm text-tertiary", children: description })] }), contentTrailing] }));
33
50
  };
51
+ // What a table's descendants see in place of its `TableCard.Root`: one nested in a row card or a cell has no card of its own to report to.
52
+ const DETACHED_CARD_LAYOUT = { layout: 'table' };
34
53
  // The element types match react-aria's: inside a `Virtualizer` the table, its header, rows and cells render as `div`s.
35
- const TableRoot = forwardRef(({ className, size: sizeProp, selectedKey, onSelectedKeyChange, onSelectedKeysChange, 'data-testid': dataTestId, ...props }, ref) => {
54
+ const TableRoot = forwardRef(({ className, style, children, mobileLayout = 'cards', desktopLayout = 'table', size: sizeProp, selectedKey, selectedKeys, defaultSelectedKeys, onSelectionChange, onSelectedKeyChange, onSelectedKeysChange, onSortChange, defaultSortDescriptor, 'data-testid': dataTestId, ...props }, ref) => {
36
55
  // Re-providing the context would otherwise reset a card-level `size` back to `md`.
37
56
  const inherited = useContext(TableContext);
57
+ const { setLayout } = useContext(TableCardLayoutContext);
38
58
  const size = sizeProp ?? inherited.size;
39
59
  const rootTestId = useResolvedTestId({ testId: dataTestId, segment: 'table', rootName: 'table' });
40
- const { register: registerRow, rowIds } = useSelectableRowRegistry();
41
- const { onSelectionChange } = props;
42
- const selectionListeners = { onSelectionChange, onSelectedKeyChange, onSelectedKeysChange };
43
- const handleSelectionChange = (selection) => {
44
- reportSelectionChange(selection, rowIds.current, props.disabledKeys, selectionListeners);
45
- };
46
- return (
60
+ const registry = useSelectableRowRegistry();
61
+ // Held here, above the layout switch: the table and the card list are different trees, and crossing `md` remounts the rows.
62
+ const selection = useTableSelection({
63
+ selectedKey,
64
+ selectedKeys,
65
+ defaultSelectedKeys,
66
+ disabledKeys: props.disabledKeys,
67
+ rowIds: registry.rowIds,
68
+ onSelectionChange,
69
+ onSelectedKeyChange,
70
+ onSelectedKeysChange,
71
+ });
72
+ const placeholders = usePlaceholderRows(props.onRowAction);
73
+ const isAtLeastMd = useIsAtLeastMd();
74
+ // A `Virtualizer` hands its table layout to any collection inside it, and that layout cannot place cards.
75
+ const { isVirtualized } = useContext(CollectionRendererContext);
76
+ const layout = tableLayoutOf(isAtLeastMd, mobileLayout, desktopLayout, isVirtualized);
77
+ // Before paint, so a `TableCard.Root` around cards never shows a frame of its surface.
78
+ useLayoutEffect(() => {
79
+ setLayout?.(layout);
80
+ return () => setLayout?.('table');
81
+ }, [layout, setLayout]);
82
+ // react-aria only toggles a sorted column; the press that would toggle it back to its first direction clears it instead.
83
+ const firstSortDirection = useFirstSortDirection(props.sortDescriptor, defaultSortDescriptor);
84
+ const handleSortChange = onSortChange &&
85
+ ((next) => onSortChange(sortStepOf(props.sortDescriptor, next, firstSortDirection) === 'clear' ? defaultSortDescriptor : next));
47
86
  // A row cannot see the table-level `onRowAction`, so the context carries whether one exists.
48
- jsx(TableContext.Provider, { value: { size, testIdPrefix: rootTestId, hasRowAction: props.onRowAction !== undefined, registerRow }, children: jsx("div", { className: "overflow-x-auto", children: jsx(Table$1, { "data-testid": rootTestId, className: (state) => cx('w-full overflow-x-hidden', typeof className === 'function' ? className(state) : className), ...props, ref: ref, selectedKeys: selectedKey !== undefined ? selectionOfKey(selectedKey) : props.selectedKeys, onSelectionChange: hasSelectionListener(selectionListeners) ? handleSelectionChange : undefined }) }) }));
87
+ const context = {
88
+ size,
89
+ layout,
90
+ testIdPrefix: rootTestId,
91
+ hasRowAction: props.onRowAction !== undefined,
92
+ registerRow: registry.register,
93
+ registerPlaceholder: placeholders.register,
94
+ };
95
+ if (layout === 'cards') {
96
+ const { selectionMode = 'none', selectionBehavior = 'toggle' } = props;
97
+ const header = findElement(children, TableHeader);
98
+ // Cards have no column headers to sort from, and dragging is untested on them; react-aria filters the rest as it does for the table.
99
+ const { dragAndDropHooks, sortDescriptor, onRowAction, render: _tableRender, ...sharedProps } = props;
100
+ const listProps = {
101
+ ...cardListPropsOf(sharedProps),
102
+ selectedKeys: selection.selectedKeys,
103
+ onSelectionChange: selection.onSelectionChange,
104
+ onAction: placeholders.onAction,
105
+ // From `md` the cards sit in columns, so the arrow keys move across them as well as down.
106
+ layout: isAtLeastMd ? 'grid' : 'stack',
107
+ 'data-testid': joinTestId(rootTestId, 'list'),
108
+ };
109
+ const cardContext = {
110
+ ...context,
111
+ columns: header ? columnsOfHeader(header.props.children, header.props.columns) : [],
112
+ listProps,
113
+ };
114
+ return (jsx(TableCardLayoutContext.Provider, { value: DETACHED_CARD_LAYOUT, children: jsx(TableRowCardContext.Provider, { value: null, children: jsx(TableRowCardSurfaceContext.Provider, { value: false, children: jsx(TableRowCardHeaderCheckboxContext.Provider, { value: false, children: jsx(TableContext.Provider, { value: cardContext, children: jsxs("div", { ref: ref, "data-testid": rootTestId, className: "@container flex flex-col gap-4", children: [selectionMode === 'multiple' && selectionBehavior === 'toggle' && (jsx(TableCardsSelectAll, { registry: registry, selectedKeys: selection.selectedKeys, onSelectionChange: selection.onSelectionChange, disabledKeys: props.disabledKeys, disallowEmptySelection: props.disallowEmptySelection, "data-testid": joinTestId(rootTestId, 'select-all') })), children] }) }) }) }) }) }));
115
+ }
116
+ return (jsx(TableCardLayoutContext.Provider, { value: DETACHED_CARD_LAYOUT, children: jsx(TableContext.Provider, { value: context, children: jsx("div", { className: "overflow-x-auto", children: jsx(Table$1, { "data-testid": rootTestId, className: (state) => cx('w-full overflow-x-hidden', typeof className === 'function' ? className(state) : className), style: style, ...props, ref: ref, selectedKeys: selection.selectedKeys, onSelectionChange: selection.onSelectionChange, onSortChange: handleSortChange, onRowAction: placeholders.onAction, children: children }) }) }) }));
49
117
  });
50
118
  TableRoot.displayName = 'Table';
51
- const TableHeaderBase = ({ columns, children, bordered = true, className, size: sizeProp, ...props }, ref) => {
119
+ const TableGridHeaderBase = ({ columns, children, bordered = true, className, size: sizeProp, ...props }, ref) => {
52
120
  const context = useContext(TableContext);
53
121
  const { selectionBehavior, selectionMode } = useTableOptions();
54
122
  const size = sizeProp ?? context.size;
@@ -58,56 +126,117 @@ const TableHeaderBase = ({ columns, children, bordered = true, className, size:
58
126
  '[&>tr>th]:after:pointer-events-none [&>tr>th]:after:absolute [&>tr>th]:after:inset-x-0 [&>tr>th]:after:bottom-0 [&>tr>th]:after:h-px [&>tr>th]:after:bg-border-secondary [&>tr>th]:focus-visible:after:bg-transparent', typeof className === 'function' ? className(state) : className), children: [selectionBehavior === 'toggle' && (jsx(Column, { className: cx('relative py-2 pr-0 pl-4', size === 'sm' ? 'w-9 md:pl-5' : 'w-11 md:pl-6'), children: selectionMode === 'multiple' && (jsx("div", { className: "flex items-start", children: jsx(Checkbox, { slot: "selection", size: "md" }) })) })), jsx(Collection, { items: columns, children: children })] }));
59
127
  };
60
128
  // `forwardRef` drops the type parameter that ties `columns` to the item a render function gets; the cast restores it.
129
+ const TableGridHeader = forwardRef(TableGridHeaderBase);
130
+ // Cards have no header row: the fallback card reads the columns from this element's props, and no sort control renders.
131
+ const TableHeaderBase = (props, ref) => {
132
+ const { layout } = useContext(TableContext);
133
+ return layout === 'cards' ? null : jsx(TableGridHeader, { ...props, ref: ref });
134
+ };
135
+ /** The row of column headers: one `Table.Head` per column, and select all with multiple selection; nothing in the cards layout. */
61
136
  const TableHeader = forwardRef(TableHeaderBase);
62
137
  TableHeader.displayName = 'TableHeader';
138
+ /** One column header, with an optional `label`, help `tooltip` and sort arrow; its `id` keys the column. */
63
139
  const TableHead = ({ className, tooltip, label, children, 'data-testid': dataTestId, ...props }) => {
64
140
  const { selectionBehavior } = useTableOptions();
65
141
  const { testIdPrefix } = useContext(TableContext);
66
142
  const colTestId = dataTestId ?? (testIdPrefix && props.id !== undefined ? joinTestId(testIdPrefix, `col-${slugifyTestId(String(props.id))}`) : undefined);
67
- return (jsx(Column, { ...props, "data-testid": colTestId, className: (state) => cx('relative p-0 px-6 py-2 outline-hidden focus-visible:z-1 focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-bg-primary focus-visible:ring-inset', selectionBehavior === 'toggle' && 'nth-2:pl-3', state.allowsSorting && 'cursor-pointer', typeof className === 'function' ? className(state) : className), children: (state) => (jsxs(Group, { className: "flex items-center gap-1", children: [jsxs("div", { className: "flex items-center gap-1", children: [label && jsx("span", { className: "text-xs font-semibold whitespace-nowrap text-quaternary", children: label }), typeof children === 'function' ? children(state) : children] }), tooltip && (jsx(Tooltip, { title: tooltip, placement: "top", children: jsx(TooltipTrigger, { "aria-label": tooltip, className: "cursor-pointer text-fg-quaternary transition duration-100 ease-linear hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover", children: jsx(HelpCircle, { className: "size-4" }) }) })), state.allowsSorting && jsx(TableSortIcon, { sortDirection: state.sortDirection })] })) }));
143
+ return (jsx(Column, { ...props, "data-testid": colTestId, className: (state) => cx('relative p-0 px-6 py-2 outline-hidden focus-visible:z-1 focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-bg-primary focus-visible:ring-inset', selectionBehavior === 'toggle' && 'nth-2:pl-3', state.allowsSorting && 'cursor-pointer', typeof className === 'function' ? className(state) : className), children: (state) => (jsxs(Group, { className: "flex items-center gap-1", children: [jsx(TableFocusGuard, {}), jsxs("div", { className: "flex items-center gap-1", children: [label && jsx("span", { className: "text-xs font-semibold whitespace-nowrap text-quaternary", children: label }), typeof children === 'function' ? children(state) : children] }), tooltip && (jsx(Tooltip, { title: tooltip, placement: "top", children: jsx(TooltipTrigger, { "aria-label": tooltip, className: "cursor-pointer text-fg-quaternary transition duration-100 ease-linear hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover", children: jsx(HelpCircle, { className: "size-4" }) }) })), state.allowsSorting && jsx(TableSortIcon, { sortDirection: state.sortDirection })] })) }));
68
144
  };
69
145
  TableHead.displayName = 'TableHead';
70
- // The design's selected row: a brand tint and a 4px brand bar down the row's left edge, drawn by its first cell. The
71
- // `_alt` tint is brand-50 in light and the secondary surface in dark, where `bg-brand-primary` is a solid brand-500.
146
+ // The selected row: a brand tint (`_alt`, as `bg-brand-primary` is solid brand-500 in dark) and a 4px brand bar on its first cell.
72
147
  const HIGHLIGHTED_ROW_CLASSNAME = "bg-brand-primary_alt hover:bg-brand-primary_alt [&>td:first-child]:before:absolute [&>td:first-child]:before:inset-y-0 [&>td:first-child]:before:left-0 [&>td:first-child]:before:w-1 [&>td:first-child]:before:bg-brand-solid [&>td:first-child]:before:content-['']";
73
- const TableRowBase = ({ columns, children, className, highlightSelectedRow = true, isHighlighted = false, size: sizeProp, 'data-testid': dataTestId, ...props }, ref) => {
148
+ const TableGridRowBase = ({ columns, children, className, highlightSelectedRow = true, isHighlighted = false, size: sizeProp, 'data-testid': dataTestId, ...props }, ref) => {
74
149
  const context = useContext(TableContext);
75
150
  const { selectionBehavior, selectionMode } = useTableOptions();
76
151
  const size = sizeProp ?? context.size;
152
+ const rowTestId = rowTestIdOf(context.testIdPrefix, props.id, dataTestId);
153
+ // Function children render their own cells, and a skeleton only counts as a direct child, so only nodes are split.
154
+ const rowChildren = typeof children === 'function' ? undefined : splitRowChildren(children, columns, isRowCardElement);
155
+ // A row carrying `Table.RowCard.Skeleton` is a placeholder here too: nothing to press, select or count in select all.
156
+ const isPlaceholder = rowChildren?.card?.type === TableRowCardSkeleton;
77
157
  // A click does something on the row itself: its own action or link, the table's row action, or selection by row.
78
- const isInteractive = props.onAction !== undefined || props.href !== undefined || context.hasRowAction === true || selectionMode !== 'none';
79
- const rowTestId = dataTestId ??
80
- (context.testIdPrefix && props.id !== undefined ? joinTestId(context.testIdPrefix, `row-${slugifyTestId(String(props.id))}`) : undefined);
81
- const { registerRow } = context;
158
+ const isInteractive = !isPlaceholder && (props.onAction !== undefined || props.href !== undefined || context.hasRowAction === true || selectionMode !== 'none');
82
159
  const { id, isDisabled } = props;
83
- useRegisterSelectableRow(registerRow, id, isDisabled);
84
- return (jsxs(Row, { ...props, ref: ref, "data-testid": rowTestId, "data-highlighted": isHighlighted || undefined, className: (state) => cx('relative outline-focus-ring transition-colors after:pointer-events-none hover:bg-secondary focus-visible:outline-2 focus-visible:-outline-offset-2', size === 'sm' ? 'h-14' : 'h-18', ((highlightSelectedRow && state.isSelected) || isHighlighted) && HIGHLIGHTED_ROW_CLASSNAME, isInteractive && (state.isDisabled ? 'cursor-default' : 'cursor-pointer'),
160
+ useRegisterSelectableRow(context.registerRow, id, isDisabled || isPlaceholder);
161
+ useRegisterPlaceholderRow(context.registerPlaceholder, id, isPlaceholder);
162
+ return (jsxs(Row, { ...props, ref: ref, isDisabled: isDisabled || isPlaceholder, onAction: isPlaceholder ? undefined : props.onAction, href: isPlaceholder ? undefined : props.href, "data-testid": rowTestId, "data-highlighted": isHighlighted || undefined, className: (state) => cx('relative outline-focus-ring transition-colors after:pointer-events-none hover:bg-secondary focus-visible:outline-2 focus-visible:-outline-offset-2', size === 'sm' ? 'h-14' : 'h-18', ((highlightSelectedRow && state.isSelected) || isHighlighted) && HIGHLIGHTED_ROW_CLASSNAME, isInteractive && (state.isDisabled ? 'cursor-default' : 'cursor-pointer'),
85
163
  // Row border—using an "after" pseudo-element to avoid the border taking up space.
86
- '[&>td]:after:absolute [&>td]:after:inset-x-0 [&>td]:after:bottom-0 [&>td]:after:h-px [&>td]:after:w-full [&>td]:after:bg-border-secondary last:[&>td]:after:hidden [&>td]:focus-visible:after:opacity-0 focus-visible:[&>td]:after:opacity-0', typeof className === 'function' ? className(state) : className), children: [selectionBehavior === 'toggle' && (jsx(Cell, { className: cx('relative py-2 pr-0 pl-4', size === 'sm' ? 'md:pl-5' : 'md:pl-6'), children: jsx("div", { className: "flex items-end", children: jsx(Checkbox, { slot: "selection", size: "md", "data-testid": rowTestId ? joinTestId(rowTestId, 'selection') : undefined }) }) })), jsx(Collection, { items: columns, children: children })] }));
164
+ '[&>td]:after:absolute [&>td]:after:inset-x-0 [&>td]:after:bottom-0 [&>td]:after:h-px [&>td]:after:w-full [&>td]:after:bg-border-secondary last:[&>td]:after:hidden [&>td]:focus-visible:after:opacity-0 focus-visible:[&>td]:after:opacity-0', typeof className === 'function' ? className(state) : className), children: [selectionBehavior === 'toggle' && (jsx(Cell, { className: cx('relative py-2 pr-0 pl-4', size === 'sm' ? 'md:pl-5' : 'md:pl-6'), children: jsx("div", { className: "flex items-end", children: jsx(Checkbox, { slot: "selection", size: "md", "data-testid": rowTestId ? joinTestId(rowTestId, 'selection') : undefined }) }) })), jsx(Collection, { items: columns, children: rowChildren ? rowChildren.cells : children })] }));
87
165
  };
88
166
  // As for `TableHeader`: the cast restores the type parameter `forwardRef` drops.
167
+ const TableGridRow = forwardRef(TableGridRowBase);
168
+ // The row reads its layout from the table, which asks the viewport once for every row.
169
+ const TableRowBase = (props, ref) => {
170
+ const { layout } = useContext(TableContext);
171
+ return layout === 'cards' ? jsx(TableCardRow, { ...props, ref: ref }) : jsx(TableGridRow, { ...props, ref: ref });
172
+ };
173
+ /** One row of cells, or its `Table.RowCard` in the cards layout; give it an `id` for selection and its test id. */
89
174
  const TableRow = forwardRef(TableRowBase);
90
175
  TableRow.displayName = 'TableRow';
91
- const TableCell = forwardRef(({ className, children, size: sizeProp, ...props }, ref) => {
176
+ const TableGridCell = forwardRef(({ className, children, size: sizeProp, ...props }, ref) => {
92
177
  const context = useContext(TableContext);
93
178
  const { selectionBehavior } = useTableOptions();
94
179
  const size = sizeProp ?? context.size;
95
180
  return (jsx(Cell, { ...props, ref: ref, className: (state) => cx('relative text-sm text-tertiary outline-focus-ring focus-visible:z-1 focus-visible:outline-2 focus-visible:-outline-offset-2', size === 'sm' && 'px-5 py-3', size === 'md' && 'px-6 py-4', selectionBehavior === 'toggle' && 'nth-2:pl-3', typeof className === 'function' ? className(state) : className), children: children }));
96
181
  });
182
+ // Every state off: a card is not a grid of cells, so nothing in it is a focused, hovered or selected cell.
183
+ const CARD_CELL_STATE = {
184
+ isPressed: false,
185
+ isFocused: false,
186
+ isFocusVisible: false,
187
+ isHovered: false,
188
+ isSelected: false,
189
+ isDisabled: false,
190
+ isFocusVisibleWithinRow: false,
191
+ isTreeColumn: false,
192
+ isExpanded: false,
193
+ hasChildItems: false,
194
+ level: 1,
195
+ defaultChildren: undefined,
196
+ };
197
+ // In a card a cell is its content: its padding, `className` and span are written for the table.
198
+ const TableCardCell = ({ children, className, style, colSpan, size, textValue, id, render: _tableCellRender, ...props }) => {
199
+ const content = typeof children === 'function' ? children(CARD_CELL_STATE) : children;
200
+ // What react-aria puts on the table's cell, such as `onClick` and `data-testid`; a click bubbles on to the card's row as to the table's.
201
+ const cellProps = cardCellPropsOf(props);
202
+ if (Object.keys(cellProps).length === 0)
203
+ return content;
204
+ return (jsx("div", { className: "contents", ...cellProps, children: content }));
205
+ };
206
+ /** One cell of a row; in the cards layout only the fallback card shows it: its content, with its `data-*` and handlers. */
207
+ const TableCell = forwardRef((props, ref) => {
208
+ const { layout } = useContext(TableContext);
209
+ return layout === 'cards' ? jsx(TableCardCell, { ...props }) : jsx(TableGridCell, { ...props, ref: ref });
210
+ });
97
211
  TableCell.displayName = 'TableCell';
212
+ const TableBodyBase = (props, ref) => {
213
+ const { layout } = useContext(TableContext);
214
+ return layout === 'cards' ? (jsx(TableCardList, { ...props, ref: ref })) : (jsx(TableBody$1, { ...props, ref: ref }));
215
+ };
216
+ // As for `TableHeader`: the cast restores the type parameter `forwardRef` drops.
217
+ /** The table's rows, with `renderEmptyState` for when there are none; in the cards layout, the one `grid` that holds every card. */
218
+ const TableBody = forwardRef(TableBodyBase);
219
+ TableBody.displayName = 'TableBody';
98
220
  const TableCard = {
99
221
  Root: TableCardRoot,
100
222
  Header: TableCardHeader,
101
223
  };
224
+ /** The card a `Table.Row` shows in the cards layout, built from its `Header`, `Content` and `Footer`, or its `Skeleton` while loading. */
225
+ const TableRowCardCompound = TableRowCard;
226
+ TableRowCardCompound.Header = TableRowCardHeader;
227
+ TableRowCardCompound.Content = TableRowCardContent;
228
+ TableRowCardCompound.Footer = TableRowCardFooter;
229
+ TableRowCardCompound.Skeleton = TableRowCardSkeleton;
102
230
  /**
103
- * Displays structured data in rows and columns with selection, sorting and keyboard
104
- * navigation. Wrap it in `TableCard.Root` for the bordered card; on a page the title comes
105
- * from `PageHeader` and search or filters from a `FilterBar` above the card.
231
+ * Displays structured data in rows and columns with selection, sorting and keyboard navigation, or as one card per row:
232
+ * below `md` unless `mobileLayout` opts out, and from `md` when `desktopLayout` asks. Wrap it in `TableCard.Root`; on a page the title comes from
233
+ * `PageHeader` and search or filters from a `FilterBar` above the card.
106
234
  *
107
- * @summary data table with selection, sorting and keyboard navigation
235
+ * @summary data table with selection, sorting and cards on mobile
108
236
  */
109
237
  const Table = TableRoot;
110
238
  Table.Body = TableBody;
239
+ Table.RowCard = TableRowCardCompound;
111
240
  Table.Cell = TableCell;
112
241
  Table.Head = TableHead;
113
242
  Table.Header = TableHeader;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/organisms/Table/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","AriaTable","AriaTableHeader","AriaColumn","AriaCollection","AriaGroup","AriaRow","AriaCell","AriaTableBody"],"mappings":";;;;;;;;;;;;;;AA4CA;AACO,MAAM,uBAAuB,GAAG,OACrCA,IAAA,CAAC,QAAQ,CAAC,IAAI,eACZC,GAAA,CAAC,QAAQ,CAAC,UAAU,EAAA,EAAC,KAAK,EAAC,UAAU,EAAA,CAAG,EAExCA,IAAC,QAAQ,CAAC,OAAO,EAAA,EAAC,SAAS,EAAC,OAAO,EAAA,QAAA,EACjCD,KAAC,QAAQ,CAAC,IAAI,EAAA,EAAA,QAAA,EAAA,CACZC,GAAA,CAAC,QAAQ,CAAC,IAAI,IAAC,IAAI,EAAE,MAAM,EAAA,QAAA,EACzBA,cAAM,SAAS,EAAC,MAAM,EAAA,QAAA,EAAA,MAAA,EAAA,CAAY,EAAA,CACpB,EAChBA,GAAA,CAAC,QAAQ,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,MAAM,YACzBA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,MAAM,EAAA,QAAA,EAAA,WAAA,EAAA,CAAiB,EAAA,CACzB,EAChBA,IAAC,QAAQ,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,OAAO,EAAA,QAAA,EAC1BA,cAAM,SAAS,EAAC,MAAM,EAAA,QAAA,EAAA,QAAA,EAAA,CAAc,EAAA,CACtB,IACF,EAAA,CACC,CAAA,EAAA,CACL;AAWlB,MAAM,YAAY,GAAG,aAAa,CAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAErE;AACA,MAAM,aAAa,GAA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,CAAC;AACF,SAAS,CAAC,WAAW,GAAG,WAAW;AAEnC,MAAM,SAAS,GAAG;AAChB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,MAAM,EAAE,eAAe;;AAGzB;;;;;;AAMG;AACH,MAAM,KAAK,GAAG;AAOd,KAAK,CAAC,IAAI,GAAGC,SAAa;AAC1B,KAAK,CAAC,IAAI,GAAG,SAAS;AACtB,KAAK,CAAC,IAAI,GAAG,SAAS;AACtB,KAAK,CAAC,MAAM,GAAG,WAAW;AAC1B,KAAK,CAAC,GAAG,GAAG,QAAQ;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/organisms/Table/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","AriaCollectionRendererContext","AriaTable","AriaTableHeader","AriaColumn","AriaCollection","AriaGroup","AriaRow","AriaCell","AriaTableBody"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2EA;AACO,MAAM,uBAAuB,GAAG,OACrCA,IAAA,CAAC,QAAQ,CAAC,IAAI,eACZC,GAAA,CAAC,QAAQ,CAAC,UAAU,EAAA,EAAC,KAAK,EAAC,UAAU,EAAA,CAAG,EAExCA,IAAC,QAAQ,CAAC,OAAO,EAAA,EAAC,SAAS,EAAC,OAAO,EAAA,QAAA,EACjCD,KAAC,QAAQ,CAAC,IAAI,EAAA,EAAA,QAAA,EAAA,CACZC,GAAA,CAAC,QAAQ,CAAC,IAAI,IAAC,IAAI,EAAE,MAAM,EAAA,QAAA,EACzBA,cAAM,SAAS,EAAC,MAAM,EAAA,QAAA,EAAA,MAAA,EAAA,CAAY,EAAA,CACpB,EAChBA,GAAA,CAAC,QAAQ,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,MAAM,YACzBA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,MAAM,EAAA,QAAA,EAAA,WAAA,EAAA,CAAiB,EAAA,CACzB,EAChBA,IAAC,QAAQ,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE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AG,UAAU,CAAC,aAAa,CAEG;AAC7C,SAAS,CAAC,WAAW,GAAG,WAAW;AAEnC,MAAM,SAAS,GAAG;AAChB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,MAAM,EAAE,eAAe;;AAGzB;AACA,MAAM,oBAAoB,GAAG,YAK5B;AACD,oBAAoB,CAAC,MAAM,GAAG,kBAAkB;AAChD,oBAAoB,CAAC,OAAO,GAAG,mBAAmB;AAClD,oBAAoB,CAAC,MAAM,GAAG,kBAAkB;AAChD,oBAAoB,CAAC,QAAQ,GAAG,oBAAoB;AAEpD;;;;;;AAMG;AACH,MAAM,KAAK,GAAG;AAQd,KAAK,CAAC,IAAI,GAAG,SAAS;AACtB,KAAK,CAAC,OAAO,GAAG,oBAAoB;AACpC,KAAK,CAAC,IAAI,GAAG,SAAS;AACtB,KAAK,CAAC,IAAI,GAAG,SAAS;AACtB,KAAK,CAAC,MAAM,GAAG,WAAW;AAC1B,KAAK,CAAC,GAAG,GAAG,QAAQ;;"}
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ const TableContext = React.createContext({ size: 'md' });
6
+ const TableCardLayoutContext = React.createContext({ layout: 'table' });
7
+ // Provided inside each card row's `GridListItem`, where react-aria renders the card; null anywhere else.
8
+ const TableRowCardContext = React.createContext(null);
9
+ // True inside a card's surface: a `Table.RowCard` there is not the row's own card, so it renders nothing.
10
+ const TableRowCardSurfaceContext = React.createContext(false);
11
+ // True around the one header that leads with the selection checkbox: the card's first direct `Table.RowCard.Header`.
12
+ const TableRowCardHeaderCheckboxContext = React.createContext(false);
13
+
14
+ exports.TableCardLayoutContext = TableCardLayoutContext;
15
+ exports.TableContext = TableContext;
16
+ exports.TableRowCardContext = TableRowCardContext;
17
+ exports.TableRowCardHeaderCheckboxContext = TableRowCardHeaderCheckboxContext;
18
+ exports.TableRowCardSurfaceContext = TableRowCardSurfaceContext;
19
+ //# sourceMappingURL=Table.context.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.context.cjs","sources":["../../../../../src/components/organisms/Table/providers/Table.context.ts"],"sourcesContent":[null],"names":["createContext"],"mappings":";;;;AAsBO,MAAM,YAAY,GAAGA,mBAAa,CAAoB,EAAE,IAAI,EAAE,IAAI,EAAE;AASpE,MAAM,sBAAsB,GAAGA,mBAAa,CAA8B,EAAE,MAAM,EAAE,OAAO,EAAE;AAkBpG;MACa,mBAAmB,GAAGA,mBAAa,CAAkC,IAAI;AAEtF;MACa,0BAA0B,GAAGA,mBAAa,CAAC,KAAK;AAE7D;MACa,iCAAiC,GAAGA,mBAAa,CAAC,KAAK;;;;;;"}
@@ -0,0 +1,44 @@
1
+ import type { Key } from 'react-aria-components';
2
+ import type { TableCardColumn, TableCardListProps, TableLayout } from '../table.types';
3
+ export interface TableContextValue {
4
+ size: 'sm' | 'md';
5
+ /** The layout the table renders; unset outside a `Table`, as inside `TableCard.Root` alone. */
6
+ layout?: TableLayout;
7
+ testIdPrefix?: string;
8
+ hasRowAction?: boolean;
9
+ /** Records a selectable row's id so "select all" can be reported as the rows it covers; returns the cleanup. */
10
+ registerRow?: (id: Key) => () => void;
11
+ /** Card layout only: records a placeholder row's id so the row action skips it; returns the cleanup. */
12
+ registerPlaceholder?: (id: Key) => () => void;
13
+ /** Card layout only: every column as `Table.Header` declares it, which the fallback card labels its lines with. */
14
+ columns?: TableCardColumn[];
15
+ /** Card layout only: the table's props for the `GridList` that `Table.Body` renders. */
16
+ listProps?: TableCardListProps;
17
+ }
18
+ export declare const TableContext: import("react").Context<TableContextValue>;
19
+ export interface TableCardLayoutContextValue {
20
+ /** The layout of the `Table` inside this `TableCard.Root`. */
21
+ layout: TableLayout;
22
+ /** Lets that `Table` report its layout, so the card drops its surface while the table shows cards. */
23
+ setLayout?: (layout: TableLayout) => void;
24
+ }
25
+ export declare const TableCardLayoutContext: import("react").Context<TableCardLayoutContextValue>;
26
+ export interface TableRowCardContextValue {
27
+ /** The open row, or a selected row while `highlightSelectedRow` is on. */
28
+ isHighlighted: boolean;
29
+ /** A press does something: the row's action or link, the table's row action, or selection. */
30
+ isInteractive: boolean;
31
+ isHovered: boolean;
32
+ isPressed: boolean;
33
+ isFocusVisible: boolean;
34
+ /** The card has the selection checkbox's slot: a table with toggle selection. A placeholder holds the slot with a skeleton. */
35
+ showsSelection: boolean;
36
+ /** The row carries `Table.RowCard.Skeleton`: nothing to press or select, and a skeleton in place of its checkbox. */
37
+ isPlaceholder: boolean;
38
+ /** The row's resolved `data-testid`, which the card's derives from. */
39
+ testId?: string;
40
+ }
41
+ export declare const TableRowCardContext: import("react").Context<TableRowCardContextValue | null>;
42
+ export declare const TableRowCardSurfaceContext: import("react").Context<boolean>;
43
+ export declare const TableRowCardHeaderCheckboxContext: import("react").Context<boolean>;
44
+ //# sourceMappingURL=Table.context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.context.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Table/providers/Table.context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEvF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,+FAA+F;IAC/F,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gHAAgH;IAChH,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,KAAK,MAAM,IAAI,CAAC;IACtC,wGAAwG;IACxG,mBAAmB,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,KAAK,MAAM,IAAI,CAAC;IAC9C,mHAAmH;IACnH,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,wFAAwF;IACxF,SAAS,CAAC,EAAE,kBAAkB,CAAC;CAChC;AAED,eAAO,MAAM,YAAY,4CAAmD,CAAC;AAE7E,MAAM,WAAW,2BAA2B;IAC1C,8DAA8D;IAC9D,MAAM,EAAE,WAAW,CAAC;IACpB,sGAAsG;IACtG,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CAC3C;AAED,eAAO,MAAM,sBAAsB,sDAAkE,CAAC;AAEtG,MAAM,WAAW,wBAAwB;IACvC,0EAA0E;IAC1E,aAAa,EAAE,OAAO,CAAC;IACvB,8FAA8F;IAC9F,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,+HAA+H;IAC/H,cAAc,EAAE,OAAO,CAAC;IACxB,qHAAqH;IACrH,aAAa,EAAE,OAAO,CAAC;IACvB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,eAAO,MAAM,mBAAmB,0DAAuD,CAAC;AAGxF,eAAO,MAAM,0BAA0B,kCAAuB,CAAC;AAG/D,eAAO,MAAM,iCAAiC,kCAAuB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { createContext } from 'react';
2
+
3
+ const TableContext = createContext({ size: 'md' });
4
+ const TableCardLayoutContext = createContext({ layout: 'table' });
5
+ // Provided inside each card row's `GridListItem`, where react-aria renders the card; null anywhere else.
6
+ const TableRowCardContext = createContext(null);
7
+ // True inside a card's surface: a `Table.RowCard` there is not the row's own card, so it renders nothing.
8
+ const TableRowCardSurfaceContext = createContext(false);
9
+ // True around the one header that leads with the selection checkbox: the card's first direct `Table.RowCard.Header`.
10
+ const TableRowCardHeaderCheckboxContext = createContext(false);
11
+
12
+ export { TableCardLayoutContext, TableContext, TableRowCardContext, TableRowCardHeaderCheckboxContext, TableRowCardSurfaceContext };
13
+ //# sourceMappingURL=Table.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.context.js","sources":["../../../../../src/components/organisms/Table/providers/Table.context.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAsBO,MAAM,YAAY,GAAG,aAAa,CAAoB,EAAE,IAAI,EAAE,IAAI,EAAE;AASpE,MAAM,sBAAsB,GAAG,aAAa,CAA8B,EAAE,MAAM,EAAE,OAAO,EAAE;AAkBpG;MACa,mBAAmB,GAAG,aAAa,CAAkC,IAAI;AAEtF;MACa,0BAA0B,GAAG,aAAa,CAAC,KAAK;AAE7D;MACa,iCAAiC,GAAG,aAAa,CAAC,KAAK;;"}
@@ -0,0 +1,35 @@
1
+ import type { ComponentPropsWithoutRef } from 'react';
2
+ import type { RowProps as AriaRowProps, TableBodyProps as AriaTableBodyProps, GridListProps } from 'react-aria-components';
3
+ /** A row id: react-aria's `Key`, declared here so the hooks need no react-aria import. */
4
+ export type RowId = string | number;
5
+ /** Which layout a `Table` renders: the table, or one card per row. */
6
+ export type TableLayout = 'table' | 'cards';
7
+ /** What a card needs to know about one column, read from its `Table.Head`. */
8
+ export interface TableCardColumn {
9
+ /** The column's visible label; a column without one renders at the card header's trailing end. */
10
+ label?: string;
11
+ /** Whether the column's cell is the card's title. */
12
+ isRowHeader: boolean;
13
+ }
14
+ /**
15
+ * The table's props that the card list's `GridList` takes over in the cards layout: all of them, as react-aria filters them the
16
+ * same way for both, except what `Table.Body` supplies and what is written for the table alone.
17
+ */
18
+ export type TableCardListProps = Omit<GridListProps<object>, 'children' | 'items' | 'dependencies' | 'renderEmptyState' | 'className' | 'style' | 'dragAndDropHooks'> & {
19
+ 'data-testid'?: string;
20
+ };
21
+ export interface TableBodyProps<T> extends AriaTableBodyProps<T> {
22
+ /** Overrides the body's `data-testid`; in the cards layout it replaces the card list's derived `<root>--list`. */
23
+ 'data-testid'?: string;
24
+ }
25
+ export interface TableRowProps<T extends object> extends AriaRowProps<T>, Omit<ComponentPropsWithoutRef<'tr'>, 'children' | 'className' | 'onClick' | 'slot' | 'style' | 'id'> {
26
+ /** Draws the selected row with the brand tint and left bar; off, a selected row looks like any other. */
27
+ highlightSelectedRow?: boolean;
28
+ /** Draws the row as if selected without selecting it, for the row whose detail is open beside the table. */
29
+ isHighlighted?: boolean;
30
+ /** Row height and cell padding; inherits from the table unless set. */
31
+ size?: 'sm' | 'md';
32
+ /** Overrides the derived `data-testid` for the row (defaults to `<root>--row-<id>`). */
33
+ 'data-testid'?: string;
34
+ }
35
+ //# sourceMappingURL=table.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.types.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Table/table.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,IAAI,YAAY,EAAE,cAAc,IAAI,kBAAkB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3H,0FAA0F;AAC1F,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpC,sEAAsE;AACtE,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,OAAO,CAAC;AAE5C,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC9B,kGAAkG;IAClG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,aAAa,CAAC,MAAM,CAAC,EACrB,UAAU,GAAG,OAAO,GAAG,cAAc,GAAG,kBAAkB,GAAG,WAAW,GAAG,OAAO,GAAG,kBAAkB,CACxG,GAAG;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/B,MAAM,WAAW,cAAc,CAAC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC9D,kHAAkH;IAClH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,aAAa,CAAC,CA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