@maxio-com/react-ui-components 9.32.0 → 9.34.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 (129) hide show
  1. package/dist/index.esm.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/skills/maxio-react/SKILL.md +1 -0
  5. package/dist/skills/maxio-react/references/components-action-menu.md +9 -1
  6. package/dist/skills/maxio-react/references/components-avatar.md +1 -0
  7. package/dist/skills/maxio-react/references/components-calendar.md +2 -1
  8. package/dist/skills/maxio-react/references/components-copy-to-clipboard.md +1 -1
  9. package/dist/skills/maxio-react/references/components-data-table.md +9 -2
  10. package/dist/skills/maxio-react/references/components-dialog.md +1 -0
  11. package/dist/skills/maxio-react/references/components-drawer.md +146 -67
  12. package/dist/skills/maxio-react/references/components-flex.md +4 -4
  13. package/dist/skills/maxio-react/references/components-forms-datefield.md +2 -1
  14. package/dist/skills/maxio-react/references/components-forms-datepicker.md +2 -1
  15. package/dist/skills/maxio-react/references/components-forms-daterangepicker.md +2 -1
  16. package/dist/skills/maxio-react/references/components-grid.md +11 -11
  17. package/dist/skills/maxio-react/references/components-icon.md +1 -0
  18. package/dist/skills/maxio-react/references/components-loading-spinner.md +1 -0
  19. package/dist/skills/maxio-react/references/components-logo.md +1 -0
  20. package/dist/skills/maxio-react/references/components-notifications-alert.md +6 -0
  21. package/dist/skills/maxio-react/references/components-notifications-banner.md +6 -0
  22. package/dist/skills/maxio-react/references/components-notifications-toast.md +6 -0
  23. package/dist/skills/maxio-react/references/components-pagination.md +6 -0
  24. package/dist/skills/maxio-react/references/components-progressbar.md +2 -1
  25. package/dist/skills/maxio-react/references/components-rangecalendar.md +2 -1
  26. package/dist/skills/maxio-react/references/components-tabs.md +7 -0
  27. package/dist/skills/maxio-react/references/components-tag.md +1 -0
  28. package/dist/skills/maxio-react/references/components-tile.md +1 -0
  29. package/dist/skills/maxio-react/references/components-toggle.md +7 -1
  30. package/dist/skills/maxio-react/references/components-tooltip.md +8 -1
  31. package/dist/skills/maxio-react/references/foundations-testing.md +191 -0
  32. package/dist/skills/maxio-react/references/patterns-side-nav.md +6 -0
  33. package/dist/skills/maxio-react/references/patterns-top-bar.md +1 -0
  34. package/dist/temporary-typings/src/components/ActionMenu/components/Menu/Menu.d.ts +3 -2
  35. package/dist/temporary-typings/src/components/ActionMenu/components/Menu/Menu.d.ts.map +1 -1
  36. package/dist/temporary-typings/src/components/ActionMenu/components/MenuButton/MenuButton.d.ts +1 -1
  37. package/dist/temporary-typings/src/components/ActionMenu/components/MenuButton/MenuButton.d.ts.map +1 -1
  38. package/dist/temporary-typings/src/components/ActionMenu/components/MenuButton/types.d.ts +2 -1
  39. package/dist/temporary-typings/src/components/ActionMenu/components/MenuButton/types.d.ts.map +1 -1
  40. package/dist/temporary-typings/src/components/ActionMenu/components/MenuList/MenuList.d.ts +3 -2
  41. package/dist/temporary-typings/src/components/ActionMenu/components/MenuList/MenuList.d.ts.map +1 -1
  42. package/dist/temporary-typings/src/components/ActionMenu/contexts/MenuContext.d.ts +3 -1
  43. package/dist/temporary-typings/src/components/ActionMenu/contexts/MenuContext.d.ts.map +1 -1
  44. package/dist/temporary-typings/src/components/Avatar/Avatar.d.ts +1 -1
  45. package/dist/temporary-typings/src/components/Avatar/Avatar.d.ts.map +1 -1
  46. package/dist/temporary-typings/src/components/Avatar/Avatar.types.d.ts +2 -1
  47. package/dist/temporary-typings/src/components/Avatar/Avatar.types.d.ts.map +1 -1
  48. package/dist/temporary-typings/src/components/DataTable/DataTable.d.ts +1 -1
  49. package/dist/temporary-typings/src/components/DataTable/DataTable.d.ts.map +1 -1
  50. package/dist/temporary-typings/src/components/DataTable/DataTable.types.d.ts +2 -1
  51. package/dist/temporary-typings/src/components/DataTable/DataTable.types.d.ts.map +1 -1
  52. package/dist/temporary-typings/src/components/DataTable/components/RowRenderer/RowRenderer.d.ts +2 -1
  53. package/dist/temporary-typings/src/components/DataTable/components/RowRenderer/RowRenderer.d.ts.map +1 -1
  54. package/dist/temporary-typings/src/components/DataTable/components/Table/Table.d.ts +1 -1
  55. package/dist/temporary-typings/src/components/DataTable/components/Table/Table.d.ts.map +1 -1
  56. package/dist/temporary-typings/src/components/DataTable/components/Table/Table.types.d.ts +1 -0
  57. package/dist/temporary-typings/src/components/DataTable/components/Table/Table.types.d.ts.map +1 -1
  58. package/dist/temporary-typings/src/components/Dialog/Dialog.d.ts +1 -1
  59. package/dist/temporary-typings/src/components/Dialog/Dialog.d.ts.map +1 -1
  60. package/dist/temporary-typings/src/components/Dialog/closeTestIdContext.d.ts +2 -0
  61. package/dist/temporary-typings/src/components/Dialog/closeTestIdContext.d.ts.map +1 -0
  62. package/dist/temporary-typings/src/components/Dialog/types.d.ts +2 -1
  63. package/dist/temporary-typings/src/components/Dialog/types.d.ts.map +1 -1
  64. package/dist/temporary-typings/src/components/Drawer/Drawer.d.ts +1 -1
  65. package/dist/temporary-typings/src/components/Drawer/Drawer.d.ts.map +1 -1
  66. package/dist/temporary-typings/src/components/Drawer/types.d.ts +10 -8
  67. package/dist/temporary-typings/src/components/Drawer/types.d.ts.map +1 -1
  68. package/dist/temporary-typings/src/components/Icon/Icon.d.ts +1 -1
  69. package/dist/temporary-typings/src/components/Icon/Icon.d.ts.map +1 -1
  70. package/dist/temporary-typings/src/components/Icon/Icon.types.d.ts +2 -1
  71. package/dist/temporary-typings/src/components/Icon/Icon.types.d.ts.map +1 -1
  72. package/dist/temporary-typings/src/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
  73. package/dist/temporary-typings/src/components/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
  74. package/dist/temporary-typings/src/components/LoadingSpinner/types.d.ts +2 -1
  75. package/dist/temporary-typings/src/components/LoadingSpinner/types.d.ts.map +1 -1
  76. package/dist/temporary-typings/src/components/Logo/Logo.d.ts.map +1 -1
  77. package/dist/temporary-typings/src/components/Logo/Logo.types.d.ts +2 -1
  78. package/dist/temporary-typings/src/components/Logo/Logo.types.d.ts.map +1 -1
  79. package/dist/temporary-typings/src/components/Notifications/Alert/Alert.d.ts +1 -1
  80. package/dist/temporary-typings/src/components/Notifications/Alert/Alert.d.ts.map +1 -1
  81. package/dist/temporary-typings/src/components/Notifications/Alert/Alert.types.d.ts +2 -1
  82. package/dist/temporary-typings/src/components/Notifications/Alert/Alert.types.d.ts.map +1 -1
  83. package/dist/temporary-typings/src/components/Notifications/Banner/Banner.d.ts +1 -1
  84. package/dist/temporary-typings/src/components/Notifications/Banner/Banner.d.ts.map +1 -1
  85. package/dist/temporary-typings/src/components/Notifications/Banner/Banner.types.d.ts +2 -1
  86. package/dist/temporary-typings/src/components/Notifications/Banner/Banner.types.d.ts.map +1 -1
  87. package/dist/temporary-typings/src/components/Notifications/Toast/Toast/Toast.d.ts.map +1 -1
  88. package/dist/temporary-typings/src/components/Notifications/Toast/Toast/Toast.types.d.ts +1 -0
  89. package/dist/temporary-typings/src/components/Notifications/Toast/Toast/Toast.types.d.ts.map +1 -1
  90. package/dist/temporary-typings/src/components/OverlayTrigger/OverlayTrigger.d.ts +1 -0
  91. package/dist/temporary-typings/src/components/OverlayTrigger/OverlayTrigger.d.ts.map +1 -1
  92. package/dist/temporary-typings/src/components/Pagination/Pagination.d.ts +1 -1
  93. package/dist/temporary-typings/src/components/Pagination/Pagination.d.ts.map +1 -1
  94. package/dist/temporary-typings/src/components/Pagination/Pagination.types.d.ts +2 -1
  95. package/dist/temporary-typings/src/components/Pagination/Pagination.types.d.ts.map +1 -1
  96. package/dist/temporary-typings/src/components/ProgressBar/ProgressBar.d.ts +3 -2
  97. package/dist/temporary-typings/src/components/ProgressBar/ProgressBar.d.ts.map +1 -1
  98. package/dist/temporary-typings/src/components/SideNav/contexts/types.d.ts +1 -0
  99. package/dist/temporary-typings/src/components/SideNav/contexts/types.d.ts.map +1 -1
  100. package/dist/temporary-typings/src/components/Tabs/Tab/types.d.ts +2 -1
  101. package/dist/temporary-typings/src/components/Tabs/Tab/types.d.ts.map +1 -1
  102. package/dist/temporary-typings/src/components/Tabs/TabPanel/TabPanel.d.ts +2 -1
  103. package/dist/temporary-typings/src/components/Tabs/TabPanel/TabPanel.d.ts.map +1 -1
  104. package/dist/temporary-typings/src/components/Tabs/Tabs/Tabs.d.ts +1 -1
  105. package/dist/temporary-typings/src/components/Tabs/Tabs/Tabs.d.ts.map +1 -1
  106. package/dist/temporary-typings/src/components/Tabs/contexts/types.d.ts +1 -0
  107. package/dist/temporary-typings/src/components/Tabs/contexts/types.d.ts.map +1 -1
  108. package/dist/temporary-typings/src/components/Tag/Tag.d.ts +1 -1
  109. package/dist/temporary-typings/src/components/Tag/Tag.d.ts.map +1 -1
  110. package/dist/temporary-typings/src/components/Tag/Tag.types.d.ts +2 -1
  111. package/dist/temporary-typings/src/components/Tag/Tag.types.d.ts.map +1 -1
  112. package/dist/temporary-typings/src/components/Tile/Tile.d.ts +3 -2
  113. package/dist/temporary-typings/src/components/Tile/Tile.d.ts.map +1 -1
  114. package/dist/temporary-typings/src/components/Toggle/Toggle.d.ts +2 -1
  115. package/dist/temporary-typings/src/components/Toggle/Toggle.d.ts.map +1 -1
  116. package/dist/temporary-typings/src/components/Tooltip/Tooltip.d.ts +1 -0
  117. package/dist/temporary-typings/src/components/Tooltip/Tooltip.d.ts.map +1 -1
  118. package/dist/temporary-typings/src/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
  119. package/dist/temporary-typings/src/components/TooltipTrigger/TooltipTrigger.d.ts.map +1 -1
  120. package/dist/temporary-typings/src/components/TopBar/TopBar.d.ts +1 -1
  121. package/dist/temporary-typings/src/components/TopBar/TopBar.d.ts.map +1 -1
  122. package/dist/temporary-typings/src/components/TopBar/types.d.ts +2 -1
  123. package/dist/temporary-typings/src/components/TopBar/types.d.ts.map +1 -1
  124. package/dist/temporary-typings/src/utils/index.d.ts +2 -0
  125. package/dist/temporary-typings/src/utils/index.d.ts.map +1 -1
  126. package/dist/temporary-typings/src/utils/testId.d.ts +5 -0
  127. package/dist/temporary-typings/src/utils/testId.d.ts.map +1 -0
  128. package/package.json +2 -2
  129. package/typings/index.d.ts +56 -45
@@ -35,6 +35,11 @@ many rows or records are shown at once.
35
35
  - Keep the displayed item range, total item count, and total page count accurate after every dataset update.
36
36
  - Do not rely on the chevron icons alone; preserve accessible button names for previous and next navigation.
37
37
 
38
+ ### Testing
39
+
40
+ - Pass `data-testid` to set it on the pagination container. The previous and next buttons derive `<id>.prev` and `<id>.next`.
41
+ - See [Testing](foundations-testing.md) for when to use test IDs and how to name them.
42
+
38
43
  ### Related
39
44
 
40
45
  - **[DataTable](components-data-table.md)**: use with Pagination when tabular data needs paging, sorting, or selection.
@@ -80,6 +85,7 @@ import { Pagination } from "@maxio-com/react-ui-components";
80
85
  | Prop | Type | Required | Default | Description | Source |
81
86
  | --- | --- | --- | --- | --- | --- |
82
87
  | `currentPage` | `number` | no | `1` | Current page index | TypeLiteral |
88
+ | `data-testid` | `string` | no | - | Test ID set on the component's root element. Components with internal parts derive their IDs from it (e.g. `<id>.row.<rowId>`). | TypeLiteral |
83
89
  | `itemsPerPage` | `number` | no | `30` | Number of items shown per page | TypeLiteral |
84
90
  | `manualPageInput` | `boolean` | no | `false` | Use manual page input instead of dropdown for extremely large datasets | TypeLiteral |
85
91
  | `onChange` | `((pageInfo: PageInfo) => void)` | no | - | Export of currentPage and itemsPerPage data as an object | TypeLiteral |
@@ -75,13 +75,14 @@ import { ProgressBar } from "@maxio-com/react-ui-components";
75
75
 
76
76
  | Prop | Type | Required | Default | Description | Source |
77
77
  | --- | --- | --- | --- | --- | --- |
78
+ | `data-testid` | `string` | no | - | Test ID set on the component's root element. Components with internal parts derive their IDs from it (e.g. `<id>.row.<rowId>`). | TypeLiteral |
78
79
  | `helperText` | `string` | no | - | Helper text for the progress bar | ProgressBarProps |
79
80
  | `label` | `string` | yes | - | Label for the progress bar | ProgressBarProps |
80
81
  | `maxValue` | `number` | no | `100` | Defines the maximum value of the progress bar | ProgressBarProps |
81
82
  | `size` | `"md" \| "lg"` | no | `md` | Defines the size of the progress bar | ProgressBarProps |
82
83
  | `status` | `"error" \| "success"` | no | - | Defines the status of the progress bar | ProgressBarProps |
83
84
  | `value` | `number` | no | - | Defines the current value of the progress bar. If `undefined` the progress bar will be indeterminate. | ProgressBarProps |
84
- | `variant` | `"inline" \| "indent" \| "default"` | no | `default` | Defines the position applied to the label and helper text | ProgressBarProps |
85
+ | `variant` | `"default" \| "inline" \| "indent"` | no | `default` | Defines the position applied to the label and helper text | ProgressBarProps |
85
86
 
86
87
  ## Stories
87
88
 
@@ -137,7 +137,8 @@ import { parseDate } from '@internationalized/date';
137
137
  ## Imports
138
138
 
139
139
  ```tsx
140
- import { I18nProvider, RangeCalendar } from "@maxio-com/react-ui-components";
140
+ import { I18nProvider } from "react-aria-components/I18nProvider";
141
+ import { RangeCalendar } from "@maxio-com/react-ui-components";
141
142
  ```
142
143
 
143
144
  ## Prop Types
@@ -53,6 +53,12 @@ Choose the visual treatment that fits the surrounding surface.
53
53
  - Avoid long tab labels that wrap or make the active section hard to scan.
54
54
  - Use icons as supporting context; do not rely on icons alone unless the meaning is unmistakable.
55
55
 
56
+ ### Testing
57
+
58
+ - Pass `data-testid` to `Tabs` to set it on the tabs container.
59
+ - Tabs and panels don't derive IDs, because they are only identified by position. Pass `data-testid` to each `Tab` or `TabPanel` that a test needs to reach.
60
+ - See [Testing](foundations-testing.md) for when to use test IDs and how to name them.
61
+
56
62
  ### Related
57
63
 
58
64
  - **[SideNav](patterns-side-nav.md)**: use for primary navigation across app areas.
@@ -154,6 +160,7 @@ import { Body, Card, Icon, Tab, TabList, TabPanel, TabPanels, Tabs } from "@maxi
154
160
 
155
161
  | Prop | Type | Required | Default | Description | Source |
156
162
  | --- | --- | --- | --- | --- | --- |
163
+ | `data-testid` | `string` | no | - | Test ID set on the root element. | TypeLiteral |
157
164
  | `defaultIndex` | `number` | no | `0` | Indicates which tab should be active by default | TypeLiteral |
158
165
  | `index` | `number` | no | - | Indicates which tab should be active in controlled mode. | TypeLiteral |
159
166
  | `onChange` | `TabsOnChange` | no | - | Callback function that is fired when the tab is changed | TypeLiteral |
@@ -76,6 +76,7 @@ import { Tag } from "@maxio-com/react-ui-components";
76
76
  | Prop | Type | Required | Default | Description | Source |
77
77
  | --- | --- | --- | --- | --- | --- |
78
78
  | `children` | `ReactNode` | yes | - | React children nodes | TypeLiteral |
79
+ | `data-testid` | `string` | no | - | Test ID set on the component's root element. Components with internal parts derive their IDs from it (e.g. `<id>.row.<rowId>`). | TypeLiteral |
79
80
  | `kind` | `"primary" \| "secondary" \| "tertiary"` | no | `primary` | Modifier for the tag Kind | TypeLiteral |
80
81
  | `leadingIcon` | `string` | no | - | Element allowing leading icon selection | TypeLiteral |
81
82
  | `sentiment` | `"danger" \| "info" \| "success" \| "warning" \| "highlight"` | no | - | Modifier for the tag Sentiment | TypeLiteral |
@@ -66,6 +66,7 @@ import { Tile } from "@maxio-com/react-ui-components";
66
66
 
67
67
  | Prop | Type | Required | Default | Description | Source |
68
68
  | --- | --- | --- | --- | --- | --- |
69
+ | `data-testid` | `string` | no | - | Test ID set on the component's root element. Components with internal parts derive their IDs from it (e.g. `<id>.row.<rowId>`). | TypeLiteral |
69
70
  | `disabled` | `boolean` | no | - | - | TypeLiteral |
70
71
  | `href` | `string` | no | - | - | TypeLiteral |
71
72
  | `onClick` | `((() => void) & MouseEventHandler<HTMLDivElement>)` | no | - | - | TypeLiteral, DOMAttributes |
@@ -40,6 +40,11 @@ Toggle lets users turn a setting on or off.
40
40
  - Keep labels short and specific enough to scan in dense settings pages.
41
41
  - Place explanatory or eligibility copy near the toggle when a disabled state needs context.
42
42
 
43
+ ### Testing
44
+
45
+ - Pass `data-testid` to set it on the toggle container. Without it, the container keeps the default `toggle-container`.
46
+ - See [Testing](foundations-testing.md) for when to use test IDs and how to name them.
47
+
43
48
  ### Related
44
49
 
45
50
  - **[Checkbox](components-forms-checkbox.md)**: use for independent selections in a form or list.
@@ -93,13 +98,14 @@ import { ToggleComponent } from "@maxio-com/react-ui-components";
93
98
  | `aria-label` | `string` | no | - | Aria label for the toggle - should be provided if no valueDescription is provided | TypeLiteral |
94
99
  | `checked` | `boolean` | no | - | The state of the toggle | TypeLiteral |
95
100
  | `className` | `string` | no | - | Class name for the main container | TypeLiteral |
101
+ | `data-testid` | `string` | no | `toggle-container` | Test ID set on the root element | TypeLiteral |
96
102
  | `defaultChecked` | `boolean` | no | - | The state for uncontrolled toggle. | TypeLiteral |
97
103
  | `disabled` | `boolean` | no | - | Is the toggle disabled | TypeLiteral |
98
104
  | `id` | `string` | no | - | Toggle id - if id not provided then it will be generated automatically | TypeLiteral |
99
105
  | `name` | `string` | no | - | Toggle name | TypeLiteral |
100
106
  | `onChange` | `((value: boolean, event?: ChangeEvent<HTMLInputElement, Element> \| KeyboardEvent<HTMLInputElement>) => void)` | no | - | The onChange function | TypeLiteral |
101
107
  | `valueDescription` | `string` | no | - | Toggle label | TypeLiteral |
102
- | `valueDescriptionPosition` | `"right" \| "left"` | no | - | Toggle label position | TypeLiteral |
108
+ | `valueDescriptionPosition` | `"left" \| "right"` | no | - | Toggle label position | TypeLiteral |
103
109
 
104
110
  ## Stories
105
111
 
@@ -41,6 +41,12 @@ TooltipTrigger displays brief contextual help next to a trigger while preserving
41
41
  - Prefer concrete product language, such as "Invoices renew monthly", over generic help text.
42
42
  - Move long guidance, error recovery, or policy details into persistent page content.
43
43
 
44
+ ### Testing
45
+
46
+ - Pass `data-testid` to set it on the trigger wrapper. The tooltip derives `<id>.tooltip`.
47
+ - Without it, the wrapper keeps the default `overlay-trigger` and the tooltip keeps `tooltip`.
48
+ - See [Testing](foundations-testing.md) for when to use test IDs and how to name them.
49
+
44
50
  ### Related
45
51
 
46
52
  - **[IconButton](components-buttons-iconbutton.md)**: use for icon-only actions that need their own accessible name.
@@ -68,12 +74,13 @@ import { TooltipTrigger } from "@maxio-com/react-ui-components";
68
74
  | `autoHideMs` | `number` | no | - | Milliseconds after the overlay is automatically deactivated | TypeLiteral |
69
75
  | `children` | `ReactNode` | yes | - | React children nodes | TypeLiteral |
70
76
  | `className` | `string` | no | - | Class name for the main container | TypeLiteral |
77
+ | `data-testid` | `string` | no | `'overlay-trigger'` | Test ID set on the main container | TypeLiteral |
71
78
  | `floatingElementOffset` | `number` | no | `5` | Floating element offset | TypeLiteral |
72
79
  | `interactions` | `Interactions[]` | no | `['hover']` | Definition of interactions that manages displaying of overlay element | TypeLiteral |
73
80
  | `isVisible` | `boolean` | no | - | Tooltip visibility state - use with useExternalState property | TypeLiteral |
74
81
  | `maxWidth` | `number \| "none"` | no | `160` | Maximum tooltip container width in pixels | TypeLiteral |
75
82
  | `onVisibilityUpdate` | `((isVisible: boolean) => void)` | no | - | Tooltip visibility state | TypeLiteral |
76
- | `placement` | `"top" \| "right" \| "bottom" \| "left" \| "top-start" \| "top-end" \| "right-start" \| "right-end" \| "bottom-start" \| "bottom-end" \| "left-start" \| "left-end"` | no | `right` | Overlay element placement | TypeLiteral |
83
+ | `placement` | `"left" \| "right" \| "top" \| "bottom" \| "left-start" \| "left-end" \| "right-start" \| "right-end" \| "top-start" \| "top-end" \| "bottom-start" \| "bottom-end"` | no | `right` | Overlay element placement | TypeLiteral |
77
84
  | `renderContent` | `() => ReactNode` | yes | - | Tooltip content renderer | TypeLiteral |
78
85
  | `size` | `"small" \| "regular"` | no | `regular` | Tooltip component size variant | TypeLiteral |
79
86
  | `usePortal` | `boolean` | no | - | Render floating element in portal container | TypeLiteral |
@@ -0,0 +1,191 @@
1
+ # Testing
2
+
3
+ Every component accepts a `data-testid` prop and sets it on its root element. Some components also derive IDs for their internal parts (rows, buttons) from it, so a test can reach them without knowing the component's markup.
4
+
5
+ ## Who sets the IDs
6
+
7
+ The screen that uses the component sets the IDs. The design system never invents IDs for a screen: it only forwards the one you pass and derives the IDs of its own internal parts.
8
+
9
+ `data-testid` is optional. When you don't pass it, nothing is rendered (except the legacy defaults listed below).
10
+
11
+ ## When to use a test ID
12
+
13
+ Prefer queries by role and accessible name (`getByRole('button', { name: 'Save' })`). They test what the user sees and fail when accessibility breaks.
14
+
15
+ Use `data-testid` when role and name are not enough:
16
+
17
+ - **Repeated elements**: several "Edit" buttons, one per row or card.
18
+ - **Icon-only buttons**: their accessible name is generic ("Close", "More").
19
+ - **Tables, tabs and pagination**: tests need a specific row, cell, tab or page control.
20
+ - **Copy that changes**: labels that product or translations change often.
21
+
22
+ Layout components (`Flex`, `Grid`, headings and body text) usually don't need a test ID.
23
+
24
+ ## Naming
25
+
26
+ Use `<screen>.<element>[.<action>]`:
27
+
28
+ - Segments are kebab-case and joined with dots: `customer-details.invoices-table`, `customer-details.save`.
29
+ - IDs are unique on the page.
30
+ - Don't put generated values, positions or copy in the ID. Use the record's own ID instead: `invoices.table.row.inv_123`, not `invoices.table.row.3`.
31
+
32
+ ## Derived IDs
33
+
34
+ When you pass `data-testid="<id>"`, these components also set IDs on their internal parts:
35
+
36
+ | Component | Root | Derived IDs |
37
+ | -------------- | ---------------------- | ---------------------------------------------------------------------------- |
38
+ | DataTable | Table wrapper | `<id>.header.<columnId>`, `<id>.row.<rowId>`, `<id>.cell.<rowId>.<columnId>` |
39
+ | Pagination | Pagination container | `<id>.prev`, `<id>.next` |
40
+ | Drawer | Drawer panel | `<id>.close` |
41
+ | Alert, Banner | Notification container | `<id>.dismiss` |
42
+ | Toast | Toast | `<testId>.dismiss` |
43
+ | ActionMenu | `Menu` | `<id>.trigger` (`MenuButton`), `<id>.list` (`MenuList`) |
44
+ | TooltipTrigger | Trigger wrapper | `<id>.tooltip` |
45
+
46
+ Notes:
47
+
48
+ - **DataTable**: `<rowId>` comes from `getRowId`. Without it, TanStack uses the row index, so pass `getRowId` to get stable IDs.
49
+ - **Tabs**: tabs and panels don't derive IDs, because they are only identified by position. Pass `data-testid` to each `Tab` or `TabPanel` a test needs to reach.
50
+ - **ActionMenu**: a `data-testid` on `MenuButton` or `MenuList` overrides the derived ID.
51
+ - **Toast and SideNav**: their content is passed as data, so they take a `testId` field instead of a `data-testid` prop.
52
+
53
+ ## Examples
54
+
55
+ ### Simple control
56
+
57
+ Set the ID on the control. Prefer `getByRole('textbox', { name: 'Email' })` when the label is stable.
58
+
59
+ ```ts
60
+ screen.getByTestId('customer-form.email');
61
+ ```
62
+
63
+ ### Icon-only button
64
+
65
+ Its accessible name is generic, so a test ID tells it apart from other "Edit" buttons on the page.
66
+
67
+ ```ts
68
+ screen.getByTestId('invoice-detail.edit');
69
+ ```
70
+
71
+ ### Table with rows
72
+
73
+ Pass `getRowId` so rows and cells use the record's ID.
74
+
75
+ ```ts
76
+ screen.getByTestId('invoices.table.row.inv_123');
77
+ screen.getByTestId('invoices.table.cell.inv_123.amount');
78
+ screen.getByTestId('invoices.table.header.amount');
79
+ ```
80
+
81
+ ### Tabs
82
+
83
+ Set an ID on the container and on each tab or panel the test needs.
84
+
85
+ ```ts
86
+ screen.getByTestId('customer-details.tabs.invoices');
87
+ screen.getByTestId('customer-details.tabs.invoices-panel');
88
+ ```
89
+
90
+ ### Pagination
91
+
92
+ ```ts
93
+ screen.getByTestId('invoices.pagination.next');
94
+ screen.getByTestId('invoices.pagination.prev');
95
+ ```
96
+
97
+ ## Default IDs
98
+
99
+ Some components had hardcoded test IDs. They stay as defaults so existing tests keep working, and a passed ID overrides them:
100
+
101
+ | Component | Default ID | Override |
102
+ | ---------------- | ----------------------- | ------------------------------ |
103
+ | Toggle | `toggle-container` | `data-testid` |
104
+ | Tooltip | `tooltip` | `data-testid` |
105
+ | OverlayTrigger | `overlay-trigger` | `data-testid` |
106
+ | SideNav section | `maxio-sidebar-section` | `testId` on the section object |
107
+ | SideNav sub-item | `maxio-section-item` | `testId` on the item object |
108
+
109
+ ## Imports
110
+
111
+ ```tsx
112
+ import {
113
+ DataTable,
114
+ Icon,
115
+ IconButton,
116
+ Pagination,
117
+ Tab,
118
+ TabList,
119
+ TabPanel,
120
+ TabPanels,
121
+ Tabs,
122
+ TextField,
123
+ } from "@maxio-com/react-ui-components";
124
+ ```
125
+
126
+ ## Stories
127
+
128
+ ### Simple Control
129
+
130
+ ```tsx
131
+ const SimpleControl = () => <TextField label="Email" data-testid="customer-form.email" />;
132
+ ```
133
+
134
+ ### Icon Only Button
135
+
136
+ ```tsx
137
+ const IconOnlyButton = () => (
138
+ <IconButton
139
+ aria-label="Edit"
140
+ icon={<Icon variant="pen" />}
141
+ data-testid="invoice-detail.edit"
142
+ />
143
+ );
144
+ ```
145
+
146
+ ### Table With Rows
147
+
148
+ ```tsx
149
+ const TableWithRows = () => (
150
+ <DataTable
151
+ data-testid="invoices.table"
152
+ columns={invoiceColumns}
153
+ data={invoices}
154
+ getRowId={(invoice) => invoice.id}
155
+ />
156
+ );
157
+ ```
158
+
159
+ ### Tabs
160
+
161
+ ```tsx
162
+ const TabsWithIds = () => (
163
+ <Tabs data-testid="customer-details.tabs">
164
+ <TabList ariaLabel="Customer sections">
165
+ <Tab data-testid="customer-details.tabs.overview">Overview</Tab>
166
+ <Tab data-testid="customer-details.tabs.invoices">Invoices</Tab>
167
+ </TabList>
168
+ <TabPanels>
169
+ <TabPanel data-testid="customer-details.tabs.overview-panel">
170
+ Overview content
171
+ </TabPanel>
172
+ <TabPanel data-testid="customer-details.tabs.invoices-panel">
173
+ Invoices content
174
+ </TabPanel>
175
+ </TabPanels>
176
+ </Tabs>
177
+ );
178
+ ```
179
+
180
+ ### Pagination
181
+
182
+ ```tsx
183
+ const PaginationWithIds = () => (
184
+ <Pagination
185
+ data-testid="invoices.pagination"
186
+ totalItems={125}
187
+ itemsPerPage={10}
188
+ pageSizeOptions={[10, 25, 50]}
189
+ />
190
+ );
191
+ ```
@@ -41,6 +41,12 @@ SideNav provides persistent application navigation for Maxio products.
41
41
  - Use one active item at a time. If a child route is current, keep its parent section expanded or visually associated with the active child.
42
42
  - Avoid using icons as the only way to identify a destination; labels should remain meaningful when icons are hidden.
43
43
 
44
+ ### Testing
45
+
46
+ - Items are passed as data, so set the test ID with the `testId` field of each section or sub-item in `sections`.
47
+ - Without it, sections keep the default `maxio-sidebar-section` and sub-items keep `maxio-section-item`.
48
+ - See [Testing](foundations-testing.md) for when to use test IDs and how to name them.
49
+
44
50
  ### Related
45
51
 
46
52
  - **[TopBar](patterns-top-bar.md)**: use for global utilities such as search, help, notifications, and profile actions.
@@ -79,6 +79,7 @@ import {
79
79
  | --- | --- | --- | --- | --- | --- |
80
80
  | `actions` | `ReactNode` | yes | - | Actions displayed on the right side of the top bar | TypeLiteral |
81
81
  | `children` | `ReactNode` | no | - | Additional actions displayed in the middle of the top bar | TypeLiteral |
82
+ | `data-testid` | `string` | no | - | Test ID set on the component's root element. Components with internal parts derive their IDs from it (e.g. `<id>.row.<rowId>`). | TypeLiteral |
82
83
  | `openSideNav` | `(() => void)` | no | - | Callback function to open the side navigation | TypeLiteral |
83
84
  | `sideNavIsClosed` | `boolean` | no | - | Show/hide side navigation button | TypeLiteral |
84
85
 
@@ -1,11 +1,12 @@
1
1
  import React, { ReactNode } from 'react';
2
- interface MenuProps {
2
+ import type { TestIdProps } from '../../../../utils/testId';
3
+ interface MenuProps extends TestIdProps {
3
4
  children: ReactNode | (({ isOpen, onClose, }: {
4
5
  isOpen: boolean;
5
6
  onClose: () => void;
6
7
  }) => ReactNode);
7
8
  }
8
9
  export declare const MenuWrapper: ({ children }: MenuProps) => React.JSX.Element;
9
- declare const Menu: ({ children }: MenuProps) => React.JSX.Element;
10
+ declare const Menu: ({ children, "data-testid": testId }: MenuProps) => React.JSX.Element;
10
11
  export default Menu;
11
12
  //# sourceMappingURL=Menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ActionMenu/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,UAAU,SAAS;IACjB,QAAQ,EACJ,SAAS,GACT,CAAC,CAAC,EACA,MAAM,EACN,OAAO,GACR,EAAE;QACD,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,KAAK,SAAS,CAAC,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,GAAI,cAAc,SAAS,sBAUlD,CAAC;AAEF,QAAA,MAAM,IAAI,GAAI,cAAc,SAAS,sBAMpC,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ActionMenu/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,UAAU,SAAU,SAAQ,WAAW;IACrC,QAAQ,EACJ,SAAS,GACT,CAAC,CAAC,EACA,MAAM,EACN,OAAO,GACR,EAAE;QACD,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,KAAK,SAAS,CAAC,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,GAAI,cAAc,SAAS,sBAelD,CAAC;AAEF,QAAA,MAAM,IAAI,GAAI,qCAAqC,SAAS,sBAM3D,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { MenuButtonProps } from './types';
3
- declare const MenuButton: ({ children, iconName, "aria-label": ariaLabel, size, variant, }: MenuButtonProps) => React.JSX.Element;
3
+ declare const MenuButton: ({ children, iconName, "aria-label": ariaLabel, size, variant, "data-testid": ownTestId, }: MenuButtonProps) => React.JSX.Element;
4
4
  export default MenuButton;
5
5
  //# sourceMappingURL=MenuButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ActionMenu/components/MenuButton/MenuButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAM1C,QAAA,MAAM,UAAU,GAAI,iEAMjB,eAAe,sBAkCjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"MenuButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ActionMenu/components/MenuButton/MenuButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAO1C,QAAA,MAAM,UAAU,GAAI,2FAOjB,eAAe,sBAmCjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { ButtonProps } from '../../../Buttons/Button/types';
2
2
  import { IconVariant } from '../../../Icon';
3
- export type MenuButtonProps = Omit<ButtonProps, 'onClick' | 'children' | 'disabled' | 'loading' | 'icon'> & {
3
+ import type { TestIdProps } from '../../../../utils/testId';
4
+ export type MenuButtonProps = Omit<ButtonProps, 'onClick' | 'children' | 'disabled' | 'loading' | 'icon'> & TestIdProps & {
4
5
  children?: React.ReactNode;
5
6
  iconName?: IconVariant | null;
6
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ActionMenu/components/MenuButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,WAAW,EACX,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CACzD,GAAG;IACF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAC/B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ActionMenu/components/MenuButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,WAAW,EACX,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CACzD,GACC,WAAW,GAAG;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAC/B,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import { ActionListItem } from '../../../ActionList';
3
- interface MenuListProps {
3
+ import { type TestIdProps } from '../../../../utils/testId';
4
+ interface MenuListProps extends TestIdProps {
4
5
  items: ActionListItem[];
5
6
  alignItemsEnd?: boolean;
6
7
  }
7
- declare const MenuList: ({ items, alignItemsEnd }: MenuListProps) => React.JSX.Element;
8
+ declare const MenuList: ({ items, alignItemsEnd, "data-testid": ownTestId, }: MenuListProps) => React.JSX.Element;
8
9
  export default MenuList;
9
10
  //# sourceMappingURL=MenuList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ActionMenu/components/MenuList/MenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAmB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGjE,UAAU,aAAa;IACrB,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,QAAA,MAAM,QAAQ,GAAI,0BAAkC,aAAa,sBAmBhE,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ActionMenu/components/MenuList/MenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAmB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEzE,UAAU,aAAc,SAAQ,WAAW;IACzC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,QAAA,MAAM,QAAQ,GAAI,qDAIf,aAAa,sBAuBf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -6,9 +6,11 @@ export interface IMenuContext {
6
6
  onToggle: () => void;
7
7
  controlsId: string;
8
8
  buttonId: string;
9
+ testId?: string;
9
10
  }
10
11
  export declare const MenuContext: React.Context<IMenuContext>;
11
- export declare const MenuProvider: ({ children }: {
12
+ export declare const MenuProvider: ({ children, testId, }: {
12
13
  children: ReactNode;
14
+ testId?: string;
13
15
  }) => React.JSX.Element;
14
16
  //# sourceMappingURL=MenuContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuContext.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ActionMenu/contexts/MenuContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA2B,SAAS,EAAS,MAAM,OAAO,CAAC;AAEzE,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,WAAW,6BAAoC,CAAC;AAE7D,eAAO,MAAM,YAAY,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sBAmBjE,CAAC"}
1
+ {"version":3,"file":"MenuContext.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ActionMenu/contexts/MenuContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA2B,SAAS,EAAS,MAAM,OAAO,CAAC;AAEzE,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,6BAAoC,CAAC;AAE7D,eAAO,MAAM,YAAY,GAAI,uBAG1B;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,sBA2BA,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { AvatarProps } from './Avatar.types';
3
- declare const Avatar: ({ className, src, alt }: AvatarProps) => React.JSX.Element;
3
+ declare const Avatar: ({ className, src, alt, "data-testid": testId, }: AvatarProps) => React.JSX.Element;
4
4
  export default Avatar;
5
5
  //# sourceMappingURL=Avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,QAAA,MAAM,MAAM,GAAI,yBAAoC,WAAW,sBAE9D,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,QAAA,MAAM,MAAM,GAAI,iDAKb,WAAW,sBASb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,4 +1,5 @@
1
- export type AvatarProps = {
1
+ import type { TestIdProps } from '../../utils/testId';
2
+ export type AvatarProps = TestIdProps & {
2
3
  className?: string;
3
4
  src: string;
4
5
  alt?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/Avatar.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IAIxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,GAAG,EAAE,MAAM,CAAC;IAIZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC"}
1
+ {"version":3,"file":"Avatar.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/Avatar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IAItC,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,GAAG,EAAE,MAAM,CAAC;IAIZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { DataTableProps } from './DataTable.types';
3
3
  import { RowData } from '@tanstack/react-table';
4
- declare const DataTable: <TData extends RowData>({ pattern, size, SubRowComponent, onExpand, onSelect, onSort, enableSorting, enableRowSelection, enableExpanding, columns: originalColumns, actions, actionsColumnSize, onRowAction, enableRowReordering, getRowReorderLabel, onRowReorder, rowReorderMode, getRowId, getSubRows, state: userState, ...props }: DataTableProps<TData>) => React.JSX.Element;
4
+ declare const DataTable: <TData extends RowData>({ pattern, size, SubRowComponent, onExpand, onSelect, onSort, enableSorting, enableRowSelection, enableExpanding, columns: originalColumns, actions, actionsColumnSize, onRowAction, enableRowReordering, getRowReorderLabel, onRowReorder, rowReorderMode, getRowId, getSubRows, state: userState, "data-testid": testId, ...props }: DataTableProps<TData>) => React.JSX.Element;
5
5
  export default DataTable;
6
6
  //# sourceMappingURL=DataTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/DataTable/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,cAAc,EAAqB,MAAM,mBAAmB,CAAC;AAOtE,OAAO,EAKL,OAAO,EAER,MAAM,uBAAuB,CAAC;AAsB/B,QAAA,MAAM,SAAS,GAAI,KAAK,SAAS,OAAO,EAAE,gTAsBvC,cAAc,CAAC,KAAK,CAAC,sBAoJvB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/DataTable/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,cAAc,EAAqB,MAAM,mBAAmB,CAAC;AAOtE,OAAO,EAKL,OAAO,EAER,MAAM,uBAAuB,CAAC;AAuB/B,QAAA,MAAM,SAAS,GAAI,KAAK,SAAS,OAAO,EAAE,uUAuBvC,cAAc,CAAC,KAAK,CAAC,sBAuJvB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { TestIdProps } from '../../utils/testId';
1
2
  import { ColumnDef, ExpandedState, Row, RowData, RowSelectionState, SortingState, TableOptions, Table } from '@tanstack/react-table';
2
3
  export type { RowData, SortingState, ColumnDef };
3
4
  export type TableSize = 'sm' | 'md' | 'lg';
@@ -36,7 +37,7 @@ type RowReorderingOptions<TData extends RowData> = {
36
37
  onRowReorder: (event: RowReorderEvent<TData>) => void;
37
38
  rowReorderMode?: RowReorderMode;
38
39
  };
39
- type DataTableBaseProps<TData extends RowData> = {
40
+ type DataTableBaseProps<TData extends RowData> = TestIdProps & {
40
41
  size?: TableSize;
41
42
  pattern?: boolean;
42
43
  align?: ColumnAlign;
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/DataTable/DataTable.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,aAAa,EACb,GAAG,EACH,OAAO,EACP,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,KAAK,EACN,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;AAEjD,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;AAC3C,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,YAAY,GAAG,KAAK,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE/D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,OAAO,IAAI;IACnD,IAAI,EAAE,KAAK,EAAE,CAAC;IACd,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,WAAW,EAAE,kBAAkB,CAAC;CACjC,CAAC;AAEF,KAAK,oBAAoB,CAAC,KAAK,SAAS,OAAO,IAAI,IAAI,CACrD,YAAY,CAAC,KAAK,CAAC,EACnB,MAAM,GAAG,SAAS,CACnB,CAAC;AACF,KAAK,oBAAoB,CAAC,KAAK,SAAS,OAA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GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAIxC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAC;IAI7C,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAIjD,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;CAC3C,GAAG,oBAAoB,CAAC,KAAK,CAAC,GAC7B,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAE9B,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,IACxD,kBAAkB,CAAC,KAAK,CAAC,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAE1D,OAAO,QAAQ,uBAAuB,CAAC;IAErC,UAAU,UAAU,CAAC,KAAK,SAAS,OAAO,EAAE,MAAM;QAChD,KAAK,CAAC,EAAE,WAAW,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB;CACF"}
@@ -6,7 +6,8 @@ type RowRendererProps<TData> = {
6
6
  pattern?: boolean;
7
7
  enableExpanding?: boolean | 'rowsOnly';
8
8
  onRowAction?: (row: Row<TData>) => void;
9
+ testId?: string;
9
10
  };
10
- declare const RowRenderer: <TData extends RowData>({ row, SubRowComponent, pattern, enableExpanding, onRowAction, }: RowRendererProps<TData>) => React.JSX.Element;
11
+ declare const RowRenderer: <TData extends RowData>({ row, SubRowComponent, pattern, enableExpanding, onRowAction, testId, }: RowRendererProps<TData>) => React.JSX.Element;
11
12
  export default RowRenderer;
12
13
  //# sourceMappingURL=RowRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RowRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/DataTable/components/RowRenderer/RowRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,OAAO,EAAc,MAAM,uBAAuB,CAAC;AAOjE,KAAK,gBAAgB,CAAC,KAAK,IAAI;IAC7B,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAChB,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IACvC,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,KAAK,SAAS,OAAO,EAAE,kEAMzC,gBAAgB,CAAC,KAAK,CAAC,sBAsHzB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"RowRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/DataTable/components/RowRenderer/RowRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,OAAO,EAAc,MAAM,uBAAuB,CAAC;AAQjE,KAAK,gBAAgB,CAAC,KAAK,IAAI;IAC7B,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAChB,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IACvC,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,KAAK,SAAS,OAAO,EAAE,0EAOzC,gBAAgB,CAAC,KAAK,CAAC,sBAmIzB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { TableProps } from './Table.types';
3
- declare const Table: ({ children, pattern, size, isExpandable, isUsingCustomRow, }: TableProps) => React.JSX.Element;
3
+ declare const Table: ({ children, pattern, size, isExpandable, isUsingCustomRow, "data-testid": testId, }: TableProps) => React.JSX.Element;
4
4
  export default Table;
5
5
  //# sourceMappingURL=Table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/DataTable/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,KAAK,GAAI,8DAMZ,UAAU,sBA2BZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/DataTable/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,KAAK,GAAI,qFAOZ,UAAU,sBA+BZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -6,5 +6,6 @@ export type TableProps = {
6
6
  size?: TableSize;
7
7
  isExpandable?: boolean;
8
8
  isUsingCustomRow?: boolean;
9
+ 'data-testid'?: string;
9
10
  };
10
11
  //# sourceMappingURL=Table.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/DataTable/components/Table/Table.types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC"}
1
+ {"version":3,"file":"Table.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/DataTable/components/Table/Table.types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { DialogProps } from './types';
3
- declare const Dialog: ({ title, description, children, footer, role, showCloseButton, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...props }: DialogProps) => React.JSX.Element;
3
+ declare const Dialog: ({ title, description, children, footer, role, showCloseButton, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "data-testid": testId, ...props }: DialogProps) => React.JSX.Element;
4
4
  export default Dialog;
5
5
  //# sourceMappingURL=Dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAU7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAS3C,QAAA,MAAM,MAAM,GAAI,uLAYb,WAAW,sBAwEb,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAYzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAS3C,QAAA,MAAM,MAAM,GAAI,8MAab,WAAW,sBA4Eb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const DialogCloseTestIdContext: import("react").Context<string | undefined>;
2
+ //# sourceMappingURL=closeTestIdContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"closeTestIdContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/closeTestIdContext.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB,6CAEpC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { DialogProps as AriaDialogProps } from 'react-aria-components';
3
- export interface DialogProps extends Omit<AriaDialogProps, 'children' | 'className'> {
3
+ import type { TestIdProps } from '../../utils/testId';
4
+ export interface DialogProps extends Omit<AriaDialogProps, 'children' | 'className'>, TestIdProps {
4
5
  title: ReactNode;
5
6
  description?: ReactNode;
6
7
  children: ReactNode | ((opts: {