@hanzo/ui 8.25.4 → 8.26.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.
@@ -25,7 +25,7 @@ import { type ControllerProps, type FieldPath, type FieldValues } from 'react-ho
25
25
  import { Box } from '../../box.js';
26
26
  import { Label } from './label.js';
27
27
  /** The provider. Spread a `useForm()` result straight into it. */
28
- export declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, resetDefaultValues, handleSubmit, unregister, control, register, setFocus, subscribe, }: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
28
+ export declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getErrors, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, resetDefaultValues, handleSubmit, unregister, control, register, setFocus, subscribe, }: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
29
29
  /**
30
30
  * One field's worth of state, plus the three ids the pieces below agree on.
31
31
  *
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/backends/gui/form.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,kEAAkE;AAClE,eAAO,MAAM,IAAI,8ZAAe,CAAA;AAQhC;;;;;GAKG;AACH,wBAAgB,YAAY;;;;;;;;;;EAkB3B;AAED,eAAO,MAAM,SAAS,GACpB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AG9D,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,sBAItC,CAAA;AAED,eAAO,MAAM,QAAQ,4BAA6B,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,sBASjF,CAAA;AAED,eAAO,MAAM,SAAS,4BAGnB,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,sBAUpC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,iBAAkB;IAAE,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAA;CAAE,2EASzE,CAAA;AAED,eAAO,MAAM,eAAe,4BAA6B,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,sBAUxF,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,sCAAuC,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,6BAc9F,CAAA"}
package/dist/gallery.html CHANGED
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en" class="t_dark"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>@hanzo/ui 8.25.4</title><style>/* @hanzo/ui — generated by scripts/gen-css.mjs. Do not edit. */
1
+ <!doctype html><html lang="en" class="t_dark"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>@hanzo/ui 8.26.0</title><style>/* @hanzo/ui — generated by scripts/gen-css.mjs. Do not edit. */
2
2
  :root { --hanzo-ui-styles: 1; }
3
3
  /* Hanzo Design System — the entry point. Import THIS one file.
4
4
  *
package/dist/next.cjs CHANGED
@@ -28,7 +28,7 @@
28
28
  // plain object, so it does not force `next` into anyone's type graph.
29
29
 
30
30
  const { readdirSync } = require('node:fs')
31
- const { dirname, join } = require('node:path')
31
+ const { join } = require('node:path')
32
32
 
33
33
  /**
34
34
  * react-native's web spelling, and the asset registry that ships beside it.
@@ -37,24 +37,14 @@ const { dirname, join } = require('node:path')
37
37
  * does not answer to under the same path — an `Image` reaches for
38
38
  * `@react-native/assets-registry/registry` and finds nothing.
39
39
  *
40
- * Resolved to a real directory rather than left as a name. A bundler resolves an
41
- * alias TARGET from the app, and react-native-web arrives as this package's
42
- * dependency, which a strict store does not hoist — so the name resolved here,
43
- * where this file lives, and nowhere in the app that asked for it. Every site
44
- * declaring the package itself would work and is the same fact written once per
45
- * site.
40
+ * Both are module specifiers, resolved from the app. Turbopack reads an absolute
41
+ * path as a relative one and reports it back with a `./` in front, so the app is
42
+ * the one that has to see `react-native-web` — every web app on this stack
43
+ * declares it, the same way it declares react-dom.
46
44
  */
47
- const web = (() => {
48
- try {
49
- return dirname(require.resolve('react-native-web/package.json'))
50
- } catch {
51
- return 'react-native-web'
52
- }
53
- })()
54
-
55
45
  const ALIAS = {
56
- 'react-native': web,
57
- '@react-native/assets-registry/registry': join(web, 'dist/modules/AssetRegistry'),
46
+ 'react-native': 'react-native-web',
47
+ '@react-native/assets-registry/registry': 'react-native-web/dist/modules/AssetRegistry',
58
48
  }
59
49
 
60
50
  /** `.web.tsx` before `.tsx`. See (1) above. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "8.25.4",
3
+ "version": "8.26.0",
4
4
  "type": "module",
5
5
  "description": "Hanzo UI — the one canonical Hanzo component library, on @hanzo/gui + @hanzo/design. ONE substrate: every component renders through @hanzo/gui primitives, so the same import works on web, native (expo) and desktop (Tauri). Self-contained (theme.css), presentational, host-agnostic, clean-room.",
6
6
  "exports": {
@@ -239,25 +239,25 @@
239
239
  "@hanzo/logo": "1.0.26",
240
240
  "@hanzo/products": "0.2.6",
241
241
  "react-native-svg": "npm:react-native-svg-web@^1.0.9",
242
- "react-native-web": "^0.21"
242
+ "react-native-web": "^0.21.2"
243
243
  },
244
244
  "peerDependencies": {
245
245
  "@hanzo/canvas": ">=0.2.3",
246
246
  "@hanzo/cd": ">=0.1.2",
247
247
  "@hanzo/dashboard": ">=0.2.0",
248
248
  "@hanzo/data": ">=1.2.4",
249
- "@hanzo/gui": ">=8.3.0",
249
+ "@hanzo/gui": "8.3.1",
250
250
  "@hanzo/usage": ">=0.1.7",
251
- "@hanzogui/animations-css": ">=8.2.1",
252
- "@hanzogui/config": ">=8.2.1",
253
- "@hanzogui/lucide-icons-2": ">=8.2.1",
254
- "@hanzogui/next-theme": ">=8.2.1",
255
- "@hanzogui/telemetry": ">=8.2.1",
256
- "@hanzogui/toast": ">=8.2.1",
257
- "next": ">=16.3.3",
258
- "next-themes": ">=0.2.1",
259
- "react": ">=19.2.8",
260
- "react-dom": ">=19.2.8",
251
+ "@hanzogui/animations-css": "8.3.1",
252
+ "@hanzogui/config": "8.3.1",
253
+ "@hanzogui/lucide-icons-2": "8.3.1",
254
+ "@hanzogui/next-theme": "8.3.1",
255
+ "@hanzogui/telemetry": "8.3.1",
256
+ "@hanzogui/toast": "8.3.1",
257
+ "next": ">=16",
258
+ "next-themes": ">=0",
259
+ "react": ">=19",
260
+ "react-dom": ">=19",
261
261
  "react-hook-form": ">=7"
262
262
  },
263
263
  "peerDependenciesMeta": {
@@ -292,25 +292,25 @@
292
292
  "@hanzo/data": "1.2.4",
293
293
  "@hanzo/gui": "8.3.0",
294
294
  "@hanzo/usage": "0.1.7",
295
- "@hanzogui/animations-css": "8.2.1",
296
- "@hanzogui/config": "8.2.1",
297
- "@hanzogui/core": "8.2.1",
298
- "@hanzogui/lucide-icons-2": "8.2.1",
299
- "@hanzogui/next-theme": "8.2.1",
300
- "@hanzogui/telemetry": "8.2.1",
301
- "@hanzogui/toast": "8.2.1",
302
- "@hanzogui/web": "8.2.1",
303
- "@playwright/test": "^1.61.0",
295
+ "@hanzogui/animations-css": "8.3.1",
296
+ "@hanzogui/config": "8.3.1",
297
+ "@hanzogui/core": "8.3.1",
298
+ "@hanzogui/lucide-icons-2": "8.3.1",
299
+ "@hanzogui/next-theme": "8.3.1",
300
+ "@hanzogui/telemetry": "8.3.1",
301
+ "@hanzogui/toast": "8.3.1",
302
+ "@hanzogui/web": "8.3.1",
303
+ "@playwright/test": "^1.62.1",
304
304
  "@types/node": "26.4.0",
305
305
  "@types/react": "19.2.18",
306
306
  "@types/react-dom": "19.2.5",
307
307
  "next-themes": "^0.4.6",
308
308
  "react": "19.2.8",
309
309
  "react-dom": "19.2.8",
310
- "react-hook-form": "^7.71.1",
310
+ "react-hook-form": "^7.86.0",
311
311
  "react-native-web": "^0.21.2",
312
312
  "typescript": "7.0.2",
313
- "vitest": "^4.1.8"
313
+ "vitest": "^4.1.11"
314
314
  },
315
315
  "publishConfig": {
316
316
  "access": "public"