@tempots/beatui 0.47.0 → 0.49.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.
@@ -106,6 +106,8 @@ export interface SignUpFormLabels {
106
106
  hasAccountLink?: Value<string>;
107
107
  }
108
108
  export interface SignUpFormOptions {
109
+ initialName?: string;
110
+ initialEmail?: string;
109
111
  passwordRules?: PasswordRules;
110
112
  labels?: SignUpFormLabels;
111
113
  onSignUp?: (data: SignUpData) => Promise<string | null>;
@@ -1,5 +1,6 @@
1
1
  export * from './badge';
2
2
  export * from './icon';
3
+ export * from './page-drop-zone';
3
4
  export * from './table';
4
5
  export * from './tag';
5
6
  export * from './unstyled-drop-zone';
@@ -0,0 +1,30 @@
1
+ import { TNode, Value, Signal } from '@tempots/dom';
2
+ export type PageDropZoneOptions = {
3
+ onChange: (files: File[]) => void;
4
+ accept?: Value<string>;
5
+ content?: (options: {
6
+ isDragging: Signal<boolean>;
7
+ files: Signal<File[]>;
8
+ }) => TNode;
9
+ disabled?: Value<boolean>;
10
+ };
11
+ /**
12
+ * Detects filesystem drag-and-drop events at the page/document level.
13
+ *
14
+ * This component listens for drag events at the document level and provides
15
+ * reactive state about drag operations. It can optionally render an overlay
16
+ * when files are being dragged over the page.
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * PageDropZone({
21
+ * onChange: (files) => console.log('Files dropped:', files),
22
+ * content: ({ isDragging }) =>
23
+ * html.div(
24
+ * attr.class('fixed inset-0 bg-black/50 flex items-center justify-center'),
25
+ * html.div('Drop files here')
26
+ * )
27
+ * })
28
+ * ```
29
+ */
30
+ export declare function PageDropZone({ onChange, accept, content, disabled, }: PageDropZoneOptions): import("@tempots/dom").Renderable<import("@tempots/dom").DOMContext>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/beatui",
3
- "version": "0.47.0",
3
+ "version": "0.49.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.js",