@demokit-ui/demokit 0.1.0 → 0.1.2

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 (190) hide show
  1. package/README.md +3 -0
  2. package/dist/app/demo1-shell.js +195 -188
  3. package/dist/app/tweak-panel.d.ts +1 -2
  4. package/dist/app/tweak-panel.js +20 -4
  5. package/dist/index.js +811 -479
  6. package/dist/kit/components/chart/chart/chart.examples.d.ts +24 -0
  7. package/dist/kit/components/chart/chart/chart.examples.js +422 -0
  8. package/dist/kit/components/composite/action-bar/action-bar.examples.d.ts +2 -0
  9. package/dist/kit/components/composite/action-bar/action-bar.examples.js +35 -0
  10. package/dist/kit/components/composite/action-card/action-card.examples.d.ts +2 -0
  11. package/dist/kit/components/composite/action-card/action-card.examples.js +34 -0
  12. package/dist/kit/components/composite/activity-feed/activity-feed.examples.d.ts +2 -0
  13. package/dist/kit/components/composite/activity-feed/activity-feed.examples.js +44 -0
  14. package/dist/kit/components/composite/alert-card/alert-card.examples.d.ts +2 -0
  15. package/dist/kit/components/composite/alert-card/alert-card.examples.js +18 -0
  16. package/dist/kit/components/composite/approval-flow/approval-flow.examples.d.ts +2 -0
  17. package/dist/kit/components/composite/approval-flow/approval-flow.examples.js +70 -0
  18. package/dist/kit/components/composite/auth-shell/auth-shell.examples.d.ts +2 -0
  19. package/dist/kit/components/composite/auth-shell/auth-shell.examples.js +23 -0
  20. package/dist/kit/components/composite/board-toolbar/board-toolbar.examples.d.ts +2 -0
  21. package/dist/kit/components/composite/board-toolbar/board-toolbar.examples.js +32 -0
  22. package/dist/kit/components/composite/chart-card/chart-card.examples.d.ts +3 -0
  23. package/dist/kit/components/composite/chart-card/chart-card.examples.js +58 -0
  24. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.examples.d.ts +2 -0
  25. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.examples.js +39 -0
  26. package/dist/kit/components/composite/data-section/data-section.examples.d.ts +3 -0
  27. package/dist/kit/components/composite/data-section/data-section.examples.js +48 -0
  28. package/dist/kit/components/composite/description-grid/description-grid.examples.d.ts +2 -0
  29. package/dist/kit/components/composite/description-grid/description-grid.examples.js +30 -0
  30. package/dist/kit/components/composite/detail-header/detail-header.examples.d.ts +2 -0
  31. package/dist/kit/components/composite/detail-header/detail-header.examples.js +37 -0
  32. package/dist/kit/components/composite/filter-panel/filter-panel.examples.d.ts +2 -0
  33. package/dist/kit/components/composite/filter-panel/filter-panel.examples.js +63 -0
  34. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.examples.d.ts +2 -0
  35. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.examples.js +39 -0
  36. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.examples.d.ts +2 -0
  37. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.examples.js +19 -0
  38. package/dist/kit/components/composite/form-section/form-section.examples.d.ts +2 -0
  39. package/dist/kit/components/composite/form-section/form-section.examples.js +40 -0
  40. package/dist/kit/components/composite/kanban-board/kanban-board.examples.d.ts +2 -0
  41. package/dist/kit/components/composite/kanban-board/kanban-board.examples.js +72 -0
  42. package/dist/kit/components/composite/login-card/login-card.examples.d.ts +3 -0
  43. package/dist/kit/components/composite/login-card/login-card.examples.js +30 -0
  44. package/dist/kit/components/composite/message-list-card/message-list-card.examples.d.ts +2 -0
  45. package/dist/kit/components/composite/message-list-card/message-list-card.examples.js +56 -0
  46. package/dist/kit/components/composite/metric-card/metric-card.examples.d.ts +2 -0
  47. package/dist/kit/components/composite/metric-card/metric-card.examples.js +50 -0
  48. package/dist/kit/components/composite/milestone-card/milestone-card.examples.d.ts +2 -0
  49. package/dist/kit/components/composite/milestone-card/milestone-card.examples.js +54 -0
  50. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.examples.d.ts +2 -0
  51. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.examples.js +24 -0
  52. package/dist/kit/components/composite/page-header/page-header.examples.d.ts +3 -0
  53. package/dist/kit/components/composite/page-header/page-header.examples.js +56 -0
  54. package/dist/kit/components/composite/profile-card/profile-card.examples.d.ts +2 -0
  55. package/dist/kit/components/composite/profile-card/profile-card.examples.js +45 -0
  56. package/dist/kit/components/composite/progress-card/progress-card.examples.d.ts +2 -0
  57. package/dist/kit/components/composite/progress-card/progress-card.examples.js +42 -0
  58. package/dist/kit/components/composite/project-card/project-card.examples.d.ts +2 -0
  59. package/dist/kit/components/composite/project-card/project-card.examples.js +48 -0
  60. package/dist/kit/components/composite/shortcut-card/shortcut-card.examples.d.ts +2 -0
  61. package/dist/kit/components/composite/shortcut-card/shortcut-card.examples.js +18 -0
  62. package/dist/kit/components/composite/sprint-summary/sprint-summary.examples.d.ts +2 -0
  63. package/dist/kit/components/composite/sprint-summary/sprint-summary.examples.js +27 -0
  64. package/dist/kit/components/composite/state-panel/state-panel.examples.d.ts +2 -0
  65. package/dist/kit/components/composite/state-panel/state-panel.examples.js +48 -0
  66. package/dist/kit/components/composite/summary-card/summary-card.examples.d.ts +2 -0
  67. package/dist/kit/components/composite/summary-card/summary-card.examples.js +32 -0
  68. package/dist/kit/components/composite/task-card/task-card.examples.d.ts +2 -0
  69. package/dist/kit/components/composite/task-card/task-card.examples.js +39 -0
  70. package/dist/kit/components/composite/timeline/timeline.examples.d.ts +2 -0
  71. package/dist/kit/components/composite/timeline/timeline.examples.js +75 -0
  72. package/dist/kit/components/composite/todo-card/todo-card.examples.d.ts +2 -0
  73. package/dist/kit/components/composite/todo-card/todo-card.examples.js +42 -0
  74. package/dist/kit/components/data-display/avatar/avatar.examples.d.ts +7 -0
  75. package/dist/kit/components/data-display/avatar/avatar.examples.js +48 -0
  76. package/dist/kit/components/data-display/avatar-group/avatar-group.examples.d.ts +3 -0
  77. package/dist/kit/components/data-display/avatar-group/avatar-group.examples.js +35 -0
  78. package/dist/kit/components/data-display/badge/badge.examples.d.ts +9 -0
  79. package/dist/kit/components/data-display/badge/badge.examples.js +57 -0
  80. package/dist/kit/components/data-display/card/card.examples.d.ts +16 -0
  81. package/dist/kit/components/data-display/card/card.examples.js +72 -0
  82. package/dist/kit/components/data-display/data-grid/data-grid.examples.d.ts +2 -0
  83. package/dist/kit/components/data-display/data-grid/data-grid.examples.js +92 -0
  84. package/dist/kit/components/data-display/kbd/kbd.examples.d.ts +3 -0
  85. package/dist/kit/components/data-display/kbd/kbd.examples.js +43 -0
  86. package/dist/kit/components/data-display/money-amount/money-amount.examples.d.ts +1 -0
  87. package/dist/kit/components/data-display/money-amount/money-amount.examples.js +26 -0
  88. package/dist/kit/components/data-display/progress/progress.examples.d.ts +3 -0
  89. package/dist/kit/components/data-display/progress/progress.examples.js +45 -0
  90. package/dist/kit/components/data-display/skeleton/skeleton.examples.d.ts +3 -0
  91. package/dist/kit/components/data-display/skeleton/skeleton.examples.js +37 -0
  92. package/dist/kit/components/data-display/sliding-number/sliding-number.examples.d.ts +3 -0
  93. package/dist/kit/components/data-display/sliding-number/sliding-number.examples.js +42 -0
  94. package/dist/kit/components/data-display/stepper/stepper.examples.d.ts +2 -0
  95. package/dist/kit/components/data-display/stepper/stepper.examples.js +28 -0
  96. package/dist/kit/components/data-display/table/table.examples.d.ts +4 -0
  97. package/dist/kit/components/data-display/table/table.examples.js +78 -0
  98. package/dist/kit/components/decorative/aurora-background/aurora-background.examples.d.ts +2 -0
  99. package/dist/kit/components/decorative/aurora-background/aurora-background.examples.js +22 -0
  100. package/dist/kit/components/decorative/grid-background/grid-background.examples.d.ts +4 -0
  101. package/dist/kit/components/decorative/grid-background/grid-background.examples.js +42 -0
  102. package/dist/kit/components/decorative/shimmering-text/shimmering-text.examples.d.ts +4 -0
  103. package/dist/kit/components/decorative/shimmering-text/shimmering-text.examples.js +54 -0
  104. package/dist/kit/components/decorative/text-reveal/text-reveal.examples.d.ts +2 -0
  105. package/dist/kit/components/decorative/text-reveal/text-reveal.examples.js +46 -0
  106. package/dist/kit/components/feedback/alert/alert.examples.d.ts +2 -0
  107. package/dist/kit/components/feedback/alert/alert.examples.js +37 -0
  108. package/dist/kit/components/feedback/alert-dialog/alert-dialog.examples.d.ts +2 -0
  109. package/dist/kit/components/feedback/alert-dialog/alert-dialog.examples.js +28 -0
  110. package/dist/kit/components/feedback/context-menu/context-menu.examples.d.ts +2 -0
  111. package/dist/kit/components/feedback/context-menu/context-menu.examples.js +33 -0
  112. package/dist/kit/components/feedback/dialog/dialog.examples.d.ts +2 -0
  113. package/dist/kit/components/feedback/dialog/dialog.examples.js +51 -0
  114. package/dist/kit/components/feedback/drawer/drawer.examples.d.ts +2 -0
  115. package/dist/kit/components/feedback/drawer/drawer.examples.js +29 -0
  116. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.examples.d.ts +3 -0
  117. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.examples.js +54 -0
  118. package/dist/kit/components/feedback/hover-card/hover-card.examples.d.ts +2 -0
  119. package/dist/kit/components/feedback/hover-card/hover-card.examples.js +27 -0
  120. package/dist/kit/components/feedback/popover/popover.examples.d.ts +2 -0
  121. package/dist/kit/components/feedback/popover/popover.examples.js +42 -0
  122. package/dist/kit/components/feedback/sheet/sheet.examples.d.ts +2 -0
  123. package/dist/kit/components/feedback/sheet/sheet.examples.js +39 -0
  124. package/dist/kit/components/feedback/sonner/sonner.examples.d.ts +3 -0
  125. package/dist/kit/components/feedback/sonner/sonner.examples.js +49 -0
  126. package/dist/kit/components/feedback/title-help/title-help.examples.d.ts +1 -0
  127. package/dist/kit/components/feedback/title-help/title-help.examples.js +25 -0
  128. package/dist/kit/components/feedback/tooltip/tooltip.examples.d.ts +3 -0
  129. package/dist/kit/components/feedback/tooltip/tooltip.examples.js +44 -0
  130. package/dist/kit/components/form/button/button.examples.d.ts +13 -0
  131. package/dist/kit/components/form/button/button.examples.js +84 -0
  132. package/dist/kit/components/form/calendar/calendar.examples.d.ts +2 -0
  133. package/dist/kit/components/form/calendar/calendar.examples.js +23 -0
  134. package/dist/kit/components/form/checkbox/checkbox.examples.d.ts +4 -0
  135. package/dist/kit/components/form/checkbox/checkbox.examples.js +72 -0
  136. package/dist/kit/components/form/command/command.examples.d.ts +3 -0
  137. package/dist/kit/components/form/command/command.examples.js +52 -0
  138. package/dist/kit/components/form/datefield/datefield.examples.d.ts +2 -0
  139. package/dist/kit/components/form/datefield/datefield.examples.js +19 -0
  140. package/dist/kit/components/form/file-upload/file-upload.examples.d.ts +1 -0
  141. package/dist/kit/components/form/file-upload/file-upload.examples.js +18 -0
  142. package/dist/kit/components/form/form/form.examples.d.ts +2 -0
  143. package/dist/kit/components/form/form/form.examples.js +77 -0
  144. package/dist/kit/components/form/input/input.examples.d.ts +5 -0
  145. package/dist/kit/components/form/input/input.examples.js +64 -0
  146. package/dist/kit/components/form/label/label.examples.d.ts +4 -0
  147. package/dist/kit/components/form/label/label.examples.js +49 -0
  148. package/dist/kit/components/form/radio-group/radio-group.examples.d.ts +3 -0
  149. package/dist/kit/components/form/radio-group/radio-group.examples.js +40 -0
  150. package/dist/kit/components/form/select/select.examples.d.ts +3 -0
  151. package/dist/kit/components/form/select/select.examples.js +58 -0
  152. package/dist/kit/components/form/slider/slider.examples.d.ts +3 -0
  153. package/dist/kit/components/form/slider/slider.examples.js +46 -0
  154. package/dist/kit/components/form/switch/switch.examples.d.ts +3 -0
  155. package/dist/kit/components/form/switch/switch.examples.js +37 -0
  156. package/dist/kit/components/form/textarea/textarea.examples.d.ts +3 -0
  157. package/dist/kit/components/form/textarea/textarea.examples.js +49 -0
  158. package/dist/kit/components/form/toggle/toggle.examples.d.ts +3 -0
  159. package/dist/kit/components/form/toggle/toggle.examples.js +33 -0
  160. package/dist/kit/components/form/toggle-group/toggle-group.examples.d.ts +4 -0
  161. package/dist/kit/components/form/toggle-group/toggle-group.examples.js +46 -0
  162. package/dist/kit/components/index.d.ts +91 -0
  163. package/dist/kit/components/layout/accordion/accordion.examples.d.ts +2 -0
  164. package/dist/kit/components/layout/accordion/accordion.examples.js +34 -0
  165. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.examples.d.ts +3 -0
  166. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.examples.js +29 -0
  167. package/dist/kit/components/layout/collapsible/collapsible.examples.d.ts +2 -0
  168. package/dist/kit/components/layout/collapsible/collapsible.examples.js +28 -0
  169. package/dist/kit/components/layout/resizable/resizable.examples.d.ts +2 -0
  170. package/dist/kit/components/layout/resizable/resizable.examples.js +26 -0
  171. package/dist/kit/components/layout/scroll-area/scroll-area.examples.d.ts +2 -0
  172. package/dist/kit/components/layout/scroll-area/scroll-area.examples.js +16 -0
  173. package/dist/kit/components/layout/separator/separator.examples.d.ts +3 -0
  174. package/dist/kit/components/layout/separator/separator.examples.js +35 -0
  175. package/dist/kit/components/navigation/accordion-menu/accordion-menu.examples.d.ts +2 -0
  176. package/dist/kit/components/navigation/accordion-menu/accordion-menu.examples.js +36 -0
  177. package/dist/kit/components/navigation/breadcrumb/breadcrumb.examples.d.ts +3 -0
  178. package/dist/kit/components/navigation/breadcrumb/breadcrumb.examples.js +39 -0
  179. package/dist/kit/components/navigation/menubar/menubar.examples.d.ts +2 -0
  180. package/dist/kit/components/navigation/menubar/menubar.examples.js +54 -0
  181. package/dist/kit/components/navigation/navigation-menu/navigation-menu.examples.d.ts +2 -0
  182. package/dist/kit/components/navigation/navigation-menu/navigation-menu.examples.js +31 -0
  183. package/dist/kit/components/navigation/pagination/pagination.examples.d.ts +2 -0
  184. package/dist/kit/components/navigation/pagination/pagination.examples.js +42 -0
  185. package/dist/kit/components/navigation/scrollspy/scrollspy.examples.d.ts +2 -0
  186. package/dist/kit/components/navigation/scrollspy/scrollspy.examples.js +68 -0
  187. package/dist/kit/components/navigation/tabs/tabs.examples.d.ts +5 -0
  188. package/dist/kit/components/navigation/tabs/tabs.examples.js +43 -0
  189. package/dist/styles.css +29 -12
  190. package/package.json +7 -2
@@ -1,33 +1,33 @@
1
1
  import { jsxs as t, Fragment as Z, jsx as e } from "react/jsx-runtime";
2
- import { useEffect as f, useState as D, useMemo as le, useCallback as ie } from "react";
3
- import { ThemeToggle as ae } from "../kit/themes/theme-toggle.js";
4
- import { RiApps2Line as ce, RiMenuLine as de, RiSearchLine as me, RiNotification3Line as ue, RiCheckDoubleLine as he, RiArrowRightSLine as K, RiUserLine as pe, RiFileTextLine as B, RiSettings4Line as fe, RiShieldUserLine as ge, RiLogoutBoxRLine as xe } from "@remixicon/react";
2
+ import { useEffect as p, useState as z, useMemo as le, useCallback as ae } from "react";
3
+ import { ThemeToggle as ie } from "../kit/themes/theme-toggle.js";
4
+ import { RiApps2Line as ce, RiMenuLine as de, RiSearchLine as me, RiNotification3Line as ue, RiCheckDoubleLine as he, RiArrowRightSLine as U, RiUserLine as pe, RiFileTextLine as H, RiSettings4Line as fe, RiShieldUserLine as ge, RiLogoutBoxRLine as xe } from "@remixicon/react";
5
5
  import { ChevronFirst as be } from "lucide-react";
6
- import { useLocation as j, Outlet as Ne, useNavigate as ve, Link as A } from "react-router-dom";
7
- import { toast as p } from "sonner";
6
+ import { useLocation as F, Outlet as Ne, useNavigate as ve, Link as T } from "react-router-dom";
7
+ import { toast as h } from "sonner";
8
8
  import { cn as v } from "../lib/utils.js";
9
9
  import { useSettings as ee } from "../providers/settings-provider.js";
10
10
  import { BackgroundDecor as ye } from "./background-decor.js";
11
11
  import { Container as te } from "./container.js";
12
12
  import { Sheet as we, SheetTrigger as Ce, SheetContent as Se, SheetHeader as Me, SheetBody as ke } from "../kit/components/feedback/sheet/sheet.js";
13
- import { Button as z } from "../kit/components/form/button/button.js";
14
- import { Popover as ze, PopoverTrigger as De, PopoverContent as Le } from "../kit/components/feedback/popover/popover.js";
13
+ import { Button as D } from "../kit/components/form/button/button.js";
14
+ import { Popover as De, PopoverTrigger as ze, PopoverContent as Le } from "../kit/components/feedback/popover/popover.js";
15
15
  import { Badge as P } from "../kit/components/data-display/badge/badge.js";
16
- import { DropdownMenu as Ie, DropdownMenuTrigger as Te, DropdownMenuContent as Ae, DropdownMenuSeparator as E, DropdownMenuLabel as Re, DropdownMenuItem as k } from "../kit/components/feedback/dropdown-menu/dropdown-menu.js";
17
- import { Avatar as U, AvatarFallback as H } from "../kit/components/data-display/avatar/avatar.js";
18
- import { Dialog as Ee, DialogContent as $e, DialogHeader as Pe, DialogTitle as Oe, DialogDescription as je } from "../kit/components/feedback/dialog/dialog.js";
19
- import { Command as _e, CommandInput as Fe, CommandList as Ke, CommandEmpty as Be, CommandGroup as V, CommandItem as W, CommandSeparator as Ue } from "../kit/components/form/command/command.js";
20
- import { AccordionMenu as He, AccordionMenuLabel as Ve, AccordionMenuItem as T, AccordionMenuSub as G, AccordionMenuSubTrigger as Y, AccordionMenuSubContent as Q, AccordionMenuGroup as q } from "../kit/components/navigation/accordion-menu/accordion-menu.js";
16
+ import { DropdownMenu as Ie, DropdownMenuTrigger as Ae, DropdownMenuContent as Te, DropdownMenuSeparator as E, DropdownMenuLabel as Re, DropdownMenuItem as k } from "../kit/components/feedback/dropdown-menu/dropdown-menu.js";
17
+ import { Avatar as O, AvatarFallback as _, AvatarImage as Ee } from "../kit/components/data-display/avatar/avatar.js";
18
+ import { Dialog as $e, DialogContent as Pe, DialogHeader as Oe, DialogTitle as _e, DialogDescription as je } from "../kit/components/feedback/dialog/dialog.js";
19
+ import { Command as Fe, CommandInput as Be, CommandList as Ke, CommandEmpty as Ue, CommandGroup as V, CommandItem as W, CommandSeparator as He } from "../kit/components/form/command/command.js";
20
+ import { AccordionMenu as Ve, AccordionMenuLabel as We, AccordionMenuItem as A, AccordionMenuSub as G, AccordionMenuSubTrigger as Y, AccordionMenuSubContent as Q, AccordionMenuGroup as q } from "../kit/components/navigation/accordion-menu/accordion-menu.js";
21
21
  const J = 992, X = {
22
22
  title: "DemoKit",
23
23
  shortTitle: "D",
24
24
  href: "/",
25
25
  logoIcon: ce
26
- }, We = {
26
+ }, Ge = {
27
27
  name: "张建国",
28
28
  description: "软件中心 · 项目经理",
29
29
  initials: "张"
30
- }, Ge = {
30
+ }, Ye = {
31
31
  root: "lg:ps-1 space-y-3",
32
32
  group: "gap-px",
33
33
  label: "uppercase text-xs font-medium text-muted-foreground/70 pt-2.25 pb-px",
@@ -39,46 +39,46 @@ const J = 992, X = {
39
39
  indicator: ""
40
40
  };
41
41
  function re() {
42
- const [s, i] = D(void 0);
43
- return f(() => {
44
- const l = window.matchMedia(
42
+ const [o, l] = z(void 0);
43
+ return p(() => {
44
+ const a = window.matchMedia(
45
45
  `(max-width: ${J - 1}px)`
46
- ), c = () => i(window.innerWidth < J);
47
- return l.addEventListener("change", c), c(), () => l.removeEventListener("change", c);
48
- }, []), !!s;
46
+ ), c = () => l(window.innerWidth < J);
47
+ return a.addEventListener("change", c), c(), () => a.removeEventListener("change", c);
48
+ }, []), !!o;
49
49
  }
50
- function Ye() {
51
- const [s, i] = D(0);
52
- return f(() => {
53
- const l = () => i(window.scrollY);
54
- return window.addEventListener("scroll", l), l(), () => window.removeEventListener("scroll", l);
55
- }, []), s;
50
+ function Qe() {
51
+ const [o, l] = z(0);
52
+ return p(() => {
53
+ const a = () => l(window.scrollY);
54
+ return window.addEventListener("scroll", a), a(), () => window.removeEventListener("scroll", a);
55
+ }, []), o;
56
56
  }
57
- function Qe(s, i) {
58
- return i ? i === "/" ? i === s : s.startsWith(i) : !1;
57
+ function qe(o, l) {
58
+ return l ? l === "/" ? l === o : o.startsWith(l) : !1;
59
59
  }
60
- function O(s, i) {
61
- for (const l of s) {
62
- if (l.path && Qe(i, l.path))
63
- return l.children?.length ? O(l.children, i) ?? l : l;
64
- if (l.children?.length) {
65
- const c = O(l.children, i);
60
+ function j(o, l) {
61
+ for (const a of o) {
62
+ if (a.path && qe(l, a.path))
63
+ return a.children?.length ? j(a.children, l) ?? a : a;
64
+ if (a.children?.length) {
65
+ const c = j(a.children, l);
66
66
  if (c) return c;
67
67
  }
68
68
  }
69
69
  }
70
- function $(s) {
71
- const i = s.icon;
72
- return i ? /* @__PURE__ */ e(i, { "data-slot": "accordion-menu-icon" }) : null;
70
+ function $(o) {
71
+ const l = o.icon;
72
+ return l ? /* @__PURE__ */ e(l, { "data-slot": "accordion-menu-icon" }) : null;
73
73
  }
74
74
  function ne({
75
- menu: s,
76
- disabledBadgeLabel: i
75
+ menu: o,
76
+ disabledBadgeLabel: l
77
77
  }) {
78
- const { pathname: l } = j(), c = ie(
79
- (r) => r === l || r.length > 1 && l.startsWith(r),
80
- [l]
81
- ), h = (r) => r.map((o, a) => o.heading ? b(o, a) : o.disabled ? w(o, a) : y(o, a)), y = (r, o) => r.children ? /* @__PURE__ */ t(G, { value: r.path || `root-${o}`, children: [
78
+ const { pathname: a } = F(), c = ae(
79
+ (r) => r === a || r.length > 1 && a.startsWith(r),
80
+ [a]
81
+ ), x = (r) => r.map((s, i) => s.heading ? b(s, i) : s.disabled ? w(s, i) : y(s, i)), y = (r, s) => r.children ? /* @__PURE__ */ t(G, { value: r.path || `root-${s}`, children: [
82
82
  /* @__PURE__ */ t(Y, { className: "text-sm font-medium", children: [
83
83
  $(r),
84
84
  /* @__PURE__ */ e("span", { "data-slot": "accordion-menu-title", children: r.title })
@@ -88,38 +88,38 @@ function ne({
88
88
  {
89
89
  type: "single",
90
90
  collapsible: !0,
91
- parentValue: r.path || `root-${o}`,
91
+ parentValue: r.path || `root-${s}`,
92
92
  className: "ps-6",
93
- children: /* @__PURE__ */ e(q, { children: g(r.children, 1) })
93
+ children: /* @__PURE__ */ e(q, { children: f(r.children, 1) })
94
94
  }
95
95
  )
96
- ] }, o) : /* @__PURE__ */ e(
97
- T,
96
+ ] }, s) : /* @__PURE__ */ e(
97
+ A,
98
98
  {
99
99
  value: r.path || "",
100
100
  className: "text-sm font-medium",
101
- children: /* @__PURE__ */ t(A, { to: r.path || "#", className: "flex items-center grow gap-2", children: [
101
+ children: /* @__PURE__ */ t(T, { to: r.path || "#", className: "flex items-center grow gap-2", children: [
102
102
  $(r),
103
103
  /* @__PURE__ */ e("span", { "data-slot": "accordion-menu-title", children: r.title })
104
104
  ] })
105
105
  },
106
- o
107
- ), w = (r, o) => /* @__PURE__ */ t(
108
- T,
106
+ s
107
+ ), w = (r, s) => /* @__PURE__ */ t(
108
+ A,
109
109
  {
110
- value: `disabled-${o}`,
110
+ value: `disabled-${s}`,
111
111
  className: "text-sm font-medium",
112
112
  children: [
113
113
  $(r),
114
114
  /* @__PURE__ */ e("span", { "data-slot": "accordion-menu-title", children: r.title }),
115
- /* @__PURE__ */ e(P, { variant: "secondary", size: "sm", className: "ms-auto me-[-10px]", children: i })
115
+ /* @__PURE__ */ e(P, { variant: "secondary", size: "sm", className: "ms-auto me-[-10px]", children: l })
116
116
  ]
117
117
  },
118
- o
119
- ), g = (r, o = 0) => r.map((a, m) => a.disabled ? C(a, m, o) : d(a, m, o)), d = (r, o, a = 0) => r.children ? /* @__PURE__ */ t(
118
+ s
119
+ ), f = (r, s = 0) => r.map((i, m) => i.disabled ? C(i, m, s) : d(i, m, s)), d = (r, s, i = 0) => r.children ? /* @__PURE__ */ t(
120
120
  G,
121
121
  {
122
- value: r.path || `child-${a}-${o}`,
122
+ value: r.path || `child-${i}-${s}`,
123
123
  children: [
124
124
  /* @__PURE__ */ e(Y, { className: "text-[13px]", children: r.collapse ? /* @__PURE__ */ t("span", { className: "text-muted-foreground", children: [
125
125
  /* @__PURE__ */ e("span", { className: "hidden [[data-state=open]>span>&]:inline", children: r.collapseTitle }),
@@ -130,141 +130,148 @@ function ne({
130
130
  {
131
131
  type: "single",
132
132
  collapsible: !0,
133
- parentValue: r.path || `child-${a}-${o}`,
133
+ parentValue: r.path || `child-${i}-${s}`,
134
134
  className: v("ps-4", !r.collapse && "relative"),
135
- children: /* @__PURE__ */ e(q, { children: g(
135
+ children: /* @__PURE__ */ e(q, { children: f(
136
136
  r.children,
137
- r.collapse ? a : a + 1
137
+ r.collapse ? i : i + 1
138
138
  ) })
139
139
  }
140
140
  )
141
141
  ]
142
142
  },
143
- o
143
+ s
144
144
  ) : /* @__PURE__ */ e(
145
- T,
145
+ A,
146
146
  {
147
147
  value: r.path || "",
148
148
  className: "text-[13px]",
149
- children: /* @__PURE__ */ e(A, { to: r.path || "#", children: r.title })
149
+ children: /* @__PURE__ */ e(T, { to: r.path || "#", children: r.title })
150
150
  },
151
- o
152
- ), C = (r, o, a = 0) => /* @__PURE__ */ t(
153
- T,
151
+ s
152
+ ), C = (r, s, i = 0) => /* @__PURE__ */ t(
153
+ A,
154
154
  {
155
- value: `disabled-child-${a}-${o}`,
155
+ value: `disabled-child-${i}-${s}`,
156
156
  className: "text-[13px]",
157
157
  children: [
158
158
  /* @__PURE__ */ e("span", { "data-slot": "accordion-menu-title", children: r.title }),
159
- /* @__PURE__ */ e(P, { variant: "secondary", size: "sm", className: "ms-auto me-[-10px]", children: i })
159
+ /* @__PURE__ */ e(P, { variant: "secondary", size: "sm", className: "ms-auto me-[-10px]", children: l })
160
160
  ]
161
161
  },
162
- o
163
- ), b = (r, o) => /* @__PURE__ */ e(Ve, { children: r.heading }, o);
162
+ s
163
+ ), b = (r, s) => /* @__PURE__ */ e(We, { children: r.heading }, s);
164
164
  return /* @__PURE__ */ e("div", { className: "kt-scrollable-y-hover flex-1 min-h-0 overflow-y-auto py-5 px-5", children: /* @__PURE__ */ e(
165
- He,
165
+ Ve,
166
166
  {
167
- selectedValue: l,
167
+ selectedValue: a,
168
168
  matchPath: c,
169
169
  type: "single",
170
170
  collapsible: !0,
171
- classNames: Ge,
172
- children: h(s)
171
+ classNames: Ye,
172
+ children: x(o)
173
173
  }
174
174
  ) });
175
175
  }
176
- function qe({ brand: s }) {
177
- const { settings: i, storeOption: l } = ee(), c = s.logoIcon, h = () => {
178
- l(
176
+ function Je({ brand: o }) {
177
+ const { settings: l, storeOption: a } = ee(), c = () => {
178
+ a(
179
179
  "layouts.demo1.sidebarCollapse",
180
- !i.layouts.demo1.sidebarCollapse
180
+ !l.layouts.demo1.sidebarCollapse
181
181
  );
182
182
  };
183
183
  return /* @__PURE__ */ t("div", { className: "sidebar-header hidden lg:flex items-center relative justify-between px-3 lg:px-6 shrink-0", children: [
184
- /* @__PURE__ */ t(A, { to: s.href ?? "/", className: "flex items-center gap-2", children: [
185
- s.logoSrc ? /* @__PURE__ */ e(
186
- "img",
187
- {
188
- src: s.logoSrc,
189
- alt: s.logoAlt ?? s.title,
190
- className: "size-7 rounded-md"
191
- }
192
- ) : c ? /* @__PURE__ */ e("span", { className: "size-7 rounded-md inline-flex items-center justify-center bg-primary/10 text-primary", children: /* @__PURE__ */ e(c, { className: "size-4" }) }) : /* @__PURE__ */ e("span", { className: "size-7 rounded-md inline-flex items-center justify-center bg-primary/10 text-primary text-xs font-semibold", children: s.shortTitle ?? s.title.slice(0, 1) }),
193
- /* @__PURE__ */ e("span", { className: "font-semibold text-[15px] text-foreground default-logo", children: s.title }),
194
- /* @__PURE__ */ e("span", { className: "font-semibold text-[15px] text-foreground small-logo hidden", children: s.shortTitle ?? s.title.slice(0, 1) })
184
+ /* @__PURE__ */ t(T, { to: o.href ?? "/", className: "flex items-center gap-2", children: [
185
+ /* @__PURE__ */ e(Xe, { brand: o }),
186
+ /* @__PURE__ */ e("span", { className: "font-semibold text-[15px] text-foreground default-logo", children: o.title }),
187
+ /* @__PURE__ */ e("span", { className: "font-semibold text-[15px] text-foreground small-logo hidden", children: o.shortTitle ?? o.title.slice(0, 1) })
195
188
  ] }),
196
189
  /* @__PURE__ */ e(
197
- z,
190
+ D,
198
191
  {
199
- onClick: h,
192
+ onClick: c,
200
193
  size: "sm",
201
194
  mode: "icon",
202
195
  variant: "outline",
203
196
  className: v(
204
197
  "size-7 absolute start-full top-2/4 rtl:translate-x-2/4 -translate-x-2/4 -translate-y-2/4",
205
- i.layouts.demo1.sidebarCollapse ? "ltr:rotate-180" : "rtl:rotate-180"
198
+ l.layouts.demo1.sidebarCollapse ? "ltr:rotate-180" : "rtl:rotate-180"
206
199
  ),
207
200
  children: /* @__PURE__ */ e(be, { className: "size-4!" })
208
201
  }
209
202
  )
210
203
  ] });
211
204
  }
212
- function Je({
213
- brand: s,
214
- menu: i,
215
- disabledBadgeLabel: l
205
+ function Xe({ brand: o }) {
206
+ const l = o.logoIcon;
207
+ return /* @__PURE__ */ t(O, { className: "size-7 rounded-md", children: [
208
+ o.logoSrc && /* @__PURE__ */ e(
209
+ Ee,
210
+ {
211
+ src: o.logoSrc,
212
+ alt: o.logoAlt ?? o.title,
213
+ className: "rounded-md"
214
+ }
215
+ ),
216
+ /* @__PURE__ */ e(_, { className: "rounded-md border-0 bg-primary/10 text-primary text-xs font-semibold", children: l ? /* @__PURE__ */ e(l, { className: "size-4" }) : o.shortTitle ?? o.title.slice(0, 1) })
217
+ ] });
218
+ }
219
+ function Ze({
220
+ brand: o,
221
+ menu: l,
222
+ disabledBadgeLabel: a
216
223
  }) {
217
224
  return /* @__PURE__ */ t("div", { className: "sidebar bg-background lg:border-e lg:border-border lg:fixed lg:top-0 lg:bottom-0 lg:z-20 lg:flex flex-col items-stretch shrink-0", children: [
218
- /* @__PURE__ */ e(qe, { brand: s }),
225
+ /* @__PURE__ */ e(Je, { brand: o }),
219
226
  /* @__PURE__ */ e("div", { className: "w-full overflow-hidden flex-1 flex flex-col min-h-0", children: /* @__PURE__ */ t("div", { className: "w-(--sidebar-default-width) flex-1 flex flex-col min-h-0", children: [
220
227
  /* @__PURE__ */ e(
221
228
  ne,
222
229
  {
223
- menu: i,
224
- disabledBadgeLabel: l
230
+ menu: l,
231
+ disabledBadgeLabel: a
225
232
  }
226
233
  ),
227
- /* @__PURE__ */ e("div", { className: "mt-auto shrink-0", children: /* @__PURE__ */ e(ae, {}) })
234
+ /* @__PURE__ */ e("div", { className: "mt-auto shrink-0", children: /* @__PURE__ */ e(ie, {}) })
228
235
  ] }) })
229
236
  ] });
230
237
  }
231
- function Xe({
232
- brand: s,
233
- menu: i,
234
- title: l,
238
+ function et({
239
+ brand: o,
240
+ menu: l,
241
+ title: a,
235
242
  disabledBadgeLabel: c,
236
- searchPlaceholder: h,
243
+ searchPlaceholder: x,
237
244
  searchQuickNav: y,
238
245
  searchRecent: w,
239
- notifications: g,
246
+ notifications: f,
240
247
  user: d
241
248
  }) {
242
- const [C, b] = D(!1), [r, o] = D(!1), [a, m] = D(g), { pathname: L } = j(), S = ve(), I = re(), x = Ye() > 0, N = le(
243
- () => a.filter((n) => n.unread).length,
244
- [a]
249
+ const [C, b] = z(!1), [r, s] = z(!1), [i, m] = z(f), { pathname: L } = F(), S = ve(), I = re(), g = Qe() > 0, N = le(
250
+ () => i.filter((n) => n.unread).length,
251
+ [i]
245
252
  );
246
- f(() => {
253
+ p(() => {
247
254
  b(!1);
248
- }, [L]), f(() => {
249
- m(g);
250
- }, [g]), f(() => {
255
+ }, [L]), p(() => {
256
+ m(f);
257
+ }, [f]), p(() => {
251
258
  const n = (u) => {
252
- (u.metaKey || u.ctrlKey) && u.key.toLowerCase() === "k" && (u.preventDefault(), o((M) => !M));
259
+ (u.metaKey || u.ctrlKey) && u.key.toLowerCase() === "k" && (u.preventDefault(), s((M) => !M));
253
260
  };
254
261
  return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
255
262
  }, []);
256
- const F = (n) => {
257
- S(n), o(!1);
258
- }, se = () => m(
263
+ const K = (n) => {
264
+ S(n), s(!1);
265
+ }, oe = () => m(
259
266
  (n) => n.map((u) => ({ ...u, unread: !1 }))
260
- ), oe = (n) => {
267
+ ), se = (n) => {
261
268
  m(
262
269
  (M) => M.map(
263
270
  (R) => R.id === n ? { ...R, unread: !1 } : R
264
271
  )
265
272
  );
266
- const u = a.find((M) => M.id === n);
267
- u && p.info(u.title, { description: u.desc });
273
+ const u = i.find((M) => M.id === n);
274
+ u && h.info(u.title, { description: u.desc });
268
275
  };
269
276
  return /* @__PURE__ */ t(Z, { children: [
270
277
  /* @__PURE__ */ e(
@@ -272,16 +279,16 @@ function Xe({
272
279
  {
273
280
  className: v(
274
281
  "header fixed top-0 z-10 start-0 flex items-stretch shrink-0 end-0 pe-[var(--removed-body-scroll-bar-size,0px)] transition-[background-color,border-color,backdrop-filter] duration-200",
275
- x ? "bg-background/80 backdrop-blur-xl border-b border-border" : "bg-transparent border-b border-transparent"
282
+ g ? "bg-background/80 backdrop-blur-xl border-b border-border" : "bg-transparent border-b border-transparent"
276
283
  ),
277
284
  children: /* @__PURE__ */ t(te, { className: "flex justify-between items-stretch lg:gap-4", children: [
278
285
  /* @__PURE__ */ t("div", { className: "flex gap-2.5 lg:hidden items-center", children: [
279
286
  /* @__PURE__ */ e(
280
- A,
287
+ T,
281
288
  {
282
- to: s.href ?? "/",
289
+ to: o.href ?? "/",
283
290
  className: "shrink-0 font-semibold text-base text-foreground",
284
- children: s.title
291
+ children: o.title
285
292
  }
286
293
  ),
287
294
  I && /* @__PURE__ */ t(
@@ -290,7 +297,7 @@ function Xe({
290
297
  open: C,
291
298
  onOpenChange: b,
292
299
  children: [
293
- /* @__PURE__ */ e(Ce, { asChild: !0, children: /* @__PURE__ */ e(z, { variant: "ghost", mode: "icon", children: /* @__PURE__ */ e(de, { className: "text-muted-foreground" }) }) }),
300
+ /* @__PURE__ */ e(Ce, { asChild: !0, children: /* @__PURE__ */ e(D, { variant: "ghost", mode: "icon", children: /* @__PURE__ */ e(de, { className: "text-muted-foreground" }) }) }),
294
301
  /* @__PURE__ */ t(
295
302
  Se,
296
303
  {
@@ -302,7 +309,7 @@ function Xe({
302
309
  /* @__PURE__ */ e(ke, { className: "p-0 overflow-y-auto", children: /* @__PURE__ */ e(
303
310
  ne,
304
311
  {
305
- menu: i,
312
+ menu: l,
306
313
  disabledBadgeLabel: c
307
314
  }
308
315
  ) })
@@ -313,23 +320,23 @@ function Xe({
313
320
  }
314
321
  )
315
322
  ] }),
316
- /* @__PURE__ */ e("div", { className: "flex items-center grow lg:ms-0 ms-2", children: /* @__PURE__ */ e("h1", { className: "text-sm font-medium hidden lg:block text-foreground", children: l }) }),
323
+ /* @__PURE__ */ e("div", { className: "flex items-center grow lg:ms-0 ms-2", children: /* @__PURE__ */ e("h1", { className: "text-sm font-medium hidden lg:block text-foreground", children: a }) }),
317
324
  /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
318
325
  /* @__PURE__ */ e(
319
- z,
326
+ D,
320
327
  {
321
328
  variant: "ghost",
322
329
  mode: "icon",
323
330
  shape: "circle",
324
- onClick: () => o(!0),
331
+ onClick: () => s(!0),
325
332
  title: "搜索 (⌘K)",
326
333
  className: "size-9 [&_svg]:text-muted-foreground hover:bg-primary/10 hover:[&_svg]:text-primary",
327
334
  children: /* @__PURE__ */ e(me, { className: "size-4.5!" })
328
335
  }
329
336
  ),
330
- /* @__PURE__ */ t(ze, { children: [
331
- /* @__PURE__ */ e(De, { asChild: !0, children: /* @__PURE__ */ t(
332
- z,
337
+ /* @__PURE__ */ t(De, { children: [
338
+ /* @__PURE__ */ e(ze, { asChild: !0, children: /* @__PURE__ */ t(
339
+ D,
333
340
  {
334
341
  variant: "ghost",
335
342
  mode: "icon",
@@ -352,13 +359,13 @@ function Xe({
352
359
  ] })
353
360
  ] }),
354
361
  /* @__PURE__ */ t(
355
- z,
362
+ D,
356
363
  {
357
364
  variant: "ghost",
358
365
  size: "sm",
359
366
  className: "h-6 px-2 text-xs",
360
367
  disabled: N === 0,
361
- onClick: se,
368
+ onClick: oe,
362
369
  children: [
363
370
  /* @__PURE__ */ e(he, { className: "size-3.5" }),
364
371
  "全部已读"
@@ -366,11 +373,11 @@ function Xe({
366
373
  }
367
374
  )
368
375
  ] }),
369
- /* @__PURE__ */ e("div", { className: "max-h-80 overflow-y-auto", children: a.map((n) => /* @__PURE__ */ t(
376
+ /* @__PURE__ */ e("div", { className: "max-h-80 overflow-y-auto", children: i.map((n) => /* @__PURE__ */ t(
370
377
  "button",
371
378
  {
372
379
  type: "button",
373
- onClick: () => oe(n.id),
380
+ onClick: () => se(n.id),
374
381
  className: v(
375
382
  "w-full text-left px-3 py-2.5 border-b border-border last:border-0 hover:bg-muted/60 transition-colors flex gap-2.5",
376
383
  n.unread && "bg-primary/[0.03]"
@@ -412,31 +419,31 @@ function Xe({
412
419
  "button",
413
420
  {
414
421
  type: "button",
415
- onClick: () => p.info("跳转到通知中心(示例)"),
422
+ onClick: () => h.info("跳转到通知中心(示例)"),
416
423
  className: "text-xs text-primary hover:underline inline-flex items-center gap-0.5",
417
424
  children: [
418
425
  "查看全部通知 ",
419
- /* @__PURE__ */ e(K, { className: "size-3.5" })
426
+ /* @__PURE__ */ e(U, { className: "size-3.5" })
420
427
  ]
421
428
  }
422
429
  ) })
423
430
  ] })
424
431
  ] }),
425
432
  /* @__PURE__ */ t(Ie, { children: [
426
- /* @__PURE__ */ e(Te, { asChild: !0, children: /* @__PURE__ */ t(
433
+ /* @__PURE__ */ e(Ae, { asChild: !0, children: /* @__PURE__ */ t(
427
434
  "button",
428
435
  {
429
436
  type: "button",
430
437
  className: "ms-1 flex items-center gap-2 px-2 py-1 rounded-full cursor-pointer hover:bg-muted/60 transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring",
431
438
  children: [
432
- /* @__PURE__ */ e(U, { className: "size-8", children: /* @__PURE__ */ e(H, { className: "bg-primary text-primary-foreground text-xs font-semibold", children: d.initials ?? d.name.slice(0, 1) }) }),
439
+ /* @__PURE__ */ e(O, { className: "size-8", children: /* @__PURE__ */ e(_, { className: "bg-primary text-primary-foreground text-xs font-semibold", children: d.initials ?? d.name.slice(0, 1) }) }),
433
440
  /* @__PURE__ */ e("span", { className: "text-sm hidden md:inline text-foreground", children: d.name })
434
441
  ]
435
442
  }
436
443
  ) }),
437
- /* @__PURE__ */ t(Ae, { align: "end", className: "w-56", children: [
444
+ /* @__PURE__ */ t(Te, { align: "end", className: "w-56", children: [
438
445
  /* @__PURE__ */ t("div", { className: "px-2 py-2 flex items-center gap-2.5", children: [
439
- /* @__PURE__ */ e(U, { className: "size-10", children: /* @__PURE__ */ e(H, { className: "bg-primary text-primary-foreground font-semibold", children: d.initials ?? d.name.slice(0, 1) }) }),
446
+ /* @__PURE__ */ e(O, { className: "size-10", children: /* @__PURE__ */ e(_, { className: "bg-primary text-primary-foreground font-semibold", children: d.initials ?? d.name.slice(0, 1) }) }),
440
447
  /* @__PURE__ */ t("div", { className: "min-w-0", children: [
441
448
  /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-foreground truncate", children: d.name }),
442
449
  d.description && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground truncate", children: d.description })
@@ -447,7 +454,7 @@ function Xe({
447
454
  /* @__PURE__ */ t(
448
455
  k,
449
456
  {
450
- onSelect: () => p.info("打开个人主页(示例)"),
457
+ onSelect: () => h.info("打开个人主页(示例)"),
451
458
  children: [
452
459
  /* @__PURE__ */ e(pe, { className: "size-3.5" }),
453
460
  "个人主页"
@@ -457,9 +464,9 @@ function Xe({
457
464
  /* @__PURE__ */ t(
458
465
  k,
459
466
  {
460
- onSelect: () => p.info("打开我的任务(示例)"),
467
+ onSelect: () => h.info("打开我的任务(示例)"),
461
468
  children: [
462
- /* @__PURE__ */ e(B, { className: "size-3.5" }),
469
+ /* @__PURE__ */ e(H, { className: "size-3.5" }),
463
470
  "我的任务"
464
471
  ]
465
472
  }
@@ -467,7 +474,7 @@ function Xe({
467
474
  /* @__PURE__ */ t(
468
475
  k,
469
476
  {
470
- onSelect: () => p.info("打开账户设置(示例)"),
477
+ onSelect: () => h.info("打开账户设置(示例)"),
471
478
  children: [
472
479
  /* @__PURE__ */ e(fe, { className: "size-3.5" }),
473
480
  "账户设置"
@@ -478,7 +485,7 @@ function Xe({
478
485
  /* @__PURE__ */ t(
479
486
  k,
480
487
  {
481
- onSelect: () => d.permissionsPath ? S(d.permissionsPath) : p.info("打开权限与角色(示例)"),
488
+ onSelect: () => d.permissionsPath ? S(d.permissionsPath) : h.info("打开权限与角色(示例)"),
482
489
  children: [
483
490
  /* @__PURE__ */ e(ge, { className: "size-3.5" }),
484
491
  "权限与角色"
@@ -490,7 +497,7 @@ function Xe({
490
497
  k,
491
498
  {
492
499
  variant: "destructive",
493
- onSelect: () => p.success("已退出登录(示例)"),
500
+ onSelect: () => h.success("已退出登录(示例)"),
494
501
  children: [
495
502
  /* @__PURE__ */ e(xe, { className: "size-3.5" }),
496
503
  "退出登录"
@@ -503,34 +510,34 @@ function Xe({
503
510
  ] })
504
511
  }
505
512
  ),
506
- /* @__PURE__ */ e(Ee, { open: r, onOpenChange: o, children: /* @__PURE__ */ t($e, { className: "p-0 gap-0 sm:max-w-lg overflow-hidden", children: [
507
- /* @__PURE__ */ t(Pe, { className: "sr-only", children: [
508
- /* @__PURE__ */ e(Oe, { children: "全局搜索" }),
509
- /* @__PURE__ */ e(je, { children: h })
513
+ /* @__PURE__ */ e($e, { open: r, onOpenChange: s, children: /* @__PURE__ */ t(Pe, { className: "p-0 gap-0 sm:max-w-lg overflow-hidden", children: [
514
+ /* @__PURE__ */ t(Oe, { className: "sr-only", children: [
515
+ /* @__PURE__ */ e(_e, { children: "全局搜索" }),
516
+ /* @__PURE__ */ e(je, { children: x })
510
517
  ] }),
511
- /* @__PURE__ */ t(_e, { children: [
512
- /* @__PURE__ */ e(Fe, { placeholder: h }),
518
+ /* @__PURE__ */ t(Fe, { children: [
519
+ /* @__PURE__ */ e(Be, { placeholder: x }),
513
520
  /* @__PURE__ */ t(Ke, { children: [
514
- /* @__PURE__ */ e(Be, { children: "没有匹配结果" }),
521
+ /* @__PURE__ */ e(Ue, { children: "没有匹配结果" }),
515
522
  /* @__PURE__ */ e(V, { heading: "快速跳转", children: y.map((n) => /* @__PURE__ */ t(
516
523
  W,
517
524
  {
518
- onSelect: () => n.path ? F(n.path) : p.info("打开:" + n.title),
525
+ onSelect: () => n.path ? K(n.path) : h.info("打开:" + n.title),
519
526
  children: [
520
- /* @__PURE__ */ e(K, { className: "size-3.5 text-muted-foreground" }),
527
+ /* @__PURE__ */ e(U, { className: "size-3.5 text-muted-foreground" }),
521
528
  /* @__PURE__ */ e("span", { children: n.title }),
522
529
  n.hint && /* @__PURE__ */ e("span", { className: "ml-auto text-[10px] font-mono text-muted-foreground", children: n.hint })
523
530
  ]
524
531
  },
525
532
  `${n.title}-${n.path ?? n.hint}`
526
533
  )) }),
527
- /* @__PURE__ */ e(Ue, {}),
534
+ /* @__PURE__ */ e(He, {}),
528
535
  /* @__PURE__ */ e(V, { heading: "最近访问", children: w.map((n) => /* @__PURE__ */ t(
529
536
  W,
530
537
  {
531
- onSelect: () => n.path ? F(n.path) : p.info("打开:" + n.title),
538
+ onSelect: () => n.path ? K(n.path) : h.info("打开:" + n.title),
532
539
  children: [
533
- /* @__PURE__ */ e(B, { className: "size-3.5 text-muted-foreground" }),
540
+ /* @__PURE__ */ e(H, { className: "size-3.5 text-muted-foreground" }),
534
541
  /* @__PURE__ */ e("span", { className: "truncate", children: n.title }),
535
542
  n.hint && /* @__PURE__ */ e("span", { className: "ml-auto text-[10px] text-muted-foreground shrink-0", children: n.hint })
536
543
  ]
@@ -542,36 +549,36 @@ function Xe({
542
549
  ] }) })
543
550
  ] });
544
551
  }
545
- function Ze({ footer: s }) {
546
- return /* @__PURE__ */ e("footer", { className: "footer", children: /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e("div", { className: "flex flex-col md:flex-row justify-center md:justify-between items-center gap-3 py-5", children: /* @__PURE__ */ e("div", { className: "text-muted-foreground text-sm", children: s }) }) }) });
552
+ function tt({ footer: o }) {
553
+ return /* @__PURE__ */ e("footer", { className: "footer", children: /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e("div", { className: "flex flex-col md:flex-row justify-center md:justify-between items-center gap-3 py-5", children: /* @__PURE__ */ e("div", { className: "text-muted-foreground text-sm", children: o }) }) }) });
547
554
  }
548
- function vt({
549
- menu: s,
550
- brand: i = X,
551
- titleFallback: l = "个人工作台",
555
+ function wt({
556
+ menu: o,
557
+ brand: l = X,
558
+ titleFallback: a = "个人工作台",
552
559
  footer: c,
553
- disabledBadgeLabel: h = "Soon",
560
+ disabledBadgeLabel: x = "Soon",
554
561
  searchPlaceholder: y = "搜索页面、缺陷、凭证、成员...",
555
562
  searchQuickNav: w = [],
556
- searchRecent: g = [],
563
+ searchRecent: f = [],
557
564
  notifications: d = [],
558
- user: C = We,
565
+ user: C = Ge,
559
566
  children: b
560
567
  }) {
561
- const r = re(), { pathname: o } = j(), m = O(s, o)?.title ?? l, { settings: L, setOption: S } = ee(), I = { ...X, ...i }, _ = c ?? `${(/* @__PURE__ */ new Date()).getFullYear()} © DemoKit · Demo design system`;
562
- return f(() => {
563
- const x = document.body.classList;
564
- L.layouts.demo1.sidebarCollapse ? x.add("sidebar-collapse") : x.remove("sidebar-collapse");
565
- }, [L.layouts.demo1.sidebarCollapse]), f(() => {
568
+ const r = re(), { pathname: s } = F(), m = j(o, s)?.title ?? a, { settings: L, setOption: S } = ee(), I = { ...X, ...l }, B = c ?? `${(/* @__PURE__ */ new Date()).getFullYear()} © DemoKit · Demo design system`;
569
+ return p(() => {
570
+ const g = document.body.classList;
571
+ L.layouts.demo1.sidebarCollapse ? g.add("sidebar-collapse") : g.remove("sidebar-collapse");
572
+ }, [L.layouts.demo1.sidebarCollapse]), p(() => {
566
573
  S("layout", "demo1");
567
- }, [S]), f(() => {
568
- const x = document.body.classList;
569
- x.add("demo1", "sidebar-fixed", "header-fixed");
574
+ }, [S]), p(() => {
575
+ const g = document.body.classList;
576
+ g.add("demo1", "sidebar-fixed", "header-fixed");
570
577
  const N = window.setTimeout(() => {
571
- x.add("layout-initialized");
578
+ g.add("layout-initialized");
572
579
  }, 1e3);
573
580
  return () => {
574
- x.remove(
581
+ g.remove(
575
582
  "demo1",
576
583
  "sidebar-fixed",
577
584
  "sidebar-collapse",
@@ -579,38 +586,38 @@ function vt({
579
586
  "layout-initialized"
580
587
  ), window.clearTimeout(N);
581
588
  };
582
- }, []), f(() => {
589
+ }, []), p(() => {
583
590
  document.title = m;
584
591
  }, [m]), /* @__PURE__ */ t(Z, { children: [
585
592
  /* @__PURE__ */ e(ye, {}),
586
593
  !r && /* @__PURE__ */ e(
587
- Je,
594
+ Ze,
588
595
  {
589
596
  brand: I,
590
- menu: s,
591
- disabledBadgeLabel: h
597
+ menu: o,
598
+ disabledBadgeLabel: x
592
599
  }
593
600
  ),
594
601
  /* @__PURE__ */ t("div", { className: "wrapper flex grow flex-col", children: [
595
602
  /* @__PURE__ */ e(
596
- Xe,
603
+ et,
597
604
  {
598
605
  brand: I,
599
- menu: s,
606
+ menu: o,
600
607
  title: m,
601
- disabledBadgeLabel: h,
608
+ disabledBadgeLabel: x,
602
609
  searchPlaceholder: y,
603
610
  searchQuickNav: w,
604
- searchRecent: g,
611
+ searchRecent: f,
605
612
  notifications: d,
606
613
  user: C
607
614
  }
608
615
  ),
609
616
  /* @__PURE__ */ e("main", { className: "grow pt-5", role: "content", children: b ?? /* @__PURE__ */ e(Ne, {}) }),
610
- /* @__PURE__ */ e(Ze, { footer: _ })
617
+ /* @__PURE__ */ e(tt, { footer: B })
611
618
  ] })
612
619
  ] });
613
620
  }
614
621
  export {
615
- vt as Demo1Shell
622
+ wt as Demo1Shell
616
623
  };