@tydavidson/design-system 1.1.11 → 1.1.13

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.js CHANGED
@@ -231,7 +231,7 @@ function ThemeToggle({
231
231
  sizeClasses[size],
232
232
  className
233
233
  ),
234
- "aria-label": resolvedTheme === "dark" ? "Switch to light theme" : "Switch to dark theme",
234
+ "aria-label": "Toggle theme",
235
235
  ...props,
236
236
  children: resolvedTheme === "dark" ? /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconSun, { size: iconSize[size], stroke: 1.5 }) : /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconMoon, { size: iconSize[size], stroke: 1.5 })
237
237
  }
@@ -249,6 +249,7 @@ function ThemeToggle({
249
249
  "hover:bg-accent hover:text-accent-foreground",
250
250
  className
251
251
  ),
252
+ "aria-label": "Toggle theme",
252
253
  ...props,
253
254
  children: resolvedTheme === "dark" ? "Light Mode" : "Dark Mode"
254
255
  }
@@ -265,7 +266,7 @@ function ThemeToggle({
265
266
  resolvedTheme === "dark" ? "bg-accent text-accent-foreground hover:bg-accent/80" : "bg-muted text-muted-foreground hover:bg-muted/80",
266
267
  className
267
268
  ),
268
- "aria-label": resolvedTheme === "dark" ? "Switch to light theme" : "Switch to dark theme",
269
+ "aria-label": "Toggle theme",
269
270
  ...props,
270
271
  children: resolvedTheme === "dark" ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center", children: [
271
272
  /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconSun, { size: iconSize[size], stroke: 1.5, className: "mr-2" }),
@@ -1909,7 +1910,7 @@ function ThemeProvider({
1909
1910
  children,
1910
1911
  ...props
1911
1912
  }) {
1912
- const [NextThemesProvider, setNextThemesProvider] = React2__namespace.useState(null);
1913
+ const [NextThemesProvider, setNextThemesProvider] = React2__namespace.useState(void 0);
1913
1914
  const [mounted, setMounted] = React2__namespace.useState(false);
1914
1915
  React2__namespace.useEffect(() => {
1915
1916
  import('next-themes').then(({ ThemeProvider: Provider }) => {
@@ -1964,7 +1965,7 @@ function ClientThemeProvider({
1964
1965
  }
1965
1966
  function ClientThemeToggle(props) {
1966
1967
  const [mounted, setMounted] = React2__namespace.useState(false);
1967
- const [ThemeToggleComponent, setThemeToggleComponent] = React2__namespace.useState(null);
1968
+ const [ThemeToggleComponent, setThemeToggleComponent] = React2__namespace.useState(void 0);
1968
1969
  React2__namespace.useEffect(() => {
1969
1970
  setMounted(true);
1970
1971
  Promise.resolve().then(() => (init_theme_toggle2(), theme_toggle_exports)).then(({ ThemeToggle: ThemeToggle2 }) => {