Skip to content

Commit 180e03f

Browse files
committed
refactor: replace root re-exports with named exports
1 parent b24239a commit 180e03f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+582
-304
lines changed

packages/base/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { I18nStore } from './stores/I18nStore.js';
55
import { StyleStore } from './stores/StyleStore.js';
66
import { ThemingParameters } from './styling/ThemingParameters.js';
77

8-
export * from './styling/CssSizeVariables.js';
9-
export * from './utils/index.js';
8+
export { CssSizeVariables, CssSizeVariablesNames, CozySizes, CompactSizes } from './styling/CssSizeVariables.js';
9+
export { debounce, deprecationNotice, enrichEventWithDetails, throttle } from './utils/index.js';
1010
export * from './hooks/index.js';
1111

1212
export { I18nStore, StyleStore, ThemingParameters, Device, hooks };

packages/base/src/styling/CssSizeVariables.ts

+10
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ export const CssSizeVariables = new Proxy(CssSizeVariablesNames, {
3535
get: (target, prop: string): string => `var(${target[prop] as string})`
3636
});
3737

38+
/**
39+
* __Private__ CSS variables used for size calculation depending on content density.
40+
*
41+
* @private
42+
*/
3843
export const CozySizes = {
3944
[CssSizeVariablesNames.ui5WcrBarHeight]: `2.75rem`,
4045
[CssSizeVariablesNames.ui5WcrButtonTopBottomPadding]: `0.25rem 0`,
@@ -61,6 +66,11 @@ export const CozySizes = {
6166
[CssSizeVariablesNames.ui5WcrElementHeight]: ThemingParameters.sapElement_Height
6267
};
6368

69+
/**
70+
* __Private__ CSS variables used for size calculation depending on content density.
71+
*
72+
* @private
73+
*/
6474
export const CompactSizes = {
6575
[CssSizeVariablesNames.ui5WcrBarHeight]: `2.5rem`,
6676
[CssSizeVariablesNames.ui5WcrButtonTopBottomPadding]: `0.1875rem 0`,

packages/compat/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"default": "./dist/index.js"
1313
},
1414
"./package.json": "./package.json",
15-
"./styles.css": "./dist/css/index.css"
15+
"./styles.css": "./dist/css/index.css",
16+
"./dist/*": "./dist/*",
17+
"./dist/*.js": "./dist/*.js"
1618
},
1719
"homepage": "https://sap.github.io/ui5-webcomponents-react",
1820
"repository": {

packages/compat/src/index.ts

+22-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
import VersionInfo from './generated/VersionInfo.js';
22

3-
export * from './components/Loader/index.js';
4-
export * from './components/OverflowToolbarButton/index.js';
5-
export * from './components/OverflowToolbarToggleButton/index.js';
6-
export * from './components/Table/index.js';
7-
export * from './components/TableCell/index.js';
8-
export * from './components/TableColumn/index.js';
9-
export * from './components/TableGroupRow/index.js';
10-
export * from './components/TableRow/index.js';
11-
export * from './components/Toolbar/index.js';
12-
export * from './components/ToolbarSeparator/index.js';
13-
export * from './components/ToolbarSpacer/index.js';
3+
export type { LoaderPropTypes } from './components/Loader/index.js';
4+
export { Loader } from './components/Loader/index.js';
5+
export type { OverflowToolbarButtonPropTypes } from './components/OverflowToolbarButton/index.js';
6+
export { OverflowToolbarButton } from './components/OverflowToolbarButton/index.js';
7+
export type { OverflowToolbarToggleButtonPropTypes } from './components/OverflowToolbarToggleButton/index.js';
8+
export { OverflowToolbarToggleButton } from './components/OverflowToolbarToggleButton/index.js';
9+
export type { TableDomRef, TablePropTypes } from './components/Table/index.js';
10+
export { Table } from './components/Table/index.js';
11+
export type { TableCellDomRef, TableCellPropTypes } from './components/TableCell/index.js';
12+
export { TableCell } from './components/TableCell/index.js';
13+
export type { TableColumnDomRef, TableColumnPropTypes } from './components/TableColumn/index.js';
14+
export { TableColumn } from './components/TableColumn/index.js';
15+
export type { TableGroupRowDomRef, TableGroupRowPropTypes } from './components/TableGroupRow/index.js';
16+
export { TableGroupRow } from './components/TableGroupRow/index.js';
17+
export type { TableRowDomRef, TableRowPropTypes } from './components/TableRow/index.js';
18+
export { TableRow } from './components/TableRow/index.js';
19+
export type { ToolbarPropTypes } from './components/Toolbar/index.js';
20+
export { Toolbar } from './components/Toolbar/index.js';
21+
export type { ToolbarSeparatorPropTypes } from './components/ToolbarSeparator/index.js';
22+
export { ToolbarSeparator } from './components/ToolbarSeparator/index.js';
23+
export type { ToolbarSpacerPropTypes } from './components/ToolbarSpacer/index.js';
24+
export { ToolbarSpacer } from './components/ToolbarSpacer/index.js';
1425

1526
export { LoaderType } from './enums/LoaderType.js';
1627
export { ToolbarDesign } from './enums/ToolbarDesign.js';

packages/cypress-commands/TestSetup.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ UI5 Web Components for React is using [Cypress](https://www.cypress.io/) as pref
1515
When launching Cypress the first time you're guided through the setup, which then will create a [configuration file](https://docs.cypress.io/guides/references/configuration) for you. You can use any configuration you like, but since we're heavily relying on web-components, we recommend traversing the shadow DOM per default:
1616

1717
```js
18-
includeShadowDom: true
18+
includeShadowDom: true;
1919
```
2020

2121
[Here](https://docs.cypress.io/guides/component-testing/react/overview) you can find the Cypress Quickstart tutorial for React.

packages/main/scripts/create-enum-export.mjs

+39-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,47 @@ const enums = fs
1212
// filter internal components
1313
.filter((file) => !INTERNAL_COMPONENTS.includes(file));
1414

15-
let fileContent = `// This is an autogenerated file, please do not modify this file manually.
15+
// enums/index.ts
16+
let fileContentEnums = `// This is an autogenerated file, please do not modify this file manually.
1617
// In case you added a new file to the /enums folder, please rerun the scripts/create-enum-export.js script.
1718
1819
`;
1920

20-
fileContent += enums.map((file) => `export * from './${file}.js';`).join('\n');
21+
fileContentEnums += enums
22+
.map((file) => {
23+
const fileName = path.basename(file, '.js');
24+
return `export { ${fileName} } from './${file}.js';`;
25+
})
26+
.join('\n');
2127

22-
fs.writeFileSync(path.join(PATHS.packages, 'main', 'src', 'enums', 'index.ts'), fileContent);
28+
fs.writeFileSync(path.join(PATHS.packages, 'main', 'src', 'enums', 'index.ts'), fileContentEnums);
29+
30+
// index.ts
31+
const TARGET_FILE = path.join(PATHS.packages, 'main', 'src', 'index.ts');
32+
33+
const fileContent = fs.readFileSync(TARGET_FILE, 'utf8');
34+
const [beforeSection] = fileContent.split(
35+
'// ================================\n// Enums\n// ================================\n'
36+
);
37+
38+
let newContent = `// This part is auto-generated, please do not modify it manually.
39+
// In case you added a new file to the /enums folder, please rerun the scripts/create-enum-export.js script.\n\n`;
40+
newContent += enums
41+
.map((file) => {
42+
const fileName = path.basename(file, '.js');
43+
return `export { ${fileName} } from './enums/${file}.js';`;
44+
})
45+
.join('\n');
46+
47+
// Create the new file content with updated section
48+
const updatedFileContent = `
49+
${beforeSection}
50+
// ================================
51+
// Enums
52+
// ================================
53+
${newContent}`;
54+
55+
// Write the updated content back to the file
56+
fs.writeFileSync(TARGET_FILE, updatedFileContent);
57+
58+
console.log('Files updated successfully.');

packages/main/src/components/ActionSheet/ActionSheet.cy.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ButtonPropTypes } from '../../webComponents/index.js';
2-
import { Button, Label } from '../../webComponents/index.js';
1+
import type { ButtonPropTypes } from '../../index.js';
2+
import { Button, Label } from '../../index.js';
33
import type { ActionSheetPropTypes } from './index.js';
44
import { ActionSheet } from './index.js';
55

packages/main/src/components/ActionSheet/ActionSheet.stories.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import deleteIcon from '@ui5/webcomponents-icons/dist/delete.js';
88
import emailIcon from '@ui5/webcomponents-icons/dist/email.js';
99
import forwardIcon from '@ui5/webcomponents-icons/dist/forward.js';
1010
import { useEffect, useRef, useState } from 'react';
11-
import type { ButtonDomRef } from '../../webComponents/index.js';
12-
import { Button } from '../../webComponents/index.js';
11+
import type { ButtonDomRef } from '../../index.js';
12+
import { Button } from '../../index.js';
1313
import { ActionSheet } from './index.js';
1414

1515
const meta = {

packages/main/src/components/ActionSheet/index.tsx

+2-6
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@ import { clsx } from 'clsx';
77
import type { ReactElement } from 'react';
88
import { forwardRef, useEffect, useReducer, useRef, useState } from 'react';
99
import { AVAILABLE_ACTIONS, CANCEL, X_OF_Y } from '../../i18n/i18n-defaults.js';
10+
import type { ButtonPropTypes, ResponsivePopoverDomRef, ResponsivePopoverPropTypes } from '../../index.js';
11+
import { Button, ResponsivePopover } from '../../index.js';
1012
import { addCustomCSSWithScoping } from '../../internal/addCustomCSSWithScoping.js';
1113
import { flattenFragments, getUi5TagWithSuffix } from '../../internal/utils.js';
1214
import { CustomThemingParameters } from '../../themes/CustomVariables.js';
1315
import type { UI5WCSlotsNode } from '../../types/index.js';
14-
import type {
15-
ButtonPropTypes,
16-
ResponsivePopoverDomRef,
17-
ResponsivePopoverPropTypes
18-
} from '../../webComponents/index.js';
19-
import { Button, ResponsivePopover } from '../../webComponents/index.js';
2016
import { classNames, styleData } from './ActionSheet.module.css.js';
2117

2218
export interface ActionSheetPropTypes extends Omit<ResponsivePopoverPropTypes, 'header' | 'headerText' | 'children'> {

packages/main/src/components/AnalyticalCardHeader/AnalyticalCardHeader.cy.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getRGBColor } from '@ui5/webcomponents-base/dist/util/ColorConversion';
22
import { ThemingParameters } from '@ui5/webcomponents-react-base';
3-
import { DeviationIndicator, ValueColor } from '../../enums';
3+
import { DeviationIndicator, ValueColor } from '../../enums/index.js';
44
import type { CardPropTypes } from '../../webComponents/Card/index.js';
55
import { Card } from '../../webComponents/Card/index.js';
66
import { Text } from '../../webComponents/Text/index.js';

packages/main/src/components/AnalyticalCardHeader/index.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { useI18nBundle, useStylesheet } from '@ui5/webcomponents-react-base';
66
import { clsx } from 'clsx';
77
import type { MouseEventHandler, ReactElement, ReactNode } from 'react';
88
import { cloneElement, forwardRef, useId } from 'react';
9-
import { DeviationIndicator, ValueColor } from '../../enums/index.js';
9+
import { DeviationIndicator } from '../../enums/DeviationIndicator.js';
10+
import { ValueColor } from '../../enums/ValueColor.js';
1011
import {
1112
ARIA_DESC_CARD_HEADER,
1213
NUMERICCONTENT_DEVIATION_DOWN,
@@ -16,9 +17,9 @@ import {
1617
SEMANTIC_COLOR_GOOD,
1718
SEMANTIC_COLOR_NEUTRAL
1819
} from '../../i18n/i18n-defaults.js';
20+
import { Icon } from '../../index.js';
1921
import { flattenFragments } from '../../internal/utils.js';
2022
import type { CommonProps } from '../../types/index.js';
21-
import { Icon } from '../../webComponents/index.js';
2223
import type { NumericSideIndicatorPropTypes } from '../NumericSideIndicator/index.js';
2324
import { classNames, styleData } from './AnalyticalCardHeader.module.css.js';
2425

packages/main/src/components/AnalyticalTable/AnalyticalTable.cy.tsx

+3-6
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,15 @@ import ValueState from '@ui5/webcomponents-base/dist/types/ValueState.js';
22
import { ThemingParameters } from '@ui5/webcomponents-react-base';
33
import { useCallback, useEffect, useMemo, useRef, useState, version as reactVersion } from 'react';
44
import type { AnalyticalTableDomRef, AnalyticalTablePropTypes } from '../..';
5+
import { AnalyticalTable, AnalyticalTableHooks, Button, Input } from '../..';
56
import {
6-
AnalyticalTable,
7-
AnalyticalTableHooks,
87
AnalyticalTableScaleWidthMode,
98
AnalyticalTableSelectionBehavior,
109
AnalyticalTableSelectionMode,
1110
AnalyticalTableSubComponentsBehavior,
1211
AnalyticalTableVisibleRowCountMode,
13-
Button,
14-
IndicationColor,
15-
Input
16-
} from '../..';
12+
IndicationColor
13+
} from '../../enums/index.js';
1714
import { useManualRowSelect } from './pluginHooks/useManualRowSelect';
1815
import { useRowDisableSelection } from './pluginHooks/useRowDisableSelection';
1916
import { cssVarToRgb, cypressPassThroughTestsFactory } from '@/cypress/support/utils';

packages/main/src/components/AnalyticalTable/AnalyticalTable.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
FlexBoxJustifyContent,
1616
TextAlign
1717
} from '../../enums/index.js';
18-
import { Button, MultiComboBox, MultiComboBoxItem, Option, Select, Tag, Text } from '../../webComponents/index.js';
18+
import { Button, MultiComboBox, MultiComboBoxItem, Option, Select, Tag, Text } from '../../index.js';
1919
import { FlexBox } from '../FlexBox';
2020
import { AnalyticalTable } from './index.js';
2121

packages/main/src/components/AnalyticalTable/defaults/Column/Expandable.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import iconNavDownArrow from '@ui5/webcomponents-icons/dist/navigation-down-arro
44
import iconNavRightArrow from '@ui5/webcomponents-icons/dist/navigation-right-arrow.js';
55
import { CssSizeVariables, useCurrentTheme, useStylesheet } from '@ui5/webcomponents-react-base';
66
import { clsx } from 'clsx';
7-
import { Button, Icon } from '../../../../webComponents/index.js';
7+
import { Button, Icon } from '../../../../index.js';
88
import { classNames, styleData } from './Expandable.module.css.js';
99

1010
const getPadding = (level) => {

packages/main/src/components/AnalyticalTable/defaults/Column/Grouped.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import iconNavDownArrow from '@ui5/webcomponents-icons/dist/navigation-down-arro
22
import iconNavRightArrow from '@ui5/webcomponents-icons/dist/navigation-right-arrow.js';
33
import type { CSSProperties } from 'react';
44
import { TextAlign } from '../../../../enums/index.js';
5-
import { Icon } from '../../../../webComponents/index.js';
5+
import { Icon } from '../../../../index.js';
66

77
const tableGroupExpandCollapseIcon = {
88
color: 'var(--sapContent_IconColor)',

packages/main/src/components/AnalyticalTable/hooks/useDynamicColumnWidths.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useMemo } from 'react';
2-
import { AnalyticalTableScaleWidthMode } from '../../../enums/index.js';
2+
import { AnalyticalTableScaleWidthMode } from '../../../index.js';
33
import { DEFAULT_COLUMN_WIDTH } from '../defaults/Column/index.js';
44
import type { AnalyticalTableColumnDefinition, ReactTableHooks, TableInstance } from '../types/index.js';
55

packages/main/src/components/ExpandableText/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { useI18nBundle, useStylesheet } from '@ui5/webcomponents-react-base';
55
import { clsx } from 'clsx';
66
import { forwardRef, useId, useState } from 'react';
77
import { CLOSE_POPOVER, SHOW_FULL_TEXT, SHOW_LESS, SHOW_MORE } from '../../i18n/i18n-defaults.js';
8+
import { Link } from '../../index.js';
89
import type { CommonProps } from '../../types/index.js';
9-
import { Link } from '../../webComponents/index.js';
1010
import { ResponsivePopover } from '../../webComponents/ResponsivePopover/index.js';
1111
import type { TextPropTypes } from '../../webComponents/Text/index.js';
1212
import { Text } from '../../webComponents/Text/index.js';

packages/main/src/components/FilterBar/FilterBar.cy.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
StepInput,
1010
Switch,
1111
Token
12-
} from '../../webComponents/index.js';
12+
} from '../../index.js';
1313
import { FilterGroupItem } from '../FilterGroupItem/index.js';
1414
import { VariantManagement } from '../VariantManagement/index.js';
1515
import { VariantItem } from '../VariantManagement/VariantItem.js';

packages/main/src/components/FilterBar/FilterBar.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
Switch,
2323
Title,
2424
Token
25-
} from '../../webComponents/index.js';
25+
} from '../../index.js';
2626
import { Text } from '../../webComponents/Text/index.js';
2727
import { FilterGroupItem } from '../FilterGroupItem/index.js';
2828
import { FlexBox } from '../FlexBox/index.js';

packages/main/src/components/FilterBar/FilterDialog.tsx

+6-11
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,7 @@ import {
2929
VISIBLE,
3030
VISIBLE_AND_ACTIVE
3131
} from '../../i18n/i18n-defaults.js';
32-
import { addCustomCSSWithScoping } from '../../internal/addCustomCSSWithScoping.js';
33-
import type { OnReorderParams } from '../../internal/FilterBarDialogContext.js';
34-
import { FilterBarDialogContext } from '../../internal/FilterBarDialogContext.js';
35-
import { stopPropagation } from '../../internal/stopPropagation.js';
36-
import type {
37-
DialogDomRef,
38-
InputPropTypes,
39-
SegmentedButtonPropTypes,
40-
TableSelectionDomRef
41-
} from '../../webComponents/index.js';
32+
import type { DialogDomRef, InputPropTypes, SegmentedButtonPropTypes, TableSelectionDomRef } from '../../index.js';
4233
import {
4334
Bar,
4435
Button,
@@ -55,7 +46,11 @@ import {
5546
TableHeaderRow,
5647
TableSelection,
5748
Title
58-
} from '../../webComponents/index.js';
49+
} from '../../index.js';
50+
import { addCustomCSSWithScoping } from '../../internal/addCustomCSSWithScoping.js';
51+
import type { OnReorderParams } from '../../internal/FilterBarDialogContext.js';
52+
import { FilterBarDialogContext } from '../../internal/FilterBarDialogContext.js';
53+
import { stopPropagation } from '../../internal/stopPropagation.js';
5954
import type { FilterGroupItemInternalProps } from '../FilterGroupItem/types.js';
6055
import { FlexBox } from '../FlexBox/index.js';
6156
import { MessageBox } from '../MessageBox/index.js';

packages/main/src/components/FilterBar/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import {
1919
SEARCH,
2020
SHOW_FILTER_BAR
2121
} from '../../i18n/i18n-defaults.js';
22-
import type { DialogDomRef, ToolbarButtonDomRef } from '../../webComponents/index.js';
23-
import { Icon, Toolbar, ToolbarButton } from '../../webComponents/index.js';
22+
import type { DialogDomRef, ToolbarButtonDomRef } from '../../index.js';
23+
import { Icon, Toolbar, ToolbarButton } from '../../index.js';
2424
import { FilterGroupItem } from '../FilterGroupItem/index.js';
2525
import type { FilterGroupItemInternalProps } from '../FilterGroupItem/types.js';
2626
import { FlexBox } from '../FlexBox/index.js';

packages/main/src/components/FilterBar/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { CSSProperties, MouseEvent, ReactElement, ReactNode } from 'react';
2+
import type { DialogPropTypes, InputPropTypes, ToolbarButtonPropTypes } from '../../index.js';
23
import type { CommonProps } from '../../types/index.js';
3-
import type { DialogPropTypes, InputPropTypes, ToolbarButtonPropTypes } from '../../webComponents/index.js';
44
import type { FilterGroupItemInternalProps } from '../FilterGroupItem/types.js';
55

66
interface OnToggleFiltersEvent extends Omit<MouseEvent, 'detail'> {

packages/main/src/components/FilterGroupItem/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ import {
2222
MOVE_UP,
2323
UP_ARROW
2424
} from '../../i18n/i18n-defaults.js';
25+
import type { ButtonPropTypes, TableRowDomRef } from '../../index.js';
26+
import { BusyIndicator, Button, Icon, Label, TableCell, TableRow } from '../../index.js';
2527
import type { ReorderDirections } from '../../internal/FilterBarDialogContext.js';
2628
import { FilterBarDialogContext } from '../../internal/FilterBarDialogContext.js';
27-
import type { ButtonPropTypes, TableRowDomRef } from '../../webComponents/index.js';
28-
import { BusyIndicator, Button, Icon, Label, TableCell, TableRow } from '../../webComponents/index.js';
2929
import { FlexBox } from '../FlexBox/index.js';
3030
import { classNames, styleData } from './FilterGroupItem.module.css.js';
3131
import type { FilterGroupItemInternalProps, FilterGroupItemPropTypes } from './types.js';

packages/main/src/components/FlexBox/FlexBox.stories.tsx

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
import type { Meta, StoryObj } from '@storybook/react';
22
import employeeIcon from '@ui5/webcomponents-icons/dist/employee.js';
3-
import {
4-
FlexBoxAlignItems,
5-
FlexBoxDirection,
6-
FlexBoxJustifyContent,
7-
FlexBoxWrap,
8-
Icon,
9-
Input,
10-
Label,
11-
Title
12-
} from '../..';
3+
import { Icon, Input, Label, Title } from '../..';
4+
import { FlexBoxAlignItems, FlexBoxDirection, FlexBoxJustifyContent, FlexBoxWrap } from '../../enums/index.js';
135
import { FlexBox } from './index.js';
146

157
const meta = {

packages/main/src/components/MessageBox/MessageBox.cy.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import addIcon from '@ui5/webcomponents-icons/dist/add.js';
22
import { useState } from 'react';
3-
import { Button, Icon, MessageBoxAction, MessageBoxType } from '../..';
3+
import { Button, Icon } from '../..';
4+
import { MessageBoxAction, MessageBoxType } from '../../enums/index.js';
45
import { MessageBox } from './index.js';
56

67
describe('MessageBox', () => {

packages/main/src/components/MessageBox/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import {
2727
WARNING,
2828
YES
2929
} from '../../i18n/i18n-defaults.js';
30-
import type { ButtonPropTypes, DialogDomRef, DialogPropTypes } from '../../webComponents/index.js';
31-
import { Button, Dialog, Icon, Text, Title } from '../../webComponents/index.js';
30+
import type { ButtonPropTypes, DialogDomRef, DialogPropTypes } from '../../index.js';
31+
import { Button, Dialog, Icon, Text, Title } from '../../index.js';
3232
import { classNames, styleData } from './MessageBox.module.css.js';
3333

3434
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents

0 commit comments

Comments
 (0)