@akinon/ui-result 0.2.0 → 0.3.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.
@@ -0,0 +1,39 @@
1
+ import type { IconName } from '@akinon/icons';
2
+ import { ResultStatusType } from 'antd/es/result';
3
+
4
+ /**
5
+ * Interface representing the properties for the Result component.
6
+ */
7
+ export interface IResultProps {
8
+ /**
9
+ * The status of the result.
10
+ * @default 'info'
11
+ */
12
+ status?: ResultStatusType;
13
+
14
+ /**
15
+ * The title of the result. `string` is strongly recommended due to the Akinon design system.
16
+ */
17
+ title?: React.ReactNode;
18
+
19
+ /**
20
+ * The subtitle of the result. `string` is strongly recommended due to the Akinon design system.
21
+ */
22
+ subTitle?: React.ReactNode;
23
+
24
+ /**
25
+ * The icon name of the icon. Only icons from `akinon/icons` are supported.
26
+ */
27
+ icon?: IconName;
28
+
29
+ /**
30
+ * The extra content of the result. `string` is strongly recommended due to the Akinon design system.
31
+ */
32
+ extra?: React.ReactNode;
33
+
34
+ /**
35
+ * The children of the result.
36
+ * @type {React.ReactNode}
37
+ */
38
+ children?: React.ReactNode;
39
+ }
@@ -0,0 +1,39 @@
1
+ import type { IconName } from '@akinon/icons';
2
+ import { ResultStatusType } from 'antd/es/result';
3
+
4
+ /**
5
+ * Interface representing the properties for the Result component.
6
+ */
7
+ export interface IResultProps {
8
+ /**
9
+ * The status of the result.
10
+ * @default 'info'
11
+ */
12
+ status?: ResultStatusType;
13
+
14
+ /**
15
+ * The title of the result. `string` is strongly recommended due to the Akinon design system.
16
+ */
17
+ title?: React.ReactNode;
18
+
19
+ /**
20
+ * The subtitle of the result. `string` is strongly recommended due to the Akinon design system.
21
+ */
22
+ subTitle?: React.ReactNode;
23
+
24
+ /**
25
+ * The icon name of the icon. Only icons from `akinon/icons` are supported.
26
+ */
27
+ icon?: IconName;
28
+
29
+ /**
30
+ * The extra content of the result. `string` is strongly recommended due to the Akinon design system.
31
+ */
32
+ extra?: React.ReactNode;
33
+
34
+ /**
35
+ * The children of the result.
36
+ * @type {React.ReactNode}
37
+ */
38
+ children?: React.ReactNode;
39
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/ui-result",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",
@@ -10,14 +10,14 @@
10
10
  ],
11
11
  "dependencies": {
12
12
  "antd": "5.17.0",
13
- "@akinon/icons": "0.5.0"
13
+ "@akinon/icons": "0.6.0"
14
14
  },
15
15
  "devDependencies": {
16
16
  "clean-package": "2.2.0",
17
17
  "copyfiles": "^2.4.1",
18
18
  "rimraf": "^5.0.5",
19
19
  "typescript": "^5.2.2",
20
- "@akinon/typescript-config": "0.3.0"
20
+ "@akinon/typescript-config": "0.4.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": ">=18",
@@ -37,7 +37,7 @@
37
37
  "build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files",
38
38
  "build:esm": "tsc --outDir dist/esm",
39
39
  "build:commonjs": "tsc --module commonjs --outDir dist/cjs",
40
- "copy:files": "copyfiles -u 1 src/**/*.css dist/esm && copyfiles -u 1 src/**/*.css dist/cjs",
40
+ "copy:files": "copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/esm && copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/cjs",
41
41
  "clean": "rimraf dist/",
42
42
  "typecheck": "tsc --noEmit"
43
43
  }