domma-js 0.57.0 → 0.58.0

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,9 +1,9 @@
1
1
  /*!
2
- * Domma Elements CSS v0.57.0
2
+ * Domma Elements CSS v0.58.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-24T20:04:51.175Z
6
- * Commit: 8ca8224
5
+ * Built: 2026-10-24T22:17:45.003Z
6
+ * Commit: 6edd082
7
7
  */
8
8
 
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Grid CSS v0.57.0
2
+ * Domma Grid CSS v0.58.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-24T20:04:51.170Z
6
- * Commit: 8ca8224
5
+ * Built: 2026-10-24T22:17:44.999Z
6
+ * Commit: 6edd082
7
7
  */
8
8
 
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Syntax Highlighting CSS v0.57.0
2
+ * Domma Syntax Highlighting CSS v0.58.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-24T20:04:51.179Z
6
- * Commit: 8ca8224
5
+ * Built: 2026-10-24T22:17:45.006Z
6
+ * Commit: 6edd082
7
7
  */
8
8
 
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Themes v0.57.0
2
+ * Domma Themes v0.58.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-24T20:04:51.154Z
6
- * Commit: 8ca8224
5
+ * Built: 2026-10-24T22:17:44.986Z
6
+ * Commit: 6edd082
7
7
  */
8
8
 
9
9
  /**
@@ -61,7 +61,7 @@ $.ready(() => {
61
61
  // Event bindings
62
62
  '#theme-toggle': {
63
63
  events: {
64
- click: () => Domma.theme.toggle()
64
+ click: () => Domma.theme.set(`${Domma.theme.getBase()}-${Domma.theme.isDark() ? 'light' : 'dark'}`)
65
65
  }
66
66
  }
67
67
  });
@@ -537,7 +537,7 @@ if (Domma.theme.isDark()) {
537
537
  }
538
538
 
539
539
  // Toggle between light/dark variants
540
- Domma.theme.toggle(); // ocean-dark → ocean-light
540
+ Domma.theme.set(`${Domma.theme.getBase()}-${Domma.theme.isDark() ? 'light' : 'dark'}`); // ocean-dark → ocean-light
541
541
 
542
542
  // Listen to theme changes
543
543
  $(document.body).on('themechange', (e) => {
@@ -474,10 +474,12 @@ export const http: Http;
474
474
  export interface Theme {
475
475
  init(options?: { theme?: string; autoDetect?: boolean; persist?: boolean }): void;
476
476
  set(themeName: string): void;
477
- setVariant(variant: 'light' | 'dark'): void;
478
- toggle(): void;
479
477
  get(): string;
480
- getVariant(): string;
478
+ getBase(): string;
479
+ getMode(): string;
480
+ isDark(): boolean;
481
+ listThemes(): string[];
482
+ listBases(): string[];
481
483
  }
482
484
 
483
485
  export const theme: Theme;
@@ -160,7 +160,7 @@ $.ready(() => {
160
160
  // Event bindings
161
161
  '#theme-toggle': {
162
162
  events: {
163
- click: () => Domma.theme.toggle()
163
+ click: () => Domma.theme.set(`${Domma.theme.getBase()}-${Domma.theme.isDark() ? 'light' : 'dark'}`)
164
164
  }
165
165
  }
166
166
  });