@cal.macconnachie/web-components 1.2.2 → 1.2.5
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/index.d.ts +10 -2
- package/dist/index.js +494 -468
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -237,7 +237,7 @@ export declare class BaseDrawer extends BaseElement {
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
declare class BaseElement extends LitElement {
|
|
240
|
-
theme:
|
|
240
|
+
theme: string;
|
|
241
241
|
storageKey: string;
|
|
242
242
|
private boundThemeChangeHandler;
|
|
243
243
|
connectedCallback(): void;
|
|
@@ -464,11 +464,19 @@ declare type TabVariant = 'horizontal' | 'sidebar';
|
|
|
464
464
|
|
|
465
465
|
declare type TextareaSize = 'sm' | 'md' | 'lg';
|
|
466
466
|
|
|
467
|
+
export declare interface ThemeInput {
|
|
468
|
+
theme: string;
|
|
469
|
+
icon: string;
|
|
470
|
+
}
|
|
471
|
+
|
|
467
472
|
export declare class ThemeToggle extends BaseElement {
|
|
468
473
|
size: 'sm' | 'md' | 'lg';
|
|
469
474
|
variant: 'ghost' | 'outline' | 'solid';
|
|
470
|
-
|
|
475
|
+
themes: ThemeInput[];
|
|
476
|
+
private currentTheme;
|
|
471
477
|
connectedCallback(): void;
|
|
478
|
+
updated(changedProperties: Map<string, any>): void;
|
|
479
|
+
private syncCurrentTheme;
|
|
472
480
|
private toggleTheme;
|
|
473
481
|
private getSizeClass;
|
|
474
482
|
private getVariantClass;
|