@krosoft/react 0.0.295 → 0.0.297

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 (47) hide show
  1. package/README.md +4 -1
  2. package/dist/{AppActions-NdUYh2ii.js → AppActions-BMh044Sc.js} +2 -2
  3. package/dist/{AppSubTitle-CunCNtvJ.js → AppSubTitle-BfZTloah.js} +1 -1
  4. package/dist/{GenericForm-CLgO9HuL.js → GenericForm-BV8n9y1n.js} +7 -7
  5. package/dist/{ImageInput-DYGqUTBi.js → ImageInput-BdOxyamZ.js} +2 -2
  6. package/dist/{MultiSelect-CXnF_D0R.js → MultiSelect-Dmt1iWgB.js} +38 -36
  7. package/dist/{SearchInput-DDcL_q7h.js → SearchInput-81oecSco.js} +39 -37
  8. package/dist/{cards-BB6V8VWw.js → cards-BFa9EQc6.js} +1 -1
  9. package/dist/components/core/cards/index.js +1 -1
  10. package/dist/components/core/dialogs/AppDialog.d.ts +2 -5
  11. package/dist/components/core/dialogs/AppDialog.d.ts.map +1 -1
  12. package/dist/components/core/dialogs/index.js +3 -3
  13. package/dist/components/core/filters/index.js +5 -5
  14. package/dist/components/core/forms/index.js +1 -1
  15. package/dist/components/core/index.js +14 -14
  16. package/dist/components/core/inputs/MultiSelect.d.ts +8 -2
  17. package/dist/components/core/inputs/MultiSelect.d.ts.map +1 -1
  18. package/dist/components/core/inputs/SingleSelect.d.ts +8 -2
  19. package/dist/components/core/inputs/SingleSelect.d.ts.map +1 -1
  20. package/dist/components/core/inputs/index.js +4 -4
  21. package/dist/components/core/language/index.js +1 -1
  22. package/dist/components/core/layouts/index.js +5 -5
  23. package/dist/components/core/navbar/index.js +1 -1
  24. package/dist/components/core/table/index.js +3 -3
  25. package/dist/components/core/tabs/index.js +4 -4
  26. package/dist/components/core/theme/index.js +1 -1
  27. package/dist/components/index.js +16 -16
  28. package/dist/components/ui/button.d.ts +2 -2
  29. package/dist/components/ui/button.d.ts.map +1 -1
  30. package/dist/components/ui/command.d.ts +7 -7
  31. package/dist/components/ui/index.js +4 -4
  32. package/dist/components/ui/input-otp.d.ts +2 -2
  33. package/dist/{dialogs-DVHdqXlO.js → dialogs-D2NqMYEb.js} +10 -10
  34. package/dist/{inputs-DG8o5DMW.js → inputs-V2h_AcMW.js} +3 -3
  35. package/dist/{language-BvPG7v7d.js → language-9nbLYpqG.js} +2 -2
  36. package/dist/{navbar-CU6zaS92.js → navbar-BLdw6QDi.js} +2 -2
  37. package/dist/{select-CsXmG_sJ.js → select-CfhuieLs.js} +1 -1
  38. package/dist/{sheet-4VOGdoiW.js → sheet-DRzg-JWH.js} +1 -1
  39. package/dist/tailwind/index.d.ts +5 -0
  40. package/dist/tailwind/index.d.ts.map +1 -1
  41. package/dist/tailwind/index.js +5 -0
  42. package/dist/{theme-uTxCKUip.js → theme-2eQs7CHF.js} +2 -2
  43. package/dist/{tooltip-CWdde1-y.js → tooltip-Bu3wNhtW.js} +1 -1
  44. package/dist/types/ButtonVariantType.d.ts +9 -1
  45. package/dist/types/ButtonVariantType.d.ts.map +1 -1
  46. package/dist/{ui-rJqnHWNK.js → ui-DVtB9U8H.js} +3 -3
  47. package/package.json +1 -1
package/README.md CHANGED
@@ -92,11 +92,14 @@ Rien n'oblige à suivre un preset : n'importe quelle valeur convient (`--k-radiu
92
92
  | `--k-success`, `--k-warning`, `--k-info` (+ `-foreground`) | `bg-success`, `text-warning-foreground`, `border-info`… |
93
93
  | `--k-topbar-*` | `bg-topbar`, `text-topbar-foreground`, `bg-topbar-accent`… |
94
94
  | `--k-brand-from`, `--k-brand-to`, `--k-brand-foreground` | `from-brand-from`, `to-brand-to`, `text-brand-foreground` |
95
+ | `--k-dialog-header-*` (mêmes suffixes) | `from-dialog-header-from`, `text-dialog-header-foreground`… |
95
96
  | `--k-sidebar-muted` | `text-sidebar-muted` |
96
97
  | `--k-radius-control`, `--k-radius-surface` (+ `-dense`) | `rounded-control`, `rounded-surface` |
97
98
  | `--k-font-heading`, `--k-font-body` | appliquées directement par `globals.css` sur `body` et `h1`–`h6` |
98
99
 
99
- `--k-brand-*` est le dégradé de marque : il habille l'en-tête d'`AppDialog`. Deux bornes plutôt qu'une couleur pleine, parce que les surfaces qui le portent sont des dégradés — un thème qui n'en veut pas met la même valeur des deux côtés. Il est déclaré sur `:root` seulement, comme la palette des graphes : ces teintes portent du texte blanc et restent identiques en clair comme en sombre.
100
+ `--k-brand-*` est le dégradé de marque, à la main de l'application : bouton `variant="brand"`, bandeaux, écrans de connexion. Deux bornes plutôt qu'une couleur pleine, parce que les surfaces qui le portent sont des dégradés — un thème qui n'en veut pas met la même valeur des deux côtés. Chaque thème embarqué le redéclare avec ses propres teintes (violet par défaut, jaune sur Temporal, cyan sur Ocean). `-foreground` porte le texte et les icônes posés dessus, et n'est donc pas toujours blanc : un dégradé clair demande un texte sombre.
101
+
102
+ `--k-dialog-header-*` habille l'en-tête d'`AppDialog` et suit les mêmes trois suffixes. Tokens **distincts** de la marque à dessein : l'en-tête est un choix de composant, la marque un choix d'application, et retoucher l'un ne doit pas déplacer l'autre. Ils ne sont pas indépendants pour rien : un projet qui ne déclare que `--k-brand-*` obtient quand même une dialog cohérente, le preset retombant dessus. Story `Design Tokens/Marque` pour comparer les thèmes côte à côte.
100
103
 
101
104
  Ces couleurs sont désormais mappées par le preset partagé : un projet consommateur qui les déclarait dans son propre `tailwind.config` peut supprimer ces lignes.
102
105
 
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import { t } from "./i18n-d2p0RJo9.js";
3
- import { Bt as n, Ft as r, Gt as i, Nt as a, jt as o } from "./ui-rJqnHWNK.js";
4
- import { s } from "./tooltip-CWdde1-y.js";
3
+ import { Bt as n, Ft as r, Gt as i, Nt as a, jt as o } from "./ui-DVtB9U8H.js";
4
+ import { s } from "./tooltip-Bu3wNhtW.js";
5
5
  import { t as c } from "./useMobile-pTQ8lWvt.js";
6
6
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
7
7
  import { MoreVerticalIcon as d } from "lucide-react";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./i18n-d2p0RJo9.js";
2
- import { t } from "./AppActions-NdUYh2ii.js";
2
+ import { t } from "./AppActions-BMh044Sc.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  //#region src/components/core/layouts/AppSubTitle.tsx
5
5
  function i({ titleKey: i, actions: a, className: o }) {
@@ -1,14 +1,14 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import { c as t, d as n, s as r } from "./chart-Dq3AIrue.js";
3
3
  import { t as i } from "./i18n-d2p0RJo9.js";
4
- import { Ct as a, Dt as o, Et as s, Ot as c, St as l, Tt as u, bn as d, p as f } from "./ui-rJqnHWNK.js";
5
- import { s as p } from "./tooltip-CWdde1-y.js";
6
- import { g as m } from "./sheet-4VOGdoiW.js";
7
- import { i as h, l as g, n as ee, t as _, u as v } from "./select-CsXmG_sJ.js";
4
+ import { Ct as a, Dt as o, Et as s, Ot as c, St as l, Tt as u, bn as d, p as f } from "./ui-DVtB9U8H.js";
5
+ import { s as p } from "./tooltip-Bu3wNhtW.js";
6
+ import { g as m } from "./sheet-DRzg-JWH.js";
7
+ import { i as h, l as g, n as ee, t as _, u as v } from "./select-CfhuieLs.js";
8
8
  import { n as y } from "./useToast-UeDRLovh.js";
9
- import { t as b } from "./ImageInput-DYGqUTBi.js";
10
- import { t as x } from "./AppSubTitle-CunCNtvJ.js";
11
- import { t as S } from "./MultiSelect-CXnF_D0R.js";
9
+ import { t as b } from "./ImageInput-BdOxyamZ.js";
10
+ import { t as x } from "./AppSubTitle-BfZTloah.js";
11
+ import { t as S } from "./MultiSelect-Dmt1iWgB.js";
12
12
  import { useEffect as C, useRef as w, useState as T } from "react";
13
13
  import { jsx as E, jsxs as D } from "react/jsx-runtime";
14
14
  import { useForm as O } from "react-hook-form";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import { t } from "./i18n-d2p0RJo9.js";
3
- import "./ui-rJqnHWNK.js";
4
- import { s as n } from "./tooltip-CWdde1-y.js";
3
+ import "./ui-DVtB9U8H.js";
4
+ import { s as n } from "./tooltip-Bu3wNhtW.js";
5
5
  import { t as r } from "./useNotifications-CyhTruIG.js";
6
6
  import { forwardRef as i, useRef as a } from "react";
7
7
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
@@ -1,61 +1,63 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import { t } from "./i18n-d2p0RJo9.js";
3
- import { bn as n } from "./ui-rJqnHWNK.js";
4
- import { a as r, o as i } from "./tooltip-CWdde1-y.js";
5
- import { h as a, m as o, p as s } from "./sheet-4VOGdoiW.js";
3
+ import { bn as n } from "./ui-DVtB9U8H.js";
4
+ import { a as r, o as i } from "./tooltip-Bu3wNhtW.js";
5
+ import { h as a, m as o, p as s } from "./sheet-DRzg-JWH.js";
6
6
  import { useMemo as c, useState as l } from "react";
7
7
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
8
  import { ChevronDownIcon as f, SearchIcon as p, XIcon as m } from "lucide-react";
9
9
  import { Command as h } from "cmdk";
10
10
  //#region src/components/core/inputs/MultiSelect.tsx
11
- var g = ({ options: g, selected: _, onToggle: v, onClear: y, onSelectAll: b, variant: x = "input", placeholder: S, labelKey: C, searchable: w = !1, searchPlaceholder: T, disabled: E = !1, maxCount: D, className: O }) => {
12
- let { t: k } = t(), [A, j] = l(""), [M, N] = l(!1), P = x === "pill", F = c(() => A === "" ? g : g.filter((e) => e.label.toLowerCase().includes(A.toLowerCase())), [g, A]), I = c(() => F.filter((e) => e.disabled !== !0).map((e) => e.value), [F]), L = c(() => _.filter((e) => g.find((t) => t.value === e)?.disabled === !0), [g, _]), R = c(() => I.length !== 0 && I.every((e) => _.includes(e)), [I, _]), z = c(() => _.map((e) => g.find((t) => t.value === e)?.label ?? e), [g, _]), B = D !== void 0 && D > 0 ? z.slice(0, D) : z, V = z.length - B.length, H = (e) => {
13
- N(e), e || j("");
14
- }, U = () => {
15
- L.length > 0 ? b === void 0 ? _.filter((e) => !L.includes(e)).forEach((e) => {
11
+ var g = ({ options: g, selected: _, onToggle: v, onClear: y, onSelectAll: b, variant: x = "input", placeholder: S, labelKey: C, searchable: w = !1, searchPlaceholder: T, disabled: E = !1, maxCount: D, className: O, ...k }) => {
12
+ let { t: A } = t(), [j, M] = l(""), [N, P] = l(!1), F = x === "pill", I = c(() => j === "" ? g : g.filter((e) => e.label.toLowerCase().includes(j.toLowerCase())), [g, j]), L = c(() => I.filter((e) => e.disabled !== !0).map((e) => e.value), [I]), R = c(() => _.filter((e) => g.find((t) => t.value === e)?.disabled === !0), [g, _]), z = c(() => L.length !== 0 && L.every((e) => _.includes(e)), [L, _]), B = c(() => _.map((e) => g.find((t) => t.value === e)?.label ?? e), [g, _]), V = D !== void 0 && D > 0 ? B.slice(0, D) : B, H = B.length - V.length, U = (e) => {
13
+ P(e), e || M("");
14
+ }, W = () => {
15
+ R.length > 0 ? b === void 0 ? _.filter((e) => !R.includes(e)).forEach((e) => {
16
16
  v(e);
17
- }) : b(L) : y === void 0 ? b === void 0 ? _.forEach((e) => {
17
+ }) : b(R) : y === void 0 ? b === void 0 ? _.forEach((e) => {
18
18
  v(e);
19
19
  }) : b([]) : y();
20
- }, W = () => {
21
- if (R) b === void 0 ? y !== void 0 && _.every((e) => I.includes(e)) ? y() : I.forEach((e) => {
20
+ }, G = () => {
21
+ if (z) b === void 0 ? y !== void 0 && _.every((e) => L.includes(e)) ? y() : L.forEach((e) => {
22
22
  v(e);
23
- }) : b(_.filter((e) => !I.includes(e)));
23
+ }) : b(_.filter((e) => !L.includes(e)));
24
24
  else if (b !== void 0) {
25
25
  let e = [..._];
26
- I.forEach((t) => {
26
+ L.forEach((t) => {
27
27
  e.includes(t) || e.push(t);
28
28
  }), b(e);
29
- } else I.forEach((e) => {
29
+ } else L.forEach((e) => {
30
30
  _.includes(e) || v(e);
31
31
  });
32
- }, G = P ? /* @__PURE__ */ d("button", {
32
+ }, K = F ? /* @__PURE__ */ d("button", {
33
+ ...k,
33
34
  type: "button",
34
35
  disabled: E,
35
36
  className: e(r, "inline-flex items-center justify-between gap-1.5 whitespace-nowrap transition-colors", _.length > 0 ? "border-primary bg-primary/10 text-primary font-medium" : "hover:bg-muted", O ?? "w-full md:w-[180px]"),
36
37
  children: [/* @__PURE__ */ u("span", {
37
38
  className: "truncate",
38
- children: C === void 0 ? S ?? k("select.placeholder") : k(C)
39
+ children: C === void 0 ? S ?? A("select.placeholder") : A(C)
39
40
  }), /* @__PURE__ */ d("div", {
40
41
  className: "flex shrink-0 items-center gap-1.5",
41
42
  children: [_.length > 0 && /* @__PURE__ */ u("span", {
42
43
  className: "flex h-4 min-w-[16px] items-center justify-center rounded-full bg-primary px-1 text-[10px] font-bold text-primary-foreground",
43
44
  children: _.length
44
- }), /* @__PURE__ */ u(f, { className: e("size-3.5 opacity-60 transition-transform", M && "rotate-180") })]
45
+ }), /* @__PURE__ */ u(f, { className: e("size-3.5 opacity-60 transition-transform", N && "rotate-180") })]
45
46
  })]
46
47
  }) : /* @__PURE__ */ d("button", {
48
+ ...k,
47
49
  type: "button",
48
50
  disabled: E,
49
- className: e(i, "w-full", M && "ring-2 ring-ring ring-offset-2", _.length === 0 && "text-muted-foreground", O),
51
+ className: e(i, "w-full", N && "ring-2 ring-ring ring-offset-2", _.length === 0 && "text-muted-foreground", O),
50
52
  children: [/* @__PURE__ */ u("span", {
51
53
  className: "truncate",
52
- children: _.length === 0 ? S ?? k("select.placeholder") : B.join(", ")
54
+ children: _.length === 0 ? S ?? A("select.placeholder") : V.join(", ")
53
55
  }), /* @__PURE__ */ d("div", {
54
56
  className: "flex shrink-0 items-center gap-1",
55
57
  children: [
56
- V > 0 && /* @__PURE__ */ d("span", {
58
+ H > 0 && /* @__PURE__ */ d("span", {
57
59
  className: "rounded-control bg-muted px-1.5 py-0.5 text-xs font-medium text-foreground",
58
- children: ["+", V]
60
+ children: ["+", H]
59
61
  }),
60
62
  _.length > 0 && !E && /* @__PURE__ */ u("span", {
61
63
  role: "button",
@@ -64,23 +66,23 @@ var g = ({ options: g, selected: _, onToggle: v, onClear: y, onSelectAll: b, var
64
66
  e.stopPropagation();
65
67
  },
66
68
  onPointerDown: (e) => {
67
- e.preventDefault(), e.stopPropagation(), U();
69
+ e.preventDefault(), e.stopPropagation(), W();
68
70
  },
69
71
  className: "text-muted-foreground hover:text-foreground",
70
72
  children: /* @__PURE__ */ u(m, { className: "size-4" })
71
73
  }),
72
- /* @__PURE__ */ u(f, { className: e("size-4 opacity-50 shrink-0 transition-transform", M && "rotate-180") })
74
+ /* @__PURE__ */ u(f, { className: e("size-4 opacity-50 shrink-0 transition-transform", N && "rotate-180") })
73
75
  ]
74
76
  })]
75
77
  });
76
78
  return /* @__PURE__ */ d(s, {
77
- open: M,
78
- onOpenChange: H,
79
+ open: N,
80
+ onOpenChange: U,
79
81
  children: [/* @__PURE__ */ u(a, {
80
82
  asChild: !0,
81
- children: G
83
+ children: K
82
84
  }), /* @__PURE__ */ d(o, {
83
- className: e("p-0", P ? "w-72 max-w-[var(--radix-popover-content-available-width)]" : "w-[var(--radix-popover-trigger-width)]"),
85
+ className: e("p-0", F ? "w-72 max-w-[var(--radix-popover-content-available-width)]" : "w-[var(--radix-popover-trigger-width)]"),
84
86
  align: "start",
85
87
  children: [/* @__PURE__ */ d(h, {
86
88
  shouldFilter: !1,
@@ -90,9 +92,9 @@ var g = ({ options: g, selected: _, onToggle: v, onClear: y, onSelectAll: b, var
90
92
  children: /* @__PURE__ */ d("div", {
91
93
  className: "relative",
92
94
  children: [/* @__PURE__ */ u(p, { className: "absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }), /* @__PURE__ */ u(h.Input, {
93
- value: A,
94
- onValueChange: j,
95
- placeholder: T ?? k("search.placeholder"),
95
+ value: j,
96
+ onValueChange: M,
97
+ placeholder: T ?? A("search.placeholder"),
96
98
  className: "w-full rounded-control bg-muted/50 py-1.5 pl-7 pr-2 text-sm text-foreground placeholder:text-muted-foreground outline-none focus:ring-1 focus:ring-ring",
97
99
  autoFocus: !0
98
100
  })]
@@ -103,10 +105,10 @@ var g = ({ options: g, selected: _, onToggle: v, onClear: y, onSelectAll: b, var
103
105
  className: "sr-only"
104
106
  }), /* @__PURE__ */ d(h.List, {
105
107
  className: "flex flex-col gap-0.5 max-h-56 overflow-y-auto overflow-x-hidden p-1.5 scrollbar-thin scrollbar-thumb-rounded scrollbar-thumb-muted-foreground/20 scrollbar-track-transparent [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/20 [&::-webkit-scrollbar-track]:bg-transparent",
106
- children: [F.length === 0 && /* @__PURE__ */ u("p", {
108
+ children: [I.length === 0 && /* @__PURE__ */ u("p", {
107
109
  className: "px-2 py-3 text-center text-xs text-muted-foreground",
108
- children: k("states.noResult")
109
- }), F.map((e) => /* @__PURE__ */ d(h.Item, {
110
+ children: A("states.noResult")
111
+ }), I.map((e) => /* @__PURE__ */ d(h.Item, {
110
112
  value: e.value,
111
113
  disabled: e.disabled,
112
114
  onSelect: () => {
@@ -130,13 +132,13 @@ var g = ({ options: g, selected: _, onToggle: v, onClear: y, onSelectAll: b, var
130
132
  ]
131
133
  }, e.value))]
132
134
  })]
133
- }), I.length > 0 && /* @__PURE__ */ u("div", {
135
+ }), L.length > 0 && /* @__PURE__ */ u("div", {
134
136
  className: "border-t border-border p-1.5",
135
137
  children: /* @__PURE__ */ u("button", {
136
138
  type: "button",
137
- onClick: W,
139
+ onClick: G,
138
140
  className: "w-full rounded-md px-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted transition-colors text-center",
139
- children: k(R ? "filters.deselectAll" : "filters.selectAll")
141
+ children: A(z ? "filters.deselectAll" : "filters.selectAll")
140
142
  })
141
143
  })]
142
144
  })]
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import { r as t, t as n } from "./i18n-d2p0RJo9.js";
3
- import { En as r } from "./ui-rJqnHWNK.js";
4
- import { o as i, s as a } from "./tooltip-CWdde1-y.js";
5
- import { g as o, h as s, m as c, p as l } from "./sheet-4VOGdoiW.js";
6
- import { i as u, l as d, n as f, t as p, u as m } from "./select-CsXmG_sJ.js";
3
+ import { En as r } from "./ui-DVtB9U8H.js";
4
+ import { o as i, s as a } from "./tooltip-Bu3wNhtW.js";
5
+ import { g as o, h as s, m as c, p as l } from "./sheet-DRzg-JWH.js";
6
+ import { i as u, l as d, n as f, t as p, u as m } from "./select-CfhuieLs.js";
7
7
  import * as h from "react";
8
8
  import { useEffect as g, useMemo as _, useRef as v, useState as y } from "react";
9
9
  import { jsx as b, jsxs as x } from "react/jsx-runtime";
@@ -123,22 +123,23 @@ var A = ({ date: n, onDateChange: i, placeholder: o }) => {
123
123
  })]
124
124
  })
125
125
  });
126
- }, N = ({ options: t = [], value: r, onChange: a, onClear: o, searchable: h = !1, onCreate: g, placeholder: v, searchPlaceholder: S, emptyLabel: k, createLabel: A, disabled: j = !1, modal: M = !0, className: N }) => {
127
- let { t: P } = n(), [F, I] = y(!1), [L, R] = y(""), z = r !== void 0 && r !== "", B = _(() => z ? t.find((e) => e.value === r) : void 0, [
128
- z,
126
+ }, N = ({ options: t = [], value: r, onChange: a, onClear: o, searchable: h = !1, onCreate: g, placeholder: v, searchPlaceholder: S, emptyLabel: k, createLabel: A, disabled: j = !1, modal: M = !0, className: N, ...P }) => {
127
+ let { t: F } = n(), [I, L] = y(!1), [R, z] = y(""), B = r !== void 0 && r !== "", V = _(() => B ? t.find((e) => e.value === r) : void 0, [
128
+ B,
129
129
  t,
130
130
  r
131
- ]), V = z ? B?.label ?? r : void 0;
131
+ ]), H = B ? V?.label ?? r : void 0;
132
132
  if (!h) return /* @__PURE__ */ x(p, {
133
133
  value: r ?? "",
134
134
  onValueChange: a,
135
135
  disabled: j,
136
136
  children: [/* @__PURE__ */ b(d, {
137
- className: e(!z && "text-muted-foreground", N),
138
- onClear: o !== void 0 && z && !j ? (e) => {
137
+ ...P,
138
+ className: e(!B && "text-muted-foreground", N),
139
+ onClear: o !== void 0 && B && !j ? (e) => {
139
140
  e.preventDefault(), e.stopPropagation(), o();
140
141
  } : void 0,
141
- children: /* @__PURE__ */ b(m, { placeholder: v ?? P("select.placeholder") })
142
+ children: /* @__PURE__ */ b(m, { placeholder: v ?? F("select.placeholder") })
142
143
  }), /* @__PURE__ */ b(f, { children: t.map((e) => /* @__PURE__ */ b(u, {
143
144
  value: e.value,
144
145
  disabled: e.disabled,
@@ -162,46 +163,49 @@ var A = ({ date: n, onDateChange: i, placeholder: o }) => {
162
163
  })
163
164
  }, e.value)) })]
164
165
  });
165
- let H = L.trim(), U = g !== void 0 && H !== "" && !t.some((e) => e.label.toLowerCase() === H.toLowerCase()), W = (e) => {
166
- I(e), e || R("");
167
- }, G = (e) => {
168
- a(e), W(!1);
166
+ let U = R.trim(), W = g !== void 0 && U !== "" && !t.some((e) => e.label.toLowerCase() === U.toLowerCase()), G = (e) => {
167
+ L(e), e || z("");
168
+ }, K = (e) => {
169
+ a(e), G(!1);
170
+ }, q = () => {
171
+ g?.(U), G(!1);
169
172
  };
170
173
  return /* @__PURE__ */ x(l, {
171
- open: F,
172
- onOpenChange: W,
174
+ open: I,
175
+ onOpenChange: G,
173
176
  modal: M,
174
177
  children: [/* @__PURE__ */ b(s, {
175
178
  asChild: !0,
176
179
  children: /* @__PURE__ */ x("button", {
180
+ ...P,
177
181
  type: "button",
178
182
  role: "combobox",
179
- "aria-expanded": F,
183
+ "aria-expanded": I,
180
184
  disabled: j,
181
- className: e(i, "w-full", "data-[state=open]:ring-2 data-[state=open]:ring-ring data-[state=open]:ring-offset-2", !z && "text-muted-foreground", N),
185
+ className: e(i, "w-full", "data-[state=open]:ring-2 data-[state=open]:ring-ring data-[state=open]:ring-offset-2", !B && "text-muted-foreground", N),
182
186
  children: [/* @__PURE__ */ x("span", {
183
187
  className: "flex items-center truncate",
184
188
  children: [
185
- B?.color && /* @__PURE__ */ b("span", {
189
+ V?.color && /* @__PURE__ */ b("span", {
186
190
  className: "mr-2 size-2.5 shrink-0 rounded-full",
187
- style: { backgroundColor: B.color }
191
+ style: { backgroundColor: V.color }
188
192
  }),
189
193
  /* @__PURE__ */ b("span", {
190
194
  className: "truncate",
191
- children: V ?? v ?? P("select.placeholder")
195
+ children: H ?? v ?? F("select.placeholder")
192
196
  }),
193
- B?.description !== void 0 && /* @__PURE__ */ x("span", {
197
+ V?.description !== void 0 && /* @__PURE__ */ x("span", {
194
198
  className: "ml-1 truncate text-muted-foreground",
195
199
  children: [
196
200
  "(",
197
- B.description,
201
+ V.description,
198
202
  ")"
199
203
  ]
200
204
  })
201
205
  ]
202
206
  }), /* @__PURE__ */ x("div", {
203
207
  className: "flex items-center gap-1",
204
- children: [o && z && !j && /* @__PURE__ */ b("span", {
208
+ children: [o && B && !j && /* @__PURE__ */ b("span", {
205
209
  role: "button",
206
210
  tabIndex: -1,
207
211
  onClick: (e) => {
@@ -212,7 +216,7 @@ var A = ({ date: n, onDateChange: i, placeholder: o }) => {
212
216
  },
213
217
  className: "text-muted-foreground hover:text-foreground",
214
218
  children: /* @__PURE__ */ b(D, { className: "size-4" })
215
- }), /* @__PURE__ */ b(w, { className: e("size-4 shrink-0 opacity-50 transition-transform", F && "rotate-180") })]
219
+ }), /* @__PURE__ */ b(w, { className: e("size-4 shrink-0 opacity-50 transition-transform", I && "rotate-180") })]
216
220
  })]
217
221
  })
218
222
  }), /* @__PURE__ */ b(c, {
@@ -226,9 +230,9 @@ var A = ({ date: n, onDateChange: i, placeholder: o }) => {
226
230
  children: /* @__PURE__ */ x("div", {
227
231
  className: "relative",
228
232
  children: [/* @__PURE__ */ b(E, { className: "absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }), /* @__PURE__ */ b(O.Input, {
229
- value: L,
230
- onValueChange: R,
231
- placeholder: S ?? P("search.placeholder"),
233
+ value: R,
234
+ onValueChange: z,
235
+ placeholder: S ?? F("search.placeholder"),
232
236
  className: "w-full rounded-control bg-muted/50 py-1.5 pl-7 pr-2 text-sm text-foreground placeholder:text-muted-foreground outline-none focus:ring-1 focus:ring-ring",
233
237
  autoFocus: !0
234
238
  })]
@@ -236,16 +240,16 @@ var A = ({ date: n, onDateChange: i, placeholder: o }) => {
236
240
  }), /* @__PURE__ */ x(O.List, {
237
241
  className: "flex flex-col gap-0.5 max-h-56 overflow-y-auto overflow-x-hidden p-1.5 scrollbar-thin scrollbar-thumb-rounded scrollbar-thumb-muted-foreground/20 scrollbar-track-transparent [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/20 [&::-webkit-scrollbar-track]:bg-transparent",
238
242
  children: [
239
- !U && /* @__PURE__ */ b(O.Empty, {
243
+ !W && /* @__PURE__ */ b(O.Empty, {
240
244
  className: "px-2 py-3 text-center text-xs text-muted-foreground",
241
- children: k ?? P("states.noResult")
245
+ children: k ?? F("states.noResult")
242
246
  }),
243
247
  t.map((t) => /* @__PURE__ */ x(O.Item, {
244
248
  value: t.value,
245
249
  keywords: [t.label, t.description ?? ""],
246
250
  disabled: t.disabled,
247
251
  onSelect: () => {
248
- G(t.value);
252
+ K(t.value);
249
253
  },
250
254
  className: "flex min-w-0 items-center gap-2.5 rounded-md px-2 py-2 text-sm cursor-pointer transition-colors data-[selected=true]:bg-muted data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",
251
255
  children: [
@@ -269,16 +273,14 @@ var A = ({ date: n, onDateChange: i, placeholder: o }) => {
269
273
  })
270
274
  ]
271
275
  }, t.value)),
272
- U && /* @__PURE__ */ x(O.Item, {
276
+ W && /* @__PURE__ */ x(O.Item, {
273
277
  forceMount: !0,
274
278
  value: "__create__",
275
- onSelect: () => {
276
- g?.(H), W(!1);
277
- },
279
+ onSelect: q,
278
280
  className: "flex min-w-0 items-center gap-2.5 rounded-md px-2 py-2 text-sm cursor-pointer transition-colors data-[selected=true]:bg-muted",
279
281
  children: [/* @__PURE__ */ b(T, { className: "size-4 shrink-0" }), /* @__PURE__ */ b("span", {
280
282
  className: "truncate",
281
- children: A ? A(H) : P("select.create", { search: H })
283
+ children: A ? A(U) : F("select.create", { search: U })
282
284
  })]
283
285
  })
284
286
  ]
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import { c as t, d as n, f as r, s as i } from "./chart-Dq3AIrue.js";
3
3
  import { t as a } from "./i18n-d2p0RJo9.js";
4
- import "./ui-rJqnHWNK.js";
4
+ import "./ui-DVtB9U8H.js";
5
5
  import { t as o } from "./skeleton-D6Ga4BLw.js";
6
6
  import "react";
7
7
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../../../cards-BB6V8VWw.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../../cards-BFa9EQc6.js";
2
2
  export { r as DashboardCard, e as KpiCard, t as KpiCards, i as MetricCard, n as SkeletonCard, a as SkeletonCards };
@@ -1,9 +1,7 @@
1
- import { buttonVariants } from "../../../components/ui";
2
1
  import { ErrorHttp } from "@krosoft/core/types";
3
- import type { VariantProps } from "class-variance-authority";
2
+ import type { ButtonVariantType } from "../../../types";
4
3
  import React from "react";
5
- /** Dérivé de `buttonVariants` : un variant ajouté au `Button` devient utilisable ici sans rien recopier. */
6
- export type ButtonVariantType = NonNullable<VariantProps<typeof buttonVariants>["variant"]>;
4
+ export type { ButtonVariantType };
7
5
  export type AppDialogSize = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "full";
8
6
  export interface DialogAction {
9
7
  /** Clé de rendu. À défaut, le libellé sert de clé : à renseigner si deux actions partagent le même. */
@@ -58,5 +56,4 @@ interface AppDialogProps {
58
56
  children: React.ReactNode;
59
57
  }
60
58
  export declare function AppDialog({ open, onOpenChange, config, isLoading, error, footer, className, children }: AppDialogProps): React.ReactElement;
61
- export {};
62
59
  //# sourceMappingURL=AppDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/core/dialogs/AppDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,4GAA4G;AAC5G,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAE5F,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAkBvF,MAAM,WAAW,YAAY;IAC3B,uGAAuG;IACvG,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC3B,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,kHAAkH;IAClH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,UAAU,cAAc;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,MAAM,EAAE,eAAe,CAAC;IACxB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,IAAI,CAAC;IACjC,8DAA8D;IAC9D,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,cAAc,GAAG,KAAK,CAAC,YAAY,CA4F3I"}
1
+ {"version":3,"file":"AppDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/core/dialogs/AppDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAkBvF,MAAM,WAAW,YAAY;IAC3B,uGAAuG;IACvG,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC3B,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,kHAAkH;IAClH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,UAAU,cAAc;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,MAAM,EAAE,eAAe,CAAC;IACxB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,IAAI,CAAC;IACjC,8DAA8D;IAC9D,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,cAAc,GAAG,KAAK,CAAC,YAAY,CA+F3I"}
@@ -1,4 +1,4 @@
1
- import { I as e } from "../../../ui-rJqnHWNK.js";
2
- import { A as t, D as n, E as r, F as i, M as a, N as o, O as s, P as c, j as l, k as u } from "../../../sheet-4VOGdoiW.js";
3
- import { n as d, r as f, t as p } from "../../../dialogs-DVHdqXlO.js";
1
+ import { I as e } from "../../../ui-DVtB9U8H.js";
2
+ import { A as t, D as n, E as r, F as i, M as a, N as o, O as s, P as c, j as l, k as u } from "../../../sheet-DRzg-JWH.js";
3
+ import { n as d, r as f, t as p } from "../../../dialogs-D2NqMYEb.js";
4
4
  export { f as AppDialog, p as ConfirmationDialog, r as Dialog, n as DialogClose, s as DialogContent, u as DialogDescription, t as DialogFooter, l as DialogHeader, a as DialogOverlay, o as DialogPortal, c as DialogTitle, i as DialogTrigger, d as FormDialog, e as Progress };
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "../../../tailwind.helper-CJaRYBmL.js";
2
2
  import { t } from "../../../i18n-d2p0RJo9.js";
3
- import { At as n, Pn as r } from "../../../ui-rJqnHWNK.js";
4
- import { s as i } from "../../../tooltip-CWdde1-y.js";
5
- import { a, g as o, l as s, o as c, r as l, t as u, u as d } from "../../../sheet-4VOGdoiW.js";
6
- import { t as f } from "../../../MultiSelect-CXnF_D0R.js";
7
- import { i as p, n as m, r as h, t as g } from "../../../SearchInput-DDcL_q7h.js";
3
+ import { At as n, Pn as r } from "../../../ui-DVtB9U8H.js";
4
+ import { s as i } from "../../../tooltip-Bu3wNhtW.js";
5
+ import { a, g as o, l as s, o as c, r as l, t as u, u as d } from "../../../sheet-DRzg-JWH.js";
6
+ import { t as f } from "../../../MultiSelect-Dmt1iWgB.js";
7
+ import { i as p, n as m, r as h, t as g } from "../../../SearchInput-81oecSco.js";
8
8
  import { useEffect as _, useMemo as v, useState as y } from "react";
9
9
  import { jsx as b, jsxs as x } from "react/jsx-runtime";
10
10
  import { getLocale as S } from "@krosoft/core/helpers";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../GenericForm-CLgO9HuL.js";
1
+ import { t as e } from "../../../GenericForm-BV8n9y1n.js";
2
2
  export { e as GenericForm };
@@ -1,24 +1,24 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../../cards-BB6V8VWw.js";
2
- import { I as o } from "../../ui-rJqnHWNK.js";
3
- import { A as s, D as c, E as l, F as u, M as d, N as f, O as p, P as m, j as h, k as g } from "../../sheet-4VOGdoiW.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../cards-BFa9EQc6.js";
2
+ import { I as o } from "../../ui-DVtB9U8H.js";
3
+ import { A as s, D as c, E as l, F as u, M as d, N as f, O as p, P as m, j as h, k as g } from "../../sheet-DRzg-JWH.js";
4
4
  import { a as _, c as v, i as y, n as b, o as x, r as S, s as C, t as w } from "../../charts-C7MWuqi9.js";
5
5
  import { t as T } from "../../ErrorAlert-0L-Dwqu8.js";
6
- import { n as E, r as D, t as O } from "../../dialogs-DVHdqXlO.js";
7
- import { t as k } from "../../ImageInput-DYGqUTBi.js";
8
- import { t as A } from "../../AppActions-NdUYh2ii.js";
9
- import { t as j } from "../../AppSubTitle-CunCNtvJ.js";
10
- import { t as M } from "../../MultiSelect-CXnF_D0R.js";
11
- import { t as N } from "../../GenericForm-CLgO9HuL.js";
12
- import { i as P, n as F, r as I, t as L } from "../../SearchInput-DDcL_q7h.js";
6
+ import { n as E, r as D, t as O } from "../../dialogs-D2NqMYEb.js";
7
+ import { t as k } from "../../ImageInput-BdOxyamZ.js";
8
+ import { t as A } from "../../AppActions-BMh044Sc.js";
9
+ import { t as j } from "../../AppSubTitle-BfZTloah.js";
10
+ import { t as M } from "../../MultiSelect-Dmt1iWgB.js";
11
+ import { t as N } from "../../GenericForm-BV8n9y1n.js";
12
+ import { i as P, n as F, r as I, t as L } from "../../SearchInput-81oecSco.js";
13
13
  import { ActiveFilters as R, AdvancedFilters as z, FilterField as B, FilterPills as V, FilterPillsGroup as H, TableFilter as U } from "./filters/index.js";
14
14
  import "./forms/index.js";
15
- import { t as W } from "../../inputs-DG8o5DMW.js";
16
- import { t as G } from "../../language-BvPG7v7d.js";
15
+ import { t as W } from "../../inputs-V2h_AcMW.js";
16
+ import { t as G } from "../../language-9nbLYpqG.js";
17
17
  import { t as K } from "../../AppTitle-BZ5jQWbs.js";
18
18
  import { n as q, t as J } from "../../states-C4MdmAbW.js";
19
19
  import { AppPageHeader as Y, KpiCardsLayout as X } from "./layouts/index.js";
20
- import { a as Z, i as Q, n as $, o as ee, r as te, t as ne } from "../../navbar-CU6zaS92.js";
20
+ import { a as Z, i as Q, n as $, o as ee, r as te, t as ne } from "../../navbar-BLdw6QDi.js";
21
21
  import { DataTable as re, JsonTableOutput as ie, TableActions as ae, TableBody as oe, TableBulkActions as se, TableHeader as ce, TablePagination as le, TableSettings as ue } from "./table/index.js";
22
22
  import { AppTabContainer as de, AppTabHeader as fe, AppTabs as pe, AppVerticalTabs as me } from "./tabs/index.js";
23
- import { t as he } from "../../theme-uTxCKUip.js";
23
+ import { t as he } from "../../theme-2eQs7CHF.js";
24
24
  export { R as ActiveFilters, z as AdvancedFilters, A as AppActions, D as AppDialog, Y as AppPageHeader, j as AppSubTitle, de as AppTabContainer, fe as AppTabHeader, pe as AppTabs, K as AppTitle, me as AppVerticalTabs, v as BarChartHorizontal, C as BarChartVertical, _ as CHART_COLORS, y as ChartCard, S as CircularGauge, O as ConfirmationDialog, r as DashboardCard, re as DataTable, P as DatePicker, I as DateRangePicker, l as Dialog, c as DialogClose, p as DialogContent, g as DialogDescription, s as DialogFooter, h as DialogHeader, d as DialogOverlay, f as DialogPortal, m as DialogTitle, u as DialogTrigger, T as ErrorAlert, q as ErrorState, B as FilterField, V as FilterPills, H as FilterPillsGroup, E as FormDialog, N as GenericForm, ee as GlobalSearch, k as ImageInput, ie as JsonTableOutput, e as KpiCard, t as KpiCards, X as KpiCardsLayout, G as LanguageSelector, b as LineChart, J as LoadingState, i as MetricCard, M as MultiSelect, Z as NotificationsBell, w as PieChart, o as Progress, W as RatingInput, L as SearchInput, te as Sidebar, $ as SidebarHeader, Q as SidebarNavItem, F as SingleSelect, n as SkeletonCard, a as SkeletonCards, ae as TableActions, oe as TableBody, se as TableBulkActions, U as TableFilter, ce as TableHeader, le as TablePagination, ue as TableSettings, he as ThemeSelector, ne as Topbar, x as getChartColor };
@@ -4,7 +4,13 @@ export interface MultiSelectOption extends SelectOption {
4
4
  /** Option visible mais non basculable : grisée, ignorée par le clic, la navigation clavier et les actions globales. */
5
5
  disabled?: boolean;
6
6
  }
7
- interface MultiSelectProps<T extends string = string> {
7
+ /**
8
+ * Les props non reconnues (et la `ref`) sont relayées au bouton du trigger : c'est ce qui permet à un
9
+ * `<FormControl>` (Slot) d'y poser `id`, `aria-describedby` et `aria-invalid`, et donc de raccrocher le
10
+ * champ à son libellé et à son message d'erreur. Sous React 19 `ref` est une prop ordinaire, elle voyage
11
+ * donc dans le spread : pas de `forwardRef`, qui effacerait en plus le générique `T` (voir aussi `SingleSelect`).
12
+ */
13
+ interface MultiSelectProps<T extends string = string> extends Omit<React.ComponentProps<"button">, "children" | "disabled" | "onChange" | "onToggle" | "value"> {
8
14
  options: MultiSelectOption[];
9
15
  selected: T[];
10
16
  onToggle: (val: T) => void;
@@ -25,6 +31,6 @@ interface MultiSelectProps<T extends string = string> {
25
31
  maxCount?: number;
26
32
  className?: string;
27
33
  }
28
- export declare const MultiSelect: <T extends string = string>({ options, selected, onToggle, onClear, onSelectAll, variant, placeholder, labelKey, searchable, searchPlaceholder, disabled, maxCount, className, }: MultiSelectProps<T>) => React.ReactElement;
34
+ export declare const MultiSelect: <T extends string = string>({ options, selected, onToggle, onClear, onSelectAll, variant, placeholder, labelKey, searchable, searchPlaceholder, disabled, maxCount, className, ...triggerProps }: MultiSelectProps<T>) => React.ReactElement;
29
35
  export {};
30
36
  //# sourceMappingURL=MultiSelect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/MultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,uHAAuH;IACvH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAClD,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,QAAQ,EAAE,CAAC,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iHAAiH;IACjH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,sJAcpD,gBAAgB,CAAC,CAAC,CAAC,KAAG,KAAK,CAAC,YAsN9B,CAAC"}
1
+ {"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/MultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,uHAAuH;IACvH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,UAAU,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;IAC7J,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,QAAQ,EAAE,CAAC,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iHAAiH;IACjH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,sKAepD,gBAAgB,CAAC,CAAC,CAAC,KAAG,KAAK,CAAC,YAwN9B,CAAC"}
@@ -6,7 +6,13 @@ export interface SingleSelectOption extends SelectOption {
6
6
  /** Option visible mais non sélectionnable : grisée, ignorée par le clic et par la navigation clavier. */
7
7
  disabled?: boolean;
8
8
  }
9
- interface SingleSelectProps {
9
+ /**
10
+ * Les props non reconnues (et la `ref`) sont relayées au bouton du trigger, dans les deux modes : c'est ce
11
+ * qui permet à un `<FormControl>` (Slot) d'y poser `id`, `aria-describedby` et `aria-invalid`, et donc de
12
+ * raccrocher le champ à son libellé et à son message d'erreur. Sous React 19 `ref` est une prop ordinaire,
13
+ * elle voyage donc dans le spread : pas besoin de `forwardRef` (voir aussi `MultiSelect`).
14
+ */
15
+ interface SingleSelectProps extends Omit<React.ComponentProps<"button">, "children" | "disabled" | "onChange" | "value"> {
10
16
  options?: SingleSelectOption[];
11
17
  value: string | undefined;
12
18
  onChange: (value: string) => void;
@@ -27,6 +33,6 @@ interface SingleSelectProps {
27
33
  modal?: boolean;
28
34
  className?: string;
29
35
  }
30
- export declare const SingleSelect: ({ options, value, onChange, onClear, searchable, onCreate, placeholder, searchPlaceholder, emptyLabel, createLabel, disabled, modal, className, }: SingleSelectProps) => React.ReactElement;
36
+ export declare const SingleSelect: ({ options, value, onChange, onClear, searchable, onCreate, placeholder, searchPlaceholder, emptyLabel, createLabel, disabled, modal, className, ...triggerProps }: SingleSelectProps) => React.ReactElement;
31
37
  export {};
32
38
  //# sourceMappingURL=SingleSelect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SingleSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/SingleSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD,oIAAoI;IACpI,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yGAAyG;IACzG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,iBAAiB;IACzB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,gIAAgI;IAChI,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,GAAI,mJAc1B,iBAAiB,KAAG,KAAK,CAAC,YA2K5B,CAAC"}
1
+ {"version":3,"file":"SingleSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/SingleSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD,oIAAoI;IACpI,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yGAAyG;IACzG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,UAAU,iBAAkB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;IACtH,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,gIAAgI;IAChI,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,GAAI,mKAe1B,iBAAiB,KAAG,KAAK,CAAC,YA6K5B,CAAC"}
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../../ImageInput-DYGqUTBi.js";
2
- import { t } from "../../../MultiSelect-CXnF_D0R.js";
3
- import { i as n, n as r, r as i, t as a } from "../../../SearchInput-DDcL_q7h.js";
4
- import { t as o } from "../../../inputs-DG8o5DMW.js";
1
+ import { t as e } from "../../../ImageInput-BdOxyamZ.js";
2
+ import { t } from "../../../MultiSelect-Dmt1iWgB.js";
3
+ import { i as n, n as r, r as i, t as a } from "../../../SearchInput-81oecSco.js";
4
+ import { t as o } from "../../../inputs-V2h_AcMW.js";
5
5
  export { n as DatePicker, i as DateRangePicker, e as ImageInput, t as MultiSelect, o as RatingInput, a as SearchInput, r as SingleSelect };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../language-BvPG7v7d.js";
1
+ import { t as e } from "../../../language-9nbLYpqG.js";
2
2
  export { e as LanguageSelector };
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "../../../i18n-d2p0RJo9.js";
2
- import { i as t, t as n } from "../../../cards-BB6V8VWw.js";
3
- import "../../../ui-rJqnHWNK.js";
4
- import { s as r } from "../../../tooltip-CWdde1-y.js";
5
- import { t as i } from "../../../AppActions-NdUYh2ii.js";
6
- import { t as a } from "../../../AppSubTitle-CunCNtvJ.js";
2
+ import { i as t, t as n } from "../../../cards-BFa9EQc6.js";
3
+ import "../../../ui-DVtB9U8H.js";
4
+ import { s as r } from "../../../tooltip-Bu3wNhtW.js";
5
+ import { t as i } from "../../../AppActions-BMh044Sc.js";
6
+ import { t as a } from "../../../AppSubTitle-BfZTloah.js";
7
7
  import { t as o } from "../../../AppTitle-BZ5jQWbs.js";
8
8
  import { t as s } from "../../../useDocumentTitle-FqaDq5xD.js";
9
9
  import { n as c } from "../../../states-C4MdmAbW.js";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-CU6zaS92.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-BLdw6QDi.js";
2
2
  export { r as GlobalSearch, e as NotificationsBell, i as Sidebar, n as SidebarHeader, t as SidebarNavItem, a as Topbar };
@@ -1,8 +1,8 @@
1
1
  import { ACTIONS_COLUMN_KEY as e, SELECTION_COLUMN_KEY as t, getAlignmentClass as n, getColumnAlignment as r, getFixedCellProps as i } from "../../../helpers/index.js";
2
2
  import { t as a } from "../../../i18n-d2p0RJo9.js";
3
- import { At as o, C as s, D as c, Ft as l, Gt as u, Mt as d, Nt as f, O as p, S as m, T as h, bn as g, jt as _, k as v, v as y } from "../../../ui-rJqnHWNK.js";
4
- import { s as b } from "../../../tooltip-CWdde1-y.js";
5
- import { i as x, l as S, n as C, t as w, u as T } from "../../../select-CsXmG_sJ.js";
3
+ import { At as o, C as s, D as c, Ft as l, Gt as u, Mt as d, Nt as f, O as p, S as m, T as h, bn as g, jt as _, k as v, v as y } from "../../../ui-DVtB9U8H.js";
4
+ import { s as b } from "../../../tooltip-Bu3wNhtW.js";
5
+ import { i as x, l as S, n as C, t as w, u as T } from "../../../select-CfhuieLs.js";
6
6
  import { n as E, t as D } from "../../../useFixedColumns-DPVEdA6b.js";
7
7
  import { n as O, r as k } from "../../../datatable-COQcYUrk.js";
8
8
  import { useMemo as A, useState as j } from "react";
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "../../../tailwind.helper-CJaRYBmL.js";
2
2
  import { c as t, d as n, s as r } from "../../../chart-Dq3AIrue.js";
3
3
  import { t as i } from "../../../i18n-d2p0RJo9.js";
4
- import { _ as a, g as o, h as s, m as c } from "../../../ui-rJqnHWNK.js";
5
- import { d as l } from "../../../sheet-4VOGdoiW.js";
6
- import { i as u, l as d, n as f, t as p, u as m } from "../../../select-CsXmG_sJ.js";
7
- import { t as h } from "../../../AppActions-NdUYh2ii.js";
4
+ import { _ as a, g as o, h as s, m as c } from "../../../ui-DVtB9U8H.js";
5
+ import { d as l } from "../../../sheet-DRzg-JWH.js";
6
+ import { i as u, l as d, n as f, t as p, u as m } from "../../../select-CfhuieLs.js";
7
+ import { t as h } from "../../../AppActions-BMh044Sc.js";
8
8
  import { t as g } from "../../../AppTitle-BZ5jQWbs.js";
9
9
  import { useEffect as _, useRef as v } from "react";
10
10
  import { jsx as y, jsxs as b } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../theme-uTxCKUip.js";
1
+ import { t as e } from "../../../theme-2eQs7CHF.js";
2
2
  export { e as ThemeSelector };
@@ -1,29 +1,29 @@
1
1
  import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../chart-Dq3AIrue.js";
2
- import { a as f, i as p, n as m, o as h, r as g, t as _ } from "../cards-BB6V8VWw.js";
3
- import { $ as v, $t as y, A as b, An as x, At as S, B as C, Bn as w, Bt as T, C as E, Cn as D, Ct as O, D as k, Dn as A, Dt as j, E as M, En as N, Et as P, F, Fn as I, Ft as L, G as R, Gn as z, Gt as B, H as V, Hn as H, Ht as U, I as W, In as G, It as K, J as q, Jn as J, Jt as Y, K as X, Kn as Z, Kt as Q, L as $, Ln as ee, Lt as te, M as ne, Mn as re, Mt as ie, N as ae, Nn as oe, Nt as se, O as ce, On as le, Ot as ue, P as de, Pn as fe, Pt as pe, Q as me, Qn as he, Qt as ge, R as _e, Rn as ve, Rt as ye, S as be, Sn as xe, St as Se, T as Ce, Tn as we, Tt as Te, U as Ee, Un as De, Ut as Oe, V as ke, Vn as Ae, Vt as je, W as Me, Wn as Ne, Wt as Pe, X as Fe, Xn as Ie, Xt as Le, Y as Re, Yn as ze, Yt as Be, Z as Ve, Zn as He, Zt as Ue, _ as We, _n as Ge, _t as Ke, a as qe, an as Je, at as Ye, b as Xe, bn as Ze, bt as Qe, c as $e, cn as et, ct as tt, d as nt, dn as rt, dt as it, en as at, et as ot, f as st, fn as ct, ft as lt, g as ut, gn as dt, gt as ft, h as pt, hn as mt, ht, i as gt, in as _t, it as vt, j as yt, jn as bt, jt as xt, k as St, kn as Ct, kt as wt, l as Tt, ln as Et, lt as Dt, m as Ot, mn as kt, mt as At, n as jt, nn as Mt, nt as Nt, o as Pt, on as Ft, ot as It, p as Lt, pn as Rt, pt as zt, q as Bt, qn as Vt, qt as Ht, r as Ut, rn as Wt, rt as Gt, s as Kt, sn as qt, st as Jt, t as Yt, tn as Xt, tt as Zt, u as Qt, un as $t, ut as en, v as tn, vn as nn, vt as rn, w as an, wn as on, wt as sn, x as cn, xn as ln, xt as un, y as dn, yn as fn, yt as pn, z as mn, zn as hn, zt as gn } from "../ui-rJqnHWNK.js";
2
+ import { a as f, i as p, n as m, o as h, r as g, t as _ } from "../cards-BFa9EQc6.js";
3
+ import { $ as v, $t as y, A as b, An as x, At as S, B as C, Bn as w, Bt as T, C as E, Cn as D, Ct as O, D as k, Dn as A, Dt as j, E as M, En as N, Et as P, F, Fn as I, Ft as L, G as R, Gn as z, Gt as B, H as V, Hn as H, Ht as U, I as W, In as G, It as K, J as q, Jn as J, Jt as Y, K as X, Kn as Z, Kt as Q, L as $, Ln as ee, Lt as te, M as ne, Mn as re, Mt as ie, N as ae, Nn as oe, Nt as se, O as ce, On as le, Ot as ue, P as de, Pn as fe, Pt as pe, Q as me, Qn as he, Qt as ge, R as _e, Rn as ve, Rt as ye, S as be, Sn as xe, St as Se, T as Ce, Tn as we, Tt as Te, U as Ee, Un as De, Ut as Oe, V as ke, Vn as Ae, Vt as je, W as Me, Wn as Ne, Wt as Pe, X as Fe, Xn as Ie, Xt as Le, Y as Re, Yn as ze, Yt as Be, Z as Ve, Zn as He, Zt as Ue, _ as We, _n as Ge, _t as Ke, a as qe, an as Je, at as Ye, b as Xe, bn as Ze, bt as Qe, c as $e, cn as et, ct as tt, d as nt, dn as rt, dt as it, en as at, et as ot, f as st, fn as ct, ft as lt, g as ut, gn as dt, gt as ft, h as pt, hn as mt, ht, i as gt, in as _t, it as vt, j as yt, jn as bt, jt as xt, k as St, kn as Ct, kt as wt, l as Tt, ln as Et, lt as Dt, m as Ot, mn as kt, mt as At, n as jt, nn as Mt, nt as Nt, o as Pt, on as Ft, ot as It, p as Lt, pn as Rt, pt as zt, q as Bt, qn as Vt, qt as Ht, r as Ut, rn as Wt, rt as Gt, s as Kt, sn as qt, st as Jt, t as Yt, tn as Xt, tt as Zt, u as Qt, un as $t, ut as en, v as tn, vn as nn, vt as rn, w as an, wn as on, wt as sn, x as cn, xn as ln, xt as un, y as dn, yn as fn, yt as pn, z as mn, zn as hn, zt as gn } from "../ui-DVtB9U8H.js";
4
4
  import { n as _n, r as vn, t as yn } from "../alert-REQGK9bR.js";
5
- import { a as bn, c as xn, i as Sn, n as Cn, o as wn, r as Tn, s as En, t as Dn } from "../tooltip-CWdde1-y.js";
6
- import { A as On, C as kn, D as An, E as jn, F as Mn, M as Nn, N as Pn, O as Fn, P as In, S as Ln, T as Rn, _ as zn, a as Bn, b as Vn, c as Hn, d as Un, f as Wn, g as Gn, h as Kn, i as qn, j as Jn, k as Yn, l as Xn, m as Zn, n as Qn, o as $n, p as er, r as tr, s as nr, t as rr, u as ir, v as ar, w as or, x as sr, y as cr } from "../sheet-4VOGdoiW.js";
7
- import { a as lr, c as ur, i as dr, l as fr, n as pr, o as mr, r as hr, s as gr, t as _r, u as vr } from "../select-CsXmG_sJ.js";
5
+ import { a as bn, c as xn, i as Sn, n as Cn, o as wn, r as Tn, s as En, t as Dn } from "../tooltip-Bu3wNhtW.js";
6
+ import { A as On, C as kn, D as An, E as jn, F as Mn, M as Nn, N as Pn, O as Fn, P as In, S as Ln, T as Rn, _ as zn, a as Bn, b as Vn, c as Hn, d as Un, f as Wn, g as Gn, h as Kn, i as qn, j as Jn, k as Yn, l as Xn, m as Zn, n as Qn, o as $n, p as er, r as tr, s as nr, t as rr, u as ir, v as ar, w as or, x as sr, y as cr } from "../sheet-DRzg-JWH.js";
7
+ import { a as lr, c as ur, i as dr, l as fr, n as pr, o as mr, r as hr, s as gr, t as _r, u as vr } from "../select-CfhuieLs.js";
8
8
  import { t as yr } from "../skeleton-D6Ga4BLw.js";
9
9
  import { a as br, c as xr, i as Sr, n as Cr, o as wr, r as Tr, s as Er, t as Dr } from "../charts-C7MWuqi9.js";
10
10
  import { t as Or } from "../ErrorAlert-0L-Dwqu8.js";
11
- import { n as kr, r as Ar, t as jr } from "../dialogs-DVHdqXlO.js";
12
- import { t as Mr } from "../ImageInput-DYGqUTBi.js";
13
- import { t as Nr } from "../AppActions-NdUYh2ii.js";
14
- import { t as Pr } from "../AppSubTitle-CunCNtvJ.js";
15
- import { t as Fr } from "../MultiSelect-CXnF_D0R.js";
16
- import { t as Ir } from "../GenericForm-CLgO9HuL.js";
17
- import { i as Lr, n as Rr, r as zr, t as Br } from "../SearchInput-DDcL_q7h.js";
11
+ import { n as kr, r as Ar, t as jr } from "../dialogs-D2NqMYEb.js";
12
+ import { t as Mr } from "../ImageInput-BdOxyamZ.js";
13
+ import { t as Nr } from "../AppActions-BMh044Sc.js";
14
+ import { t as Pr } from "../AppSubTitle-BfZTloah.js";
15
+ import { t as Fr } from "../MultiSelect-Dmt1iWgB.js";
16
+ import { t as Ir } from "../GenericForm-BV8n9y1n.js";
17
+ import { i as Lr, n as Rr, r as zr, t as Br } from "../SearchInput-81oecSco.js";
18
18
  import { ActiveFilters as Vr, AdvancedFilters as Hr, FilterField as Ur, FilterPills as Wr, FilterPillsGroup as Gr, TableFilter as Kr } from "./core/filters/index.js";
19
- import { t as qr } from "../inputs-DG8o5DMW.js";
20
- import { t as Jr } from "../language-BvPG7v7d.js";
19
+ import { t as qr } from "../inputs-V2h_AcMW.js";
20
+ import { t as Jr } from "../language-9nbLYpqG.js";
21
21
  import { t as Yr } from "../AppTitle-BZ5jQWbs.js";
22
22
  import { n as Xr, t as Zr } from "../states-C4MdmAbW.js";
23
23
  import { AppPageHeader as Qr, KpiCardsLayout as $r } from "./core/layouts/index.js";
24
- import { a as ei, i as ti, n as ni, o as ri, r as ii, t as ai } from "../navbar-CU6zaS92.js";
24
+ import { a as ei, i as ti, n as ni, o as ri, r as ii, t as ai } from "../navbar-BLdw6QDi.js";
25
25
  import { DataTable as oi, JsonTableOutput as si, TableActions as ci, TableBody as li, TableBulkActions as ui, TableHeader as di, TablePagination as fi, TableSettings as pi } from "./core/table/index.js";
26
26
  import { AppTabContainer as mi, AppTabHeader as hi, AppTabs as gi, AppVerticalTabs as _i } from "./core/tabs/index.js";
27
- import { t as vi } from "../theme-uTxCKUip.js";
27
+ import { t as vi } from "../theme-2eQs7CHF.js";
28
28
  import "./core/index.js";
29
29
  export { ze as Accordion, Ie as AccordionContent, He as AccordionItem, he as AccordionTrigger, Vr as ActiveFilters, Hr as AdvancedFilters, yn as Alert, _n as AlertDescription, w as AlertDialog, Ae as AlertDialogAction, H as AlertDialogCancel, De as AlertDialogContent, Ne as AlertDialogDescription, z as AlertDialogFooter, Z as AlertDialogHeader, Vt as AlertDialogTitle, J as AlertDialogTrigger, vn as AlertTitle, Nr as AppActions, Ar as AppDialog, Qr as AppPageHeader, Pr as AppSubTitle, mi as AppTabContainer, hi as AppTabHeader, gi as AppTabs, Yr as AppTitle, _i as AppVerticalTabs, hn as AspectRatio, G as Avatar, ee as AvatarFallback, ve as AvatarImage, fe as Badge, xr as BarChartHorizontal, Er as BarChartVertical, A as Breadcrumb, le as BreadcrumbEllipsis, Ct as BreadcrumbItem, x as BreadcrumbLink, bt as BreadcrumbList, re as BreadcrumbPage, oe as BreadcrumbSeparator, En as Button, br as CHART_COLORS, N as Calendar, l as Card, t as CardContent, a as CardDescription, d as CardFooter, n as CardHeader, r as CardTitle, ln as Carousel, xe as CarouselContent, D as CarouselItem, on as CarouselNext, we as CarouselPrevious, Sr as ChartCard, u as ChartContainer, o as ChartLegend, c as ChartLegendContent, i as ChartStyle, e as ChartTooltip, s as ChartTooltipContent, Ze as Checkbox, Tr as CircularGauge, Ge as Collapsible, nn as CollapsibleContent, fn as CollapsibleTrigger, zn as Command, ar as CommandDialog, cr as CommandEmpty, Vn as CommandGroup, sr as CommandInput, Ln as CommandItem, kn as CommandList, or as CommandSeparator, Rn as CommandShortcut, jr as ConfirmationDialog, Mt as ContextMenu, Wt as ContextMenuCheckboxItem, _t as ContextMenuContent, Je as ContextMenuGroup, Ft as ContextMenuItem, qt as ContextMenuLabel, et as ContextMenuPortal, Et as ContextMenuRadioGroup, $t as ContextMenuRadioItem, rt as ContextMenuSeparator, ct as ContextMenuShortcut, Rt as ContextMenuSub, kt as ContextMenuSubContent, mt as ContextMenuSubTrigger, dt as ContextMenuTrigger, h as DashboardCard, oi as DataTable, Lr as DatePicker, zr as DateRangePicker, jn as Dialog, An as DialogClose, Fn as DialogContent, Yn as DialogDescription, On as DialogFooter, Jn as DialogHeader, Nn as DialogOverlay, Pn as DialogPortal, In as DialogTitle, Mn as DialogTrigger, Q as Drawer, Ht as DrawerClose, Y as DrawerContent, Be as DrawerDescription, Le as DrawerFooter, Ue as DrawerHeader, ge as DrawerOverlay, y as DrawerPortal, at as DrawerTitle, Xt as DrawerTrigger, xt as DropdownMenu, ie as DropdownMenuCheckboxItem, se as DropdownMenuContent, pe as DropdownMenuGroup, L as DropdownMenuItem, K as DropdownMenuLabel, te as DropdownMenuPortal, ye as DropdownMenuRadioGroup, gn as DropdownMenuRadioItem, T as DropdownMenuSeparator, je as DropdownMenuShortcut, U as DropdownMenuSub, Oe as DropdownMenuSubContent, Pe as DropdownMenuSubTrigger, B as DropdownMenuTrigger, Or as ErrorAlert, Xr as ErrorState, Ur as FilterField, Wr as FilterPills, Gr as FilterPillsGroup, Se as Form, O as FormControl, sn as FormDescription, kr as FormDialog, Te as FormField, P as FormItem, j as FormLabel, ue as FormMessage, Ir as GenericForm, ri as GlobalSearch, pn as HoverCard, Qe as HoverCardContent, un as HoverCardTrigger, Mr as ImageInput, Gn as Input, ht as InputOTP, ft as InputOTPGroup, Ke as InputOTPSeparator, rn as InputOTPSlot, si as JsonTableOutput, f as KpiCard, p as KpiCards, $r as KpiCardsLayout, S as Label, Jr as LanguageSelector, Cr as LineChart, Zr as LoadingState, v as Menubar, ot as MenubarCheckboxItem, Zt as MenubarContent, Nt as MenubarGroup, Gt as MenubarItem, vt as MenubarLabel, Ye as MenubarMenu, It as MenubarPortal, Jt as MenubarRadioGroup, tt as MenubarRadioItem, Dt as MenubarSeparator, en as MenubarShortcut, it as MenubarSub, lt as MenubarSubContent, zt as MenubarSubTrigger, At as MenubarTrigger, g as MetricCard, Fr as MultiSelect, Me as NavigationMenu, R as NavigationMenuContent, X as NavigationMenuIndicator, Bt as NavigationMenuItem, q as NavigationMenuLink, Re as NavigationMenuList, Fe as NavigationMenuTrigger, Ve as NavigationMenuViewport, ei as NotificationsBell, $ as Pagination, _e as PaginationContent, mn as PaginationEllipsis, C as PaginationItem, ke as PaginationLink, V as PaginationNext, Ee as PaginationPrevious, Dr as PieChart, er as Popover, Zn as PopoverContent, Kn as PopoverTrigger, W as Progress, de as RadioGroup, F as RadioGroupItem, qr as RatingInput, yt as ResizableHandle, ne as ResizablePanel, ae as ResizablePanelGroup, Un as ScrollArea, Wn as ScrollBar, Br as SearchInput, _r as Select, pr as SelectContent, hr as SelectGroup, dr as SelectItem, lr as SelectLabel, mr as SelectScrollDownButton, gr as SelectScrollUpButton, ur as SelectSeparator, fr as SelectTrigger, vr as SelectValue, b as Separator, rr as Sheet, Qn as SheetClose, tr as SheetContent, qn as SheetDescription, Bn as SheetFooter, $n as SheetHeader, nr as SheetOverlay, Hn as SheetPortal, Xn as SheetTitle, ir as SheetTrigger, ii as Sidebar, ni as SidebarHeader, ti as SidebarNavItem, be as SimpleTable, E as SimpleTableBody, an as SimpleTableCaption, Ce as SimpleTableCell, M as SimpleTableFooter, k as SimpleTableHead, ce as SimpleTableHeader, St as SimpleTableRow, Rr as SingleSelect, yr as Skeleton, m as SkeletonCard, _ as SkeletonCards, cn as Slider, dn as Sonner, tn as Switch, ci as TableActions, li as TableBody, ui as TableBulkActions, Kr as TableFilter, di as TableHeader, fi as TablePagination, pi as TableSettings, Ot as Tabs, pt as TabsContent, ut as TabsList, We as TabsTrigger, Lt as Textarea, vi as ThemeSelector, Pt as Toast, Kt as ToastAction, $e as ToastClose, Tt as ToastDescription, Qt as ToastProvider, nt as ToastTitle, st as ToastViewport, qe as Toaster, Ut as Toggle, Yt as ToggleGroup, jt as ToggleGroupItem, Dn as Tooltip, Cn as TooltipContent, Tn as TooltipProvider, Sn as TooltipTrigger, ai as Topbar, I as badgeVariants, xn as buttonVariants, bn as controlBaseClass, wn as controlTriggerClass, wr as getChartColor, me as navigationMenuTriggerStyle, Xe as toast, gt as toggleVariants, wt as useFormField };
@@ -1,8 +1,8 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import * as React from "react";
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "styled" | null | undefined;
5
- size?: "default" | "icon" | "sm" | "lg" | null | undefined;
4
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "brand" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
8
  asChild?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,QAAA,MAAM,cAAc;;;8EA4BnB,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IACrH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,uFAGV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,QAAA,MAAM,cAAc;;;8EA2BnB,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IACrH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,uFAGV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
@@ -6,7 +6,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
6
6
  ref?: React.Ref<HTMLDivElement>;
7
7
  } & {
8
8
  asChild?: boolean;
9
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
9
+ }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
10
10
  label?: string;
11
11
  shouldFilter?: boolean;
12
12
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -48,7 +48,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
48
48
  ref?: React.Ref<HTMLInputElement>;
49
49
  } & {
50
50
  asChild?: boolean;
51
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "onChange" | "value"> & {
51
+ }, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
52
52
  value?: string;
53
53
  onValueChange?: (search: string) => void;
54
54
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -58,7 +58,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
58
58
  ref?: React.Ref<HTMLDivElement>;
59
59
  } & {
60
60
  asChild?: boolean;
61
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
61
+ }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
62
62
  label?: string;
63
63
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
64
64
  declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
@@ -67,14 +67,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
67
67
  ref?: React.Ref<HTMLDivElement>;
68
68
  } & {
69
69
  asChild?: boolean;
70
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
70
+ }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
71
71
  declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
72
72
  children?: React.ReactNode;
73
73
  } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
74
74
  ref?: React.Ref<HTMLDivElement>;
75
75
  } & {
76
76
  asChild?: boolean;
77
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
77
+ }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
78
78
  heading?: React.ReactNode;
79
79
  value?: string;
80
80
  forceMount?: boolean;
@@ -83,7 +83,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
83
83
  ref?: React.Ref<HTMLDivElement>;
84
84
  } & {
85
85
  asChild?: boolean;
86
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
86
+ }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
87
87
  alwaysRender?: boolean;
88
88
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
89
89
  declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
@@ -92,7 +92,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
92
92
  ref?: React.Ref<HTMLDivElement>;
93
93
  } & {
94
94
  asChild?: boolean;
95
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
95
+ }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
96
96
  disabled?: boolean;
97
97
  onSelect?: (value: string) => void;
98
98
  value?: string;
@@ -1,8 +1,8 @@
1
1
  import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../../chart-Dq3AIrue.js";
2
- import { $ as f, $t as p, A as m, An as h, At as g, B as _, Bn as v, Bt as y, C as b, Cn as x, Ct as S, D as C, Dn as w, Dt as T, E, En as D, Et as O, F as k, Fn as A, Ft as j, G as M, Gn as N, Gt as P, H as F, Hn as I, Ht as L, I as R, In as z, It as B, J as V, Jn as H, Jt as U, K as W, Kn as G, Kt as K, L as q, Ln as J, Lt as Y, M as X, Mn as Z, Mt as Q, N as $, Nn as ee, Nt as te, O as ne, On as re, Ot as ie, P as ae, Pn as oe, Pt as se, Q as ce, Qn as le, Qt as ue, R as de, Rn as fe, Rt as pe, S as me, Sn as he, St as ge, T as _e, Tn as ve, Tt as ye, U as be, Un as xe, Ut as Se, V as Ce, Vn as we, Vt as Te, W as Ee, Wn as De, Wt as Oe, X as ke, Xn as Ae, Xt as je, Y as Me, Yn as Ne, Yt as Pe, Z as Fe, Zn as Ie, Zt as Le, _ as Re, _n as ze, _t as Be, a as Ve, an as He, at as Ue, b as We, bn as Ge, bt as Ke, c as qe, cn as Je, ct as Ye, d as Xe, dn as Ze, dt as Qe, en as $e, et, f as tt, fn as nt, ft as rt, g as it, gn as at, gt as ot, h as st, hn as ct, ht as lt, i as ut, in as dt, it as ft, j as pt, jn as mt, jt as ht, k as gt, kn as _t, kt as vt, l as yt, ln as bt, lt as xt, m as St, mn as Ct, mt as wt, n as Tt, nn as Et, nt as Dt, o as Ot, on as kt, ot as At, p as jt, pn as Mt, pt as Nt, q as Pt, qn as Ft, qt as It, r as Lt, rn as Rt, rt as zt, s as Bt, sn as Vt, st as Ht, t as Ut, tn as Wt, tt as Gt, u as Kt, un as qt, ut as Jt, v as Yt, vn as Xt, vt as Zt, w as Qt, wn as $t, wt as en, x as tn, xn as nn, xt as rn, y as an, yn as on, yt as sn, z as cn, zn as ln, zt as un } from "../../ui-rJqnHWNK.js";
2
+ import { $ as f, $t as p, A as m, An as h, At as g, B as _, Bn as v, Bt as y, C as b, Cn as x, Ct as S, D as C, Dn as w, Dt as T, E, En as D, Et as O, F as k, Fn as A, Ft as j, G as M, Gn as N, Gt as P, H as F, Hn as I, Ht as L, I as R, In as z, It as B, J as V, Jn as H, Jt as U, K as W, Kn as G, Kt as K, L as q, Ln as J, Lt as Y, M as X, Mn as Z, Mt as Q, N as $, Nn as ee, Nt as te, O as ne, On as re, Ot as ie, P as ae, Pn as oe, Pt as se, Q as ce, Qn as le, Qt as ue, R as de, Rn as fe, Rt as pe, S as me, Sn as he, St as ge, T as _e, Tn as ve, Tt as ye, U as be, Un as xe, Ut as Se, V as Ce, Vn as we, Vt as Te, W as Ee, Wn as De, Wt as Oe, X as ke, Xn as Ae, Xt as je, Y as Me, Yn as Ne, Yt as Pe, Z as Fe, Zn as Ie, Zt as Le, _ as Re, _n as ze, _t as Be, a as Ve, an as He, at as Ue, b as We, bn as Ge, bt as Ke, c as qe, cn as Je, ct as Ye, d as Xe, dn as Ze, dt as Qe, en as $e, et, f as tt, fn as nt, ft as rt, g as it, gn as at, gt as ot, h as st, hn as ct, ht as lt, i as ut, in as dt, it as ft, j as pt, jn as mt, jt as ht, k as gt, kn as _t, kt as vt, l as yt, ln as bt, lt as xt, m as St, mn as Ct, mt as wt, n as Tt, nn as Et, nt as Dt, o as Ot, on as kt, ot as At, p as jt, pn as Mt, pt as Nt, q as Pt, qn as Ft, qt as It, r as Lt, rn as Rt, rt as zt, s as Bt, sn as Vt, st as Ht, t as Ut, tn as Wt, tt as Gt, u as Kt, un as qt, ut as Jt, v as Yt, vn as Xt, vt as Zt, w as Qt, wn as $t, wt as en, x as tn, xn as nn, xt as rn, y as an, yn as on, yt as sn, z as cn, zn as ln, zt as un } from "../../ui-DVtB9U8H.js";
3
3
  import { n as dn, r as fn, t as pn } from "../../alert-REQGK9bR.js";
4
- import { a as mn, c as hn, i as gn, n as _n, o as vn, r as yn, s as bn, t as xn } from "../../tooltip-CWdde1-y.js";
5
- import { A as Sn, C as Cn, D as wn, E as Tn, F as En, M as Dn, N as On, O as kn, P as An, S as jn, T as Mn, _ as Nn, a as Pn, b as Fn, c as In, d as Ln, f as Rn, g as zn, h as Bn, i as Vn, j as Hn, k as Un, l as Wn, m as Gn, n as Kn, o as qn, p as Jn, r as Yn, s as Xn, t as Zn, u as Qn, v as $n, w as er, x as tr, y as nr } from "../../sheet-4VOGdoiW.js";
6
- import { a as rr, c as ir, i as ar, l as or, n as sr, o as cr, r as lr, s as ur, t as dr, u as fr } from "../../select-CsXmG_sJ.js";
4
+ import { a as mn, c as hn, i as gn, n as _n, o as vn, r as yn, s as bn, t as xn } from "../../tooltip-Bu3wNhtW.js";
5
+ import { A as Sn, C as Cn, D as wn, E as Tn, F as En, M as Dn, N as On, O as kn, P as An, S as jn, T as Mn, _ as Nn, a as Pn, b as Fn, c as In, d as Ln, f as Rn, g as zn, h as Bn, i as Vn, j as Hn, k as Un, l as Wn, m as Gn, n as Kn, o as qn, p as Jn, r as Yn, s as Xn, t as Zn, u as Qn, v as $n, w as er, x as tr, y as nr } from "../../sheet-DRzg-JWH.js";
6
+ import { a as rr, c as ir, i as ar, l as or, n as sr, o as cr, r as lr, s as ur, t as dr, u as fr } from "../../select-CfhuieLs.js";
7
7
  import { t as pr } from "../../skeleton-D6Ga4BLw.js";
8
8
  export { Ne as Accordion, Ae as AccordionContent, Ie as AccordionItem, le as AccordionTrigger, pn as Alert, dn as AlertDescription, v as AlertDialog, we as AlertDialogAction, I as AlertDialogCancel, xe as AlertDialogContent, De as AlertDialogDescription, N as AlertDialogFooter, G as AlertDialogHeader, Ft as AlertDialogTitle, H as AlertDialogTrigger, fn as AlertTitle, ln as AspectRatio, z as Avatar, J as AvatarFallback, fe as AvatarImage, oe as Badge, w as Breadcrumb, re as BreadcrumbEllipsis, _t as BreadcrumbItem, h as BreadcrumbLink, mt as BreadcrumbList, Z as BreadcrumbPage, ee as BreadcrumbSeparator, bn as Button, D as Calendar, l as Card, t as CardContent, a as CardDescription, d as CardFooter, n as CardHeader, r as CardTitle, nn as Carousel, he as CarouselContent, x as CarouselItem, $t as CarouselNext, ve as CarouselPrevious, u as ChartContainer, o as ChartLegend, c as ChartLegendContent, i as ChartStyle, e as ChartTooltip, s as ChartTooltipContent, Ge as Checkbox, ze as Collapsible, Xt as CollapsibleContent, on as CollapsibleTrigger, Nn as Command, $n as CommandDialog, nr as CommandEmpty, Fn as CommandGroup, tr as CommandInput, jn as CommandItem, Cn as CommandList, er as CommandSeparator, Mn as CommandShortcut, Et as ContextMenu, Rt as ContextMenuCheckboxItem, dt as ContextMenuContent, He as ContextMenuGroup, kt as ContextMenuItem, Vt as ContextMenuLabel, Je as ContextMenuPortal, bt as ContextMenuRadioGroup, qt as ContextMenuRadioItem, Ze as ContextMenuSeparator, nt as ContextMenuShortcut, Mt as ContextMenuSub, Ct as ContextMenuSubContent, ct as ContextMenuSubTrigger, at as ContextMenuTrigger, Tn as Dialog, wn as DialogClose, kn as DialogContent, Un as DialogDescription, Sn as DialogFooter, Hn as DialogHeader, Dn as DialogOverlay, On as DialogPortal, An as DialogTitle, En as DialogTrigger, K as Drawer, It as DrawerClose, U as DrawerContent, Pe as DrawerDescription, je as DrawerFooter, Le as DrawerHeader, ue as DrawerOverlay, p as DrawerPortal, $e as DrawerTitle, Wt as DrawerTrigger, ht as DropdownMenu, Q as DropdownMenuCheckboxItem, te as DropdownMenuContent, se as DropdownMenuGroup, j as DropdownMenuItem, B as DropdownMenuLabel, Y as DropdownMenuPortal, pe as DropdownMenuRadioGroup, un as DropdownMenuRadioItem, y as DropdownMenuSeparator, Te as DropdownMenuShortcut, L as DropdownMenuSub, Se as DropdownMenuSubContent, Oe as DropdownMenuSubTrigger, P as DropdownMenuTrigger, ge as Form, S as FormControl, en as FormDescription, ye as FormField, O as FormItem, T as FormLabel, ie as FormMessage, sn as HoverCard, Ke as HoverCardContent, rn as HoverCardTrigger, zn as Input, lt as InputOTP, ot as InputOTPGroup, Be as InputOTPSeparator, Zt as InputOTPSlot, g as Label, f as Menubar, et as MenubarCheckboxItem, Gt as MenubarContent, Dt as MenubarGroup, zt as MenubarItem, ft as MenubarLabel, Ue as MenubarMenu, At as MenubarPortal, Ht as MenubarRadioGroup, Ye as MenubarRadioItem, xt as MenubarSeparator, Jt as MenubarShortcut, Qe as MenubarSub, rt as MenubarSubContent, Nt as MenubarSubTrigger, wt as MenubarTrigger, Ee as NavigationMenu, M as NavigationMenuContent, W as NavigationMenuIndicator, Pt as NavigationMenuItem, V as NavigationMenuLink, Me as NavigationMenuList, ke as NavigationMenuTrigger, Fe as NavigationMenuViewport, q as Pagination, de as PaginationContent, cn as PaginationEllipsis, _ as PaginationItem, Ce as PaginationLink, F as PaginationNext, be as PaginationPrevious, Jn as Popover, Gn as PopoverContent, Bn as PopoverTrigger, R as Progress, ae as RadioGroup, k as RadioGroupItem, pt as ResizableHandle, X as ResizablePanel, $ as ResizablePanelGroup, Ln as ScrollArea, Rn as ScrollBar, dr as Select, sr as SelectContent, lr as SelectGroup, ar as SelectItem, rr as SelectLabel, cr as SelectScrollDownButton, ur as SelectScrollUpButton, ir as SelectSeparator, or as SelectTrigger, fr as SelectValue, m as Separator, Zn as Sheet, Kn as SheetClose, Yn as SheetContent, Vn as SheetDescription, Pn as SheetFooter, qn as SheetHeader, Xn as SheetOverlay, In as SheetPortal, Wn as SheetTitle, Qn as SheetTrigger, me as SimpleTable, b as SimpleTableBody, Qt as SimpleTableCaption, _e as SimpleTableCell, E as SimpleTableFooter, C as SimpleTableHead, ne as SimpleTableHeader, gt as SimpleTableRow, pr as Skeleton, tn as Slider, an as Sonner, Yt as Switch, St as Tabs, st as TabsContent, it as TabsList, Re as TabsTrigger, jt as Textarea, Ot as Toast, Bt as ToastAction, qe as ToastClose, yt as ToastDescription, Kt as ToastProvider, Xe as ToastTitle, tt as ToastViewport, Ve as Toaster, Lt as Toggle, Ut as ToggleGroup, Tt as ToggleGroupItem, xn as Tooltip, _n as TooltipContent, yn as TooltipProvider, gn as TooltipTrigger, A as badgeVariants, hn as buttonVariants, mn as controlBaseClass, vn as controlTriggerClass, ce as navigationMenuTriggerStyle, We as toast, ut as toggleVariants, vt as useFormField };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "nonce" | "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
2
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "nonce" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
3
3
  value?: string;
4
4
  onChange?: (newValue: string) => unknown;
5
5
  maxLength: number;
@@ -13,7 +13,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
13
13
  } & {
14
14
  render: (props: import("input-otp").RenderProps) => React.ReactNode;
15
15
  children?: never;
16
- } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "nonce" | "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
16
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "nonce" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
17
17
  value?: string;
18
18
  onChange?: (newValue: string) => unknown;
19
19
  maxLength: number;
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import { t } from "./i18n-d2p0RJo9.js";
3
- import { Bn as n, Gn as r, Hn as i, I as a, Kn as o, Un as s, Wn as c, qn as l } from "./ui-rJqnHWNK.js";
4
- import { s as u } from "./tooltip-CWdde1-y.js";
5
- import { E as d, O as f, P as p, j as m, k as h } from "./sheet-4VOGdoiW.js";
3
+ import { Bn as n, Gn as r, Hn as i, I as a, Kn as o, Un as s, Wn as c, qn as l } from "./ui-DVtB9U8H.js";
4
+ import { s as u } from "./tooltip-Bu3wNhtW.js";
5
+ import { E as d, O as f, P as p, j as m, k as h } from "./sheet-DRzg-JWH.js";
6
6
  import { t as g } from "./ErrorAlert-0L-Dwqu8.js";
7
- import { t as _ } from "./GenericForm-CLgO9HuL.js";
7
+ import { t as _ } from "./GenericForm-BV8n9y1n.js";
8
8
  import { useEffect as v, useId as y, useState as b } from "react";
9
9
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
10
10
  import { Pen as w, Save as T, X as E } from "lucide-react";
@@ -27,7 +27,7 @@ function O({ open: n, onOpenChange: r, config: i, isLoading: o, error: s, footer
27
27
  open: n,
28
28
  onOpenChange: M,
29
29
  children: /* @__PURE__ */ C(f, {
30
- className: e("max-h-[100dvh] sm:max-h-[90vh] border-0 shadow-2xl p-0 flex flex-col overflow-hidden", "[&>button]:text-brand-foreground [&>button]:focus:ring-brand-foreground", A && "[&>button]:pointer-events-none [&>button]:opacity-40", T ?? D[w], l),
30
+ 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", T ?? D[w], l),
31
31
  children: [
32
32
  A ? /* @__PURE__ */ S("div", {
33
33
  className: "absolute top-0 left-0 right-0 z-10",
@@ -37,15 +37,15 @@ function O({ open: n, onOpenChange: r, config: i, isLoading: o, error: s, footer
37
37
  })
38
38
  }) : null,
39
39
  /* @__PURE__ */ C(m, {
40
- className: e("bg-gradient-to-r from-brand-from to-brand-to p-4 sm:p-6 pr-12 sm:pr-12 sm:rounded-t-surface shrink-0", O),
40
+ 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),
41
41
  children: [/* @__PURE__ */ C(p, {
42
- className: "text-xl sm:text-2xl font-bold flex items-center gap-2 text-brand-foreground",
42
+ className: "text-xl sm:text-2xl font-bold flex items-center gap-2 text-dialog-header-foreground",
43
43
  children: [x === void 0 ? null : /* @__PURE__ */ S("div", {
44
- className: "p-2 bg-brand-foreground/20 rounded-control",
45
- children: /* @__PURE__ */ S(x, { className: "size-4 text-brand-foreground" })
44
+ className: "p-2 bg-dialog-header-foreground/20 rounded-control",
45
+ children: /* @__PURE__ */ S(x, { className: "size-4 text-dialog-header-foreground" })
46
46
  }), j(y)]
47
47
  }), b !== void 0 && b !== "" ? /* @__PURE__ */ S(h, {
48
- className: "text-brand-foreground/80 text-base",
48
+ className: "text-dialog-header-foreground/80 text-base",
49
49
  children: j(b)
50
50
  }) : null]
51
51
  }),
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import "./ImageInput-DYGqUTBi.js";
3
- import "./MultiSelect-CXnF_D0R.js";
4
- import "./SearchInput-DDcL_q7h.js";
2
+ import "./ImageInput-BdOxyamZ.js";
3
+ import "./MultiSelect-Dmt1iWgB.js";
4
+ import "./SearchInput-81oecSco.js";
5
5
  import { jsx as t } from "react/jsx-runtime";
6
6
  import { Heart as n, Star as r } from "lucide-react";
7
7
  //#region src/components/core/inputs/RatingInput.tsx
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./i18n-d2p0RJo9.js";
2
- import { i as t, n, r, s as i, t as a } from "./tooltip-CWdde1-y.js";
3
- import { i as o, l as s, n as c, t as l, u } from "./select-CsXmG_sJ.js";
2
+ import { i as t, n, r, s as i, t as a } from "./tooltip-Bu3wNhtW.js";
3
+ import { i as o, l as s, n as c, t as l, u } from "./select-CfhuieLs.js";
4
4
  import { t as d } from "./useLanguage-BVUtoDnh.js";
5
5
  import "react";
6
6
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import { t } from "./i18n-d2p0RJo9.js";
3
- import { i as n, n as r, r as i, s as a, t as o } from "./tooltip-CWdde1-y.js";
4
- import { C as s, S as c, b as l, d as u, g as d, h as f, i as p, l as m, m as h, p as g, r as _, t as v, v as y, x as b, y as x } from "./sheet-4VOGdoiW.js";
3
+ import { i as n, n as r, r as i, s as a, t as o } from "./tooltip-Bu3wNhtW.js";
4
+ import { C as s, S as c, b as l, d as u, g as d, h as f, i as p, l as m, m as h, p as g, r as _, t as v, v as y, x as b, y as x } from "./sheet-DRzg-JWH.js";
5
5
  import { t as S } from "./skeleton-D6Ga4BLw.js";
6
6
  import { c as C } from "./behavior-CFsFoY50.js";
7
7
  import "./hooks/index.js";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import { o as t } from "./tooltip-CWdde1-y.js";
2
+ import { o as t } from "./tooltip-Bu3wNhtW.js";
3
3
  import * as n from "react";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  import { CheckIcon as a, ChevronDownIcon as o, ChevronUpIcon as s, XIcon as c } from "lucide-react";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import "./helpers/index.js";
3
3
  import { t } from "./i18n-d2p0RJo9.js";
4
- import { a as n } from "./tooltip-CWdde1-y.js";
4
+ import { a as n } from "./tooltip-Bu3wNhtW.js";
5
5
  import * as r from "react";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
7
  import { SearchIcon as o, X as s } from "lucide-react";
@@ -87,6 +87,11 @@ declare const krosoftPreset: {
87
87
  to: string;
88
88
  foreground: string;
89
89
  };
90
+ "dialog-header": {
91
+ from: string;
92
+ to: string;
93
+ foreground: string;
94
+ };
90
95
  success: {
91
96
  DEFAULT: string;
92
97
  foreground: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tailwind/index.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,UAAiD,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4LQ,CAAC;AAE5B,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tailwind/index.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,UAAiD,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuMQ,CAAC;AAE5B,eAAe,aAAa,CAAC"}
@@ -96,6 +96,11 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr
96
96
  to: "hsl(var(--k-brand-to))",
97
97
  foreground: "hsl(var(--k-brand-foreground))"
98
98
  },
99
+ "dialog-header": {
100
+ from: "hsl(var(--k-dialog-header-from, var(--k-brand-from)))",
101
+ to: "hsl(var(--k-dialog-header-to, var(--k-brand-to)))",
102
+ foreground: "hsl(var(--k-dialog-header-foreground, var(--k-brand-foreground)))"
103
+ },
99
104
  success: {
100
105
  DEFAULT: "hsl(var(--k-success))",
101
106
  foreground: "hsl(var(--k-success-foreground))"
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./i18n-d2p0RJo9.js";
2
- import { i as t, n, r, s as i, t as a } from "./tooltip-CWdde1-y.js";
3
- import { i as o, l as s, n as c, t as l, u } from "./select-CsXmG_sJ.js";
2
+ import { i as t, n, r, s as i, t as a } from "./tooltip-Bu3wNhtW.js";
3
+ import { i as o, l as s, n as c, t as l, u } from "./select-CfhuieLs.js";
4
4
  import { t as d } from "./useTheme-CNx4iolb.js";
5
5
  import "react";
6
6
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -14,7 +14,7 @@ var o = r("inline-flex items-center justify-center gap-2 whitespace-nowrap round
14
14
  secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
15
15
  ghost: "hover:bg-accent hover:text-accent-foreground",
16
16
  link: "text-primary underline-offset-4 hover:underline",
17
- styled: "bg-gradient-to-r from-brand-from to-brand-to hover:from-brand-from/90 hover:to-brand-to/90 text-brand-foreground shadow-lg shadow-brand-to/25 px-6 h-12"
17
+ brand: "bg-gradient-to-r from-brand-from to-brand-to hover:from-brand-from/90 hover:to-brand-to/90 text-brand-foreground shadow-lg shadow-brand-to/25"
18
18
  },
19
19
  size: {
20
20
  default: "h-10 px-4 py-2",
@@ -1,2 +1,10 @@
1
- export type ButtonVariantType = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "styled";
1
+ import type { buttonVariants } from "../components/ui/button";
2
+ import type { VariantProps } from "class-variance-authority";
3
+ /**
4
+ * Variants du `Button`, dérivés de `buttonVariants` : un variant ajouté au composant
5
+ * devient utilisable partout où ce type est attendu, sans recopie à tenir à jour.
6
+ *
7
+ * L'import est effacé à la compilation (`import type`) : aucune dépendance de `types` vers `components` à l'exécution.
8
+ */
9
+ export type ButtonVariantType = NonNullable<VariantProps<typeof buttonVariants>["variant"]>;
2
10
  //# sourceMappingURL=ButtonVariantType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonVariantType.d.ts","sourceRoot":"","sources":["../../src/types/ButtonVariantType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"ButtonVariantType.d.ts","sourceRoot":"","sources":["../../src/types/ButtonVariantType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC"}
@@ -2,9 +2,9 @@ import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import "./helpers/index.js";
3
3
  import "./chart-Dq3AIrue.js";
4
4
  import "./alert-REQGK9bR.js";
5
- import { c as t, s as n } from "./tooltip-CWdde1-y.js";
6
- import "./sheet-4VOGdoiW.js";
7
- import "./select-CsXmG_sJ.js";
5
+ import { c as t, s as n } from "./tooltip-Bu3wNhtW.js";
6
+ import "./sheet-DRzg-JWH.js";
7
+ import "./select-CfhuieLs.js";
8
8
  import "./skeleton-D6Ga4BLw.js";
9
9
  import { t as r } from "./useScrollFade-D9kqJBDh.js";
10
10
  import { n as i } from "./useToast-UeDRLovh.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krosoft/react",
3
- "version": "0.0.295",
3
+ "version": "0.0.297",
4
4
  "description": "Krosoft shared React package",
5
5
  "type": "module",
6
6
  "scripts": {