beca-ui 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/dist/beca-ui.js +12 -6
  2. package/package.json +1 -1
package/dist/beca-ui.js CHANGED
@@ -61338,12 +61338,18 @@ const JK = "https://library.becawork.vn/api/PublicLibrary/ViewFile/gfregdblvwd7l
61338
61338
  });
61339
61339
  ae.status === 200 && ae.data && Number(ae.data) === 1 && (B(!0), document.body.classList.add("dark-theme"));
61340
61340
  }, W = async (ee) => {
61341
- R && KK.put(R.updateApi, JSON.stringify(ee), {
61342
- headers: {
61343
- "Content-Type": "application/json"
61344
- },
61345
- params: R.params
61346
- });
61341
+ R && KK.put(
61342
+ R.updateApi,
61343
+ R.params ? JSON.stringify({
61344
+ isDarkMode: ee
61345
+ }) : JSON.stringify(ee),
61346
+ {
61347
+ headers: {
61348
+ "Content-Type": "application/json"
61349
+ },
61350
+ params: R.params
61351
+ }
61352
+ );
61347
61353
  }, Q = (ee) => {
61348
61354
  const ae = ee.phoneNumber.split(",");
61349
61355
  return /* @__PURE__ */ pn("div", { className: "menu-support-item", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {