@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.
- package/dist/beatui.css +1 -1
- package/dist/beatui.tailwind.css +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +1879 -1838
- package/dist/types/components/auth/types.d.ts +2 -0
- package/dist/types/components/data/index.d.ts +1 -0
- package/dist/types/components/data/page-drop-zone.d.ts +30 -0
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -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>;
|