rc-lib-ui 1.2.12 → 1.2.14

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.
@@ -0,0 +1,23 @@
1
+ var c = Object.defineProperty;
2
+ var l = (e, t, s) => t in e ? c(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
+ var r = (e, t, s) => l(e, typeof t != "symbol" ? t + "" : t, s);
4
+ class i {
5
+ constructor() {
6
+ r(this, "getColorPalette", (t, s) => {
7
+ if (s.startsWith("#"))
8
+ return s;
9
+ const { palette: a } = t, { mode: n } = a, o = a[s];
10
+ return o ? o[n] : "primary";
11
+ });
12
+ }
13
+ }
14
+ class u {
15
+ }
16
+ r(u, "colors", new i());
17
+ function C(e, t) {
18
+ return (s) => t((a) => ({ ...a, ...s }));
19
+ }
20
+ export {
21
+ u as U,
22
+ C as s
23
+ };
package/dist/socket.js CHANGED
@@ -6,7 +6,8 @@ import q, { useState as F, useRef as x, useCallback as E, useEffect as y } from
6
6
  import { c as U } from "./react-CLnE01WS.js";
7
7
  import { styled as M, Collapse as G } from "@mui/material";
8
8
  import B from "classnames";
9
- import { N as $, u as W } from "./index-W5Yj75IK.js";
9
+ import { u as W } from "./browser-DJTk47DY.js";
10
+ import { N as $ } from "./index-80JSxasr.js";
10
11
  const L = {
11
12
  statusConnect: "disconnect",
12
13
  isOfflineSocket: !1,
@@ -532,7 +533,7 @@ const se = (n, e = {}) => {
532
533
  refetch: C,
533
534
  abort: O
534
535
  };
535
- }, Re = (n, e) => se(n, e), ne = (n) => {
536
+ }, be = (n, e) => se(n, e), ne = (n) => {
536
537
  const { isNetwork: e, typeNetwork: t } = n, { isModal: o } = g(b.getInfoNoConnectServer), i = g(b.getStatusIsReConnectSocket), a = g(b.getIsDisableConnectSocket), c = g(b.getStatusConnectSocket);
537
538
  return y(() => (m.init(n.init), typeof n.onMount == "function" && n.onMount(), m.on("status", (l) => {
538
539
  const S = R.getState(), { isReadySocket: f, infoNoConnectServer: { isModal: p }, isOfflineSocket: u } = S;
@@ -589,7 +590,7 @@ const se = (n, e = {}) => {
589
590
  h.setInfoNoConnectServer({ isModal: !1, isSelectOffline: !0 }), h.setIsDisableConnectSocket({ isDisableConnectSocket: !0 });
590
591
  }, []);
591
592
  return n({ offlineActive: e });
592
- }, fe = q.memo(ue), be = {
593
+ }, fe = q.memo(ue), ge = {
593
594
  ConnectDetection: _,
594
595
  OfflineDetection: ce,
595
596
  Buttons: {
@@ -599,9 +600,9 @@ const se = (n, e = {}) => {
599
600
  Initialization: oe
600
601
  };
601
602
  export {
602
- be as Socket,
603
+ ge as Socket,
603
604
  m as SocketApi,
604
- Re as createRequestSocketApi,
605
+ be as createRequestSocketApi,
605
606
  h as socketActions,
606
607
  b as socketSelectors,
607
608
  R as socketStore,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rc-lib-ui",
3
3
  "private": false,
4
- "version": "1.2.12",
4
+ "version": "1.2.14",
5
5
  "author": "SinGlEBW",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -30,8 +30,12 @@
30
30
  "types": "./dist/Dashboard/index.d.ts"
31
31
  },
32
32
  "./control-cards": {
33
- "import": "./dist/dashboard.js",
33
+ "import": "./dist/control-cards.js",
34
34
  "types": "./dist/ControlCards/index.d.ts"
35
+ },
36
+ "./hooks": {
37
+ "import": "./dist/hooks.js",
38
+ "types": "./dist/hooks/index.d.ts"
35
39
  }
36
40
  },
37
41
  "files": [
@@ -54,7 +58,7 @@
54
58
  "send": "node publishVersion.js"
55
59
  },
56
60
  "dependencies": {
57
- "dev-classes": "^1.4.39",
61
+ "dev-classes": "^1.5.2",
58
62
  "notistack": "^3.0.2",
59
63
  "react-transition-group": "^4.4.5",
60
64
  "uuid4": "^2.0.3",