@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.
- package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js +62 -0
- package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js.map +1 -0
- package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +17 -0
- package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js.map +1 -0
- package/lib/esm/{backoffice/organisms/backoffice_topbar/BackofficeTopbar.js → admin/organisms/admin_topbar/AdminTopbar.js} +4 -4
- package/lib/esm/admin/organisms/admin_topbar/AdminTopbar.js.map +1 -0
- package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +8 -0
- package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js.map +1 -0
- package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js +19 -0
- package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js.map +1 -0
- package/lib/esm/admin/theme/AdminThemeProvider.js +11 -0
- package/lib/esm/admin/theme/AdminThemeProvider.js.map +1 -0
- package/lib/esm/admin/theme/adminTheme.css.js +7 -0
- package/lib/esm/admin/theme/adminTheme.css.js.map +1 -0
- package/lib/esm/atomic/atoms/badge/Badge.js +3 -3
- package/lib/esm/atomic/atoms/button/Button.js +1 -1
- package/lib/esm/atomic/atoms/checkbox/Checkbox.js +1 -1
- package/lib/esm/atomic/atoms/error_message/ErrorMessage.js +1 -1
- package/lib/esm/atomic/atoms/formatted-date/FormattedDate.js +4 -4
- package/lib/esm/atomic/atoms/label/Label.js +1 -1
- package/lib/esm/atomic/atoms/modal/Modal.js +13 -13
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuDropdown.js +12 -12
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuPopover.js +20 -20
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.js +14 -14
- package/lib/esm/atomic/molecules/card/Card.js +6 -6
- package/lib/esm/atomic/molecules/checkbox_field/CheckboxField.js +1 -1
- package/lib/esm/atomic/molecules/dropdown/Dropdown.js +80 -80
- package/lib/esm/atomic/molecules/dropdown/Dropdown.js.map +1 -1
- package/lib/esm/atomic/molecules/form/Form.js +1 -1
- package/lib/esm/atomic/molecules/form_error/FormError.js +1 -1
- package/lib/esm/atomic/molecules/highlight/HighlightCode.js +25 -25
- package/lib/esm/atomic/molecules/markdown/LazyMarkdownRenderer.js +7 -7
- package/lib/esm/atomic/molecules/markdown/MarkdownRenderer.js +33 -33
- package/lib/esm/atomic/molecules/markdown/MarkdownRenderer.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/LazyMarkdownCodeBlock.js +9 -9
- package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +0 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownCodeBlock.js +7 -7
- package/lib/esm/atomic/molecules/markdown/components/MarkdownCodeCopyButton.js +9 -9
- package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnotesSection.js +7 -7
- package/lib/esm/atomic/molecules/markdown/components/MarkdownMermaidBlock.js +34 -34
- package/lib/esm/atomic/molecules/markdown/components/MarkdownParagraph.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownShikiCodeBlock.js +4 -4
- package/lib/esm/atomic/molecules/profile_dropdown/ProfileDropdown.js +25 -25
- package/lib/esm/atomic/molecules/toast/ToastProvider.js +15 -15
- package/lib/esm/atomic/molecules/toast/ToastViewport.js +15 -15
- package/lib/esm/atomic/organisms/login_form/LoginForm.js +1 -1
- package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js +34 -34
- package/lib/esm/atomic/organisms/sidebar/icons.js +13 -13
- package/lib/esm/atomic/templates/auth_layout/AuthLayout.js +1 -1
- package/lib/esm/atomic/templates/detail-page/DetailPage.js +49 -0
- package/lib/esm/atomic/templates/detail-page/DetailPage.js.map +1 -0
- package/lib/esm/atomic/templates/detail-page/detailPage.css.js +8 -0
- package/lib/esm/atomic/templates/detail-page/detailPage.css.js.map +1 -0
- package/lib/esm/atomic/templates/page-container/PageContainer.js +36 -0
- package/lib/esm/atomic/templates/page-container/PageContainer.js.map +1 -0
- package/lib/esm/atomic/templates/page-container/pageContainer.css.js +8 -0
- package/lib/esm/atomic/templates/page-container/pageContainer.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/copyable_text/CopyableText.js +10 -10
- package/lib/esm/backoffice/atoms/shortcut_hint/ShortcutHint.js +6 -6
- package/lib/esm/backoffice/atoms/tag/Tag.js +7 -7
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.js +22 -22
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.js +12 -12
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js +11 -11
- package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js +27 -21
- package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js +2 -2
- package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js +12 -12
- package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js +9 -9
- package/lib/esm/backoffice/molecules/global_search_input/GlobalSearchInput.js +5 -5
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.js +7 -7
- package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js +26 -26
- package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +11 -11
- package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js +20 -20
- package/lib/esm/components/data-table/TableCell.js +17 -17
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js +27 -27
- package/lib/esm/components/layout/AppShell.js +14 -0
- package/lib/esm/components/layout/AppShell.js.map +1 -0
- package/lib/esm/components/layout/PageShell.js +65 -65
- package/lib/esm/components/layout/PageShell.js.map +1 -1
- package/lib/esm/components/layout/SettingsLayout.css.js +8 -0
- package/lib/esm/components/layout/SettingsLayout.css.js.map +1 -0
- package/lib/esm/{backoffice/templates/settings_template/SettingsTemplate.js → components/layout/SettingsLayout.js} +5 -5
- package/lib/esm/components/layout/SettingsLayout.js.map +1 -0
- package/lib/esm/components/layout/SplitViewLayout.css.js +8 -0
- package/lib/esm/components/layout/SplitViewLayout.css.js.map +1 -0
- package/lib/esm/{backoffice/templates/split_view_template/SplitViewTemplate.js → components/layout/SplitViewLayout.js} +5 -5
- package/lib/esm/components/layout/SplitViewLayout.js.map +1 -0
- package/lib/esm/components/select/SimpleSelect.js +23 -23
- package/lib/esm/index.js +109 -106
- package/lib/esm/node_modules/react-shiki/dist/chunk-QPJZGYHO.js +23 -23
- package/lib/esm/node_modules/react-shiki/dist/chunk-QPJZGYHO.js.map +1 -1
- package/lib/esm/style.css +1 -1
- package/lib/esm/theme/ThemeProvider.js +11 -11
- package/lib/esm/theme/VisuallyHidden.js +3 -3
- package/lib/esm/theme/index.js +9 -9
- package/lib/types/{backoffice/organisms/backoffice_sidebar/BackofficeSidebar.d.ts → admin/organisms/admin_sidebar/AdminSidebar.d.ts} +7 -7
- package/lib/types/admin/organisms/admin_sidebar/AdminSidebar.d.ts.map +1 -0
- package/lib/types/{backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.d.ts → admin/organisms/admin_sidebar/adminSidebar.css.d.ts} +1 -1
- package/lib/types/admin/organisms/admin_sidebar/adminSidebar.css.d.ts.map +1 -0
- package/lib/types/admin/organisms/admin_topbar/AdminTopbar.d.ts +10 -0
- package/lib/types/admin/organisms/admin_topbar/AdminTopbar.d.ts.map +1 -0
- package/lib/types/{backoffice/organisms/backoffice_topbar/backofficeTopbar.css.d.ts → admin/organisms/admin_topbar/adminTopbar.css.d.ts} +1 -1
- package/lib/types/admin/organisms/admin_topbar/adminTopbar.css.d.ts.map +1 -0
- package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts +14 -0
- package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts.map +1 -0
- package/lib/types/admin/theme/AdminThemeProvider.d.ts +7 -0
- package/lib/types/admin/theme/AdminThemeProvider.d.ts.map +1 -0
- package/lib/types/admin/theme/adminTheme.css.d.ts +2 -0
- package/lib/types/admin/theme/adminTheme.css.d.ts.map +1 -0
- package/lib/types/atomic/templates/detail-page/DetailPage.d.ts +19 -0
- package/lib/types/atomic/templates/detail-page/DetailPage.d.ts.map +1 -0
- package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts +9 -0
- package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts.map +1 -0
- package/lib/types/atomic/templates/page-container/PageContainer.d.ts +14 -0
- package/lib/types/atomic/templates/page-container/PageContainer.d.ts.map +1 -0
- package/lib/types/atomic/templates/page-container/pageContainer.css.d.ts +7 -0
- package/lib/types/atomic/templates/page-container/pageContainer.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/BackofficePageHeader.d.ts +2 -1
- package/lib/types/backoffice/molecules/backoffice_page_header/BackofficePageHeader.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.d.ts +2 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.d.ts.map +1 -1
- package/lib/types/components/layout/AppShell.d.ts +12 -0
- package/lib/types/components/layout/AppShell.d.ts.map +1 -0
- package/lib/types/{backoffice/templates/settings_template/settingsTemplate.css.d.ts → components/layout/SettingsLayout.css.d.ts} +1 -1
- package/lib/types/components/layout/SettingsLayout.css.d.ts.map +1 -0
- package/lib/types/components/layout/SettingsLayout.d.ts +11 -0
- package/lib/types/components/layout/SettingsLayout.d.ts.map +1 -0
- package/lib/types/{backoffice/templates/split_view_template/splitViewTemplate.css.d.ts → components/layout/SplitViewLayout.css.d.ts} +1 -1
- package/lib/types/components/layout/SplitViewLayout.css.d.ts.map +1 -0
- package/lib/types/components/layout/SplitViewLayout.d.ts +11 -0
- package/lib/types/components/layout/SplitViewLayout.d.ts.map +1 -0
- package/lib/types/index.d.ts +11 -8
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +10 -10
- package/lib/esm/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.js +0 -14
- package/lib/esm/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.js +0 -62
- package/lib/esm/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.js +0 -17
- package/lib/esm/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_topbar/BackofficeTopbar.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.js +0 -8
- package/lib/esm/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.js.map +0 -1
- package/lib/esm/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.js +0 -19
- package/lib/esm/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.js.map +0 -1
- package/lib/esm/backoffice/templates/settings_template/SettingsTemplate.js.map +0 -1
- package/lib/esm/backoffice/templates/settings_template/settingsTemplate.css.js +0 -8
- package/lib/esm/backoffice/templates/settings_template/settingsTemplate.css.js.map +0 -1
- package/lib/esm/backoffice/templates/split_view_template/SplitViewTemplate.js.map +0 -1
- package/lib/esm/backoffice/templates/split_view_template/splitViewTemplate.css.js +0 -8
- package/lib/esm/backoffice/templates/split_view_template/splitViewTemplate.css.js.map +0 -1
- package/lib/esm/backoffice/theme/BackofficeThemeProvider.js +0 -11
- package/lib/esm/backoffice/theme/BackofficeThemeProvider.js.map +0 -1
- package/lib/esm/backoffice/theme/backofficeTheme.css.js +0 -7
- package/lib/esm/backoffice/theme/backofficeTheme.css.js.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.d.ts +0 -12
- package/lib/types/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_topbar/BackofficeTopbar.d.ts +0 -10
- package/lib/types/backoffice/organisms/backoffice_topbar/BackofficeTopbar.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.d.ts.map +0 -1
- package/lib/types/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.d.ts +0 -14
- package/lib/types/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.d.ts.map +0 -1
- package/lib/types/backoffice/templates/settings_template/SettingsTemplate.d.ts +0 -11
- package/lib/types/backoffice/templates/settings_template/SettingsTemplate.d.ts.map +0 -1
- package/lib/types/backoffice/templates/settings_template/settingsTemplate.css.d.ts.map +0 -1
- package/lib/types/backoffice/templates/split_view_template/SplitViewTemplate.d.ts +0 -11
- package/lib/types/backoffice/templates/split_view_template/SplitViewTemplate.d.ts.map +0 -1
- package/lib/types/backoffice/templates/split_view_template/splitViewTemplate.css.d.ts.map +0 -1
- package/lib/types/backoffice/theme/BackofficeThemeProvider.d.ts +0 -7
- package/lib/types/backoffice/theme/BackofficeThemeProvider.d.ts.map +0 -1
- package/lib/types/backoffice/theme/backofficeTheme.css.d.ts +0 -2
- package/lib/types/backoffice/theme/backofficeTheme.css.d.ts.map +0 -1
|
@@ -4,20 +4,20 @@ import { Button as n } from "../../atoms/button/Button.js";
|
|
|
4
4
|
import { ModalCloseSvg as r } from "../../../icons/ModalCloseSvg.js";
|
|
5
5
|
import { actions as i, closeButton as a, header as o, kindRecipe as s, message as c, progressBar as l, progressTrack as u, title as d, toast as f, viewport as p } from "./toast.css.js";
|
|
6
6
|
import { INFO_TOAST_DURATION_MS as m } from "./constants.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { useMemo as h } from "react";
|
|
8
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
9
9
|
//#region src/atomic/molecules/toast/ToastViewport.tsx
|
|
10
10
|
var v = ({ toasts: v, onDismiss: y, dismissLabel: b, className: x }) => {
|
|
11
|
-
let { t: S } = t(), C = b ?? S("toast.dismissAriaLabel"), w =
|
|
12
|
-
let p = t.kind ?? "info",
|
|
13
|
-
t.message != null && (v = /* @__PURE__ */
|
|
11
|
+
let { t: S } = t(), C = b ?? S("toast.dismissAriaLabel"), w = h(() => v.map((t) => {
|
|
12
|
+
let p = t.kind ?? "info", h = t.actions ?? [], v = null;
|
|
13
|
+
t.message != null && (v = /* @__PURE__ */ g("div", {
|
|
14
14
|
className: c,
|
|
15
15
|
children: t.message
|
|
16
16
|
}));
|
|
17
17
|
let b = null;
|
|
18
|
-
|
|
18
|
+
h.length > 0 && (b = /* @__PURE__ */ g("div", {
|
|
19
19
|
className: i,
|
|
20
|
-
children:
|
|
20
|
+
children: h.map((e) => /* @__PURE__ */ g(n, {
|
|
21
21
|
type: "button",
|
|
22
22
|
size: "small",
|
|
23
23
|
variant: "secondary",
|
|
@@ -26,29 +26,29 @@ var v = ({ toasts: v, onDismiss: y, dismissLabel: b, className: x }) => {
|
|
|
26
26
|
}, e.id))
|
|
27
27
|
}));
|
|
28
28
|
let x = null;
|
|
29
|
-
return p === "info" && (x = /* @__PURE__ */
|
|
29
|
+
return p === "info" && (x = /* @__PURE__ */ g("div", {
|
|
30
30
|
className: u,
|
|
31
31
|
"aria-hidden": "true",
|
|
32
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ g("div", {
|
|
33
33
|
className: l,
|
|
34
34
|
style: { animationDuration: `${m}ms` }
|
|
35
35
|
})
|
|
36
|
-
})), /* @__PURE__ */
|
|
36
|
+
})), /* @__PURE__ */ _("div", {
|
|
37
37
|
className: e(f, s({ kind: p })),
|
|
38
38
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ _("div", {
|
|
40
40
|
className: o,
|
|
41
|
-
children: [/* @__PURE__ */
|
|
41
|
+
children: [/* @__PURE__ */ g("div", {
|
|
42
42
|
className: d,
|
|
43
43
|
children: t.title
|
|
44
|
-
}), /* @__PURE__ */
|
|
44
|
+
}), /* @__PURE__ */ g("button", {
|
|
45
45
|
type: "button",
|
|
46
46
|
className: a,
|
|
47
47
|
"aria-label": C,
|
|
48
48
|
onClick: () => {
|
|
49
49
|
y(t.id);
|
|
50
50
|
},
|
|
51
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ g(r, {
|
|
52
52
|
width: 18,
|
|
53
53
|
height: 18,
|
|
54
54
|
"aria-hidden": "true"
|
|
@@ -65,7 +65,7 @@ var v = ({ toasts: v, onDismiss: y, dismissLabel: b, className: x }) => {
|
|
|
65
65
|
C,
|
|
66
66
|
v
|
|
67
67
|
]);
|
|
68
|
-
return v.length === 0 ? null : /* @__PURE__ */
|
|
68
|
+
return v.length === 0 ? null : /* @__PURE__ */ g("div", {
|
|
69
69
|
className: e(p, x),
|
|
70
70
|
children: w
|
|
71
71
|
});
|
|
@@ -4,8 +4,8 @@ import { Button as n } from "../../atoms/button/Button.js";
|
|
|
4
4
|
import { FormError as r } from "../../molecules/form_error/FormError.js";
|
|
5
5
|
import { FormField as i } from "../../molecules/form_field/FormField.js";
|
|
6
6
|
import { useLoginForm as a } from "./useLoginForm.js";
|
|
7
|
-
import "../../../index.js";
|
|
8
7
|
import { form as o } from "./loginForm.css.js";
|
|
8
|
+
import "../../../index.js";
|
|
9
9
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
10
10
|
//#region src/atomic/organisms/login_form/LoginForm.tsx
|
|
11
11
|
var l = (l) => {
|
|
@@ -3,28 +3,28 @@ import { useUiTranslation as t } from "../../../i18n/useUiTranslation.js";
|
|
|
3
3
|
import { SidebarContainer as n } from "./SidebarContainer.js";
|
|
4
4
|
import { ChevronLeftIcon as r, ChevronRightIcon as i } from "./icons.js";
|
|
5
5
|
import { childIcon as a, childLabel as o, childLinkRecipe as s, collapseButton as c, collapseButtonLabel as l, collapseButtonStateRecipe as u, collapsibleContent as d, collapsibleItem as f, collapsibleSection as p, collapsibleStateRecipe as m, iconBaseLayer as h, iconHiddenOnHover as g, iconVisibleOnHover as _, iconWrapper as v, itemWrapper as y, label as b, navButton as x, navGapRecipe as ee, navLinkRecipe as S, navWithTrailingAction as C, trailingActionButton as w, trailingActionIconHidden as T, trailingActionIconVisible as E, trailingActionIconWrapper as D, trailingIconWrapper as te } from "./navigationSidebar.css.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { useCallback as O, useMemo as k, useState as A } from "react";
|
|
7
|
+
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
8
8
|
import { Link as P, useLocation as F } from "@plumile/router";
|
|
9
9
|
//#region src/atomic/organisms/sidebar/NavigationSidebar.tsx
|
|
10
10
|
var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
11
11
|
let i = "collapsed";
|
|
12
|
-
return n && (i = "expanded"), /* @__PURE__ */
|
|
12
|
+
return n && (i = "expanded"), /* @__PURE__ */ M("div", {
|
|
13
13
|
id: t,
|
|
14
14
|
"aria-hidden": !n,
|
|
15
15
|
className: e(p, m({ state: i })),
|
|
16
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ M("div", {
|
|
17
17
|
className: d,
|
|
18
18
|
children: r
|
|
19
19
|
})
|
|
20
20
|
});
|
|
21
21
|
}, L = ({ items: d, headerSlot: p, isCollapsed: m, onCollapsedChange: L, showCollapseToggle: R = !0 }) => {
|
|
22
|
-
let { t: z } = t(), [B, V] =
|
|
22
|
+
let { t: z } = t(), [B, V] = A(!1), [H, U] = A({}), W = m != null, G = m ?? B, { pathname: K } = F(), q = (e, t) => t === !0 ? K === e : K === e ? !0 : K.startsWith(`${e}/`), J = O((e, t) => {
|
|
23
23
|
U((n) => ({
|
|
24
24
|
...n,
|
|
25
25
|
[e]: t
|
|
26
26
|
}));
|
|
27
|
-
}, []), Y =
|
|
27
|
+
}, []), Y = O(() => {
|
|
28
28
|
let e = !G;
|
|
29
29
|
W || V(e), L?.(e);
|
|
30
30
|
}, [
|
|
@@ -33,22 +33,22 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
33
33
|
L
|
|
34
34
|
]), X;
|
|
35
35
|
G || (X = p ?? void 0);
|
|
36
|
-
let Z =
|
|
36
|
+
let Z = k(() => {
|
|
37
37
|
if (!R) return null;
|
|
38
38
|
let t = r, n = z("navigation.sidebar.actions.collapseAriaLabel");
|
|
39
39
|
G && (t = i, n = z("navigation.sidebar.actions.expandAriaLabel"));
|
|
40
40
|
let a = "expanded";
|
|
41
41
|
G && (a = "collapsed");
|
|
42
42
|
let o = null;
|
|
43
|
-
return G || (o = /* @__PURE__ */
|
|
43
|
+
return G || (o = /* @__PURE__ */ M("span", {
|
|
44
44
|
className: l,
|
|
45
45
|
children: z("navigation.sidebar.actions.collapse")
|
|
46
|
-
})), /* @__PURE__ */
|
|
46
|
+
})), /* @__PURE__ */ N("button", {
|
|
47
47
|
type: "button",
|
|
48
48
|
onClick: Y,
|
|
49
49
|
className: e(c, u({ state: a })),
|
|
50
50
|
"aria-label": n,
|
|
51
|
-
children: [/* @__PURE__ */
|
|
51
|
+
children: [/* @__PURE__ */ M(t, { size: 20 }), o]
|
|
52
52
|
});
|
|
53
53
|
}, [
|
|
54
54
|
Y,
|
|
@@ -56,7 +56,7 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
56
56
|
R,
|
|
57
57
|
z
|
|
58
58
|
]);
|
|
59
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ M(n, {
|
|
60
60
|
headerSlot: X,
|
|
61
61
|
footerSlot: Z,
|
|
62
62
|
isCollapsed: G,
|
|
@@ -66,45 +66,45 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
66
66
|
u && (l = `navigation-sidebar-${t.key}-children`), r && n.some((e) => q(e.to)) && (i = !0);
|
|
67
67
|
let d = null;
|
|
68
68
|
!G && t.trailingAction != null && (d = t.trailingAction);
|
|
69
|
-
let p = d != null, m = t.hoverIcon !== void 0 && t.hoverIcon !== null,
|
|
69
|
+
let p = d != null, m = t.hoverIcon !== void 0 && t.hoverIcon !== null, O = t.trailingIcon !== void 0 && t.trailingIcon !== null, k = t.trailingHoverIcon !== void 0 && t.trailingHoverIcon !== null, A = !G && !p && (O || k), F;
|
|
70
70
|
G && (F = t.label);
|
|
71
71
|
let L = "expanded";
|
|
72
72
|
G && (L = "collapsed");
|
|
73
73
|
let R = ee({ state: L }), z;
|
|
74
74
|
p && (z = C);
|
|
75
75
|
let B = null;
|
|
76
|
-
G || (B = /* @__PURE__ */
|
|
76
|
+
G || (B = /* @__PURE__ */ M("span", {
|
|
77
77
|
className: b,
|
|
78
78
|
children: t.label
|
|
79
79
|
}));
|
|
80
80
|
let V = null;
|
|
81
|
-
m && (V = /* @__PURE__ */
|
|
81
|
+
m && (V = /* @__PURE__ */ M("span", {
|
|
82
82
|
className: _,
|
|
83
83
|
children: t.hoverIcon
|
|
84
84
|
}));
|
|
85
|
-
let U = /* @__PURE__ */
|
|
85
|
+
let U = /* @__PURE__ */ N("span", {
|
|
86
86
|
className: v,
|
|
87
|
-
children: [/* @__PURE__ */
|
|
87
|
+
children: [/* @__PURE__ */ M("span", {
|
|
88
88
|
className: e(h, { [g]: m }),
|
|
89
89
|
children: t.icon
|
|
90
90
|
}), V]
|
|
91
91
|
}), W = null;
|
|
92
|
-
if (
|
|
92
|
+
if (A) {
|
|
93
93
|
let n = null;
|
|
94
|
-
|
|
95
|
-
className: e(h, { [g]:
|
|
94
|
+
O && (n = /* @__PURE__ */ M("span", {
|
|
95
|
+
className: e(h, { [g]: k }),
|
|
96
96
|
children: t.trailingIcon
|
|
97
97
|
}));
|
|
98
98
|
let r = null;
|
|
99
|
-
|
|
99
|
+
k && (r = /* @__PURE__ */ M("span", {
|
|
100
100
|
className: _,
|
|
101
101
|
children: t.trailingHoverIcon
|
|
102
|
-
})), W = /* @__PURE__ */
|
|
102
|
+
})), W = /* @__PURE__ */ N("span", {
|
|
103
103
|
className: te,
|
|
104
104
|
children: [n, r]
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
let K = /* @__PURE__ */
|
|
107
|
+
let K = /* @__PURE__ */ N(j, { children: [
|
|
108
108
|
U,
|
|
109
109
|
B,
|
|
110
110
|
W
|
|
@@ -117,7 +117,7 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
117
117
|
q(t.to, t.exact) && (n = "active"), X = e(S({ state: n }), R, z);
|
|
118
118
|
}
|
|
119
119
|
let Z;
|
|
120
|
-
Z = r ? /* @__PURE__ */
|
|
120
|
+
Z = r ? /* @__PURE__ */ M("button", {
|
|
121
121
|
type: "button",
|
|
122
122
|
className: X,
|
|
123
123
|
"aria-expanded": i,
|
|
@@ -125,7 +125,7 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
125
125
|
"aria-label": F,
|
|
126
126
|
onClick: Y,
|
|
127
127
|
children: K
|
|
128
|
-
}) : /* @__PURE__ */
|
|
128
|
+
}) : /* @__PURE__ */ M(P, {
|
|
129
129
|
to: t.to,
|
|
130
130
|
className: X,
|
|
131
131
|
exact: t.exact,
|
|
@@ -137,17 +137,17 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
137
137
|
let e = (e) => {
|
|
138
138
|
e.preventDefault(), e.stopPropagation(), d.onClick();
|
|
139
139
|
}, t = d.hoverIcon, n = t != null, r = null;
|
|
140
|
-
n && (r = /* @__PURE__ */
|
|
140
|
+
n && (r = /* @__PURE__ */ M("span", {
|
|
141
141
|
className: E,
|
|
142
142
|
children: t
|
|
143
|
-
})), Q = /* @__PURE__ */
|
|
143
|
+
})), Q = /* @__PURE__ */ M("button", {
|
|
144
144
|
type: "button",
|
|
145
145
|
"aria-label": d.label,
|
|
146
146
|
onClick: e,
|
|
147
147
|
className: w,
|
|
148
|
-
children: /* @__PURE__ */
|
|
148
|
+
children: /* @__PURE__ */ N("span", {
|
|
149
149
|
className: D,
|
|
150
|
-
children: [/* @__PURE__ */
|
|
150
|
+
children: [/* @__PURE__ */ M("span", {
|
|
151
151
|
className: T,
|
|
152
152
|
children: d.icon
|
|
153
153
|
}), r]
|
|
@@ -155,30 +155,30 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
let $ = null;
|
|
158
|
-
return u && l != null && ($ = /* @__PURE__ */
|
|
158
|
+
return u && l != null && ($ = /* @__PURE__ */ M(I, {
|
|
159
159
|
id: l,
|
|
160
160
|
isExpanded: i,
|
|
161
161
|
children: n.map((e) => {
|
|
162
162
|
let t = null;
|
|
163
|
-
e.icon != null && (t = /* @__PURE__ */
|
|
163
|
+
e.icon != null && (t = /* @__PURE__ */ M("span", {
|
|
164
164
|
className: a,
|
|
165
165
|
children: e.icon
|
|
166
166
|
}));
|
|
167
167
|
let n = "default";
|
|
168
|
-
return q(e.to) && (n = "active"), /* @__PURE__ */
|
|
168
|
+
return q(e.to) && (n = "active"), /* @__PURE__ */ M("div", {
|
|
169
169
|
className: f,
|
|
170
|
-
children: /* @__PURE__ */
|
|
170
|
+
children: /* @__PURE__ */ N(P, {
|
|
171
171
|
to: e.to,
|
|
172
172
|
className: s({ state: n }),
|
|
173
173
|
"aria-label": e.label,
|
|
174
|
-
children: [t, /* @__PURE__ */
|
|
174
|
+
children: [t, /* @__PURE__ */ M("span", {
|
|
175
175
|
className: o,
|
|
176
176
|
children: e.label
|
|
177
177
|
})]
|
|
178
178
|
})
|
|
179
179
|
}, e.key);
|
|
180
180
|
})
|
|
181
|
-
})), /* @__PURE__ */
|
|
181
|
+
})), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("div", {
|
|
182
182
|
className: y,
|
|
183
183
|
children: [Z, Q]
|
|
184
184
|
}), $] }, t.key);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ChevronLeftSvg as e } from "../../../icons/ChevronLeftSvg.js";
|
|
2
|
+
import { ChevronRightSvg as t } from "../../../icons/ChevronRightSvg.js";
|
|
3
|
+
import { SidebarHomeSvg as n } from "../../../icons/SidebarHomeSvg.js";
|
|
4
|
+
import { ChevronDownSvg as r } from "../../../icons/ChevronDownSvg.js";
|
|
5
5
|
import { GlobeSvg as i } from "../../../icons/GlobeSvg.js";
|
|
6
6
|
import { ProjectsFolderSvg as a } from "../../../icons/ProjectsFolderSvg.js";
|
|
7
7
|
import { SidebarInitiativesSvg as o } from "../../../icons/SidebarInitiativesSvg.js";
|
|
@@ -12,10 +12,10 @@ import { SidebarTasksSvg as u } from "../../../icons/SidebarTasksSvg.js";
|
|
|
12
12
|
import { SidebarTeamSvg as d } from "../../../icons/SidebarTeamSvg.js";
|
|
13
13
|
import { jsx as f } from "react/jsx-runtime";
|
|
14
14
|
//#region src/atomic/organisms/sidebar/icons.tsx
|
|
15
|
-
var p = ({ size: e = 24, className:
|
|
15
|
+
var p = ({ size: e = 24, className: t }) => /* @__PURE__ */ f(n, {
|
|
16
16
|
width: e,
|
|
17
17
|
height: e,
|
|
18
|
-
className:
|
|
18
|
+
className: t
|
|
19
19
|
}), m = ({ size: e = 24, className: t }) => /* @__PURE__ */ f(u, {
|
|
20
20
|
width: e,
|
|
21
21
|
height: e,
|
|
@@ -40,18 +40,18 @@ var p = ({ size: e = 24, className: n }) => /* @__PURE__ */ f(t, {
|
|
|
40
40
|
width: e,
|
|
41
41
|
height: e,
|
|
42
42
|
className: t
|
|
43
|
-
}), b = ({ size:
|
|
44
|
-
width: t,
|
|
45
|
-
height: t,
|
|
46
|
-
className: n
|
|
47
|
-
}), x = ({ size: e = 24, className: t }) => /* @__PURE__ */ f(r, {
|
|
43
|
+
}), b = ({ size: e = 24, className: t }) => /* @__PURE__ */ f(r, {
|
|
48
44
|
width: e,
|
|
49
45
|
height: e,
|
|
50
46
|
className: t
|
|
51
|
-
}),
|
|
47
|
+
}), x = ({ size: e = 24, className: n }) => /* @__PURE__ */ f(t, {
|
|
52
48
|
width: e,
|
|
53
49
|
height: e,
|
|
54
|
-
className:
|
|
50
|
+
className: n
|
|
51
|
+
}), S = ({ size: t = 24, className: n }) => /* @__PURE__ */ f(e, {
|
|
52
|
+
width: t,
|
|
53
|
+
height: t,
|
|
54
|
+
className: n
|
|
55
55
|
}), C = ({ size: e = 24, className: t }) => /* @__PURE__ */ f(c, {
|
|
56
56
|
width: e,
|
|
57
57
|
height: e,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formCardStyle as e, headerStyle as t, mainStyle as n, subtitleStyle as r, titleStyle as i } from "./authLayout.css.js";
|
|
2
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
4
|
//#region src/atomic/templates/auth_layout/AuthLayout.tsx
|
|
5
5
|
var s = (s) => {
|
|
6
6
|
let { title: c, subtitle: l, children: u } = s, d = null;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { BackofficePageHeader as t } from "../../../backoffice/molecules/backoffice_page_header/BackofficePageHeader.js";
|
|
3
|
+
import { actions as n, container as r, content as i, contentSection as a } from "./detailPage.css.js";
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
//#region src/atomic/templates/detail-page/DetailPage.tsx
|
|
6
|
+
var c = (e, t) => {
|
|
7
|
+
let r = t ?? [], i = r.length > 0, a = e != null;
|
|
8
|
+
return !a && !i ? null : /* @__PURE__ */ s("div", {
|
|
9
|
+
className: n,
|
|
10
|
+
children: [i && /* @__PURE__ */ o("div", {
|
|
11
|
+
className: "_8ct8xq3 txvbqb9io txvbqbco txvbqbao6 txvbqbajx",
|
|
12
|
+
children: r.map((e, t) => /* @__PURE__ */ o("div", {
|
|
13
|
+
className: "_8ct8xq4 txvbqb9io txvbqbco",
|
|
14
|
+
children: e
|
|
15
|
+
}, t))
|
|
16
|
+
}), a && /* @__PURE__ */ o("div", {
|
|
17
|
+
className: "_8ct8xq5 txvbqb9io txvbqbco",
|
|
18
|
+
children: e
|
|
19
|
+
})]
|
|
20
|
+
});
|
|
21
|
+
}, l = ({ title: n, subtitle: a, primaryAction: l, secondaryActions: u, headerSupplement: d, children: f, className: p, contentClassName: m }) => /* @__PURE__ */ s("div", {
|
|
22
|
+
className: e(r, p),
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ o(t, {
|
|
25
|
+
title: n,
|
|
26
|
+
subtitle: a,
|
|
27
|
+
actions: c(l, u)
|
|
28
|
+
}),
|
|
29
|
+
d != null && /* @__PURE__ */ o("div", {
|
|
30
|
+
className: "_8ct8xq1 txvbqb9io txvbqbai6 txvbqbaoo",
|
|
31
|
+
children: d
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ o("div", {
|
|
34
|
+
className: e(i, m),
|
|
35
|
+
children: f
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
}), u = ({ children: t, className: n, withBaseStyles: r = !0, ...i }) => {
|
|
39
|
+
let s;
|
|
40
|
+
return r ? s = e(a, n) : n != null && (s = n), /* @__PURE__ */ o("div", {
|
|
41
|
+
...i,
|
|
42
|
+
className: s,
|
|
43
|
+
children: t
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { l as DetailPage, l as default, u as DetailPageContent };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=DetailPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DetailPage.js","names":[],"sources":["../../../../../src/atomic/templates/detail-page/DetailPage.tsx"],"sourcesContent":["import { type ComponentPropsWithoutRef, type JSX, type ReactNode } from 'react';\n\nimport { BackofficePageHeader } from '../../../backoffice/molecules/backoffice_page_header/BackofficePageHeader.js';\nimport { cx } from '../../../theme/tools.js';\nimport * as styles from './detailPage.css.js';\n\nexport type DetailPageProps = {\n title: string;\n subtitle?: ReactNode;\n primaryAction?: ReactNode;\n secondaryActions?: readonly ReactNode[];\n headerSupplement?: ReactNode;\n children: ReactNode;\n className?: string;\n contentClassName?: string;\n};\n\nexport type DetailPageContentProps = ComponentPropsWithoutRef<'div'> & {\n children: ReactNode;\n withBaseStyles?: boolean;\n};\n\nconst renderActions = (\n primaryAction?: ReactNode,\n secondaryActions?: readonly ReactNode[],\n): ReactNode | null => {\n const secondaryList = secondaryActions ?? [];\n const hasSecondary = secondaryList.length > 0;\n const hasPrimary = primaryAction != null;\n\n if (!hasPrimary && !hasSecondary) {\n return null;\n }\n\n return (\n <div className={styles.actions}>\n {hasSecondary && (\n <div className={styles.secondaryActions}>\n {secondaryList.map((action, index) => {\n return (\n <div key={index} className={styles.actionItem}>\n {action}\n </div>\n );\n })}\n </div>\n )}\n {hasPrimary && (\n <div className={styles.primaryAction}>{primaryAction}</div>\n )}\n </div>\n );\n};\n\nexport const DetailPage = ({\n title,\n subtitle,\n primaryAction,\n secondaryActions,\n headerSupplement,\n children,\n className,\n contentClassName,\n}: DetailPageProps): JSX.Element => {\n return (\n <div className={cx(styles.container, className)}>\n <BackofficePageHeader\n title={title}\n subtitle={subtitle}\n actions={renderActions(primaryAction, secondaryActions)}\n />\n {headerSupplement != null && (\n <div className={styles.headerSupplement}>{headerSupplement}</div>\n )}\n <div className={cx(styles.content, contentClassName)}>{children}</div>\n </div>\n );\n};\n\nexport const DetailPageContent = ({\n children,\n className,\n withBaseStyles = true,\n ...rest\n}: DetailPageContentProps): JSX.Element => {\n let contentClassName: string | undefined;\n if (withBaseStyles) {\n contentClassName = cx(styles.contentSection, className);\n } else if (className != null) {\n contentClassName = className;\n }\n\n return (\n <div {...rest} className={contentClassName}>\n {children}\n </div>\n );\n};\n\nexport default DetailPage;\n"],"mappings":";;;;;AAsBA,IAAM,KACJ,GACA,MACqB;CACrB,IAAM,IAAgB,KAAoB,EAAE,EACtC,IAAe,EAAc,SAAS,GACtC,IAAa,KAAiB;AAMpC,QAJI,CAAC,KAAc,CAAC,IACX,OAIP,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACG,KACC,kBAAC,OAAD;GAAK,WAAW;aACb,EAAc,KAAK,GAAQ,MAExB,kBAAC,OAAD;IAAiB,WAAW;cACzB;IACG,EAFI,EAEJ,CAER;GACE,CAAA,EAEP,KACC,kBAAC,OAAD;GAAK,WAAW;aAAuB;GAAoB,CAAA,CAEzD;;GAIG,KAAc,EACzB,UACA,aACA,kBACA,qBACA,kBAAA,GACA,aACA,cACA,0BAGE,kBAAC,OAAD;CAAK,WAAW,EAAG,GAAkB,EAAU;WAA/C;EACE,kBAAC,GAAD;GACS;GACG;GACV,SAAS,EAAc,GAAe,EAAiB;GACvD,CAAA;EACD,KAAoB,QACnB,kBAAC,OAAD;GAAK,WAAW;aAA0B;GAAuB,CAAA;EAEnE,kBAAC,OAAD;GAAK,WAAW,EAAG,GAAgB,EAAiB;GAAG;GAAe,CAAA;EAClE;IAIG,KAAqB,EAChC,aACA,cACA,oBAAiB,IACjB,GAAG,QACsC;CACzC,IAAI;AAOJ,QANI,IACF,IAAmB,EAAG,GAAuB,EAAU,GAC9C,KAAa,SACtB,IAAmB,IAInB,kBAAC,OAAD;EAAK,GAAI;EAAM,WAAW;EACvB;EACG,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/atomic/templates/detail-page/detailPage.css.ts
|
|
4
|
+
var e = "_8ct8xq0 txvbqb9io txvbqbai6 txvbqbap6 txvbqbnvf txvbqbp5x", t = "_8ct8xq1 txvbqb9io txvbqbai6 txvbqbaoo", n = "_8ct8xq2 txvbqb9io txvbqbco txvbqbdo6 txvbqbao6 txvbqbajx", r = "_8ct8xq3 txvbqb9io txvbqbco txvbqbao6 txvbqbajx", i = "_8ct8xq4 txvbqb9io txvbqbco", a = "_8ct8xq5 txvbqb9io txvbqbco", o = "_8ct8xq6 txvbqb9io txvbqbai6 txvbqbap6", s = "_8ct8xq7 txvbqb9io txvbqbai6 txvbqbaoo";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { i as actionItem, n as actions, e as container, o as content, s as contentSection, t as headerSupplement, a as primaryAction, r as secondaryActions };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=detailPage.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detailPage.css.js","names":[],"sources":["../../../../../src/atomic/templates/detail-page/detailPage.css.ts"],"sourcesContent":["import { sprinkles } from '../../../theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 6,\n paddingLeft: 4,\n paddingTop: 4,\n});\n\nexport const headerSupplement = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 4,\n});\n\nexport const actions = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n gap: 2,\n flexWrap: 'wrap',\n});\n\nexport const secondaryActions = sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n flexWrap: 'wrap',\n});\n\nexport const actionItem = sprinkles({\n display: 'flex',\n alignItems: 'center',\n});\n\nexport const primaryAction = sprinkles({\n display: 'flex',\n alignItems: 'center',\n});\n\nexport const content = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 6,\n});\n\nexport const contentSection = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 4,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { BackofficePageHeader as t } from "../../../backoffice/molecules/backoffice_page_header/BackofficePageHeader.js";
|
|
3
|
+
import { actions as n, container as r, content as i } from "./pageContainer.css.js";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
+
//#region src/atomic/templates/page-container/PageContainer.tsx
|
|
6
|
+
var s = ({ title: s, subtitle: c, primaryAction: l, secondaryActions: u, leftAction: d, children: f, className: p, contentClassName: m }) => {
|
|
7
|
+
let h = u ?? [], g = l != null, _ = h.length > 0, v = null;
|
|
8
|
+
return (g || _) && (v = /* @__PURE__ */ o("div", {
|
|
9
|
+
className: n,
|
|
10
|
+
children: [_ && /* @__PURE__ */ a("div", {
|
|
11
|
+
className: "_1u2lre42 txvbqb9io txvbqbco txvbqbao6 txvbqbajx",
|
|
12
|
+
children: h.map((e, t) => /* @__PURE__ */ a("div", {
|
|
13
|
+
className: "_1u2lre43 txvbqb9io txvbqbco",
|
|
14
|
+
children: e
|
|
15
|
+
}, t))
|
|
16
|
+
}), g && /* @__PURE__ */ a("div", {
|
|
17
|
+
className: "_1u2lre44 txvbqb9io txvbqbco",
|
|
18
|
+
children: l
|
|
19
|
+
})]
|
|
20
|
+
})), /* @__PURE__ */ o("div", {
|
|
21
|
+
className: e(r, p),
|
|
22
|
+
children: [/* @__PURE__ */ a(t, {
|
|
23
|
+
title: s,
|
|
24
|
+
subtitle: c,
|
|
25
|
+
actions: v,
|
|
26
|
+
leftActions: d
|
|
27
|
+
}), /* @__PURE__ */ a("div", {
|
|
28
|
+
className: e(i, m),
|
|
29
|
+
children: f
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { s as PageContainer, s as default };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=PageContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageContainer.js","names":[],"sources":["../../../../../src/atomic/templates/page-container/PageContainer.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { BackofficePageHeader } from '../../../backoffice/molecules/backoffice_page_header/BackofficePageHeader.js';\nimport { cx } from '../../../theme/tools.js';\nimport * as styles from './pageContainer.css.js';\n\nexport type PageContainerProps = {\n title: string;\n subtitle?: ReactNode;\n primaryAction?: ReactNode;\n secondaryActions?: readonly ReactNode[];\n leftAction?: ReactNode;\n children: ReactNode;\n className?: string;\n contentClassName?: string;\n};\n\nexport const PageContainer = ({\n title,\n subtitle,\n primaryAction,\n secondaryActions,\n leftAction,\n children,\n className,\n contentClassName,\n}: PageContainerProps): JSX.Element => {\n const secondary = secondaryActions ?? [];\n const hasPrimaryAction = primaryAction != null;\n const hasSecondaryActions = secondary.length > 0;\n\n let actions: ReactNode | null = null;\n if (hasPrimaryAction || hasSecondaryActions) {\n actions = (\n <div className={styles.actions}>\n {hasSecondaryActions && (\n <div className={styles.secondaryActions}>\n {secondary.map((action, index) => {\n return (\n <div key={index} className={styles.actionItem}>\n {action}\n </div>\n );\n })}\n </div>\n )}\n {hasPrimaryAction && (\n <div className={styles.primaryAction}>{primaryAction}</div>\n )}\n </div>\n );\n }\n\n return (\n <div className={cx(styles.container, className)}>\n <BackofficePageHeader\n title={title}\n subtitle={subtitle}\n actions={actions}\n leftActions={leftAction}\n />\n <div className={cx(styles.content, contentClassName)}>{children}</div>\n </div>\n );\n};\n\nexport default PageContainer;\n"],"mappings":";;;;;AAiBA,IAAa,KAAiB,EAC5B,UACA,aACA,eAAA,GACA,kBAAA,GACA,eACA,aACA,cACA,0BACqC;CACrC,IAAM,IAAY,KAAoB,EAAE,EAClC,IAAmB,KAAiB,MACpC,IAAsB,EAAU,SAAS,GAE3C,IAA4B;AAsBhC,SArBI,KAAoB,OACtB,IACE,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACG,KACC,kBAAC,OAAD;GAAK,WAAW;aACb,EAAU,KAAK,GAAQ,MAEpB,kBAAC,OAAD;IAAiB,WAAW;cACzB;IACG,EAFI,EAEJ,CAER;GACE,CAAA,EAEP,KACC,kBAAC,OAAD;GAAK,WAAW;aAAuB;GAAoB,CAAA,CAEzD;MAKR,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAkB,EAAU;YAA/C,CACE,kBAAC,GAAD;GACS;GACG;GACD,SAAA;GACT,aAAa;GACb,CAAA,EACF,kBAAC,OAAD;GAAK,WAAW,EAAG,GAAgB,EAAiB;GAAG;GAAe,CAAA,CAClE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/atomic/templates/page-container/pageContainer.css.ts
|
|
4
|
+
var e = "_1u2lre40 txvbqbnvo txvbqboix txvbqb9io txvbqbai6 txvbqbap6 txvbqbcf txvbqbu6f txvbqbef txvbqbp66 txvbqb9mx txvbqbjg6", t = "_1u2lre41 txvbqb9io txvbqbco txvbqbdo6 txvbqbao6 txvbqbajx", n = "_1u2lre42 txvbqb9io txvbqbco txvbqbao6 txvbqbajx", r = "_1u2lre43 txvbqb9io txvbqbco", i = "_1u2lre44 txvbqb9io txvbqbco", a = "_1u2lre45 txvbqbu6f txvbqb9io txvbqbcf txvbqbai6";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { r as actionItem, t as actions, e as container, a as content, i as primaryAction, n as secondaryActions };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=pageContainer.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageContainer.css.js","names":[],"sources":["../../../../../src/atomic/templates/page-container/pageContainer.css.ts"],"sourcesContent":["import { sprinkles } from '../../../theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 6,\n alignItems: 'flex-start',\n width: 'full',\n alignSelf: 'stretch',\n paddingTop: 5,\n paddingX: 5,\n flex: 1,\n minHeight: 0,\n});\n\nexport const actions = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n gap: 2,\n flexWrap: 'wrap',\n});\n\nexport const secondaryActions = sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n flexWrap: 'wrap',\n});\n\nexport const actionItem = sprinkles({\n display: 'flex',\n alignItems: 'center',\n});\n\nexport const primaryAction = sprinkles({\n display: 'flex',\n alignItems: 'center',\n});\n\nexport const content = sprinkles({\n width: 'full',\n display: 'flex',\n alignItems: 'flex-start',\n flexDirection: 'column',\n});\n"],"mappings":""}
|
|
@@ -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 { feedback as n, root as r, value as i, valueNoTruncate as a } from "./copyableText.css.js";
|
|
4
4
|
import "../../../index.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useCallback as o, useEffect as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
6
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
7
|
//#region src/backoffice/atoms/copyable_text/CopyableText.tsx
|
|
8
8
|
var p = (e) => {
|
|
9
9
|
try {
|
|
@@ -15,16 +15,16 @@ var p = (e) => {
|
|
|
15
15
|
return !1;
|
|
16
16
|
}
|
|
17
17
|
}, m = ({ value: m, copyValue: h, className: g, truncate: _ = !0, copyLabel: v = "Copy", copiedLabel: y = "Copied" }) => {
|
|
18
|
-
let [b, x] =
|
|
18
|
+
let [b, x] = u(!1), S = l(null), C = h ?? m, w = c(() => {
|
|
19
19
|
let t = null;
|
|
20
20
|
return _ || (t = a), e(i, t, g);
|
|
21
|
-
}, [g, _]), T =
|
|
21
|
+
}, [g, _]), T = o(() => {
|
|
22
22
|
S.current != null && (window.clearTimeout(S.current), S.current = null);
|
|
23
23
|
}, []);
|
|
24
|
-
|
|
24
|
+
s(() => () => {
|
|
25
25
|
T();
|
|
26
26
|
}, [T]);
|
|
27
|
-
let E =
|
|
27
|
+
let E = o(async () => {
|
|
28
28
|
T();
|
|
29
29
|
let e = !1;
|
|
30
30
|
try {
|
|
@@ -41,20 +41,20 @@ var p = (e) => {
|
|
|
41
41
|
}, [T, C]), D = () => {
|
|
42
42
|
E().catch(() => {});
|
|
43
43
|
}, O = null;
|
|
44
|
-
return b && (O = /* @__PURE__ */
|
|
44
|
+
return b && (O = /* @__PURE__ */ d("span", {
|
|
45
45
|
className: n,
|
|
46
46
|
role: "status",
|
|
47
47
|
"aria-live": "polite",
|
|
48
48
|
children: y
|
|
49
|
-
})), /* @__PURE__ */
|
|
49
|
+
})), /* @__PURE__ */ f("span", {
|
|
50
50
|
className: r,
|
|
51
51
|
children: [
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ d("span", {
|
|
53
53
|
className: w,
|
|
54
54
|
title: m,
|
|
55
55
|
children: m
|
|
56
56
|
}),
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ d(t, {
|
|
58
58
|
type: "button",
|
|
59
59
|
variant: "secondary",
|
|
60
60
|
size: "small",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { container as e, key as t } from "./shortcutHint.css.js";
|
|
2
|
+
import { cx as n } from "../../../theme/tools.js";
|
|
3
3
|
import "../../../index.js";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
//#region src/backoffice/atoms/shortcut_hint/ShortcutHint.tsx
|
|
6
6
|
var i = ({ keys: i, className: a }) => {
|
|
7
7
|
let o = [];
|
|
8
8
|
return o = typeof i == "string" ? i.split(" ") : [...i], /* @__PURE__ */ r("span", {
|
|
9
|
-
className: e
|
|
9
|
+
className: n(e, a),
|
|
10
10
|
"aria-hidden": "true",
|
|
11
|
-
children: o.map((e,
|
|
12
|
-
className:
|
|
11
|
+
children: o.map((e, n) => /* @__PURE__ */ r("kbd", {
|
|
12
|
+
className: t,
|
|
13
13
|
children: e
|
|
14
|
-
}, `${e}-${
|
|
14
|
+
}, `${e}-${n}`))
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
@@ -2,25 +2,25 @@ import { cx as e } from "../../../theme/tools.js";
|
|
|
2
2
|
import { ModalCloseSvg as t } from "../../../icons/ModalCloseSvg.js";
|
|
3
3
|
import { removeButton as n, rootRecipe as r } from "./tag.css.js";
|
|
4
4
|
import "../../../index.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useId as i } from "react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
//#region src/backoffice/atoms/tag/Tag.tsx
|
|
8
8
|
var s = ({ children: s, tone: c = "neutral", className: l, onRemove: u, removeLabel: d = "Remove" }) => {
|
|
9
|
-
let f =
|
|
10
|
-
return p && (m = /* @__PURE__ */
|
|
9
|
+
let f = i(), p = typeof u == "function", m = null;
|
|
10
|
+
return p && (m = /* @__PURE__ */ a("button", {
|
|
11
11
|
type: "button",
|
|
12
12
|
className: n,
|
|
13
13
|
onClick: u,
|
|
14
14
|
"aria-label": d,
|
|
15
15
|
"aria-describedby": f,
|
|
16
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ a(t, {
|
|
17
17
|
width: 14,
|
|
18
18
|
height: 14,
|
|
19
19
|
"aria-hidden": "true"
|
|
20
20
|
})
|
|
21
|
-
})), /* @__PURE__ */
|
|
21
|
+
})), /* @__PURE__ */ o("span", {
|
|
22
22
|
className: e(r({ tone: c }), l),
|
|
23
|
-
children: [/* @__PURE__ */
|
|
23
|
+
children: [/* @__PURE__ */ a("span", {
|
|
24
24
|
id: f,
|
|
25
25
|
children: s
|
|
26
26
|
}), m]
|