@antscorp/ama-ui 0.0.42 → 0.0.44-beta.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/index.d.ts CHANGED
@@ -47,6 +47,9 @@ import { ForwardRefExoticComponent } from 'react';
47
47
  import { Grid as Grid_2 } from 'antd-mobile';
48
48
  import { GridProps as GridProps_2 } from 'antd-mobile';
49
49
  import { ImageProps as ImageProps_2 } from 'antd-mobile';
50
+ import { ImageUploaderProps as ImageUploaderProps_2 } from 'antd-mobile';
51
+ import { ImageUploaderRef } from 'antd-mobile';
52
+ import { ImageUploadItem } from 'antd-mobile';
50
53
  import { ImageViewer as ImageViewer_2 } from 'antd-mobile';
51
54
  import { ImageViewerProps as ImageViewerProps_2 } from 'antd-mobile';
52
55
  import { IndexBar as IndexBar_2 } from 'antd-mobile';
@@ -241,6 +244,8 @@ export declare const ConfigProvider: default_2.FC<ConfigProviderProps>;
241
244
  declare interface ConfigProviderProps extends ConfigProviderProps_2 {
242
245
  /** An optional prop */
243
246
  optional?: string;
247
+ /** An optional prop */
248
+ language?: "en" | "vi";
244
249
  }
245
250
 
246
251
  export declare const DatePicker: default_2.FC<DatePickerProps>;
@@ -329,6 +334,15 @@ export declare interface ImageProps extends ImageProps_2 {
329
334
  optional?: string;
330
335
  }
331
336
 
337
+ export declare const ImageUploader: FC<ImageUploaderProps>;
338
+
339
+ export declare interface ImageUploaderProps extends ImageUploaderProps_2 {
340
+ }
341
+
342
+ export { ImageUploaderRef }
343
+
344
+ export { ImageUploadItem }
345
+
332
346
  export declare const ImageViewer: default_2.FC<ImageViewerProps> & {
333
347
  Multi: typeof ImageViewer_2.Multi;
334
348
  };
package/package.json CHANGED
@@ -1,88 +1,88 @@
1
- {
2
- "name": "@antscorp/ama-ui",
3
- "version": "0.0.42",
4
- "main": "dist/ama-ui.es.js",
5
- "module": "dist/ama-ui.es.js",
6
- "types": "dist/index.d.ts",
7
- "sideEffects": false,
8
- "type": "module",
9
- "files": [
10
- "dist"
11
- ],
12
- "scripts": {
13
- "prepublishOnly": "yarn && yarn build",
14
- "dev": "vite",
15
- "build": "yarn clean && vite build --config vite.config.build.ts",
16
- "clean": "rimraf dist",
17
- "lint": "eslint .",
18
- "preview": "vite preview",
19
- "test": "vitest",
20
- "storybook": "storybook dev -p 6006",
21
- "build-storybook": "storybook build"
22
- },
23
- "dependencies": {
24
- "antd-mobile": "^5.38.1",
25
- "clsx": "^2.1.1",
26
- "lucide-react": "^0.475.0",
27
- "react": "^18.3.1",
28
- "react-dom": "^18.3.1",
29
- "styled-components": "^6.1.14",
30
- "tailwindcss-animate": "^1.0.7"
31
- },
32
- "devDependencies": {
33
- "@chromatic-com/storybook": "^3.2.4",
34
- "@eslint/js": "^9.17.0",
35
- "@rollup/plugin-terser": "^0.4.4",
36
- "@storybook/addon-docs": "^8.5.6",
37
- "@storybook/addon-essentials": "^8.5.8",
38
- "@storybook/addon-interactions": "^8.5.6",
39
- "@storybook/addon-onboarding": "^8.5.6",
40
- "@storybook/blocks": "^8.5.6",
41
- "@storybook/manager-api": "^8.5.7",
42
- "@storybook/react": "^8.5.6",
43
- "@storybook/react-vite": "^8.5.6",
44
- "@storybook/test": "^8.5.6",
45
- "@storybook/theming": "^8.5.7",
46
- "@tailwindcss/cli": "^4.0.0",
47
- "@tailwindcss/vite": "^4.0.0",
48
- "@testing-library/dom": "^10.4.0",
49
- "@testing-library/jest-dom": "^6.6.3",
50
- "@testing-library/react": "^16.2.0",
51
- "@types/node": "^22.10.10",
52
- "@types/react": "^18.3.18",
53
- "@types/react-dom": "^18.3.5",
54
- "@vitejs/plugin-react": "^4.3.4",
55
- "autoprefixer": "^10.4.20",
56
- "eslint": "^9.17.0",
57
- "eslint-plugin-react-hooks": "^5.0.0",
58
- "eslint-plugin-react-refresh": "^0.4.16",
59
- "eslint-plugin-storybook": "^0.11.3",
60
- "globals": "^15.14.0",
61
- "jest": "^29.7.0",
62
- "js-beautify": "^1.15.3",
63
- "postcss": "^8.5.1",
64
- "react-docgen-typescript": "^2.2.2",
65
- "react-docgen-typescript-plugin": "^1.0.8",
66
- "rollup-plugin-terser": "^7.0.2",
67
- "rollup-plugin-visualizer": "^5.14.0",
68
- "sass-embedded": "^1.83.4",
69
- "storybook": "^8.5.6",
70
- "tailwindcss": "3.4.17",
71
- "ts-dedent": "^2.2.0",
72
- "typescript": "~5.6.2",
73
- "typescript-eslint": "^8.18.2",
74
- "vite": "^6.0.5",
75
- "vite-plugin-css-injected-by-js": "^3.5.2",
76
- "vite-plugin-dts": "^4.5.0",
77
- "vitest": "^3.0.4"
78
- },
79
- "peerDependencies": {
80
- "react": ">=16.9.0",
81
- "react-dom": ">=16.9.0"
82
- },
83
- "eslintConfig": {
84
- "extends": [
85
- "plugin:storybook/recommended"
86
- ]
87
- }
88
- }
1
+ {
2
+ "name": "@antscorp/ama-ui",
3
+ "version": "0.0.44-beta.1",
4
+ "main": "dist/ama-ui.es.js",
5
+ "module": "dist/ama-ui.es.js",
6
+ "types": "dist/index.d.ts",
7
+ "sideEffects": false,
8
+ "type": "module",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "prepublishOnly": "yarn && yarn build",
14
+ "dev": "vite",
15
+ "build": "yarn clean && vite build --config vite.config.build.ts",
16
+ "clean": "rimraf dist",
17
+ "lint": "eslint .",
18
+ "preview": "vite preview",
19
+ "test": "vitest",
20
+ "storybook": "storybook dev -p 6006",
21
+ "build-storybook": "storybook build"
22
+ },
23
+ "dependencies": {
24
+ "antd-mobile": "^5.38.1",
25
+ "clsx": "^2.1.1",
26
+ "lucide-react": "^0.475.0",
27
+ "react": "^18.3.1",
28
+ "react-dom": "^18.3.1",
29
+ "styled-components": "^6.1.14",
30
+ "tailwindcss-animate": "^1.0.7"
31
+ },
32
+ "devDependencies": {
33
+ "@chromatic-com/storybook": "^3.2.4",
34
+ "@eslint/js": "^9.17.0",
35
+ "@rollup/plugin-terser": "^0.4.4",
36
+ "@storybook/addon-docs": "^8.5.6",
37
+ "@storybook/addon-essentials": "^8.5.8",
38
+ "@storybook/addon-interactions": "^8.5.6",
39
+ "@storybook/addon-onboarding": "^8.5.6",
40
+ "@storybook/blocks": "^8.5.6",
41
+ "@storybook/manager-api": "^8.5.7",
42
+ "@storybook/react": "^8.5.6",
43
+ "@storybook/react-vite": "^8.5.6",
44
+ "@storybook/test": "^8.5.6",
45
+ "@storybook/theming": "^8.5.7",
46
+ "@tailwindcss/cli": "^4.0.0",
47
+ "@tailwindcss/vite": "^4.0.0",
48
+ "@testing-library/dom": "^10.4.0",
49
+ "@testing-library/jest-dom": "^6.6.3",
50
+ "@testing-library/react": "^16.2.0",
51
+ "@types/node": "^22.10.10",
52
+ "@types/react": "^18.3.18",
53
+ "@types/react-dom": "^18.3.5",
54
+ "@vitejs/plugin-react": "^4.3.4",
55
+ "autoprefixer": "^10.4.20",
56
+ "eslint": "^9.17.0",
57
+ "eslint-plugin-react-hooks": "^5.0.0",
58
+ "eslint-plugin-react-refresh": "^0.4.16",
59
+ "eslint-plugin-storybook": "^0.11.3",
60
+ "globals": "^15.14.0",
61
+ "jest": "^29.7.0",
62
+ "js-beautify": "^1.15.3",
63
+ "postcss": "^8.5.1",
64
+ "react-docgen-typescript": "^2.2.2",
65
+ "react-docgen-typescript-plugin": "^1.0.8",
66
+ "rollup-plugin-terser": "^7.0.2",
67
+ "rollup-plugin-visualizer": "^5.14.0",
68
+ "sass-embedded": "^1.83.4",
69
+ "storybook": "^8.5.6",
70
+ "tailwindcss": "3.4.17",
71
+ "ts-dedent": "^2.2.0",
72
+ "typescript": "~5.6.2",
73
+ "typescript-eslint": "^8.18.2",
74
+ "vite": "^6.0.5",
75
+ "vite-plugin-css-injected-by-js": "^3.5.2",
76
+ "vite-plugin-dts": "^4.5.0",
77
+ "vitest": "^3.0.4"
78
+ },
79
+ "peerDependencies": {
80
+ "react": ">=16.9.0",
81
+ "react-dom": ">=16.9.0"
82
+ },
83
+ "eslintConfig": {
84
+ "extends": [
85
+ "plugin:storybook/recommended"
86
+ ]
87
+ }
88
+ }