@akinon/ui-upload 1.1.0 → 1.2.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.
- 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 +5 -5
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAarB,OAAO,KAAK,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;;GASG;AAEH,QAAA,MAAM,MAAM;YAAW,WAAW;;;;CAkEjC,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,cAAc,WAAW,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -38,7 +38,7 @@ const Upload = (props) => {
|
|
|
38
38
|
const uploadToken = token.Upload;
|
|
39
39
|
const prefixClsWithoutHash = `${getPrefixCls()}-upload`;
|
|
40
40
|
const prefixCls = `:where(.${hashId}).${prefixClsWithoutHash}`;
|
|
41
|
-
const customTokens = theme
|
|
41
|
+
const customTokens = (0, ui_theme_1.getSafeCustomTokens)(theme);
|
|
42
42
|
const useStyle = (0, cssinjs_1.useStyleRegister)({
|
|
43
43
|
token: token,
|
|
44
44
|
path: ['Upload'],
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAarB,OAAO,KAAK,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;;GASG;AAEH,QAAA,MAAM,MAAM;YAAW,WAAW;;;;CAkEjC,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,cAAc,WAAW,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
import { Image } from '@akinon/ui-image';
|
|
3
|
-
import { useToken } from '@akinon/ui-theme';
|
|
3
|
+
import { getSafeCustomTokens, useToken } from '@akinon/ui-theme';
|
|
4
4
|
import { useStyleRegister } from '@ant-design/cssinjs';
|
|
5
5
|
import { ConfigProvider, Upload as AntUpload } from 'antd';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -21,7 +21,7 @@ const Upload = (props) => {
|
|
|
21
21
|
const uploadToken = token.Upload;
|
|
22
22
|
const prefixClsWithoutHash = `${getPrefixCls()}-upload`;
|
|
23
23
|
const prefixCls = `:where(.${hashId}).${prefixClsWithoutHash}`;
|
|
24
|
-
const customTokens = theme
|
|
24
|
+
const customTokens = getSafeCustomTokens(theme);
|
|
25
25
|
const useStyle = useStyleRegister({
|
|
26
26
|
token: token,
|
|
27
27
|
path: ['Upload'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/ui-upload",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"antd": "5.22.6",
|
|
13
13
|
"clsx": "2.1.1",
|
|
14
14
|
"@akinon/icons": "1.0.1",
|
|
15
|
-
"@akinon/ui-layout": "1.
|
|
15
|
+
"@akinon/ui-layout": "1.4.1",
|
|
16
|
+
"@akinon/ui-progress": "1.0.2",
|
|
16
17
|
"@akinon/ui-image": "1.0.1",
|
|
17
|
-
"@akinon/ui-
|
|
18
|
-
"@akinon/ui-
|
|
19
|
-
"@akinon/ui-tooltip": "1.1.0"
|
|
18
|
+
"@akinon/ui-theme": "1.0.2",
|
|
19
|
+
"@akinon/ui-tooltip": "1.2.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"clean-package": "2.2.0",
|