@spacego/fe-components 0.0.3 → 0.0.4

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.
@@ -30,12 +30,16 @@ function z({ open: m, onClose: a }) {
30
30
  placement: "right",
31
31
  onClose: a,
32
32
  open: m,
33
- width: 380,
34
- closable: !1,
35
- maskStyle: { backdropFilter: "none" },
33
+ closeIcon: null,
36
34
  className: "dark:bg-[#1a1c1f]!",
37
35
  extra: /* @__PURE__ */ e("div", { className: "cursor-pointer hover:text-primary transition-colors", onClick: a, children: /* @__PURE__ */ e(g, { className: "text-sm" }) }),
38
36
  styles: {
37
+ wrapper: {
38
+ width: 380
39
+ },
40
+ mask: {
41
+ backdropFilter: "none"
42
+ },
39
43
  header: {
40
44
  padding: "18px",
41
45
  borderBottom: "1px solid var(--border-color)"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as f, jsx as s } from "react/jsx-runtime";
2
- import { useSelector as y } from "@spacego/zustand";
2
+ import { useSelector as R } from "@spacego/zustand";
3
3
  import { Layout as g, Spin as Z } from "antd";
4
4
  import { useMemo as d, useEffect as $ } from "react";
5
5
  import { useLocation as ee, useNavigate as te, Outlet as oe } from "react-router-dom";
@@ -15,7 +15,7 @@ import { findRouteByPath as b, findMenuParentKeys as ue, buildRouteMap as fe, fi
15
15
  /* empty css */
16
16
  const { Content: he } = g;
17
17
  function Se() {
18
- const r = ee(), m = te(), { logout: R } = ne(), {
18
+ const r = ee(), m = te(), { logout: y } = ne(), {
19
19
  token: T,
20
20
  menus: a = [],
21
21
  routes: o = [],
@@ -32,7 +32,7 @@ function Se() {
32
32
  sidebarAfter: D,
33
33
  tabsBefore: I,
34
34
  tabsAfter: w
35
- } = se(), { tabsAttribute: O, sidebarCollapsed: G, loadingConfig: P, ADD_TAB: V, REMOVE_TAB: j, SET_ACTIVE_TAB_KEY: E, SET_SIDEBAR_COLLAPSED: H } = re(y(["tabsAttribute", "sidebarCollapsed", "loadingConfig", "ADD_TAB", "REMOVE_TAB", "SET_ACTIVE_TAB_KEY", "SET_SIDEBAR_COLLAPSED"])), { tabsList: h, tabsActiveKey: i } = O, { theme: Y, TOGGLE_THEME: z } = ae(y(["theme", "TOGGLE_THEME"])), l = d(() => {
35
+ } = se(), { tabsAttribute: O, sidebarCollapsed: G, loadingConfig: P, ADD_TAB: V, REMOVE_TAB: j, SET_ACTIVE_TAB_KEY: E, SET_SIDEBAR_COLLAPSED: H } = re(R(["tabsAttribute", "sidebarCollapsed", "loadingConfig", "ADD_TAB", "REMOVE_TAB", "SET_ACTIVE_TAB_KEY", "SET_SIDEBAR_COLLAPSED"])), { tabsList: h, tabsActiveKey: i } = O, { theme: Y, TOGGLE_THEME: z } = ae(R(["theme", "TOGGLE_THEME"])), l = d(() => {
36
36
  var t;
37
37
  if (!o || o.length === 0)
38
38
  return i;
@@ -68,7 +68,7 @@ function Se() {
68
68
  }, p = d(() => !o || o.length === 0 ? null : (e) => b(e, o), [o]), W = () => {
69
69
  var t;
70
70
  const e = p == null ? void 0 : p(r.pathname);
71
- if (e && e.id && !["root", "blank", "auth"].includes(e.id)) {
71
+ if (console.log("currentRoute:>> ", e), e && e.id && !["root", "blank", "auth"].includes(e.id)) {
72
72
  const n = e.id, c = ((t = e.handle) == null ? void 0 : t.title) || e.id;
73
73
  h.find((u) => u.key === n) ? E(n) : V({
74
74
  key: n,
@@ -95,7 +95,7 @@ function Se() {
95
95
  userMenuItems: k,
96
96
  theme: Y,
97
97
  onToggleTheme: z,
98
- onLogout: R
98
+ onLogout: y
99
99
  }
100
100
  ),
101
101
  /* @__PURE__ */ f(g, { className: "flex-1 overflow-hidden", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spacego/fe-components",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "🚀 A component library for fe to use.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",