@maxio-com/react-ui-components 9.31.0 → 9.33.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 (138) 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 +3 -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-copy-to-clipboard.md +1 -1
  8. package/dist/skills/maxio-react/references/components-data-table.md +9 -2
  9. package/dist/skills/maxio-react/references/components-dialog.md +45 -0
  10. package/dist/skills/maxio-react/references/components-drawer.md +7 -1
  11. package/dist/skills/maxio-react/references/components-flex.md +4 -4
  12. package/dist/skills/maxio-react/references/components-grid.md +11 -11
  13. package/dist/skills/maxio-react/references/components-icon.md +1 -0
  14. package/dist/skills/maxio-react/references/components-loading-spinner.md +1 -0
  15. package/dist/skills/maxio-react/references/components-logo.md +1 -0
  16. package/dist/skills/maxio-react/references/components-modal.md +507 -0
  17. package/dist/skills/maxio-react/references/components-notifications-alert.md +6 -0
  18. package/dist/skills/maxio-react/references/components-notifications-banner.md +6 -0
  19. package/dist/skills/maxio-react/references/components-notifications-toast.md +6 -0
  20. package/dist/skills/maxio-react/references/components-pagination.md +6 -0
  21. package/dist/skills/maxio-react/references/components-popover.md +1 -1
  22. package/dist/skills/maxio-react/references/components-progressbar.md +2 -1
  23. package/dist/skills/maxio-react/references/components-tabs.md +7 -0
  24. package/dist/skills/maxio-react/references/components-tag.md +1 -0
  25. package/dist/skills/maxio-react/references/components-tile.md +1 -0
  26. package/dist/skills/maxio-react/references/components-toggle.md +7 -1
  27. package/dist/skills/maxio-react/references/components-tooltip.md +8 -1
  28. package/dist/skills/maxio-react/references/foundations-testing.md +191 -0
  29. package/dist/skills/maxio-react/references/patterns-side-nav.md +6 -0
  30. package/dist/skills/maxio-react/references/patterns-top-bar.md +1 -0
  31. package/dist/temporary-typings/src/components/ActionMenu/components/Menu/Menu.d.ts +3 -2
  32. package/dist/temporary-typings/src/components/ActionMenu/components/Menu/Menu.d.ts.map +1 -1
  33. package/dist/temporary-typings/src/components/ActionMenu/components/MenuButton/MenuButton.d.ts +1 -1
  34. package/dist/temporary-typings/src/components/ActionMenu/components/MenuButton/MenuButton.d.ts.map +1 -1
  35. package/dist/temporary-typings/src/components/ActionMenu/components/MenuButton/types.d.ts +2 -1
  36. package/dist/temporary-typings/src/components/ActionMenu/components/MenuButton/types.d.ts.map +1 -1
  37. package/dist/temporary-typings/src/components/ActionMenu/components/MenuList/MenuList.d.ts +3 -2
  38. package/dist/temporary-typings/src/components/ActionMenu/components/MenuList/MenuList.d.ts.map +1 -1
  39. package/dist/temporary-typings/src/components/ActionMenu/contexts/MenuContext.d.ts +3 -1
  40. package/dist/temporary-typings/src/components/ActionMenu/contexts/MenuContext.d.ts.map +1 -1
  41. package/dist/temporary-typings/src/components/Avatar/Avatar.d.ts +1 -1
  42. package/dist/temporary-typings/src/components/Avatar/Avatar.d.ts.map +1 -1
  43. package/dist/temporary-typings/src/components/Avatar/Avatar.types.d.ts +2 -1
  44. package/dist/temporary-typings/src/components/Avatar/Avatar.types.d.ts.map +1 -1
  45. package/dist/temporary-typings/src/components/DataTable/DataTable.d.ts +1 -1
  46. package/dist/temporary-typings/src/components/DataTable/DataTable.d.ts.map +1 -1
  47. package/dist/temporary-typings/src/components/DataTable/DataTable.types.d.ts +2 -1
  48. package/dist/temporary-typings/src/components/DataTable/DataTable.types.d.ts.map +1 -1
  49. package/dist/temporary-typings/src/components/DataTable/components/RowRenderer/RowRenderer.d.ts +2 -1
  50. package/dist/temporary-typings/src/components/DataTable/components/RowRenderer/RowRenderer.d.ts.map +1 -1
  51. package/dist/temporary-typings/src/components/DataTable/components/Table/Table.d.ts +1 -1
  52. package/dist/temporary-typings/src/components/DataTable/components/Table/Table.d.ts.map +1 -1
  53. package/dist/temporary-typings/src/components/DataTable/components/Table/Table.types.d.ts +1 -0
  54. package/dist/temporary-typings/src/components/DataTable/components/Table/Table.types.d.ts.map +1 -1
  55. package/dist/temporary-typings/src/components/Dialog/Dialog.d.ts +5 -0
  56. package/dist/temporary-typings/src/components/Dialog/Dialog.d.ts.map +1 -0
  57. package/dist/temporary-typings/src/components/Dialog/index.d.ts +3 -0
  58. package/dist/temporary-typings/src/components/Dialog/index.d.ts.map +1 -0
  59. package/dist/temporary-typings/src/components/Dialog/types.d.ts +15 -0
  60. package/dist/temporary-typings/src/components/Dialog/types.d.ts.map +1 -0
  61. package/dist/temporary-typings/src/components/Drawer/Drawer.d.ts +1 -1
  62. package/dist/temporary-typings/src/components/Drawer/Drawer.d.ts.map +1 -1
  63. package/dist/temporary-typings/src/components/Drawer/types.d.ts +2 -1
  64. package/dist/temporary-typings/src/components/Drawer/types.d.ts.map +1 -1
  65. package/dist/temporary-typings/src/components/Icon/Icon.d.ts +1 -1
  66. package/dist/temporary-typings/src/components/Icon/Icon.d.ts.map +1 -1
  67. package/dist/temporary-typings/src/components/Icon/Icon.types.d.ts +2 -1
  68. package/dist/temporary-typings/src/components/Icon/Icon.types.d.ts.map +1 -1
  69. package/dist/temporary-typings/src/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
  70. package/dist/temporary-typings/src/components/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
  71. package/dist/temporary-typings/src/components/LoadingSpinner/types.d.ts +2 -1
  72. package/dist/temporary-typings/src/components/LoadingSpinner/types.d.ts.map +1 -1
  73. package/dist/temporary-typings/src/components/Logo/Logo.d.ts.map +1 -1
  74. package/dist/temporary-typings/src/components/Logo/Logo.types.d.ts +2 -1
  75. package/dist/temporary-typings/src/components/Logo/Logo.types.d.ts.map +1 -1
  76. package/dist/temporary-typings/src/components/Modal/Modal.d.ts +5 -0
  77. package/dist/temporary-typings/src/components/Modal/Modal.d.ts.map +1 -0
  78. package/dist/temporary-typings/src/components/Modal/index.d.ts +3 -0
  79. package/dist/temporary-typings/src/components/Modal/index.d.ts.map +1 -0
  80. package/dist/temporary-typings/src/components/Modal/types.d.ts +10 -0
  81. package/dist/temporary-typings/src/components/Modal/types.d.ts.map +1 -0
  82. package/dist/temporary-typings/src/components/Notifications/Alert/Alert.d.ts +1 -1
  83. package/dist/temporary-typings/src/components/Notifications/Alert/Alert.d.ts.map +1 -1
  84. package/dist/temporary-typings/src/components/Notifications/Alert/Alert.types.d.ts +2 -1
  85. package/dist/temporary-typings/src/components/Notifications/Alert/Alert.types.d.ts.map +1 -1
  86. package/dist/temporary-typings/src/components/Notifications/Banner/Banner.d.ts +1 -1
  87. package/dist/temporary-typings/src/components/Notifications/Banner/Banner.d.ts.map +1 -1
  88. package/dist/temporary-typings/src/components/Notifications/Banner/Banner.types.d.ts +2 -1
  89. package/dist/temporary-typings/src/components/Notifications/Banner/Banner.types.d.ts.map +1 -1
  90. package/dist/temporary-typings/src/components/Notifications/Toast/Toast/Toast.d.ts.map +1 -1
  91. package/dist/temporary-typings/src/components/Notifications/Toast/Toast/Toast.types.d.ts +1 -0
  92. package/dist/temporary-typings/src/components/Notifications/Toast/Toast/Toast.types.d.ts.map +1 -1
  93. package/dist/temporary-typings/src/components/OverlayTrigger/OverlayTrigger.d.ts +1 -0
  94. package/dist/temporary-typings/src/components/OverlayTrigger/OverlayTrigger.d.ts.map +1 -1
  95. package/dist/temporary-typings/src/components/Pagination/Pagination.d.ts +1 -1
  96. package/dist/temporary-typings/src/components/Pagination/Pagination.d.ts.map +1 -1
  97. package/dist/temporary-typings/src/components/Pagination/Pagination.types.d.ts +2 -1
  98. package/dist/temporary-typings/src/components/Pagination/Pagination.types.d.ts.map +1 -1
  99. package/dist/temporary-typings/src/components/ProgressBar/ProgressBar.d.ts +3 -2
  100. package/dist/temporary-typings/src/components/ProgressBar/ProgressBar.d.ts.map +1 -1
  101. package/dist/temporary-typings/src/components/SideNav/contexts/types.d.ts +1 -0
  102. package/dist/temporary-typings/src/components/SideNav/contexts/types.d.ts.map +1 -1
  103. package/dist/temporary-typings/src/components/Tabs/Tab/types.d.ts +2 -1
  104. package/dist/temporary-typings/src/components/Tabs/Tab/types.d.ts.map +1 -1
  105. package/dist/temporary-typings/src/components/Tabs/TabPanel/TabPanel.d.ts +2 -1
  106. package/dist/temporary-typings/src/components/Tabs/TabPanel/TabPanel.d.ts.map +1 -1
  107. package/dist/temporary-typings/src/components/Tabs/Tabs/Tabs.d.ts +1 -1
  108. package/dist/temporary-typings/src/components/Tabs/Tabs/Tabs.d.ts.map +1 -1
  109. package/dist/temporary-typings/src/components/Tabs/contexts/types.d.ts +1 -0
  110. package/dist/temporary-typings/src/components/Tabs/contexts/types.d.ts.map +1 -1
  111. package/dist/temporary-typings/src/components/Tag/Tag.d.ts +1 -1
  112. package/dist/temporary-typings/src/components/Tag/Tag.d.ts.map +1 -1
  113. package/dist/temporary-typings/src/components/Tag/Tag.types.d.ts +2 -1
  114. package/dist/temporary-typings/src/components/Tag/Tag.types.d.ts.map +1 -1
  115. package/dist/temporary-typings/src/components/Tile/Tile.d.ts +3 -2
  116. package/dist/temporary-typings/src/components/Tile/Tile.d.ts.map +1 -1
  117. package/dist/temporary-typings/src/components/Toggle/Toggle.d.ts +2 -1
  118. package/dist/temporary-typings/src/components/Toggle/Toggle.d.ts.map +1 -1
  119. package/dist/temporary-typings/src/components/Tooltip/Tooltip.d.ts +1 -0
  120. package/dist/temporary-typings/src/components/Tooltip/Tooltip.d.ts.map +1 -1
  121. package/dist/temporary-typings/src/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
  122. package/dist/temporary-typings/src/components/TooltipTrigger/TooltipTrigger.d.ts.map +1 -1
  123. package/dist/temporary-typings/src/components/TopBar/TopBar.d.ts +1 -1
  124. package/dist/temporary-typings/src/components/TopBar/TopBar.d.ts.map +1 -1
  125. package/dist/temporary-typings/src/components/TopBar/types.d.ts +2 -1
  126. package/dist/temporary-typings/src/components/TopBar/types.d.ts.map +1 -1
  127. package/dist/temporary-typings/src/components/index.d.ts +5 -1
  128. package/dist/temporary-typings/src/components/index.d.ts.map +1 -1
  129. package/dist/temporary-typings/src/hooks/useIsOverflowing/index.d.ts +2 -0
  130. package/dist/temporary-typings/src/hooks/useIsOverflowing/index.d.ts.map +1 -0
  131. package/dist/temporary-typings/src/hooks/useIsOverflowing/useIsOverflowing.d.ts +3 -0
  132. package/dist/temporary-typings/src/hooks/useIsOverflowing/useIsOverflowing.d.ts.map +1 -0
  133. package/dist/temporary-typings/src/utils/index.d.ts +2 -0
  134. package/dist/temporary-typings/src/utils/index.d.ts.map +1 -1
  135. package/dist/temporary-typings/src/utils/testId.d.ts +5 -0
  136. package/dist/temporary-typings/src/utils/testId.d.ts.map +1 -0
  137. package/package.json +2 -2
  138. package/typings/index.d.ts +76 -40
@@ -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,KAA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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"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
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;
4
+ export default Dialog;
5
+ //# sourceMappingURL=Dialog.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,3 @@
1
+ export { default as Dialog } from './Dialog';
2
+ export type { DialogProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { DialogProps as AriaDialogProps } from 'react-aria-components';
3
+ export interface DialogProps extends Omit<AriaDialogProps, 'children' | 'className'> {
4
+ title: ReactNode;
5
+ description?: ReactNode;
6
+ children: ReactNode | ((opts: {
7
+ close: () => void;
8
+ }) => ReactNode);
9
+ footer?: ReactNode | ((opts: {
10
+ close: () => void;
11
+ }) => ReactNode);
12
+ showCloseButton?: boolean;
13
+ className?: string;
14
+ }
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE5E,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,eAAe,EACf,UAAU,GAAG,WAAW,CACzB;IAIC,KAAK,EAAE,SAAS,CAAC;IAIjB,WAAW,CAAC,EAAE,SAAS,CAAC;IAIxB,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,SAAS,CAAC,CAAC;IAKnE,MAAM,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,SAAS,CAAC,CAAC;IAKlE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { DrawerProps } from './types';
3
- declare const Drawer: ({ open, onOpenChange, placement, backdrop, size, className, title, description, children, footer, }: DrawerProps) => React.JSX.Element;
3
+ declare const Drawer: ({ open, onOpenChange, placement, backdrop, size, className, title, description, children, footer, "data-testid": testId, }: DrawerProps) => React.JSX.Element;
4
4
  export default Drawer;
5
5
  //# sourceMappingURL=Drawer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,QAAA,MAAM,MAAM,GAAI,qGAWb,WAAW,sBAqDb,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,QAAA,MAAM,MAAM,GAAI,4HAYb,WAAW,sBAuDb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
+ import type { TestIdProps } from '../../utils/testId';
2
3
  export type DrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
3
4
  export type DrawerBackdrop = 'dim' | 'none';
4
5
  export type DrawerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
5
- export interface DrawerProps {
6
+ export interface DrawerProps extends TestIdProps {
6
7
  title: string;
7
8
  description?: string;
8
9
  children: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,CAAC;AAC5C,MAAM,MAAM,UAA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AC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IconProps } from './Icon.types';
3
- declare const Icon: ({ variant, color, className, size }: IconProps) => React.JSX.Element;
3
+ declare const Icon: ({ variant, color, className, size, "data-testid": testId, }: IconProps) => React.JSX.Element;
4
4
  export default Icon;
5
5
  //# sourceMappingURL=Icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAe,MAAM,cAAc,CAAC;AAEtD,QAAA,MAAM,IAAI,GAAI,qCAAqC,SAAS,sBAuB3D,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAe,MAAM,cAAc,CAAC;AAEtD,QAAA,MAAM,IAAI,GAAI,6DAMX,SAAS,sBAuBX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,6 +1,7 @@
1
+ import type { TestIdProps } from '../../utils/testId';
1
2
  import { ICONS } from './constants';
2
3
  export type IconVariant = (typeof ICONS)[number] | string;
3
- export type IconProps = {
4
+ export type IconProps = TestIdProps & {
4
5
  className?: string;
5
6
  size?: 'xs' | 'md' | 'lg';
6
7
  variant: IconVariant;
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG;IAItB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAI1B,OAAO,EAAE,WAAW,CAAC;IAIrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"Icon.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG;IAIpC,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAI1B,OAAO,EAAE,WAAW,CAAC;IAIrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { LoadingSpinnerProps } from './types';
3
- declare const LoadingSpinner: ({ size, white, className, }: LoadingSpinnerProps) => React.JSX.Element;
3
+ declare const LoadingSpinner: ({ size, white, className, "data-testid": testId, }: LoadingSpinnerProps) => React.JSX.Element;
4
4
  export default LoadingSpinner;
5
5
  //# sourceMappingURL=LoadingSpinner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingSpinner.d.ts","sourceRoot":"","sources":["../../../../../src/components/LoadingSpinner/LoadingSpinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,QAAA,MAAM,cAAc,GAAI,6BAIrB,mBAAmB,sBAUrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"LoadingSpinner.d.ts","sourceRoot":"","sources":["../../../../../src/components/LoadingSpinner/LoadingSpinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,QAAA,MAAM,cAAc,GAAI,oDAKrB,mBAAmB,sBAerB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,5 +1,6 @@
1
+ import type { TestIdProps } from '../../utils/testId';
1
2
  type LoadingSpinnerSize = 'sm' | 'md' | 'lg' | 'xl';
2
- export type LoadingSpinnerProps = {
3
+ export type LoadingSpinnerProps = TestIdProps & {
3
4
  size?: LoadingSpinnerSize;
4
5
  white?: boolean;
5
6
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/LoadingSpinner/types.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD,MAAM,MAAM,mBAAmB,GAAG;IAIhC,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAI1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAIhB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/LoadingSpinner/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,KAAK,kBAAkB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAI9C,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAI1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAIhB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../../../src/components/Logo/Logo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,QAAA,MAAM,IAAI,GAAI,OAAO,SAAS,sBAwB7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../../../src/components/Logo/Logo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,QAAA,MAAM,IAAI,GAAI,OAAO,SAAS,sBA0B7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,4 +1,5 @@
1
- export type LogoProps = {
1
+ import type { TestIdProps } from '../../utils/testId';
2
+ export type LogoProps = TestIdProps & {
2
3
  className?: string;
3
4
  variant?: 'lockup' | 'mark';
4
5
  alt?: string;