@akinon/ui-steps 1.0.1 → 1.1.0

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.
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { IStepProps } from './types';
2
+ import type { IStepProps } from './types';
3
3
  /**
4
4
  * Steps component for displaying the progress of a process with multiple stages.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,KAAK,4CAIf,UAAU,sBA+VZ,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,KAAK,GAAI,yCAInB,UAAU,sBA+VZ,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -43,7 +43,7 @@ const Steps = (_a) => {
43
43
  const prefixClsWithoutHash = `.${prefixWithoutHash}`;
44
44
  const prefixCls = `:where(.${hashId})${prefixClsWithoutHash}`;
45
45
  const stepsClassName = `${prefixWithoutHash} ${manyItems ? 'many-items' : ''}`;
46
- const customTokens = theme.CustomTokens || {};
46
+ const customTokens = (0, ui_theme_1.getSafeCustomTokens)(theme);
47
47
  const useStyle = (0, cssinjs_1.useStyleRegister)({
48
48
  token: token,
49
49
  path: ['Steps'],
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { IStepProps } from './types';
2
+ import type { IStepProps } from './types';
3
3
  /**
4
4
  * Steps component for displaying the progress of a process with multiple stages.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,KAAK,4CAIf,UAAU,sBA+VZ,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,KAAK,GAAI,yCAInB,UAAU,sBA+VZ,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,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, Steps as AntSteps } from 'antd';
16
16
  import * as React from 'react';
@@ -40,7 +40,7 @@ export const Steps = (_a) => {
40
40
  const prefixClsWithoutHash = `.${prefixWithoutHash}`;
41
41
  const prefixCls = `:where(.${hashId})${prefixClsWithoutHash}`;
42
42
  const stepsClassName = `${prefixWithoutHash} ${manyItems ? 'many-items' : ''}`;
43
- const customTokens = theme.CustomTokens || {};
43
+ const customTokens = getSafeCustomTokens(theme);
44
44
  const useStyle = useStyleRegister({
45
45
  token: token,
46
46
  path: ['Steps'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/ui-steps",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",
@@ -9,20 +9,21 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "antd": "5.22.6",
13
- "@akinon/ui-theme": "1.0.1",
14
- "@akinon/icons": "1.0.1"
12
+ "@ant-design/cssinjs": "^1.24.0",
13
+ "antd": "^5.27.0",
14
+ "@akinon/icons": "1.1.0",
15
+ "@akinon/ui-theme": "1.1.0"
15
16
  },
16
17
  "devDependencies": {
17
18
  "clean-package": "2.2.0",
18
19
  "copyfiles": "^2.4.1",
19
20
  "rimraf": "^5.0.5",
20
21
  "typescript": "*",
21
- "@akinon/typescript-config": "1.0.1"
22
+ "@akinon/typescript-config": "1.1.0"
22
23
  },
23
24
  "peerDependencies": {
24
- "react": ">=18",
25
- "react-dom": ">=18"
25
+ "react": "^18 || ^19",
26
+ "react-dom": "^18 || ^19"
26
27
  },
27
28
  "clean-package": "../../../clean-package.config.json",
28
29
  "types": "dist/esm/index.d.ts",
@@ -36,10 +37,10 @@
36
37
  },
37
38
  "scripts": {
38
39
  "build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files",
39
- "build:esm": "tsc --outDir dist/esm",
40
40
  "build:commonjs": "tsc --module commonjs --outDir dist/cjs",
41
- "copy:files": "copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/esm && copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/cjs",
41
+ "build:esm": "tsc --outDir dist/esm",
42
42
  "clean": "rimraf dist/",
43
+ "copy:files": "copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/esm && copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/cjs",
43
44
  "typecheck": "tsc --noEmit"
44
45
  }
45
46
  }