@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.
Files changed (189) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +1 -2
  2. package/dist/components/core/cards/DashboardCard.js +7 -8
  3. package/dist/components/core/cards/KpiCard.js +13 -14
  4. package/dist/components/core/cards/KpiCards.js +1 -2
  5. package/dist/components/core/cards/MetricCard.js +1 -2
  6. package/dist/components/core/cards/SkeletonCard.js +1 -2
  7. package/dist/components/core/cards/SkeletonCards.js +1 -2
  8. package/dist/components/core/changelog/AppChangelog.js +13 -14
  9. package/dist/components/core/changelog/AppChangelogEntry.js +19 -20
  10. package/dist/components/core/changelog/AppChangelogNav.js +1 -2
  11. package/dist/components/core/changelog/AppChangelogTagFilter.js +11 -12
  12. package/dist/components/core/charts/BarChartHorizontal.js +6 -7
  13. package/dist/components/core/charts/BarChartVertical.js +6 -7
  14. package/dist/components/core/charts/ChartCard.js +7 -8
  15. package/dist/components/core/charts/CircularGauge.js +1 -2
  16. package/dist/components/core/charts/LineChart.js +6 -7
  17. package/dist/components/core/charts/PieChart.js +12 -13
  18. package/dist/components/core/charts/chartColors.js +1 -2
  19. package/dist/components/core/charts/chartTooltip.helper.js +1 -2
  20. package/dist/components/core/dialogs/AboutDialog.js +11 -12
  21. package/dist/components/core/dialogs/AppDialog.js +27 -28
  22. package/dist/components/core/dialogs/ConfirmationDialog.js +15 -16
  23. package/dist/components/core/dialogs/FormDialog.js +7 -8
  24. package/dist/components/core/dialogs/index.js +4 -4
  25. package/dist/components/core/filters/ActiveFilters.js +1 -2
  26. package/dist/components/core/filters/AdvancedFilters.js +1 -2
  27. package/dist/components/core/filters/ConditionFilter.js +19 -20
  28. package/dist/components/core/filters/ConditionFilterGroup.js +1 -2
  29. package/dist/components/core/filters/FilterField.js +9 -10
  30. package/dist/components/core/filters/FilterPills.js +1 -2
  31. package/dist/components/core/filters/FilterPillsGroup.js +1 -2
  32. package/dist/components/core/filters/FiltersContainer.js +6 -7
  33. package/dist/components/core/filters/FiltersMobileDrawer.js +1 -2
  34. package/dist/components/core/filters/TableFilter.js +5 -6
  35. package/dist/components/core/filters/index.js +7 -7
  36. package/dist/components/core/forms/GenericForm.js +119 -120
  37. package/dist/components/core/icons/FlagFrIcon.js +1 -2
  38. package/dist/components/core/icons/FlagGbIcon.js +1 -2
  39. package/dist/components/core/inputs/DatePicker.js +9 -10
  40. package/dist/components/core/inputs/DateRangePicker.js +19 -20
  41. package/dist/components/core/inputs/FileDropzone.js +2 -3
  42. package/dist/components/core/inputs/ImageInput.js +9 -10
  43. package/dist/components/core/inputs/MultiSelect.js +89 -90
  44. package/dist/components/core/inputs/RatingInput.js +1 -2
  45. package/dist/components/core/inputs/SearchInput.js +7 -8
  46. package/dist/components/core/inputs/SingleSelect.js +36 -37
  47. package/dist/components/core/inputs/index.js +5 -5
  48. package/dist/components/core/inputs/select.helper.js +1 -2
  49. package/dist/components/core/language/LanguageSelector.js +1 -2
  50. package/dist/components/core/layouts/AppActions.js +44 -45
  51. package/dist/components/core/layouts/AppPageHeader.js +9 -10
  52. package/dist/components/core/layouts/AppSubTitle.js +1 -2
  53. package/dist/components/core/layouts/AppTitle.js +1 -2
  54. package/dist/components/core/layouts/KpiCardsLayout.js +1 -2
  55. package/dist/components/core/layouts/index.js +4 -4
  56. package/dist/components/core/markdown/AppMarkdown.js +1 -2
  57. package/dist/components/core/markdown/AppMarkdownHeading.js +4 -5
  58. package/dist/components/core/navbar/GlobalSearch.js +16 -17
  59. package/dist/components/core/navbar/NotificationsBell.js +21 -22
  60. package/dist/components/core/navbar/Sidebar.js +32 -33
  61. package/dist/components/core/navbar/SidebarHeader.js +1 -2
  62. package/dist/components/core/navbar/SidebarNavItem.js +20 -21
  63. package/dist/components/core/navbar/Topbar.js +5 -6
  64. package/dist/components/core/navbar/index.js +4 -4
  65. package/dist/components/core/states/ErrorAlert.js +1 -2
  66. package/dist/components/core/states/ErrorState.js +1 -2
  67. package/dist/components/core/states/LoadingState.js +1 -2
  68. package/dist/components/core/table/DataTable.js +1 -2
  69. package/dist/components/core/table/JsonTableOutput.js +17 -18
  70. package/dist/components/core/table/TableActions.js +31 -32
  71. package/dist/components/core/table/TableBody.js +25 -26
  72. package/dist/components/core/table/TableBulkActions.js +11 -12
  73. package/dist/components/core/table/TableHeader.js +15 -16
  74. package/dist/components/core/table/TablePagination.js +1 -2
  75. package/dist/components/core/table/TableSettings.js +20 -21
  76. package/dist/components/core/table/index.js +7 -7
  77. package/dist/components/core/tabs/AppTabContainer.js +1 -2
  78. package/dist/components/core/tabs/AppTabHeader.js +1 -2
  79. package/dist/components/core/tabs/AppTabs.js +10 -11
  80. package/dist/components/core/tabs/AppVerticalTabs.js +10 -11
  81. package/dist/components/core/tabs/index.js +3 -3
  82. package/dist/components/core/theme/ThemeSelector.js +1 -2
  83. package/dist/components/ui/accordion.js +1 -2
  84. package/dist/components/ui/alert-dialog.js +1 -2
  85. package/dist/components/ui/alert.js +1 -2
  86. package/dist/components/ui/aspect-ratio.js +1 -2
  87. package/dist/components/ui/avatar.js +1 -2
  88. package/dist/components/ui/badge.js +1 -2
  89. package/dist/components/ui/breadcrumb.js +1 -2
  90. package/dist/components/ui/button.js +1 -2
  91. package/dist/components/ui/calendar.js +8 -9
  92. package/dist/components/ui/card.js +1 -2
  93. package/dist/components/ui/carousel.js +1 -2
  94. package/dist/components/ui/chart.js +1 -2
  95. package/dist/components/ui/checkbox.js +1 -2
  96. package/dist/components/ui/collapsible.js +1 -2
  97. package/dist/components/ui/command.js +19 -20
  98. package/dist/components/ui/context-menu.js +1 -2
  99. package/dist/components/ui/control.js +1 -2
  100. package/dist/components/ui/dialog.js +1 -2
  101. package/dist/components/ui/drawer.js +1 -2
  102. package/dist/components/ui/dropdown-menu.js +1 -2
  103. package/dist/components/ui/form.js +1 -2
  104. package/dist/components/ui/hover-card.js +1 -2
  105. package/dist/components/ui/index.js +19 -19
  106. package/dist/components/ui/input-otp.js +1 -2
  107. package/dist/components/ui/input.js +1 -2
  108. package/dist/components/ui/label.js +1 -2
  109. package/dist/components/ui/menubar.js +1 -2
  110. package/dist/components/ui/navigation-menu.js +1 -2
  111. package/dist/components/ui/pagination.js +1 -2
  112. package/dist/components/ui/popover.js +1 -2
  113. package/dist/components/ui/progress.js +1 -2
  114. package/dist/components/ui/radio-group.js +1 -2
  115. package/dist/components/ui/resizable.js +1 -2
  116. package/dist/components/ui/scroll-area.js +1 -2
  117. package/dist/components/ui/select.js +1 -2
  118. package/dist/components/ui/separator.js +1 -2
  119. package/dist/components/ui/sheet.js +1 -2
  120. package/dist/components/ui/simple-table.js +1 -2
  121. package/dist/components/ui/skeleton.js +1 -2
  122. package/dist/components/ui/slider.js +1 -2
  123. package/dist/components/ui/sonner.js +1 -2
  124. package/dist/components/ui/switch.js +1 -2
  125. package/dist/components/ui/tabs.js +1 -2
  126. package/dist/components/ui/textarea.js +1 -2
  127. package/dist/components/ui/toast.js +1 -2
  128. package/dist/components/ui/toaster.js +10 -11
  129. package/dist/components/ui/toggle-group.js +1 -2
  130. package/dist/components/ui/toggle.js +1 -2
  131. package/dist/components/ui/tooltip.js +1 -2
  132. package/dist/constants/datatable.js +1 -2
  133. package/dist/constants/search.js +1 -2
  134. package/dist/contexts/page.context.js +1 -2
  135. package/dist/contexts/sidebar.context.js +1 -2
  136. package/dist/helpers/changelog.helper.js +1 -2
  137. package/dist/helpers/markdown.helper.js +1 -2
  138. package/dist/helpers/supabase.helper.js +1 -2
  139. package/dist/helpers/table.helper.js +1 -2
  140. package/dist/helpers/tailwind.helper.js +1 -2
  141. package/dist/hooks/behavior/index.js +6 -6
  142. package/dist/hooks/behavior/useConfirmDeleteDialog.js +1 -2
  143. package/dist/hooks/behavior/useConfirmationDialog.js +1 -2
  144. package/dist/hooks/behavior/useDebounce.js +1 -2
  145. package/dist/hooks/behavior/useDebouncedValue.js +1 -2
  146. package/dist/hooks/behavior/useDialog.js +1 -2
  147. package/dist/hooks/behavior/usePage.js +1 -2
  148. package/dist/hooks/behavior/useSidebar.js +1 -2
  149. package/dist/hooks/behavior/useTable.js +1 -2
  150. package/dist/hooks/behavior/useUrlState.js +1 -2
  151. package/dist/hooks/ui/index.js +10 -10
  152. package/dist/hooks/ui/useDataTable.js +1 -2
  153. package/dist/hooks/ui/useDocumentTitle.js +1 -2
  154. package/dist/hooks/ui/useFixedColumns.js +1 -2
  155. package/dist/hooks/ui/useLanguage.js +1 -2
  156. package/dist/hooks/ui/useMobile.js +1 -2
  157. package/dist/hooks/ui/useNotifications.js +1 -2
  158. package/dist/hooks/ui/useScrollFade.js +1 -2
  159. package/dist/hooks/ui/useServerTable.js +1 -2
  160. package/dist/hooks/ui/useTheme.js +1 -2
  161. package/dist/hooks/ui/useToast.js +1 -2
  162. package/dist/i18n/krosoftLocales.js +1 -2
  163. package/dist/i18n/translateKrosoft.js +1 -2
  164. package/dist/i18n/useDateFnsLocale.js +1 -2
  165. package/dist/i18n/useKrosoftTranslation.js +1 -2
  166. package/dist/locales/en.json.js +1 -2
  167. package/dist/locales/fr.json.js +1 -2
  168. package/dist/providers/SidebarProvider.js +5 -6
  169. package/dist/pwa/PwaUpdater.js +1 -2
  170. package/dist/pwa/index.js +3 -3
  171. package/dist/pwa/pwaUpdateToast.js +1 -2
  172. package/dist/query/createQueryClient.js +1 -2
  173. package/dist/seasonal/EffectSwitch.js +1 -2
  174. package/dist/seasonal/EmojiSnowfall.js +1 -2
  175. package/dist/seasonal/HalloweenEffect.js +5 -6
  176. package/dist/seasonal/SeasonalEffects.js +4 -5
  177. package/dist/seasonal/SeasonalEffectsSettings.js +8 -9
  178. package/dist/seasonal/SnowEffect.js +5 -6
  179. package/dist/seasonal/overlayStyle.js +1 -2
  180. package/dist/seasonal/seasons.js +1 -2
  181. package/dist/seasonal/useSeasonalEffects.js +1 -2
  182. package/dist/seasonal/useStoredToggle.js +1 -2
  183. package/dist/tailwind/index.js +1 -2
  184. package/dist/tokens/apply.js +1 -2
  185. package/dist/tokens/radius.js +1 -2
  186. package/dist/vendor/tailwindcss/lib/public/create-plugin.js +1 -2
  187. package/dist/vendor/tailwindcss/lib/util/createPlugin.js +1 -2
  188. package/dist/vendor/tailwindcss/plugin.js +1 -2
  189. package/package.json +2 -2
@@ -1,15 +1,15 @@
1
- import { cn as e } from "../../../helpers/tailwind.helper.js";
2
- import { useDateFnsLocale as t } from "../../../i18n/useDateFnsLocale.js";
3
- import { useKrosoftTranslation as n } from "../../../i18n/useKrosoftTranslation.js";
4
- import { Dialog as r, DialogContent as i, DialogHeader as a, DialogTitle as o } from "../../ui/dialog.js";
1
+ import { Dialog as e, DialogContent as t, DialogHeader as n, DialogTitle as r } from "../../ui/dialog.js";
2
+ import { cn as i } from "../../../helpers/tailwind.helper.js";
3
+ import { useDateFnsLocale as a } from "../../../i18n/useDateFnsLocale.js";
4
+ import { useKrosoftTranslation as o } from "../../../i18n/useKrosoftTranslation.js";
5
5
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
6
  import { format as l, isValid as u } from "date-fns";
7
- //#region src/components/core/dialogs/AboutDialog.tsx
7
+ // src/components/core/dialogs/AboutDialog.tsx
8
8
  var d = (e, t) => {
9
9
  let n = e instanceof Date ? e : new Date(e);
10
10
  return u(n) ? l(n, "Pp", { locale: t }) : String(e);
11
11
  }, f = ({ open: l, onOpenChange: u, info: f, logo: p, title: m = "about.title", className: h }) => {
12
- let { t: g } = n(), _ = t(), v = [
12
+ let { t: g } = o(), _ = a(), v = [
13
13
  {
14
14
  label: g("about.version"),
15
15
  value: f.version
@@ -23,16 +23,16 @@ var d = (e, t) => {
23
23
  value: f.buildDate ? d(f.buildDate, _) : void 0
24
24
  }
25
25
  ].filter((e) => e.value);
26
- return /* @__PURE__ */ s(r, {
26
+ return /* @__PURE__ */ s(e, {
27
27
  open: l,
28
28
  onOpenChange: u,
29
- children: /* @__PURE__ */ c(i, {
30
- className: e("sm:max-w-sm", h),
29
+ children: /* @__PURE__ */ c(t, {
30
+ className: i("sm:max-w-sm", h),
31
31
  "aria-describedby": void 0,
32
32
  children: [
33
- /* @__PURE__ */ s(a, {
33
+ /* @__PURE__ */ s(n, {
34
34
  className: "mb-6",
35
- children: /* @__PURE__ */ s(o, { children: g(m) })
35
+ children: /* @__PURE__ */ s(r, { children: g(m) })
36
36
  }),
37
37
  p && /* @__PURE__ */ s("div", {
38
38
  className: "flex justify-center",
@@ -55,5 +55,4 @@ var d = (e, t) => {
55
55
  })
56
56
  });
57
57
  };
58
- //#endregion
59
58
  export { f as AboutDialog };
@@ -1,12 +1,12 @@
1
- import { cn as e } from "../../../helpers/tailwind.helper.js";
2
- import { useKrosoftTranslation as t } from "../../../i18n/useKrosoftTranslation.js";
3
- import { Button as n } from "../../ui/button.js";
4
- import { Dialog as r, DialogContent as i, DialogDescription as a, DialogHeader as o, DialogTitle as s } from "../../ui/dialog.js";
5
- import { Progress as c } from "../../ui/progress.js";
6
- import { ErrorAlert as l } from "../states/ErrorAlert.js";
1
+ import { Button as e } from "../../ui/button.js";
2
+ import { ErrorAlert as t } from "../states/ErrorAlert.js";
3
+ import { cn as n } from "../../../helpers/tailwind.helper.js";
4
+ import { useKrosoftTranslation as r } from "../../../i18n/useKrosoftTranslation.js";
5
+ import { Progress as i } from "../../ui/progress.js";
6
+ import { Dialog as a, DialogContent as o, DialogDescription as s, DialogHeader as c, DialogTitle as l } from "../../ui/dialog.js";
7
7
  import "react";
8
8
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
- //#region src/components/core/dialogs/AppDialog.tsx
9
+ // src/components/core/dialogs/AppDialog.tsx
10
10
  var f = {
11
11
  sm: "sm:max-w-sm",
12
12
  md: "sm:max-w-md",
@@ -18,38 +18,38 @@ var f = {
18
18
  full: "sm:max-w-[95vw]"
19
19
  };
20
20
  function p({ open: p, onOpenChange: m, config: h, isLoading: g, error: _, footer: v, className: y, children: b }) {
21
- let { t: x } = t(), { title: S, description: C, icon: w, size: T = "xl", maxWidth: E, actions: D, headerClassName: O, footerClassName: k } = h, A = g === !0, j = (e) => typeof e == "string" ? x(e) : e, M = (e) => {
21
+ let { t: x } = r(), { title: S, description: C, icon: w, size: T = "xl", maxWidth: E, actions: D, headerClassName: O, footerClassName: k } = h, A = g === !0, j = (e) => typeof e == "string" ? x(e) : e, M = (e) => {
22
22
  (e || !A) && m(e);
23
23
  }, N = v !== void 0 || D !== void 0 && D.length > 0;
24
- return /* @__PURE__ */ u(r, {
24
+ return /* @__PURE__ */ u(a, {
25
25
  open: p,
26
26
  onOpenChange: M,
27
- children: /* @__PURE__ */ d(i, {
28
- className: e("max-h-[100dvh] sm:max-h-[90vh] border-0 shadow-2xl p-0 flex flex-col overflow-hidden", "[&>button]:text-dialog-header-foreground [&>button]:focus:ring-dialog-header-foreground", A && "[&>button]:pointer-events-none [&>button]:opacity-40", E ?? f[T], y),
27
+ children: /* @__PURE__ */ d(o, {
28
+ className: n("max-h-[100dvh] sm:max-h-[90vh] border-0 shadow-2xl p-0 flex flex-col overflow-hidden", "[&>button]:text-dialog-header-foreground [&>button]:focus:ring-dialog-header-foreground", A && "[&>button]:pointer-events-none [&>button]:opacity-40", E ?? f[T], y),
29
29
  children: [
30
30
  A ? /* @__PURE__ */ u("div", {
31
31
  className: "absolute top-0 left-0 right-0 z-10",
32
- children: /* @__PURE__ */ u(c, {
32
+ children: /* @__PURE__ */ u(i, {
33
33
  indeterminate: !0,
34
34
  className: "h-1 rounded-none"
35
35
  })
36
36
  }) : null,
37
- /* @__PURE__ */ d(o, {
38
- className: e("bg-gradient-to-r from-dialog-header-from to-dialog-header-to p-4 sm:p-6 pr-12 sm:pr-12 sm:rounded-t-surface shrink-0", O),
39
- children: [/* @__PURE__ */ d(s, {
37
+ /* @__PURE__ */ d(c, {
38
+ className: n("bg-gradient-to-r from-dialog-header-from to-dialog-header-to p-4 sm:p-6 pr-12 sm:pr-12 sm:rounded-t-surface shrink-0", O),
39
+ children: [/* @__PURE__ */ d(l, {
40
40
  className: "text-xl sm:text-2xl font-bold flex items-center gap-2 text-dialog-header-foreground",
41
41
  children: [w === void 0 ? null : /* @__PURE__ */ u("div", {
42
42
  className: "p-2 bg-dialog-header-foreground/20 rounded-control",
43
43
  children: /* @__PURE__ */ u(w, { className: "size-4 text-dialog-header-foreground" })
44
44
  }), j(S)]
45
- }), C !== void 0 && C !== "" ? /* @__PURE__ */ u(a, {
45
+ }), C !== void 0 && C !== "" ? /* @__PURE__ */ u(s, {
46
46
  className: "text-dialog-header-foreground/80 text-base",
47
47
  children: j(C)
48
48
  }) : null]
49
49
  }),
50
50
  _ ? /* @__PURE__ */ u("div", {
51
51
  className: "px-4 sm:px-6 pt-4",
52
- children: /* @__PURE__ */ u(l, {
52
+ children: /* @__PURE__ */ u(t, {
53
53
  error: _,
54
54
  className: "max-w-full"
55
55
  })
@@ -59,23 +59,22 @@ function p({ open: p, onOpenChange: m, config: h, isLoading: g, error: _, footer
59
59
  children: b
60
60
  }),
61
61
  N ? /* @__PURE__ */ u("div", {
62
- className: e("sm:rounded-b-surface border-t border-border bg-muted/40 shrink-0 p-4 sm:p-6", k),
62
+ className: n("sm:rounded-b-surface border-t border-border bg-muted/40 shrink-0 p-4 sm:p-6", k),
63
63
  children: v ?? /* @__PURE__ */ u("div", {
64
64
  className: "flex justify-end gap-3",
65
- children: D?.map((e) => /* @__PURE__ */ d(n, {
66
- type: e.type ?? "button",
67
- form: e.form,
68
- variant: e.variant ?? "default",
69
- onClick: e.onClick,
70
- disabled: e.disabled === !0 || A && e.disableOnLoading !== !1,
71
- className: e.className,
72
- children: [e.icon === void 0 ? null : /* @__PURE__ */ u(e.icon, { className: "size-4" }), x(e.label)]
73
- }, e.id ?? e.label))
65
+ children: D?.map((t) => /* @__PURE__ */ d(e, {
66
+ type: t.type ?? "button",
67
+ form: t.form,
68
+ variant: t.variant ?? "default",
69
+ onClick: t.onClick,
70
+ disabled: t.disabled === !0 || A && t.disableOnLoading !== !1,
71
+ className: t.className,
72
+ children: [t.icon === void 0 ? null : /* @__PURE__ */ u(t.icon, { className: "size-4" }), x(t.label)]
73
+ }, t.id ?? t.label))
74
74
  })
75
75
  }) : null
76
76
  ]
77
77
  })
78
78
  });
79
79
  }
80
- //#endregion
81
80
  export { p as AppDialog };
@@ -1,33 +1,33 @@
1
- import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
2
- import { Button as t } from "../../ui/button.js";
3
- import { AlertDialog as n, AlertDialogCancel as r, AlertDialogContent as i, AlertDialogDescription as a, AlertDialogFooter as o, AlertDialogHeader as s, AlertDialogTitle as c } from "../../ui/alert-dialog.js";
4
- import { ErrorAlert as l } from "../states/ErrorAlert.js";
1
+ import { ErrorAlert as e } from "../states/ErrorAlert.js";
2
+ import { AlertDialog as t, AlertDialogCancel as n, AlertDialogContent as r, AlertDialogDescription as i, AlertDialogFooter as a, AlertDialogHeader as o, AlertDialogTitle as s } from "../../ui/alert-dialog.js";
3
+ import { Button as c } from "../../ui/button.js";
4
+ import { useKrosoftTranslation as l } from "../../../i18n/useKrosoftTranslation.js";
5
5
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
6
- //#region src/components/core/dialogs/ConfirmationDialog.tsx
6
+ // src/components/core/dialogs/ConfirmationDialog.tsx
7
7
  function f({ isLoading: f, error: p, config: m, destructive: h = !1 }) {
8
- let { t: g } = e();
9
- return m ? /* @__PURE__ */ u(n, {
8
+ let { t: g } = l();
9
+ return m ? /* @__PURE__ */ u(t, {
10
10
  open: m.isOpen,
11
11
  onOpenChange: (e) => {
12
12
  !e && !f && m.onClose();
13
13
  },
14
- children: /* @__PURE__ */ d(i, { children: [
15
- /* @__PURE__ */ d(s, { children: [
16
- /* @__PURE__ */ d(c, {
14
+ children: /* @__PURE__ */ d(r, { children: [
15
+ /* @__PURE__ */ d(o, { children: [
16
+ /* @__PURE__ */ d(s, {
17
17
  className: m.titleClassName,
18
18
  children: [m.icon && /* @__PURE__ */ u(m.icon, { className: "size-4" }), g(m.title)]
19
19
  }),
20
- /* @__PURE__ */ u(a, { children: g(m.description) }),
21
- m.itemName && /* @__PURE__ */ u(a, { children: /* @__PURE__ */ u("span", {
20
+ /* @__PURE__ */ u(i, { children: g(m.description) }),
21
+ m.itemName && /* @__PURE__ */ u(i, { children: /* @__PURE__ */ u("span", {
22
22
  className: "font-semibold block my-2",
23
23
  children: m.itemName
24
24
  }) })
25
25
  ] }),
26
- /* @__PURE__ */ u(l, { error: p }),
27
- /* @__PURE__ */ d(o, { children: [/* @__PURE__ */ u(r, {
26
+ /* @__PURE__ */ u(e, { error: p }),
27
+ /* @__PURE__ */ d(a, { children: [/* @__PURE__ */ u(n, {
28
28
  disabled: f,
29
29
  children: g("actions.cancel")
30
- }), /* @__PURE__ */ u(t, {
30
+ }), /* @__PURE__ */ u(c, {
31
31
  onClick: (e) => {
32
32
  e.preventDefault(), m.onConfirm();
33
33
  },
@@ -38,5 +38,4 @@ function f({ isLoading: f, error: p, config: m, destructive: h = !1 }) {
38
38
  ] })
39
39
  }) : null;
40
40
  }
41
- //#endregion
42
41
  export { f as ConfirmationDialog };
@@ -1,11 +1,11 @@
1
1
  import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
2
- import { Button as t } from "../../ui/button.js";
3
- import { AppDialog as n } from "./AppDialog.js";
2
+ import { AppDialog as t } from "./AppDialog.js";
3
+ import { Button as n } from "../../ui/button.js";
4
4
  import { GenericForm as r } from "../forms/GenericForm.js";
5
5
  import { useEffect as i, useId as a, useState as o } from "react";
6
6
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
7
7
  import { Pen as u, Save as d, X as f } from "lucide-react";
8
- //#region src/components/core/dialogs/FormDialog.tsx
8
+ // src/components/core/dialogs/FormDialog.tsx
9
9
  function p({ open: p, onOpenChange: m, data: h, title: g, headerBadge: _, schema: v, onSave: y, customFooter: b, defaultEditing: x = !1, footerActions: S = !0, saveLabel: C, cancelLabel: w, hideSaveIcon: T = !1, size: E = "4xl", maxWidth: D, isLoading: O = !1 }) {
10
10
  let { t: k } = e(), A = C ?? k("actions.save"), [j, M] = o(x), [N, P] = o(!1), F = a();
11
11
  if (i(() => {
@@ -52,7 +52,7 @@ function p({ open: p, onOpenChange: m, data: h, title: g, headerBadge: _, schema
52
52
  maxWidth: D,
53
53
  actions: S ? z : []
54
54
  };
55
- return /* @__PURE__ */ c(n, {
55
+ return /* @__PURE__ */ c(t, {
56
56
  open: p,
57
57
  onOpenChange: (e) => {
58
58
  m(e), e || L();
@@ -78,20 +78,20 @@ function p({ open: p, onOpenChange: m, data: h, title: g, headerBadge: _, schema
78
78
  b === void 0 ? null : b(h),
79
79
  y !== void 0 && !S ? /* @__PURE__ */ c("div", {
80
80
  className: "flex justify-end gap-2 border-t pt-4 mt-6",
81
- children: j ? /* @__PURE__ */ l(s, { children: [w === "" ? null : /* @__PURE__ */ l(t, {
81
+ children: j ? /* @__PURE__ */ l(s, { children: [w === "" ? null : /* @__PURE__ */ l(n, {
82
82
  onClick: L,
83
83
  variant: "outline",
84
84
  size: "sm",
85
85
  disabled: N || O,
86
86
  children: [/* @__PURE__ */ c(f, { className: "size-4 mr-2" }), w ?? k("actions.cancel")]
87
- }), /* @__PURE__ */ l(t, {
87
+ }), /* @__PURE__ */ l(n, {
88
88
  type: "submit",
89
89
  form: F,
90
90
  size: "sm",
91
91
  disabled: N || O,
92
92
  className: "text-white",
93
93
  children: [T ? null : /* @__PURE__ */ c(d, { className: "size-4 mr-2" }), N ? k("actions.saving") : A]
94
- })] }) : /* @__PURE__ */ l(t, {
94
+ })] }) : /* @__PURE__ */ l(n, {
95
95
  onClick: I,
96
96
  variant: "outline",
97
97
  size: "sm",
@@ -101,5 +101,4 @@ function p({ open: p, onOpenChange: m, data: h, title: g, headerBadge: _, schema
101
101
  ] })
102
102
  });
103
103
  }
104
- //#endregion
105
104
  export { p as default };
@@ -1,7 +1,7 @@
1
- import { Dialog as e, DialogClose as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogOverlay as o, DialogPortal as s, DialogTitle as c, DialogTrigger as l } from "../../ui/dialog.js";
2
- import { Progress as u } from "../../ui/progress.js";
3
- import { AppDialog as d } from "./AppDialog.js";
1
+ import { AppDialog as e } from "./AppDialog.js";
2
+ import { Dialog as t, DialogClose as n, DialogContent as r, DialogDescription as i, DialogFooter as a, DialogHeader as o, DialogOverlay as s, DialogPortal as c, DialogTitle as l, DialogTrigger as u } from "../../ui/dialog.js";
3
+ import { Progress as d } from "../../ui/progress.js";
4
4
  import f from "./FormDialog.js";
5
5
  import { ConfirmationDialog as p } from "./ConfirmationDialog.js";
6
6
  import { AboutDialog as m } from "./AboutDialog.js";
7
- export { m as AboutDialog, d as AppDialog, p as ConfirmationDialog, e as Dialog, t as DialogClose, n as DialogContent, r as DialogDescription, i as DialogFooter, a as DialogHeader, o as DialogOverlay, s as DialogPortal, c as DialogTitle, l as DialogTrigger, f as FormDialog, u as Progress };
7
+ export { m as AboutDialog, e as AppDialog, p as ConfirmationDialog, t as Dialog, n as DialogClose, r as DialogContent, i as DialogDescription, a as DialogFooter, o as DialogHeader, s as DialogOverlay, c as DialogPortal, l as DialogTitle, u as DialogTrigger, f as FormDialog, d as Progress };
@@ -3,7 +3,7 @@ import { Badge as t } from "../../ui/badge.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import { getLocale as i } from "@krosoft/core/helpers";
5
5
  import { XIcon as a } from "lucide-react";
6
- //#region src/components/core/filters/ActiveFilters.tsx
6
+ // src/components/core/filters/ActiveFilters.tsx
7
7
  var o = (e, t, n, r = {}) => {
8
8
  if (t instanceof Date) return t.toLocaleDateString(i());
9
9
  let a = String(t), o = r[`${e}_${a}`];
@@ -65,5 +65,4 @@ function s({ filters: i, onRemoveFilter: s, onClearAll: c, filterLabelKeys: l =
65
65
  ]
66
66
  });
67
67
  }
68
- //#endregion
69
68
  export { s as ActiveFilters };
@@ -6,7 +6,7 @@ import { FilterField as l } from "./FilterField.js";
6
6
  import { useEffect as u, useMemo as d, useState as f } from "react";
7
7
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
8
8
  import { Filter as h } from "lucide-react";
9
- //#region src/components/core/filters/AdvancedFilters.tsx
9
+ // src/components/core/filters/AdvancedFilters.tsx
10
10
  var g = (e) => !(e == null || e === "" || Array.isArray(e) && e.length === 0);
11
11
  function _({ sections: _, filters: v, onFiltersChange: y, buttonText: b, sheetTitle: x }) {
12
12
  let { t: S } = e(), [C, w] = f(!1), [T, E] = f(v);
@@ -99,5 +99,4 @@ function _({ sections: _, filters: v, onFiltersChange: y, buttonText: b, sheetTi
99
99
  })]
100
100
  });
101
101
  }
102
- //#endregion
103
102
  export { _ as AdvancedFilters };
@@ -1,19 +1,19 @@
1
- import { cn as e } from "../../../helpers/tailwind.helper.js";
2
- import { useKrosoftTranslation as t } from "../../../i18n/useKrosoftTranslation.js";
3
- import { Button as n } from "../../ui/button.js";
4
- import { controlBaseClass as r } from "../../ui/control.js";
1
+ import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
2
+ import { Button as t } from "../../ui/button.js";
3
+ import { controlBaseClass as n } from "../../ui/control.js";
4
+ import { Input as r } from "../../ui/input.js";
5
5
  import { Label as i } from "../../ui/label.js";
6
- import { Input as a } from "../../ui/input.js";
7
- import { Popover as o, PopoverContent as s, PopoverTrigger as c } from "../../ui/popover.js";
8
- import { ToggleGroup as l, ToggleGroupItem as u } from "../../ui/toggle-group.js";
6
+ import { Popover as a, PopoverContent as o, PopoverTrigger as s } from "../../ui/popover.js";
7
+ import { ToggleGroup as c, ToggleGroupItem as l } from "../../ui/toggle-group.js";
8
+ import { cn as u } from "../../../helpers/tailwind.helper.js";
9
9
  import { SingleSelect as d } from "../inputs/SingleSelect.js";
10
10
  import { useState as f } from "react";
11
11
  import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
12
12
  import { ChevronDownIcon as g, XIcon as _ } from "lucide-react";
13
- //#region src/components/core/filters/ConditionFilter.tsx
13
+ // src/components/core/filters/ConditionFilter.tsx
14
14
  var v = (e) => e?.requiresValue !== !1;
15
15
  function y({ fields: y, operators: b, value: x, onChange: S, labelKey: C, icon: w, disabled: T = !1, className: E }) {
16
- let { t: D } = t(), [O, k] = f(!1), [A, j] = f({ value: "" }), M = x === void 0 ? void 0 : y.find((e) => e.value === x.field), N = x === void 0 ? void 0 : b.find((e) => e.value === x.operator), P = x !== void 0, F = b.find((e) => e.value === A.operator), I = v(F), L = F?.numeric === !0, R = A.value.trim(), z = I && L && R !== "" && Number.isNaN(Number(R)), B = A.field !== void 0 && F !== void 0 && (!I || R !== "") && !z, V = (e) => {
16
+ let { t: D } = e(), [O, k] = f(!1), [A, j] = f({ value: "" }), M = x === void 0 ? void 0 : y.find((e) => e.value === x.field), N = x === void 0 ? void 0 : b.find((e) => e.value === x.operator), P = x !== void 0, F = b.find((e) => e.value === A.operator), I = v(F), L = F?.numeric === !0, R = A.value.trim(), z = I && L && R !== "" && Number.isNaN(Number(R)), B = A.field !== void 0 && F !== void 0 && (!I || R !== "") && !z, V = (e) => {
17
17
  e && j(x === void 0 ? { value: "" } : { ...x }), k(e);
18
18
  }, H = () => {
19
19
  B && A.field !== void 0 && F !== void 0 && (S({
@@ -24,15 +24,15 @@ function y({ fields: y, operators: b, value: x, onChange: S, labelKey: C, icon:
24
24
  }, U = () => {
25
25
  S(void 0), k(!1);
26
26
  }, W = D(C === void 0 ? "filters.condition.label" : C);
27
- return /* @__PURE__ */ h(o, {
27
+ return /* @__PURE__ */ h(a, {
28
28
  open: O,
29
29
  onOpenChange: V,
30
- children: [/* @__PURE__ */ m(c, {
30
+ children: [/* @__PURE__ */ m(s, {
31
31
  asChild: !0,
32
32
  children: /* @__PURE__ */ h("button", {
33
33
  type: "button",
34
34
  disabled: T,
35
- className: e(r, "inline-flex items-center justify-between gap-1.5 whitespace-nowrap transition-colors", P ? "border-primary bg-primary/10 text-primary" : "hover:bg-muted", !P && "w-full md:w-[200px]", E),
35
+ className: u(n, "inline-flex items-center justify-between gap-1.5 whitespace-nowrap transition-colors", P ? "border-primary bg-primary/10 text-primary" : "hover:bg-muted", !P && "w-full md:w-[200px]", E),
36
36
  children: [/* @__PURE__ */ h("span", {
37
37
  className: "flex min-w-0 items-center gap-1.5",
38
38
  children: [w !== void 0 && /* @__PURE__ */ m(w, { className: "size-3.5 shrink-0 opacity-70" }), /* @__PURE__ */ m("span", {
@@ -67,10 +67,10 @@ function y({ fields: y, operators: b, value: x, onChange: S, labelKey: C, icon:
67
67
  },
68
68
  className: "opacity-70 hover:opacity-100",
69
69
  children: /* @__PURE__ */ m(_, { className: "size-3.5" })
70
- }), /* @__PURE__ */ m(g, { className: e("size-3.5 opacity-60 transition-transform", O && "rotate-180") })]
70
+ }), /* @__PURE__ */ m(g, { className: u("size-3.5 opacity-60 transition-transform", O && "rotate-180") })]
71
71
  })]
72
72
  })
73
- }), /* @__PURE__ */ h(s, {
73
+ }), /* @__PURE__ */ h(o, {
74
74
  align: "start",
75
75
  className: "w-80 space-y-4",
76
76
  children: [
@@ -90,7 +90,7 @@ function y({ fields: y, operators: b, value: x, onChange: S, labelKey: C, icon:
90
90
  }),
91
91
  /* @__PURE__ */ h("div", {
92
92
  className: "space-y-1.5",
93
- children: [/* @__PURE__ */ m(i, { children: D("filters.condition.operator") }), /* @__PURE__ */ m(l, {
93
+ children: [/* @__PURE__ */ m(i, { children: D("filters.condition.operator") }), /* @__PURE__ */ m(c, {
94
94
  type: "single",
95
95
  variant: "outline",
96
96
  size: "sm",
@@ -106,7 +106,7 @@ function y({ fields: y, operators: b, value: x, onChange: S, labelKey: C, icon:
106
106
  };
107
107
  });
108
108
  },
109
- children: b.map((e) => /* @__PURE__ */ m(u, {
109
+ children: b.map((e) => /* @__PURE__ */ m(l, {
110
110
  value: e.value,
111
111
  title: e.title,
112
112
  "aria-label": e.title ?? e.label,
@@ -122,7 +122,7 @@ function y({ fields: y, operators: b, value: x, onChange: S, labelKey: C, icon:
122
122
  htmlFor: "condition-filter-value",
123
123
  children: D("filters.condition.value")
124
124
  }),
125
- /* @__PURE__ */ m(a, {
125
+ /* @__PURE__ */ m(r, {
126
126
  id: "condition-filter-value",
127
127
  value: A.value,
128
128
  type: L ? "number" : "text",
@@ -142,12 +142,12 @@ function y({ fields: y, operators: b, value: x, onChange: S, labelKey: C, icon:
142
142
  }),
143
143
  /* @__PURE__ */ h("div", {
144
144
  className: "flex justify-end gap-2",
145
- children: [P && /* @__PURE__ */ m(n, {
145
+ children: [P && /* @__PURE__ */ m(t, {
146
146
  variant: "ghost",
147
147
  size: "sm",
148
148
  onClick: U,
149
149
  children: D("filters.condition.clear")
150
- }), /* @__PURE__ */ m(n, {
150
+ }), /* @__PURE__ */ m(t, {
151
151
  size: "sm",
152
152
  onClick: H,
153
153
  disabled: !B,
@@ -158,5 +158,4 @@ function y({ fields: y, operators: b, value: x, onChange: S, labelKey: C, icon:
158
158
  })]
159
159
  });
160
160
  }
161
- //#endregion
162
161
  export { y as ConditionFilter };
@@ -3,7 +3,7 @@ import { ConditionFilter as t } from "./ConditionFilter.js";
3
3
  import { useRef as n } from "react";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  import { PlusIcon as a } from "lucide-react";
6
- //#region src/components/core/filters/ConditionFilterGroup.tsx
6
+ // src/components/core/filters/ConditionFilterGroup.tsx
7
7
  var o = (e, t) => e.field === t.field && e.operator === t.operator && e.value === t.value;
8
8
  function s({ fields: s, operators: c, values: l, onChange: u, labelKey: d, max: f = 5, disabled: p = !1, className: m }) {
9
9
  let h = n(!1), g = (e) => {
@@ -40,5 +40,4 @@ function s({ fields: s, operators: c, values: l, onChange: u, labelKey: d, max:
40
40
  })]
41
41
  });
42
42
  }
43
- //#endregion
44
43
  export { s as ConditionFilterGroup };
@@ -1,12 +1,12 @@
1
1
  import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
2
2
  import { Input as t } from "../../ui/input.js";
3
- import { MultiSelect as n } from "../inputs/MultiSelect.js";
4
- import { DatePicker as r } from "../inputs/DatePicker.js";
5
- import { DateRangePicker as i } from "../inputs/DateRangePicker.js";
6
- import { SingleSelect as a } from "../inputs/SingleSelect.js";
3
+ import { DatePicker as n } from "../inputs/DatePicker.js";
4
+ import { DateRangePicker as r } from "../inputs/DateRangePicker.js";
5
+ import { SingleSelect as i } from "../inputs/SingleSelect.js";
6
+ import { MultiSelect as a } from "../inputs/MultiSelect.js";
7
7
  import "react";
8
8
  import { jsx as o } from "react/jsx-runtime";
9
- //#region src/components/core/filters/FilterField.tsx
9
+ // src/components/core/filters/FilterField.tsx
10
10
  var s = ({ field: s, value: c, onChange: l, onToggleMultiSelect: u }) => {
11
11
  let { t: d } = e();
12
12
  switch (s.type) {
@@ -27,7 +27,7 @@ var s = ({ field: s, value: c, onChange: l, onToggleMultiSelect: u }) => {
27
27
  min: s.min,
28
28
  max: s.max
29
29
  });
30
- case "select": return /* @__PURE__ */ o(a, {
30
+ case "select": return /* @__PURE__ */ o(i, {
31
31
  options: s.options ?? [],
32
32
  value: c,
33
33
  onChange: l,
@@ -35,17 +35,17 @@ var s = ({ field: s, value: c, onChange: l, onToggleMultiSelect: u }) => {
35
35
  placeholder: s.placeholder,
36
36
  searchPlaceholder: s.searchPlaceholder
37
37
  });
38
- case "date": return /* @__PURE__ */ o(r, {
38
+ case "date": return /* @__PURE__ */ o(n, {
39
39
  date: c,
40
40
  onDateChange: l,
41
41
  placeholder: s.placeholder ?? d("date.pickDate")
42
42
  });
43
- case "date-range": return /* @__PURE__ */ o(i, {
43
+ case "date-range": return /* @__PURE__ */ o(r, {
44
44
  value: c,
45
45
  onChange: l,
46
46
  placeholder: s.placeholder
47
47
  });
48
- case "multi-select": return /* @__PURE__ */ o(n, {
48
+ case "multi-select": return /* @__PURE__ */ o(a, {
49
49
  options: s.options ?? [],
50
50
  selected: c ?? [],
51
51
  onToggle: u,
@@ -60,5 +60,4 @@ var s = ({ field: s, value: c, onChange: l, onToggleMultiSelect: u }) => {
60
60
  default: return null;
61
61
  }
62
62
  };
63
- //#endregion
64
63
  export { s as FilterField };
@@ -1,6 +1,6 @@
1
1
  import { FilterPillsGroup as e } from "./FilterPillsGroup.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- //#region src/components/core/filters/FilterPills.tsx
3
+ // src/components/core/filters/FilterPills.tsx
4
4
  function n({ options: n, value: r, onChange: i, variant: a = "solid" }) {
5
5
  return /* @__PURE__ */ t(e, {
6
6
  options: n,
@@ -9,5 +9,4 @@ function n({ options: n, value: r, onChange: i, variant: a = "solid" }) {
9
9
  variant: a
10
10
  });
11
11
  }
12
- //#endregion
13
12
  export { n as FilterPills };
@@ -1,6 +1,6 @@
1
1
  import { cn as e } from "../../../helpers/tailwind.helper.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- //#region src/components/core/filters/FilterPillsGroup.tsx
3
+ // src/components/core/filters/FilterPillsGroup.tsx
4
4
  var r = {
5
5
  solid: "border-foreground bg-foreground text-background",
6
6
  outline: "border-primary bg-primary/10 text-primary font-medium"
@@ -35,5 +35,4 @@ function a({ options: r, values: a, onToggle: o, variant: s = "solid" }) {
35
35
  })
36
36
  });
37
37
  }
38
- //#endregion
39
38
  export { a as FilterPillsGroup };
@@ -1,19 +1,19 @@
1
1
  import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
2
2
  import { Button as t } from "../../ui/button.js";
3
- import { SearchInput as n } from "../inputs/SearchInput.js";
4
- import { useMobile as r } from "../../../hooks/ui/useMobile.js";
3
+ import { useMobile as n } from "../../../hooks/ui/useMobile.js";
4
+ import { SearchInput as r } from "../inputs/SearchInput.js";
5
5
  import { FiltersMobileDrawer as i } from "./FiltersMobileDrawer.js";
6
6
  import "react";
7
7
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
8
  import { FilterXIcon as s } from "lucide-react";
9
- //#region src/components/core/filters/FiltersContainer.tsx
9
+ // src/components/core/filters/FiltersContainer.tsx
10
10
  function c({ children: c, search: l, searchPlaceholder: u, activeFiltersCount: d = 0, onReset: f, onSearch: p }) {
11
11
  let { t: m } = e();
12
- return r() ? /* @__PURE__ */ o("div", {
12
+ return n() ? /* @__PURE__ */ o("div", {
13
13
  className: "flex items-center gap-2",
14
14
  children: [p !== void 0 && /* @__PURE__ */ a("div", {
15
15
  className: "flex-1",
16
- children: /* @__PURE__ */ a(n, {
16
+ children: /* @__PURE__ */ a(r, {
17
17
  search: l ?? "",
18
18
  onSearch: p,
19
19
  placeholder: u
@@ -27,7 +27,7 @@ function c({ children: c, search: l, searchPlaceholder: u, activeFiltersCount: d
27
27
  className: "flex justify-between",
28
28
  children: [/* @__PURE__ */ o("div", {
29
29
  className: "flex flex-wrap gap-2",
30
- children: [p !== void 0 && /* @__PURE__ */ a(n, {
30
+ children: [p !== void 0 && /* @__PURE__ */ a(r, {
31
31
  search: l ?? "",
32
32
  onSearch: p,
33
33
  placeholder: u
@@ -50,5 +50,4 @@ function c({ children: c, search: l, searchPlaceholder: u, activeFiltersCount: d
50
50
  })]
51
51
  });
52
52
  }
53
- //#endregion
54
53
  export { c as FiltersContainer };
@@ -4,7 +4,7 @@ import { Drawer as n, DrawerClose as r, DrawerContent as i, DrawerFooter as a, D
4
4
  import { useState as l } from "react";
5
5
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
6
6
  import { FilterIcon as f, FilterXIcon as p } from "lucide-react";
7
- //#region src/components/core/filters/FiltersMobileDrawer.tsx
7
+ // src/components/core/filters/FiltersMobileDrawer.tsx
8
8
  function m({ children: m, activeFiltersCount: h = 0, onReset: g, onApply: _ }) {
9
9
  let { t: v } = e(), [y, b] = l(!1);
10
10
  return /* @__PURE__ */ d(n, {
@@ -53,5 +53,4 @@ function m({ children: m, activeFiltersCount: h = 0, onReset: g, onApply: _ }) {
53
53
  ] })]
54
54
  });
55
55
  }
56
- //#endregion
57
56
  export { m as FiltersMobileDrawer };
@@ -1,11 +1,11 @@
1
1
  import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
2
- import { SearchInput as t } from "../inputs/SearchInput.js";
3
- import { MultiSelect as n } from "../inputs/MultiSelect.js";
2
+ import { MultiSelect as t } from "../inputs/MultiSelect.js";
3
+ import { SearchInput as n } from "../inputs/SearchInput.js";
4
4
  import { ActiveFilters as r } from "./ActiveFilters.js";
5
5
  import { AdvancedFilters as i } from "./AdvancedFilters.js";
6
6
  import { useMemo as a } from "react";
7
7
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
- //#region src/components/core/filters/TableFilter.tsx
8
+ // src/components/core/filters/TableFilter.tsx
9
9
  function c({ searchQuery: c, onSearchChange: l, searchPlaceholder: u, filters: d, onFiltersChange: f, sections: p, advancedButtonText: m, sheetTitle: h }) {
10
10
  let { t: g } = e(), _ = (e, t) => {
11
11
  let n = d[e], r = Array.isArray(n) ? n : [], i = r.includes(t) ? r.filter((e) => e !== t) : [...r, t], a = { ...d };
@@ -54,14 +54,14 @@ function c({ searchQuery: c, onSearchChange: l, searchPlaceholder: u, filters: d
54
54
  className: "flex flex-wrap items-center gap-2 justify-between",
55
55
  children: [/* @__PURE__ */ s("div", {
56
56
  className: "flex flex-wrap items-center gap-2",
57
- children: [l === void 0 ? null : /* @__PURE__ */ o(t, {
57
+ children: [l === void 0 ? null : /* @__PURE__ */ o(n, {
58
58
  searchQuery: c,
59
59
  onSearch: l,
60
60
  onClear: () => {
61
61
  l("");
62
62
  },
63
63
  placeholder: u ?? g("search.placeholder")
64
- }), x.map((e) => /* @__PURE__ */ o(n, {
64
+ }), x.map((e) => /* @__PURE__ */ o(t, {
65
65
  variant: "pill",
66
66
  labelKey: e.labelKey,
67
67
  options: e.options,
@@ -97,5 +97,4 @@ function c({ searchQuery: c, onSearchChange: l, searchPlaceholder: u, filters: d
97
97
  })]
98
98
  });
99
99
  }
100
- //#endregion
101
100
  export { c as TableFilter };
@@ -1,11 +1,11 @@
1
1
  import { ActiveFilters as e } from "./ActiveFilters.js";
2
- import { FilterField as t } from "./FilterField.js";
3
- import { AdvancedFilters as n } from "./AdvancedFilters.js";
4
- import { FilterPillsGroup as r } from "./FilterPillsGroup.js";
5
- import { FilterPills as i } from "./FilterPills.js";
6
- import { FiltersMobileDrawer as a } from "./FiltersMobileDrawer.js";
7
- import { FiltersContainer as o } from "./FiltersContainer.js";
2
+ import { AdvancedFilters as t } from "./AdvancedFilters.js";
3
+ import { FilterField as n } from "./FilterField.js";
4
+ import { FilterPills as r } from "./FilterPills.js";
5
+ import { FilterPillsGroup as i } from "./FilterPillsGroup.js";
6
+ import { FiltersContainer as a } from "./FiltersContainer.js";
7
+ import { FiltersMobileDrawer as o } from "./FiltersMobileDrawer.js";
8
8
  import { TableFilter as s } from "./TableFilter.js";
9
9
  import { ConditionFilter as c } from "./ConditionFilter.js";
10
10
  import { ConditionFilterGroup as l } from "./ConditionFilterGroup.js";
11
- export { e as ActiveFilters, n as AdvancedFilters, c as ConditionFilter, l as ConditionFilterGroup, t as FilterField, i as FilterPills, r as FilterPillsGroup, o as FiltersContainer, a as FiltersMobileDrawer, s as TableFilter };
11
+ export { e as ActiveFilters, t as AdvancedFilters, c as ConditionFilter, l as ConditionFilterGroup, n as FilterField, r as FilterPills, i as FilterPillsGroup, a as FiltersContainer, o as FiltersMobileDrawer, s as TableFilter };