@behivetech/organisms.site-header 0.1.0 → 0.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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/docs.json +0 -57
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@behivetech/organisms.site-header",
3
- "version": "0.1.0",
3
+ "version": "0.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",
@@ -44,8 +44,8 @@
44
44
  "typescript": "^6.0.3",
45
45
  "vitest": "^4.1.10",
46
46
  "@behivetech/cms.base-styles": "0.3.3",
47
- "@bht-component-registry/env": "0.1.0",
48
- "@bht-component-registry/class-names": "0.0.6"
47
+ "@bht-component-registry/class-names": "0.0.6",
48
+ "@bht-component-registry/env": "0.1.0"
49
49
  },
50
50
  "repository": {
51
51
  "type": "git",
@@ -59,9 +59,9 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@behivetech/atoms.button": "0.4.4",
62
+ "@behivetech/atoms.drawer": "0.4.5",
62
63
  "@behivetech/atoms.icon": "0.3.5",
63
- "@behivetech/atoms.nav-item": "0.5.0",
64
- "@behivetech/atoms.drawer": "0.4.5"
64
+ "@behivetech/atoms.nav-item": "0.5.0"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "tsup && bht-registry-docgen",
package/docs.json DELETED
@@ -1,57 +0,0 @@
1
- {
2
- "$schema": "https://github.com/behivetech/bht-component-registry/docs.schema.json",
3
- "version": 2,
4
- "generatedAt": "2026-10-30T00:03:43.457Z",
5
- "docs": [
6
- {
7
- "displayName": "SiteHeader",
8
- "description": "Site header with a brand slot, navigation links and optional actions. While\nthe header is at least `64rem` wide the links sit inline; narrower, a menu\nbutton opens them in a right-hand `Drawer`, which keeps the links in reach of\none thumb on a phone. The switch follows the header's own width (a container\nquery), not the viewport.",
9
- "extendsNative": true,
10
- "props": [
11
- {
12
- "name": "brand",
13
- "type": "ReactNode",
14
- "required": true,
15
- "defaultValue": null,
16
- "description": "Brand slot at the start of the bar; rendered as given, so pass your own home link"
17
- },
18
- {
19
- "name": "links",
20
- "type": "SiteHeaderLink[]",
21
- "required": true,
22
- "defaultValue": null,
23
- "description": "Navigation links: inline once the header itself is at least `64rem` wide (a container query), in a Drawer when narrower"
24
- },
25
- {
26
- "name": "menuLabel",
27
- "type": "string",
28
- "required": true,
29
- "defaultValue": null,
30
- "description": "Accessible name of the menu button, the navigation landmarks and the Drawer title, already translated"
31
- },
32
- {
33
- "name": "actions",
34
- "type": "ReactNode",
35
- "required": false,
36
- "defaultValue": null,
37
- "description": "Optional actions that stay in the bar at every breakpoint, e.g. a booking button"
38
- },
39
- {
40
- "name": "className",
41
- "type": "string",
42
- "required": false,
43
- "defaultValue": null,
44
- "description": "Additional class names to merge with the component root element"
45
- },
46
- {
47
- "name": "linkComponent",
48
- "type": "ElementType<SiteHeaderLinkProps>",
49
- "required": false,
50
- "defaultValue": "a",
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
- }
55
- ],
56
- "functions": []
57
- }