@akinon/ui-image 0.3.0 → 0.5.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,12 @@
1
1
  import type { ImageProps as AntImageProps } from 'antd';
2
2
  import * as React from 'react';
3
- export type ImageProps = AntImageProps;
3
+ export type ImageProps = Omit<AntImageProps, 'wrapperClassName' | 'wrapperStyle' | 'prefixCls' | 'previewPrefixCls' | 'rootClassName' | 'onPreviewClose'>;
4
+ /**
5
+ * Image component for Akinon UI.
6
+ *
7
+ * This component provides a customizable image element with various features like fallback, preview, and progressive loading.
8
+ * It supports previewing the image in a modal.
9
+ *
10
+ */
4
11
  export declare const Image: ({ ...restImageProps }: ImageProps) => React.JSX.Element;
5
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AAEvC,eAAO,MAAM,KAAK,0BAA2B,UAAU,sBAEtD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,aAAa,EACX,kBAAkB,GAClB,cAAc,GACd,WAAW,GACX,kBAAkB,GAClB,eAAe,GACf,gBAAgB,CACnB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,0BAA2B,UAAU,sBAEtD,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -14,6 +14,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.Image = void 0;
15
15
  const antd_1 = require("antd");
16
16
  const React = require("react");
17
+ /**
18
+ * Image component for Akinon UI.
19
+ *
20
+ * This component provides a customizable image element with various features like fallback, preview, and progressive loading.
21
+ * It supports previewing the image in a modal.
22
+ *
23
+ */
17
24
  const Image = (_a) => {
18
25
  var restImageProps = __rest(_a, []);
19
26
  return React.createElement(antd_1.Image, Object.assign({}, restImageProps));
@@ -1,5 +1,12 @@
1
1
  import type { ImageProps as AntImageProps } from 'antd';
2
2
  import * as React from 'react';
3
- export type ImageProps = AntImageProps;
3
+ export type ImageProps = Omit<AntImageProps, 'wrapperClassName' | 'wrapperStyle' | 'prefixCls' | 'previewPrefixCls' | 'rootClassName' | 'onPreviewClose'>;
4
+ /**
5
+ * Image component for Akinon UI.
6
+ *
7
+ * This component provides a customizable image element with various features like fallback, preview, and progressive loading.
8
+ * It supports previewing the image in a modal.
9
+ *
10
+ */
4
11
  export declare const Image: ({ ...restImageProps }: ImageProps) => React.JSX.Element;
5
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AAEvC,eAAO,MAAM,KAAK,0BAA2B,UAAU,sBAEtD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,aAAa,EACX,kBAAkB,GAClB,cAAc,GACd,WAAW,GACX,kBAAkB,GAClB,eAAe,GACf,gBAAgB,CACnB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,0BAA2B,UAAU,sBAEtD,CAAC"}
package/dist/esm/index.js CHANGED
@@ -11,6 +11,13 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import { Image as AntImage } from 'antd';
13
13
  import * as React from 'react';
14
+ /**
15
+ * Image component for Akinon UI.
16
+ *
17
+ * This component provides a customizable image element with various features like fallback, preview, and progressive loading.
18
+ * It supports previewing the image in a modal.
19
+ *
20
+ */
14
21
  export const Image = (_a) => {
15
22
  var restImageProps = __rest(_a, []);
16
23
  return React.createElement(AntImage, Object.assign({}, restImageProps));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/ui-image",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",
@@ -16,9 +16,7 @@
16
16
  "copyfiles": "^2.4.1",
17
17
  "rimraf": "^5.0.5",
18
18
  "typescript": "^5.2.2",
19
- "@akinon/eslint-config": "0.1.0",
20
- "@akinon/vite-config": "0.4.0",
21
- "@akinon/typescript-config": "0.2.0"
19
+ "@akinon/typescript-config": "0.4.0"
22
20
  },
23
21
  "peerDependencies": {
24
22
  "react": ">=18",
@@ -38,12 +36,8 @@
38
36
  "build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files",
39
37
  "build:esm": "tsc --outDir dist/esm",
40
38
  "build:commonjs": "tsc --module commonjs --outDir dist/cjs",
41
- "copy:files": "copyfiles -u 1 src/**/*.css dist/esm && copyfiles -u 1 src/**/*.css dist/cjs",
39
+ "copy:files": "copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/esm && copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/cjs",
42
40
  "clean": "rimraf dist/",
43
- "lint": "eslint *.ts*",
44
- "test": "vitest run",
45
- "test:ui": "vitest --ui",
46
- "test:watch": "vitest watch",
47
41
  "typecheck": "tsc --noEmit"
48
42
  }
49
43
  }