@plumile/ui 0.1.68 → 0.1.70

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 (176) hide show
  1. package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js +62 -0
  2. package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js.map +1 -0
  3. package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +17 -0
  4. package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js.map +1 -0
  5. package/lib/esm/{backoffice/organisms/backoffice_topbar/BackofficeTopbar.js → admin/organisms/admin_topbar/AdminTopbar.js} +4 -4
  6. package/lib/esm/admin/organisms/admin_topbar/AdminTopbar.js.map +1 -0
  7. package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +8 -0
  8. package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js.map +1 -0
  9. package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js +19 -0
  10. package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js.map +1 -0
  11. package/lib/esm/admin/theme/AdminThemeProvider.js +11 -0
  12. package/lib/esm/admin/theme/AdminThemeProvider.js.map +1 -0
  13. package/lib/esm/admin/theme/adminTheme.css.js +7 -0
  14. package/lib/esm/admin/theme/adminTheme.css.js.map +1 -0
  15. package/lib/esm/atomic/atoms/badge/Badge.js +3 -3
  16. package/lib/esm/atomic/atoms/button/Button.js +1 -1
  17. package/lib/esm/atomic/atoms/checkbox/Checkbox.js +1 -1
  18. package/lib/esm/atomic/atoms/error_message/ErrorMessage.js +1 -1
  19. package/lib/esm/atomic/atoms/formatted-date/FormattedDate.js +4 -4
  20. package/lib/esm/atomic/atoms/label/Label.js +1 -1
  21. package/lib/esm/atomic/atoms/modal/Modal.js +13 -13
  22. package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuDropdown.js +12 -12
  23. package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuPopover.js +20 -20
  24. package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.js +14 -14
  25. package/lib/esm/atomic/molecules/card/Card.js +6 -6
  26. package/lib/esm/atomic/molecules/checkbox_field/CheckboxField.js +1 -1
  27. package/lib/esm/atomic/molecules/dropdown/Dropdown.js +80 -80
  28. package/lib/esm/atomic/molecules/dropdown/Dropdown.js.map +1 -1
  29. package/lib/esm/atomic/molecules/form/Form.js +1 -1
  30. package/lib/esm/atomic/molecules/form_error/FormError.js +1 -1
  31. package/lib/esm/atomic/molecules/highlight/HighlightCode.js +25 -25
  32. package/lib/esm/atomic/molecules/markdown/LazyMarkdownRenderer.js +7 -7
  33. package/lib/esm/atomic/molecules/markdown/MarkdownRenderer.js +33 -33
  34. package/lib/esm/atomic/molecules/markdown/MarkdownRenderer.js.map +1 -1
  35. package/lib/esm/atomic/molecules/markdown/components/LazyMarkdownCodeBlock.js +9 -9
  36. package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +0 -1
  37. package/lib/esm/atomic/molecules/markdown/components/MarkdownCodeBlock.js +7 -7
  38. package/lib/esm/atomic/molecules/markdown/components/MarkdownCodeCopyButton.js +9 -9
  39. package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnotesSection.js +7 -7
  40. package/lib/esm/atomic/molecules/markdown/components/MarkdownMermaidBlock.js +34 -34
  41. package/lib/esm/atomic/molecules/markdown/components/MarkdownParagraph.css.js +1 -0
  42. package/lib/esm/atomic/molecules/markdown/components/MarkdownShikiCodeBlock.js +4 -4
  43. package/lib/esm/atomic/molecules/profile_dropdown/ProfileDropdown.js +25 -25
  44. package/lib/esm/atomic/molecules/toast/ToastProvider.js +15 -15
  45. package/lib/esm/atomic/molecules/toast/ToastViewport.js +15 -15
  46. package/lib/esm/atomic/organisms/login_form/LoginForm.js +1 -1
  47. package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js +34 -34
  48. package/lib/esm/atomic/organisms/sidebar/icons.js +13 -13
  49. package/lib/esm/atomic/templates/auth_layout/AuthLayout.js +1 -1
  50. package/lib/esm/atomic/templates/detail-page/DetailPage.js +49 -0
  51. package/lib/esm/atomic/templates/detail-page/DetailPage.js.map +1 -0
  52. package/lib/esm/atomic/templates/detail-page/detailPage.css.js +8 -0
  53. package/lib/esm/atomic/templates/detail-page/detailPage.css.js.map +1 -0
  54. package/lib/esm/atomic/templates/page-container/PageContainer.js +36 -0
  55. package/lib/esm/atomic/templates/page-container/PageContainer.js.map +1 -0
  56. package/lib/esm/atomic/templates/page-container/pageContainer.css.js +8 -0
  57. package/lib/esm/atomic/templates/page-container/pageContainer.css.js.map +1 -0
  58. package/lib/esm/backoffice/atoms/copyable_text/CopyableText.js +10 -10
  59. package/lib/esm/backoffice/atoms/shortcut_hint/ShortcutHint.js +6 -6
  60. package/lib/esm/backoffice/atoms/tag/Tag.js +7 -7
  61. package/lib/esm/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.js +22 -22
  62. package/lib/esm/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.js +12 -12
  63. package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js +11 -11
  64. package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js +27 -21
  65. package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js.map +1 -1
  66. package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js +2 -2
  67. package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js.map +1 -1
  68. package/lib/esm/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js +12 -12
  69. package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js +9 -9
  70. package/lib/esm/backoffice/molecules/global_search_input/GlobalSearchInput.js +5 -5
  71. package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.js +7 -7
  72. package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js +26 -26
  73. package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js.map +1 -1
  74. package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +11 -11
  75. package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js +20 -20
  76. package/lib/esm/components/data-table/TableCell.js +17 -17
  77. package/lib/esm/components/data-table/VirtualizedConnectionTable.js +27 -27
  78. package/lib/esm/components/layout/AppShell.js +14 -0
  79. package/lib/esm/components/layout/AppShell.js.map +1 -0
  80. package/lib/esm/components/layout/PageShell.js +65 -65
  81. package/lib/esm/components/layout/PageShell.js.map +1 -1
  82. package/lib/esm/components/layout/SettingsLayout.css.js +8 -0
  83. package/lib/esm/components/layout/SettingsLayout.css.js.map +1 -0
  84. package/lib/esm/{backoffice/templates/settings_template/SettingsTemplate.js → components/layout/SettingsLayout.js} +5 -5
  85. package/lib/esm/components/layout/SettingsLayout.js.map +1 -0
  86. package/lib/esm/components/layout/SplitViewLayout.css.js +8 -0
  87. package/lib/esm/components/layout/SplitViewLayout.css.js.map +1 -0
  88. package/lib/esm/{backoffice/templates/split_view_template/SplitViewTemplate.js → components/layout/SplitViewLayout.js} +5 -5
  89. package/lib/esm/components/layout/SplitViewLayout.js.map +1 -0
  90. package/lib/esm/components/select/SimpleSelect.js +23 -23
  91. package/lib/esm/index.js +109 -106
  92. package/lib/esm/node_modules/react-shiki/dist/chunk-QPJZGYHO.js +23 -23
  93. package/lib/esm/node_modules/react-shiki/dist/chunk-QPJZGYHO.js.map +1 -1
  94. package/lib/esm/style.css +1 -1
  95. package/lib/esm/theme/ThemeProvider.js +11 -11
  96. package/lib/esm/theme/VisuallyHidden.js +3 -3
  97. package/lib/esm/theme/index.js +9 -9
  98. package/lib/types/{backoffice/organisms/backoffice_sidebar/BackofficeSidebar.d.ts → admin/organisms/admin_sidebar/AdminSidebar.d.ts} +7 -7
  99. package/lib/types/admin/organisms/admin_sidebar/AdminSidebar.d.ts.map +1 -0
  100. package/lib/types/{backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.d.ts → admin/organisms/admin_sidebar/adminSidebar.css.d.ts} +1 -1
  101. package/lib/types/admin/organisms/admin_sidebar/adminSidebar.css.d.ts.map +1 -0
  102. package/lib/types/admin/organisms/admin_topbar/AdminTopbar.d.ts +10 -0
  103. package/lib/types/admin/organisms/admin_topbar/AdminTopbar.d.ts.map +1 -0
  104. package/lib/types/{backoffice/organisms/backoffice_topbar/backofficeTopbar.css.d.ts → admin/organisms/admin_topbar/adminTopbar.css.d.ts} +1 -1
  105. package/lib/types/admin/organisms/admin_topbar/adminTopbar.css.d.ts.map +1 -0
  106. package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts +14 -0
  107. package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts.map +1 -0
  108. package/lib/types/admin/theme/AdminThemeProvider.d.ts +7 -0
  109. package/lib/types/admin/theme/AdminThemeProvider.d.ts.map +1 -0
  110. package/lib/types/admin/theme/adminTheme.css.d.ts +2 -0
  111. package/lib/types/admin/theme/adminTheme.css.d.ts.map +1 -0
  112. package/lib/types/atomic/templates/detail-page/DetailPage.d.ts +19 -0
  113. package/lib/types/atomic/templates/detail-page/DetailPage.d.ts.map +1 -0
  114. package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts +9 -0
  115. package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts.map +1 -0
  116. package/lib/types/atomic/templates/page-container/PageContainer.d.ts +14 -0
  117. package/lib/types/atomic/templates/page-container/PageContainer.d.ts.map +1 -0
  118. package/lib/types/atomic/templates/page-container/pageContainer.css.d.ts +7 -0
  119. package/lib/types/atomic/templates/page-container/pageContainer.css.d.ts.map +1 -0
  120. package/lib/types/backoffice/molecules/backoffice_page_header/BackofficePageHeader.d.ts +2 -1
  121. package/lib/types/backoffice/molecules/backoffice_page_header/BackofficePageHeader.d.ts.map +1 -1
  122. package/lib/types/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.d.ts +2 -0
  123. package/lib/types/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.d.ts.map +1 -1
  124. package/lib/types/components/layout/AppShell.d.ts +12 -0
  125. package/lib/types/components/layout/AppShell.d.ts.map +1 -0
  126. package/lib/types/{backoffice/templates/settings_template/settingsTemplate.css.d.ts → components/layout/SettingsLayout.css.d.ts} +1 -1
  127. package/lib/types/components/layout/SettingsLayout.css.d.ts.map +1 -0
  128. package/lib/types/components/layout/SettingsLayout.d.ts +11 -0
  129. package/lib/types/components/layout/SettingsLayout.d.ts.map +1 -0
  130. package/lib/types/{backoffice/templates/split_view_template/splitViewTemplate.css.d.ts → components/layout/SplitViewLayout.css.d.ts} +1 -1
  131. package/lib/types/components/layout/SplitViewLayout.css.d.ts.map +1 -0
  132. package/lib/types/components/layout/SplitViewLayout.d.ts +11 -0
  133. package/lib/types/components/layout/SplitViewLayout.d.ts.map +1 -0
  134. package/lib/types/index.d.ts +11 -8
  135. package/lib/types/index.d.ts.map +1 -1
  136. package/package.json +10 -10
  137. package/lib/esm/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.js +0 -14
  138. package/lib/esm/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.js.map +0 -1
  139. package/lib/esm/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.js +0 -62
  140. package/lib/esm/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.js.map +0 -1
  141. package/lib/esm/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.js +0 -17
  142. package/lib/esm/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.js.map +0 -1
  143. package/lib/esm/backoffice/organisms/backoffice_topbar/BackofficeTopbar.js.map +0 -1
  144. package/lib/esm/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.js +0 -8
  145. package/lib/esm/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.js.map +0 -1
  146. package/lib/esm/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.js +0 -19
  147. package/lib/esm/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.js.map +0 -1
  148. package/lib/esm/backoffice/templates/settings_template/SettingsTemplate.js.map +0 -1
  149. package/lib/esm/backoffice/templates/settings_template/settingsTemplate.css.js +0 -8
  150. package/lib/esm/backoffice/templates/settings_template/settingsTemplate.css.js.map +0 -1
  151. package/lib/esm/backoffice/templates/split_view_template/SplitViewTemplate.js.map +0 -1
  152. package/lib/esm/backoffice/templates/split_view_template/splitViewTemplate.css.js +0 -8
  153. package/lib/esm/backoffice/templates/split_view_template/splitViewTemplate.css.js.map +0 -1
  154. package/lib/esm/backoffice/theme/BackofficeThemeProvider.js +0 -11
  155. package/lib/esm/backoffice/theme/BackofficeThemeProvider.js.map +0 -1
  156. package/lib/esm/backoffice/theme/backofficeTheme.css.js +0 -7
  157. package/lib/esm/backoffice/theme/backofficeTheme.css.js.map +0 -1
  158. package/lib/types/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.d.ts +0 -12
  159. package/lib/types/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.d.ts.map +0 -1
  160. package/lib/types/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.d.ts.map +0 -1
  161. package/lib/types/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.d.ts.map +0 -1
  162. package/lib/types/backoffice/organisms/backoffice_topbar/BackofficeTopbar.d.ts +0 -10
  163. package/lib/types/backoffice/organisms/backoffice_topbar/BackofficeTopbar.d.ts.map +0 -1
  164. package/lib/types/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.d.ts.map +0 -1
  165. package/lib/types/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.d.ts +0 -14
  166. package/lib/types/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.d.ts.map +0 -1
  167. package/lib/types/backoffice/templates/settings_template/SettingsTemplate.d.ts +0 -11
  168. package/lib/types/backoffice/templates/settings_template/SettingsTemplate.d.ts.map +0 -1
  169. package/lib/types/backoffice/templates/settings_template/settingsTemplate.css.d.ts.map +0 -1
  170. package/lib/types/backoffice/templates/split_view_template/SplitViewTemplate.d.ts +0 -11
  171. package/lib/types/backoffice/templates/split_view_template/SplitViewTemplate.d.ts.map +0 -1
  172. package/lib/types/backoffice/templates/split_view_template/splitViewTemplate.css.d.ts.map +0 -1
  173. package/lib/types/backoffice/theme/BackofficeThemeProvider.d.ts +0 -7
  174. package/lib/types/backoffice/theme/BackofficeThemeProvider.d.ts.map +0 -1
  175. package/lib/types/backoffice/theme/backofficeTheme.css.d.ts +0 -2
  176. package/lib/types/backoffice/theme/backofficeTheme.css.d.ts.map +0 -1
@@ -3,14 +3,14 @@ import { Input as t } from "../../../atomic/atoms/input/Input.js";
3
3
  import { ModalCloseSvg as n } from "../../../icons/ModalCloseSvg.js";
4
4
  import { backdrop as r, closeButton as i, drawer as a, drawerContainer as o, header as s, searchRow as c, section as l, sectionDescription as u, sectionHeader as d, sectionItem as f, sectionItems as p, sectionTitle as m, sections as h, subtitle as g, title as _, titleBlock as v } from "./backofficeFilterDrawer.css.js";
5
5
  import "../../../index.js";
6
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
7
- import { useEffect as S } from "react";
6
+ import { useEffect as y } from "react";
7
+ import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
8
8
  import { useTranslation as C } from "react-i18next";
9
9
  import { createPortal as w } from "react-dom";
10
10
  //#region src/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.tsx
11
11
  var T = ({ isOpen: T, title: E, sections: D, searchValue: O, onSearchChange: k, onClose: A, onReset: j }) => {
12
12
  let { t: M } = C("ui"), N = E ?? M("backoffice.filterDrawer.title");
13
- if (S(() => {
13
+ if (y(() => {
14
14
  let e = (e) => {
15
15
  e.key === "Escape" && T && A();
16
16
  };
@@ -19,7 +19,7 @@ var T = ({ isOpen: T, title: E, sections: D, searchValue: O, onSearchChange: k,
19
19
  };
20
20
  }, [T, A]), !T) return null;
21
21
  let P = D.reduce((e, t) => e + t.items.length, 0), F = null;
22
- k != null && (F = /* @__PURE__ */ b(t, {
22
+ k != null && (F = /* @__PURE__ */ x(t, {
23
23
  value: O ?? "",
24
24
  onChange: (e) => {
25
25
  k(e.target.value);
@@ -29,7 +29,7 @@ var T = ({ isOpen: T, title: E, sections: D, searchValue: O, onSearchChange: k,
29
29
  fullWidth: !0
30
30
  }));
31
31
  let I = null;
32
- j != null && (I = /* @__PURE__ */ b(e, {
32
+ j != null && (I = /* @__PURE__ */ x(e, {
33
33
  type: "button",
34
34
  variant: "secondary",
35
35
  size: "small",
@@ -38,13 +38,13 @@ var T = ({ isOpen: T, title: E, sections: D, searchValue: O, onSearchChange: k,
38
38
  }));
39
39
  let L = M("backoffice.filterDrawer.ariaLabel");
40
40
  typeof N == "string" && (L = N);
41
- let R = /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("div", {
41
+ let R = /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", {
42
42
  className: r,
43
43
  onClick: A
44
- }), /* @__PURE__ */ b("div", {
44
+ }), /* @__PURE__ */ x("div", {
45
45
  className: o,
46
46
  onClick: A,
47
- children: /* @__PURE__ */ x("aside", {
47
+ children: /* @__PURE__ */ S("aside", {
48
48
  className: a,
49
49
  role: "dialog",
50
50
  "aria-modal": "true",
@@ -53,51 +53,51 @@ var T = ({ isOpen: T, title: E, sections: D, searchValue: O, onSearchChange: k,
53
53
  e.stopPropagation();
54
54
  },
55
55
  children: [
56
- /* @__PURE__ */ x("div", {
56
+ /* @__PURE__ */ S("div", {
57
57
  className: s,
58
- children: [/* @__PURE__ */ x("div", {
58
+ children: [/* @__PURE__ */ S("div", {
59
59
  className: v,
60
- children: [/* @__PURE__ */ b("div", {
60
+ children: [/* @__PURE__ */ x("div", {
61
61
  className: _,
62
62
  children: N
63
- }), /* @__PURE__ */ b("div", {
63
+ }), /* @__PURE__ */ x("div", {
64
64
  className: g,
65
65
  children: M("backoffice.filterDrawer.subtitle", { count: P })
66
66
  })]
67
- }), /* @__PURE__ */ b("button", {
67
+ }), /* @__PURE__ */ x("button", {
68
68
  type: "button",
69
69
  className: i,
70
70
  onClick: A,
71
71
  "aria-label": M("backoffice.filterDrawer.closeAriaLabel"),
72
- children: /* @__PURE__ */ b(n, {
72
+ children: /* @__PURE__ */ x(n, {
73
73
  width: 18,
74
74
  height: 18,
75
75
  "aria-hidden": "true"
76
76
  })
77
77
  })]
78
78
  }),
79
- /* @__PURE__ */ x("div", {
79
+ /* @__PURE__ */ S("div", {
80
80
  className: c,
81
81
  children: [F, I]
82
82
  }),
83
- /* @__PURE__ */ b("div", {
83
+ /* @__PURE__ */ x("div", {
84
84
  className: h,
85
85
  children: D.map((e) => {
86
86
  let t = null;
87
- return e.description != null && (t = /* @__PURE__ */ b("div", {
87
+ return e.description != null && (t = /* @__PURE__ */ x("div", {
88
88
  className: u,
89
89
  children: e.description
90
- })), /* @__PURE__ */ x("section", {
90
+ })), /* @__PURE__ */ S("section", {
91
91
  className: l,
92
- children: [/* @__PURE__ */ x("div", {
92
+ children: [/* @__PURE__ */ S("div", {
93
93
  className: d,
94
- children: [/* @__PURE__ */ b("div", {
94
+ children: [/* @__PURE__ */ x("div", {
95
95
  className: m,
96
96
  children: e.title
97
97
  }), t]
98
- }), /* @__PURE__ */ b("div", {
98
+ }), /* @__PURE__ */ x("div", {
99
99
  className: p,
100
- children: e.items.map((e) => /* @__PURE__ */ b("div", {
100
+ children: e.items.map((e) => /* @__PURE__ */ x("div", {
101
101
  className: f,
102
102
  children: e.node
103
103
  }, e.id))
@@ -2,8 +2,8 @@ import { cx as e } from "../../../theme/tools.js";
2
2
  import { Button as t } from "../../../atomic/atoms/button/Button.js";
3
3
  import { actions as n, container as r, header as i, pre as a, title as o, truncated as s } from "./backofficeJsonViewer.css.js";
4
4
  import "../../../index.js";
5
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
- import { useCallback as u, useMemo as d, useState as f } from "react";
5
+ import { useCallback as c, useMemo as l, useState as u } from "react";
6
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
7
7
  //#region src/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.tsx
8
8
  var p = (e) => {
9
9
  try {
@@ -15,7 +15,7 @@ var p = (e) => {
15
15
  return !1;
16
16
  }
17
17
  }, m = ({ value: m, title: h = "Raw JSON", className: g, maxHeight: _, truncate: v = !1, truncateLabel: y = "Collapse", expandLabel: b = "Expand", copyLabel: x = "Copy", copiedLabel: S = "Copied" }) => {
18
- let [C, w] = f(v), [T, E] = f(!1), D = d(() => {
18
+ let [C, w] = u(v), [T, E] = u(!1), D = l(() => {
19
19
  try {
20
20
  return JSON.stringify(m, null, 2);
21
21
  } catch (e) {
@@ -25,7 +25,7 @@ var p = (e) => {
25
25
  message: t
26
26
  });
27
27
  }
28
- }, [m]), O = u(async () => {
28
+ }, [m]), O = c(async () => {
29
29
  let e = !1;
30
30
  try {
31
31
  typeof navigator < "u" && (await navigator.clipboard.writeText(D), e = !0);
@@ -35,21 +35,21 @@ var p = (e) => {
35
35
  e ||= p(D), e && (E(!0), window.setTimeout(() => {
36
36
  E(!1);
37
37
  }, 1400));
38
- }, [D]), k = d(() => {
38
+ }, [D]), k = l(() => {
39
39
  if (_ != null) return { maxHeight: _ };
40
40
  }, [_]), A = x;
41
41
  T && (A = S);
42
42
  let j = y;
43
- return C && (j = b), /* @__PURE__ */ l("div", {
43
+ return C && (j = b), /* @__PURE__ */ f("div", {
44
44
  className: e(r, g),
45
- children: [/* @__PURE__ */ l("div", {
45
+ children: [/* @__PURE__ */ f("div", {
46
46
  className: i,
47
- children: [/* @__PURE__ */ c("span", {
47
+ children: [/* @__PURE__ */ d("span", {
48
48
  className: o,
49
49
  children: h
50
- }), /* @__PURE__ */ l("div", {
50
+ }), /* @__PURE__ */ f("div", {
51
51
  className: n,
52
- children: [/* @__PURE__ */ c(t, {
52
+ children: [/* @__PURE__ */ d(t, {
53
53
  type: "button",
54
54
  variant: "secondary",
55
55
  size: "small",
@@ -57,7 +57,7 @@ var p = (e) => {
57
57
  O().catch(() => {});
58
58
  },
59
59
  children: A
60
- }), /* @__PURE__ */ c(t, {
60
+ }), /* @__PURE__ */ d(t, {
61
61
  type: "button",
62
62
  variant: "secondary",
63
63
  size: "small",
@@ -67,7 +67,7 @@ var p = (e) => {
67
67
  children: j
68
68
  })]
69
69
  })]
70
- }), /* @__PURE__ */ c("pre", {
70
+ }), /* @__PURE__ */ d("pre", {
71
71
  className: e(a, { [s]: C }),
72
72
  style: k,
73
73
  children: D
@@ -1,8 +1,8 @@
1
1
  import "./LazyBackofficeJsonViewer.css.js";
2
- import { jsx as e } from "react/jsx-runtime";
3
- import { Suspense as t, lazy as n } from "react";
2
+ import { Suspense as e, lazy as t } from "react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
4
  //#region src/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.tsx
5
- var r = n(async () => ({ default: (await import("./BackofficeJsonViewer.js")).BackofficeJsonViewer })), i = (e) => {
5
+ var r = t(async () => ({ default: (await import("./BackofficeJsonViewer.js")).BackofficeJsonViewer })), i = (e) => {
6
6
  try {
7
7
  return JSON.stringify(e, null, 2);
8
8
  } catch (e) {
@@ -12,15 +12,15 @@ var r = n(async () => ({ default: (await import("./BackofficeJsonViewer.js")).Ba
12
12
  message: t
13
13
  });
14
14
  }
15
- }, a = ({ value: t, className: n }) => /* @__PURE__ */ e("pre", {
16
- className: n ?? "_13lprza0",
17
- children: i(t)
18
- }), o = (n) => /* @__PURE__ */ e(t, {
19
- fallback: /* @__PURE__ */ e(a, {
20
- value: n.value,
21
- className: n.className
15
+ }, a = ({ value: e, className: t }) => /* @__PURE__ */ n("pre", {
16
+ className: t ?? "_13lprza0",
17
+ children: i(e)
18
+ }), o = (t) => /* @__PURE__ */ n(e, {
19
+ fallback: /* @__PURE__ */ n(a, {
20
+ value: t.value,
21
+ className: t.className
22
22
  }),
23
- children: /* @__PURE__ */ e(r, { ...n })
23
+ children: /* @__PURE__ */ n(r, { ...t })
24
24
  });
25
25
  //#endregion
26
26
  export { o as LazyBackofficeJsonViewer, o as default };
@@ -1,31 +1,37 @@
1
1
  import { cx as e } from "../../../theme/tools.js";
2
- import { container as t, left as n, title as r, titleRow as i } from "./backofficePageHeader.css.js";
2
+ import { container as t, headerRow as n, left as r, title as i, titleRow as a } from "./backofficePageHeader.css.js";
3
3
  import "../../../index.js";
4
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
4
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
5
  //#region src/backoffice/molecules/backoffice_page_header/BackofficePageHeader.tsx
6
- var s = ({ title: s, subtitle: c, actions: l, meta: u, className: d }) => /* @__PURE__ */ o("div", {
7
- className: e(t, d),
8
- children: [/* @__PURE__ */ o("div", {
9
- className: n,
10
- children: [/* @__PURE__ */ o("div", {
11
- className: i,
12
- children: [/* @__PURE__ */ a("h1", {
13
- className: r,
14
- children: s
15
- }), u != null && /* @__PURE__ */ a("div", {
16
- className: "_1puq2a85",
17
- children: u
6
+ var c = ({ title: c, subtitle: l, actions: u, meta: d, leftActions: f, className: p }) => /* @__PURE__ */ s("div", {
7
+ className: e(t, p),
8
+ children: [/* @__PURE__ */ s("div", {
9
+ className: r,
10
+ children: [/* @__PURE__ */ s("div", {
11
+ className: n,
12
+ children: [f != null && /* @__PURE__ */ o("div", {
13
+ className: "_1puq2a83",
14
+ children: f
15
+ }), /* @__PURE__ */ s("div", {
16
+ className: a,
17
+ children: [/* @__PURE__ */ o("h1", {
18
+ className: i,
19
+ children: c
20
+ }), d != null && /* @__PURE__ */ o("div", {
21
+ className: "_1puq2a87",
22
+ children: d
23
+ })]
18
24
  })]
19
- }), c != null && (typeof c != "string" || c.trim() !== "") && /* @__PURE__ */ a("p", {
20
- className: "_1puq2a84",
21
- children: c
25
+ }), l != null && (typeof l != "string" || l.trim() !== "") && /* @__PURE__ */ o("p", {
26
+ className: "_1puq2a86",
27
+ children: l
22
28
  })]
23
- }), l != null && /* @__PURE__ */ a("div", {
24
- className: "_1puq2a86",
25
- children: l
29
+ }), u != null && /* @__PURE__ */ o("div", {
30
+ className: "_1puq2a88",
31
+ children: u
26
32
  })]
27
33
  });
28
34
  //#endregion
29
- export { s as BackofficePageHeader, s as default };
35
+ export { c as BackofficePageHeader, c as default };
30
36
 
31
37
  //# sourceMappingURL=BackofficePageHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BackofficePageHeader.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/BackofficePageHeader.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '@plumile/ui';\n\nimport * as styles from './backofficePageHeader.css.js';\n\nexport type BackofficePageHeaderProps = {\n title: string;\n subtitle?: ReactNode;\n actions?: ReactNode;\n meta?: ReactNode;\n className?: string;\n};\n\nexport const BackofficePageHeader = ({\n title,\n subtitle,\n actions,\n meta,\n className,\n}: BackofficePageHeaderProps): JSX.Element => {\n return (\n <div className={cx(styles.container, className)}>\n <div className={styles.left}>\n <div className={styles.titleRow}>\n <h1 className={styles.title}>{title}</h1>\n {meta != null && <div className={styles.metaRow}>{meta}</div>}\n </div>\n {subtitle != null &&\n (typeof subtitle !== 'string' || subtitle.trim() !== '') && (\n <p className={styles.subtitle}>{subtitle}</p>\n )}\n </div>\n {actions != null && <div className={styles.actions}>{actions}</div>}\n </div>\n );\n};\n\nexport default BackofficePageHeader;\n"],"mappings":";;;;;AAcA,IAAa,KAAwB,EACnC,OAAA,GACA,UAAA,GACA,SAAA,GACA,SACA,mBAGE,kBAAC,OAAD;CAAK,WAAW,EAAG,GAAkB,EAAU;WAA/C,CACE,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACE,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACE,kBAAC,MAAD;IAAI,WAAW;cAAe;IAAW,CAAA,EACxC,KAAQ,QAAQ,kBAAC,OAAD;IAAK,WAAW;cAAiB;IAAW,CAAA,CACzD;MACL,KAAY,SACV,OAAO,KAAa,YAAY,EAAS,MAAM,KAAK,OACnD,kBAAC,KAAD;GAAG,WAAW;aAAkB;GAAa,CAAA,CAE7C;KACL,KAAW,QAAQ,kBAAC,OAAD;EAAK,WAAW;YAAiB;EAAc,CAAA,CAC/D"}
1
+ {"version":3,"file":"BackofficePageHeader.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/BackofficePageHeader.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '@plumile/ui';\n\nimport * as styles from './backofficePageHeader.css.js';\n\nexport type BackofficePageHeaderProps = {\n title: string;\n subtitle?: ReactNode;\n actions?: ReactNode;\n meta?: ReactNode;\n leftActions?: ReactNode;\n className?: string;\n};\n\nexport const BackofficePageHeader = ({\n title,\n subtitle,\n actions,\n meta,\n leftActions,\n className,\n}: BackofficePageHeaderProps): JSX.Element => {\n return (\n <div className={cx(styles.container, className)}>\n <div className={styles.left}>\n <div className={styles.headerRow}>\n {leftActions != null && (\n <div className={styles.leftActions}>{leftActions}</div>\n )}\n <div className={styles.titleRow}>\n <h1 className={styles.title}>{title}</h1>\n {meta != null && <div className={styles.metaRow}>{meta}</div>}\n </div>\n </div>\n {subtitle != null &&\n (typeof subtitle !== 'string' || subtitle.trim() !== '') && (\n <p className={styles.subtitle}>{subtitle}</p>\n )}\n </div>\n {actions != null && <div className={styles.actions}>{actions}</div>}\n </div>\n );\n};\n\nexport default BackofficePageHeader;\n"],"mappings":";;;;;AAeA,IAAa,KAAwB,EACnC,OAAA,GACA,UAAA,GACA,SAAA,GACA,SACA,aAAA,GACA,mBAGE,kBAAC,OAAD;CAAK,WAAW,EAAG,GAAkB,EAAU;WAA/C,CACE,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACE,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACG,KAAe,QACd,kBAAC,OAAD;IAAK,WAAW;cAAqB;IAAkB,CAAA,EAEzD,kBAAC,OAAD;IAAK,WAAW;cAAhB,CACE,kBAAC,MAAD;KAAI,WAAW;eAAe;KAAW,CAAA,EACxC,KAAQ,QAAQ,kBAAC,OAAD;KAAK,WAAW;eAAiB;KAAW,CAAA,CACzD;MACF;MACL,KAAY,SACV,OAAO,KAAa,YAAY,EAAS,MAAM,KAAK,OACnD,kBAAC,KAAD;GAAG,WAAW;aAAkB;GAAa,CAAA,CAE7C;KACL,KAAW,QAAQ,kBAAC,OAAD;EAAK,WAAW;YAAiB;EAAc,CAAA,CAC/D"}
@@ -1,7 +1,7 @@
1
1
  /* empty css */
2
2
  //#region src/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.ts
3
- var e = "_1puq2a80", t = "_1puq2a81", n = "_1puq2a82", r = "_1puq2a83", i = "_1puq2a84", a = "_1puq2a85", o = "_1puq2a86";
3
+ var e = "_1puq2a80", t = "_1puq2a81", n = "_1puq2a82", r = "_1puq2a83", i = "_1puq2a84", a = "_1puq2a85", o = "_1puq2a86", s = "_1puq2a87", c = "_1puq2a88";
4
4
  //#endregion
5
- export { o as actions, e as container, t as left, a as metaRow, i as subtitle, r as title, n as titleRow };
5
+ export { c as actions, e as container, n as headerRow, t as left, r as leftActions, s as metaRow, o as subtitle, a as title, i as titleRow };
6
6
 
7
7
  //# sourceMappingURL=backofficePageHeader.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"backofficePageHeader.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const container = style({\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n gap: vars.spacing[4],\n flexWrap: 'wrap',\n});\n\nexport const left = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[2],\n minWidth: 0,\n flex: 1,\n});\n\nexport const titleRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n\nexport const title = style({\n fontSize: vars.fontSize['2xl'],\n lineHeight: vars.lineHeight['2xl'],\n fontWeight: vars.fontWeight.semibold,\n color: vars.colors.text,\n margin: 0,\n});\n\nexport const subtitle = style({\n margin: 0,\n fontSize: vars.fontSize.base,\n lineHeight: vars.lineHeight.base,\n color: vars.colors.textSecondary,\n});\n\nexport const metaRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n\nexport const actions = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n"],"mappings":""}
1
+ {"version":3,"file":"backofficePageHeader.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const container = style({\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n gap: vars.spacing[4],\n flexWrap: 'wrap',\n});\n\nexport const left = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[2],\n minWidth: 0,\n flex: 1,\n});\n\nexport const headerRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[3],\n flexWrap: 'wrap',\n minWidth: 0,\n});\n\nexport const leftActions = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n flexShrink: 0,\n});\n\nexport const titleRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n minWidth: 0,\n});\n\nexport const title = style({\n fontSize: vars.fontSize['2xl'],\n lineHeight: vars.lineHeight['2xl'],\n fontWeight: vars.fontWeight.semibold,\n color: vars.colors.text,\n margin: 0,\n});\n\nexport const subtitle = style({\n margin: 0,\n fontSize: vars.fontSize.base,\n lineHeight: vars.lineHeight.base,\n color: vars.colors.textSecondary,\n});\n\nexport const metaRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n\nexport const actions = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n"],"mappings":""}
@@ -3,13 +3,13 @@ import { Button as t } from "../../../atomic/atoms/button/Button.js";
3
3
  import { container as n, triggerIcon as r, triggerIconOpen as i } from "./backofficeRelationsMenu.css.js";
4
4
  import { ChevronDownIcon as a } from "../../../svg/ChevronDownIcon.js";
5
5
  import "../../../index.js";
6
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
- import { useEffect as c, useRef as l, useState as u } from "react";
6
+ import { useEffect as o, useRef as s, useState as c } from "react";
7
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
8
  import { Link as d } from "@plumile/router";
9
9
  //#region src/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.tsx
10
10
  var f = ({ label: f = "Relations", items: p }) => {
11
- let [m, h] = u(!1), g = l(null);
12
- return c(() => {
11
+ let [m, h] = c(!1), g = s(null);
12
+ return o(() => {
13
13
  if (!m) return;
14
14
  let e = (e) => {
15
15
  e.target instanceof Node && (g.current?.contains(e.target) || h(!1));
@@ -17,16 +17,16 @@ var f = ({ label: f = "Relations", items: p }) => {
17
17
  return document.addEventListener("pointerdown", e), () => {
18
18
  document.removeEventListener("pointerdown", e);
19
19
  };
20
- }, [m]), p.length === 0 ? /* @__PURE__ */ o(t, {
20
+ }, [m]), p.length === 0 ? /* @__PURE__ */ l(t, {
21
21
  type: "button",
22
22
  variant: "secondary",
23
23
  size: "small",
24
24
  disabled: !0,
25
25
  children: f
26
- }) : /* @__PURE__ */ s("div", {
26
+ }) : /* @__PURE__ */ u("div", {
27
27
  className: n,
28
28
  ref: g,
29
- children: [/* @__PURE__ */ s(t, {
29
+ children: [/* @__PURE__ */ u(t, {
30
30
  type: "button",
31
31
  variant: "secondary",
32
32
  size: "small",
@@ -35,25 +35,25 @@ var f = ({ label: f = "Relations", items: p }) => {
35
35
  },
36
36
  "aria-expanded": m,
37
37
  "aria-haspopup": "menu",
38
- children: [f, /* @__PURE__ */ o(a, {
38
+ children: [f, /* @__PURE__ */ l(a, {
39
39
  size: 14,
40
40
  className: e(r, { [i]: m })
41
41
  })]
42
- }), m && /* @__PURE__ */ o("div", {
42
+ }), m && /* @__PURE__ */ l("div", {
43
43
  className: "_16f61fj3",
44
44
  role: "menu",
45
45
  children: p.map((e) => {
46
46
  let t = null;
47
- return typeof e.count == "number" && (t = e.count), /* @__PURE__ */ s(d, {
47
+ return typeof e.count == "number" && (t = e.count), /* @__PURE__ */ u(d, {
48
48
  to: e.href,
49
49
  className: "_16f61fj4",
50
50
  onClick: (t) => {
51
51
  h(!1), (e.onClick?.(t))?.catch(() => {});
52
52
  },
53
- children: [/* @__PURE__ */ o("span", {
53
+ children: [/* @__PURE__ */ l("span", {
54
54
  className: "_16f61fj5",
55
55
  children: e.label
56
- }), t != null && /* @__PURE__ */ o("span", {
56
+ }), t != null && /* @__PURE__ */ l("span", {
57
57
  className: "_16f61fj6",
58
58
  children: t
59
59
  })]
@@ -2,13 +2,13 @@ import { Button as e } from "../../../atomic/atoms/button/Button.js";
2
2
  import { ErrorMessage as t } from "../../../atomic/atoms/error_message/ErrorMessage.js";
3
3
  import { Modal as n } from "../../../atomic/atoms/modal/Modal.js";
4
4
  import { body as r, footer as i } from "./confirmDialog.css.js";
5
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
- import { useCallback as s, useState as c } from "react";
5
+ import { useCallback as a, useState as o } from "react";
6
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
7
  //#region src/backoffice/molecules/confirm_dialog/ConfirmDialog.tsx
8
8
  var l = ({ isOpen: l, title: u, children: d, confirmLabel: f = "Confirm", cancelLabel: p = "Cancel", confirmTone: m = "default", onClose: h, onConfirm: g, closeOnConfirm: _ = !0 }) => {
9
- let [v, y] = c(!1), [b, x] = c(null), S = s(() => {
9
+ let [v, y] = o(!1), [b, x] = o(null), S = a(() => {
10
10
  v || (x(null), h());
11
- }, [v, h]), C = s(async () => {
11
+ }, [v, h]), C = a(async () => {
12
12
  if (!v) {
13
13
  x(null), y(!0);
14
14
  try {
@@ -27,15 +27,15 @@ var l = ({ isOpen: l, title: u, children: d, confirmLabel: f = "Confirm", cancel
27
27
  g
28
28
  ]), w = "primary";
29
29
  m === "danger" && (w = "danger");
30
- let T = /* @__PURE__ */ o("div", {
30
+ let T = /* @__PURE__ */ c("div", {
31
31
  className: i,
32
- children: [/* @__PURE__ */ a(e, {
32
+ children: [/* @__PURE__ */ s(e, {
33
33
  type: "button",
34
34
  variant: "secondary",
35
35
  onClick: S,
36
36
  disabled: v,
37
37
  children: p
38
- }), /* @__PURE__ */ a(e, {
38
+ }), /* @__PURE__ */ s(e, {
39
39
  type: "button",
40
40
  variant: w,
41
41
  onClick: () => {
@@ -45,12 +45,12 @@ var l = ({ isOpen: l, title: u, children: d, confirmLabel: f = "Confirm", cancel
45
45
  children: f
46
46
  })]
47
47
  }), E = null;
48
- return b != null && (E = /* @__PURE__ */ a(t, { children: b })), /* @__PURE__ */ a(n, {
48
+ return b != null && (E = /* @__PURE__ */ s(t, { children: b })), /* @__PURE__ */ s(n, {
49
49
  isOpen: l,
50
50
  onClose: S,
51
51
  title: u,
52
52
  footer: T,
53
- children: /* @__PURE__ */ o("div", {
53
+ children: /* @__PURE__ */ c("div", {
54
54
  className: r,
55
55
  children: [E, d]
56
56
  })
@@ -1,9 +1,9 @@
1
1
  import { Input as e } from "../../../atomic/atoms/input/Input.js";
2
2
  import { ModalCloseSvg as t } from "../../../icons/ModalCloseSvg.js";
3
3
  import { SidebarSearchSvg as n } from "../../../icons/SidebarSearchSvg.js";
4
- import { ShortcutHint as r } from "../../atoms/shortcut_hint/ShortcutHint.js";
5
- import { clearButton as i, container as a } from "./globalSearchInput.css.js";
4
+ import { clearButton as r, container as i } from "./globalSearchInput.css.js";
6
5
  import "../../../index.js";
6
+ import { ShortcutHint as a } from "../../atoms/shortcut_hint/ShortcutHint.js";
7
7
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
8
  //#region src/backoffice/molecules/global_search_input/GlobalSearchInput.tsx
9
9
  var c = ({ value: c, onChange: l, placeholder: u = "Search…", ariaLabel: d, className: f, shortcut: p, rightSlot: m, clearLabel: h = "Clear search" }) => {
@@ -14,7 +14,7 @@ var c = ({ value: c, onChange: l, placeholder: u = "Search…", ariaLabel: d, cl
14
14
  onClick: () => {
15
15
  l("");
16
16
  },
17
- className: i,
17
+ className: r,
18
18
  children: /* @__PURE__ */ o(t, {
19
19
  width: 16,
20
20
  height: 16,
@@ -22,9 +22,9 @@ var c = ({ value: c, onChange: l, placeholder: u = "Search…", ariaLabel: d, cl
22
22
  })
23
23
  }));
24
24
  let y = null;
25
- p != null && (y = /* @__PURE__ */ o(r, { keys: p }));
25
+ p != null && (y = /* @__PURE__ */ o(a, { keys: p }));
26
26
  let b = /* @__PURE__ */ s("span", {
27
- className: a,
27
+ className: i,
28
28
  children: [
29
29
  v,
30
30
  y,
@@ -1,18 +1,18 @@
1
- import { cx as e } from "../../../theme/tools.js";
2
- import { ChevronLeftSvg as t } from "../../../icons/ChevronLeftSvg.js";
3
- import { ChevronRightSvg as n } from "../../../icons/ChevronRightSvg.js";
1
+ import { ChevronLeftSvg as e } from "../../../icons/ChevronLeftSvg.js";
2
+ import { ChevronRightSvg as t } from "../../../icons/ChevronRightSvg.js";
3
+ import { cx as n } from "../../../theme/tools.js";
4
+ import "../../../index.js";
4
5
  import { ShortcutHint as r } from "../../atoms/shortcut_hint/ShortcutHint.js";
5
6
  import { button as i, icon as a, label as o } from "./sidebarCollapseToggle.css.js";
6
- import "../../../index.js";
7
7
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
8
  //#region src/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.tsx
9
9
  var l = ({ isCollapsed: l, onToggle: u, label: d = "Collapse", shortcut: f, className: p }) => {
10
- let m = t, h = d;
11
- l && (m = n, h = "Expand");
10
+ let m = e, h = d;
11
+ l && (m = t, h = "Expand");
12
12
  let g = null;
13
13
  return f != null && (g = /* @__PURE__ */ s(r, { keys: f })), /* @__PURE__ */ c("button", {
14
14
  type: "button",
15
- className: e(i, p),
15
+ className: n(i, p),
16
16
  onClick: u,
17
17
  "aria-pressed": l,
18
18
  children: [
@@ -1,13 +1,13 @@
1
1
  import { cx as e } from "../../../theme/tools.js";
2
- import { actionSlot as t, actions as ee, actionsVisible as te, badge as ne, badgeCollapsed as n, dragHandle as r, icon as i, item as a, itemActive as o, itemCollapsed as s, itemDisabled as c, label as l, labelCollapsed as re, link as u } from "./sidebarNavItem.css.js";
2
+ import { actionSlot as t, actions as ee, actionsVisible as te, badge as n, badgeCollapsed as r, dragHandle as i, icon as a, item as o, itemActive as s, itemCollapsed as c, itemDisabled as l, label as u, labelCollapsed as ne, link as d } from "./sidebarNavItem.css.js";
3
3
  import "../../../index.js";
4
- import { Fragment as ie, jsx as d, jsxs as f } from "react/jsx-runtime";
5
- import { useCallback as p, useEffect as m, useRef as h, useState as g } from "react";
4
+ import { useCallback as re, useEffect as ie, useRef as f, useState as p } from "react";
5
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
6
6
  import { Link as _ } from "@plumile/router";
7
7
  //#region src/backoffice/molecules/sidebar_nav_item/SidebarNavItem.tsx
8
8
  var v = _, y = ({ label: _, href: y, icon: b, badge: x, isActive: S = !1, disabled: C = !1, onClick: ae, onDragStart: oe, onDragOver: se, onDrop: ce, onDragEnd: le, collapsed: w = !1, ariaLabel: ue, className: T, actionSlot: E, dragHandleSlot: D, dragHandleLabel: O, draggable: k = !1 }) => {
9
- let A = h(null), j = h(null), [M, N] = g(!1), [P, F] = g(!1), I = [a];
10
- w && I.push(s), S && I.push(o), C && I.push(c), T != null && I.push(T);
9
+ let A = f(null), j = f(null), [M, N] = p(!1), [P, F] = p(!1), I = [o];
10
+ w && I.push(c), S && I.push(s), C && I.push(l), T != null && I.push(T);
11
11
  let L = e(...I), R = ue;
12
12
  R == null && typeof _ == "string" && (R = _);
13
13
  let z, B;
@@ -15,33 +15,33 @@ var v = _, y = ({ label: _, href: y, icon: b, badge: x, isActive: S = !1, disabl
15
15
  let V;
16
16
  S && (V = "page");
17
17
  let H = null;
18
- b != null && (H = /* @__PURE__ */ d("span", {
19
- className: i,
18
+ b != null && (H = /* @__PURE__ */ h("span", {
19
+ className: a,
20
20
  children: b
21
21
  }));
22
22
  let U = null;
23
- w && (U = re);
24
- let de = e(l, U), W = null;
23
+ w && (U = ne);
24
+ let de = e(u, U), W = null;
25
25
  if (x != null) {
26
26
  let t = null;
27
- w && (t = n), W = /* @__PURE__ */ d("span", {
28
- className: e(ne, t),
27
+ w && (t = r), W = /* @__PURE__ */ h("span", {
28
+ className: e(n, t),
29
29
  children: x
30
30
  });
31
31
  }
32
- let G = /* @__PURE__ */ f(ie, { children: [
32
+ let G = /* @__PURE__ */ g(m, { children: [
33
33
  H,
34
- /* @__PURE__ */ d("span", {
34
+ /* @__PURE__ */ h("span", {
35
35
  className: de,
36
36
  children: _
37
37
  }),
38
38
  W
39
39
  ] }), K = () => {
40
40
  ae?.();
41
- }, q = !w && !C && (E != null || D != null), J = p(() => {
41
+ }, q = !w && !C && (E != null || D != null), J = re(() => {
42
42
  j.current != null && (clearTimeout(j.current), j.current = null);
43
43
  }, []);
44
- m(() => (q || (N(!1), F(!1), J()), () => {
44
+ ie(() => (q || (N(!1), F(!1), J()), () => {
45
45
  J();
46
46
  }), [J, q]);
47
47
  let fe = () => {
@@ -60,23 +60,23 @@ var v = _, y = ({ label: _, href: y, icon: b, badge: x, isActive: S = !1, disabl
60
60
  let t = e.relatedTarget;
61
61
  t != null && A.current?.contains(t) || F(!1);
62
62
  }, Y;
63
- Y = C ? /* @__PURE__ */ d("span", {
64
- className: u,
63
+ Y = C ? /* @__PURE__ */ h("span", {
64
+ className: d,
65
65
  "aria-disabled": "true",
66
66
  "aria-label": z,
67
67
  title: B,
68
68
  children: G
69
- }) : y == null ? /* @__PURE__ */ d("button", {
69
+ }) : y == null ? /* @__PURE__ */ h("button", {
70
70
  type: "button",
71
- className: u,
71
+ className: d,
72
72
  onClick: K,
73
73
  "aria-current": V,
74
74
  "aria-label": z,
75
75
  title: B,
76
76
  children: G
77
- }) : /* @__PURE__ */ d(v, {
77
+ }) : /* @__PURE__ */ h(v, {
78
78
  to: y,
79
- className: u,
79
+ className: d,
80
80
  "aria-current": V,
81
81
  "aria-label": z,
82
82
  title: B,
@@ -86,9 +86,9 @@ var v = _, y = ({ label: _, href: y, icon: b, badge: x, isActive: S = !1, disabl
86
86
  let ge = q && (M || P), X;
87
87
  ge && (X = te);
88
88
  let _e = e(ee, X), Z = null;
89
- D != null && !w && (Z = /* @__PURE__ */ d("button", {
89
+ D != null && !w && (Z = /* @__PURE__ */ h("button", {
90
90
  type: "button",
91
- className: r,
91
+ className: i,
92
92
  draggable: k,
93
93
  onDragStart: oe,
94
94
  onDragEnd: le,
@@ -97,15 +97,15 @@ var v = _, y = ({ label: _, href: y, icon: b, badge: x, isActive: S = !1, disabl
97
97
  children: D
98
98
  }));
99
99
  let Q = null;
100
- E != null && !w && (Q = /* @__PURE__ */ d("span", {
100
+ E != null && !w && (Q = /* @__PURE__ */ h("span", {
101
101
  className: t,
102
102
  children: E
103
103
  }));
104
104
  let $ = null;
105
- return q && ($ = /* @__PURE__ */ f("span", {
105
+ return q && ($ = /* @__PURE__ */ g("span", {
106
106
  className: _e,
107
107
  children: [Z, Q]
108
- })), /* @__PURE__ */ f("div", {
108
+ })), /* @__PURE__ */ g("div", {
109
109
  className: L,
110
110
  onDragOver: se,
111
111
  onDrop: ce,