@databricks/design-system 1.9.1 → 1.10.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.
- package/dist/{Typography-84a00e02.js → Spinner-140f57ac.js} +1135 -75
- package/dist/Spinner-140f57ac.js.map +1 -0
- package/dist/common-3ab0e300.js +15 -0
- package/dist/common-3ab0e300.js.map +1 -0
- package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/dist/design-system/Button/Button.d.ts +5 -1
- package/dist/design-system/Button/Button.d.ts.map +1 -1
- package/dist/design-system/Button/styles.d.ts.map +1 -1
- package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/design-system/DatePicker/DatePicker.d.ts +18 -14
- package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +3 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
- package/dist/design-system/Drawer/Drawer.d.ts +12 -1
- package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
- package/dist/design-system/FormMessage/FormMessage.d.ts.map +1 -1
- package/dist/design-system/FormV2/RHFAdapters.d.ts +7 -7
- package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
- package/dist/design-system/Hooks/useDesignSystemTheme.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CursorIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/CursorIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/DagIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/DagIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/LettersIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/LettersIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/index.d.ts +8 -1
- package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
- package/dist/design-system/LegacyTable/LegacyTable.d.ts +100 -0
- package/dist/design-system/LegacyTable/LegacyTable.d.ts.map +1 -0
- package/dist/design-system/LegacyTable/index.d.ts +2 -0
- package/dist/design-system/LegacyTable/index.d.ts.map +1 -0
- package/dist/design-system/Modal/Modal.d.ts +3 -1
- package/dist/design-system/Modal/Modal.d.ts.map +1 -1
- package/dist/design-system/Notification/Notification.d.ts.map +1 -1
- package/dist/design-system/PageWrapper/PageWrapper.d.ts.map +1 -1
- package/dist/design-system/Popover/Popover.d.ts +2 -1
- package/dist/design-system/Popover/Popover.d.ts.map +1 -1
- package/dist/design-system/PopoverV2/PopoverV2.d.ts +1 -0
- package/dist/design-system/PopoverV2/PopoverV2.d.ts.map +1 -1
- package/dist/design-system/Radio/Radio.d.ts.map +1 -1
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +0 -2
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/design-system/Select/Select.d.ts.map +1 -1
- package/dist/design-system/Sidebar/Sidebar.d.ts +1 -1
- package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
- package/dist/design-system/Table/index.d.ts +1 -1
- package/dist/design-system/ToggleButton/ToggleButton.d.ts.map +1 -1
- package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/design-system/index.d.ts +1 -1
- package/dist/design-system/index.d.ts.map +1 -1
- package/dist/development/Filter/Filter.d.ts +10 -0
- package/dist/development/Filter/Filter.d.ts.map +1 -0
- package/dist/development/Filter/Filter.test.d.ts +2 -0
- package/dist/development/Filter/Filter.test.d.ts.map +1 -0
- package/dist/development/Filter/FilterButtonContainer.d.ts +2 -0
- package/dist/development/Filter/FilterButtonContainer.d.ts.map +1 -0
- package/dist/development/Filter/FilterContent.d.ts +14 -0
- package/dist/development/Filter/FilterContent.d.ts.map +1 -0
- package/dist/development/Filter/FilterCountBadge.d.ts +2 -0
- package/dist/development/Filter/FilterCountBadge.d.ts.map +1 -0
- package/dist/development/Filter/FilterLoadingSpinner.d.ts +2 -0
- package/dist/development/Filter/FilterLoadingSpinner.d.ts.map +1 -0
- package/dist/development/Filter/FilterOptionControlledList.d.ts +9 -0
- package/dist/development/Filter/FilterOptionControlledList.d.ts.map +1 -0
- package/dist/development/Filter/FilterOptionList.d.ts +10 -0
- package/dist/development/Filter/FilterOptionList.d.ts.map +1 -0
- package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts +11 -0
- package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts.map +1 -0
- package/dist/development/Filter/FilterOptionListSearch.d.ts +7 -0
- package/dist/development/Filter/FilterOptionListSearch.d.ts.map +1 -0
- package/dist/development/Filter/FilterOptionListSelectItem.d.ts +10 -0
- package/dist/development/Filter/FilterOptionListSelectItem.d.ts.map +1 -0
- package/dist/development/Filter/FilterSectionHeader.d.ts +2 -0
- package/dist/development/Filter/FilterSectionHeader.d.ts.map +1 -0
- package/dist/development/Filter/FilterSeparator.d.ts +2 -0
- package/dist/development/Filter/FilterSeparator.d.ts.map +1 -0
- package/dist/development/Filter/FilterTrigger.d.ts +15 -0
- package/dist/development/Filter/FilterTrigger.d.ts.map +1 -0
- package/dist/development/Filter/hooks/useFilterContext.d.ts +2 -0
- package/dist/development/Filter/hooks/useFilterContext.d.ts.map +1 -0
- package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts +2 -0
- package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts.map +1 -0
- package/dist/development/Filter/index.d.ts +14 -0
- package/dist/development/Filter/index.d.ts.map +1 -0
- package/dist/development/Filter/providers/FilterContext.d.ts +15 -0
- package/dist/development/Filter/providers/FilterContext.d.ts.map +1 -0
- package/dist/development/Filter/providers/FilterOptionListContext.d.ts +10 -0
- package/dist/development/Filter/providers/FilterOptionListContext.d.ts.map +1 -0
- package/dist/development/Filter/shared.d.ts +3 -0
- package/dist/development/Filter/shared.d.ts.map +1 -0
- package/dist/development/Slider/Slider.d.ts.map +1 -1
- package/dist/development/TableUI/index.d.ts +33 -0
- package/dist/development/TableUI/index.d.ts.map +1 -1
- package/dist/development/index.d.ts +1 -0
- package/dist/development/index.d.ts.map +1 -1
- package/dist/development.js +1097 -472
- package/dist/development.js.map +1 -1
- package/dist/index-dark.css +1 -0
- package/dist/index-mfe-dark.css +1 -0
- package/dist/index-mfe.css +1 -0
- package/dist/index.css +1 -0
- package/dist/index.js +836 -1558
- package/dist/index.js.map +1 -1
- package/dist/test-utils/common.d.ts +11 -0
- package/dist/test-utils/common.d.ts.map +1 -0
- package/dist/test-utils/enzyme/index.d.ts +1 -0
- package/dist/test-utils/enzyme/index.d.ts.map +1 -1
- package/dist/test-utils/enzyme/selectEvent.d.ts +42 -0
- package/dist/test-utils/enzyme/selectEvent.d.ts.map +1 -0
- package/dist/test-utils/enzyme/selectEvent.test.d.ts +2 -0
- package/dist/test-utils/enzyme/selectEvent.test.d.ts.map +1 -0
- package/dist/test-utils/enzyme/utils.d.ts +33 -0
- package/dist/test-utils/enzyme/utils.d.ts.map +1 -0
- package/dist/test-utils/enzyme.js +258 -1
- package/dist/test-utils/enzyme.js.map +1 -1
- package/dist/test-utils/rtl/index.d.ts +1 -0
- package/dist/test-utils/rtl/index.d.ts.map +1 -1
- package/dist/test-utils/rtl/selectEvent.d.ts +41 -0
- package/dist/test-utils/rtl/selectEvent.d.ts.map +1 -0
- package/dist/test-utils/rtl/selectEvent.test.d.ts +2 -0
- package/dist/test-utils/rtl/selectEvent.test.d.ts.map +1 -0
- package/dist/test-utils/rtl.js +135 -1
- package/dist/test-utils/rtl.js.map +1 -1
- package/dist/test-utils/types.d.ts +1 -14
- package/dist/test-utils/types.d.ts.map +1 -1
- package/dist/theme/colorList.d.ts +7 -8
- package/dist/theme/colorList.d.ts.map +1 -1
- package/dist/theme/colors.d.ts +9 -11
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/convertToLessVars.d.ts +3 -4
- package/dist/theme/convertToLessVars.d.ts.map +1 -1
- package/dist/theme/generalVariables.d.ts +4 -0
- package/dist/theme/generalVariables.d.ts.map +1 -1
- package/dist/theme/index.d.ts +7 -3
- package/dist/theme/index.d.ts.map +1 -1
- package/package.json +7 -6
- package/dist/Typography-52abe0b7.js +0 -1142
- package/dist/Typography-52abe0b7.js.map +0 -1
- package/dist/Typography-84a00e02.js.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ArrayIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ArrayIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BracketsIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/BracketsIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DataMarketplace.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/DataMarketplace.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/NotificationsOffIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/NotificationsOffIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Redo.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Redo.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/RedoIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/RedoIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Refresh.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Refresh.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Refresh.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Refresh.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/RefreshIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/RefreshIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Undo.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Undo.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Visible.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Visible.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts.map +0 -1
- package/dist/test-utils/enzyme.d.ts +0 -8
- package/dist/test-utils/enzyme.d.ts.map +0 -1
- package/dist/test-utils/rtl.d.ts +0 -7
- package/dist/test-utils/rtl.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rtl.js","sources":["../../src/test-utils/rtl/index.ts"],"sourcesContent":["import userEvent from '@testing-library/user-event';\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":["
|
|
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;;AAEA;AACA;AACA;AACA;AACO,eAAeS,SAAS,CAACd,MAAmB,EAAiB;EAClEC,MAAM,CAACD,MAAM,CAAC,CAACG,WAAW,CAACC,aAAa,CAACC,IAAI,CAAC;EAC9C,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;GA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
|
-
* both Enzyme and RTL. Specifically, we simply compare that the export identifiers
|
|
4
|
-
* are the same between `enzyme.ts` and `rtl.ts`. Note that this does not compare
|
|
5
|
-
* the input/output types for each export because Enzyme and RTL have very different
|
|
6
|
-
* types and it would be hard to enforce consistency of the exact API types. `testUtilsEqual`
|
|
7
|
-
* is required to be `true` through the type system. so if the Enzyme and RTL APIs
|
|
8
|
-
* diverge, this file will produce a type error.
|
|
9
|
-
*/
|
|
10
|
-
type EnzymeTestUtils = keyof typeof import('./enzyme');
|
|
11
|
-
type RTLTestUtils = keyof typeof import('./rtl');
|
|
12
|
-
type Equal<U1, U2> = [U1] extends [U2] ? ([U2] extends [U1] ? true : false) : false;
|
|
13
|
-
type TestUtilsEqual = Equal<EnzymeTestUtils, RTLTestUtils>;
|
|
14
|
-
declare const testUtilsEqual: TestUtilsEqual;
|
|
1
|
+
export {};
|
|
15
2
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/test-utils/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/test-utils/types.ts"],"names":[],"mappings":""}
|
|
@@ -8,13 +8,6 @@ type ColorPaletteSecondary = Record<SecondaryColorToken, string>;
|
|
|
8
8
|
export declare const colorPalettePrimary: ColorPalettePrimary;
|
|
9
9
|
export declare const colorPaletteSecondary: ColorPaletteSecondary;
|
|
10
10
|
export declare const lightColorList: {
|
|
11
|
-
textValidationInfo: string;
|
|
12
|
-
backgroundValidationDanger: string;
|
|
13
|
-
backgroundValidationSuccess: string;
|
|
14
|
-
backgroundValidationWarning: string;
|
|
15
|
-
borderValidationDanger: string;
|
|
16
|
-
borderValidationSuccess: string;
|
|
17
|
-
borderValidationWarning: string;
|
|
18
11
|
backgroundPrimary: string;
|
|
19
12
|
actionDangerPrimaryBackgroundDefault: string;
|
|
20
13
|
actionDangerPrimaryBackgroundHover: string;
|
|
@@ -55,14 +48,20 @@ export declare const lightColorList: {
|
|
|
55
48
|
backgroundDanger: string;
|
|
56
49
|
backgroundSecondary: string;
|
|
57
50
|
backgroundWarning: string;
|
|
51
|
+
backgroundValidationDanger: string;
|
|
52
|
+
backgroundValidationSuccess: string;
|
|
53
|
+
backgroundValidationWarning: string;
|
|
58
54
|
border: string;
|
|
59
55
|
borderDecorative: string;
|
|
56
|
+
borderValidationDanger: string;
|
|
57
|
+
borderValidationWarning: string;
|
|
60
58
|
textPrimary: string;
|
|
61
59
|
textSecondary: string;
|
|
62
60
|
textPlaceholder: string;
|
|
63
61
|
textValidationDanger: string;
|
|
64
62
|
textValidationSuccess: string;
|
|
65
63
|
textValidationWarning: string;
|
|
64
|
+
textValidationInfo: string;
|
|
66
65
|
overlayOverlay: string;
|
|
67
66
|
tagDefault: string;
|
|
68
67
|
tagBrown: string;
|
|
@@ -81,7 +80,7 @@ export declare const lightColorList: {
|
|
|
81
80
|
tagIconHover: string;
|
|
82
81
|
tagIconPress: string;
|
|
83
82
|
typographyCodeBg: string;
|
|
84
|
-
|
|
83
|
+
tableSeparatorColor: string;
|
|
85
84
|
tableRowHover: string;
|
|
86
85
|
tooltipBackgroundTooltip: string;
|
|
87
86
|
};
|
|
@@ -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,G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,EAAE,mBA2CjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,qBAWnC,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsG1B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAAO,cAsGlC,CAAC"}
|
package/dist/theme/colors.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ThemeName } from './index';
|
|
2
1
|
declare const lightColors: {
|
|
3
2
|
brown: string;
|
|
4
3
|
coral: string;
|
|
@@ -52,13 +51,6 @@ declare const lightColors: {
|
|
|
52
51
|
yellow800: string;
|
|
53
52
|
primary: string;
|
|
54
53
|
white: string;
|
|
55
|
-
textValidationInfo: string;
|
|
56
|
-
backgroundValidationDanger: string;
|
|
57
|
-
backgroundValidationSuccess: string;
|
|
58
|
-
backgroundValidationWarning: string;
|
|
59
|
-
borderValidationDanger: string;
|
|
60
|
-
borderValidationSuccess: string;
|
|
61
|
-
borderValidationWarning: string;
|
|
62
54
|
backgroundPrimary: string;
|
|
63
55
|
actionDangerPrimaryBackgroundDefault: string;
|
|
64
56
|
actionDangerPrimaryBackgroundHover: string;
|
|
@@ -99,14 +91,20 @@ declare const lightColors: {
|
|
|
99
91
|
backgroundDanger: string;
|
|
100
92
|
backgroundSecondary: string;
|
|
101
93
|
backgroundWarning: string;
|
|
94
|
+
backgroundValidationDanger: string;
|
|
95
|
+
backgroundValidationSuccess: string;
|
|
96
|
+
backgroundValidationWarning: string;
|
|
102
97
|
border: string;
|
|
103
98
|
borderDecorative: string;
|
|
99
|
+
borderValidationDanger: string;
|
|
100
|
+
borderValidationWarning: string;
|
|
104
101
|
textPrimary: string;
|
|
105
102
|
textSecondary: string;
|
|
106
103
|
textPlaceholder: string;
|
|
107
104
|
textValidationDanger: string;
|
|
108
105
|
textValidationSuccess: string;
|
|
109
106
|
textValidationWarning: string;
|
|
107
|
+
textValidationInfo: string;
|
|
110
108
|
overlayOverlay: string;
|
|
111
109
|
tagDefault: string;
|
|
112
110
|
tagBrown: string;
|
|
@@ -125,7 +123,7 @@ declare const lightColors: {
|
|
|
125
123
|
tagIconHover: string;
|
|
126
124
|
tagIconPress: string;
|
|
127
125
|
typographyCodeBg: string;
|
|
128
|
-
|
|
126
|
+
tableSeparatorColor: string;
|
|
129
127
|
tableRowHover: string;
|
|
130
128
|
tooltipBackgroundTooltip: string;
|
|
131
129
|
};
|
|
@@ -156,7 +154,7 @@ export interface AntdColors {
|
|
|
156
154
|
alertMessageColor: string;
|
|
157
155
|
spinDotDefault: string;
|
|
158
156
|
}
|
|
159
|
-
export declare function getAntdColors(
|
|
157
|
+
export declare function getAntdColors(isDarkMode: boolean): AntdColors;
|
|
160
158
|
declare const deprecatedColors: {
|
|
161
159
|
radioInteractiveAvailable: string;
|
|
162
160
|
radioInteractiveHover: string;
|
|
@@ -167,6 +165,6 @@ declare const deprecatedColors: {
|
|
|
167
165
|
radioInteractiveHoverSecondary: string;
|
|
168
166
|
radioInteractivePressSecondary: string;
|
|
169
167
|
};
|
|
170
|
-
export declare function getColors(
|
|
168
|
+
export declare function getColors(isDarkMode: boolean): typeof deprecatedColors & DesignSystemColors;
|
|
171
169
|
export {};
|
|
172
170
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0E,CAAC;AAC5F,KAAK,kBAAkB,GAAG,OAAO,WAAW,CAAC;AAM7C,MAAM,WAAW,UAAU;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IAExB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAE9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAE7B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,uBAAuB,EAAE,MAAM,CAAC;IAChC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAE9B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAE1B,cAAc,EAAE,MAAM,CAAC;CACxB;AAGD,wBAAgB,aAAa,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,CAwC7D;AAMD,QAAA,MAAM,gBAAgB;;;;;;;;;CAUrB,CAAC;AAEF,wBAAgB,SAAS,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO,gBAAgB,GAAG,kBAAkB,CAK3F"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import type { ThemeName } from '.';
|
|
2
1
|
/**
|
|
3
2
|
* Condense our variables into a single object that will be used
|
|
4
3
|
* to build exported `less` configurations.
|
|
5
4
|
*/
|
|
6
|
-
export declare function getLessVariables(
|
|
5
|
+
export declare function getLessVariables(isDarkMode: boolean): Record<string, any>;
|
|
7
6
|
/**
|
|
8
7
|
* This is used if you want to pass the theme to `modifyVars`.
|
|
9
8
|
* We use that in `rollup`, but not in `storybook` since we want theme changes
|
|
10
9
|
* to rebuild and refresh in the latter.
|
|
11
10
|
*/
|
|
12
|
-
export declare function getLessVariablesObject(
|
|
11
|
+
export declare function getLessVariablesObject(isDarkMode: boolean): Record<string, string | any>;
|
|
13
12
|
/**
|
|
14
13
|
* This exports a synthetic `less` file containing our `less` variables.
|
|
15
14
|
* We use this in storybook so that we can force that environment to refresh
|
|
16
15
|
* as we work on the theme during active development.
|
|
17
16
|
*/
|
|
18
|
-
export declare function getLessVariablesText(
|
|
17
|
+
export declare function getLessVariablesText(isDarkMode: boolean): string;
|
|
19
18
|
//# sourceMappingURL=convertToLessVars.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertToLessVars.d.ts","sourceRoot":"","sources":["../../src/theme/convertToLessVars.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"convertToLessVars.d.ts","sourceRoot":"","sources":["../../src/theme/convertToLessVars.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAUzE;AAgBD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,CASxF;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAQhE"}
|
|
@@ -11,5 +11,9 @@ declare const antdGeneralVariables: {
|
|
|
11
11
|
buttonHeight: number;
|
|
12
12
|
buttonInnerHeight: number;
|
|
13
13
|
};
|
|
14
|
+
export declare const getShadowVariables: (isDarkMode: boolean) => {
|
|
15
|
+
shadowLow: string;
|
|
16
|
+
shadowHigh: string;
|
|
17
|
+
};
|
|
14
18
|
export default antdGeneralVariables;
|
|
15
19
|
//# sourceMappingURL=generalVariables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generalVariables.d.ts","sourceRoot":"","sources":["../../src/theme/generalVariables.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,oBAAoB;;;;;;;;;;;;CAczB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"generalVariables.d.ts","sourceRoot":"","sources":["../../src/theme/generalVariables.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,oBAAoB;;;;;;;;;;;;CAczB,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAAgB,OAAO;;;CAYrD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import borders from './borders';
|
|
2
2
|
import { getColors } from './colors';
|
|
3
|
-
import generalVariables from './generalVariables';
|
|
3
|
+
import generalVariables, { getShadowVariables } from './generalVariables';
|
|
4
4
|
import spacing from './spacing';
|
|
5
5
|
import typography from './typography';
|
|
6
6
|
export type ThemeName = 'default' | 'dark';
|
|
@@ -12,11 +12,15 @@ export interface ThemeOptions {
|
|
|
12
12
|
export interface Theme {
|
|
13
13
|
colors: ReturnType<typeof getColors>;
|
|
14
14
|
spacing: typeof spacing;
|
|
15
|
-
general: typeof generalVariables
|
|
15
|
+
general: typeof generalVariables & ReturnType<typeof getShadowVariables>;
|
|
16
16
|
typography: typeof typography;
|
|
17
17
|
borders: typeof borders;
|
|
18
|
+
/**
|
|
19
|
+
* Deprecated. Use `isDarkMode` instead.
|
|
20
|
+
*/
|
|
18
21
|
themeName: ThemeName;
|
|
22
|
+
isDarkMode: boolean;
|
|
19
23
|
options: ThemeOptions;
|
|
20
24
|
}
|
|
21
|
-
export declare function getTheme(
|
|
25
|
+
export declare function getTheme(isDarkMode: boolean, options?: ThemeOptions): Theme;
|
|
22
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,gBAAgB,EAAE,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAC3C,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEzD,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;IACrC,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,OAAO,EAAE,OAAO,gBAAgB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACzE,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC;CACvB;AASD,wBAAgB,QAAQ,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,GAAE,YAA6B,GAAG,KAAK,CAc3F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databricks/design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "DuBois Design System",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"generate:icons:raw": "svgr -d src/design-system/Icon/__generated/icons_raw --typescript --template src/design-system/Icon/generator/iconTemplate.js --icon --replace-attr-values \\\"#EB4A32=currentColor\\\" src/assets/icons",
|
|
28
28
|
"generate:icons:v2:raw": "svgr -d src/design-system/IconV2/__generated/icons_raw --typescript --template src/design-system/IconV2/generator/iconTemplate.js --icon --replace-attr-values \\\"#5D7283=currentColor\\\" src/assets/iconsV2",
|
|
29
29
|
"generate:icons-story": "node ./src/design-system/Icon/generator/generateIconStory.js",
|
|
30
|
-
"build": "npm-run-all --parallel build:styles build:js",
|
|
30
|
+
"build": "rm -f dist/test-utils/enzyme.d.ts; npm-run-all --parallel build:styles build:js",
|
|
31
31
|
"build:deps": "yarn workspaces foreach -piR --topological-dev --from @databricks/design-system --exclude @databricks/design-system run build",
|
|
32
32
|
"build:js:base": "databricks-pkgr build --no-clean",
|
|
33
33
|
"build:js": "yarn build:js:base",
|
|
@@ -56,12 +56,11 @@
|
|
|
56
56
|
"prep-deps": ": # magic task to allow yarn ensure-deps plugin prepare dependencies of this package"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@babel/core": "^7.20.
|
|
59
|
+
"@babel/core": "^7.20.12",
|
|
60
60
|
"@babel/preset-env": "^7.20.2",
|
|
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",
|
|
65
64
|
"@databricks/config-storybook": "1.0.0",
|
|
66
65
|
"@databricks/pkgr": "1.0.0",
|
|
67
66
|
"@emotion/babel-plugin": "^11.3.0",
|
|
@@ -86,7 +85,6 @@
|
|
|
86
85
|
"@svgr/cli": "^5.5.0",
|
|
87
86
|
"@tanstack/react-table": "^8.7.3",
|
|
88
87
|
"@testing-library/jest-dom": "^5.14.1",
|
|
89
|
-
"@testing-library/react": "^12.1.2",
|
|
90
88
|
"@types/chroma-js": "^2.1.3",
|
|
91
89
|
"@types/enzyme": "^3.10.8",
|
|
92
90
|
"@types/glob": "^7.2.0",
|
|
@@ -97,6 +95,7 @@
|
|
|
97
95
|
"@types/react": "^17.0.50",
|
|
98
96
|
"@types/react-dom": "^17.0.17",
|
|
99
97
|
"@types/react-resizable": "^3.0.3",
|
|
98
|
+
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.2",
|
|
100
99
|
"babel-loader": "^8.2.2",
|
|
101
100
|
"babel-plugin-react-require": "^3.1.3",
|
|
102
101
|
"cross-env": "^7.0.3",
|
|
@@ -139,7 +138,8 @@
|
|
|
139
138
|
},
|
|
140
139
|
"dependencies": {
|
|
141
140
|
"@ant-design/icons": "^4.7.0",
|
|
142
|
-
"@babel/runtime": "^7.20.
|
|
141
|
+
"@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",
|
|
@@ -148,6 +148,7 @@
|
|
|
148
148
|
"@radix-ui/react-toast": "^1.1.1",
|
|
149
149
|
"@radix-ui/react-toggle": "^1.0.1",
|
|
150
150
|
"@rollup/plugin-node-resolve": "^13.1.1",
|
|
151
|
+
"@testing-library/react": "^12.1.2",
|
|
151
152
|
"@testing-library/user-event": "^14.0.0",
|
|
152
153
|
"antd": "4.16.8",
|
|
153
154
|
"chroma-js": "^2.4.2",
|