@forthtilliath/forth-ui 0.2.4 → 0.2.5

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.
@@ -35,7 +35,7 @@ export function CommandPalette({ groups, open, onOpenChange, placeholder = "Type
35
35
  return () => {
36
36
  document.removeEventListener("keydown", onKeyDown);
37
37
  };
38
- // eslint-disable-next-line @eslint-react/exhaustive-deps, react-hooks/exhaustive-deps -- `setOpen` is a plain function redefined every render; including it would re-register this listener every render instead of only when `isOpen`/`shortcutKey` actually change, which is what its own re-closure over `isOpen` depends on
38
+ // eslint-disable-next-line @eslint-react/exhaustive-deps -- `setOpen` is a plain function redefined every render; including it would re-register this listener every render instead of only when `isOpen`/`shortcutKey` actually change, which is what its own re-closure over `isOpen` depends on
39
39
  }, [isOpen, shortcutKey]);
40
40
  return (_jsxs(CommandDialog, { open: isOpen, onOpenChange: setOpen, title: "Command Palette", description: placeholder, children: [_jsx(CommandInput, { placeholder: placeholder }), _jsxs(CommandList, { children: [_jsx(CommandEmpty, { children: emptyMessage }), groups.map((group, index) => (
41
41
  // eslint-disable-next-line @eslint-react/no-array-index-key -- `heading` is optional and not guaranteed unique
@@ -18,7 +18,7 @@ export function ImageInput({ value, onFileChange, disabled = false, className, a
18
18
  const inputRef = React.useRef(null);
19
19
  React.useEffect(() => {
20
20
  if (file === null) {
21
- // eslint-disable-next-line @eslint-react/set-state-in-effect, react-hooks/set-state-in-effect -- syncs the object URL lifecycle (create/revoke) with the selected File, an external browser resource that can't be derived during render
21
+ // eslint-disable-next-line @eslint-react/set-state-in-effect -- syncs the object URL lifecycle (create/revoke) with the selected File, an external browser resource that can't be derived during render
22
22
  setObjectUrl(null);
23
23
  return;
24
24
  }
@@ -39,7 +39,7 @@ export function RelativeTime({ date, timeZone, label, formatOptions, className,
39
39
  // ones — there's no way to read "now" during render without
40
40
  // reintroducing the hydration mismatch this state is starting
41
41
  // `undefined` to avoid.
42
- // eslint-disable-next-line @eslint-react/set-state-in-effect, react-hooks/set-state-in-effect
42
+ // eslint-disable-next-line @eslint-react/set-state-in-effect
43
43
  setLiveNow(new Date());
44
44
  const interval = setInterval(() => {
45
45
  setLiveNow(new Date());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forthtilliath/forth-ui",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -24,10 +24,11 @@
24
24
  "react": "^19.2.8",
25
25
  "react-dom": "^19.2.8",
26
26
  "shiki": "^4.4.3",
27
- "@forthtilliath/shadcn-ui": "0.2.0",
28
- "@forthtilliath/react-kit": "0.3.0"
27
+ "@forthtilliath/react-kit": "0.4.0",
28
+ "@forthtilliath/shadcn-ui": "0.2.0"
29
29
  },
30
30
  "devDependencies": {
31
+ "@size-limit/file": "^11.2.0",
31
32
  "@tailwindcss/postcss": "4.1.12",
32
33
  "@turbo/gen": "^2.10.9",
33
34
  "@types/node": "^26.2.0",
@@ -36,11 +37,12 @@
36
37
  "@types/react-dom": "^19.2.4",
37
38
  "concurrently": "^10.0.4",
38
39
  "eslint": "10.7.0",
40
+ "size-limit": "^11.2.0",
39
41
  "tailwindcss": "4.1.12",
40
42
  "typescript": "^5.9.3",
43
+ "@forthtilliath/eslint-config": "0.7.0",
41
44
  "@forthtilliath/ts-types": "0.2.0",
42
- "@forthtilliath/typescript-config": "0.0.0",
43
- "@forthtilliath/eslint-config": "0.4.2"
45
+ "@forthtilliath/typescript-config": "0.1.1"
44
46
  },
45
47
  "files": [
46
48
  "dist"
@@ -49,6 +51,18 @@
49
51
  "./components/*": "./dist/components/*/index.js",
50
52
  "./styles/globals.css": "./dist/globals.css"
51
53
  },
54
+ "size-limit": [
55
+ {
56
+ "name": "components (all, brotli)",
57
+ "path": "dist/**/*.js",
58
+ "limit": "70 KB"
59
+ },
60
+ {
61
+ "name": "globals.css (brotli)",
62
+ "path": "dist/globals.css",
63
+ "limit": "20 KB"
64
+ }
65
+ ],
52
66
  "scripts": {
53
67
  "lint": "eslint . --max-warnings 0",
54
68
  "check-types": "tsc --noEmit",
@@ -58,6 +72,7 @@
58
72
  "dev:tw": "pnpm run build:tw --watch",
59
73
  "build": "pnpm run clean && pnpm run build:ts && pnpm run build:tw",
60
74
  "build:ts": "tsc",
61
- "build:tw": "npx @tailwindcss/cli -i ./src/styles/globals.css -o ./dist/globals.css"
75
+ "build:tw": "npx @tailwindcss/cli -i ./src/styles/globals.css -o ./dist/globals.css",
76
+ "size": "size-limit"
62
77
  }
63
78
  }