@krosoft/react 0.0.391 → 0.0.392
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/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/components/core/cards/DashboardCard.js +7 -8
- package/dist/components/core/cards/KpiCard.js +13 -14
- package/dist/components/core/cards/KpiCards.js +1 -2
- package/dist/components/core/cards/MetricCard.js +1 -2
- package/dist/components/core/cards/SkeletonCard.js +1 -2
- package/dist/components/core/cards/SkeletonCards.js +1 -2
- package/dist/components/core/changelog/AppChangelog.js +13 -14
- package/dist/components/core/changelog/AppChangelogEntry.js +19 -20
- package/dist/components/core/changelog/AppChangelogNav.js +1 -2
- package/dist/components/core/changelog/AppChangelogTagFilter.js +11 -12
- package/dist/components/core/charts/BarChartHorizontal.js +6 -7
- package/dist/components/core/charts/BarChartVertical.js +6 -7
- package/dist/components/core/charts/ChartCard.js +7 -8
- package/dist/components/core/charts/CircularGauge.js +1 -2
- package/dist/components/core/charts/LineChart.js +6 -7
- package/dist/components/core/charts/PieChart.js +12 -13
- package/dist/components/core/charts/chartColors.js +1 -2
- package/dist/components/core/charts/chartTooltip.helper.js +1 -2
- package/dist/components/core/dialogs/AboutDialog.js +11 -12
- package/dist/components/core/dialogs/AppDialog.js +27 -28
- package/dist/components/core/dialogs/ConfirmationDialog.js +15 -16
- package/dist/components/core/dialogs/FormDialog.js +7 -8
- package/dist/components/core/dialogs/index.js +4 -4
- package/dist/components/core/filters/ActiveFilters.js +1 -2
- package/dist/components/core/filters/AdvancedFilters.js +1 -2
- package/dist/components/core/filters/ConditionFilter.js +19 -20
- package/dist/components/core/filters/ConditionFilterGroup.js +1 -2
- package/dist/components/core/filters/FilterField.js +9 -10
- package/dist/components/core/filters/FilterPills.js +1 -2
- package/dist/components/core/filters/FilterPillsGroup.js +1 -2
- package/dist/components/core/filters/FiltersContainer.js +6 -7
- package/dist/components/core/filters/FiltersMobileDrawer.js +1 -2
- package/dist/components/core/filters/TableFilter.js +5 -6
- package/dist/components/core/filters/index.js +7 -7
- package/dist/components/core/forms/GenericForm.js +119 -120
- package/dist/components/core/icons/FlagFrIcon.js +1 -2
- package/dist/components/core/icons/FlagGbIcon.js +1 -2
- package/dist/components/core/inputs/DatePicker.js +9 -10
- package/dist/components/core/inputs/DateRangePicker.js +19 -20
- package/dist/components/core/inputs/FileDropzone.js +2 -3
- package/dist/components/core/inputs/ImageInput.js +9 -10
- package/dist/components/core/inputs/MultiSelect.js +89 -90
- package/dist/components/core/inputs/RatingInput.js +1 -2
- package/dist/components/core/inputs/SearchInput.js +7 -8
- package/dist/components/core/inputs/SingleSelect.js +36 -37
- package/dist/components/core/inputs/index.js +5 -5
- package/dist/components/core/inputs/select.helper.js +1 -2
- package/dist/components/core/language/LanguageSelector.js +1 -2
- package/dist/components/core/layouts/AppActions.js +44 -45
- package/dist/components/core/layouts/AppPageHeader.js +9 -10
- package/dist/components/core/layouts/AppSubTitle.js +1 -2
- package/dist/components/core/layouts/AppTitle.js +1 -2
- package/dist/components/core/layouts/KpiCardsLayout.js +1 -2
- package/dist/components/core/layouts/index.js +4 -4
- package/dist/components/core/markdown/AppMarkdown.js +1 -2
- package/dist/components/core/markdown/AppMarkdownHeading.js +4 -5
- package/dist/components/core/navbar/GlobalSearch.js +16 -17
- package/dist/components/core/navbar/NotificationsBell.js +21 -22
- package/dist/components/core/navbar/Sidebar.js +32 -33
- package/dist/components/core/navbar/SidebarHeader.js +1 -2
- package/dist/components/core/navbar/SidebarNavItem.js +20 -21
- package/dist/components/core/navbar/Topbar.js +5 -6
- package/dist/components/core/navbar/index.js +4 -4
- package/dist/components/core/states/ErrorAlert.js +1 -2
- package/dist/components/core/states/ErrorState.js +1 -2
- package/dist/components/core/states/LoadingState.js +1 -2
- package/dist/components/core/table/DataTable.js +1 -2
- package/dist/components/core/table/JsonTableOutput.js +17 -18
- package/dist/components/core/table/TableActions.js +31 -32
- package/dist/components/core/table/TableBody.js +25 -26
- package/dist/components/core/table/TableBulkActions.js +11 -12
- package/dist/components/core/table/TableHeader.js +15 -16
- package/dist/components/core/table/TablePagination.js +1 -2
- package/dist/components/core/table/TableSettings.js +20 -21
- package/dist/components/core/table/index.js +7 -7
- package/dist/components/core/tabs/AppTabContainer.js +1 -2
- package/dist/components/core/tabs/AppTabHeader.js +1 -2
- package/dist/components/core/tabs/AppTabs.js +10 -11
- package/dist/components/core/tabs/AppVerticalTabs.js +10 -11
- package/dist/components/core/tabs/index.js +3 -3
- package/dist/components/core/theme/ThemeSelector.js +1 -2
- package/dist/components/ui/accordion.js +1 -2
- package/dist/components/ui/alert-dialog.js +1 -2
- package/dist/components/ui/alert.js +1 -2
- package/dist/components/ui/aspect-ratio.js +1 -2
- package/dist/components/ui/avatar.js +1 -2
- package/dist/components/ui/badge.js +1 -2
- package/dist/components/ui/breadcrumb.js +1 -2
- package/dist/components/ui/button.js +1 -2
- package/dist/components/ui/calendar.js +8 -9
- package/dist/components/ui/card.js +1 -2
- package/dist/components/ui/carousel.js +1 -2
- package/dist/components/ui/chart.js +1 -2
- package/dist/components/ui/checkbox.js +1 -2
- package/dist/components/ui/collapsible.js +1 -2
- package/dist/components/ui/command.js +19 -20
- package/dist/components/ui/context-menu.js +1 -2
- package/dist/components/ui/control.js +1 -2
- package/dist/components/ui/dialog.js +1 -2
- package/dist/components/ui/drawer.js +1 -2
- package/dist/components/ui/dropdown-menu.js +1 -2
- package/dist/components/ui/form.js +1 -2
- package/dist/components/ui/hover-card.js +1 -2
- package/dist/components/ui/index.js +19 -19
- package/dist/components/ui/input-otp.js +1 -2
- package/dist/components/ui/input.js +1 -2
- package/dist/components/ui/label.js +1 -2
- package/dist/components/ui/menubar.js +1 -2
- package/dist/components/ui/navigation-menu.js +1 -2
- package/dist/components/ui/pagination.js +1 -2
- package/dist/components/ui/popover.js +1 -2
- package/dist/components/ui/progress.js +1 -2
- package/dist/components/ui/radio-group.js +1 -2
- package/dist/components/ui/resizable.js +1 -2
- package/dist/components/ui/scroll-area.js +1 -2
- package/dist/components/ui/select.js +1 -2
- package/dist/components/ui/separator.js +1 -2
- package/dist/components/ui/sheet.js +1 -2
- package/dist/components/ui/simple-table.js +1 -2
- package/dist/components/ui/skeleton.js +1 -2
- package/dist/components/ui/slider.js +1 -2
- package/dist/components/ui/sonner.js +1 -2
- package/dist/components/ui/switch.js +1 -2
- package/dist/components/ui/tabs.js +1 -2
- package/dist/components/ui/textarea.js +1 -2
- package/dist/components/ui/toast.js +1 -2
- package/dist/components/ui/toaster.js +10 -11
- package/dist/components/ui/toggle-group.js +1 -2
- package/dist/components/ui/toggle.js +1 -2
- package/dist/components/ui/tooltip.js +1 -2
- package/dist/constants/datatable.js +1 -2
- package/dist/constants/search.js +1 -2
- package/dist/contexts/page.context.js +1 -2
- package/dist/contexts/sidebar.context.js +1 -2
- package/dist/helpers/changelog.helper.js +1 -2
- package/dist/helpers/markdown.helper.js +1 -2
- package/dist/helpers/supabase.helper.js +1 -2
- package/dist/helpers/table.helper.js +1 -2
- package/dist/helpers/tailwind.helper.js +1 -2
- package/dist/hooks/behavior/index.js +6 -6
- package/dist/hooks/behavior/useConfirmDeleteDialog.js +1 -2
- package/dist/hooks/behavior/useConfirmationDialog.js +1 -2
- package/dist/hooks/behavior/useDebounce.js +1 -2
- package/dist/hooks/behavior/useDebouncedValue.js +1 -2
- package/dist/hooks/behavior/useDialog.js +1 -2
- package/dist/hooks/behavior/usePage.js +1 -2
- package/dist/hooks/behavior/useSidebar.js +1 -2
- package/dist/hooks/behavior/useTable.js +1 -2
- package/dist/hooks/behavior/useUrlState.js +1 -2
- package/dist/hooks/ui/index.js +10 -10
- package/dist/hooks/ui/useDataTable.js +1 -2
- package/dist/hooks/ui/useDocumentTitle.js +1 -2
- package/dist/hooks/ui/useFixedColumns.js +1 -2
- package/dist/hooks/ui/useLanguage.js +1 -2
- package/dist/hooks/ui/useMobile.js +1 -2
- package/dist/hooks/ui/useNotifications.js +1 -2
- package/dist/hooks/ui/useScrollFade.js +1 -2
- package/dist/hooks/ui/useServerTable.js +1 -2
- package/dist/hooks/ui/useTheme.js +1 -2
- package/dist/hooks/ui/useToast.js +1 -2
- package/dist/i18n/krosoftLocales.js +1 -2
- package/dist/i18n/translateKrosoft.js +1 -2
- package/dist/i18n/useDateFnsLocale.js +1 -2
- package/dist/i18n/useKrosoftTranslation.js +1 -2
- package/dist/locales/en.json.js +1 -2
- package/dist/locales/fr.json.js +1 -2
- package/dist/providers/SidebarProvider.js +5 -6
- package/dist/pwa/PwaUpdater.js +1 -2
- package/dist/pwa/index.js +3 -3
- package/dist/pwa/pwaUpdateToast.js +1 -2
- package/dist/query/createQueryClient.js +1 -2
- package/dist/seasonal/EffectSwitch.js +1 -2
- package/dist/seasonal/EmojiSnowfall.js +1 -2
- package/dist/seasonal/HalloweenEffect.js +5 -6
- package/dist/seasonal/SeasonalEffects.js +4 -5
- package/dist/seasonal/SeasonalEffectsSettings.js +8 -9
- package/dist/seasonal/SnowEffect.js +5 -6
- package/dist/seasonal/overlayStyle.js +1 -2
- package/dist/seasonal/seasons.js +1 -2
- package/dist/seasonal/useSeasonalEffects.js +1 -2
- package/dist/seasonal/useStoredToggle.js +1 -2
- package/dist/tailwind/index.js +1 -2
- package/dist/tokens/apply.js +1 -2
- package/dist/tokens/radius.js +1 -2
- package/dist/vendor/tailwindcss/lib/public/create-plugin.js +1 -2
- package/dist/vendor/tailwindcss/lib/util/createPlugin.js +1 -2
- package/dist/vendor/tailwindcss/plugin.js +1 -2
- package/package.json +2 -2
|
@@ -1,72 +1,71 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Button as e } from "../../ui/button.js";
|
|
2
|
+
import { DropdownMenu as t, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenuSeparator as i, DropdownMenuTrigger as a } from "../../ui/dropdown-menu.js";
|
|
3
|
+
import { cn as o } from "../../../helpers/tailwind.helper.js";
|
|
4
|
+
import { useKrosoftTranslation as s } from "../../../i18n/useKrosoftTranslation.js";
|
|
5
5
|
import { useMobile as c } from "../../../hooks/ui/useMobile.js";
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
7
|
import { MoreVerticalIcon as d } from "lucide-react";
|
|
8
|
-
|
|
8
|
+
// src/components/core/layouts/AppActions.tsx
|
|
9
9
|
var f = (e) => {
|
|
10
10
|
let t = document.getElementById(e);
|
|
11
11
|
t instanceof HTMLFormElement && t.requestSubmit();
|
|
12
12
|
};
|
|
13
13
|
function p({ actions: p, className: m }) {
|
|
14
|
-
let { t: h } =
|
|
15
|
-
return !p || p.length === 0 ? null : g ? /* @__PURE__ */ u(
|
|
14
|
+
let { t: h } = s(), g = c();
|
|
15
|
+
return !p || p.length === 0 ? null : g ? /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ l(a, {
|
|
16
16
|
asChild: !0,
|
|
17
|
-
children: /* @__PURE__ */ l(
|
|
17
|
+
children: /* @__PURE__ */ l(e, {
|
|
18
18
|
variant: "outline",
|
|
19
19
|
size: "icon",
|
|
20
20
|
children: /* @__PURE__ */ l(d, { className: "size-4" })
|
|
21
21
|
})
|
|
22
|
-
}), /* @__PURE__ */ l(
|
|
22
|
+
}), /* @__PURE__ */ l(n, {
|
|
23
23
|
align: "end",
|
|
24
24
|
className: "min-w-48",
|
|
25
|
-
children: p.map((
|
|
25
|
+
children: p.map((e, t) => e ? e.children && e.children.length > 0 ? /* @__PURE__ */ u("div", { children: [t > 0 && /* @__PURE__ */ l(i, {}), e.children.map((e, t) => e ? /* @__PURE__ */ u(r, {
|
|
26
26
|
onClick: () => {
|
|
27
|
-
|
|
27
|
+
e.type === "submit" ? f(e.form) : e.onClick?.();
|
|
28
28
|
},
|
|
29
|
-
disabled:
|
|
30
|
-
className:
|
|
31
|
-
children: [
|
|
32
|
-
},
|
|
29
|
+
disabled: e.disabled,
|
|
30
|
+
className: o("gap-2", e.className),
|
|
31
|
+
children: [e.icon && /* @__PURE__ */ l(e.icon, { className: "size-4" }), e.labelKey && h(e.labelKey)]
|
|
32
|
+
}, t) : null)] }, t) : /* @__PURE__ */ u(r, {
|
|
33
33
|
onClick: () => {
|
|
34
|
-
|
|
34
|
+
e.type === "submit" ? f(e.form) : e.onClick?.();
|
|
35
35
|
},
|
|
36
|
-
disabled:
|
|
37
|
-
className:
|
|
38
|
-
children: [
|
|
39
|
-
},
|
|
40
|
-
})] }) : ((
|
|
41
|
-
className:
|
|
42
|
-
children:
|
|
36
|
+
disabled: e.disabled,
|
|
37
|
+
className: o("gap-2", e.className),
|
|
38
|
+
children: [e.icon && /* @__PURE__ */ l(e.icon, { className: "size-4" }), e.labelKey && h(e.labelKey)]
|
|
39
|
+
}, t) : null)
|
|
40
|
+
})] }) : ((i) => /* @__PURE__ */ l("div", {
|
|
41
|
+
className: o("flex gap-2", m),
|
|
42
|
+
children: i.map((i, s) => i ? i.children && i.children.length > 0 ? /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ l(a, {
|
|
43
43
|
asChild: !0,
|
|
44
|
-
children: /* @__PURE__ */ u(
|
|
45
|
-
variant:
|
|
46
|
-
disabled:
|
|
47
|
-
className:
|
|
48
|
-
children: [
|
|
44
|
+
children: /* @__PURE__ */ u(e, {
|
|
45
|
+
variant: i.variant,
|
|
46
|
+
disabled: i.disabled,
|
|
47
|
+
className: o("gap-2", i.className),
|
|
48
|
+
children: [i.icon && /* @__PURE__ */ l(i.icon, { className: "size-4" }), i.labelKey && h(i.labelKey)]
|
|
49
49
|
})
|
|
50
|
-
}), /* @__PURE__ */ l(
|
|
50
|
+
}), /* @__PURE__ */ l(n, {
|
|
51
51
|
align: "end",
|
|
52
|
-
children:
|
|
52
|
+
children: i.children.map((e, t) => e ? /* @__PURE__ */ u(r, {
|
|
53
53
|
onClick: () => {
|
|
54
|
-
|
|
54
|
+
e.type === "submit" ? f(e.form) : e.onClick?.();
|
|
55
55
|
},
|
|
56
|
-
disabled:
|
|
57
|
-
className:
|
|
58
|
-
children: [
|
|
59
|
-
},
|
|
60
|
-
})] },
|
|
61
|
-
variant:
|
|
62
|
-
type:
|
|
63
|
-
form:
|
|
64
|
-
onClick:
|
|
65
|
-
disabled:
|
|
66
|
-
className:
|
|
67
|
-
children: [
|
|
68
|
-
},
|
|
56
|
+
disabled: e.disabled,
|
|
57
|
+
className: o("gap-2", e.className),
|
|
58
|
+
children: [e.icon && /* @__PURE__ */ l(e.icon, { className: "size-4" }), e.labelKey && h(e.labelKey)]
|
|
59
|
+
}, t) : null)
|
|
60
|
+
})] }, s) : /* @__PURE__ */ u(e, {
|
|
61
|
+
variant: i.variant,
|
|
62
|
+
type: i.type,
|
|
63
|
+
form: i.form,
|
|
64
|
+
onClick: i.onClick ? () => void i.onClick?.() : void 0,
|
|
65
|
+
disabled: i.disabled,
|
|
66
|
+
className: o("gap-2", i.className),
|
|
67
|
+
children: [i.icon && /* @__PURE__ */ l(i.icon, { className: "size-4" }), i.labelKey && h(i.labelKey)]
|
|
68
|
+
}, s) : null)
|
|
69
69
|
}))(p);
|
|
70
70
|
}
|
|
71
|
-
//#endregion
|
|
72
71
|
export { p as AppActions };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Button as e } from "../../ui/button.js";
|
|
2
|
+
import { AppActions as t } from "./AppActions.js";
|
|
3
|
+
import { AppTitle as n } from "./AppTitle.js";
|
|
4
4
|
import { useDocumentTitle as r } from "../../../hooks/ui/useDocumentTitle.js";
|
|
5
|
-
import {
|
|
5
|
+
import { useKrosoftTranslation as i } from "../../../i18n/useKrosoftTranslation.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
8
|
import { ArrowLeftIcon as s } from "lucide-react";
|
|
9
|
-
|
|
9
|
+
// src/components/core/layouts/AppPageHeader.tsx
|
|
10
10
|
function c({ icon: c, titleKey: l, descriptionKey: u, actions: d, onBack: f, renderPreActions: p, className: m, inline: h }) {
|
|
11
|
-
let { t: g } =
|
|
11
|
+
let { t: g } = i();
|
|
12
12
|
return r(g(l)), /* @__PURE__ */ o("div", {
|
|
13
13
|
className: "flex flex-row items-center justify-between gap-3 md:gap-4",
|
|
14
14
|
children: [/* @__PURE__ */ o("div", {
|
|
15
15
|
className: "flex min-w-0 items-center gap-3 md:gap-4",
|
|
16
16
|
children: [
|
|
17
|
-
f && /* @__PURE__ */ a(
|
|
17
|
+
f && /* @__PURE__ */ a(e, {
|
|
18
18
|
variant: "ghost",
|
|
19
19
|
size: "icon",
|
|
20
20
|
className: "shrink-0",
|
|
@@ -25,7 +25,7 @@ function c({ icon: c, titleKey: l, descriptionKey: u, actions: d, onBack: f, ren
|
|
|
25
25
|
className: "size-12 shrink-0 bg-blue-100 rounded-control flex items-center justify-center",
|
|
26
26
|
children: /* @__PURE__ */ a(c, { className: "h-6 w-6 text-blue-600" })
|
|
27
27
|
}),
|
|
28
|
-
/* @__PURE__ */ a(
|
|
28
|
+
/* @__PURE__ */ a(n, {
|
|
29
29
|
titleKey: l,
|
|
30
30
|
descriptionKey: u,
|
|
31
31
|
inline: h
|
|
@@ -33,12 +33,11 @@ function c({ icon: c, titleKey: l, descriptionKey: u, actions: d, onBack: f, ren
|
|
|
33
33
|
]
|
|
34
34
|
}), /* @__PURE__ */ o("div", {
|
|
35
35
|
className: "flex shrink-0 items-center gap-2 md:gap-4",
|
|
36
|
-
children: [p && p(), /* @__PURE__ */ a(
|
|
36
|
+
children: [p && p(), /* @__PURE__ */ a(t, {
|
|
37
37
|
actions: d,
|
|
38
38
|
className: m
|
|
39
39
|
})]
|
|
40
40
|
})]
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { c as AppPageHeader };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
|
|
2
2
|
import { AppActions as t } from "./AppActions.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/core/layouts/AppSubTitle.tsx
|
|
5
5
|
function i({ titleKey: i, actions: a, className: o }) {
|
|
6
6
|
let { t: s } = e();
|
|
7
7
|
return /* @__PURE__ */ r("div", {
|
|
@@ -15,5 +15,4 @@ function i({ titleKey: i, actions: a, className: o }) {
|
|
|
15
15
|
})]
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { i as AppSubTitle };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn as e } from "../../../helpers/tailwind.helper.js";
|
|
2
2
|
import { useKrosoftTranslation as t } from "../../../i18n/useKrosoftTranslation.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/core/layouts/AppTitle.tsx
|
|
5
5
|
function i({ titleKey: i, descriptionKey: a, isSubTitle: o, inline: s }) {
|
|
6
6
|
let { t: c } = t(), l = o ? "text-xl md:text-2xl font-semibold" : "text-xl md:text-3xl font-bold";
|
|
7
7
|
return s ? /* @__PURE__ */ r("div", {
|
|
@@ -24,5 +24,4 @@ function i({ titleKey: i, descriptionKey: a, isSubTitle: o, inline: s }) {
|
|
|
24
24
|
}) : null]
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { i as AppTitle };
|
|
@@ -2,7 +2,6 @@ import { KpiCards as e } from "../cards/KpiCards.js";
|
|
|
2
2
|
import { SkeletonCards as t } from "../cards/SkeletonCards.js";
|
|
3
3
|
import { ErrorState as n } from "../states/ErrorState.js";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/core/layouts/KpiCardsLayout.tsx
|
|
6
6
|
var i = ({ stats: i, isLoading: a, error: o }) => a ? /* @__PURE__ */ r(t, { count: 4 }) : o ? /* @__PURE__ */ r(n, { message: o.message }) : /* @__PURE__ */ r(e, { stats: i });
|
|
7
|
-
//#endregion
|
|
8
7
|
export { i as KpiCardsLayout };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppActions as e } from "./AppActions.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { AppPageHeader as t } from "./AppPageHeader.js";
|
|
3
|
+
import { AppSubTitle as n } from "./AppSubTitle.js";
|
|
4
|
+
import { AppTitle as r } from "./AppTitle.js";
|
|
5
5
|
import { KpiCardsLayout as i } from "./KpiCardsLayout.js";
|
|
6
|
-
export { e as AppActions,
|
|
6
|
+
export { e as AppActions, t as AppPageHeader, n as AppSubTitle, r as AppTitle, i as KpiCardsLayout };
|
|
@@ -7,7 +7,7 @@ import { useLocation as a, useNavigate as o } from "react-router-dom";
|
|
|
7
7
|
import s from "react-markdown";
|
|
8
8
|
import c from "rehype-slug";
|
|
9
9
|
import l from "remark-gfm";
|
|
10
|
-
|
|
10
|
+
// src/components/core/markdown/AppMarkdown.tsx
|
|
11
11
|
var u = ({ content: u, headingAnchors: d = !0 }) => {
|
|
12
12
|
let f = a(), p = o(), { hash: m } = f;
|
|
13
13
|
r(() => {
|
|
@@ -130,5 +130,4 @@ var u = ({ content: u, headingAnchors: d = !0 }) => {
|
|
|
130
130
|
children: u
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
|
-
//#endregion
|
|
134
133
|
export { u as AppMarkdown };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { cn as e } from "../../../helpers/tailwind.helper.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useNotifications as t } from "../../../hooks/ui/useNotifications.js";
|
|
3
|
+
import { useKrosoftTranslation as n } from "../../../i18n/useKrosoftTranslation.js";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
import { LinkIcon as a } from "lucide-react";
|
|
6
6
|
import { useLocation as o, useNavigate as s } from "react-router-dom";
|
|
7
|
-
|
|
7
|
+
// src/components/core/markdown/AppMarkdownHeading.tsx
|
|
8
8
|
var c = {
|
|
9
9
|
2: "h2",
|
|
10
10
|
3: "h3",
|
|
11
11
|
4: "h4"
|
|
12
12
|
}, l = ({ level: l, className: u, id: d, anchor: f = !0, children: p }) => {
|
|
13
|
-
let { t: m } =
|
|
13
|
+
let { t: m } = n(), { showSuccess: h, showError: g } = t(), _ = o(), v = s(), y = c[l];
|
|
14
14
|
if (!f || !d) return /* @__PURE__ */ r(y, {
|
|
15
15
|
id: d,
|
|
16
16
|
className: u,
|
|
@@ -41,5 +41,4 @@ var c = {
|
|
|
41
41
|
})]
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
//#endregion
|
|
45
44
|
export { l as AppMarkdownHeading };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
|
|
2
|
+
import { cn as t } from "../../../helpers/tailwind.helper.js";
|
|
3
3
|
import { Button as n } from "../../ui/button.js";
|
|
4
4
|
import { CommandDialog as r, CommandEmpty as i, CommandGroup as a, CommandInput as o, CommandItem as s, CommandList as c } from "../../ui/command.js";
|
|
5
5
|
import * as l from "react";
|
|
6
6
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
7
|
import { ClockIcon as p, LoaderCircleIcon as m, SearchIcon as h, XIcon as g } from "lucide-react";
|
|
8
|
-
|
|
8
|
+
// src/components/core/navbar/GlobalSearch.tsx
|
|
9
9
|
var _ = ({ groups: _, search: v, onSearch: y, onSelect: b, loading: x = !1, open: S, onOpenChange: C, trigger: w = !0, triggerLabel: T, shortcut: E = !0, shortcutLabel: D = "Ctrl+K", history: O, onHistorySelect: k, onHistoryRemove: A, historyHeading: j, removeFromHistoryLabel: M, placeholder: N, emptyLabel: P, loadingLabel: F, title: I, description: L, hint: R, className: z }) => {
|
|
10
|
-
let { t: B } =
|
|
10
|
+
let { t: B } = e(), [V, H] = l.useState(!1), U = S !== void 0, W = U ? S : V, G = l.useCallback((e) => {
|
|
11
11
|
U || H(e), C?.(e);
|
|
12
12
|
}, [U, C]);
|
|
13
13
|
l.useEffect(() => {
|
|
@@ -90,32 +90,32 @@ var _ = ({ groups: _, search: v, onSearch: y, onSelect: b, loading: x = !1, open
|
|
|
90
90
|
]
|
|
91
91
|
}, `history-${e}`))
|
|
92
92
|
}),
|
|
93
|
-
_.map((
|
|
94
|
-
heading:
|
|
95
|
-
children:
|
|
96
|
-
let n =
|
|
93
|
+
_.map((e) => e.items.length === 0 ? null : /* @__PURE__ */ d(a, {
|
|
94
|
+
heading: e.heading,
|
|
95
|
+
children: e.items.map((e) => {
|
|
96
|
+
let n = e.icon;
|
|
97
97
|
return /* @__PURE__ */ f(s, {
|
|
98
|
-
value:
|
|
98
|
+
value: e.key,
|
|
99
99
|
className: "gap-3 px-2 py-2",
|
|
100
100
|
onSelect: () => {
|
|
101
|
-
K(
|
|
101
|
+
K(e);
|
|
102
102
|
},
|
|
103
103
|
children: [n && /* @__PURE__ */ d("span", {
|
|
104
|
-
className:
|
|
104
|
+
className: t("flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground", e.iconClassName),
|
|
105
105
|
children: /* @__PURE__ */ d(n, { className: "size-4" })
|
|
106
106
|
}), /* @__PURE__ */ f("span", {
|
|
107
107
|
className: "flex min-w-0 flex-1 flex-col",
|
|
108
108
|
children: [/* @__PURE__ */ d("span", {
|
|
109
109
|
className: "truncate font-medium",
|
|
110
|
-
children:
|
|
111
|
-
}),
|
|
110
|
+
children: e.label
|
|
111
|
+
}), e.description !== void 0 && e.description !== "" && /* @__PURE__ */ d("span", {
|
|
112
112
|
className: "truncate text-xs text-muted-foreground",
|
|
113
|
-
children:
|
|
113
|
+
children: e.description
|
|
114
114
|
})]
|
|
115
115
|
})]
|
|
116
|
-
},
|
|
116
|
+
}, e.key);
|
|
117
117
|
})
|
|
118
|
-
},
|
|
118
|
+
}, e.heading))
|
|
119
119
|
] }),
|
|
120
120
|
R !== void 0 && q && !x && /* @__PURE__ */ d("div", {
|
|
121
121
|
className: "border-t border-border p-2 text-center text-xs text-muted-foreground",
|
|
@@ -124,5 +124,4 @@ var _ = ({ groups: _, search: v, onSearch: y, onSelect: b, loading: x = !1, open
|
|
|
124
124
|
]
|
|
125
125
|
})] });
|
|
126
126
|
};
|
|
127
|
-
//#endregion
|
|
128
127
|
export { _ as GlobalSearch };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
|
|
2
|
+
import { cn as t } from "../../../helpers/tailwind.helper.js";
|
|
3
3
|
import { Button as n } from "../../ui/button.js";
|
|
4
4
|
import { Popover as r, PopoverContent as i, PopoverTrigger as a } from "../../ui/popover.js";
|
|
5
5
|
import { ScrollArea as o } from "../../ui/scroll-area.js";
|
|
6
6
|
import * as s from "react";
|
|
7
7
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
8
|
import { BellIcon as u, Trash2Icon as d } from "lucide-react";
|
|
9
|
-
|
|
9
|
+
// src/components/core/navbar/NotificationsBell.tsx
|
|
10
10
|
var f = 9, p = ({ items: p, onSelect: m, onMarkAllAsRead: h, onRemove: g, onSeeAll: _, isLoading: v = !1, unreadCount: y, maxBadgeCount: b = f, open: x, onOpenChange: S, triggerLabel: C, title: w, emptyLabel: T, loadingLabel: E, markAllAsReadLabel: D, removeLabel: O, seeAllLabel: k, className: A, contentClassName: j, badgeClassName: M, itemClassName: N, unreadItemClassName: P }) => {
|
|
11
|
-
let { t: F } =
|
|
11
|
+
let { t: F } = e(), [I, L] = s.useState(!1), R = x !== void 0, z = R ? x : I, B = (e) => {
|
|
12
12
|
R || L(e), S?.(e);
|
|
13
13
|
}, V = y ?? p.filter((e) => !e.read).length, H = C ?? F("notifications.trigger"), U = (e) => {
|
|
14
14
|
B(!1), m?.(e);
|
|
@@ -22,17 +22,17 @@ var f = 9, p = ({ items: p, onSelect: m, onMarkAllAsRead: h, onRemove: g, onSeeA
|
|
|
22
22
|
type: "button",
|
|
23
23
|
variant: "ghost",
|
|
24
24
|
size: "icon",
|
|
25
|
-
className:
|
|
25
|
+
className: t("relative rounded-control", A),
|
|
26
26
|
"aria-label": V > 0 ? `${H} (${String(V)})` : H,
|
|
27
27
|
title: H,
|
|
28
28
|
children: [/* @__PURE__ */ c(u, { className: "size-4" }), V > 0 && /* @__PURE__ */ c("span", {
|
|
29
|
-
className:
|
|
29
|
+
className: t("absolute right-1 top-1 flex size-4 items-center justify-center rounded-full bg-primary text-[10px] font-bold leading-none text-primary-foreground", M),
|
|
30
30
|
children: V > b ? `${String(b)}+` : V
|
|
31
31
|
})]
|
|
32
32
|
})
|
|
33
33
|
}), /* @__PURE__ */ l(i, {
|
|
34
34
|
align: "end",
|
|
35
|
-
className:
|
|
35
|
+
className: t("w-80 p-0", j),
|
|
36
36
|
children: [
|
|
37
37
|
/* @__PURE__ */ l("div", {
|
|
38
38
|
className: "flex items-center justify-between gap-2 border-b px-3 py-2",
|
|
@@ -60,39 +60,39 @@ var f = 9, p = ({ items: p, onSelect: m, onMarkAllAsRead: h, onRemove: g, onSeeA
|
|
|
60
60
|
viewportClassName: "max-h-96",
|
|
61
61
|
children: /* @__PURE__ */ c("ul", {
|
|
62
62
|
className: "divide-y",
|
|
63
|
-
children: p.map((
|
|
64
|
-
let r =
|
|
63
|
+
children: p.map((e) => {
|
|
64
|
+
let r = e.icon;
|
|
65
65
|
return /* @__PURE__ */ l("li", {
|
|
66
|
-
className:
|
|
66
|
+
className: t("flex items-start gap-2 px-3 py-2", !e.read && (P ?? "bg-accent/40"), N),
|
|
67
67
|
children: [/* @__PURE__ */ l("button", {
|
|
68
68
|
type: "button",
|
|
69
69
|
className: "flex min-w-0 flex-1 items-start gap-2 rounded-sm text-left focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
70
70
|
onClick: () => {
|
|
71
|
-
U(
|
|
71
|
+
U(e);
|
|
72
72
|
},
|
|
73
73
|
children: [r && /* @__PURE__ */ c("span", {
|
|
74
|
-
className:
|
|
74
|
+
className: t("mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground", e.iconClassName),
|
|
75
75
|
children: /* @__PURE__ */ c(r, { className: "size-3.5" })
|
|
76
76
|
}), /* @__PURE__ */ l("span", {
|
|
77
77
|
className: "min-w-0 flex-1 space-y-0.5",
|
|
78
78
|
children: [
|
|
79
79
|
/* @__PURE__ */ l("span", {
|
|
80
80
|
className: "flex items-center gap-2",
|
|
81
|
-
children: [!
|
|
81
|
+
children: [!e.read && /* @__PURE__ */ c("span", {
|
|
82
82
|
className: "size-1.5 shrink-0 rounded-full bg-primary",
|
|
83
83
|
"aria-hidden": !0
|
|
84
84
|
}), /* @__PURE__ */ c("span", {
|
|
85
|
-
className:
|
|
86
|
-
children:
|
|
85
|
+
className: t("truncate text-sm", !e.read && "font-medium"),
|
|
86
|
+
children: e.title
|
|
87
87
|
})]
|
|
88
88
|
}),
|
|
89
|
-
|
|
89
|
+
e.description && /* @__PURE__ */ c("span", {
|
|
90
90
|
className: "block text-xs text-muted-foreground",
|
|
91
|
-
children:
|
|
91
|
+
children: e.description
|
|
92
92
|
}),
|
|
93
|
-
|
|
93
|
+
e.date && /* @__PURE__ */ c("span", {
|
|
94
94
|
className: "block text-xs text-muted-foreground/60",
|
|
95
|
-
children:
|
|
95
|
+
children: e.date
|
|
96
96
|
})
|
|
97
97
|
]
|
|
98
98
|
})]
|
|
@@ -102,13 +102,13 @@ var f = 9, p = ({ items: p, onSelect: m, onMarkAllAsRead: h, onRemove: g, onSeeA
|
|
|
102
102
|
size: "icon",
|
|
103
103
|
className: "size-7 shrink-0 text-muted-foreground hover:text-destructive",
|
|
104
104
|
onClick: () => {
|
|
105
|
-
g(
|
|
105
|
+
g(e);
|
|
106
106
|
},
|
|
107
107
|
"aria-label": O ?? F("notifications.remove"),
|
|
108
108
|
title: O ?? F("notifications.remove"),
|
|
109
109
|
children: /* @__PURE__ */ c(d, { className: "size-3.5" })
|
|
110
110
|
})]
|
|
111
|
-
},
|
|
111
|
+
}, e.key);
|
|
112
112
|
})
|
|
113
113
|
})
|
|
114
114
|
}),
|
|
@@ -129,5 +129,4 @@ var f = 9, p = ({ items: p, onSelect: m, onMarkAllAsRead: h, onRemove: g, onSeeA
|
|
|
129
129
|
})]
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
|
-
//#endregion
|
|
133
132
|
export { p as NotificationsBell };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
|
|
2
|
+
import { TooltipProvider as t } from "../../ui/tooltip.js";
|
|
3
|
+
import { cn as n } from "../../../helpers/tailwind.helper.js";
|
|
4
|
+
import { SidebarNavItem as r } from "./SidebarNavItem.js";
|
|
5
|
+
import { useSidebar as i } from "../../../hooks/behavior/useSidebar.js";
|
|
6
|
+
import { Sheet as a, SheetContent as o, SheetDescription as s, SheetTitle as c } from "../../ui/sheet.js";
|
|
7
|
+
import { Input as l } from "../../ui/input.js";
|
|
8
|
+
import { Skeleton as u } from "../../ui/skeleton.js";
|
|
9
9
|
import * as d from "react";
|
|
10
10
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
11
|
import { SearchIcon as m } from "lucide-react";
|
|
12
|
-
|
|
12
|
+
// src/components/core/navbar/Sidebar.tsx
|
|
13
13
|
var h = ({ groups: h, currentPath: g, onItemClick: _, slots: v, search: y, dense: b = !1, loading: x = !1, showCloseButton: S = !0 }) => {
|
|
14
|
-
let { t: C } =
|
|
14
|
+
let { t: C } = e(), { enabled: w = !1, placeholder: T } = y ?? {}, { header: E, footer: D } = v ?? {}, { collapsed: O, isMobile: k, setCollapsed: A } = i(), [j, M] = d.useState(""), N = !k && O, P = !O, F = (e) => {
|
|
15
15
|
_(e), k && A(!0);
|
|
16
16
|
}, I = j.trim().toLowerCase(), L = I === "" ? h : h.map((e) => ({
|
|
17
17
|
...e,
|
|
@@ -21,33 +21,33 @@ var h = ({ groups: h, currentPath: g, onItemClick: _, slots: v, search: y, dense
|
|
|
21
21
|
children: [
|
|
22
22
|
E,
|
|
23
23
|
w && !N && /* @__PURE__ */ f("div", {
|
|
24
|
-
className:
|
|
24
|
+
className: n("px-4", b ? "pt-2" : "pt-4"),
|
|
25
25
|
children: /* @__PURE__ */ p("div", {
|
|
26
26
|
className: "relative",
|
|
27
|
-
children: [/* @__PURE__ */ f(m, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-sidebar-muted" }), /* @__PURE__ */ f(
|
|
27
|
+
children: [/* @__PURE__ */ f(m, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-sidebar-muted" }), /* @__PURE__ */ f(l, {
|
|
28
28
|
type: "search",
|
|
29
29
|
value: j,
|
|
30
30
|
onChange: (e) => {
|
|
31
31
|
M(e.target.value);
|
|
32
32
|
},
|
|
33
33
|
placeholder: T ?? C("search.placeholder"),
|
|
34
|
-
className:
|
|
34
|
+
className: n("bg-sidebar-accent/40 border-sidebar-border pl-9 text-sidebar-foreground placeholder:text-sidebar-muted", b ? "h-8 text-sm" : "h-9")
|
|
35
35
|
})]
|
|
36
36
|
})
|
|
37
37
|
}),
|
|
38
38
|
/* @__PURE__ */ f("div", {
|
|
39
|
-
className:
|
|
40
|
-
children: x ? Array.from({ length: 5 }).map((
|
|
41
|
-
className:
|
|
42
|
-
children: [/* @__PURE__ */ f(
|
|
43
|
-
},
|
|
39
|
+
className: n("flex-1 overflow-y-auto scrollbar-modern", N ? "px-0" : "px-2", b ? "py-2" : "py-4"),
|
|
40
|
+
children: x ? Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ p("div", {
|
|
41
|
+
className: n("flex items-center gap-3", b ? "mb-1 h-9" : "mb-2 h-12", N ? "justify-center px-3" : "px-4"),
|
|
42
|
+
children: [/* @__PURE__ */ f(u, { className: "size-5 flex-shrink-0 rounded-control" }), !N && /* @__PURE__ */ f(u, { className: "h-4 flex-1" })]
|
|
43
|
+
}, t)) : L.map((e, t) => /* @__PURE__ */ p("div", {
|
|
44
44
|
className: b ? "mb-7" : "mb-10",
|
|
45
|
-
children: [!N &&
|
|
46
|
-
className:
|
|
47
|
-
children:
|
|
45
|
+
children: [!N && e.title !== void 0 && e.title !== "" && /* @__PURE__ */ f("h3", {
|
|
46
|
+
className: n("px-4 text-xs uppercase tracking-wider font-semibold text-sidebar-muted", b ? "mb-3" : "mb-4"),
|
|
47
|
+
children: e.title
|
|
48
48
|
}), /* @__PURE__ */ f("nav", {
|
|
49
|
-
className:
|
|
50
|
-
children:
|
|
49
|
+
className: n("flex flex-col", b ? "gap-0.5" : "gap-1"),
|
|
50
|
+
children: e.items.map((e, t) => /* @__PURE__ */ f(r, {
|
|
51
51
|
...e,
|
|
52
52
|
currentPath: g,
|
|
53
53
|
collapsed: N,
|
|
@@ -55,38 +55,38 @@ var h = ({ groups: h, currentPath: g, onItemClick: _, slots: v, search: y, dense
|
|
|
55
55
|
onItemClick: F
|
|
56
56
|
}, t))
|
|
57
57
|
})]
|
|
58
|
-
},
|
|
58
|
+
}, t))
|
|
59
59
|
}),
|
|
60
60
|
D && /* @__PURE__ */ f("div", {
|
|
61
|
-
className:
|
|
61
|
+
className: n("border-t border-sidebar-border", b ? "p-2" : "p-4", N ? "flex justify-center" : ""),
|
|
62
62
|
children: D
|
|
63
63
|
})
|
|
64
64
|
]
|
|
65
65
|
});
|
|
66
|
-
return k ? /* @__PURE__ */ f(
|
|
66
|
+
return k ? /* @__PURE__ */ f(a, {
|
|
67
67
|
open: P,
|
|
68
68
|
onOpenChange: (e) => {
|
|
69
69
|
A(!e);
|
|
70
70
|
},
|
|
71
|
-
children: /* @__PURE__ */ p(
|
|
71
|
+
children: /* @__PURE__ */ p(o, {
|
|
72
72
|
side: "left",
|
|
73
|
-
className:
|
|
73
|
+
className: n("w-[16rem] p-0 bg-sidebar border-r border-sidebar-border overflow-hidden", S ? "[&>button]:text-sidebar-foreground" : "[&>button]:hidden"),
|
|
74
74
|
children: [
|
|
75
|
-
/* @__PURE__ */ f(
|
|
75
|
+
/* @__PURE__ */ f(c, {
|
|
76
76
|
className: "sr-only",
|
|
77
77
|
children: C("sidebar.menu")
|
|
78
78
|
}),
|
|
79
|
-
/* @__PURE__ */ f(
|
|
79
|
+
/* @__PURE__ */ f(s, {
|
|
80
80
|
className: "sr-only",
|
|
81
81
|
children: C("sidebar.description")
|
|
82
82
|
}),
|
|
83
83
|
R
|
|
84
84
|
]
|
|
85
85
|
})
|
|
86
|
-
}) : /* @__PURE__ */ f(
|
|
86
|
+
}) : /* @__PURE__ */ f(t, {
|
|
87
87
|
delayDuration: 0,
|
|
88
88
|
children: /* @__PURE__ */ f("aside", {
|
|
89
|
-
className:
|
|
89
|
+
className: n("flex flex-col bg-sidebar h-screen border-r border-sidebar-border transition-all duration-300", N ? "w-[--navbar-width-icon]" : "w-[--navbar-width]", "flex"),
|
|
90
90
|
style: {
|
|
91
91
|
"--navbar-width": "16rem",
|
|
92
92
|
"--navbar-width-icon": "4rem"
|
|
@@ -95,5 +95,4 @@ var h = ({ groups: h, currentPath: g, onItemClick: _, slots: v, search: y, dense
|
|
|
95
95
|
})
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
|
-
//#endregion
|
|
99
98
|
export { h as Sidebar };
|
|
@@ -2,7 +2,7 @@ import { cn as e } from "../../../helpers/tailwind.helper.js";
|
|
|
2
2
|
import { useSidebar as t } from "../../../hooks/behavior/useSidebar.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/core/navbar/SidebarHeader.tsx
|
|
6
6
|
var i = ({ name: i = "appname", subName: a = "appsubname", icon: o, dense: s = !1 }) => {
|
|
7
7
|
let { collapsed: c, isMobile: l } = t(), u = !l && c;
|
|
8
8
|
return /* @__PURE__ */ r("div", {
|
|
@@ -22,5 +22,4 @@ var i = ({ name: i = "appname", subName: a = "appsubname", icon: o, dense: s = !
|
|
|
22
22
|
})]
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
//#endregion
|
|
26
25
|
export { i as SidebarHeader };
|