@krosoft/react 0.0.232 → 0.0.233

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 (55) hide show
  1. package/dist/{AppActions-BG2sgghh.js → AppActions-BFwztl-1.js} +2 -2
  2. package/dist/{AppSubTitle-C3K23xXb.js → AppSubTitle-BTN0YAc7.js} +1 -1
  3. package/dist/{AppVerticalTabs-B05oTb_4.js → AppVerticalTabs-B7XXtAVj.js} +19 -18
  4. package/dist/{ConfirmationDialog-JR14pbWt.js → ConfirmationDialog-Dj4WdnHg.js} +5 -5
  5. package/dist/{DataTable-BHcadDqz.js → DataTable-CjrR27Di.js} +3 -3
  6. package/dist/{ErrorAlert-BZGt1hH3.js → ErrorAlert-B99Xb_Hg.js} +1 -1
  7. package/dist/{ErrorState-0Op-bIn7.js → ErrorState-CkeS_IBT.js} +1 -1
  8. package/dist/{GenericForm-C6iW17Kx.js → GenericForm-CydibLHU.js} +6 -6
  9. package/dist/{ImageInput-XRiPLRM6.js → ImageInput-DoOOvvth.js} +3 -3
  10. package/dist/{KpiCardsLayout-Be1LHbN7.js → KpiCardsLayout-Ca6otKVw.js} +5 -5
  11. package/dist/{LanguageSelector-C3WSlVQx.js → LanguageSelector-D5Ly1SFC.js} +1 -1
  12. package/dist/{MultiSelect-DCocjZB4.js → MultiSelect-DbH7LrsD.js} +3 -3
  13. package/dist/{PieChart-Cf6q_Pxe.js → PieChart-uozNJtEx.js} +1 -1
  14. package/dist/{SearchInput-rza2llpC.js → SearchInput-DIZ5Yt6L.js} +4 -4
  15. package/dist/{SkeletonCards-vsneHkXf.js → SkeletonCards-B9C4cNMr.js} +2 -2
  16. package/dist/{TableFilter-CBNO2K6p.js → TableFilter-CmEVF5Bo.js} +25 -25
  17. package/dist/{ThemeSelector-J-ZsBnI8.js → ThemeSelector-DKhn02V2.js} +2 -2
  18. package/dist/Topbar-CPWjqOBF.js +429 -0
  19. package/dist/components/core/cards/index.js +1 -1
  20. package/dist/components/core/charts/index.js +1 -1
  21. package/dist/components/core/dialogs/index.js +3 -3
  22. package/dist/components/core/filters/index.js +1 -1
  23. package/dist/components/core/forms/index.js +1 -1
  24. package/dist/components/core/index.js +52 -51
  25. package/dist/components/core/inputs/index.js +3 -3
  26. package/dist/components/core/language/index.js +1 -1
  27. package/dist/components/core/layouts/index.js +3 -3
  28. package/dist/components/core/navbar/NotificationsBell.d.ts +64 -0
  29. package/dist/components/core/navbar/NotificationsBell.d.ts.map +1 -0
  30. package/dist/components/core/navbar/index.d.ts +2 -0
  31. package/dist/components/core/navbar/index.d.ts.map +1 -1
  32. package/dist/components/core/navbar/index.js +5 -4
  33. package/dist/components/core/states/index.js +2 -2
  34. package/dist/components/core/table/index.js +1 -1
  35. package/dist/components/core/tabs/index.js +1 -1
  36. package/dist/components/core/theme/index.js +1 -1
  37. package/dist/components/index.js +236 -235
  38. package/dist/components/ui/index.js +104 -104
  39. package/dist/hooks/behavior/index.js +1 -1
  40. package/dist/hooks/index.js +2 -2
  41. package/dist/hooks/ui/index.js +1 -1
  42. package/dist/i18n/index.js +2 -2
  43. package/dist/i18n/krosoftLocales.d.ts +14 -0
  44. package/dist/i18n/krosoftLocales.d.ts.map +1 -1
  45. package/dist/sheet-XYI-ezvY.js +292 -0
  46. package/dist/{toaster-B1J0puB_.js → toaster-CyzB1m5z.js} +26 -26
  47. package/dist/{toggle-group-DLLrEwv2.js → toggle-group-iZqnrTj7.js} +519 -566
  48. package/dist/{useDateFnsLocale-gHocxHFa.js → useDateFnsLocale-D6VExZ8U.js} +1 -1
  49. package/dist/useKrosoftTranslation-BTp46G94.js +47 -0
  50. package/dist/{usePage-CLeciGbD.js → usePage-BQm6tdJD.js} +1 -1
  51. package/dist/{useTheme-Bs43Wf48.js → useTheme-DS6ZjdzM.js} +1 -1
  52. package/package.json +1 -1
  53. package/dist/Topbar-Dkgmpwp8.js +0 -319
  54. package/dist/sheet-DUrRR7MT.js +0 -245
  55. package/dist/useKrosoftTranslation-DRD49kc-.js +0 -45
@@ -0,0 +1,64 @@
1
+ import * as React from "react";
2
+ export interface NotificationItem {
3
+ /** Identifiant stable de l'entrée : sert de clé React et de repère aux callbacks. */
4
+ key: string;
5
+ title: string;
6
+ /** Corps du message, sur une seconde ligne. */
7
+ description?: string;
8
+ /**
9
+ * Horodatage déjà mis en forme par l'application : le formatage dépend de la locale et du
10
+ * fuseau du projet, le composant ne fait que l'afficher.
11
+ */
12
+ date?: string;
13
+ /** Une entrée non lue est mise en avant et compte dans la pastille. */
14
+ read?: boolean;
15
+ icon?: React.ElementType;
16
+ /**
17
+ * Classes de la pastille d'icône : fond et couleur du glyphe, qui hérite de `currentColor`
18
+ * — par exemple `"bg-blue-500/10 text-blue-500"`. Sans valeur, la pastille est neutre.
19
+ */
20
+ iconClassName?: string;
21
+ /** Chemin de destination, laissé à la charge de l'appelant dans `onSelect`. */
22
+ path?: string;
23
+ }
24
+ export interface NotificationsBellProps {
25
+ /** Entrées déjà ordonnées par l'appelant, la plus récente en premier. */
26
+ items: NotificationItem[];
27
+ /** Clic sur une entrée : à l'appelant d'ouvrir la page concernée et de la marquer comme lue. */
28
+ onSelect?: (item: NotificationItem) => void;
29
+ /** Sans ce callback, l'action « tout marquer comme lu » n'est pas proposée. */
30
+ onMarkAllAsRead?: () => void;
31
+ /** Sans ce callback, aucune entrée n'affiche de bouton de suppression. */
32
+ onRemove?: (item: NotificationItem) => void;
33
+ loading?: boolean;
34
+ /**
35
+ * Compteur de la pastille. Par défaut, le nombre d'entrées non lues — à renseigner quand la
36
+ * liste est tronquée côté application et que le total réel est plus grand.
37
+ */
38
+ unreadCount?: number;
39
+ /** Au-delà, le compteur s'affiche « 9+ ». */
40
+ maxBadgeCount?: number;
41
+ /** Mode contrôlé : sans ces props, le panneau gère son ouverture lui-même. */
42
+ open?: boolean;
43
+ onOpenChange?: (open: boolean) => void;
44
+ triggerLabel?: string;
45
+ title?: string;
46
+ emptyLabel?: string;
47
+ loadingLabel?: string;
48
+ markAllAsReadLabel?: string;
49
+ removeLabel?: string;
50
+ className?: string;
51
+ /** Classes du panneau : sa largeur par défaut convient rarement à tous les projets. */
52
+ contentClassName?: string;
53
+ /** Classes de la pastille de comptage, pour l'accorder à la charte de l'application. */
54
+ badgeClassName?: string;
55
+ }
56
+ /**
57
+ * Cloche de notifications : pastille de comptage et panneau listant les messages reçus.
58
+ *
59
+ * Purement présentationnel — ni chargement, ni persistance, ni navigation : l'application fournit
60
+ * les entrées et décide de ce que fait un clic. C'est ce qui lui permet de servir aussi bien un
61
+ * historique stocké en base qu'une liste tenue en mémoire.
62
+ */
63
+ export declare const NotificationsBell: ({ items, onSelect, onMarkAllAsRead, onRemove, loading, unreadCount, maxBadgeCount, open, onOpenChange, triggerLabel, title, emptyLabel, loadingLabel, markAllAsReadLabel, removeLabel, className, contentClassName, badgeClassName, }: NotificationsBellProps) => React.ReactElement;
64
+ //# sourceMappingURL=NotificationsBell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationsBell.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/NotificationsBell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,gBAAgB;IAC/B,qFAAqF;IACrF,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,yEAAyE;IACzE,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAE1B,gGAAgG;IAChG,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC5C,+EAA+E;IAC/E,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAE5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAID;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,uOAmB/B,sBAAsB,KAAG,KAAK,CAAC,YAyHjC,CAAC"}
@@ -1,5 +1,7 @@
1
1
  export { GlobalSearch } from "./GlobalSearch";
2
2
  export type { GlobalSearchProps, GlobalSearchItem, GlobalSearchGroup } from "./GlobalSearch";
3
+ export { NotificationsBell } from "./NotificationsBell";
4
+ export type { NotificationsBellProps, NotificationItem } from "./NotificationsBell";
3
5
  export { Sidebar } from "./Sidebar";
4
6
  export type { SidebarProps, SidebarItem, SidebarGroup, SidebarSubItem, SidebarSlots, SidebarSearch } from "./Sidebar";
5
7
  export { SidebarHeader } from "./SidebarHeader";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACtH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACtH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -1,8 +1,9 @@
1
- import { G as r, S as b, a as s, b as S, T as d } from "../../../Topbar-Dkgmpwp8.js";
1
+ import { G as r, N as s, S as b, a as i, b as o, T as S } from "../../../Topbar-CPWjqOBF.js";
2
2
  export {
3
3
  r as GlobalSearch,
4
+ s as NotificationsBell,
4
5
  b as Sidebar,
5
- s as SidebarHeader,
6
- S as SidebarNavItem,
7
- d as Topbar
6
+ i as SidebarHeader,
7
+ o as SidebarNavItem,
8
+ S as Topbar
8
9
  };
@@ -1,5 +1,5 @@
1
- import { E as t } from "../../../ErrorAlert-BZGt1hH3.js";
2
- import { E as e } from "../../../ErrorState-0Op-bIn7.js";
1
+ import { E as t } from "../../../ErrorAlert-B99Xb_Hg.js";
2
+ import { E as e } from "../../../ErrorState-CkeS_IBT.js";
3
3
  import { L as f } from "../../../LoadingState-BN0YaPSs.js";
4
4
  export {
5
5
  t as ErrorAlert,
@@ -1,4 +1,4 @@
1
- import { A as s, D as l, S as t, T as n, a as T, b, c as g, d as i, e as o, g as C, f as A, h as d } from "../../../DataTable-BHcadDqz.js";
1
+ import { A as s, D as l, S as t, T as n, a as T, b, c as g, d as i, e as o, g as C, f as A, h as d } from "../../../DataTable-CjrR27Di.js";
2
2
  export {
3
3
  s as ACTIONS_COLUMN_KEY,
4
4
  l as DataTable,
@@ -1,4 +1,4 @@
1
- import { A as s, a as b, b as e, c as r } from "../../../AppVerticalTabs-B05oTb_4.js";
1
+ import { A as s, a as b, b as e, c as r } from "../../../AppVerticalTabs-B7XXtAVj.js";
2
2
  export {
3
3
  s as AppTabContainer,
4
4
  b as AppTabHeader,
@@ -1,4 +1,4 @@
1
- import { T as r } from "../../../ThemeSelector-J-ZsBnI8.js";
1
+ import { T as r } from "../../../ThemeSelector-DKhn02V2.js";
2
2
  export {
3
3
  r as ThemeSelector
4
4
  };