@plumile/ui 0.1.67 → 0.1.69
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 +1 -0
- 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/MarkdownShikiCodeBlock.js +4 -4
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTaskListItem.css.js +0 -1
- 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/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_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 +105 -104
- 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/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 +9 -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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsLayout.js","names":[],"sources":["../../../../src/components/layout/SettingsLayout.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '../../theme/tools.js';\nimport * as styles from './SettingsLayout.css.js';\n\nexport type SettingsLayoutProps = {\n nav: ReactNode;\n children: ReactNode;\n className?: string;\n navClassName?: string;\n contentClassName?: string;\n};\n\nexport const SettingsLayout = ({\n nav,\n children,\n className,\n navClassName,\n contentClassName,\n}: SettingsLayoutProps): JSX.Element => {\n return (\n <div className={cx(styles.container, className)}>\n <aside className={cx(styles.sidebar, navClassName)}>{nav}</aside>\n <section className={cx(styles.content, contentClassName)}>\n {children}\n </section>\n </div>\n );\n};\n\nexport default SettingsLayout;\n"],"mappings":";;;;AAaA,IAAa,KAAkB,EAC7B,QACA,aACA,cACA,iBACA,0BAGE,kBAAC,OAAD;CAAK,WAAW,EAAG,GAAkB,EAAU;WAA/C,CACE,kBAAC,SAAD;EAAO,WAAW,EAAG,GAAgB,EAAa;YAAG;EAAY,CAAA,EACjE,kBAAC,WAAD;EAAS,WAAW,EAAG,GAAgB,EAAiB;EACrD;EACO,CAAA,CACN"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/components/layout/SplitViewLayout.css.ts
|
|
4
|
+
var e = "_1dcntij0 txvbqb9ix txvbqbaoo txvbqblax txvbqbbxo txvbqbbwr", t = "_1dcntij1 txvbqb1ro txvbqbv2z txvbqb1co txvbqb1qf txvbqbwf txvbqbl6f";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as container, t as panel };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=SplitViewLayout.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitViewLayout.css.js","names":[],"sources":["../../../../src/components/layout/SplitViewLayout.css.ts"],"sourcesContent":["import { sprinkles } from '../../theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'grid',\n gap: 4,\n padding: 6,\n gridTemplateColumns: {\n base: 'splitViewSplit',\n lg: 'detailSingle',\n },\n});\n\nexport const panel = sprinkles({\n borderRadius: 'lg',\n backgroundColor: 'background',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'border',\n overflow: 'hidden',\n});\n"],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { cx as e } from "
|
|
2
|
-
import { container as t, panel as n } from "./
|
|
1
|
+
import { cx as e } from "../../theme/tools.js";
|
|
2
|
+
import { container as t, panel as n } from "./SplitViewLayout.css.js";
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
-
//#region src/
|
|
4
|
+
//#region src/components/layout/SplitViewLayout.tsx
|
|
5
5
|
var a = ({ list: a, detail: o, className: s, listClassName: c, detailClassName: l }) => /* @__PURE__ */ i("div", {
|
|
6
6
|
className: e(t, s),
|
|
7
7
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -13,6 +13,6 @@ var a = ({ list: a, detail: o, className: s, listClassName: c, detailClassName:
|
|
|
13
13
|
})]
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
|
-
export { a as
|
|
16
|
+
export { a as SplitViewLayout, a as default };
|
|
17
17
|
|
|
18
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=SplitViewLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitViewLayout.js","names":[],"sources":["../../../../src/components/layout/SplitViewLayout.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '../../theme/tools.js';\nimport * as styles from './SplitViewLayout.css.js';\n\nexport type SplitViewLayoutProps = {\n list: ReactNode;\n detail: ReactNode;\n className?: string;\n listClassName?: string;\n detailClassName?: string;\n};\n\nexport const SplitViewLayout = ({\n list,\n detail,\n className,\n listClassName,\n detailClassName,\n}: SplitViewLayoutProps): JSX.Element => {\n return (\n <div className={cx(styles.container, className)}>\n <div className={cx(styles.panel, listClassName)}>{list}</div>\n <div className={cx(styles.panel, detailClassName)}>{detail}</div>\n </div>\n );\n};\n\nexport default SplitViewLayout;\n"],"mappings":";;;;AAaA,IAAa,KAAmB,EAC9B,SACA,WACA,cACA,kBACA,yBAGE,kBAAC,OAAD;CAAK,WAAW,EAAG,GAAkB,EAAU;WAA/C,CACE,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAc,EAAc;YAAG;EAAW,CAAA,EAC7D,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAc,EAAgB;YAAG;EAAa,CAAA,CAC7D"}
|
|
@@ -2,12 +2,12 @@ import { cx as e } from "../../theme/tools.js";
|
|
|
2
2
|
import { useUiTranslation as t } from "../../i18n/useUiTranslation.js";
|
|
3
3
|
import { ChevronDownSvg as n } from "../../icons/ChevronDownSvg.js";
|
|
4
4
|
import { actionsContainer as r, container as i, label as a, menu as o, menuOpen as s, menuSeparator as c, optionButton as l, optionDescription as u, optionSelected as d, trigger as f, triggerIcon as ee, triggerIconBrand as te, triggerIconOpen as ne, triggerOpen as re, valueText as ie } from "./SimpleSelect.css.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useCallback as p, useEffect as m, useId as h, useMemo as g, useRef as _, useState as v } from "react";
|
|
6
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/select/SimpleSelect.tsx
|
|
8
8
|
var S = ({ actionsSlot: S, className: C, isDisabled: w = !1, label: T, onChange: ae, options: E, placeholder: oe, value: D, variant: O = "default" }) => {
|
|
9
|
-
let { t: k } = t(), [A, j] =
|
|
10
|
-
|
|
9
|
+
let { t: k } = t(), [A, j] = v(!1), M = oe ?? k("common.select.placeholder"), [N, P] = v(-1), F = _(null), I = _(null), L = _(/* @__PURE__ */ new Map()), R = h(), z = g(() => E.find((e) => e.value === D) ?? null, [E, D]);
|
|
10
|
+
m(() => {
|
|
11
11
|
if (!A) return;
|
|
12
12
|
let e = E.findIndex((e) => e.value === D), t = 0;
|
|
13
13
|
e >= 0 && (t = e), P(t);
|
|
@@ -15,7 +15,7 @@ var S = ({ actionsSlot: S, className: C, isDisabled: w = !1, label: T, onChange:
|
|
|
15
15
|
A,
|
|
16
16
|
E,
|
|
17
17
|
D
|
|
18
|
-
]),
|
|
18
|
+
]), m(() => {
|
|
19
19
|
if (!A || N < 0 || N >= E.length) return;
|
|
20
20
|
let e = E[N];
|
|
21
21
|
e != null && L.current.get(e.id)?.focus();
|
|
@@ -23,7 +23,7 @@ var S = ({ actionsSlot: S, className: C, isDisabled: w = !1, label: T, onChange:
|
|
|
23
23
|
N,
|
|
24
24
|
A,
|
|
25
25
|
E
|
|
26
|
-
]),
|
|
26
|
+
]), m(() => {
|
|
27
27
|
if (!A) return () => {};
|
|
28
28
|
let e = (e) => {
|
|
29
29
|
F.current?.contains(e.target) || j(!1);
|
|
@@ -33,10 +33,10 @@ var S = ({ actionsSlot: S, className: C, isDisabled: w = !1, label: T, onChange:
|
|
|
33
33
|
return document.addEventListener("mousedown", e), window.addEventListener("keydown", t), () => {
|
|
34
34
|
document.removeEventListener("mousedown", e), window.removeEventListener("keydown", t);
|
|
35
35
|
};
|
|
36
|
-
}, [A]),
|
|
36
|
+
}, [A]), m(() => {
|
|
37
37
|
L.current.clear();
|
|
38
38
|
}, [E]);
|
|
39
|
-
let B =
|
|
39
|
+
let B = p(() => {
|
|
40
40
|
j(!1), requestAnimationFrame(() => {
|
|
41
41
|
I.current?.focus();
|
|
42
42
|
});
|
|
@@ -88,12 +88,12 @@ var S = ({ actionsSlot: S, className: C, isDisabled: w = !1, label: T, onChange:
|
|
|
88
88
|
let r = t.value === D, i = e(l, { [d]: r }), a = -1;
|
|
89
89
|
N === n && (a = 0);
|
|
90
90
|
let o = null;
|
|
91
|
-
return t.description != null && t.description !== "" && (o = /* @__PURE__ */
|
|
91
|
+
return t.description != null && t.description !== "" && (o = /* @__PURE__ */ b("span", {
|
|
92
92
|
className: u,
|
|
93
93
|
children: t.description
|
|
94
|
-
})), /* @__PURE__ */
|
|
94
|
+
})), /* @__PURE__ */ b("li", {
|
|
95
95
|
role: "presentation",
|
|
96
|
-
children: /* @__PURE__ */
|
|
96
|
+
children: /* @__PURE__ */ x("button", {
|
|
97
97
|
ref: K(t.id),
|
|
98
98
|
type: "button",
|
|
99
99
|
role: "option",
|
|
@@ -106,13 +106,13 @@ var S = ({ actionsSlot: S, className: C, isDisabled: w = !1, label: T, onChange:
|
|
|
106
106
|
onMouseEnter: () => {
|
|
107
107
|
P(n);
|
|
108
108
|
},
|
|
109
|
-
children: [/* @__PURE__ */
|
|
109
|
+
children: [/* @__PURE__ */ b("span", { children: t.label }), o]
|
|
110
110
|
})
|
|
111
111
|
}, t.id);
|
|
112
112
|
}), J;
|
|
113
113
|
N >= 0 && N < E.length && (J = E[N]?.id);
|
|
114
114
|
let Y = null;
|
|
115
|
-
T != null && (Y = /* @__PURE__ */
|
|
115
|
+
T != null && (Y = /* @__PURE__ */ b("span", {
|
|
116
116
|
id: q,
|
|
117
117
|
className: a,
|
|
118
118
|
children: T
|
|
@@ -120,21 +120,21 @@ var S = ({ actionsSlot: S, className: C, isDisabled: w = !1, label: T, onChange:
|
|
|
120
120
|
let X;
|
|
121
121
|
A && (X = R);
|
|
122
122
|
let Z = null;
|
|
123
|
-
S != null && (Z = /* @__PURE__ */
|
|
123
|
+
S != null && (Z = /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("li", {
|
|
124
124
|
role: "presentation",
|
|
125
|
-
children: /* @__PURE__ */
|
|
125
|
+
children: /* @__PURE__ */ b("div", {
|
|
126
126
|
className: c,
|
|
127
127
|
role: "separator"
|
|
128
128
|
})
|
|
129
|
-
}), /* @__PURE__ */
|
|
129
|
+
}), /* @__PURE__ */ b("li", {
|
|
130
130
|
role: "presentation",
|
|
131
|
-
children: /* @__PURE__ */
|
|
131
|
+
children: /* @__PURE__ */ b("div", {
|
|
132
132
|
className: r,
|
|
133
133
|
children: se()
|
|
134
134
|
})
|
|
135
135
|
})] }));
|
|
136
136
|
let Q = null;
|
|
137
|
-
A && (Q = /* @__PURE__ */
|
|
137
|
+
A && (Q = /* @__PURE__ */ x("ul", {
|
|
138
138
|
id: R,
|
|
139
139
|
className: e(o, s),
|
|
140
140
|
role: "listbox",
|
|
@@ -147,12 +147,12 @@ var S = ({ actionsSlot: S, className: C, isDisabled: w = !1, label: T, onChange:
|
|
|
147
147
|
[ne]: A,
|
|
148
148
|
[te]: O === "brand"
|
|
149
149
|
});
|
|
150
|
-
return /* @__PURE__ */
|
|
150
|
+
return /* @__PURE__ */ x("div", {
|
|
151
151
|
className: e(i, C),
|
|
152
152
|
ref: F,
|
|
153
153
|
children: [
|
|
154
154
|
Y,
|
|
155
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ x("button", {
|
|
156
156
|
ref: I,
|
|
157
157
|
type: "button",
|
|
158
158
|
className: le,
|
|
@@ -163,12 +163,12 @@ var S = ({ actionsSlot: S, className: C, isDisabled: w = !1, label: T, onChange:
|
|
|
163
163
|
onClick: V,
|
|
164
164
|
onKeyDown: U,
|
|
165
165
|
disabled: w,
|
|
166
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ b("span", {
|
|
167
167
|
className: ie,
|
|
168
168
|
children: z?.label ?? M
|
|
169
|
-
}), /* @__PURE__ */
|
|
169
|
+
}), /* @__PURE__ */ b("span", {
|
|
170
170
|
className: $,
|
|
171
|
-
children: /* @__PURE__ */
|
|
171
|
+
children: /* @__PURE__ */ b(n, {
|
|
172
172
|
width: 16,
|
|
173
173
|
height: 16,
|
|
174
174
|
"aria-hidden": "true"
|
package/lib/esm/index.js
CHANGED
|
@@ -1,109 +1,110 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { FormattedDate as s } from "./atomic/atoms/formatted-date/FormattedDate.js";
|
|
10
|
-
import { IconMenuButton as c } from "./atomic/atoms/icon-button/IconMenuButton.js";
|
|
11
|
-
import { Overlay as l } from "./atomic/atoms/overlay/Overlay.js";
|
|
12
|
-
import { Modal as u } from "./atomic/atoms/modal/Modal.js";
|
|
13
|
-
import { Textarea as d } from "./atomic/atoms/textarea/Textarea.js";
|
|
14
|
-
import { BreadcrumbNavigation as f } from "./atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.js";
|
|
15
|
-
import { Card as p } from "./atomic/molecules/card/Card.js";
|
|
16
|
-
import { CheckboxField as m } from "./atomic/molecules/checkbox_field/CheckboxField.js";
|
|
17
|
-
import { EmptyState as h } from "./atomic/molecules/empty-state/EmptyState.js";
|
|
18
|
-
import { Form as g } from "./atomic/molecules/form/Form.js";
|
|
19
|
-
import { FormErrorBanner as _ } from "./atomic/molecules/form/FormErrorBanner.js";
|
|
20
|
-
import { FormGroup as v } from "./atomic/molecules/form/FormGroup.js";
|
|
21
|
-
import { FormActions as y } from "./atomic/molecules/form-actions/FormActions.js";
|
|
22
|
-
import { FormError as b } from "./atomic/molecules/form_error/FormError.js";
|
|
23
|
-
import { FormField as x } from "./atomic/molecules/form_field/FormField.js";
|
|
24
|
-
import { HighlightCode as S } from "./atomic/molecules/highlight/HighlightCode.js";
|
|
25
|
-
import { LazyMarkdownRenderer as C } from "./atomic/molecules/markdown/LazyMarkdownRenderer.js";
|
|
26
|
-
import { colors as w } from "./theme/colors.js";
|
|
27
|
-
import { colors as T, spacing as E, vars as D } from "./theme/themeContract.js";
|
|
28
|
-
import { MarkdownRenderer as O } from "./atomic/molecules/markdown/MarkdownRenderer.js";
|
|
29
|
-
import { markdownFontSizeVar as k, markdownLinkColorVar as A, markdownLinkDisabledColorVar as j, markdownLinkHoverColorVar as M, markdownLinkIconColorVar as N, markdownTextColorVar as P } from "./atomic/molecules/markdown/markdownVars.css.js";
|
|
30
|
-
import { ProfileDropdown as F } from "./atomic/molecules/profile_dropdown/ProfileDropdown.js";
|
|
31
|
-
import { Tabs as I } from "./atomic/molecules/tabs/Tabs.js";
|
|
32
|
-
import { ToastViewport as L } from "./atomic/molecules/toast/ToastViewport.js";
|
|
33
|
-
import { ToastProvider as R, useToast as z } from "./atomic/molecules/toast/ToastProvider.js";
|
|
34
|
-
import { THEME_KEY as B, ThemeProvider as V, useTheme as H } from "./theme/ThemeProvider.js";
|
|
35
|
-
import { VisuallyHidden as U } from "./theme/VisuallyHidden.js";
|
|
36
|
-
import { containerQueries as W } from "./theme/containerQueries.js";
|
|
37
|
-
import { firstChildSprinkles as G, hoverSprinkles as K, sprinkles as q } from "./theme/sprinkles.css.js";
|
|
38
|
-
import { opacity as J, screens as Y, spacing as X } from "./theme/common.js";
|
|
1
|
+
import { THEME_KEY as ee, ThemeProvider as te, useTheme as ne } from "./theme/ThemeProvider.js";
|
|
2
|
+
import { cx as e, onlyDefinedStyles as t } from "./theme/tools.js";
|
|
3
|
+
import { VisuallyHidden as n } from "./theme/VisuallyHidden.js";
|
|
4
|
+
import { containerQueries as r } from "./theme/containerQueries.js";
|
|
5
|
+
import { colors as i, spacing as a, vars as o } from "./theme/themeContract.js";
|
|
6
|
+
import { firstChildSprinkles as s, hoverSprinkles as c, sprinkles as l } from "./theme/sprinkles.css.js";
|
|
7
|
+
import { opacity as u, screens as d, spacing as f } from "./theme/common.js";
|
|
8
|
+
import { colors as p } from "./theme/colors.js";
|
|
39
9
|
import "./theme/index.js";
|
|
40
|
-
import {
|
|
10
|
+
import { Badge as m } from "./atomic/atoms/badge/Badge.js";
|
|
11
|
+
import { Button as h } from "./atomic/atoms/button/Button.js";
|
|
12
|
+
import { LinkButton as g } from "./atomic/atoms/button/LinkButton.js";
|
|
13
|
+
import { Input as _ } from "./atomic/atoms/input/Input.js";
|
|
14
|
+
import { Label as v } from "./atomic/atoms/label/Label.js";
|
|
15
|
+
import { Checkbox as y } from "./atomic/atoms/checkbox/Checkbox.js";
|
|
16
|
+
import { ErrorMessage as b } from "./atomic/atoms/error_message/ErrorMessage.js";
|
|
17
|
+
import { FormattedDate as x } from "./atomic/atoms/formatted-date/FormattedDate.js";
|
|
18
|
+
import { IconMenuButton as S } from "./atomic/atoms/icon-button/IconMenuButton.js";
|
|
19
|
+
import { Overlay as C } from "./atomic/atoms/overlay/Overlay.js";
|
|
20
|
+
import { Modal as w } from "./atomic/atoms/modal/Modal.js";
|
|
21
|
+
import { Textarea as T } from "./atomic/atoms/textarea/Textarea.js";
|
|
22
|
+
import { Card as E } from "./atomic/molecules/card/Card.js";
|
|
23
|
+
import { BreadcrumbNavigation as D } from "./atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.js";
|
|
24
|
+
import { FormActions as O } from "./atomic/molecules/form-actions/FormActions.js";
|
|
25
|
+
import { CheckboxField as k } from "./atomic/molecules/checkbox_field/CheckboxField.js";
|
|
26
|
+
import { FormError as A } from "./atomic/molecules/form_error/FormError.js";
|
|
27
|
+
import { FormField as j } from "./atomic/molecules/form_field/FormField.js";
|
|
28
|
+
import { Form as M } from "./atomic/molecules/form/Form.js";
|
|
29
|
+
import { FormErrorBanner as N } from "./atomic/molecules/form/FormErrorBanner.js";
|
|
30
|
+
import { FormGroup as P } from "./atomic/molecules/form/FormGroup.js";
|
|
31
|
+
import { HighlightCode as F } from "./atomic/molecules/highlight/HighlightCode.js";
|
|
32
|
+
import { LazyMarkdownRenderer as I } from "./atomic/molecules/markdown/LazyMarkdownRenderer.js";
|
|
33
|
+
import { MarkdownRenderer as L } from "./atomic/molecules/markdown/MarkdownRenderer.js";
|
|
34
|
+
import { markdownFontSizeVar as R, markdownLinkColorVar as z, markdownLinkDisabledColorVar as B, markdownLinkHoverColorVar as V, markdownLinkIconColorVar as H, markdownTextColorVar as U } from "./atomic/molecules/markdown/markdownVars.css.js";
|
|
35
|
+
import { EmptyState as W } from "./atomic/molecules/empty-state/EmptyState.js";
|
|
36
|
+
import { ProfileDropdown as G } from "./atomic/molecules/profile_dropdown/ProfileDropdown.js";
|
|
37
|
+
import { Tabs as K } from "./atomic/molecules/tabs/Tabs.js";
|
|
38
|
+
import { ToastViewport as q } from "./atomic/molecules/toast/ToastViewport.js";
|
|
39
|
+
import { ToastProvider as J, useToast as Y } from "./atomic/molecules/toast/ToastProvider.js";
|
|
40
|
+
import { useLoginForm as X } from "./atomic/organisms/login_form/useLoginForm.js";
|
|
41
|
+
import { LoginForm as Z } from "./atomic/organisms/login_form/LoginForm.js";
|
|
41
42
|
import { SidebarContainer as Q } from "./atomic/organisms/sidebar/SidebarContainer.js";
|
|
42
43
|
import "./atomic/organisms/sidebar/Sidebar.js";
|
|
43
|
-
import { ChevronLeftIcon as
|
|
44
|
-
import { NavigationSidebar as
|
|
45
|
-
import { AuthLayout as
|
|
46
|
-
import { BillingUsageLineChart as
|
|
47
|
-
import { DataTable as
|
|
48
|
-
import { ContentLayout as
|
|
49
|
-
import { PageShell as
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import { BackofficeTopbar as lt } from "./backoffice/organisms/backoffice_topbar/BackofficeTopbar.js";
|
|
44
|
+
import { ChevronLeftIcon as re, ChevronRightIcon as ie, DocumentationIcon as ae, HomeIcon as oe, InitiativesIcon as se, PlusIcon as ce, ProjectsIcon as le, SearchIcon as ue, SettingsIcon as de, TasksIcon as fe, TeamIcon as pe } from "./atomic/organisms/sidebar/icons.js";
|
|
45
|
+
import { NavigationSidebar as me } from "./atomic/organisms/sidebar/NavigationSidebar.js";
|
|
46
|
+
import { AuthLayout as he } from "./atomic/templates/auth_layout/AuthLayout.js";
|
|
47
|
+
import { BillingUsageLineChart as ge } from "./components/charts/BillingUsageLineChart.js";
|
|
48
|
+
import { DataTable as _e } from "./components/data-table/DataTable.js";
|
|
49
|
+
import { ContentLayout as ve } from "./components/layout/ContentLayout.js";
|
|
50
|
+
import { PageShell as ye } from "./components/layout/PageShell.js";
|
|
51
|
+
import { AppShell as be } from "./components/layout/AppShell.js";
|
|
52
|
+
import { OrganizationLayout as xe } from "./components/organization_layout/OrganizationLayout.js";
|
|
53
|
+
import { SettingsLayout as Se } from "./components/layout/SettingsLayout.js";
|
|
54
|
+
import { SplitViewLayout as $ } from "./components/layout/SplitViewLayout.js";
|
|
55
|
+
import { sanitizeAgentAnswer as Ce, sanitizeAgentMarkdown as we } from "./shared/agentText.js";
|
|
56
|
+
import { AgentMarkdownCard as Te } from "./components/agent/AgentMarkdownCard.js";
|
|
57
|
+
import { SimpleSelect as Ee } from "./components/select/SimpleSelect.js";
|
|
58
|
+
import { RefetchNeededBanner as De } from "./components/subscriptions/RefetchNeededBanner.js";
|
|
59
|
+
import { TabsContentLayout as Oe } from "./components/layout/TabsContentLayout.js";
|
|
60
|
+
import { InfoTile as ke } from "./components/tile/InfoTile.js";
|
|
61
|
+
import { VirtualizedConnectionTable as Ae } from "./components/data-table/VirtualizedConnectionTable.js";
|
|
62
|
+
import { CopyableText as je } from "./backoffice/atoms/copyable_text/CopyableText.js";
|
|
63
|
+
import { BackofficeIdBadge as Me } from "./backoffice/atoms/backoffice_id_badge/BackofficeIdBadge.js";
|
|
64
|
+
import { EnvironmentBadge as Ne } from "./backoffice/atoms/environment_badge/EnvironmentBadge.js";
|
|
65
|
+
import { Skeleton as Pe } from "./backoffice/atoms/skeleton/Skeleton.js";
|
|
66
|
+
import { Spinner as Fe } from "./backoffice/atoms/spinner/Spinner.js";
|
|
67
|
+
import { StatusBadge as Ie } from "./backoffice/atoms/status_badge/StatusBadge.js";
|
|
68
|
+
import { Tag as Le } from "./backoffice/atoms/tag/Tag.js";
|
|
69
|
+
import { BackofficeDetailLayout as Re } from "./backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js";
|
|
70
|
+
import { BackofficeEmptyState as ze } from "./backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js";
|
|
71
|
+
import { BackofficeFilterDrawer as Be } from "./backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.js";
|
|
72
|
+
import { BackofficeFilterField as Ve } from "./backoffice/molecules/backoffice_filter_field/BackofficeFilterField.js";
|
|
73
|
+
import { BackofficeFiltersBar as He } from "./backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js";
|
|
74
|
+
import { BackofficeFormSection as Ue } from "./backoffice/molecules/backoffice_form_section/BackofficeFormSection.js";
|
|
75
|
+
import { ConfirmDialog as We } from "./backoffice/molecules/confirm_dialog/ConfirmDialog.js";
|
|
76
|
+
import { BackofficeJsonViewer as Ge } from "./backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.js";
|
|
77
|
+
import { LazyBackofficeJsonViewer as Ke } from "./backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js";
|
|
78
|
+
import { BackofficeKeyValueList as qe } from "./backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js";
|
|
79
|
+
import { BackofficeLoadMore as Je } from "./backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js";
|
|
80
|
+
import { BackofficePageHeader as Ye } from "./backoffice/molecules/backoffice_page_header/BackofficePageHeader.js";
|
|
81
|
+
import { BackofficeRelationsMenu as Xe } from "./backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js";
|
|
82
|
+
import { BackofficeTableSkeleton as Ze } from "./backoffice/molecules/backoffice_table_skeleton/BackofficeTableSkeleton.js";
|
|
83
|
+
import { BackofficeTableToolbar as Qe } from "./backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js";
|
|
84
|
+
import { BackofficeTabs as $e } from "./backoffice/molecules/backoffice_tabs/BackofficeTabs.js";
|
|
85
|
+
import { BulkActionsBar as et } from "./backoffice/molecules/bulk_actions_bar/BulkActionsBar.js";
|
|
86
|
+
import { FilterChipRow as tt } from "./backoffice/molecules/filter_chip_row/FilterChipRow.js";
|
|
87
|
+
import { GlobalSearchInput as nt } from "./backoffice/molecules/global_search_input/GlobalSearchInput.js";
|
|
88
|
+
import { InlineBanner as rt } from "./backoffice/molecules/inline_banner/InlineBanner.js";
|
|
89
|
+
import { SidebarNavItem as it } from "./backoffice/molecules/sidebar_nav_item/SidebarNavItem.js";
|
|
90
|
+
import { SidebarNavSection as at } from "./backoffice/molecules/sidebar_nav_section/SidebarNavSection.js";
|
|
91
|
+
import { BackofficeSidebarProfileMenu as ot } from "./backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js";
|
|
92
|
+
import { TableToolbar as st } from "./backoffice/molecules/table_toolbar/TableToolbar.js";
|
|
93
|
+
import { AuditTimeline as ct } from "./backoffice/organisms/audit_timeline/AuditTimeline.js";
|
|
94
|
+
import { BackofficeDataTable as lt } from "./backoffice/organisms/backoffice_data_table/BackofficeDataTable.js";
|
|
95
95
|
import { BackofficeVirtualizedConnectionTable as ut } from "./backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js";
|
|
96
96
|
import { EntityHeader as dt } from "./backoffice/organisms/entity_header/EntityHeader.js";
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
|
|
97
|
+
import { DetailPageTemplate as ft } from "./backoffice/templates/detail_page_template/DetailPageTemplate.js";
|
|
98
|
+
import { ListPageTemplate as pt } from "./backoffice/templates/list_page_template/ListPageTemplate.js";
|
|
99
|
+
import { AdminTopbar as mt } from "./admin/organisms/admin_topbar/AdminTopbar.js";
|
|
100
|
+
import { AdminShellLayout as ht } from "./admin/templates/admin_shell_layout/AdminShellLayout.js";
|
|
101
|
+
import { adminThemeClass as gt } from "./admin/theme/adminTheme.css.js";
|
|
102
|
+
import { AdminThemeProvider as _t } from "./admin/theme/AdminThemeProvider.js";
|
|
103
|
+
import { FALLBACK_REFERENCE as vt, formatNullableCurrency as yt, formatNullableNumber as bt, formatNullableString as xt, formatStringList as St } from "./shared/agentJobRequestFormatting.js";
|
|
104
|
+
import { denseTableClass as Ct } from "./shared/backofficeTableDensity.css.js";
|
|
105
|
+
import { WrapperPage as wt } from "./pages/WrapperPage.js";
|
|
106
|
+
import { ChevronDownIcon as Tt } from "./svg/ChevronDownIcon.js";
|
|
107
|
+
import { ShortcutHint as Et } from "./backoffice/atoms/shortcut_hint/ShortcutHint.js";
|
|
108
|
+
import { SidebarCollapseToggle as Dt } from "./backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.js";
|
|
109
|
+
import { AdminSidebar as Ot } from "./admin/organisms/admin_sidebar/AdminSidebar.js";
|
|
110
|
+
export { ht as AdminShellLayout, Ot as AdminSidebar, _t as AdminThemeProvider, mt as AdminTopbar, Te as AgentMarkdownCard, be as AppShell, ct as AuditTimeline, he as AuthLayout, lt as BackofficeDataTable, Re as BackofficeDetailLayout, ze as BackofficeEmptyState, Be as BackofficeFilterDrawer, Ve as BackofficeFilterField, He as BackofficeFiltersBar, Ue as BackofficeFormSection, Me as BackofficeIdBadge, Ge as BackofficeJsonViewer, qe as BackofficeKeyValueList, Je as BackofficeLoadMore, Ye as BackofficePageHeader, Xe as BackofficeRelationsMenu, ot as BackofficeSidebarProfileMenu, Ze as BackofficeTableSkeleton, Qe as BackofficeTableToolbar, $e as BackofficeTabs, ut as BackofficeVirtualizedConnectionTable, m as Badge, ge as BillingUsageLineChart, D as BreadcrumbNavigation, et as BulkActionsBar, h as Button, E as Card, y as Checkbox, k as CheckboxField, Tt as ChevronDownIcon, re as ChevronLeftIcon, ie as ChevronRightIcon, We as ConfirmDialog, ve as ContentLayout, je as CopyableText, _e as DataTable, ft as DetailPageTemplate, ae as DocumentationIcon, W as EmptyState, dt as EntityHeader, Ne as EnvironmentBadge, b as ErrorMessage, vt as FALLBACK_REFERENCE, tt as FilterChipRow, M as Form, O as FormActions, A as FormError, N as FormErrorBanner, j as FormField, P as FormGroup, x as FormattedDate, nt as GlobalSearchInput, F as HighlightCode, oe as HomeIcon, S as IconMenuButton, ke as InfoTile, se as InitiativesIcon, rt as InlineBanner, _ as Input, v as Label, Ke as LazyBackofficeJsonViewer, I as LazyMarkdownRenderer, g as LinkButton, pt as ListPageTemplate, Z as LoginForm, L as MarkdownRenderer, w as Modal, me as NavigationSidebar, xe as OrganizationLayout, C as Overlay, ye as PageShell, ce as PlusIcon, G as ProfileDropdown, le as ProjectsIcon, De as RefetchNeededBanner, ue as SearchIcon, de as SettingsIcon, Se as SettingsLayout, Et as ShortcutHint, Q as Sidebar, Dt as SidebarCollapseToggle, Q as SidebarContainer, it as SidebarNavItem, at as SidebarNavSection, Ee as SimpleSelect, Pe as Skeleton, Fe as Spinner, $ as SplitViewLayout, Ie as StatusBadge, ee as THEME_KEY, st as TableToolbar, K as Tabs, Oe as TabsContentLayout, Le as Tag, fe as TasksIcon, pe as TeamIcon, T as Textarea, te as ThemeProvider, J as ToastProvider, q as ToastViewport, Ae as VirtualizedConnectionTable, n as VisuallyHidden, wt as WrapperPage, gt as adminThemeClass, i as colors, r as containerQueries, e as cx, Ct as denseTableClass, s as firstChildSprinkles, yt as formatNullableCurrency, bt as formatNullableNumber, xt as formatNullableString, St as formatStringList, c as hoverSprinkles, R as markdownFontSizeVar, z as markdownLinkColorVar, B as markdownLinkDisabledColorVar, V as markdownLinkHoverColorVar, H as markdownLinkIconColorVar, U as markdownTextColorVar, t as onlyDefinedStyles, u as opacity, Ce as sanitizeAgentAnswer, we as sanitizeAgentMarkdown, d as screens, a as spacing, l as sprinkles, p as themeColorValues, f as themeSpacingValues, X as useLoginForm, ne as useTheme, Y as useToast, o as vars };
|
|
@@ -3,11 +3,11 @@ import { isSpecialLang as t } from "../../@shikijs/primitive/dist/index.js";
|
|
|
3
3
|
import { guessEmbeddedLanguages as n } from "../../@shikijs/core/dist/index.js";
|
|
4
4
|
import { dequal as r } from "../../dequal/dist/index.js";
|
|
5
5
|
import i from "../../clsx/dist/clsx.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { forwardRef as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
7
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
8
|
//#region ../../node_modules/react-shiki/dist/chunk-QPJZGYHO.js
|
|
9
9
|
var p = (e) => {
|
|
10
|
-
let t =
|
|
10
|
+
let t = c(e);
|
|
11
11
|
return e !== t.current && !r(e, t.current) && (t.current = e), t.current;
|
|
12
12
|
}, m = (e, t, n) => {
|
|
13
13
|
let r = Date.now();
|
|
@@ -95,16 +95,16 @@ var T = {
|
|
|
95
95
|
}, k = (e, t, r) => {
|
|
96
96
|
let i = r.getBundledLanguages();
|
|
97
97
|
return n(e, t).flatMap((e) => i[e] ?? []);
|
|
98
|
-
}, A = (t, n, r, i = {},
|
|
99
|
-
let [h, g] =
|
|
98
|
+
}, A = (t, n, r, i = {}, a) => {
|
|
99
|
+
let [h, g] = l(null), _ = p(n), v = p(r), y = p(i), { languageId: S, langsToLoad: w } = s(() => x(_, y.customLanguages, y.langAlias, y.preloadLanguages), [
|
|
100
100
|
_,
|
|
101
101
|
y.customLanguages,
|
|
102
102
|
y.preloadLanguages,
|
|
103
103
|
y.langAlias
|
|
104
|
-
]), T =
|
|
104
|
+
]), T = s(() => C(v), [v]), { themesToLoad: E } = T, D = c({
|
|
105
105
|
nextAllowedTime: 0,
|
|
106
106
|
timeoutId: void 0
|
|
107
|
-
}), A =
|
|
107
|
+
}), A = s(() => O({
|
|
108
108
|
languageId: S,
|
|
109
109
|
resolvedTheme: T,
|
|
110
110
|
options: y
|
|
@@ -113,22 +113,22 @@ var T = {
|
|
|
113
113
|
T,
|
|
114
114
|
y
|
|
115
115
|
]);
|
|
116
|
-
return
|
|
116
|
+
return o(() => {
|
|
117
117
|
let n = !0, r = async () => {
|
|
118
118
|
if (!S) return;
|
|
119
|
-
let r = y.highlighter ? y.highlighter : await
|
|
119
|
+
let r = y.highlighter ? y.highlighter : await a(w, E, y.engine);
|
|
120
120
|
if (!y.highlighter) {
|
|
121
121
|
let e = k(t, S, r);
|
|
122
122
|
e.length > 0 && await r.loadLanguage(...e);
|
|
123
123
|
}
|
|
124
|
-
let i = b(S, r.getLoadedLanguages()),
|
|
124
|
+
let i = b(S, r.getLoadedLanguages()), o = {
|
|
125
125
|
...A,
|
|
126
126
|
lang: i
|
|
127
127
|
};
|
|
128
|
-
n && g(y.outputFormat === "html" ? r.codeToHtml(t,
|
|
129
|
-
jsx:
|
|
130
|
-
jsxs:
|
|
131
|
-
Fragment:
|
|
128
|
+
n && g(y.outputFormat === "html" ? r.codeToHtml(t, o) : e(r.codeToHast(t, o), {
|
|
129
|
+
jsx: d,
|
|
130
|
+
jsxs: f,
|
|
131
|
+
Fragment: u
|
|
132
132
|
}));
|
|
133
133
|
}, { delay: i } = y;
|
|
134
134
|
return i ? m(r, D, i) : r().catch(console.error), () => {
|
|
@@ -149,30 +149,30 @@ function j(e, { insertAt: t } = {}) {
|
|
|
149
149
|
r.type = "text/css", t === "top" && n.firstChild ? n.insertBefore(r, n.firstChild) : n.appendChild(r), r.styleSheet ? r.styleSheet.cssText = e : r.appendChild(document.createTextNode(e));
|
|
150
150
|
}
|
|
151
151
|
j(".relative {\n position: relative;\n}\n.defaultStyles pre {\n overflow: auto;\n border-radius: 0.5rem;\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n.languageLabel {\n position: absolute;\n right: 0.75rem;\n top: 0.5rem;\n font-family: monospace;\n font-size: 0.75rem;\n letter-spacing: -0.05em;\n color: rgba(107, 114, 128, 0.85);\n}\n.line-numbers::before {\n counter-increment: line-number;\n content: counter(line-number);\n display: inline-flex;\n justify-content: flex-end;\n align-items: flex-start;\n box-sizing: content-box;\n min-width: var(--line-numbers-width, 2ch);\n padding-left: var(--line-numbers-padding-left, 2ch);\n padding-right: var(--line-numbers-padding-right, 2ch);\n color: var(--line-numbers-foreground, rgba(107, 114, 128, 0.6));\n font-size: var(--line-numbers-font-size, inherit);\n font-weight: var(--line-numbers-font-weight, inherit);\n line-height: var(--line-numbers-line-height, inherit);\n font-family: var(--line-numbers-font-family, inherit);\n opacity: var(--line-numbers-opacity, 1);\n user-select: none;\n pointer-events: none;\n}\n.has-line-numbers {\n counter-reset: line-number calc(var(--line-start, 1) - 1);\n --line-numbers-foreground: rgba(107, 114, 128, 0.5);\n --line-numbers-width: 2ch;\n --line-numbers-padding-left: 0ch;\n --line-numbers-padding-right: 2ch;\n --line-numbers-font-size: inherit;\n --line-numbers-font-weight: inherit;\n --line-numbers-line-height: inherit;\n --line-numbers-font-family: inherit;\n --line-numbers-opacity: 1;\n}\n");
|
|
152
|
-
var M = (e) =>
|
|
152
|
+
var M = (e) => a(({ language: t, theme: n, delay: r, transformers: a, defaultColor: o, cssVariablePrefix: s, addDefaultStyles: c = !0, style: l, langStyle: u, className: p, langClassName: m, showLanguage: h = !0, showLineNumbers: g = !1, startingLineNumber: _ = 1, children: v, as: y = "pre", customLanguages: b, preloadLanguages: x, ...S }, C) => {
|
|
153
153
|
let w = {
|
|
154
154
|
delay: r,
|
|
155
155
|
transformers: a,
|
|
156
156
|
customLanguages: b,
|
|
157
157
|
preloadLanguages: x,
|
|
158
158
|
showLineNumbers: g,
|
|
159
|
-
defaultColor:
|
|
160
|
-
cssVariablePrefix:
|
|
159
|
+
defaultColor: o,
|
|
160
|
+
cssVariablePrefix: s,
|
|
161
161
|
startingLineNumber: _,
|
|
162
162
|
...S
|
|
163
163
|
}, T = typeof t == "object" ? t.name || null : t?.trim() || null, E = e(v, t, n, w), D = typeof E == "string";
|
|
164
|
-
return /* @__PURE__ */
|
|
164
|
+
return /* @__PURE__ */ f(y, {
|
|
165
165
|
ref: C,
|
|
166
166
|
"data-testid": "shiki-container",
|
|
167
|
-
className: i("relative", "not-prose",
|
|
168
|
-
style:
|
|
167
|
+
className: i("relative", "not-prose", c && "defaultStyles", p),
|
|
168
|
+
style: l,
|
|
169
169
|
id: "shiki-container",
|
|
170
|
-
children: [h && T ? /* @__PURE__ */
|
|
170
|
+
children: [h && T ? /* @__PURE__ */ d("span", {
|
|
171
171
|
className: i("languageLabel", m),
|
|
172
|
-
style:
|
|
172
|
+
style: u,
|
|
173
173
|
id: "language-label",
|
|
174
174
|
children: T
|
|
175
|
-
}) : null, D ? /* @__PURE__ */
|
|
175
|
+
}) : null, D ? /* @__PURE__ */ d("div", { dangerouslySetInnerHTML: { __html: E } }) : E]
|
|
176
176
|
});
|
|
177
177
|
});
|
|
178
178
|
//#endregion
|