@henriquepetrelli/hp-design-system 1.1.15 → 1.1.17
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.
|
@@ -1430,9 +1430,9 @@
|
|
|
1430
1430
|
const isDarkMode = vue.ref(localStorage.getItem('theme') === 'dark');
|
|
1431
1431
|
|
|
1432
1432
|
const applyTheme = (isDark) => {
|
|
1433
|
-
|
|
1434
|
-
document.documentElement.
|
|
1435
|
-
localStorage.setItem('theme',
|
|
1433
|
+
const theme = isDark ? 'dark' : 'light';
|
|
1434
|
+
document.documentElement.setAttribute('data-theme', theme);
|
|
1435
|
+
localStorage.setItem('theme', theme);
|
|
1436
1436
|
};
|
|
1437
1437
|
|
|
1438
1438
|
const toggleTheme = () => {
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
}
|
|
1512
1512
|
|
|
1513
1513
|
};
|
|
1514
|
-
const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-
|
|
1514
|
+
const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-8b3eb905"]]);
|
|
1515
1515
|
|
|
1516
1516
|
const _hoisted_1$3 = { class: "input__fieldset" };
|
|
1517
1517
|
const _hoisted_2$3 = {
|