@taicode/common-web 3.7.8 → 3.7.11

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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { RefreshCwIcon, RotateCcwIcon, SearchIcon } from 'lucide-react';
2
+ import { RefreshCwIcon, XIcon, SearchIcon } from 'lucide-react';
3
3
  import { Button } from '../button.js';
4
4
  export function RefreshButton(props) {
5
5
  const { onClick, loading = false, label = 'Refresh' } = props;
@@ -7,9 +7,9 @@ export function RefreshButton(props) {
7
7
  }
8
8
  export function ResetButton(props) {
9
9
  const { onClick, label = 'Reset' } = props;
10
- return (_jsx(Button, { onClick: onClick, variant: "outline", size: "icon", className: "size-9", "aria-label": label, title: label, children: _jsx(RotateCcwIcon, { className: "size-4" }) }));
10
+ return (_jsx(Button, { onClick: onClick, variant: "outline", size: "icon", className: "size-9", "aria-label": label, title: label, children: _jsx(XIcon, { className: "size-4" }) }));
11
11
  }
12
12
  export function FilterActions(props) {
13
- const { onApply, onReset, onRefresh, loading = false, applyLabel = 'Filter', resetLabel = 'Reset', refreshLabel = 'Refresh' } = props;
13
+ const { onApply, onReset, onRefresh, loading = false, applyLabel = '应用筛选', resetLabel = '重置', refreshLabel = '刷新' } = props;
14
14
  return (_jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [_jsxs(Button, { onClick: onApply, className: "h-9", children: [_jsx(SearchIcon, { className: "size-4" }), applyLabel] }), _jsx(ResetButton, { onClick: onReset, label: resetLabel }), onRefresh && _jsx(RefreshButton, { onClick: onRefresh, loading: loading, label: refreshLabel })] }));
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taicode/common-web",
3
- "version": "3.7.8",
3
+ "version": "3.7.11",
4
4
  "author": "Alain",
5
5
  "license": "ISC",
6
6
  "description": "",
@@ -54,7 +54,7 @@
54
54
  "mobx": ">=6",
55
55
  "mobx-react-lite": "^4.1.1",
56
56
  "react": ">=18",
57
- "@taicode/common-base": "^3.7.8"
57
+ "@taicode/common-base": "^3.7.11"
58
58
  },
59
59
  "dependencies": {
60
60
  "@headlessui/react": "^2.2.9",
@@ -99,14 +99,17 @@
99
99
  "vite-plugin-pwa": "^0.21.2",
100
100
  "vite-plugin-svgr": "^4.5.0",
101
101
  "vite-tsconfig-paths": "^5.1.4",
102
- "vitest": "^3.2.7"
102
+ "vitest": "^3.2.7",
103
+ "@taicode/common-base": "^3.7.11"
103
104
  },
104
105
  "scripts": {
105
106
  "test": "vitest",
106
107
  "test:ui": "vitest --ui",
107
108
  "test:run": "vitest run",
108
- "build": "node ../../node_modules/typescript/bin/tsc -p tsconfig.json",
109
- "dev": "node ../../node_modules/typescript/bin/tsc -p tsconfig.json --watch",
109
+ "test:ci": "vitest run",
110
+ "typecheck": "tsc --noEmit",
111
+ "build": "tsc -p tsconfig.json",
112
+ "dev": "tsc -p tsconfig.json --watch",
110
113
  "pack:local": "pnpm build && mkdir -p ../../.local-packages && pnpm pack --pack-destination ../../.local-packages"
111
114
  }
112
115
  }