@henriquepetrelli/hp-design-system 1.1.14 → 1.1.15

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.
@@ -1427,7 +1427,7 @@
1427
1427
 
1428
1428
  const emit = __emit;
1429
1429
 
1430
- const isDarkMode = vue.ref(false);
1430
+ const isDarkMode = vue.ref(localStorage.getItem('theme') === 'dark');
1431
1431
 
1432
1432
  const applyTheme = (isDark) => {
1433
1433
  document.documentElement.classList.toggle('dark', isDark);
@@ -1446,13 +1446,6 @@
1446
1446
  };
1447
1447
 
1448
1448
  vue.onMounted(() => {
1449
- const savedTheme =
1450
- localStorage.getItem('theme') ||
1451
- (window.matchMedia('(prefers-color-scheme: dark)').matches
1452
- ? 'dark'
1453
- : 'light');
1454
-
1455
- isDarkMode.value = savedTheme === 'dark';
1456
1449
  applyTheme(isDarkMode.value);
1457
1450
  });
1458
1451
 
@@ -1518,7 +1511,7 @@
1518
1511
  }
1519
1512
 
1520
1513
  };
1521
- const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-699fb0fe"]]);
1514
+ const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-e4250caa"]]);
1522
1515
 
1523
1516
  const _hoisted_1$3 = { class: "input__fieldset" };
1524
1517
  const _hoisted_2$3 = {