Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cb 5180 remove styles module alias #2678

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 19 additions & 19 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
]
},
"resolutions": {
"@types/react": "^18.2.63",
"@types/react-dom": "^18.2.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.5"
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"mobx": "^6.12.3",
"mobx-react-lite": "^4.0.7"
},
"scripts": {
"prebuild": "lerna run gql:gen --stream --parallel",
Expand All @@ -25,27 +25,27 @@
"postinstall": "husky"
},
"devDependencies": {
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/react": "^18.2.63",
"@types/react-dom": "^18.2.19",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"concurrently": "^8.2.2",
"husky": "^9.0.11",
"lerna": "5.5.4",
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.5",
"msw": "^2.2.2",
"mobx": "^6.12.3",
"mobx-react-lite": "^4.0.7",
"msw": "^2.3.0",
"path-browserify": "~1.0.1",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"reakit": "~1.3.11",
"reflect-metadata": "^0.2.1",
"rimraf": "~5.0.5",
"typescript": "^5.3.3",
"reflect-metadata": "^0.2.2",
"rimraf": "~5.0.7",
"typescript": "^5.4.5",
"typescript-plugin-css-modules": "^5.1.0"
},
"dependencies": {},
Expand Down
4 changes: 2 additions & 2 deletions webapp/packages/core-administration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"@cloudbeaver/core-sdk": "~0.1.0",
"@cloudbeaver/core-storage": "~0.1.0",
"@cloudbeaver/core-utils": "~0.1.0",
"mobx": "^6.12.0"
"mobx": "^6.12.3"
},
"peerDependencies": {},
"devDependencies": {
"typescript": "^5.3.3"
"typescript": "^5.4.5"
}
}
8 changes: 4 additions & 4 deletions webapp/packages/core-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
"@cloudbeaver/core-ui": "~0.1.0",
"@cloudbeaver/core-utils": "~0.1.0",
"@cloudbeaver/core-version": "~0.1.0",
"mobx-react-lite": "^4.0.5",
"react": "^18.2.0"
"mobx-react-lite": "^4.0.7",
"react": "^18.3.1"
},
"peerDependencies": {},
"devDependencies": {
"@types/react": "^18.2.63",
"typescript": "^5.3.3",
"@types/react": "^18.3.3",
"typescript": "^5.4.5",
"typescript-plugin-css-modules": "^5.1.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
.space {
composes: theme-typography--body2 theme-background-surface theme-text-on-surface from global;
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion webapp/packages/core-app/src/AppScreen/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { getComputed, Loader, Pane, ResizerControls, s, Split, useS, useSplitUse
import { useService } from '@cloudbeaver/core-di';
import { LeftBarPanelService, SideBarPanel, SideBarPanelService } from '@cloudbeaver/core-ui';

import style from './Main.m.css';
import style from './Main.module.css';
import { RightArea } from './RightArea';

export const Main = observer(function Main() {
Expand Down
10 changes: 0 additions & 10 deletions webapp/packages/core-app/src/AppScreen/RightArea.m.css

This file was deleted.

17 changes: 17 additions & 0 deletions webapp/packages/core-app/src/AppScreen/RightArea.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
.loader {
height: 100%;
}
.slideBox {
flex: 1;
}
.pane {
display: flex;
composes: theme-background-surface theme-text-on-surface from global;
}
2 changes: 1 addition & 1 deletion webapp/packages/core-app/src/AppScreen/RightArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { useService } from '@cloudbeaver/core-di';
import { OptionsPanelService } from '@cloudbeaver/core-ui';

import { AppScreenService } from './AppScreenService';
import style from './RightArea.m.css';
import style from './RightArea.module.css';

interface Props {
className?: string;
Expand Down
2 changes: 1 addition & 1 deletion webapp/packages/core-app/src/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { ThemeService } from '@cloudbeaver/core-theming';
import { DNDProvider } from '@cloudbeaver/core-ui';
import { useAppVersion } from '@cloudbeaver/core-version';

import style from './Body.m.css';
import style from './Body.module.css';
import { useAppHeight } from './useAppHeight';
import { useClientActivity } from './useClientActivity';

Expand Down
6 changes: 3 additions & 3 deletions webapp/packages/core-authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@cloudbeaver/core-settings": "~0.1.0",
"@cloudbeaver/core-storage": "~0.1.0",
"@cloudbeaver/core-utils": "~0.1.0",
"mobx": "^6.12.0"
"mobx": "^6.12.3"
},
"peerDependencies": {},
"devDependencies": {
Expand All @@ -42,7 +42,7 @@
"@cloudbeaver/tests-runner": "~0.1.0",
"@testing-library/jest-dom": "^6.4.2",
"@types/jest": "^29.5.12",
"msw": "^2.2.2",
"typescript": "^5.3.3"
"msw": "^2.3.0",
"typescript": "^5.4.5"
}
}
12 changes: 6 additions & 6 deletions webapp/packages/core-blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"@cloudbeaver/core-theming": "~0.1.0",
"@cloudbeaver/core-utils": "~0.1.0",
"go-split": "^3.4.7",
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.5",
"react": "^18.2.0",
"mobx": "^6.12.3",
"mobx-react-lite": "^4.0.7",
"react": "^18.3.1",
"reakit": "~1.3.11",
"reakit-utils": "^0.15.2"
},
Expand All @@ -46,9 +46,9 @@
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@types/jest": "^29.5.12",
"@types/react": "^18.2.63",
"react": "^18.2.0",
"typescript": "^5.3.3",
"@types/react": "^18.3.3",
"react": "^18.3.1",
"typescript": "^5.4.5",
"typescript-plugin-css-modules": "^5.1.0"
}
}
2 changes: 1 addition & 1 deletion webapp/packages/core-blocks/src/ActionIconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
import { observer } from 'mobx-react-lite';

import style from './ActionIconButton.m.css';
import style from './ActionIconButton.module.css';
import { IconButton, type IconButtonProps } from './IconButton';
import { s } from './s';
import { useS } from './useS';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
.button {
color: white;
font-weight: 500;
Expand Down
2 changes: 1 addition & 1 deletion webapp/packages/core-blocks/src/AppRefreshButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type React from 'react';
import { App, useService } from '@cloudbeaver/core-di';
import { clsx } from '@cloudbeaver/core-utils';

import style from './AppRefreshButton.m.css';
import style from './AppRefreshButton.module.css';

interface IProps {
className?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
.buttonLabel {
composes: theme-button__label from global;
}
Expand Down
2 changes: 1 addition & 1 deletion webapp/packages/core-blocks/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { observable } from 'mobx';
import { observer } from 'mobx-react-lite';

import style from './Button.m.css';
import style from './Button.module.css';
import { IconOrImage } from './IconOrImage';
import { Loader } from './Loader/Loader';
import { s } from './s';
Expand Down
2 changes: 1 addition & 1 deletion webapp/packages/core-blocks/src/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
import { observer } from 'mobx-react-lite';

import style from './Cell.m.css';
import style from './Cell.module.css';
import { Container } from './Containers/Container';
import { s } from './s';
import { useS } from './useS';
Expand Down
5 changes: 0 additions & 5 deletions webapp/packages/core-blocks/src/Code.m.css

This file was deleted.

12 changes: 12 additions & 0 deletions webapp/packages/core-blocks/src/Code.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
.codeContainer {
composes: theme-background-secondary theme-text-on-secondary from global;
padding: 16px;
border-radius: var(--theme-group-element-radius);
}
5 changes: 3 additions & 2 deletions webapp/packages/core-blocks/src/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
import style from './Code.m.css';
import { observer } from 'mobx-react-lite';

import style from './Code.module.css';
import { s } from './s';
import { useS } from './useS';
import {observer} from "mobx-react-lite";

interface Props {
className?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
.body {
flex: 1;
box-sizing: content-box;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { observer } from 'mobx-react-lite';

import { s } from '../../s';
import { useS } from '../../useS';
import styles from './CommonDialogBody.m.css';
import styles from './CommonDialogBody.module.css';

interface Props {
noBodyPadding?: boolean;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
.footer {
flex-shrink: 0;
padding: 0 24px 24px 24px;
display: flex;
z-index: 0;
box-sizing: border-box;

&:empty {
display: none;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { observer } from 'mobx-react-lite';

import { s } from '../../s';
import { useS } from '../../useS';
import styles from './CommonDialogFooter.m.css';
import styles from './CommonDialogFooter.module.css';

interface Props {
className?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { IconOrImage } from '../../IconOrImage';
import { useTranslate } from '../../localization/useTranslate';
import { s } from '../../s';
import { useS } from '../../useS';
import styles from './CommonDialogHeader.m.css';
import styles from './CommonDialogHeader.module.css';

interface Props {
title?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { s } from '../../s';
import { useFocus } from '../../useFocus';
import { useS } from '../../useS';
import { DialogContext } from '../DialogContext';
import styles from './CommonDialogWrapper.m.css';
import styles from './CommonDialogWrapper.module.css';

export interface CommonDialogWrapperProps {
size?: 'small' | 'medium' | 'large';
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
.footer {
align-items: center;
gap: 16px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { CommonDialogBody } from './CommonDialog/CommonDialogBody';
import { CommonDialogFooter } from './CommonDialog/CommonDialogFooter';
import { CommonDialogHeader } from './CommonDialog/CommonDialogHeader';
import { CommonDialogWrapper } from './CommonDialog/CommonDialogWrapper';
import style from './ConfirmationDialog.m.css';
import style from './ConfirmationDialog.module.css';

export interface ConfirmationDialogPayload {
icon?: string;
Expand Down
Loading
Loading