@sunny-base-web/ui 0.8.36 → 0.8.37

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.
Files changed (2) hide show
  1. package/package.json +34 -41
  2. package/src/index.ts +74 -0
package/package.json CHANGED
@@ -1,72 +1,65 @@
1
1
  {
2
2
  "name": "@sunny-base-web/ui",
3
- "version": "0.8.36",
3
+ "version": "0.8.37",
4
4
  "private": false,
5
- "main": "./src/index.ts",
6
- "module": "./src/index.ts",
7
- "types": "./src/index.ts",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
11
  "exports": {
12
- ".": "./src/index.ts",
13
- "./style.css": "./src/style.css"
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.mjs",
15
+ "require": "./dist/index.js"
16
+ },
17
+ "./style.css": "./dist/ui.css"
14
18
  },
15
19
  "publishConfig": {
16
- "main": "./dist/index.js",
17
- "module": "./dist/index.mjs",
18
- "types": "./dist/index.d.ts",
19
- "exports": {
20
- ".": {
21
- "types": "./dist/index.d.ts",
22
- "import": "./dist/index.mjs",
23
- "require": "./dist/index.js"
24
- },
25
- "./style.css": "./dist/ui.css"
26
- },
27
20
  "style": "./dist/ui.css",
28
21
  "access": "public",
29
22
  "registry": "https://registry.npmjs.org/"
30
23
  },
31
- "scripts": {
32
- "build": "vite build",
33
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
34
- },
35
24
  "dependencies": {
36
- "@arco-design/web-vue": "catalog:",
37
- "@sunny-base-web/icons": "workspace:^",
38
- "@sunny-base-web/locales": "workspace:^",
39
- "@sunny-base-web/utils": "workspace:^",
25
+ "@arco-design/web-vue": "^2.57.0",
40
26
  "@tanstack/store": "^0.8.0",
41
27
  "@tanstack/vue-store": "^0.8.0",
42
28
  "@vee-validate/zod": "^4.15.1",
43
- "@vueuse/core": "catalog:",
44
- "@vxe-ui/plugin-render-arco": "catalog:",
29
+ "@vueuse/core": "^10.9.0",
30
+ "@vxe-ui/plugin-render-arco": "^4.2.1",
45
31
  "axios": "^1.13.2",
46
32
  "lodash-es": "^4.17.23",
47
33
  "nprogress": "^0.2.0",
48
- "reka-ui": "catalog:",
34
+ "reka-ui": "^2.7.0",
49
35
  "vee-validate": "^4.15.1",
50
- "vue": "catalog:",
51
- "vue-i18n": "catalog:",
36
+ "vue": "^3.5.13",
37
+ "vue-i18n": "^11.2.8",
52
38
  "vue-qrcode-reader": "^5.7.3",
53
- "vxe-pc-ui": "catalog:",
54
- "vxe-table": "catalog:",
55
- "zod": "^4.3.5"
39
+ "vxe-pc-ui": "^4.13.0",
40
+ "vxe-table": "^4.17.49",
41
+ "zod": "^4.3.5",
42
+ "@sunny-base-web/icons": "^0.8.37",
43
+ "@sunny-base-web/utils": "^0.8.37",
44
+ "@sunny-base-web/locales": "^0.8.37"
56
45
  },
57
46
  "devDependencies": {
58
- "@sunny-base-web/tailwind-config": "workspace:*",
59
- "@sunny-base-web/tsconfig": "workspace:*",
60
47
  "@types/lodash-es": "^4.17.12",
61
48
  "@types/nprogress": "^0.2.3",
62
49
  "@vitejs/plugin-vue": "^6.0.4",
63
50
  "@vitejs/plugin-vue-jsx": "^5.1.4",
64
- "autoprefixer": "catalog:",
65
- "postcss": "catalog:",
66
- "tailwindcss": "catalog:",
67
- "typescript": "catalog:",
51
+ "autoprefixer": "^10.4.17",
52
+ "postcss": "^8.4.35",
53
+ "tailwindcss": "^3.4.1",
54
+ "typescript": "^5.7.2",
68
55
  "vite": "^7.3.1",
69
56
  "vite-plugin-dts": "^4.5.4",
70
- "vue-tsc": "catalog:"
57
+ "vue-tsc": "^2.1.10",
58
+ "@sunny-base-web/tailwind-config": "0.8.37",
59
+ "@sunny-base-web/tsconfig": "0.8.37"
60
+ },
61
+ "scripts": {
62
+ "build": "vite build",
63
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
71
64
  }
72
- }
65
+ }
package/src/index.ts ADDED
@@ -0,0 +1,74 @@
1
+ import "./style.css";
2
+
3
+ import { Modal, useSunnyModal, ModalTypes } from "./feedback/modal";
4
+ import { ErrorBoundary } from "./feedback/error-boundary";
5
+ import { SunnyLoading, SunnySpinner } from "./feedback/spinner";
6
+ import { SunnyIcon } from "./basic/icon";
7
+ import { SunnyScrollbar } from "./basic/scrollbar";
8
+ import { SunnyUpload } from "./data/upload";
9
+ import { SunnySimpleUpload } from "./data/simple-upload";
10
+ import SunnySelect from "./entry/select";
11
+ import SunnyBatchSelect from "./entry/select/BatchSelect.vue";
12
+ import SunnySearchInputTag from "./entry/search-input-tag";
13
+ import { useSunnyForm, FormApi, SunnyForm, setupSunnyForm, z, DEFAULT_FORM_COMMON_CONFIG } from './entry/form';
14
+ import { useSunnyEditGrid } from './data/edit-grid'
15
+ import * as EditRender from './data/edit-grid/edit-render'
16
+ import * as Validators from './data/edit-grid/validators'
17
+ import { useSunnyQueryGrid } from './data/query-grid'
18
+ import { SunnyResourceTree } from './data/resource-tree'
19
+ import { SunnySearchModal } from './feedback/search-modal'
20
+ import { patterns } from "@sunny-base-web/utils";
21
+ import type { VxeGridProps, VxeGridPropTypes } from 'vxe-table';
22
+
23
+
24
+ export * from "./navigation/nprogress";
25
+ export * from "./basic/icon/types";
26
+
27
+ export {
28
+ Modal,
29
+ useSunnyModal,
30
+ ModalTypes,
31
+ ErrorBoundary,
32
+ SunnyLoading,
33
+ SunnySpinner,
34
+ SunnyIcon,
35
+ SunnyScrollbar,
36
+ SunnyUpload,
37
+ SunnySimpleUpload,
38
+ SunnyBatchSelect,
39
+ SunnySelect,
40
+ SunnyCustomizeSelect,
41
+ SunnySearchInputTag,
42
+ useSunnyForm,
43
+ FormApi,
44
+ SunnyForm,
45
+ setupSunnyForm,
46
+ DEFAULT_FORM_COMMON_CONFIG,
47
+ EditRender,
48
+ Validators,
49
+ useSunnyEditGrid,
50
+ useSunnyQueryGrid,
51
+ SunnyResourceTree,
52
+ SunnySearchModal,
53
+ patterns,
54
+ z
55
+ };
56
+
57
+ export type {
58
+ VxeGridProps,
59
+ VxeGridPropTypes
60
+ };
61
+
62
+ export * from "./entry/select/types";
63
+ export * from "./entry/search-input-tag/types";
64
+ export * from "./entry/form/types";
65
+ export * from "./feedback/error-boundary/types";
66
+ export * from "./composite/business-search";
67
+ export * from "./composite/search-plan";
68
+ export * from "./composite/customize-select";
69
+ export * from './data/resource-tree/types';
70
+ export * from './data/resource-tree/use-sunny-resource-tree';
71
+ export * from './feedback/export-modal';
72
+ export * from './feedback/import-modal';
73
+ export * from './entry/qrcode-reader/types';
74
+ export { SunnyQrcodeReader } from './entry/qrcode-reader';