@behivetech/organisms.site-header 1.0.0 → 1.1.1

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.
@@ -0,0 +1,204 @@
1
+ // site-header.native.tsx
2
+ import { Button } from "@behivetech/atoms.button";
3
+ import { Drawer } from "@behivetech/atoms.drawer";
4
+ import { NavItem } from "@behivetech/atoms.nav-item";
5
+ import {
6
+ BREAKPOINTS_REM,
7
+ holdsText,
8
+ REM_DP,
9
+ useBlock
10
+ } from "@behivetech/blocks.core/native";
11
+ import { MenuIcon } from "@behivetech/icons.menu";
12
+ import { useState } from "react";
13
+ import {
14
+ Text,
15
+ View,
16
+ useWindowDimensions
17
+ } from "react-native";
18
+
19
+ // site-header.block.native.ts
20
+ import { createNativeBlock as __bhtCreateNativeBlock } from "@behivetech/blocks.core/native";
21
+ import { StyleSheet as __bhtStyleSheet } from "react-native";
22
+ var __bht0_shared = __bhtStyleSheet.create({
23
+ __bar: {
24
+ display: "flex",
25
+ flexDirection: "row",
26
+ alignItems: "center",
27
+ justifyContent: "space-between",
28
+ rowGap: 16,
29
+ columnGap: 16,
30
+ minHeight: 64,
31
+ paddingTop: 8,
32
+ paddingRight: 16,
33
+ paddingBottom: 8,
34
+ paddingLeft: 16
35
+ },
36
+ __brand: {
37
+ display: "flex",
38
+ flexDirection: "row",
39
+ alignItems: "center",
40
+ minWidth: 0
41
+ },
42
+ __end: {
43
+ display: "flex",
44
+ flexDirection: "row",
45
+ alignItems: "center",
46
+ rowGap: 8,
47
+ columnGap: 8
48
+ },
49
+ __nav: {
50
+ display: "flex",
51
+ flexDirection: "row",
52
+ alignItems: "center",
53
+ rowGap: 4,
54
+ columnGap: 4
55
+ },
56
+ __actions: { display: "flex", flexDirection: "row", alignItems: "center" },
57
+ __menu: { display: "flex", flexDirection: "row" },
58
+ __drawerNav: {
59
+ display: "flex",
60
+ flexDirection: "column",
61
+ rowGap: 8,
62
+ columnGap: 8
63
+ }
64
+ });
65
+ var __bht0_light = __bhtStyleSheet.create({
66
+ root: {
67
+ backgroundColor: "#f9f9f9",
68
+ color: "#1b1b1b",
69
+ borderBottomWidth: 1,
70
+ borderBottomColor: "#c6c6c6",
71
+ borderStyle: "solid"
72
+ },
73
+ "root~text": { color: "#1b1b1b" }
74
+ });
75
+ var __bht0_dark = __bhtStyleSheet.create({
76
+ root: {
77
+ backgroundColor: "#131313",
78
+ color: "#e2e2e2",
79
+ borderBottomWidth: 1,
80
+ borderBottomColor: "#474747",
81
+ borderStyle: "solid"
82
+ },
83
+ "root~text": { color: "#e2e2e2" }
84
+ });
85
+ var siteHeader = __bhtCreateNativeBlock("BHT__SiteHeader", {
86
+ structure: {
87
+ children: {
88
+ bar: {},
89
+ brand: {},
90
+ end: {},
91
+ nav: {},
92
+ actions: {},
93
+ menu: {},
94
+ drawerNav: {}
95
+ }
96
+ },
97
+ sheets: {
98
+ light: { ...__bht0_shared, ...__bht0_light },
99
+ dark: { ...__bht0_shared, ...__bht0_dark }
100
+ },
101
+ plan: {
102
+ root: [{ key: "root" }],
103
+ children: {
104
+ bar: [{ key: "root~text" }, { key: "__bar" }],
105
+ brand: [{ key: "root~text" }, { key: "__brand" }],
106
+ end: [{ key: "root~text" }, { key: "__end" }],
107
+ nav: [{ key: "root~text" }, { key: "__nav" }],
108
+ actions: [{ key: "root~text" }, { key: "__actions" }],
109
+ menu: [{ key: "root~text" }, { key: "__menu" }],
110
+ drawerNav: [{ key: "root~text" }, { key: "__drawerNav" }]
111
+ }
112
+ }
113
+ });
114
+
115
+ // site-header.native.tsx
116
+ import { jsx, jsxs } from "react/jsx-runtime";
117
+ var WIDE_WIDTH = BREAKPOINTS_REM.lg * REM_DP;
118
+ var SiteHeader = ({
119
+ brand,
120
+ links,
121
+ actions,
122
+ onLinkPress,
123
+ menuLabel,
124
+ style,
125
+ styles,
126
+ ...rest
127
+ }) => {
128
+ const [rootProps, childProps] = useBlock(siteHeader, {}, { style, styles });
129
+ const [isMenuOpen, setIsMenuOpen] = useState(false);
130
+ const { width } = useWindowDimensions();
131
+ const isWide = width >= WIDE_WIDTH;
132
+ const BrandWrapper = holdsText(brand) ? Text : View;
133
+ const ActionsWrapper = holdsText(actions) ? Text : View;
134
+ const closeMenu = () => setIsMenuOpen(false);
135
+ const [wasWide, setWasWide] = useState(isWide);
136
+ if (wasWide !== isWide) {
137
+ setWasWide(isWide);
138
+ if (isWide) {
139
+ setIsMenuOpen(false);
140
+ }
141
+ }
142
+ const items = (onPressed) => links.map((link) => /* @__PURE__ */ jsx(
143
+ NavItem,
144
+ {
145
+ active: link.current,
146
+ onPress: () => {
147
+ onPressed?.();
148
+ onLinkPress?.(link);
149
+ },
150
+ children: link.label
151
+ },
152
+ `${link.href}:${link.label}`
153
+ ));
154
+ return /* @__PURE__ */ jsxs(View, { role: "banner", ...rest, ...rootProps, children: [
155
+ /* @__PURE__ */ jsxs(View, { ...childProps("bar"), children: [
156
+ /* @__PURE__ */ jsx(BrandWrapper, { ...childProps("brand"), children: brand }),
157
+ /* @__PURE__ */ jsxs(View, { ...childProps("end"), children: [
158
+ isWide ? /* @__PURE__ */ jsx(
159
+ View,
160
+ {
161
+ ...childProps("nav"),
162
+ role: "navigation",
163
+ accessibilityLabel: menuLabel,
164
+ children: items()
165
+ }
166
+ ) : null,
167
+ actions ? /* @__PURE__ */ jsx(ActionsWrapper, { ...childProps("actions"), children: actions }) : null,
168
+ isWide ? null : /* @__PURE__ */ jsx(View, { ...childProps("menu"), children: /* @__PURE__ */ jsx(
169
+ Button,
170
+ {
171
+ variant: "ghost",
172
+ size: "lg",
173
+ iconOnly: true,
174
+ accessibilityLabel: menuLabel,
175
+ accessibilityState: { expanded: isMenuOpen },
176
+ onPress: () => setIsMenuOpen(true),
177
+ children: /* @__PURE__ */ jsx(MenuIcon, {})
178
+ }
179
+ ) })
180
+ ] })
181
+ ] }),
182
+ !isWide && isMenuOpen ? /* @__PURE__ */ jsx(
183
+ Drawer,
184
+ {
185
+ placement: "right",
186
+ title: menuLabel,
187
+ padding: "sm",
188
+ onClose: closeMenu,
189
+ children: /* @__PURE__ */ jsx(
190
+ View,
191
+ {
192
+ ...childProps("drawerNav"),
193
+ role: "navigation",
194
+ accessibilityLabel: menuLabel,
195
+ children: items(closeMenu)
196
+ }
197
+ )
198
+ }
199
+ ) : null
200
+ ] });
201
+ };
202
+ export {
203
+ SiteHeader
204
+ };
@@ -0,0 +1,2 @@
1
+ export { SiteHeader } from "./site-header.native";
2
+ export type { SiteHeaderLink, SiteHeaderLinkProps, SiteHeaderProps, } from "./site-header.native";
@@ -0,0 +1,14 @@
1
+ import { type AnchorHTMLAttributes } from "react";
2
+ /** One navigation link of the header. */
3
+ export interface SiteHeaderLink {
4
+ /** Destination of the link */
5
+ href: string;
6
+ /** Visible text of the link, already translated */
7
+ label: string;
8
+ /** Marks the link for the current page: renders `aria-current="page"` */
9
+ current?: boolean;
10
+ }
11
+ /** Props the header passes to `linkComponent` for every link. */
12
+ export type SiteHeaderLinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
13
+ href: string;
14
+ };
@@ -0,0 +1,70 @@
1
+ export declare const siteHeader: import("@behivetech/blocks.core").Block<"BHT__SiteHeader", {
2
+ readonly backgroundColor: import("@behivetech/blocks.core").Token<"color">;
3
+ readonly color: import("@behivetech/blocks.core").Token<"color">;
4
+ readonly borderBottom: readonly [1, "solid", import("@behivetech/blocks.core").Token<"color">];
5
+ readonly children: {
6
+ readonly bar: {
7
+ readonly display: "flex";
8
+ readonly alignItems: "center";
9
+ readonly justifyContent: "space-between";
10
+ readonly gap: import("@behivetech/blocks.core").Token<"length">;
11
+ readonly minHeight: "4rem";
12
+ readonly padding: readonly [import("@behivetech/blocks.core").Token<"length">, import("@behivetech/blocks.core").Token<"length">];
13
+ readonly web: {
14
+ readonly "@container site-header lg": {
15
+ readonly paddingInline: import("@behivetech/blocks.core").Token<"length">;
16
+ };
17
+ };
18
+ };
19
+ readonly brand: {
20
+ readonly display: "flex";
21
+ readonly alignItems: "center";
22
+ readonly minWidth: 0;
23
+ };
24
+ readonly end: {
25
+ readonly display: "flex";
26
+ readonly alignItems: "center";
27
+ readonly gap: import("@behivetech/blocks.core").Token<"length">;
28
+ readonly web: {
29
+ readonly "@container site-header lg": {
30
+ readonly gap: import("@behivetech/blocks.core").Token<"length">;
31
+ };
32
+ };
33
+ };
34
+ readonly nav: {
35
+ readonly display: "none";
36
+ readonly native: {
37
+ readonly display: "flex";
38
+ readonly alignItems: "center";
39
+ readonly gap: import("@behivetech/blocks.core").Token<"length">;
40
+ };
41
+ readonly web: {
42
+ readonly "@container site-header lg": {
43
+ readonly display: "flex";
44
+ readonly alignItems: "center";
45
+ readonly gap: import("@behivetech/blocks.core").Token<"length">;
46
+ };
47
+ };
48
+ };
49
+ readonly actions: {
50
+ readonly display: "flex";
51
+ readonly alignItems: "center";
52
+ };
53
+ readonly menu: {
54
+ readonly display: "flex";
55
+ readonly web: {
56
+ readonly "@container site-header lg": {
57
+ readonly display: "none";
58
+ };
59
+ };
60
+ };
61
+ readonly drawerNav: {
62
+ readonly display: "flex";
63
+ readonly flexDirection: "column";
64
+ readonly gap: import("@behivetech/blocks.core").Token<"length">;
65
+ };
66
+ };
67
+ readonly web: {
68
+ readonly container: "site-header/inline-size";
69
+ };
70
+ }>;
@@ -0,0 +1,2 @@
1
+ import type { siteHeader as __bht0_source } from "./site-header.block";
2
+ export declare const siteHeader: typeof __bht0_source;
@@ -0,0 +1,33 @@
1
+ import { type StylesFor } from "@behivetech/blocks.core/native";
2
+ import { type ReactNode } from "react";
3
+ import { type StyleProp, type ViewProps, type ViewStyle } from "react-native";
4
+ import { siteHeader } from "./site-header.block.native";
5
+ import type { SiteHeaderLink } from "./site-header-types";
6
+ export type { SiteHeaderLink, SiteHeaderLinkProps } from "./site-header-types";
7
+ export interface SiteHeaderProps extends Omit<ViewProps, "style" | "children"> {
8
+ /** Additional styles, appended after the block's own */
9
+ style?: StyleProp<ViewStyle>;
10
+ /** Brand slot at the start of the bar; rendered as given (a string is drawn in a `Text`), so pass your own pressable brand */
11
+ brand: ReactNode;
12
+ /** Navigation links: inline while the window is at least 1024 dp wide (`lg`), in a `Drawer` when narrower */
13
+ links: SiteHeaderLink[];
14
+ /** Optional actions that stay in the bar at every width, e.g. a booking button */
15
+ actions?: ReactNode;
16
+ /** Called when a link is pressed. A native app has no router, so navigate to the link's `href` here; the `Drawer` closes first */
17
+ onLinkPress?: (link: SiteHeaderLink) => void;
18
+ /** Accessible name of the menu button, the navigation landmarks and the Drawer title, already translated */
19
+ menuLabel: string;
20
+ /** An override block made with `defineBlock`, typed to this component's children and variants; it wins over the block's own styles. */
21
+ styles?: StylesFor<typeof siteHeader>;
22
+ }
23
+ /**
24
+ * The React Native renderer of SiteHeader: the same block as the web one. While the window is at least 1024
25
+ * dp wide the links sit inline; narrower, a menu button opens them in a right-hand `Drawer`. The web switches
26
+ * on the header's own width (a container query), which native has no counterpart of, so this follows the
27
+ * window. A link is a `NavItem` with no `href`: pressing it calls `onLinkPress` (and closes the `Drawer`), and
28
+ * the link marked `current` is announced as selected. There is no `linkComponent`.
29
+ *
30
+ * Safe area: the header is the first thing on the screen, so under a transparent status bar pass the top inset
31
+ * of your safe-area library as padding in `style`; the package depends on none.
32
+ */
33
+ export declare const SiteHeader: ({ brand, links, actions, onLinkPress, menuLabel, style, styles, ...rest }: SiteHeaderProps) => import("react").JSX.Element;
package/docs.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://github.com/behivetech/bht-component-registry/docs.schema.json",
3
3
  "version": 2,
4
- "generatedAt": "2026-11-17T07:20:13.899Z",
4
+ "generatedAt": "2026-11-28T17:51:54.017Z",
5
5
  "docs": [
6
6
  {
7
7
  "displayName": "SiteHeader",
@@ -49,6 +49,13 @@
49
49
  "required": false,
50
50
  "defaultValue": "a",
51
51
  "description": "Component that renders each link, so a router link such as Next's `Link`\ncan be injected. Receives `href`, `children` and the item's props. Defaults to `a`."
52
+ },
53
+ {
54
+ "name": "styles",
55
+ "type": "StylesFor<Block<\"BHT__SiteHeader\", { readonly backgroundColor: Token<\"color\">; readonly color: Token<\"color\">; readonly borderBottom: readonly [1, \"solid\", Token<\"color\">]; readonly children: { ...; }; readonly web: { ...; }; }>>",
56
+ "required": false,
57
+ "defaultValue": null,
58
+ "description": "An override block made with `defineBlock`, typed to this component's children and variants; it wins over the block's own styles."
52
59
  }
53
60
  ]
54
61
  }
package/index.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { SiteHeader } from "./site-header.js";
1
+ export { SiteHeader } from "./site-header";
2
2
  export type {
3
3
  SiteHeaderLink,
4
4
  SiteHeaderLinkProps,
5
5
  SiteHeaderProps,
6
- } from "./site-header.js";
6
+ } from "./site-header";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@behivetech/organisms.site-header",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "license": "MIT",
5
5
  "description": "A site header with a brand slot, navigation links and optional actions; once the header itself is at least `64rem` wide the links sit inline, and narrower a menu button opens them in a right-hand Drawer.",
6
6
  "type": "module",
@@ -10,49 +10,56 @@
10
10
  ],
11
11
  "exports": {
12
12
  ".": {
13
+ "react-native": {
14
+ "types": "./dist/native/index.d.ts",
15
+ "default": "./dist/index.native.js"
16
+ },
13
17
  "types": "./dist/index.d.ts",
14
18
  "import": "./dist/index.js",
15
19
  "require": "./dist/index.cjs"
16
20
  },
17
21
  "./styles.css": "./dist/index.css"
18
22
  },
23
+ "react-native": "./dist/index.native.js",
19
24
  "files": [
20
25
  "dist",
21
26
  "README.md",
22
27
  "index.ts",
23
28
  "site-header.tsx",
24
- "site-header.module.scss",
29
+ "site-header-types.ts",
30
+ "site-header.native.tsx",
31
+ "site-header.block.ts",
32
+ "site-header.block.css",
33
+ "site-header.block.native.ts",
25
34
  "*.example.tsx",
26
35
  "docs.json"
27
36
  ],
28
37
  "registry": {
29
38
  "status": "draft",
30
- "tags": [],
31
- "design": [
32
- {
33
- "label": "Figma",
34
- "url": "https://www.figma.com/design/thpMGdZrgnoJtKUlGvkt51/the-behive.com?node-id=2046-90"
35
- }
36
- ]
39
+ "tags": []
37
40
  },
38
41
  "dependencies": {
39
- "@behivetech/atoms.button": "1.0.0",
40
- "@behivetech/atoms.drawer": "1.0.0",
41
- "@behivetech/icons.base": "1.0.0",
42
- "@behivetech/atoms.nav-item": "1.0.0",
43
- "@behivetech/cms.base-styles": "1.0.0",
44
- "@behivetech/get-class-name": "1.0.0",
45
- "@behivetech/icons.menu": "1.0.0"
42
+ "@behivetech/atoms.button": "1.1.1",
43
+ "@behivetech/atoms.drawer": "1.1.1",
44
+ "@behivetech/atoms.nav-item": "1.1.1",
45
+ "@behivetech/blocks.core": "0.1.1",
46
+ "@behivetech/icons.base": "1.1.1",
47
+ "@behivetech/icons.menu": "1.1.1"
46
48
  },
47
49
  "peerDependencies": {
48
50
  "react": "^19.2.7",
49
- "react-dom": "^19.2.7"
51
+ "react-dom": "^19.2.7",
52
+ "react-native": "*"
50
53
  },
51
54
  "devDependencies": {
52
- "@bht-component-registry/env": "0.2.0",
53
- "@types/react": "19.2.17",
54
- "@types/react-dom": "19.2.3",
55
+ "@behivetech/blocks.builder": "0.1.1",
56
+ "@behivetech/blocks.native-test": "0.0.2",
57
+ "@bht-component-registry/env": "0.3.0",
58
+ "@types/react": "19.3.3",
59
+ "@types/react-dom": "19.3.0",
55
60
  "eslint": "^9.39.5",
61
+ "react": "19.3.1",
62
+ "react-dom": "19.3.1",
56
63
  "tsup": "^8.5.1",
57
64
  "typescript": "^6.0.3",
58
65
  "vitest": "^4.1.10"
@@ -60,18 +67,24 @@
60
67
  "repository": {
61
68
  "type": "git",
62
69
  "url": "https://github.com/behivetech/bht-galaxy.git",
63
- "directory": "registry/behivetech/organisms/site-header"
70
+ "directory": "packages/organisms/site-header"
64
71
  },
65
72
  "homepage": "https://platform.behivetech.com/behivetech/organisms/site-header",
66
73
  "publishConfig": {
67
74
  "registry": "https://registry.npmjs.org",
68
75
  "access": "public"
69
76
  },
77
+ "blocks": {},
78
+ "peerDependenciesMeta": {
79
+ "react-native": {
80
+ "optional": true
81
+ }
82
+ },
70
83
  "scripts": {
71
- "build": "tsup && bht-registry-docgen",
84
+ "build": "block check && tsup && bht-registry-docgen",
72
85
  "dev": "tsup --watch",
73
86
  "lint": "eslint . --max-warnings 0",
74
- "check-types": "tsc --noEmit",
87
+ "check-types": "tsc --noEmit && tsc --noEmit -p tsconfig.native.json",
75
88
  "test": "vitest run"
76
89
  }
77
90
  }
@@ -0,0 +1,16 @@
1
+ import { type AnchorHTMLAttributes } from "react";
2
+
3
+ /** One navigation link of the header. */
4
+ export interface SiteHeaderLink {
5
+ /** Destination of the link */
6
+ href: string;
7
+ /** Visible text of the link, already translated */
8
+ label: string;
9
+ /** Marks the link for the current page: renders `aria-current="page"` */
10
+ current?: boolean;
11
+ }
12
+
13
+ /** Props the header passes to `linkComponent` for every link. */
14
+ export type SiteHeaderLinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
15
+ href: string;
16
+ };
@@ -0,0 +1,76 @@
1
+ /* GENERATED from site-header.block.ts by @behivetech/blocks.builder. Do not edit by hand: run `pnpm block:build`. */
2
+
3
+ @layer bht {
4
+ .BHT__SiteHeader {
5
+ background-color: var(--md-sys-color-surface, #f9f9f9);
6
+ color: var(--md-sys-color-on-surface, #1b1b1b);
7
+ border-bottom: 1px solid var(--md-sys-color-outline-variant, #c6c6c6);
8
+ container: site-header/inline-size;
9
+ }
10
+
11
+ .BHT__SiteHeader__bar {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: space-between;
15
+ gap: var(--spacing-4, 1rem);
16
+ min-height: 4rem;
17
+ padding: var(--spacing-2, 0.5rem) var(--spacing-4, 1rem);
18
+ }
19
+
20
+ @container site-header (min-width: 64rem) {
21
+ .BHT__SiteHeader__bar {
22
+ padding-inline: var(--spacing-8, 2rem);
23
+ }
24
+ }
25
+
26
+ .BHT__SiteHeader__brand {
27
+ display: flex;
28
+ align-items: center;
29
+ min-width: 0;
30
+ }
31
+
32
+ .BHT__SiteHeader__end {
33
+ display: flex;
34
+ align-items: center;
35
+ gap: var(--spacing-2, 0.5rem);
36
+ }
37
+
38
+ @container site-header (min-width: 64rem) {
39
+ .BHT__SiteHeader__end {
40
+ gap: var(--spacing-6, 1.5rem);
41
+ }
42
+ }
43
+
44
+ .BHT__SiteHeader__nav {
45
+ display: none;
46
+ }
47
+
48
+ @container site-header (min-width: 64rem) {
49
+ .BHT__SiteHeader__nav {
50
+ display: flex;
51
+ align-items: center;
52
+ gap: var(--spacing-1, 0.25rem);
53
+ }
54
+ }
55
+
56
+ .BHT__SiteHeader__actions {
57
+ display: flex;
58
+ align-items: center;
59
+ }
60
+
61
+ .BHT__SiteHeader__menu {
62
+ display: flex;
63
+ }
64
+
65
+ @container site-header (min-width: 64rem) {
66
+ .BHT__SiteHeader__menu {
67
+ display: none;
68
+ }
69
+ }
70
+
71
+ .BHT__SiteHeader__drawer-nav {
72
+ display: flex;
73
+ flex-direction: column;
74
+ gap: var(--spacing-2, 0.5rem);
75
+ }
76
+ }
@@ -0,0 +1,100 @@
1
+ // GENERATED from site-header.block.ts by @behivetech/blocks.builder. Do not edit by hand: run `pnpm block:build`.
2
+ import { createNativeBlock as __bhtCreateNativeBlock } from "@behivetech/blocks.core/native";
3
+ import { StyleSheet as __bhtStyleSheet } from "react-native";
4
+ import type { siteHeader as __bht0_source } from "./site-header.block";
5
+
6
+ // Entries that read no color token are one object in both schemes.
7
+ const __bht0_shared = __bhtStyleSheet.create({
8
+ __bar: {
9
+ display: "flex",
10
+ flexDirection: "row",
11
+ alignItems: "center",
12
+ justifyContent: "space-between",
13
+ rowGap: 16,
14
+ columnGap: 16,
15
+ minHeight: 64,
16
+ paddingTop: 8,
17
+ paddingRight: 16,
18
+ paddingBottom: 8,
19
+ paddingLeft: 16,
20
+ },
21
+ __brand: {
22
+ display: "flex",
23
+ flexDirection: "row",
24
+ alignItems: "center",
25
+ minWidth: 0,
26
+ },
27
+ __end: {
28
+ display: "flex",
29
+ flexDirection: "row",
30
+ alignItems: "center",
31
+ rowGap: 8,
32
+ columnGap: 8,
33
+ },
34
+ __nav: {
35
+ display: "flex",
36
+ flexDirection: "row",
37
+ alignItems: "center",
38
+ rowGap: 4,
39
+ columnGap: 4,
40
+ },
41
+ __actions: { display: "flex", flexDirection: "row", alignItems: "center" },
42
+ __menu: { display: "flex", flexDirection: "row" },
43
+ __drawerNav: {
44
+ display: "flex",
45
+ flexDirection: "column",
46
+ rowGap: 8,
47
+ columnGap: 8,
48
+ },
49
+ });
50
+ const __bht0_light = __bhtStyleSheet.create({
51
+ root: {
52
+ backgroundColor: "#f9f9f9",
53
+ color: "#1b1b1b",
54
+ borderBottomWidth: 1,
55
+ borderBottomColor: "#c6c6c6",
56
+ borderStyle: "solid",
57
+ },
58
+ "root~text": { color: "#1b1b1b" },
59
+ });
60
+ const __bht0_dark = __bhtStyleSheet.create({
61
+ root: {
62
+ backgroundColor: "#131313",
63
+ color: "#e2e2e2",
64
+ borderBottomWidth: 1,
65
+ borderBottomColor: "#474747",
66
+ borderStyle: "solid",
67
+ },
68
+ "root~text": { color: "#e2e2e2" },
69
+ });
70
+ export const siteHeader: typeof __bht0_source = __bhtCreateNativeBlock<
71
+ typeof __bht0_source
72
+ >("BHT__SiteHeader", {
73
+ structure: {
74
+ children: {
75
+ bar: {},
76
+ brand: {},
77
+ end: {},
78
+ nav: {},
79
+ actions: {},
80
+ menu: {},
81
+ drawerNav: {},
82
+ },
83
+ },
84
+ sheets: {
85
+ light: { ...__bht0_shared, ...__bht0_light },
86
+ dark: { ...__bht0_shared, ...__bht0_dark },
87
+ },
88
+ plan: {
89
+ root: [{ key: "root" }],
90
+ children: {
91
+ bar: [{ key: "root~text" }, { key: "__bar" }],
92
+ brand: [{ key: "root~text" }, { key: "__brand" }],
93
+ end: [{ key: "root~text" }, { key: "__end" }],
94
+ nav: [{ key: "root~text" }, { key: "__nav" }],
95
+ actions: [{ key: "root~text" }, { key: "__actions" }],
96
+ menu: [{ key: "root~text" }, { key: "__menu" }],
97
+ drawerNav: [{ key: "root~text" }, { key: "__drawerNav" }],
98
+ },
99
+ },
100
+ });