@saasbase-io/core-elements 1.1.18 → 1.1.20

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,3 @@
1
+ export * from './sb-logo';
2
+ export * from './sb-otp';
3
+ export * from './sb-title';
@@ -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
+ }
@@ -0,0 +1,8 @@
1
+ import { LitElement } from '../../../../node_modules/lit';
2
+ export declare class SbTitle extends LitElement {
3
+ id: string;
4
+ content: string;
5
+ component: any;
6
+ protected createRenderRoot(): this;
7
+ render(): import('../../../../node_modules/lit-html').TemplateResult<1>;
8
+ }
@@ -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,23 +1,31 @@
1
1
  import { LitElement } from '../../../node_modules/lit';
2
+ import { OTP, Style } from '../../types';
2
3
  import { SaasBaseLayout } from '../wrappers';
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;
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
+ };
13
13
  component: SaasBaseLayout;
14
+ /**
15
+ * Overrides the default behaviour to render into the light DOM.
16
+ */
14
17
  protected createRenderRoot(): this;
15
18
  private patchComponentRequestUpdate;
16
19
  connectedCallback(): void;
17
- private buildOTPContentHTML;
18
- private handleComplete;
19
- private handleFocus;
20
- private handleBlur;
21
- private handleResend;
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;
22
30
  render(): import('../../../node_modules/lit-html').TemplateResult | null;
23
31
  }