@saasbase-io/core-elements 1.1.17 → 1.1.19

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,2 @@
1
+ export * from './sb-logo';
2
+ export * from './sb-otp';
@@ -0,0 +1,14 @@
1
+ import { LitElement } from '../../../../node_modules/lit';
2
+ import { SaasBaseLayout } from '../..';
3
+ export declare class SbLogo extends LitElement {
4
+ id: string;
5
+ imageUrl: string;
6
+ component: SaasBaseLayout;
7
+ private theme;
8
+ private observer?;
9
+ connectedCallback(): void;
10
+ disconnectedCallback(): void;
11
+ private getTheme;
12
+ protected createRenderRoot(): this;
13
+ render(): import('../../../../node_modules/lit-html').TemplateResult<1> | null;
14
+ }
@@ -0,0 +1,23 @@
1
+ import { LitElement } from '../../../../node_modules/lit';
2
+ import { SaasBaseLayout } from '../..';
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
+ component: SaasBaseLayout;
14
+ protected createRenderRoot(): this;
15
+ private patchComponentRequestUpdate;
16
+ connectedCallback(): void;
17
+ private buildOTPContentHTML;
18
+ private handleComplete;
19
+ private handleFocus;
20
+ private handleBlur;
21
+ private handleResend;
22
+ render(): import('../../../../node_modules/lit-html').TemplateResult | null;
23
+ }
@@ -15,3 +15,4 @@ export * from './sb-logo-renderer';
15
15
  export * from './sb-input-renderer';
16
16
  export * from './sb-label-renderer';
17
17
  export * from './renderElement';
18
+ export * from './_updated';
@@ -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,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;