@hanzo/ui 8.25.3 → 8.25.4
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/gallery.html +1 -1
- package/dist/next.cjs +18 -3
- package/package.json +1 -1
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.
|
|
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. */
|
|
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 { join } = require('node:path')
|
|
31
|
+
const { dirname, join } = require('node:path')
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* react-native's web spelling, and the asset registry that ships beside it.
|
|
@@ -36,10 +36,25 @@ const { join } = require('node:path')
|
|
|
36
36
|
* The registry is named separately because it is the one module react-native-web
|
|
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
|
+
*
|
|
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.
|
|
39
46
|
*/
|
|
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
|
+
|
|
40
55
|
const ALIAS = {
|
|
41
|
-
'react-native':
|
|
42
|
-
'@react-native/assets-registry/registry': '
|
|
56
|
+
'react-native': web,
|
|
57
|
+
'@react-native/assets-registry/registry': join(web, 'dist/modules/AssetRegistry'),
|
|
43
58
|
}
|
|
44
59
|
|
|
45
60
|
/** `.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.
|
|
3
|
+
"version": "8.25.4",
|
|
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": {
|