@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/README.md +520 -90
- package/dist/client.d.ts +12 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +837 -165
- package/dist/collect.d.ts +1 -47
- package/dist/collect.d.ts.map +1 -1
- package/dist/collect.js +0 -64
- package/dist/createBeam.d.ts +5 -19
- package/dist/createBeam.d.ts.map +1 -1
- package/dist/createBeam.js +74 -54
- package/dist/index.d.ts +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/types.d.ts +48 -17
- package/dist/types.d.ts.map +1 -1
- package/dist/vite.d.ts +0 -12
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +4 -10
- package/package.json +1 -1
- package/src/beam.css +2 -0
- package/dist/DrawerFrame.d.ts +0 -16
- package/dist/DrawerFrame.d.ts.map +0 -1
- package/dist/DrawerFrame.js +0 -12
- package/dist/ModalFrame.d.ts +0 -12
- package/dist/ModalFrame.d.ts.map +0 -1
- package/dist/ModalFrame.js +0 -8
package/package.json
CHANGED
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 */
|
package/dist/DrawerFrame.d.ts
DELETED
|
@@ -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"}
|
package/dist/DrawerFrame.js
DELETED
|
@@ -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
|
-
}
|
package/dist/ModalFrame.d.ts
DELETED
|
@@ -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
|
package/dist/ModalFrame.d.ts.map
DELETED
|
@@ -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"}
|
package/dist/ModalFrame.js
DELETED
|
@@ -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
|
-
}
|