@florid-kit/components 0.9.24 → 0.9.25

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.
@@ -0,0 +1,43 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ /**
4
+ * <o-popin>
5
+ * A11y-friendly popin (modal). Adjustments:
6
+ * - Default is FULLSCREEN
7
+ * - Header expects inline SVG via a named <slot name="logo"> (no URL prop)
8
+ * - Close button, ESC / backdrop close, focus trapping entry point
9
+ * - Background image via CSS var or attribute `background-url` (optional)
10
+ * - Variant switch: set `variant="dialog"` for centered dialog with max-width
11
+ *
12
+ * Example:
13
+ * <o-popin open title="Welcome" background-url="https://...">
14
+ * <svg slot="logo" width="120" height="24" viewBox="0 0 120 24" aria-hidden="true">...</svg>
15
+ * <p>Your content here</p>
16
+ * </o-popin>
17
+ */
18
+ export declare class OPopin extends LitElement {
19
+ /** Whether the popin is open */
20
+ open: boolean;
21
+ /** Background image URL (optional) */
22
+ backgroundUrl: string;
23
+ /** Close when pressing Escape */
24
+ closeOnEsc: boolean;
25
+ /** Close when clicking on the backdrop */
26
+ closeOnBackdrop: boolean;
27
+ /** Prevent page scroll while open */
28
+ lockScroll: boolean;
29
+ /** Layout variant: "fullscreen" (default) or "dialog" */
30
+ variant: 'fullscreen' | 'dialog';
31
+ /** Optional max-width of the dialog content when variant="dialog" (e.g., "640px"). */
32
+ maxWidth: string;
33
+ private _labelId;
34
+ connectedCallback(): void;
35
+ disconnectedCallback(): void;
36
+ protected updated(changed: Map<string, unknown>): void;
37
+ private _onKeydown;
38
+ private _onBackdropClick;
39
+ private _requestClose;
40
+ private _renderCloseButton;
41
+ static styles: import('lit').CSSResult;
42
+ render(): import('lit').TemplateResult<1>;
43
+ }