@saasbase-io/core-elements 1.1.17 → 1.1.18

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.
@@ -1,4 +1,4 @@
1
1
  import { TemplateResult } from '../../../node_modules/lit';
2
2
  import { UIElement } from '../../types';
3
3
  import { SaasBaseLayout } from '..';
4
- export declare function renderElement(component: SaasBaseLayout, element: UIElement, theme?: "light" | "dark"): TemplateResult<1>;
4
+ export declare function renderElement(component: SaasBaseLayout, element: UIElement | string, theme?: "light" | "dark"): TemplateResult<1>;
@@ -1,31 +1,23 @@
1
1
  import { LitElement } from '../../../node_modules/lit';
2
- import { OTP, Style } from '../../types';
3
2
  import { SaasBaseLayout } from '../wrappers';
4
- export declare class SbOtpRenderer extends LitElement {
5
- element: {
6
- element_type: "otp";
7
- id: string;
8
- properties: OTP;
9
- style: Style;
10
- class: string;
11
- data_key?: string;
12
- };
3
+ export declare class SbOtp extends LitElement {
4
+ variant: string;
5
+ length: number;
6
+ timeout: number;
7
+ dataKey: string;
8
+ event: string;
9
+ resendText: string;
10
+ resendButtonText: string;
11
+ resendEvent: string;
12
+ id: string;
13
13
  component: SaasBaseLayout;
14
- /**
15
- * Overrides the default behaviour to render into the light DOM.
16
- */
17
14
  protected createRenderRoot(): this;
18
15
  private patchComponentRequestUpdate;
19
16
  connectedCallback(): void;
20
- private _onComplete;
21
- private _onFocus;
22
- private _onBlur;
23
- /**
24
- * Builds the OTP group/separator/slot structure as a plain HTML string so it
25
- * can be embedded via unsafeStatic. This is required because rtg-input-otp
26
- * reads this.childNodes in its constructor; Lit's dynamic ChildPart would only
27
- * deliver nodes after construction, causing them to land outside the container.
28
- */
29
- private _buildOTPContentHTML;
17
+ private buildOTPContentHTML;
18
+ private handleComplete;
19
+ private handleFocus;
20
+ private handleBlur;
21
+ private handleResend;
30
22
  render(): import('../../../node_modules/lit-html').TemplateResult | null;
31
23
  }
@@ -1,5 +1,5 @@
1
- import { LitElement } from '../../../../node_modules/lit';
2
- import { RenderSpec, UIElement, ICustomizations, Button, Style, Html, OTP } from '../../../types';
1
+ import { LitElement, PropertyValues } from '../../../../node_modules/lit';
2
+ import { RenderSpec, UIElement, ICustomizations, Button, Style, Html } from '../../../types';
3
3
  export declare class SaasBaseLayout extends LitElement {
4
4
  renderSpec: RenderSpec | null;
5
5
  customizations: ICustomizations | null;
@@ -14,7 +14,9 @@ export declare class SaasBaseLayout extends LitElement {
14
14
  private isAnimating;
15
15
  protected createRenderRoot(): HTMLElement | DocumentFragment;
16
16
  private getTheme;
17
+ protected firstUpdated(_changedProperties: PropertyValues): void;
17
18
  updated(changedProperties: Map<string, unknown>): void;
19
+ private hydrateSbComponents;
18
20
  /**
19
21
  * Identify which button has submit=true
20
22
  */
@@ -46,9 +48,6 @@ export declare class SaasBaseLayout extends LitElement {
46
48
  } | {
47
49
  element_type: "otp";
48
50
  id: string;
49
- properties: OTP;
50
- style: Style;
51
- class: string;
52
51
  }): Promise<void>;
53
52
  findElementByKey(key: string): UIElement | null;
54
53
  isFieldValid(key: string): boolean;