@behivetech/atoms.drawer 0.4.3 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +2 -14
  2. package/docs.json +1 -1
  3. package/package.json +6 -4
package/README.md CHANGED
@@ -6,6 +6,8 @@ for focus trapping, Escape-to-close, and outside-click-to-close. It has no
6
6
  opinion on what goes inside the panel — an optional `title` renders a header
7
7
  with a close button, otherwise just the `children` are shown.
8
8
 
9
+ Docs: https://bht-galaxy.vercel.app/behivetech/atoms/drawer
10
+
9
11
  `placement` controls which edge it docks to; `backdrop` controls whether it
10
12
  blocks the rest of the page or floats alongside content the user can keep
11
13
  interacting with, e.g. an always-visible properties panel. For a centered
@@ -27,17 +29,3 @@ import { Drawer } from '@behivetech/atoms.drawer';
27
29
  <div>Properties form</div>
28
30
  </Drawer>
29
31
  ```
30
-
31
- ## Props
32
-
33
- | Prop | Type | Default | Description |
34
- | -------------- | -------------------------------- | ------- | -------------------------------------------------------------------------------------------- |
35
- | `onClose` | `() => void` | — | Called when the drawer is dismissed (backdrop click, Escape, or the close button) — required |
36
- | `title` | `string` | — | Optional header title; omit to render no header and no close button |
37
- | `icon` | `ReactNode` | — | Optional icon rendered before the title; ignored if `title` is omitted |
38
- | `padding` | `none \| sm \| md \| lg` | `none` | Internal padding of the panel body — same values as `Card`'s `padding` prop |
39
- | `headingLevel` | `1 \| 2 \| 3 \| 4 \| 5 \| 6` | `3` | Which heading tag wraps `title` — same values as `Card`'s `headingLevel` prop |
40
- | `placement` | `top \| right \| bottom \| left` | — | Which edge the panel docks to — required |
41
- | `backdrop` | `boolean` | `true` | Whether a dimmed backdrop blocks the page and closes the drawer when clicked |
42
- | `children` | `ReactNode` | — | Panel content |
43
- | `className` | `string` | — | Additional class names |
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-10-23T16:59:21.788Z",
4
+ "generatedAt": "2026-10-23T19:01:22.472Z",
5
5
  "docs": [
6
6
  {
7
7
  "displayName": "Drawer",
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@behivetech/atoms.drawer",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "license": "MIT",
5
+ "description": "A `Card` docked to one edge of the viewport as a slide-in panel, built on [Radix `Dialog`](https://www.radix-ui.com/primitives/docs/components/dialog) for focus trapping, Escape-to-close, and outside-click-to-close. It has no opinion on what goes inside the panel — an optional `title` renders a header with a close button, otherwise just the `children` are shown.",
5
6
  "type": "module",
6
7
  "private": false,
7
8
  "exports": {
@@ -27,9 +28,9 @@
27
28
  },
28
29
  "dependencies": {
29
30
  "@radix-ui/react-dialog": "^1.1.23",
30
- "@behivetech/atoms.button": "0.4.3",
31
- "@behivetech/atoms.card": "0.4.3",
32
- "@behivetech/atoms.icon": "0.3.3"
31
+ "@behivetech/atoms.button": "0.4.4",
32
+ "@behivetech/atoms.card": "0.4.4",
33
+ "@behivetech/atoms.icon": "0.3.4"
33
34
  },
34
35
  "peerDependencies": {
35
36
  "react": "^19.2.7",
@@ -50,6 +51,7 @@
50
51
  "url": "https://github.com/behivetech/bht-galaxy.git",
51
52
  "directory": "registry/behivetech/atoms/drawer"
52
53
  },
54
+ "homepage": "https://bht-galaxy.vercel.app/behivetech/atoms/drawer",
53
55
  "publishConfig": {
54
56
  "registry": "https://registry.npmjs.org",
55
57
  "access": "public",