@akinon/ui-menu 1.0.1 → 1.0.2
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/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -2
- package/package.json +3 -3
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,SAAS,CAAC;AAqBzD,eAAO,MAAM,IAAI,0CAA2C,UAAU,sBA0MrE,CAAC;AAEF,mBAAmB,SAAS,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -41,7 +41,7 @@ const Menu = (_a) => {
|
|
|
41
41
|
const menuToken = token.Menu;
|
|
42
42
|
const prefixWithoutHash = `${getPrefixCls()}-menu`;
|
|
43
43
|
const prefixClsWithoutHash = `.${prefixWithoutHash}`;
|
|
44
|
-
const customTokens = theme
|
|
44
|
+
const customTokens = (0, ui_theme_1.getSafeCustomTokens)(theme);
|
|
45
45
|
const useStyle = (0, cssinjs_1.useStyleRegister)({
|
|
46
46
|
token: token,
|
|
47
47
|
path: ['Menu'],
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,SAAS,CAAC;AAqBzD,eAAO,MAAM,IAAI,0CAA2C,UAAU,sBA0MrE,CAAC;AAEF,mBAAmB,SAAS,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { Icon } from '@akinon/icons';
|
|
13
|
-
import { useToken } from '@akinon/ui-theme';
|
|
13
|
+
import { getSafeCustomTokens, useToken } from '@akinon/ui-theme';
|
|
14
14
|
import { useStyleRegister } from '@ant-design/cssinjs';
|
|
15
15
|
import { ConfigProvider, Menu as AntMenu } from 'antd';
|
|
16
16
|
import * as React from 'react';
|
|
@@ -38,7 +38,7 @@ export const Menu = (_a) => {
|
|
|
38
38
|
const menuToken = token.Menu;
|
|
39
39
|
const prefixWithoutHash = `${getPrefixCls()}-menu`;
|
|
40
40
|
const prefixClsWithoutHash = `.${prefixWithoutHash}`;
|
|
41
|
-
const customTokens = theme
|
|
41
|
+
const customTokens = getSafeCustomTokens(theme);
|
|
42
42
|
const useStyle = useStyleRegister({
|
|
43
43
|
token: token,
|
|
44
44
|
path: ['Menu'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/ui-menu",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"antd": "5.22.6",
|
|
13
|
-
"@akinon/
|
|
14
|
-
"@akinon/
|
|
13
|
+
"@akinon/ui-theme": "1.0.2",
|
|
14
|
+
"@akinon/icons": "1.0.1"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"clean-package": "2.2.0",
|