@hanzo/ui 8.0.86 → 8.0.87

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/box.cjs CHANGED
@@ -15,9 +15,12 @@ const jsx_runtime_1 = require("react/jsx-runtime");
15
15
  * part-way through the move renders the same either way — the converted classes
16
16
  * come from gui, the rest from whatever still serves them.
17
17
  *
18
- * A `<div>` is `display: block` and a Stack is flex, which agree for a column
19
- * of full-width children and disagree for inline content. Text belongs in a
20
- * Text, and this is for the boxes around it.
18
+ * A `<div>` is `display: block`; a gui Stack is flex-column. Those disagree, so
19
+ * Box states the div's default and lets a class override it a `flex` class
20
+ * says flex, and silence says block. Taking the Stack's default instead turned
21
+ * 77 of 225 elements on one page into flex containers that were never asked to
22
+ * be: an inline run became a column, a heading's width collapsed to its text,
23
+ * and a page grew 8% taller.
21
24
  */
22
25
  const react_1 = require("react");
23
26
  const gui_1 = require("@hanzo/gui");
@@ -26,6 +29,6 @@ exports.Box = (0, react_1.forwardRef)(function Box({ className, children, ...res
26
29
  const { props, rest: unread } = (0, tw_1.tw)(className);
27
30
  // Explicit props win: a caller who states a value directly means it, and the
28
31
  // classes are what they are migrating away from.
29
- return ((0, jsx_runtime_1.jsx)(gui_1.YStack, { ref: ref, ...props, ...rest, className: unread || undefined, children: children }));
32
+ return ((0, jsx_runtime_1.jsx)(gui_1.YStack, { ref: ref, display: "block", ...props, ...rest, className: unread || undefined, children: children }));
30
33
  });
31
34
  exports.default = exports.Box;
package/dist/box.d.ts CHANGED
@@ -10,9 +10,12 @@
10
10
  * part-way through the move renders the same either way — the converted classes
11
11
  * come from gui, the rest from whatever still serves them.
12
12
  *
13
- * A `<div>` is `display: block` and a Stack is flex, which agree for a column
14
- * of full-width children and disagree for inline content. Text belongs in a
15
- * Text, and this is for the boxes around it.
13
+ * A `<div>` is `display: block`; a gui Stack is flex-column. Those disagree, so
14
+ * Box states the div's default and lets a class override it a `flex` class
15
+ * says flex, and silence says block. Taking the Stack's default instead turned
16
+ * 77 of 225 elements on one page into flex containers that were never asked to
17
+ * be: an inline run became a column, a heading's width collapsed to its text,
18
+ * and a page grew 8% taller.
16
19
  */
17
20
  import { type ReactNode } from 'react';
18
21
  import { YStack } from '@hanzo/gui';
package/dist/box.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../src/box.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAAM,KAAK,UAAU,EAAE,MAAM,MAAM,CAAA;AAE1C,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IAC3D,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,GAAG,uGAYd,CAAA;AAEF,eAAe,GAAG,CAAA"}
1
+ {"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../src/box.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAAM,KAAK,UAAU,EAAE,MAAM,MAAM,CAAA;AAE1C,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IAC3D,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,GAAG,uGAkBd,CAAA;AAEF,eAAe,GAAG,CAAA"}
package/dist/box.js CHANGED
@@ -12,9 +12,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
12
12
  * part-way through the move renders the same either way — the converted classes
13
13
  * come from gui, the rest from whatever still serves them.
14
14
  *
15
- * A `<div>` is `display: block` and a Stack is flex, which agree for a column
16
- * of full-width children and disagree for inline content. Text belongs in a
17
- * Text, and this is for the boxes around it.
15
+ * A `<div>` is `display: block`; a gui Stack is flex-column. Those disagree, so
16
+ * Box states the div's default and lets a class override it a `flex` class
17
+ * says flex, and silence says block. Taking the Stack's default instead turned
18
+ * 77 of 225 elements on one page into flex containers that were never asked to
19
+ * be: an inline run became a column, a heading's width collapsed to its text,
20
+ * and a page grew 8% taller.
18
21
  */
19
22
  import { forwardRef } from 'react';
20
23
  import { YStack } from '@hanzo/gui';
@@ -23,7 +26,7 @@ export const Box = forwardRef(function Box({ className, children, ...rest }, ref
23
26
  const { props, rest: unread } = tw(className);
24
27
  // Explicit props win: a caller who states a value directly means it, and the
25
28
  // classes are what they are migrating away from.
26
- return (_jsx(YStack, { ref: ref, ...props, ...rest, className: unread || undefined, children: children }));
29
+ return (_jsx(YStack, { ref: ref, display: "block", ...props, ...rest, className: unread || undefined, children: children }));
27
30
  });
28
31
  export default Box;
29
32
  //# sourceMappingURL=box.js.map
package/dist/box.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"box.js","sourceRoot":"","sources":["../src/box.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,EAAE,EAAmB,MAAM,MAAM,CAAA;AAO1C,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,CAAgB,SAAS,GAAG,CACvD,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAChC,GAAG;IAEH,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;IAC7C,6EAA6E;IAC7E,iDAAiD;IACjD,OAAO,CACL,KAAC,MAAM,IAAC,GAAG,EAAE,GAAG,KAAO,KAAgB,KAAM,IAAI,EAAE,SAAS,EAAE,MAAM,IAAI,SAAS,YAC9E,QAAQ,GACF,CACV,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,GAAG,CAAA"}
1
+ {"version":3,"file":"box.js","sourceRoot":"","sources":["../src/box.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,EAAE,EAAmB,MAAM,MAAM,CAAA;AAO1C,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,CAAgB,SAAS,GAAG,CACvD,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAChC,GAAG;IAEH,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;IAC7C,6EAA6E;IAC7E,iDAAiD;IACjD,OAAO,CACL,KAAC,MAAM,IACL,GAAG,EAAE,GAAG,EACR,OAAO,EAAC,OAAO,KACV,KAAgB,KACjB,IAAI,EACR,SAAS,EAAE,MAAM,IAAI,SAAS,YAE7B,QAAQ,GACF,CACV,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,GAAG,CAAA"}
package/dist/styles.css CHANGED
@@ -2230,6 +2230,7 @@
2230
2230
  :root ._cur-pointer{cursor:pointer;}
2231
2231
  :root ._cur-row-resize{cursor:row-resize;}
2232
2232
  :root ._direction-ltr{direction:ltr;}
2233
+ :root ._dsp-block{display:block;}
2233
2234
  :root ._dsp-flex{display:flex;}
2234
2235
  :root ._dsp-inline-flex{display:inline-flex;}
2235
2236
  :root ._dsp-none{display:none;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "8.0.86",
3
+ "version": "8.0.87",
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": {