@r2digisolutions/components 0.7.0 → 0.7.1

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.
@@ -28,7 +28,14 @@ function getStoredPalette() {
28
28
  if (typeof localStorage === 'undefined')
29
29
  return DEFAULT_PALETTE;
30
30
  const stored = localStorage.getItem(PALETTE_KEY);
31
- return isPalette(stored) ? stored : DEFAULT_PALETTE;
31
+ if (isPalette(stored))
32
+ return stored;
33
+ if (typeof document !== 'undefined') {
34
+ const attr = document.documentElement.getAttribute('data-theme');
35
+ if (isPalette(attr))
36
+ return attr;
37
+ }
38
+ return DEFAULT_PALETTE;
32
39
  }
33
40
  function applyMode(theme) {
34
41
  if (typeof document === 'undefined')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/components",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "private": false,
5
5
  "description": "R2DigiSolutions Svelte 5 component library — Atomic Design, Tailwind 4, Light/Dark mode",
6
6
  "license": "MIT",
@@ -81,8 +81,8 @@
81
81
  "@tailwindcss/vite": "^4.3.3",
82
82
  "@types/node": "^26.2.0",
83
83
  "@vitest/browser-playwright": "^4.1.11",
84
- "bumpp": "~11.1.0",
85
- "eslint": "^10.8.1",
84
+ "bumpp": "~12.2.1",
85
+ "eslint": "^10.9.0",
86
86
  "eslint-config-prettier": "^10.1.8",
87
87
  "eslint-plugin-svelte": "^3.23.0",
88
88
  "globals": "^17.11.0",
@@ -93,7 +93,7 @@
93
93
  "prettier-plugin-tailwindcss": "^0.8.1",
94
94
  "publint": "^0.3.24",
95
95
  "storybook": "^10.5.10",
96
- "svelte": "^5.56.9",
96
+ "svelte": "^5.56.10",
97
97
  "svelte-check": "^4.7.6",
98
98
  "tailwindcss": "^4.3.3",
99
99
  "typescript": "6.0.3",
@@ -113,4 +113,4 @@
113
113
  "dependencies": {
114
114
  "@xyflow/svelte": "^1.6.3"
115
115
  }
116
- }
116
+ }