@howone/sdk 0.3.17 → 0.3.18
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 +5 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1836,27 +1836,12 @@ function ThemeToggle({ className }) {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
};
|
|
1838
1838
|
if (!mounted) {
|
|
1839
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.
|
|
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.
|
|
1852
|
-
"
|
|
1841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1842
|
+
"div",
|
|
1853
1843
|
{
|
|
1854
|
-
|
|
1855
|
-
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
|
-
]
|
|
1844
|
+
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
1845
|
}
|
|
1861
1846
|
);
|
|
1862
1847
|
}
|
|
@@ -2120,7 +2105,7 @@ var ToastContent = ({ type, title, message, component, closeToast }) => {
|
|
|
2120
2105
|
};
|
|
2121
2106
|
var defaultToastOptions = {
|
|
2122
2107
|
position: "bottom-right",
|
|
2123
|
-
autoClose:
|
|
2108
|
+
autoClose: 1500,
|
|
2124
2109
|
hideProgressBar: true,
|
|
2125
2110
|
closeOnClick: false,
|
|
2126
2111
|
pauseOnHover: true,
|