@howone/sdk 0.3.17 → 0.3.19

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
@@ -1836,27 +1836,14 @@ function ThemeToggle({ className }) {
1836
1836
  }
1837
1837
  };
1838
1838
  if (!mounted) {
1839
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1840
- "button",
1841
- {
1842
- className: `relative inline-flex h-10 w-12 items-center justify-center rounded-md border border-input bg-background hover:bg-accent hover:text-accent-foreground ${className || ""}`,
1843
- disabled: true,
1844
- children: [
1845
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react10.Icon, { icon: "solar:sun-bold", width: 20, height: 20 }),
1846
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "sr-only", children: "\u5207\u6362\u4E3B\u9898" })
1847
- ]
1848
- }
1849
- );
1839
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react10.Icon, { icon: "solar:sun-bold", width: 20, height: 20 });
1850
1840
  }
1851
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1852
- "button",
1841
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1842
+ "div",
1853
1843
  {
1854
- className: `inline-flex h-10 w-12 items-center justify-center rounded-md border border-input bg-background hover:bg-accent hover:text-accent-foreground transition-colors ${className || ""}`,
1844
+ className: `cursor-pointer ${className || ""}`,
1855
1845
  onClick: handleToggle,
1856
- children: [
1857
- theme === "light" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react10.Icon, { icon: "solar:sun-bold", width: 20, height: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react10.Icon, { icon: "solar:moon-linear", width: 20, height: 20 }),
1858
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "sr-only", children: "\u5207\u6362\u4E3B\u9898" })
1859
- ]
1846
+ children: theme === "light" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react10.Icon, { icon: "solar:sun-bold", width: 20, height: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react10.Icon, { icon: "solar:moon-linear", width: 20, height: 20 })
1860
1847
  }
1861
1848
  );
1862
1849
  }
@@ -2120,7 +2107,7 @@ var ToastContent = ({ type, title, message, component, closeToast }) => {
2120
2107
  };
2121
2108
  var defaultToastOptions = {
2122
2109
  position: "bottom-right",
2123
- autoClose: 3e3,
2110
+ autoClose: 1500,
2124
2111
  hideProgressBar: true,
2125
2112
  closeOnClick: false,
2126
2113
  pauseOnHover: true,