@databricks/design-system 1.10.0 → 1.10.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"selectEvent.d.ts","sourceRoot":"","sources":["../../../src/test-utils/rtl/selectEvent.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAUjE;AAED;;;GAGG;AACH,wBAAsB,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAUlE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CASxD;AAED;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CASvF;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAKrF;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAMjE;AAED;;;GAGG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAe1E"}
1
+ {"version":3,"file":"selectEvent.d.ts","sourceRoot":"","sources":["../../../src/test-utils/rtl/selectEvent.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAcjE;AAED;;;GAGG;AACH,wBAAsB,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAclE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CASxD;AAED;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CASvF;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAKrF;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAMjE;AAED;;;GAGG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAe1E"}
@@ -1,6 +1,5 @@
1
1
  import userEvent from '@testing-library/user-event';
2
2
  import { waitFor, screen } from '@testing-library/react';
3
- import { expect } from '@databricks/config-jest';
4
3
  import { s as selectClasses } from '../common-3ab0e300.js';
5
4
 
6
5
  /**
@@ -8,7 +7,9 @@ import { s as selectClasses } from '../common-3ab0e300.js';
8
7
  * the menu is already opened or if the menu is unable to be opened.
9
8
  */
10
9
  async function openMenu(select) {
11
- expect(select).not.toHaveClass(selectClasses.open);
10
+ if (select.classList.contains(selectClasses.open)) {
11
+ throw new Error("Select is already open\n".concat(select.innerHTML));
12
+ }
12
13
  const selector = select.querySelector(".".concat(selectClasses.selector));
13
14
  if (!selector) {
14
15
  throw new Error("Selector not found\n".concat(select.innerHTML));
@@ -17,7 +18,9 @@ async function openMenu(select) {
17
18
  pointerEventsCheck: 0
18
19
  });
19
20
  await waitFor(() => {
20
- expect(select).toHaveClass(selectClasses.open);
21
+ if (!select.classList.contains(selectClasses.open)) {
22
+ throw new Error("Select did not open\n".concat(select.innerHTML));
23
+ }
21
24
  });
22
25
  }
23
26
 
@@ -26,7 +29,9 @@ async function openMenu(select) {
26
29
  * the menu is already closed or if the menu is unable to be closed.
27
30
  */
28
31
  async function closeMenu(select) {
29
- expect(select).toHaveClass(selectClasses.open);
32
+ if (!select.classList.contains(selectClasses.open)) {
33
+ throw new Error("Select is already closed\n".concat(select.innerHTML));
34
+ }
30
35
  const selector = select.querySelector(".".concat(selectClasses.selector));
31
36
  if (!selector) {
32
37
  throw new Error("Selector not found\n".concat(select.innerHTML));
@@ -35,7 +40,9 @@ async function closeMenu(select) {
35
40
  pointerEventsCheck: 0
36
41
  });
37
42
  await waitFor(() => {
38
- expect(select).not.toHaveClass(selectClasses.open);
43
+ if (select.classList.contains(selectClasses.open)) {
44
+ throw new Error("Select did not close\n".concat(select.innerHTML));
45
+ }
39
46
  });
40
47
  }
41
48
 
@@ -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 { expect } from '@databricks/config-jest';\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 expect(select).not.toHaveClass(selectClasses.open);\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 expect(select).toHaveClass(selectClasses.open);\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 expect(select).toHaveClass(selectClasses.open);\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 expect(select).not.toHaveClass(selectClasses.open);\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.click(dropdownButton);\n};\n"],"names":["openMenu","select","expect","not","toHaveClass","selectClasses","open","selector","querySelector","Error","innerHTML","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"],"mappings":";;;;;AAOA;AACA;AACA;AACA;AACO,eAAeA,QAAQ,CAACC,MAAmB,EAAiB;EACjEC,MAAM,CAACD,MAAM,CAAC,CAACE,GAAG,CAACC,WAAW,CAACC,aAAa,CAACC,IAAI,CAAC;EAClD,MAAMC,QAAQ,GAAGN,MAAM,CAACO,aAAa,YAAKH,aAAa,CAACE,QAAQ,EAAG;EACnE,IAAI,CAACA,QAAQ,EAAE;IACb,MAAM,IAAIE,KAAK,+BAAwBR,MAAM,CAACS,SAAS,EAAG;;EAE5D,MAAMC,SAAS,CAACC,KAAK,CAACL,QAAQ,EAAE;IAAEM,kBAAkB,EAAE;GAAG,CAAC;EAC1D,MAAMC,OAAO,CAAC,MAAM;IAClBZ,MAAM,CAACD,MAAM,CAAC,CAACG,WAAW,CAACC,aAAa,CAACC,IAAI,CAAC;GAC/C,CAAC;AACJ;;AA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AAS,EAAG;;IAEpEU,OAAO,CAACmB,IAAI,CAAChB,MAAM,CAACN,WAAW,CAAC;GACjC,CAAC;EACF,MAAMF,SAAS,CAACd,MAAM,CAAC;EACvB,OAAOmB,OAAO;AAChB;;;;;;;;;;;;;AChHA;AACA;AACA;AACA;AACA;MACaoB,gBAAgB,GAAG,MAAOC,cAA2B,IAAK;EACrE,MAAM9B,SAAS,CAACC,KAAK,CAAC6B,cAAc,CAAC;AACvC;;;;"}
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.click(dropdownButton);\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"],"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,CAAC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AAG;;EAEnF,MAAMY,OAAiB,GAAG,EAAE;EAC5Ba,WAAW,CAACI,gBAAgB,YAAKhC,aAAa,CAACkB,MAAM,EAAG,CAACe,OAAO,CAAEf,MAAM,IAAK;IAC3E,IAAIA,MAAM,CAACN,WAAW,KAAK,IAAI,EAAE;MAC/B,MAAM,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,CAACC,KAAK,CAAC6B,cAAc,CAAC;AACvC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/design-system",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "DuBois Design System",
5
5
  "keywords": [],
6
6
  "license": "ISC",
@@ -61,6 +61,7 @@
61
61
  "@babel/preset-react": "^7.18.6",
62
62
  "@babel/preset-typescript": "^7.18.6",
63
63
  "@databricks/config-eslint": "1.0.0",
64
+ "@databricks/config-jest": "1.0.0",
64
65
  "@databricks/config-storybook": "1.0.0",
65
66
  "@databricks/pkgr": "1.0.0",
66
67
  "@emotion/babel-plugin": "^11.3.0",
@@ -139,7 +140,6 @@
139
140
  "dependencies": {
140
141
  "@ant-design/icons": "^4.7.0",
141
142
  "@babel/runtime": "^7.20.7",
142
- "@databricks/config-jest": "1.0.0",
143
143
  "@emotion/unitless": "^0.7.5",
144
144
  "@radix-ui/react-dialog": "^1.0.0",
145
145
  "@radix-ui/react-dropdown-menu": "^1.0.0",