@databricks/design-system 1.11.0 → 1.12.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 (106) hide show
  1. package/dist/common-1fb3eeb9.js +35 -0
  2. package/dist/common-1fb3eeb9.js.map +1 -0
  3. package/dist/common-819b45d4.js +15 -0
  4. package/dist/common-819b45d4.js.map +1 -0
  5. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
  6. package/dist/design-system/DialogCombobox/DialogCombobox.d.ts +10 -0
  7. package/dist/design-system/DialogCombobox/DialogCombobox.d.ts.map +1 -0
  8. package/dist/design-system/DialogCombobox/DialogComboboxButtonContainer.d.ts +2 -0
  9. package/dist/design-system/DialogCombobox/DialogComboboxButtonContainer.d.ts.map +1 -0
  10. package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts +14 -0
  11. package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts.map +1 -0
  12. package/dist/design-system/DialogCombobox/DialogComboboxCountBadge.d.ts +2 -0
  13. package/dist/design-system/DialogCombobox/DialogComboboxCountBadge.d.ts.map +1 -0
  14. package/dist/design-system/DialogCombobox/DialogComboboxLoadingSpinner.d.ts +2 -0
  15. package/dist/design-system/DialogCombobox/DialogComboboxLoadingSpinner.d.ts.map +1 -0
  16. package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts +9 -0
  17. package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts.map +1 -0
  18. package/dist/design-system/DialogCombobox/DialogComboboxOptionList.d.ts +10 -0
  19. package/dist/design-system/DialogCombobox/DialogComboboxOptionList.d.ts.map +1 -0
  20. package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts +11 -0
  21. package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts.map +1 -0
  22. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts +7 -0
  23. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts.map +1 -0
  24. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +10 -0
  25. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -0
  26. package/dist/design-system/DialogCombobox/DialogComboboxSectionHeader.d.ts +2 -0
  27. package/dist/design-system/DialogCombobox/DialogComboboxSectionHeader.d.ts.map +1 -0
  28. package/dist/design-system/DialogCombobox/DialogComboboxSeparator.d.ts +2 -0
  29. package/dist/design-system/DialogCombobox/DialogComboboxSeparator.d.ts.map +1 -0
  30. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts +15 -0
  31. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -0
  32. package/dist/design-system/DialogCombobox/hooks/useDialogComboboxContext.d.ts +2 -0
  33. package/dist/design-system/DialogCombobox/hooks/useDialogComboboxContext.d.ts.map +1 -0
  34. package/dist/design-system/DialogCombobox/hooks/useDialogComboboxOptionListContext.d.ts +2 -0
  35. package/dist/design-system/DialogCombobox/hooks/useDialogComboboxOptionListContext.d.ts.map +1 -0
  36. package/dist/design-system/DialogCombobox/index.d.ts +14 -0
  37. package/dist/design-system/DialogCombobox/index.d.ts.map +1 -0
  38. package/dist/design-system/DialogCombobox/providers/DialogComboboxContext.d.ts +15 -0
  39. package/dist/design-system/DialogCombobox/providers/DialogComboboxContext.d.ts.map +1 -0
  40. package/dist/design-system/DialogCombobox/providers/DialogComboboxOptionListContext.d.ts +10 -0
  41. package/dist/design-system/DialogCombobox/providers/DialogComboboxOptionListContext.d.ts.map +1 -0
  42. package/dist/design-system/DialogCombobox/shared.d.ts +3 -0
  43. package/dist/design-system/DialogCombobox/shared.d.ts.map +1 -0
  44. package/dist/design-system/DialogCombobox/tests/DialogCombobox.test.d.ts +2 -0
  45. package/dist/design-system/DialogCombobox/tests/DialogCombobox.test.d.ts.map +1 -0
  46. package/dist/design-system/DialogCombobox/tests/DialogComboboxButtonContainer.test.d.ts +2 -0
  47. package/dist/design-system/DialogCombobox/tests/DialogComboboxButtonContainer.test.d.ts.map +1 -0
  48. package/dist/design-system/DialogCombobox/tests/DialogComboboxContent.test.d.ts +2 -0
  49. package/dist/design-system/DialogCombobox/tests/DialogComboboxContent.test.d.ts.map +1 -0
  50. package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionList.test.d.ts +2 -0
  51. package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionList.test.d.ts.map +1 -0
  52. package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionListCheckboxItem.test.d.ts +2 -0
  53. package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionListCheckboxItem.test.d.ts.map +1 -0
  54. package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionListSelectItem.test.d.ts +2 -0
  55. package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionListSelectItem.test.d.ts.map +1 -0
  56. package/dist/design-system/DialogCombobox/tests/DialogComboboxTrigger.test.d.ts +2 -0
  57. package/dist/design-system/DialogCombobox/tests/DialogComboboxTrigger.test.d.ts.map +1 -0
  58. package/dist/design-system/Drawer/Drawer.d.ts +6 -1
  59. package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
  60. package/dist/design-system/Notification/Notification.d.ts +1 -0
  61. package/dist/design-system/Notification/Notification.d.ts.map +1 -1
  62. package/dist/design-system/NotificationV2/NotificationV2.d.ts +1 -0
  63. package/dist/design-system/NotificationV2/NotificationV2.d.ts.map +1 -1
  64. package/dist/design-system/Sidebar/Sidebar.d.ts +3 -1
  65. package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
  66. package/dist/design-system/TableUI/TableUI.test.d.ts +2 -0
  67. package/dist/design-system/TableUI/TableUI.test.d.ts.map +1 -0
  68. package/dist/design-system/TableUI/index.d.ts +101 -0
  69. package/dist/design-system/TableUI/index.d.ts.map +1 -0
  70. package/dist/design-system/index.d.ts +2 -0
  71. package/dist/design-system/index.d.ts.map +1 -1
  72. package/dist/development/index.d.ts +0 -2
  73. package/dist/development/index.d.ts.map +1 -1
  74. package/dist/development.js +5 -1311
  75. package/dist/development.js.map +1 -1
  76. package/dist/index.js +4112 -541
  77. package/dist/index.js.map +1 -1
  78. package/dist/test-utils/common.d.ts +17 -0
  79. package/dist/test-utils/common.d.ts.map +1 -1
  80. package/dist/test-utils/enzyme/index.d.ts +1 -0
  81. package/dist/test-utils/enzyme/index.d.ts.map +1 -1
  82. package/dist/test-utils/enzyme/table.d.ts +49 -0
  83. package/dist/test-utils/enzyme/table.d.ts.map +1 -0
  84. package/dist/test-utils/enzyme/table.test.d.ts +2 -0
  85. package/dist/test-utils/enzyme/table.test.d.ts.map +1 -0
  86. package/dist/test-utils/enzyme/utils.d.ts +6 -0
  87. package/dist/test-utils/enzyme/utils.d.ts.map +1 -1
  88. package/dist/test-utils/enzyme.js +123 -18
  89. package/dist/test-utils/enzyme.js.map +1 -1
  90. package/dist/test-utils/rtl/index.d.ts +1 -0
  91. package/dist/test-utils/rtl/index.d.ts.map +1 -1
  92. package/dist/test-utils/rtl/table.d.ts +50 -0
  93. package/dist/test-utils/rtl/table.d.ts.map +1 -0
  94. package/dist/test-utils/rtl/table.test.d.ts +2 -0
  95. package/dist/test-utils/rtl/table.test.d.ts.map +1 -0
  96. package/dist/test-utils/rtl.js +109 -19
  97. package/dist/test-utils/rtl.js.map +1 -1
  98. package/dist/theme/colorList.d.ts +0 -1
  99. package/dist/theme/colorList.d.ts.map +1 -1
  100. package/dist/theme/colors.d.ts +0 -1
  101. package/dist/theme/colors.d.ts.map +1 -1
  102. package/dist/useDesignSystemTheme-6e6f5867.js +441 -0
  103. package/dist/useDesignSystemTheme-6e6f5867.js.map +1 -0
  104. package/dist/useDesignSystemTheme-ac536b0f.js +443 -0
  105. package/dist/useDesignSystemTheme-ac536b0f.js.map +1 -0
  106. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import userEvent from '@testing-library/user-event';
2
- import { waitFor, screen } from '@testing-library/react';
3
- import { s as selectClasses } from '../common-3ab0e300.js';
2
+ import { waitFor, screen, within, queryHelpers } from '@testing-library/react';
3
+ import { s as selectClasses, c as createMarkdownTable } from '../common-1fb3eeb9.js';
4
4
 
5
5
  /**
6
6
  * Opens the dropdown menu for the <Select/> by clicking. Will throw an error if
@@ -8,18 +8,18 @@ import { s as selectClasses } from '../common-3ab0e300.js';
8
8
  */
9
9
  async function openMenu(select) {
10
10
  if (select.classList.contains(selectClasses.open)) {
11
- throw new Error("Select is already open\n".concat(select.innerHTML));
11
+ throw new Error(`Select is already open\n${select.innerHTML}`);
12
12
  }
13
- const selector = select.querySelector(".".concat(selectClasses.selector));
13
+ const selector = select.querySelector(`.${selectClasses.selector}`);
14
14
  if (!selector) {
15
- throw new Error("Selector not found\n".concat(select.innerHTML));
15
+ throw new Error(`Selector not found\n${select.innerHTML}`);
16
16
  }
17
17
  await userEvent.click(selector, {
18
18
  pointerEventsCheck: 0
19
19
  });
20
20
  await waitFor(() => {
21
21
  if (!select.classList.contains(selectClasses.open)) {
22
- throw new Error("Select did not open\n".concat(select.innerHTML));
22
+ throw new Error(`Select did not open\n${select.innerHTML}`);
23
23
  }
24
24
  });
25
25
  }
@@ -30,18 +30,18 @@ async function openMenu(select) {
30
30
  */
31
31
  async function closeMenu(select) {
32
32
  if (!select.classList.contains(selectClasses.open)) {
33
- throw new Error("Select is already closed\n".concat(select.innerHTML));
33
+ throw new Error(`Select is already closed\n${select.innerHTML}`);
34
34
  }
35
- const selector = select.querySelector(".".concat(selectClasses.selector));
35
+ const selector = select.querySelector(`.${selectClasses.selector}`);
36
36
  if (!selector) {
37
- throw new Error("Selector not found\n".concat(select.innerHTML));
37
+ throw new Error(`Selector not found\n${select.innerHTML}`);
38
38
  }
39
39
  await userEvent.click(selector, {
40
40
  pointerEventsCheck: 0
41
41
  });
42
42
  await waitFor(() => {
43
43
  if (select.classList.contains(selectClasses.open)) {
44
- throw new Error("Select did not close\n".concat(select.innerHTML));
44
+ throw new Error(`Select did not close\n${select.innerHTML}`);
45
45
  }
46
46
  });
47
47
  }
@@ -51,9 +51,9 @@ async function closeMenu(select) {
51
51
  */
52
52
  function getLabelText(select) {
53
53
  var _selector$textContent, _selector$textContent2;
54
- const selector = select.querySelector(".".concat(selectClasses.selector));
54
+ const selector = select.querySelector(`.${selectClasses.selector}`);
55
55
  if (!selector) {
56
- throw new Error("Selector not found\n".concat(select.innerHTML));
56
+ throw new Error(`Selector not found\n${select.innerHTML}`);
57
57
  }
58
58
  // Trim the text to avoid weird whitespace issues non-label elements being added.
59
59
  // For example, the input mirror is an empty span with some whitespace that is
@@ -102,9 +102,9 @@ async function singleSelect(select, option) {
102
102
  * the `allowClear` prop must be set to `true`.
103
103
  */
104
104
  async function clearAll(select) {
105
- const clearBtn = select.querySelector(".".concat(selectClasses.clear));
105
+ const clearBtn = select.querySelector(`.${selectClasses.clear}`);
106
106
  if (!clearBtn) {
107
- throw new Error("Select not clearable\n".concat(select.innerHTML));
107
+ throw new Error(`Select not clearable\n${select.innerHTML}`);
108
108
  }
109
109
  await userEvent.click(clearBtn);
110
110
  }
@@ -115,14 +115,14 @@ async function clearAll(select) {
115
115
  */
116
116
  async function getAllOptions(select) {
117
117
  await openMenu(select);
118
- const optionsList = select.ownerDocument.body.querySelector(".".concat(selectClasses.list));
118
+ const optionsList = select.ownerDocument.body.querySelector(`.${selectClasses.list}`);
119
119
  if (optionsList === null) {
120
- throw new Error("Options list not found\n".concat(select.ownerDocument.body.innerHTML));
120
+ throw new Error(`Options list not found\n${select.ownerDocument.body.innerHTML}`);
121
121
  }
122
122
  const options = [];
123
- optionsList.querySelectorAll(".".concat(selectClasses.option)).forEach(option => {
123
+ optionsList.querySelectorAll(`.${selectClasses.option}`).forEach(option => {
124
124
  if (option.textContent === null) {
125
- throw new Error("Option had no text content\n".concat(option.innerHTML));
125
+ throw new Error(`Option had no text content\n${option.innerHTML}`);
126
126
  }
127
127
  options.push(option.textContent);
128
128
  });
@@ -141,6 +141,96 @@ var selectEvent = /*#__PURE__*/Object.freeze({
141
141
  getAllOptions: getAllOptions
142
142
  });
143
143
 
144
+ /**
145
+ * Returns the table row that contains the specified `cellText`. The `cellText`
146
+ * must be in the column with name `columnHeaderName` if it is specified. Otherwise,
147
+ * the `cellText` must be in the first column. Throws an error if either multiple
148
+ * rows or no rows can be found that match the given options. Also throws an error
149
+ * if the column with name `columnHeaderName` cannot be found.
150
+ *
151
+ * @param tableElement The HTMLElement representing the table to query in. This is likely
152
+ * a <div role="table"> element, so it can be queried by `screen.getByRole('table')`.
153
+ * @param cellText The cell text that uniquely identifies the row.
154
+ * @param columnHeaderName The name of the column to search the text for. If not provided,
155
+ * the first column will be used.
156
+ */
157
+ function getTableRowByCellText(tableElement, cellText) {
158
+ let {
159
+ columnHeaderName
160
+ } = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
161
+ let columnHeaderIndex;
162
+ if (columnHeaderName === undefined) {
163
+ columnHeaderIndex = 0;
164
+ } else {
165
+ var _columnHeader$parentE, _columnHeader$parentE2;
166
+ const columnHeader = within(tableElement).getByRole('columnheader', {
167
+ name: columnHeaderName
168
+ });
169
+ columnHeaderIndex = Array.from((_columnHeader$parentE = (_columnHeader$parentE2 = columnHeader.parentElement) === null || _columnHeader$parentE2 === void 0 ? void 0 : _columnHeader$parentE2.children) !== null && _columnHeader$parentE !== void 0 ? _columnHeader$parentE : []).indexOf(columnHeader);
170
+ }
171
+ const matchingRows = within(tableElement).getAllByRole('row')
172
+ // Skip first row (table header)
173
+ .slice(1).filter(row => {
174
+ const cells = within(row).getAllByRole('cell');
175
+ const cell = cells[columnHeaderIndex];
176
+ const cellContainsText = within(cell).queryByText(cellText) !== null;
177
+ return cellContainsText;
178
+ });
179
+ if (matchingRows.length === 0) {
180
+ throw queryHelpers.getElementError(`Unable to find a table row with text "${cellText}" in the column "${columnHeaderName}"`, tableElement);
181
+ }
182
+ if (matchingRows.length > 1) {
183
+ throw queryHelpers.getElementError(`Found multiple table rows with text "${cellText}" in the column "${columnHeaderName}"`, tableElement);
184
+ }
185
+ return matchingRows[0];
186
+ }
187
+
188
+ /**
189
+ * Converts a Du Bois table to a markdown table string. This means that each cell
190
+ * is separated by a pipe (including the edges), the header row is on its own line
191
+ * at the top, each data row is on its own line below, and the header row is separated
192
+ * by a row of dashes from the data rows. This is useful for checking table contents
193
+ * in tests.
194
+ *
195
+ * @param tableElement The HTMLElement representing the table to query in. This is likely
196
+ * a <div role="table"> element, so it can be queried by `screen.getByRole('table')`.
197
+ *
198
+ * @example
199
+ * The HTML table:
200
+ * <Table>
201
+ * <TableRow isHeader>
202
+ * <TableHeader>Name</TableHeader>
203
+ * <TableHeader>Fruit</TableHeader>
204
+ * </TableRow>
205
+ * <TableRow>
206
+ * <TableCell>Alice</TableCell>
207
+ * <TableCell>Apple</TableCell>
208
+ * </TableRow>
209
+ * <TableRow>
210
+ * <TableCell>Brady</TableCell>
211
+ * <TableCell>Banana</TableCell>
212
+ * </TableRow>
213
+ * </Table>
214
+ *
215
+ * The Markdown table:
216
+ * | Name | Fruit |
217
+ * | --- | --- |
218
+ * | Alice | Apple |
219
+ * | Brady | Banana |
220
+ */
221
+ function toMarkdownTable(tableElement) {
222
+ const [firstRow, ...restRows] = within(tableElement).getAllByRole('row');
223
+ const columns = within(firstRow).getAllByRole('columnheader').map(column => {
224
+ var _column$textContent;
225
+ return (_column$textContent = column.textContent) !== null && _column$textContent !== void 0 ? _column$textContent : '';
226
+ });
227
+ const rows = restRows.map(row => within(row).getAllByRole('cell').map(cell => {
228
+ var _cell$textContent;
229
+ return (_cell$textContent = cell.textContent) !== null && _cell$textContent !== void 0 ? _cell$textContent : '';
230
+ }));
231
+ return createMarkdownTable(columns, rows);
232
+ }
233
+
144
234
  /**
145
235
  * Opens the dropdown menu by clicking on the dropdown button.
146
236
  *
@@ -150,5 +240,5 @@ const openDropdownMenu = async dropdownButton => {
150
240
  await userEvent.type(dropdownButton, '{arrowdown}');
151
241
  };
152
242
 
153
- export { openDropdownMenu, selectEvent };
243
+ export { getTableRowByCellText, openDropdownMenu, selectEvent, toMarkdownTable };
154
244
  //# sourceMappingURL=rtl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rtl.js","sources":["../../src/test-utils/rtl/selectEvent.ts","../../src/test-utils/rtl/index.ts"],"sourcesContent":["import { waitFor, screen } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\n\nimport { selectClasses } from '../common';\n\n/**\n * Opens the dropdown menu for the <Select/> by clicking. Will throw an error if\n * the menu is already opened or if the menu is unable to be opened.\n */\nexport async function openMenu(select: HTMLElement): Promise<void> {\n if (select.classList.contains(selectClasses.open)) {\n throw new Error(`Select is already open\\n${select.innerHTML}`);\n }\n const selector = select.querySelector(`.${selectClasses.selector}`);\n if (!selector) {\n throw new Error(`Selector not found\\n${select.innerHTML}`);\n }\n await userEvent.click(selector, { pointerEventsCheck: 0 });\n await waitFor(() => {\n if (!select.classList.contains(selectClasses.open)) {\n throw new Error(`Select did not open\\n${select.innerHTML}`);\n }\n });\n}\n\n/**\n * Closes the dropdown menu for the <Select/> by clicking. Will throw an error if\n * the menu is already closed or if the menu is unable to be closed.\n */\nexport async function closeMenu(select: HTMLElement): Promise<void> {\n if (!select.classList.contains(selectClasses.open)) {\n throw new Error(`Select is already closed\\n${select.innerHTML}`);\n }\n const selector = select.querySelector(`.${selectClasses.selector}`);\n if (!selector) {\n throw new Error(`Selector not found\\n${select.innerHTML}`);\n }\n await userEvent.click(selector, { pointerEventsCheck: 0 });\n await waitFor(() => {\n if (select.classList.contains(selectClasses.open)) {\n throw new Error(`Select did not close\\n${select.innerHTML}`);\n }\n });\n}\n\n/**\n * Returns a string concatenating the labels for all selected options.\n */\nexport function getLabelText(select: HTMLElement): string {\n const selector = select.querySelector(`.${selectClasses.selector}`);\n if (!selector) {\n throw new Error(`Selector not found\\n${select.innerHTML}`);\n }\n // Trim the text to avoid weird whitespace issues non-label elements being added.\n // For example, the input mirror is an empty span with some whitespace that is\n // nested under the selector but does not show up in the label text.\n return selector.textContent?.trim() ?? '';\n}\n\n/**\n * Selects options from the dropdown menu for a <Select/> component with `mode=\"multiple\"`.\n * The provided strings must match the option labels exactly. There is a known\n * limitation for lists that are extremely long because AntD virtualizes the\n * options so not all may options may be rendered in the DOM. If this is causing\n * you issues, please let #help-frontend know.\n */\nexport async function multiSelect(select: HTMLElement, options: string[]): Promise<void> {\n await openMenu(select);\n for (let i = 0; i < options.length; i++) {\n const option = options[i];\n const optionItem = screen.getByTitle(option);\n await userEvent.click(optionItem, { pointerEventsCheck: 0 });\n }\n // Close the menu to indicate that selection has finished\n await closeMenu(select);\n}\n\n/**\n * Selects options from the dropdown menu for a <Select/> component without a\n * mode. The provided string must match an option label exactly. There is a known\n * limitation for lists that are extremely long because AntD virtualizes the\n * options so not all may options may be rendered in the DOM. If this is causing\n * you issues, please let #help-frontend know.\n */\nexport async function singleSelect(select: HTMLElement, option: string): Promise<void> {\n await openMenu(select);\n const optionElem = screen.getByTitle(option);\n await userEvent.click(optionElem, { pointerEventsCheck: 0 });\n // Menu automatically closes for a single <Select/> (no mode=\"multiple\")\n}\n\n/**\n * Clicks on the \"Clear\" button. In order for this function to work properly,\n * the `allowClear` prop must be set to `true`.\n */\nexport async function clearAll(select: HTMLElement): Promise<void> {\n const clearBtn = select.querySelector(`.${selectClasses.clear}`);\n if (!clearBtn) {\n throw new Error(`Select not clearable\\n${select.innerHTML}`);\n }\n await userEvent.click(clearBtn);\n}\n\n/**\n * Opens the dropdown menu, finds all of the options in the dropdown, closes\n * the menu, and returns a list of the text of each option in order.\n */\nexport async function getAllOptions(select: HTMLElement): Promise<string[]> {\n await openMenu(select);\n const optionsList = select.ownerDocument.body.querySelector(`.${selectClasses.list}`);\n if (optionsList === null) {\n throw new Error(`Options list not found\\n${select.ownerDocument.body.innerHTML}`);\n }\n const options: string[] = [];\n optionsList.querySelectorAll(`.${selectClasses.option}`).forEach((option) => {\n if (option.textContent === null) {\n throw new Error(`Option had no text content\\n${option.innerHTML}`);\n }\n options.push(option.textContent);\n });\n await closeMenu(select);\n return options;\n}\n","import userEvent from '@testing-library/user-event';\n\nexport * as selectEvent from './selectEvent';\n\n/**\n * Opens the dropdown menu by clicking on the dropdown button.\n *\n * @param dropdownButton - The Dropdown Trigger button that opens the menu when clicked.\n */\nexport const openDropdownMenu = async (dropdownButton: HTMLElement) => {\n await userEvent.type(dropdownButton, '{arrowdown}');\n};\n"],"names":["openMenu","select","classList","contains","selectClasses","open","Error","innerHTML","selector","querySelector","userEvent","click","pointerEventsCheck","waitFor","closeMenu","getLabelText","textContent","trim","multiSelect","options","i","length","option","optionItem","screen","getByTitle","singleSelect","optionElem","clearAll","clearBtn","clear","getAllOptions","optionsList","ownerDocument","body","list","querySelectorAll","forEach","push","openDropdownMenu","dropdownButton","type"],"mappings":";;;;AAKA;AACA;AACA;AACA;AACO,eAAeA,QAAQ,CAACC,MAAmB,EAAiB;EACjE,IAAIA,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,aAAa,CAACC,IAAI,CAAC,EAAE;IACjD,MAAM,IAAIC,KAAK,mCAA4BL,MAAM,CAACM,SAAS,EAAG;;EAEhE,MAAMC,QAAQ,GAAGP,MAAM,CAACQ,aAAa,YAAKL,aAAa,CAACI,QAAQ,EAAG;EACnE,IAAI,CAACA,QAAQ,EAAE;IACb,MAAM,IAAIF,KAAK,+BAAwBL,MAAM,CAACM,SAAS,EAAG;;EAE5D,MAAMG,SAAS,CAACC,KAAK,CAACH,QAAQ,EAAE;IAAEI,kBAAkB,EAAE;GAAG,CAAC;EAC1D,MAAMC,OAAO,CAAC,MAAM;IAClB,IAAI,CAACZ,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,aAAa,CAACC,IAAI,CAAC,EAAE;MAClD,MAAM,IAAIC,KAAK,gCAAyBL,MAAM,CAACM,SAAS,EAAG;;GAE9D,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACO,eAAeO,SAAS,CAACb,MAAmB,EAAiB;EAClE,IAAI,CAACA,MAAM,CAACC,SAAS,C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,IAAIV,KAAK,uCAAgCgB,MAAM,CAACf,SAAS,EAAG;;IAEpEY,OAAO,CAACmB,IAAI,CAAChB,MAAM,CAACN,WAAW,CAAC;GACjC,CAAC;EACF,MAAMF,SAAS,CAACb,MAAM,CAAC;EACvB,OAAOkB,OAAO;AAChB;;;;;;;;;;;;;ACtHA;AACA;AACA;AACA;AACA;MACaoB,gBAAgB,GAAG,MAAOC,cAA2B,IAAK;EACrE,MAAM9B,SAAS,CAAC+B,IAAI,CAACD,cAAc,EAAE,aAAa,CAAC;AACrD;;;;"}
1
+ {"version":3,"file":"rtl.js","sources":["../../src/test-utils/rtl/selectEvent.ts","../../src/test-utils/rtl/table.ts","../../src/test-utils/rtl/index.ts"],"sourcesContent":["import { waitFor, screen } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\n\nimport { selectClasses } from '../common';\n\n/**\n * Opens the dropdown menu for the <Select/> by clicking. Will throw an error if\n * the menu is already opened or if the menu is unable to be opened.\n */\nexport async function openMenu(select: HTMLElement): Promise<void> {\n if (select.classList.contains(selectClasses.open)) {\n throw new Error(`Select is already open\\n${select.innerHTML}`);\n }\n const selector = select.querySelector(`.${selectClasses.selector}`);\n if (!selector) {\n throw new Error(`Selector not found\\n${select.innerHTML}`);\n }\n await userEvent.click(selector, { pointerEventsCheck: 0 });\n await waitFor(() => {\n if (!select.classList.contains(selectClasses.open)) {\n throw new Error(`Select did not open\\n${select.innerHTML}`);\n }\n });\n}\n\n/**\n * Closes the dropdown menu for the <Select/> by clicking. Will throw an error if\n * the menu is already closed or if the menu is unable to be closed.\n */\nexport async function closeMenu(select: HTMLElement): Promise<void> {\n if (!select.classList.contains(selectClasses.open)) {\n throw new Error(`Select is already closed\\n${select.innerHTML}`);\n }\n const selector = select.querySelector(`.${selectClasses.selector}`);\n if (!selector) {\n throw new Error(`Selector not found\\n${select.innerHTML}`);\n }\n await userEvent.click(selector, { pointerEventsCheck: 0 });\n await waitFor(() => {\n if (select.classList.contains(selectClasses.open)) {\n throw new Error(`Select did not close\\n${select.innerHTML}`);\n }\n });\n}\n\n/**\n * Returns a string concatenating the labels for all selected options.\n */\nexport function getLabelText(select: HTMLElement): string {\n const selector = select.querySelector(`.${selectClasses.selector}`);\n if (!selector) {\n throw new Error(`Selector not found\\n${select.innerHTML}`);\n }\n // Trim the text to avoid weird whitespace issues non-label elements being added.\n // For example, the input mirror is an empty span with some whitespace that is\n // nested under the selector but does not show up in the label text.\n return selector.textContent?.trim() ?? '';\n}\n\n/**\n * Selects options from the dropdown menu for a <Select/> component with `mode=\"multiple\"`.\n * The provided strings must match the option labels exactly. There is a known\n * limitation for lists that are extremely long because AntD virtualizes the\n * options so not all may options may be rendered in the DOM. If this is causing\n * you issues, please let #help-frontend know.\n */\nexport async function multiSelect(select: HTMLElement, options: string[]): Promise<void> {\n await openMenu(select);\n for (let i = 0; i < options.length; i++) {\n const option = options[i];\n const optionItem = screen.getByTitle(option);\n await userEvent.click(optionItem, { pointerEventsCheck: 0 });\n }\n // Close the menu to indicate that selection has finished\n await closeMenu(select);\n}\n\n/**\n * Selects options from the dropdown menu for a <Select/> component without a\n * mode. The provided string must match an option label exactly. There is a known\n * limitation for lists that are extremely long because AntD virtualizes the\n * options so not all may options may be rendered in the DOM. If this is causing\n * you issues, please let #help-frontend know.\n */\nexport async function singleSelect(select: HTMLElement, option: string): Promise<void> {\n await openMenu(select);\n const optionElem = screen.getByTitle(option);\n await userEvent.click(optionElem, { pointerEventsCheck: 0 });\n // Menu automatically closes for a single <Select/> (no mode=\"multiple\")\n}\n\n/**\n * Clicks on the \"Clear\" button. In order for this function to work properly,\n * the `allowClear` prop must be set to `true`.\n */\nexport async function clearAll(select: HTMLElement): Promise<void> {\n const clearBtn = select.querySelector(`.${selectClasses.clear}`);\n if (!clearBtn) {\n throw new Error(`Select not clearable\\n${select.innerHTML}`);\n }\n await userEvent.click(clearBtn);\n}\n\n/**\n * Opens the dropdown menu, finds all of the options in the dropdown, closes\n * the menu, and returns a list of the text of each option in order.\n */\nexport async function getAllOptions(select: HTMLElement): Promise<string[]> {\n await openMenu(select);\n const optionsList = select.ownerDocument.body.querySelector(`.${selectClasses.list}`);\n if (optionsList === null) {\n throw new Error(`Options list not found\\n${select.ownerDocument.body.innerHTML}`);\n }\n const options: string[] = [];\n optionsList.querySelectorAll(`.${selectClasses.option}`).forEach((option) => {\n if (option.textContent === null) {\n throw new Error(`Option had no text content\\n${option.innerHTML}`);\n }\n options.push(option.textContent);\n });\n await closeMenu(select);\n return options;\n}\n","import { queryHelpers, within } from '@testing-library/react';\n\nimport type { GetTableRowByCellTextOptions } from '../common';\nimport { createMarkdownTable } from '../common';\n\n/**\n * Returns the table row that contains the specified `cellText`. The `cellText`\n * must be in the column with name `columnHeaderName` if it is specified. Otherwise,\n * the `cellText` must be in the first column. Throws an error if either multiple\n * rows or no rows can be found that match the given options. Also throws an error\n * if the column with name `columnHeaderName` cannot be found.\n *\n * @param tableElement The HTMLElement representing the table to query in. This is likely\n * a <div role=\"table\"> element, so it can be queried by `screen.getByRole('table')`.\n * @param cellText The cell text that uniquely identifies the row.\n * @param columnHeaderName The name of the column to search the text for. If not provided,\n * the first column will be used.\n */\nexport function getTableRowByCellText(\n tableElement: HTMLElement,\n cellText: string,\n { columnHeaderName }: GetTableRowByCellTextOptions = {}\n): HTMLElement {\n let columnHeaderIndex: number;\n if (columnHeaderName === undefined) {\n columnHeaderIndex = 0;\n } else {\n const columnHeader = within(tableElement).getByRole('columnheader', { name: columnHeaderName });\n columnHeaderIndex = Array.from(columnHeader.parentElement?.children ?? []).indexOf(columnHeader);\n }\n\n const matchingRows = within(tableElement)\n .getAllByRole('row')\n // Skip first row (table header)\n .slice(1)\n .filter((row) => {\n const cells = within(row).getAllByRole('cell');\n const cell = cells[columnHeaderIndex];\n const cellContainsText = within(cell).queryByText(cellText) !== null;\n return cellContainsText;\n });\n\n if (matchingRows.length === 0) {\n throw queryHelpers.getElementError(\n `Unable to find a table row with text \"${cellText}\" in the column \"${columnHeaderName}\"`,\n tableElement\n );\n }\n\n if (matchingRows.length > 1) {\n throw queryHelpers.getElementError(\n `Found multiple table rows with text \"${cellText}\" in the column \"${columnHeaderName}\"`,\n tableElement\n );\n }\n\n return matchingRows[0];\n}\n\n/**\n * Converts a Du Bois table to a markdown table string. This means that each cell\n * is separated by a pipe (including the edges), the header row is on its own line\n * at the top, each data row is on its own line below, and the header row is separated\n * by a row of dashes from the data rows. This is useful for checking table contents\n * in tests.\n *\n * @param tableElement The HTMLElement representing the table to query in. This is likely\n * a <div role=\"table\"> element, so it can be queried by `screen.getByRole('table')`.\n *\n * @example\n * The HTML table:\n * <Table>\n * <TableRow isHeader>\n * <TableHeader>Name</TableHeader>\n * <TableHeader>Fruit</TableHeader>\n * </TableRow>\n * <TableRow>\n * <TableCell>Alice</TableCell>\n * <TableCell>Apple</TableCell>\n * </TableRow>\n * <TableRow>\n * <TableCell>Brady</TableCell>\n * <TableCell>Banana</TableCell>\n * </TableRow>\n * </Table>\n *\n * The Markdown table:\n * | Name | Fruit |\n * | --- | --- |\n * | Alice | Apple |\n * | Brady | Banana |\n */\nexport function toMarkdownTable(tableElement: HTMLElement): string {\n const [firstRow, ...restRows] = within(tableElement).getAllByRole('row');\n const columns = within(firstRow)\n .getAllByRole('columnheader')\n .map((column) => column.textContent ?? '');\n const rows = restRows.map((row) =>\n within(row)\n .getAllByRole('cell')\n .map((cell) => cell.textContent ?? '')\n );\n return createMarkdownTable(columns, rows);\n}\n","import userEvent from '@testing-library/user-event';\n\nexport * as selectEvent from './selectEvent';\n\nexport * from './table';\n\n/**\n * Opens the dropdown menu by clicking on the dropdown button.\n *\n * @param dropdownButton - The Dropdown Trigger button that opens the menu when clicked.\n */\nexport const openDropdownMenu = async (dropdownButton: HTMLElement) => {\n await userEvent.type(dropdownButton, '{arrowdown}');\n};\n"],"names":["openMenu","select","classList","contains","selectClasses","open","Error","innerHTML","selector","querySelector","userEvent","click","pointerEventsCheck","waitFor","closeMenu","getLabelText","textContent","trim","multiSelect","options","i","length","option","optionItem","screen","getByTitle","singleSelect","optionElem","clearAll","clearBtn","clear","getAllOptions","optionsList","ownerDocument","body","list","querySelectorAll","forEach","push","getTableRowByCellText","tableElement","cellText","columnHeaderName","columnHeaderIndex","undefined","columnHeader","within","getByRole","name","Array","from","parentElement","children","indexOf","matchingRows","getAllByRole","slice","filter","row","cells","cell","cellContainsText","queryByText","queryHelpers","getElementError","toMarkdownTable","firstRow","restRows","columns","map","column","rows","createMarkdownTable","openDropdownMenu","dropdownButton","type"],"mappings":";;;;AAKA;AACA;AACA;AACA;AACO,eAAeA,QAAQ,CAACC,MAAmB,EAAiB;EACjE,IAAIA,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,aAAa,CAACC,IAAI,CAAC,EAAE;IACjD,MAAM,IAAIC,KAAK,CAAE,2BAA0BL,MAAM,CAACM,SAAU,EAAC,CAAC;;EAEhE,MAAMC,QAAQ,GAAGP,MAAM,CAACQ,aAAa,CAAE,IAAGL,aAAa,CAACI,QAAS,EAAC,CAAC;EACnE,IAAI,CAACA,QAAQ,EAAE;IACb,MAAM,IAAIF,KAAK,CAAE,uBAAsBL,MAAM,CAACM,SAAU,EAAC,CAAC;;EAE5D,MAAMG,SAAS,CAACC,KAAK,CAACH,QAAQ,EAAE;IAAEI,kBAAkB,EAAE;GAAG,CAAC;EAC1D,MAAMC,OAAO,CAAC,MAAM;IAClB,IAAI,CAACZ,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,aAAa,CAACC,IAAI,CAAC,EAAE;MAClD,MAAM,IAAIC,KAAK,CAAE,wBAAuBL,MAAM,CAACM,SAAU,EAAC,CAAC;;GAE9D,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACO,eAAeO,SAAS,CAACb,MAAmB,EAAiB;EAClE,IAAI,CAACA,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,aAAa,CAACC,IAAI,CAAC,EAAE;IAClD,MAAM,IAAIC,KAAK,CAAE,6BAA4BL,MAAM,CAACM,SAAU,E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
  tagIconHover: string;
81
81
  tagIconPress: string;
82
82
  typographyCodeBg: string;
83
- tableSeparatorColor: string;
84
83
  tableRowHover: string;
85
84
  tooltipBackgroundTooltip: string;
86
85
  };
@@ -1 +1 @@
1
- {"version":3,"file":"colorList.d.ts","sourceRoot":"","sources":["../../src/theme/colorList.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAExE,MAAM,MAAM,iBAAiB,GAAG,GAAG,SAAS,GAAG,WAAW,EAAE,GAAG,SAAS,GAAG,OAAO,CAAC;AAEnF,MAAM,MAAM,mBAAmB,GAC3B,OAAO,GACP,OAAO,GACP,UAAU,GACV,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,WAAW,CAAC;AAEhB,MAAM,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,mBAAmB,CAAC,EAAE,GAAG,YAAY,CAAC;AAEnF,KAAK,mBAAmB,GAAG,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;AAE7D,KAAK,qBAAqB,GAAG,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;AAGjE,eAAO,MAAM,mBAAmB,EAAE,mBA2CjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,qBAWnC,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsG1B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAAO,cAsGlC,CAAC"}
1
+ {"version":3,"file":"colorList.d.ts","sourceRoot":"","sources":["../../src/theme/colorList.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAExE,MAAM,MAAM,iBAAiB,GAAG,GAAG,SAAS,GAAG,WAAW,EAAE,GAAG,SAAS,GAAG,OAAO,CAAC;AAEnF,MAAM,MAAM,mBAAmB,GAC3B,OAAO,GACP,OAAO,GACP,UAAU,GACV,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,WAAW,CAAC;AAEhB,MAAM,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,mBAAmB,CAAC,EAAE,GAAG,YAAY,CAAC;AAEnF,KAAK,mBAAmB,GAAG,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;AAE7D,KAAK,qBAAqB,GAAG,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;AAGjE,eAAO,MAAM,mBAAmB,EAAE,mBA2CjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,qBAWnC,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqG1B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAAO,cAqGlC,CAAC"}
@@ -123,7 +123,6 @@ declare const lightColors: {
123
123
  tagIconHover: string;
124
124
  tagIconPress: string;
125
125
  typographyCodeBg: string;
126
- tableSeparatorColor: string;
127
126
  tableRowHover: string;
128
127
  tooltipBackgroundTooltip: string;
129
128
  };
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings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