@benqoder/beam 0.1.3 → 0.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benqoder/beam",
3
- "version": "0.1.3",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",
package/src/beam.css CHANGED
@@ -127,6 +127,7 @@
127
127
  transform: scale(0.95);
128
128
  opacity: 0;
129
129
  transition: transform 200ms ease-out, opacity 200ms ease-out;
130
+ padding: 15px;
130
131
  }
131
132
 
132
133
  #modal-backdrop.open #modal-content {
@@ -175,6 +176,7 @@
175
176
  max-height: 100vh;
176
177
  overflow: auto;
177
178
  transition: transform 200ms ease-out;
179
+ padding: 15px;
178
180
  }
179
181
 
180
182
  /* Drawer positions */
@@ -1,16 +0,0 @@
1
- import type { Child } from 'hono/jsx';
2
- type Props = {
3
- title: string;
4
- children: Child;
5
- };
6
- /**
7
- * Reusable drawer wrapper component.
8
- * Provides consistent header with title and close button.
9
- *
10
- * Note: The position (left/right) and size (small/medium/large) are
11
- * controlled by the client via beam-position and beam-size attributes
12
- * on the trigger element.
13
- */
14
- export declare function DrawerFrame({ title, children }: Props): import("hono/jsx/jsx-dev-runtime").JSX.Element;
15
- export {};
16
- //# sourceMappingURL=DrawerFrame.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DrawerFrame.d.ts","sourceRoot":"","sources":["../src/DrawerFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAErC,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,KAAK,CAAA;CAChB,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,KAAK,kDAcrD"}
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "hono/jsx/jsx-runtime";
2
- /**
3
- * Reusable drawer wrapper component.
4
- * Provides consistent header with title and close button.
5
- *
6
- * Note: The position (left/right) and size (small/medium/large) are
7
- * controlled by the client via beam-position and beam-size attributes
8
- * on the trigger element.
9
- */
10
- export function DrawerFrame({ title, children }) {
11
- return (_jsxs(_Fragment, { children: [_jsxs("header", { class: "drawer-header", children: [_jsx("h2", { children: title }), _jsx("button", { type: "button", "beam-close": true, "aria-label": "Close", class: "drawer-close", children: "\u00D7" })] }), _jsx("div", { class: "drawer-body", children: children })] }));
12
- }
@@ -1,12 +0,0 @@
1
- import type { Child } from 'hono/jsx';
2
- type Props = {
3
- title: string;
4
- children: Child;
5
- };
6
- /**
7
- * Reusable modal wrapper component.
8
- * Provides consistent header with title and close button.
9
- */
10
- export declare function ModalFrame({ title, children }: Props): import("hono/jsx/jsx-dev-runtime").JSX.Element;
11
- export {};
12
- //# sourceMappingURL=ModalFrame.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ModalFrame.d.ts","sourceRoot":"","sources":["../src/ModalFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAErC,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,KAAK,CAAA;CAChB,CAAA;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,KAAK,kDAcpD"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "hono/jsx/jsx-runtime";
2
- /**
3
- * Reusable modal wrapper component.
4
- * Provides consistent header with title and close button.
5
- */
6
- export function ModalFrame({ title, children }) {
7
- return (_jsxs(_Fragment, { children: [_jsxs("header", { class: "modal-header", children: [_jsx("h2", { children: title }), _jsx("button", { type: "button", "beam-close": true, "aria-label": "Close", class: "modal-close", children: "\u00D7" })] }), _jsx("div", { class: "modal-body", children: children })] }));
8
- }