-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* PMM-12845 Update antd to version 5 * PMM-12845 Remove direct dependency on webpack-merge * PMM-12845 Remove padding on dropdown
- Loading branch information
1 parent
238b4bc
commit 8908ef4
Showing
10 changed files
with
587 additions
and
671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,14 +34,15 @@ | |
"grafana" | ||
], | ||
"dependencies": { | ||
"@ant-design/icons": "^4.0.6", | ||
"@ant-design/compatible": "^5.1.2", | ||
"@ant-design/icons": "^5.3.5", | ||
"@emotion/css": "11.10.6", | ||
"@grafana/data": "10.4.2", | ||
"@grafana/runtime": "10.4.2", | ||
"@grafana/schema": "10.4.2", | ||
"@grafana/ui": "10.4.2", | ||
"@tippyjs/react": "^4.2.6", | ||
"antd": "^3.24.3", | ||
"antd": "^5.15.4", | ||
"axios": "^0.26.0", | ||
"chart.js": "^3.7.0", | ||
"chartjs-plugin-datalabels": "^2.0.0", | ||
|
@@ -148,4 +149,4 @@ | |
"node": ">=18" | ||
}, | ||
"packageManager": "[email protected]" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { defaultTheme } from '@ant-design/compatible'; | ||
import { ThemeConfig } from 'antd'; | ||
|
||
export const antdTheme: ThemeConfig = { | ||
...defaultTheme, | ||
token: { | ||
...defaultTheme.token, | ||
colorBgBase: 'rgb(22, 23, 25)', | ||
colorSuccess: '#52c41a', | ||
colorWarning: '#faad14', | ||
colorError: '#f5222d', | ||
fontSize: 14, | ||
fontFamily: 'inherit', | ||
colorTextHeading: 'rgba(255, 255, 255, 0.8)', | ||
colorText: 'rgba(255, 255, 255, 0.8)', | ||
colorTextSecondary: 'rgba(255,255,255,0.8)', | ||
colorTextDisabled: 'rgba(255,255,255, 0.6)', | ||
borderRadius: 0, | ||
colorBorder: 'rgb(40, 40, 40)', | ||
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)', | ||
colorBgContainer: '#rgb(22, 23, 25)', | ||
colorLink: 'rgb(51, 181, 229)', | ||
}, | ||
components: { | ||
...defaultTheme.components, | ||
Table: { | ||
headerBg: '#202226', | ||
rowSelectedBg: 'gray', | ||
rowHoverBg: 'transparent', | ||
cellPaddingBlock: 4, | ||
}, | ||
Select: { | ||
optionSelectedBg: '#2d2e2f', | ||
optionActiveBg: '#2d2e2f', | ||
colorTextPlaceholder: '#fff', | ||
}, | ||
Tag: { | ||
defaultBg: 'transparent', | ||
defaultColor: 'rgba(255, 255, 255, 0.8)', | ||
}, | ||
Tooltip: { | ||
colorBgSpotlight: '#3274d9', | ||
}, | ||
Tabs: { | ||
itemActiveColor: 'rgba(255, 255, 255, 0.8)', | ||
itemSelectedColor: '#fff', | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.