@akinon/ui-layout 1.3.0 → 1.4.1
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.
|
@@ -31,7 +31,7 @@ const NavCard = ({ title, description, icon, variant = 'default', className, bac
|
|
|
31
31
|
const { getPrefixCls, theme } = React.useContext(antd_1.ConfigProvider.ConfigContext);
|
|
32
32
|
const { token, hashId } = (0, ui_theme_1.useToken)();
|
|
33
33
|
const navCardToken = theme.NavCardTokens;
|
|
34
|
-
const customTokens = theme
|
|
34
|
+
const customTokens = (0, ui_theme_1.getSafeCustomTokens)(theme);
|
|
35
35
|
const prefixClsWithoutHash = `.${getPrefixCls()}-navcard`;
|
|
36
36
|
const prefixCls = `:where(.${hashId})${prefixClsWithoutHash}`;
|
|
37
37
|
(0, cssinjs_1.useStyleRegister)({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Icon } from '@akinon/icons';
|
|
2
|
-
import { useToken } from '@akinon/ui-theme';
|
|
2
|
+
import { getSafeCustomTokens, useToken } from '@akinon/ui-theme';
|
|
3
3
|
import { Title } from '@akinon/ui-typography';
|
|
4
4
|
import { useStyleRegister } from '@ant-design/cssinjs';
|
|
5
5
|
import { ConfigProvider } from 'antd';
|
|
@@ -28,7 +28,7 @@ export const NavCard = ({ title, description, icon, variant = 'default', classNa
|
|
|
28
28
|
const { getPrefixCls, theme } = React.useContext(ConfigProvider.ConfigContext);
|
|
29
29
|
const { token, hashId } = useToken();
|
|
30
30
|
const navCardToken = theme.NavCardTokens;
|
|
31
|
-
const customTokens = theme
|
|
31
|
+
const customTokens = getSafeCustomTokens(theme);
|
|
32
32
|
const prefixClsWithoutHash = `.${getPrefixCls()}-navcard`;
|
|
33
33
|
const prefixCls = `:where(.${hashId})${prefixClsWithoutHash}`;
|
|
34
34
|
useStyleRegister({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/ui-layout",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"antd": "5.22.6",
|
|
13
13
|
"clsx": "^2.0.0",
|
|
14
|
-
"@akinon/
|
|
15
|
-
"@akinon/ui-
|
|
16
|
-
"@akinon/
|
|
14
|
+
"@akinon/ui-theme": "1.0.2",
|
|
15
|
+
"@akinon/ui-typography": "1.0.1",
|
|
16
|
+
"@akinon/icons": "1.0.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"clean-package": "2.2.0",
|
|
20
20
|
"copyfiles": "^2.4.1",
|
|
21
21
|
"rimraf": "^5.0.5",
|
|
22
22
|
"typescript": "*",
|
|
23
|
-
"@akinon/
|
|
24
|
-
"@akinon/
|
|
23
|
+
"@akinon/utils": "1.0.2",
|
|
24
|
+
"@akinon/typescript-config": "1.0.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": ">=18",
|