@meddleware/ui 0.1.13 → 0.1.14

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 CHANGED
@@ -17,6 +17,7 @@ export { suiExplorerUrl } from './explorer.js';
17
17
  export type { SuiNetwork, SuiExplorerKind } from './explorer.js';
18
18
  export { useColorMode } from './composables/useColorMode.js';
19
19
  export type { ColorMode } from './composables/useColorMode.js';
20
+ export { useSeason } from './composables/useSeason.js';
20
21
  export type { PanelVariant, PanelColors } from './internal/panel.js';
21
22
  export { isStatusLevel, parseSnapshot } from './status.js';
22
23
  export { safeHref } from './safe-href.js';
package/dist/ui.js CHANGED
@@ -480,7 +480,7 @@ function Q(e) {
480
480
  return e === "dark" || e === "system" && Ie();
481
481
  }
482
482
  function $(e) {
483
- typeof document > "u" || document.documentElement.setAttribute("data-theme", Q(e) ? "dark" : "light");
483
+ typeof document < "u" && document.documentElement.setAttribute("data-theme", Q(e) ? "dark" : "light");
484
484
  }
485
485
  function Le(e = "system") {
486
486
  if (!Z) {
@@ -512,4 +512,11 @@ function Le(e = "system") {
512
512
  };
513
513
  }
514
514
  //#endregion
515
- export { O as AppFooter, le as AppHeader, x as AppSidebar, xe as AppTabNav, N as ColorModeControl, De as CopyableAddress, ke as ExplorerLink, ve as SidebarItem, Pe as StatusWidget, F as UiButton, V as UiCard, me as UiNotice, fe as UiSelect, U as isStatusLevel, K as parseSnapshot, S as safeHref, Fe as suiExplorerUrl, Le as useColorMode };
515
+ //#region src/composables/useSeason.js
516
+ function Re() {
517
+ if (typeof document > "u") return;
518
+ let e = (/* @__PURE__ */ new Date()).getMonth(), t = e >= 2 && e <= 4 ? "spring" : e >= 5 && e <= 7 ? "summer" : e >= 8 && e <= 10 ? "autumn" : "winter";
519
+ document.documentElement.dataset.season = t;
520
+ }
521
+ //#endregion
522
+ export { O as AppFooter, le as AppHeader, x as AppSidebar, xe as AppTabNav, N as ColorModeControl, De as CopyableAddress, ke as ExplorerLink, ve as SidebarItem, Pe as StatusWidget, F as UiButton, V as UiCard, me as UiNotice, fe as UiSelect, U as isStatusLevel, K as parseSnapshot, S as safeHref, Fe as suiExplorerUrl, Le as useColorMode, Re as useSeason };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meddleware/ui",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Shared Vue 3 component library for @meddleware UIs \u2014 layout shell (header/sidebar/footer), colour-mode control, and primitives. Built on @meddleware/design-tokens.",
5
5
  "homepage": "https://docs.meddleware.co.uk/",
6
6
  "license": "0BSD",