@krosoft/react 0.0.390 → 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 +4 -4
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
|
|
2
|
+
import { Checkbox as t } from "../../ui/checkbox.js";
|
|
3
|
+
import { ACTIONS_COLUMN_KEY as n, SELECTION_COLUMN_KEY as r, getAlignmentClass as i, getColumnAlignment as a, getFixedCellProps as o } from "../../../helpers/table.helper.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
6
|
import { ArrowDownIcon as l, ArrowUpDownIcon as u, ArrowUpIcon as d, GripVerticalIcon as f } from "lucide-react";
|
|
7
|
-
|
|
7
|
+
// src/components/core/table/TableHeader.tsx
|
|
8
8
|
var p = {
|
|
9
9
|
left: "justify-start",
|
|
10
10
|
center: "justify-center",
|
|
11
11
|
right: "justify-end"
|
|
12
12
|
};
|
|
13
13
|
function m({ hasBulkActions: m, allSelected: h, someSelected: g, toggleSelectAll: _, visibleColumnsArray: v, draggableColumns: y, resizableColumns: b, columnWidths: x, sortColumn: S, sortDirection: C, handleSort: w, handleDragStart: T, handleDragOver: E, handleDrop: D, handleMouseDown: O, hasActions: k, settingsNode: A, bordered: j = !1, dense: M = !1, fixedColumns: N = {}, fixedSelection: P = !1, fixedActions: F = !1 }) {
|
|
14
|
-
let { t: I } =
|
|
14
|
+
let { t: I } = e(), L = !1;
|
|
15
15
|
h ? L = !0 : g && (L = "indeterminate");
|
|
16
|
-
let R = (e) => e.sortable === !0 ? S === e.key ? s(C === "asc" ? d : l, { className: "size-3.5 text-foreground" }) : /* @__PURE__ */ s(u, { className: "size-3.5 text-muted-foreground/50 group-hover:text-muted-foreground transition-colors" }) : null, z = (e, t,
|
|
17
|
-
let
|
|
16
|
+
let R = (e) => e.sortable === !0 ? S === e.key ? s(C === "asc" ? d : l, { className: "size-3.5 text-foreground" }) : /* @__PURE__ */ s(u, { className: "size-3.5 text-muted-foreground/50 group-hover:text-muted-foreground transition-colors" }) : null, z = (e, t, n) => {
|
|
17
|
+
let r = n !== !1 && e.fixed === void 0, l = e.sortable === !0, u = o(N[e.key], "header"), d = a(e), h = R(e), g = t === 0 && !m, _ = t === v.length - 1 && !(k || A !== void 0), y = `${g ? "pl-4" : "pl-2"} ${_ ? "pr-4" : "pr-2"}`;
|
|
18
18
|
return /* @__PURE__ */ c("th", {
|
|
19
19
|
"data-column-key": e.key,
|
|
20
20
|
"data-fixed-side": e.fixed,
|
|
21
21
|
className: [
|
|
22
22
|
`${y} ${M ? "py-2" : "py-4"} text-sm font-medium text-foreground group`,
|
|
23
|
-
|
|
23
|
+
i(d),
|
|
24
24
|
u.className,
|
|
25
25
|
j ? "border-r border-border" : "",
|
|
26
26
|
l ? "cursor-pointer select-none" : "",
|
|
@@ -30,12 +30,12 @@ function m({ hasBulkActions: m, allSelected: h, someSelected: g, toggleSelectAll
|
|
|
30
30
|
...b ? { width: x[e.key] } : { minWidth: x[e.key] },
|
|
31
31
|
...u.style
|
|
32
32
|
},
|
|
33
|
-
draggable:
|
|
33
|
+
draggable: r,
|
|
34
34
|
onClick: () => {
|
|
35
35
|
w(e.key);
|
|
36
36
|
},
|
|
37
37
|
onDragStart: (t) => {
|
|
38
|
-
|
|
38
|
+
r ? T(t, e.key) : t.preventDefault();
|
|
39
39
|
},
|
|
40
40
|
onDragOver: (t) => {
|
|
41
41
|
E(t, e.key);
|
|
@@ -46,7 +46,7 @@ function m({ hasBulkActions: m, allSelected: h, someSelected: g, toggleSelectAll
|
|
|
46
46
|
children: [/* @__PURE__ */ c("div", {
|
|
47
47
|
className: `flex items-center gap-1 ${p[d]} ${b ? "pr-2" : ""}`,
|
|
48
48
|
children: [
|
|
49
|
-
|
|
49
|
+
r ? /* @__PURE__ */ s(f, { className: "size-4 text-muted-foreground cursor-grab shrink-0" }) : null,
|
|
50
50
|
/* @__PURE__ */ s("span", {
|
|
51
51
|
className: "truncate",
|
|
52
52
|
children: I(e.headerKey)
|
|
@@ -63,12 +63,12 @@ function m({ hasBulkActions: m, allSelected: h, someSelected: g, toggleSelectAll
|
|
|
63
63
|
}
|
|
64
64
|
}) : null]
|
|
65
65
|
}, e.key);
|
|
66
|
-
}, B =
|
|
66
|
+
}, B = o(N[r], "header"), V = o(N[n], "header");
|
|
67
67
|
return /* @__PURE__ */ s("thead", {
|
|
68
68
|
className: "bg-muted/50 border-b border-border",
|
|
69
69
|
children: /* @__PURE__ */ c("tr", { children: [
|
|
70
70
|
m ? /* @__PURE__ */ s("th", {
|
|
71
|
-
"data-column-key":
|
|
71
|
+
"data-column-key": r,
|
|
72
72
|
"data-fixed-side": P ? "left" : void 0,
|
|
73
73
|
className: `p-1 text-center align-middle ${B.className}`,
|
|
74
74
|
style: {
|
|
@@ -79,7 +79,7 @@ function m({ hasBulkActions: m, allSelected: h, someSelected: g, toggleSelectAll
|
|
|
79
79
|
},
|
|
80
80
|
children: /* @__PURE__ */ s("div", {
|
|
81
81
|
className: "flex items-center justify-center",
|
|
82
|
-
children: /* @__PURE__ */ s(
|
|
82
|
+
children: /* @__PURE__ */ s(t, {
|
|
83
83
|
checked: L,
|
|
84
84
|
onCheckedChange: _
|
|
85
85
|
})
|
|
@@ -87,7 +87,7 @@ function m({ hasBulkActions: m, allSelected: h, someSelected: g, toggleSelectAll
|
|
|
87
87
|
}) : null,
|
|
88
88
|
v.map((e, t) => z(e, t, y)),
|
|
89
89
|
k || A !== void 0 ? /* @__PURE__ */ s("th", {
|
|
90
|
-
"data-column-key":
|
|
90
|
+
"data-column-key": n,
|
|
91
91
|
"data-fixed-side": F ? "right" : void 0,
|
|
92
92
|
className: `py-1 pl-1 pr-4 text-right align-middle ${V.className}`,
|
|
93
93
|
style: {
|
|
@@ -99,5 +99,4 @@ function m({ hasBulkActions: m, allSelected: h, someSelected: g, toggleSelectAll
|
|
|
99
99
|
] })
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
-
//#endregion
|
|
103
102
|
export { m as TableHeader };
|
|
@@ -4,7 +4,7 @@ import { Select as n, SelectContent as r, SelectItem as i, SelectTrigger as a, S
|
|
|
4
4
|
import "react";
|
|
5
5
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
6
|
import { ChevronLeftIcon as u, ChevronRightIcon as d } from "lucide-react";
|
|
7
|
-
|
|
7
|
+
// src/components/core/table/TablePagination.tsx
|
|
8
8
|
var f = "…";
|
|
9
9
|
function p(e, t) {
|
|
10
10
|
return Array.from({ length: t - e + 1 }, (t, n) => e + n);
|
|
@@ -98,5 +98,4 @@ function h({ totalItems: p, startIndex: h, endIndex: g, pageSize: _, setPageSize
|
|
|
98
98
|
]
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
//#endregion
|
|
102
101
|
export { h as TablePagination };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Button as e } from "../../ui/button.js";
|
|
2
|
+
import { Checkbox as t } from "../../ui/checkbox.js";
|
|
3
|
+
import { Popover as n, PopoverContent as r, PopoverTrigger as i } from "../../ui/popover.js";
|
|
4
|
+
import { useKrosoftTranslation as a } from "../../../i18n/useKrosoftTranslation.js";
|
|
5
|
+
import { cn as o } from "../../../helpers/tailwind.helper.js";
|
|
6
6
|
import { useMemo as s, useState as c } from "react";
|
|
7
7
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
import { SearchIcon as d, SettingsIcon as f } from "lucide-react";
|
|
9
|
-
|
|
9
|
+
// src/components/core/table/TableSettings.tsx
|
|
10
10
|
function p({ columns: p, visibleColumns: m, toggleColumnVisibility: h, setColumnsVisibility: g }) {
|
|
11
|
-
let { t: _ } =
|
|
11
|
+
let { t: _ } = a(), [v, y] = c(""), b = s(() => p.map((e, t) => ({
|
|
12
12
|
key: e.key,
|
|
13
13
|
label: _(e.headerKey),
|
|
14
14
|
locked: t === 0
|
|
@@ -19,19 +19,19 @@ function p({ columns: p, visibleColumns: m, toggleColumnVisibility: h, setColumn
|
|
|
19
19
|
let t = x.filter((e) => !e.locked).map((e) => e.key).filter((t) => m.has(t) !== e);
|
|
20
20
|
g === void 0 ? t.forEach(h) : g(t, e);
|
|
21
21
|
};
|
|
22
|
-
return /* @__PURE__ */ u(
|
|
22
|
+
return /* @__PURE__ */ u(n, {
|
|
23
23
|
onOpenChange: (e) => {
|
|
24
24
|
e || y("");
|
|
25
25
|
},
|
|
26
|
-
children: [/* @__PURE__ */ l(
|
|
26
|
+
children: [/* @__PURE__ */ l(i, {
|
|
27
27
|
asChild: !0,
|
|
28
|
-
children: /* @__PURE__ */ l(
|
|
28
|
+
children: /* @__PURE__ */ l(e, {
|
|
29
29
|
variant: "outline",
|
|
30
30
|
size: "sm",
|
|
31
31
|
className: "size-7 p-0 bg-background hover:bg-muted shadow-sm border-border",
|
|
32
32
|
children: /* @__PURE__ */ l(f, { className: "size-3.5 text-muted-foreground" })
|
|
33
33
|
})
|
|
34
|
-
}), /* @__PURE__ */ u(
|
|
34
|
+
}), /* @__PURE__ */ u(r, {
|
|
35
35
|
align: "end",
|
|
36
36
|
className: "w-64 p-0",
|
|
37
37
|
children: [
|
|
@@ -69,20 +69,20 @@ function p({ columns: p, visibleColumns: m, toggleColumnVisibility: h, setColumn
|
|
|
69
69
|
children: [x.length === 0 && /* @__PURE__ */ l("p", {
|
|
70
70
|
className: "px-2 py-3 text-center text-xs text-muted-foreground",
|
|
71
71
|
children: _("states.noResult")
|
|
72
|
-
}), x.map((
|
|
73
|
-
className:
|
|
74
|
-
children: [/* @__PURE__ */ l(
|
|
75
|
-
checked:
|
|
76
|
-
disabled:
|
|
72
|
+
}), x.map((e) => /* @__PURE__ */ u("label", {
|
|
73
|
+
className: o("flex min-w-0 items-center gap-2.5 rounded-md px-2 py-1.5 text-sm transition-colors", e.locked ? "cursor-not-allowed text-muted-foreground" : "cursor-pointer hover:bg-muted"),
|
|
74
|
+
children: [/* @__PURE__ */ l(t, {
|
|
75
|
+
checked: e.locked || m.has(e.key),
|
|
76
|
+
disabled: e.locked,
|
|
77
77
|
onCheckedChange: () => {
|
|
78
|
-
h(
|
|
78
|
+
h(e.key);
|
|
79
79
|
}
|
|
80
80
|
}), /* @__PURE__ */ l("span", {
|
|
81
81
|
className: "min-w-0 flex-1 truncate",
|
|
82
|
-
title:
|
|
83
|
-
children:
|
|
82
|
+
title: e.label,
|
|
83
|
+
children: e.label
|
|
84
84
|
})]
|
|
85
|
-
},
|
|
85
|
+
}, e.key))]
|
|
86
86
|
}),
|
|
87
87
|
x.length > 0 && /* @__PURE__ */ u("div", {
|
|
88
88
|
className: "flex items-center justify-end gap-2 border-t border-border px-3 py-2 text-xs",
|
|
@@ -113,5 +113,4 @@ function p({ columns: p, visibleColumns: m, toggleColumnVisibility: h, setColumn
|
|
|
113
113
|
})]
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
//#endregion
|
|
117
116
|
export { p as TableSettings };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DataTable as e } from "./DataTable.js";
|
|
2
|
+
import { TablePagination as t } from "./TablePagination.js";
|
|
3
3
|
import { TableBulkActions as n } from "./TableBulkActions.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { TableSettings as r } from "./TableSettings.js";
|
|
5
|
+
import { TableHeader as i } from "./TableHeader.js";
|
|
6
|
+
import { TableBody as a } from "./TableBody.js";
|
|
7
|
+
import { TableActions as o } from "./TableActions.js";
|
|
8
8
|
import { JsonTableOutput as s } from "./JsonTableOutput.js";
|
|
9
|
-
export {
|
|
9
|
+
export { e as DataTable, s as JsonTableOutput, o as TableActions, a as TableBody, n as TableBulkActions, i as TableHeader, t as TablePagination, r as TableSettings };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Card as e, CardContent as t, CardHeader as n } from "../../ui/card.js";
|
|
2
2
|
import { AppTabHeader as r } from "./AppTabHeader.js";
|
|
3
3
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/core/tabs/AppTabContainer.tsx
|
|
5
5
|
function o({ titleKey: o, descriptionKey: s, actions: c = [], className: l, children: u, isSubTitle: d }) {
|
|
6
6
|
return /* @__PURE__ */ a(e, { children: [/* @__PURE__ */ i(n, { children: /* @__PURE__ */ i(r, {
|
|
7
7
|
titleKey: o,
|
|
@@ -13,5 +13,4 @@ function o({ titleKey: o, descriptionKey: s, actions: c = [], className: l, chil
|
|
|
13
13
|
children: u
|
|
14
14
|
})] });
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { o as AppTabContainer };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppActions as e } from "../layouts/AppActions.js";
|
|
2
2
|
import { AppTitle as t } from "../layouts/AppTitle.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/core/tabs/AppTabHeader.tsx
|
|
5
5
|
function i({ titleKey: i, descriptionKey: a, actions: o = [], className: s }) {
|
|
6
6
|
return /* @__PURE__ */ r("div", {
|
|
7
7
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
@@ -15,5 +15,4 @@ function i({ titleKey: i, descriptionKey: a, actions: o = [], className: s }) {
|
|
|
15
15
|
})]
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { i as AppTabHeader };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useKrosoftTranslation as
|
|
3
|
-
import {
|
|
1
|
+
import { Tabs as e, TabsContent as t, TabsList as n, TabsTrigger as r } from "../../ui/tabs.js";
|
|
2
|
+
import { useKrosoftTranslation as i } from "../../../i18n/useKrosoftTranslation.js";
|
|
3
|
+
import { cn as a } from "../../../helpers/tailwind.helper.js";
|
|
4
4
|
import { useEffect as o, useRef as s } from "react";
|
|
5
5
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
6
|
import { useSearchParams as u } from "react-router-dom";
|
|
7
|
-
|
|
7
|
+
// src/components/core/tabs/AppTabs.tsx
|
|
8
8
|
function d({ tabs: d, itemId: f, item: p, fit: m, paramName: h = "tab" }) {
|
|
9
|
-
let { t: g } =
|
|
9
|
+
let { t: g } = i(), [_, v] = u(), y = _.get(h), b = d.find((e) => e.value === y)?.value ?? d[0]?.value, x = (e) => {
|
|
10
10
|
let t = new URLSearchParams(_);
|
|
11
11
|
t.set(h, e), v(t);
|
|
12
12
|
}, S = s(null);
|
|
@@ -16,13 +16,13 @@ function d({ tabs: d, itemId: f, item: p, fit: m, paramName: h = "tab" }) {
|
|
|
16
16
|
block: "nearest",
|
|
17
17
|
inline: "nearest"
|
|
18
18
|
});
|
|
19
|
-
}, [b]), /* @__PURE__ */ l(
|
|
19
|
+
}, [b]), /* @__PURE__ */ l(e, {
|
|
20
20
|
value: b,
|
|
21
21
|
onValueChange: x,
|
|
22
|
-
children: [/* @__PURE__ */ c(
|
|
22
|
+
children: [/* @__PURE__ */ c(n, {
|
|
23
23
|
ref: S,
|
|
24
|
-
className:
|
|
25
|
-
children: d.map((e) => /* @__PURE__ */ l(
|
|
24
|
+
className: a("w-full justify-start", m && "sm:w-fit"),
|
|
25
|
+
children: d.map((e) => /* @__PURE__ */ l(r, {
|
|
26
26
|
value: e.value,
|
|
27
27
|
className: "gap-2",
|
|
28
28
|
disabled: e.disabled,
|
|
@@ -45,12 +45,11 @@ function d({ tabs: d, itemId: f, item: p, fit: m, paramName: h = "tab" }) {
|
|
|
45
45
|
}) : null
|
|
46
46
|
]
|
|
47
47
|
}, e.value))
|
|
48
|
-
}), d.map((e) => /* @__PURE__ */ c(
|
|
48
|
+
}), d.map((e) => /* @__PURE__ */ c(t, {
|
|
49
49
|
value: e.value,
|
|
50
50
|
className: "mt-4",
|
|
51
51
|
children: e.component ? e.component(f) : null
|
|
52
52
|
}, e.value))]
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
//#endregion
|
|
56
55
|
export { d as AppTabs };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ScrollArea as e } from "../../ui/scroll-area.js";
|
|
2
|
+
import { Select as t, SelectContent as n, SelectItem as r, SelectTrigger as i, SelectValue as a } from "../../ui/select.js";
|
|
3
|
+
import { useKrosoftTranslation as o } from "../../../i18n/useKrosoftTranslation.js";
|
|
4
4
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
5
|
import { ConstructionIcon as l } from "lucide-react";
|
|
6
6
|
import { useSearchParams as u } from "react-router-dom";
|
|
7
|
-
|
|
7
|
+
// src/components/core/tabs/AppVerticalTabs.tsx
|
|
8
8
|
var d = ({ tabs: d, item: f }) => {
|
|
9
|
-
let { t: p } =
|
|
9
|
+
let { t: p } = o(), [m, h] = u(), g = m.get("tab"), _ = d.find((e) => e.value === g)?.value ?? d[0]?.value, v = (e) => {
|
|
10
10
|
let t = new URLSearchParams();
|
|
11
11
|
t.set("tab", e), h(t);
|
|
12
12
|
}, y = () => {
|
|
@@ -37,7 +37,7 @@ var d = ({ tabs: d, item: f }) => {
|
|
|
37
37
|
children: [
|
|
38
38
|
/* @__PURE__ */ s("div", {
|
|
39
39
|
className: "w-64 lg:w-80 flex-shrink-0 hidden md:block border-r border-gray-200 dark:border-gray-700 pr-4",
|
|
40
|
-
children: /* @__PURE__ */ s(
|
|
40
|
+
children: /* @__PURE__ */ s(e, {
|
|
41
41
|
className: "h-full",
|
|
42
42
|
children: /* @__PURE__ */ s("div", {
|
|
43
43
|
className: "space-y-1",
|
|
@@ -66,13 +66,13 @@ var d = ({ tabs: d, item: f }) => {
|
|
|
66
66
|
}),
|
|
67
67
|
/* @__PURE__ */ s("div", {
|
|
68
68
|
className: "md:hidden w-full border-b pb-4 mb-4",
|
|
69
|
-
children: /* @__PURE__ */ c(
|
|
69
|
+
children: /* @__PURE__ */ c(t, {
|
|
70
70
|
value: _,
|
|
71
71
|
onValueChange: v,
|
|
72
|
-
children: [/* @__PURE__ */ s(
|
|
72
|
+
children: [/* @__PURE__ */ s(i, {
|
|
73
73
|
className: "w-full",
|
|
74
|
-
children: /* @__PURE__ */ s(
|
|
75
|
-
}), /* @__PURE__ */ s(
|
|
74
|
+
children: /* @__PURE__ */ s(a, { placeholder: p("select.section") })
|
|
75
|
+
}), /* @__PURE__ */ s(n, { children: d.map((e, t) => /* @__PURE__ */ s(r, {
|
|
76
76
|
value: e.value,
|
|
77
77
|
disabled: e.disabled,
|
|
78
78
|
children: /* @__PURE__ */ c("div", {
|
|
@@ -101,5 +101,4 @@ var d = ({ tabs: d, item: f }) => {
|
|
|
101
101
|
]
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
|
-
//#endregion
|
|
105
104
|
export { d as AppVerticalTabs };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AppTabContainer as e } from "./AppTabContainer.js";
|
|
2
|
+
import { AppTabHeader as t } from "./AppTabHeader.js";
|
|
3
3
|
import { AppTabs as n } from "./AppTabs.js";
|
|
4
4
|
import { AppVerticalTabs as r } from "./AppVerticalTabs.js";
|
|
5
|
-
export {
|
|
5
|
+
export { e as AppTabContainer, t as AppTabHeader, n as AppTabs, r as AppVerticalTabs };
|
|
@@ -5,7 +5,7 @@ import { Tooltip as s, TooltipContent as c, TooltipProvider as l, TooltipTrigger
|
|
|
5
5
|
import { useTheme as d } from "../../../hooks/ui/useTheme.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/core/theme/ThemeSelector.tsx
|
|
9
9
|
function m({ themeOptions: m, variant: h = "select", id: g, className: _ }) {
|
|
10
10
|
let { t: v } = e(), { theme: y, handleThemeChange: b, currentThemeOption: x, nextThemeOption: S, cycleTheme: C } = d(m);
|
|
11
11
|
if (h === "mini") {
|
|
@@ -54,5 +54,4 @@ function m({ themeOptions: m, variant: h = "select", id: g, className: _ }) {
|
|
|
54
54
|
})]
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
//#endregion
|
|
58
57
|
export { m as ThemeSelector };
|
|
@@ -3,7 +3,7 @@ import * as t from "react";
|
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import * as i from "@radix-ui/react-accordion";
|
|
5
5
|
import { ChevronDown as a } from "lucide-react";
|
|
6
|
-
|
|
6
|
+
// src/components/ui/accordion.tsx
|
|
7
7
|
var o = i.Root, s = t.forwardRef(({ className: t, ...r }, a) => /* @__PURE__ */ n(i.Item, {
|
|
8
8
|
ref: a,
|
|
9
9
|
className: e("border-b", t),
|
|
@@ -30,5 +30,4 @@ var l = t.forwardRef(({ className: t, children: r, ...a }, o) => /* @__PURE__ */
|
|
|
30
30
|
})
|
|
31
31
|
}));
|
|
32
32
|
l.displayName = i.Content.displayName;
|
|
33
|
-
//#endregion
|
|
34
33
|
export { o as Accordion, l as AccordionContent, s as AccordionItem, c as AccordionTrigger };
|
|
@@ -3,7 +3,7 @@ import { buttonVariants as t } from "./button.js";
|
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
import * as a from "@radix-ui/react-alert-dialog";
|
|
6
|
-
|
|
6
|
+
// src/components/ui/alert-dialog.tsx
|
|
7
7
|
var o = a.Root, s = a.Trigger, c = a.Portal, l = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(a.Overlay, {
|
|
8
8
|
className: e("fixed inset-0 z-[70] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", t),
|
|
9
9
|
...n,
|
|
@@ -50,5 +50,4 @@ var g = n.forwardRef(({ className: n, ...i }, o) => /* @__PURE__ */ r(a.Cancel,
|
|
|
50
50
|
...i
|
|
51
51
|
}));
|
|
52
52
|
g.displayName = a.Cancel.displayName;
|
|
53
|
-
//#endregion
|
|
54
53
|
export { o as AlertDialog, h as AlertDialogAction, g as AlertDialogCancel, u as AlertDialogContent, m as AlertDialogDescription, f as AlertDialogFooter, d as AlertDialogHeader, l as AlertDialogOverlay, c as AlertDialogPortal, p as AlertDialogTitle, s as AlertDialogTrigger };
|
|
@@ -2,7 +2,7 @@ import { cn as e } from "../../helpers/tailwind.helper.js";
|
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
import { cva as r } from "class-variance-authority";
|
|
5
|
-
|
|
5
|
+
// src/components/ui/alert.tsx
|
|
6
6
|
var i = r("relative w-full rounded-surface border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", {
|
|
7
7
|
variants: { variant: {
|
|
8
8
|
default: "bg-background text-foreground",
|
|
@@ -28,5 +28,4 @@ var s = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("div", {
|
|
|
28
28
|
...r
|
|
29
29
|
}));
|
|
30
30
|
s.displayName = "AlertDescription";
|
|
31
|
-
//#endregion
|
|
32
31
|
export { a as Alert, s as AlertDescription, o as AlertTitle };
|
|
@@ -2,7 +2,7 @@ import { cn as e } from "../../helpers/tailwind.helper.js";
|
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
import * as r from "@radix-ui/react-avatar";
|
|
5
|
-
|
|
5
|
+
// src/components/ui/avatar.tsx
|
|
6
6
|
var i = t.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ n(r.Root, {
|
|
7
7
|
ref: a,
|
|
8
8
|
className: e("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", t),
|
|
@@ -21,5 +21,4 @@ var o = t.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ n(r.Fallback
|
|
|
21
21
|
...i
|
|
22
22
|
}));
|
|
23
23
|
o.displayName = r.Fallback.displayName;
|
|
24
|
-
//#endregion
|
|
25
24
|
export { i as Avatar, o as AvatarFallback, a as AvatarImage };
|
|
@@ -2,7 +2,7 @@ import { cn as e } from "../../helpers/tailwind.helper.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
import { cva as n } from "class-variance-authority";
|
|
5
|
-
|
|
5
|
+
// src/components/ui/badge.tsx
|
|
6
6
|
var r = n("inline-flex items-center rounded-control border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
|
|
7
7
|
variants: { variant: {
|
|
8
8
|
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
@@ -18,5 +18,4 @@ function i({ className: n, variant: i, ...a }) {
|
|
|
18
18
|
...a
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { i as Badge, r as badgeVariants };
|
|
@@ -3,7 +3,7 @@ import * as t from "react";
|
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { ChevronRight as i, MoreHorizontal as a } from "lucide-react";
|
|
5
5
|
import { Slot as o } from "@radix-ui/react-slot";
|
|
6
|
-
|
|
6
|
+
// src/components/ui/breadcrumb.tsx
|
|
7
7
|
var s = t.forwardRef(({ ...e }, t) => /* @__PURE__ */ n("nav", {
|
|
8
8
|
ref: t,
|
|
9
9
|
"aria-label": "breadcrumb",
|
|
@@ -56,5 +56,4 @@ var p = ({ className: t, ...i }) => /* @__PURE__ */ r("span", {
|
|
|
56
56
|
})]
|
|
57
57
|
});
|
|
58
58
|
p.displayName = "BreadcrumbElipssis";
|
|
59
|
-
//#endregion
|
|
60
59
|
export { s as Breadcrumb, p as BreadcrumbEllipsis, l as BreadcrumbItem, u as BreadcrumbLink, c as BreadcrumbList, d as BreadcrumbPage, f as BreadcrumbSeparator };
|
|
@@ -3,7 +3,7 @@ import * as t from "react";
|
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
import { cva as r } from "class-variance-authority";
|
|
5
5
|
import { Slot as i } from "@radix-ui/react-slot";
|
|
6
|
-
|
|
6
|
+
// src/components/ui/button.tsx
|
|
7
7
|
var a = r("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-control text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
@@ -36,5 +36,4 @@ var a = r("inline-flex items-center justify-center gap-2 whitespace-nowrap round
|
|
|
36
36
|
...c
|
|
37
37
|
}));
|
|
38
38
|
o.displayName = "Button";
|
|
39
|
-
//#endregion
|
|
40
39
|
export { o as Button, a as buttonVariants };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { buttonVariants as e } from "./button.js";
|
|
2
|
+
import { cn as t } from "../../helpers/tailwind.helper.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
5
5
|
import { ChevronLeft as r, ChevronRight as i } from "lucide-react";
|
|
6
6
|
import { DayPicker as a } from "react-day-picker";
|
|
7
|
-
|
|
7
|
+
// src/components/ui/calendar.tsx
|
|
8
8
|
function o({ className: o, classNames: s, showOutsideDays: c = !0, ...l }) {
|
|
9
9
|
return /* @__PURE__ */ n(a, {
|
|
10
10
|
showOutsideDays: c,
|
|
11
|
-
className:
|
|
11
|
+
className: t("p-3 pointer-events-auto", o),
|
|
12
12
|
classNames: {
|
|
13
13
|
months: "flex flex-col gap-2 relative sm:flex-row",
|
|
14
14
|
month: "flex flex-col gap-4",
|
|
15
15
|
month_caption: "flex justify-center pt-1 relative items-center w-full",
|
|
16
16
|
caption_label: "text-sm font-medium",
|
|
17
17
|
nav: "flex items-center gap-1 absolute h-7 w-full z-10",
|
|
18
|
-
button_previous: e(
|
|
19
|
-
button_next: e(
|
|
18
|
+
button_previous: t(e({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", "absolute left-1"),
|
|
19
|
+
button_next: t(e({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", "absolute right-1"),
|
|
20
20
|
weekdays: "flex justify-center",
|
|
21
21
|
weekday: "text-muted-foreground rounded-control w-9 font-normal text-[0.8rem] text-center flex items-center justify-center",
|
|
22
22
|
week: "flex w-full mt-2",
|
|
23
|
-
day:
|
|
24
|
-
day_button: e(
|
|
23
|
+
day: t("group relative size-9 p-0 text-center text-sm focus-within:relative focus-within:z-20", "[&:has([aria-selected].day-range-end)]:rounded-r-control", "[&:has([aria-selected])]:bg-accent", "first:[&:has([aria-selected])]:rounded-l-control", "last:[&:has([aria-selected])]:rounded-r-control", "[&:has([aria-selected].day-outside)]:bg-accent/50"),
|
|
24
|
+
day_button: t(e({ variant: "ghost" }), "size-9 p-0 font-normal aria-selected:opacity-100"),
|
|
25
25
|
range_start: "day-range-start rounded-l-control",
|
|
26
26
|
range_end: "day-range-end rounded-r-control",
|
|
27
27
|
selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
@@ -40,5 +40,4 @@ function o({ className: o, classNames: s, showOutsideDays: c = !0, ...l }) {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
o.displayName = "Calendar";
|
|
43
|
-
//#endregion
|
|
44
43
|
export { o as Calendar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn as e } from "../../helpers/tailwind.helper.js";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/ui/card.tsx
|
|
5
5
|
var r = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("div", {
|
|
6
6
|
ref: i,
|
|
7
7
|
className: e("rounded-surface border bg-card text-card-foreground shadow-sm", t),
|
|
@@ -38,5 +38,4 @@ var c = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("div", {
|
|
|
38
38
|
...r
|
|
39
39
|
}));
|
|
40
40
|
c.displayName = "CardFooter";
|
|
41
|
-
//#endregion
|
|
42
41
|
export { r as Card, s as CardContent, o as CardDescription, c as CardFooter, i as CardHeader, a as CardTitle };
|
|
@@ -4,7 +4,7 @@ import * as n from "react";
|
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
import { ArrowLeft as a, ArrowRight as o } from "lucide-react";
|
|
6
6
|
import s from "embla-carousel-react";
|
|
7
|
-
|
|
7
|
+
// src/components/ui/carousel.tsx
|
|
8
8
|
var c = n.createContext(null);
|
|
9
9
|
function l() {
|
|
10
10
|
let e = n.useContext(c);
|
|
@@ -111,5 +111,4 @@ var m = n.forwardRef(({ className: n, variant: a = "outline", size: s = "icon",
|
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
m.displayName = "CarouselNext";
|
|
114
|
-
//#endregion
|
|
115
114
|
export { u as Carousel, d as CarouselContent, f as CarouselItem, m as CarouselNext, p as CarouselPrevious };
|
|
@@ -2,7 +2,7 @@ import { cn as e } from "../../helpers/tailwind.helper.js";
|
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import * as a from "recharts";
|
|
5
|
-
|
|
5
|
+
// src/components/ui/chart.tsx
|
|
6
6
|
var o = {
|
|
7
7
|
light: "",
|
|
8
8
|
dark: ".dark"
|
|
@@ -123,5 +123,4 @@ function h(e, t, n) {
|
|
|
123
123
|
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
|
|
124
124
|
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
|
|
125
125
|
}
|
|
126
|
-
//#endregion
|
|
127
126
|
export { l as ChartContainer, p as ChartLegend, m as ChartLegendContent, u as ChartStyle, d as ChartTooltip, f as ChartTooltipContent };
|
|
@@ -3,7 +3,7 @@ import * as t from "react";
|
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
import { CheckIcon as r } from "lucide-react";
|
|
5
5
|
import * as i from "@radix-ui/react-checkbox";
|
|
6
|
-
|
|
6
|
+
// src/components/ui/checkbox.tsx
|
|
7
7
|
var a = t.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ n(i.Root, {
|
|
8
8
|
ref: o,
|
|
9
9
|
className: e("peer size-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground", t),
|
|
@@ -27,5 +27,4 @@ var a = t.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ n(i.Root, {
|
|
|
27
27
|
})
|
|
28
28
|
}));
|
|
29
29
|
a.displayName = i.Root.displayName;
|
|
30
|
-
//#endregion
|
|
31
30
|
export { a as Checkbox };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as e from "@radix-ui/react-collapsible";
|
|
2
|
-
|
|
2
|
+
// src/components/ui/collapsible.tsx
|
|
3
3
|
var t = e.Root, n = e.CollapsibleTrigger, r = e.CollapsibleContent;
|
|
4
|
-
//#endregion
|
|
5
4
|
export { t as Collapsible, r as CollapsibleContent, n as CollapsibleTrigger };
|