design-zystem 1.0.396 → 1.0.398

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.
@@ -733,7 +733,7 @@ interface TableRowProps {
733
733
  /** Liseré vertical gauche, même usage que `backgroundColor`. */
734
734
  accentColor?: HexColor;
735
735
  }
736
- declare const TableRow: ({ children, onClick, className, backgroundColor, accentColor, }: TableRowProps) => react.JSX.Element;
736
+ declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
737
737
 
738
738
  declare const SURFACE_CLASS: {
739
739
  readonly white: "bg-white";
@@ -811,7 +811,10 @@ interface AvatarFallbackProps extends ComponentPropsWithoutRef<typeof RadixAvata
811
811
  color?: ColorToken;
812
812
  }
813
813
  declare const AvatarFallback: react.ForwardRefExoticComponent<AvatarFallbackProps & react.RefAttributes<HTMLSpanElement>>;
814
- type AvatarBadgeProps = HTMLAttributes<HTMLDivElement>;
814
+ interface AvatarBadgeProps extends HTMLAttributes<HTMLDivElement> {
815
+ /** Diamètre en px. Par défaut 35 % de l'Avatar parent — à augmenter quand le badge porte une icône qui doit rester lisible sur un petit avatar. */
816
+ size?: number;
817
+ }
815
818
  /** Positionné dans le coin bas-droit de l'Avatar parent (via context de taille) — un point de statut nu (`<AvatarBadge className="bg-green-700" />`) ou une icône en enfant. */
816
819
  declare const AvatarBadge: react.ForwardRefExoticComponent<AvatarBadgeProps & react.RefAttributes<HTMLDivElement>>;
817
820
  interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
@@ -733,7 +733,7 @@ interface TableRowProps {
733
733
  /** Liseré vertical gauche, même usage que `backgroundColor`. */
734
734
  accentColor?: HexColor;
735
735
  }
736
- declare const TableRow: ({ children, onClick, className, backgroundColor, accentColor, }: TableRowProps) => react.JSX.Element;
736
+ declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
737
737
 
738
738
  declare const SURFACE_CLASS: {
739
739
  readonly white: "bg-white";
@@ -811,7 +811,10 @@ interface AvatarFallbackProps extends ComponentPropsWithoutRef<typeof RadixAvata
811
811
  color?: ColorToken;
812
812
  }
813
813
  declare const AvatarFallback: react.ForwardRefExoticComponent<AvatarFallbackProps & react.RefAttributes<HTMLSpanElement>>;
814
- type AvatarBadgeProps = HTMLAttributes<HTMLDivElement>;
814
+ interface AvatarBadgeProps extends HTMLAttributes<HTMLDivElement> {
815
+ /** Diamètre en px. Par défaut 35 % de l'Avatar parent — à augmenter quand le badge porte une icône qui doit rester lisible sur un petit avatar. */
816
+ size?: number;
817
+ }
815
818
  /** Positionné dans le coin bas-droit de l'Avatar parent (via context de taille) — un point de statut nu (`<AvatarBadge className="bg-green-700" />`) ou une icône en enfant. */
816
819
  declare const AvatarBadge: react.ForwardRefExoticComponent<AvatarBadgeProps & react.RefAttributes<HTMLDivElement>>;
817
820
  interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
package/dist/ui/index.js CHANGED
@@ -3450,30 +3450,29 @@ var TableHeaderCell = ({
3450
3450
  );
3451
3451
 
3452
3452
  // src/ui/components/ui/table/TableRow.tsx
3453
+ var import_react26 = require("react");
3453
3454
  var import_jsx_runtime39 = require("react/jsx-runtime");
3454
- var TableRow = ({
3455
- children,
3456
- onClick,
3457
- className,
3458
- backgroundColor,
3459
- accentColor
3460
- }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3461
- "tr",
3462
- {
3463
- onClick,
3464
- className: cn(
3465
- "border-t border-grey-200 transition-colors hover:bg-black/[0.025]",
3466
- onClick && "cursor-pointer",
3467
- accentColor && "border-l-4",
3468
- className
3469
- ),
3470
- style: {
3471
- backgroundColor,
3472
- borderLeftColor: accentColor
3473
- },
3474
- children
3475
- }
3455
+ var TableRow = (0, import_react26.forwardRef)(
3456
+ ({ children, onClick, className, backgroundColor, accentColor }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3457
+ "tr",
3458
+ {
3459
+ ref,
3460
+ onClick,
3461
+ className: cn(
3462
+ "border-t border-grey-200 transition-colors hover:bg-black/[0.025]",
3463
+ onClick && "cursor-pointer",
3464
+ accentColor && "border-l-4",
3465
+ className
3466
+ ),
3467
+ style: {
3468
+ backgroundColor,
3469
+ borderLeftColor: accentColor
3470
+ },
3471
+ children
3472
+ }
3473
+ )
3476
3474
  );
3475
+ TableRow.displayName = "TableRow";
3477
3476
 
3478
3477
  // src/ui/components/ui/table/TableCell.tsx
3479
3478
  var import_jsx_runtime40 = require("react/jsx-runtime");
@@ -3566,7 +3565,7 @@ var TableFooterCell = ({
3566
3565
  );
3567
3566
 
3568
3567
  // src/ui/components/ui/Avatar.tsx
3569
- var import_react26 = require("react");
3568
+ var import_react27 = require("react");
3570
3569
  var RadixAvatar = __toESM(require("@radix-ui/react-avatar"));
3571
3570
 
3572
3571
  // src/utils/string/capitalizeFirstLetter.ts
@@ -3690,8 +3689,8 @@ var formatNameWithInitial = (firstname, lastname) => {
3690
3689
 
3691
3690
  // src/ui/components/ui/Avatar.tsx
3692
3691
  var import_jsx_runtime44 = require("react/jsx-runtime");
3693
- var AvatarSizeContext = (0, import_react26.createContext)(40);
3694
- var useAvatarSize = () => (0, import_react26.useContext)(AvatarSizeContext);
3692
+ var AvatarSizeContext = (0, import_react27.createContext)(40);
3693
+ var useAvatarSize = () => (0, import_react27.useContext)(AvatarSizeContext);
3695
3694
  var BADGE_BG_CLASS = {
3696
3695
  "blue-700": "bg-blue-700",
3697
3696
  "blue-900": "bg-blue-900",
@@ -3722,7 +3721,7 @@ var BADGE_ICON_COLOR_CLASS = {
3722
3721
  "orange-600": "text-orange-600",
3723
3722
  "purple-700": "text-purple-700"
3724
3723
  };
3725
- var Avatar = (0, import_react26.forwardRef)(
3724
+ var Avatar = (0, import_react27.forwardRef)(
3726
3725
  (_a, ref) => {
3727
3726
  var _b = _a, {
3728
3727
  size = 40,
@@ -3775,7 +3774,7 @@ var Avatar = (0, import_react26.forwardRef)(
3775
3774
  }
3776
3775
  );
3777
3776
  Avatar.displayName = "Avatar";
3778
- var AvatarImage = (0, import_react26.forwardRef)((_a, ref) => {
3777
+ var AvatarImage = (0, import_react27.forwardRef)((_a, ref) => {
3779
3778
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3780
3779
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3781
3780
  RadixAvatar.Image,
@@ -3801,7 +3800,7 @@ var FALLBACK_COLOR_CLASS = {
3801
3800
  "orange-600": "bg-orange-600 text-white",
3802
3801
  "purple-700": "bg-purple-700 text-white"
3803
3802
  };
3804
- var AvatarFallback = (0, import_react26.forwardRef)((_a, ref) => {
3803
+ var AvatarFallback = (0, import_react27.forwardRef)((_a, ref) => {
3805
3804
  var _b = _a, { color = "grey-600", className, style } = _b, props = __objRest(_b, ["color", "className", "style"]);
3806
3805
  const size = useAvatarSize();
3807
3806
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
@@ -3818,11 +3817,11 @@ var AvatarFallback = (0, import_react26.forwardRef)((_a, ref) => {
3818
3817
  );
3819
3818
  });
3820
3819
  AvatarFallback.displayName = "AvatarFallback";
3821
- var AvatarBadge = (0, import_react26.forwardRef)(
3820
+ var AvatarBadge = (0, import_react27.forwardRef)(
3822
3821
  (_a, ref) => {
3823
- var _b = _a, { className, style } = _b, props = __objRest(_b, ["className", "style"]);
3824
- const size = useAvatarSize();
3825
- const badgeSize = Math.round(size * 0.35);
3822
+ var _b = _a, { size, className, style } = _b, props = __objRest(_b, ["size", "className", "style"]);
3823
+ const avatarSize = useAvatarSize();
3824
+ const badgeSize = size != null ? size : Math.round(avatarSize * 0.35);
3826
3825
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3827
3826
  "div",
3828
3827
  __spreadValues({
@@ -3849,14 +3848,14 @@ var AvatarGroup = (_a) => {
3849
3848
  "className",
3850
3849
  "children"
3851
3850
  ]);
3852
- const items = import_react26.Children.toArray(children).filter(
3853
- import_react26.isValidElement
3851
+ const items = import_react27.Children.toArray(children).filter(
3852
+ import_react27.isValidElement
3854
3853
  );
3855
3854
  const visible = max ? items.slice(0, max) : items;
3856
3855
  const overflow = max ? items.length - max : 0;
3857
3856
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Layout, __spreadProps(__spreadValues({ className: cn("-space-x-2", className) }, props), { children: [
3858
3857
  visible.map(
3859
- (child, index) => (0, import_react26.cloneElement)(child, {
3858
+ (child, index) => (0, import_react27.cloneElement)(child, {
3860
3859
  key: index,
3861
3860
  size,
3862
3861
  className: cn("ring-2 ring-white", child.props.className)
@@ -4150,7 +4149,7 @@ var CollapsibleContent = (_a) => {
4150
4149
  };
4151
4150
 
4152
4151
  // src/ui/components/ui/Drawer.tsx
4153
- var import_react27 = require("react");
4152
+ var import_react28 = require("react");
4154
4153
  var import_vaul = require("vaul");
4155
4154
  var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
4156
4155
 
@@ -4222,11 +4221,11 @@ var Drawer = ({
4222
4221
  overlayClassName
4223
4222
  }) => {
4224
4223
  const isVertical = direction === "left" || direction === "right";
4225
- const contentRef = (0, import_react27.useRef)(null);
4226
- const [panel, setPanel] = (0, import_react27.useState)(null);
4227
- const overlayRef = (0, import_react27.useRef)(null);
4224
+ const contentRef = (0, import_react28.useRef)(null);
4225
+ const [panel, setPanel] = (0, import_react28.useState)(null);
4226
+ const overlayRef = (0, import_react28.useRef)(null);
4228
4227
  useAllowPortalScroll(modal && open, contentRef, overlayRef);
4229
- (0, import_react27.useEffect)(() => {
4228
+ (0, import_react28.useEffect)(() => {
4230
4229
  if (!open || !panel) return;
4231
4230
  return registerOpenDrawer(panel, overlayRef.current);
4232
4231
  }, [open, panel]);
@@ -4241,7 +4240,7 @@ var Drawer = ({
4241
4240
  const overlay = target.closest("[data-vaul-overlay]");
4242
4241
  return Boolean(target.closest(KEEP_OPEN_SELECTOR)) || overlay !== null && isOverlayOfDrawerAbove(overlay, contentRef.current);
4243
4242
  };
4244
- (0, import_react27.useEffect)(() => {
4243
+ (0, import_react28.useEffect)(() => {
4245
4244
  if (modal || !open || typeof document === "undefined") return;
4246
4245
  const handlePointerDown = (event) => {
4247
4246
  var _a;
@@ -4255,7 +4254,7 @@ var Drawer = ({
4255
4254
  document.addEventListener("pointerdown", handlePointerDown);
4256
4255
  return () => document.removeEventListener("pointerdown", handlePointerDown);
4257
4256
  }, [modal, open, onClose]);
4258
- (0, import_react27.useEffect)(() => {
4257
+ (0, import_react28.useEffect)(() => {
4259
4258
  if (modal || !open) return;
4260
4259
  const frame = requestAnimationFrame(() => {
4261
4260
  document.body.style.pointerEvents = "auto";
@@ -4420,17 +4419,17 @@ var Popover = ({
4420
4419
  ] });
4421
4420
 
4422
4421
  // src/ui/components/ui/sidebar/Sidebar.tsx
4423
- var import_react29 = require("react");
4422
+ var import_react30 = require("react");
4424
4423
 
4425
4424
  // src/ui/components/ui/sidebar/SidebarContext.ts
4426
- var import_react28 = require("react");
4427
- var SidebarCollapsedContext = (0, import_react28.createContext)(false);
4425
+ var import_react29 = require("react");
4426
+ var SidebarCollapsedContext = (0, import_react29.createContext)(false);
4428
4427
  var SidebarCollapsedProvider = SidebarCollapsedContext.Provider;
4429
- var useSidebarCollapsed = () => (0, import_react28.useContext)(SidebarCollapsedContext);
4428
+ var useSidebarCollapsed = () => (0, import_react29.useContext)(SidebarCollapsedContext);
4430
4429
 
4431
4430
  // src/ui/components/ui/sidebar/Sidebar.tsx
4432
4431
  var import_jsx_runtime50 = require("react/jsx-runtime");
4433
- var Sidebar = (0, import_react29.forwardRef)(
4432
+ var Sidebar = (0, import_react30.forwardRef)(
4434
4433
  (_a, ref) => {
4435
4434
  var _b = _a, { collapsed = false, className, children } = _b, props = __objRest(_b, ["collapsed", "className", "children"]);
4436
4435
  return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SidebarCollapsedProvider, { value: collapsed, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
@@ -4451,9 +4450,9 @@ var Sidebar = (0, import_react29.forwardRef)(
4451
4450
  Sidebar.displayName = "Sidebar";
4452
4451
 
4453
4452
  // src/ui/components/ui/sidebar/SidebarTrigger.tsx
4454
- var import_react30 = require("react");
4453
+ var import_react31 = require("react");
4455
4454
  var import_jsx_runtime51 = require("react/jsx-runtime");
4456
- var SidebarTrigger = (0, import_react30.forwardRef)((_a, ref) => {
4455
+ var SidebarTrigger = (0, import_react31.forwardRef)((_a, ref) => {
4457
4456
  var _b = _a, { collapsed, className } = _b, props = __objRest(_b, ["collapsed", "className"]);
4458
4457
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4459
4458
  "button",
@@ -4480,9 +4479,9 @@ var SidebarTrigger = (0, import_react30.forwardRef)((_a, ref) => {
4480
4479
  SidebarTrigger.displayName = "SidebarTrigger";
4481
4480
 
4482
4481
  // src/ui/components/ui/sidebar/SidebarHeader.tsx
4483
- var import_react31 = require("react");
4482
+ var import_react32 = require("react");
4484
4483
  var import_jsx_runtime52 = require("react/jsx-runtime");
4485
- var SidebarHeader = (0, import_react31.forwardRef)(
4484
+ var SidebarHeader = (0, import_react32.forwardRef)(
4486
4485
  (_a, ref) => {
4487
4486
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4488
4487
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
@@ -4497,9 +4496,9 @@ var SidebarHeader = (0, import_react31.forwardRef)(
4497
4496
  SidebarHeader.displayName = "SidebarHeader";
4498
4497
 
4499
4498
  // src/ui/components/ui/sidebar/SidebarContent.tsx
4500
- var import_react32 = require("react");
4499
+ var import_react33 = require("react");
4501
4500
  var import_jsx_runtime53 = require("react/jsx-runtime");
4502
- var SidebarContent = (0, import_react32.forwardRef)(
4501
+ var SidebarContent = (0, import_react33.forwardRef)(
4503
4502
  (_a, ref) => {
4504
4503
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4505
4504
  return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
@@ -4518,9 +4517,9 @@ var SidebarContent = (0, import_react32.forwardRef)(
4518
4517
  SidebarContent.displayName = "SidebarContent";
4519
4518
 
4520
4519
  // src/ui/components/ui/sidebar/SidebarGroup.tsx
4521
- var import_react33 = require("react");
4520
+ var import_react34 = require("react");
4522
4521
  var import_jsx_runtime54 = require("react/jsx-runtime");
4523
- var SidebarGroup = (0, import_react33.forwardRef)(
4522
+ var SidebarGroup = (0, import_react34.forwardRef)(
4524
4523
  (_a, ref) => {
4525
4524
  var _b = _a, { label, className, children } = _b, props = __objRest(_b, ["label", "className", "children"]);
4526
4525
  const collapsed = useSidebarCollapsed();
@@ -4541,9 +4540,9 @@ var SidebarGroup = (0, import_react33.forwardRef)(
4541
4540
  SidebarGroup.displayName = "SidebarGroup";
4542
4541
 
4543
4542
  // src/ui/components/ui/sidebar/SidebarMenuButton.tsx
4544
- var import_react34 = require("react");
4543
+ var import_react35 = require("react");
4545
4544
  var import_jsx_runtime55 = require("react/jsx-runtime");
4546
- var SidebarMenuButton = (0, import_react34.forwardRef)(
4545
+ var SidebarMenuButton = (0, import_react35.forwardRef)(
4547
4546
  (_a, ref) => {
4548
4547
  var _b = _a, {
4549
4548
  icon,
@@ -4623,9 +4622,9 @@ var SidebarMenuButton = (0, import_react34.forwardRef)(
4623
4622
  SidebarMenuButton.displayName = "SidebarMenuButton";
4624
4623
 
4625
4624
  // src/ui/components/ui/sidebar/SidebarMenuSub.tsx
4626
- var import_react35 = require("react");
4625
+ var import_react36 = require("react");
4627
4626
  var import_jsx_runtime56 = require("react/jsx-runtime");
4628
- var SidebarMenuSub = (0, import_react35.forwardRef)(
4627
+ var SidebarMenuSub = (0, import_react36.forwardRef)(
4629
4628
  (_a, ref) => {
4630
4629
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4631
4630
  return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
@@ -4643,22 +4642,22 @@ var SidebarMenuSub = (0, import_react35.forwardRef)(
4643
4642
  SidebarMenuSub.displayName = "SidebarMenuSub";
4644
4643
 
4645
4644
  // src/ui/components/ui/sidebar/SidebarMenuSubItem.tsx
4646
- var import_react36 = require("react");
4645
+ var import_react37 = require("react");
4647
4646
  var import_jsx_runtime57 = require("react/jsx-runtime");
4648
- var SidebarMenuSubItem = (0, import_react36.forwardRef)((_a, ref) => {
4647
+ var SidebarMenuSubItem = (0, import_react37.forwardRef)((_a, ref) => {
4649
4648
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4650
4649
  return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", __spreadValues({ ref, className: cn("relative", className) }, props));
4651
4650
  });
4652
4651
  SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
4653
4652
 
4654
4653
  // src/ui/components/ui/sidebar/SidebarMenuSubButton.tsx
4655
- var import_react37 = require("react");
4654
+ var import_react38 = require("react");
4656
4655
  var import_jsx_runtime58 = require("react/jsx-runtime");
4657
4656
  var SIZE_CLASS = {
4658
4657
  default: "h-10",
4659
4658
  lg: "h-14"
4660
4659
  };
4661
- var SidebarMenuSubButton = (0, import_react37.forwardRef)((_a, ref) => {
4660
+ var SidebarMenuSubButton = (0, import_react38.forwardRef)((_a, ref) => {
4662
4661
  var _b = _a, { active, size = "default", className } = _b, props = __objRest(_b, ["active", "size", "className"]);
4663
4662
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4664
4663
  "button",
@@ -4679,9 +4678,9 @@ var SidebarMenuSubButton = (0, import_react37.forwardRef)((_a, ref) => {
4679
4678
  SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
4680
4679
 
4681
4680
  // src/ui/components/ui/sidebar/SidebarFooter.tsx
4682
- var import_react38 = require("react");
4681
+ var import_react39 = require("react");
4683
4682
  var import_jsx_runtime59 = require("react/jsx-runtime");
4684
- var SidebarFooter = (0, import_react38.forwardRef)(
4683
+ var SidebarFooter = (0, import_react39.forwardRef)(
4685
4684
  (_a, ref) => {
4686
4685
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4687
4686
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
@@ -4719,9 +4718,9 @@ var SidebarSupportInfo = ({
4719
4718
  };
4720
4719
 
4721
4720
  // src/ui/components/ui/sidebar/SidebarMenuSearchInput.tsx
4722
- var import_react39 = require("react");
4721
+ var import_react40 = require("react");
4723
4722
  var import_jsx_runtime61 = require("react/jsx-runtime");
4724
- var SidebarMenuSearchInput = (0, import_react39.forwardRef)((_a, ref) => {
4723
+ var SidebarMenuSearchInput = (0, import_react40.forwardRef)((_a, ref) => {
4725
4724
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4726
4725
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(InputGroup, { children: [
4727
4726
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(InputGroupAddon, { align: "inline-start", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FaIcon, { name: "magnifying-glass", size: 14, className: "text-white/50" }) }),
@@ -4740,7 +4739,7 @@ var SidebarMenuSearchInput = (0, import_react39.forwardRef)((_a, ref) => {
4740
4739
  SidebarMenuSearchInput.displayName = "SidebarMenuSearchInput";
4741
4740
 
4742
4741
  // src/ui/components/ui/sidebar/SidebarUserMenu.tsx
4743
- var import_react40 = require("react");
4742
+ var import_react41 = require("react");
4744
4743
  var RadixPopover5 = __toESM(require("@radix-ui/react-popover"));
4745
4744
  var import_jsx_runtime62 = require("react/jsx-runtime");
4746
4745
  var panelClassName = cn(
@@ -4757,7 +4756,7 @@ var SidebarUserMenu = ({
4757
4756
  className
4758
4757
  }) => {
4759
4758
  const collapsed = useSidebarCollapsed();
4760
- const [open, setOpen] = (0, import_react40.useState)(false);
4759
+ const [open, setOpen] = (0, import_react41.useState)(false);
4761
4760
  const runAndClose = (action) => {
4762
4761
  action();
4763
4762
  setOpen(false);
@@ -5075,7 +5074,7 @@ var toast = {
5075
5074
  };
5076
5075
 
5077
5076
  // src/ui/components/ui/PageContainer.tsx
5078
- var import_react41 = require("react");
5077
+ var import_react42 = require("react");
5079
5078
  var import_class_variance_authority13 = require("class-variance-authority");
5080
5079
  var import_jsx_runtime66 = require("react/jsx-runtime");
5081
5080
  var pageContainerVariants = (0, import_class_variance_authority13.cva)(
@@ -5092,7 +5091,7 @@ var pageContainerVariants = (0, import_class_variance_authority13.cva)(
5092
5091
  defaultVariants: { padding: "md" }
5093
5092
  }
5094
5093
  );
5095
- var PageContainer = (0, import_react41.forwardRef)(
5094
+ var PageContainer = (0, import_react42.forwardRef)(
5096
5095
  (_a, ref) => {
5097
5096
  var _b = _a, { padding, className } = _b, props = __objRest(_b, ["padding", "className"]);
5098
5097
  return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
@@ -5107,7 +5106,7 @@ var PageContainer = (0, import_react41.forwardRef)(
5107
5106
  PageContainer.displayName = "PageContainer";
5108
5107
 
5109
5108
  // src/ui/components/ui/IconTabs.tsx
5110
- var import_react42 = require("react");
5109
+ var import_react43 = require("react");
5111
5110
  var import_jsx_runtime67 = require("react/jsx-runtime");
5112
5111
  var IconTabs = ({
5113
5112
  items,
@@ -5117,10 +5116,10 @@ var IconTabs = ({
5117
5116
  className
5118
5117
  }) => {
5119
5118
  var _a;
5120
- const listRef = (0, import_react42.useRef)(null);
5121
- const tabRefs = (0, import_react42.useRef)([]);
5122
- const [bar, setBar] = (0, import_react42.useState)({ left: 0, top: 0, width: 0, height: 0 });
5123
- const updateBar = (0, import_react42.useCallback)(() => {
5119
+ const listRef = (0, import_react43.useRef)(null);
5120
+ const tabRefs = (0, import_react43.useRef)([]);
5121
+ const [bar, setBar] = (0, import_react43.useState)({ left: 0, top: 0, width: 0, height: 0 });
5122
+ const updateBar = (0, import_react43.useCallback)(() => {
5124
5123
  const root = listRef.current;
5125
5124
  const activeEl = tabRefs.current[value];
5126
5125
  if (!root || !activeEl) return;
@@ -5133,7 +5132,7 @@ var IconTabs = ({
5133
5132
  height: box.height
5134
5133
  });
5135
5134
  }, [value]);
5136
- (0, import_react42.useEffect)(() => {
5135
+ (0, import_react43.useEffect)(() => {
5137
5136
  updateBar();
5138
5137
  const ro = new ResizeObserver(updateBar);
5139
5138
  if (listRef.current) ro.observe(listRef.current);
@@ -5315,7 +5314,7 @@ var Banner = ({
5315
5314
  };
5316
5315
 
5317
5316
  // src/ui/components/ui/FloatingButton.tsx
5318
- var import_react43 = require("react");
5317
+ var import_react44 = require("react");
5319
5318
 
5320
5319
  // src/ui/lib/floatingArc.ts
5321
5320
  var MAX_STEP = 65;
@@ -5469,20 +5468,20 @@ var FloatingButton = ({
5469
5468
  safeArea,
5470
5469
  onOffsetChange
5471
5470
  }) => {
5472
- const containerRef = (0, import_react43.useRef)(null);
5473
- const [placement, setPlacement] = (0, import_react43.useState)(() => ({
5471
+ const containerRef = (0, import_react44.useRef)(null);
5472
+ const [placement, setPlacement] = (0, import_react44.useState)(() => ({
5474
5473
  geometry: __spreadValues({ base: 90 }, arcLayout(actions.length, ARC_RADIUS, SUB_SIZE)),
5475
5474
  shift: { x: 0, y: 0 }
5476
5475
  }));
5477
- const [isDragging, setIsDragging] = (0, import_react43.useState)(false);
5478
- const [offset, setOffset] = (0, import_react43.useState)(() => readStoredOffset(persistKey));
5479
- const offsetRef = (0, import_react43.useRef)(offset);
5480
- const lastPointRef = (0, import_react43.useRef)({ x: 0, y: 0 });
5481
- const dragDistanceRef = (0, import_react43.useRef)(0);
5482
- (0, import_react43.useEffect)(() => {
5476
+ const [isDragging, setIsDragging] = (0, import_react44.useState)(false);
5477
+ const [offset, setOffset] = (0, import_react44.useState)(() => readStoredOffset(persistKey));
5478
+ const offsetRef = (0, import_react44.useRef)(offset);
5479
+ const lastPointRef = (0, import_react44.useRef)({ x: 0, y: 0 });
5480
+ const dragDistanceRef = (0, import_react44.useRef)(0);
5481
+ (0, import_react44.useEffect)(() => {
5483
5482
  onOffsetChange == null ? void 0 : onOffsetChange(offset);
5484
5483
  }, [offset, onOffsetChange]);
5485
- const clampOffset = (0, import_react43.useCallback)(
5484
+ const clampOffset = (0, import_react44.useCallback)(
5486
5485
  (next) => {
5487
5486
  var _a, _b, _c, _d;
5488
5487
  const el = containerRef.current;
@@ -5502,14 +5501,14 @@ var FloatingButton = ({
5502
5501
  },
5503
5502
  [safeArea == null ? void 0 : safeArea.left, safeArea == null ? void 0 : safeArea.top, safeArea == null ? void 0 : safeArea.right, safeArea == null ? void 0 : safeArea.bottom]
5504
5503
  );
5505
- (0, import_react43.useLayoutEffect)(() => {
5504
+ (0, import_react44.useLayoutEffect)(() => {
5506
5505
  const corrected = clampOffset(offsetRef.current);
5507
5506
  if (corrected.x === offsetRef.current.x && corrected.y === offsetRef.current.y)
5508
5507
  return;
5509
5508
  offsetRef.current = corrected;
5510
5509
  setOffset(corrected);
5511
5510
  }, [clampOffset]);
5512
- (0, import_react43.useEffect)(() => {
5511
+ (0, import_react44.useEffect)(() => {
5513
5512
  if (!draggable || !isDragging) return;
5514
5513
  const onPointerMove = (e) => {
5515
5514
  const dx = e.clientX - lastPointRef.current.x;
@@ -5545,7 +5544,7 @@ var FloatingButton = ({
5545
5544
  window.removeEventListener("pointercancel", endDrag);
5546
5545
  };
5547
5546
  }, [draggable, isDragging, persistKey, clampOffset]);
5548
- const resolvePlacement = (0, import_react43.useCallback)(() => {
5547
+ const resolvePlacement = (0, import_react44.useCallback)(() => {
5549
5548
  var _a, _b, _c, _d;
5550
5549
  const el = containerRef.current;
5551
5550
  if (!el || typeof window === "undefined") return;
@@ -5574,13 +5573,13 @@ var FloatingButton = ({
5574
5573
  safeArea == null ? void 0 : safeArea.right,
5575
5574
  safeArea == null ? void 0 : safeArea.bottom
5576
5575
  ]);
5577
- (0, import_react43.useLayoutEffect)(() => {
5576
+ (0, import_react44.useLayoutEffect)(() => {
5578
5577
  if (isOpen) resolvePlacement();
5579
5578
  }, [isOpen, offset, resolvePlacement]);
5580
- (0, import_react43.useLayoutEffect)(() => {
5579
+ (0, import_react44.useLayoutEffect)(() => {
5581
5580
  resolvePlacement();
5582
5581
  }, [resolvePlacement]);
5583
- (0, import_react43.useEffect)(() => {
5582
+ (0, import_react44.useEffect)(() => {
5584
5583
  if (typeof window === "undefined") return;
5585
5584
  const onResize = () => {
5586
5585
  resolvePlacement();
@@ -5676,7 +5675,7 @@ var FloatingButton = ({
5676
5675
  };
5677
5676
 
5678
5677
  // src/ui/components/ui/ActivityFeedPanel.tsx
5679
- var import_react44 = require("react");
5678
+ var import_react45 = require("react");
5680
5679
  var import_jsx_runtime70 = require("react/jsx-runtime");
5681
5680
  var PANEL_WIDTH = 500;
5682
5681
  var PANEL_MAX_HEIGHT = 750;
@@ -5711,15 +5710,15 @@ var ActivityFeedPanel = ({
5711
5710
  emptyMessage = "Rien de neuf pour l\u2019instant.",
5712
5711
  items
5713
5712
  }) => {
5714
- const panelRef = (0, import_react44.useRef)(null);
5715
- const [placement, setPlacement] = (0, import_react44.useState)(
5713
+ const panelRef = (0, import_react45.useRef)(null);
5714
+ const [placement, setPlacement] = (0, import_react45.useState)(
5716
5715
  () => typeof window === "undefined" ? {} : resolveFloatingPanelPlacement(
5717
5716
  offset,
5718
5717
  window.innerWidth,
5719
5718
  window.innerHeight
5720
5719
  )
5721
5720
  );
5722
- (0, import_react44.useEffect)(() => {
5721
+ (0, import_react45.useEffect)(() => {
5723
5722
  if (!open || typeof document === "undefined") return;
5724
5723
  const handlePointerDown = (event) => {
5725
5724
  var _a;
@@ -5730,7 +5729,7 @@ var ActivityFeedPanel = ({
5730
5729
  document.addEventListener("pointerdown", handlePointerDown);
5731
5730
  return () => document.removeEventListener("pointerdown", handlePointerDown);
5732
5731
  }, [open, onClose]);
5733
- (0, import_react44.useEffect)(() => {
5732
+ (0, import_react45.useEffect)(() => {
5734
5733
  if (!open || typeof window === "undefined") return;
5735
5734
  const recompute = () => setPlacement(
5736
5735
  resolveFloatingPanelPlacement(
@@ -6351,7 +6350,7 @@ var HistoryDrawer = (_a) => {
6351
6350
  };
6352
6351
 
6353
6352
  // src/ui/components/ui/history/HistoryButton.tsx
6354
- var import_react45 = require("react");
6353
+ var import_react46 = require("react");
6355
6354
  var import_jsx_runtime78 = require("react/jsx-runtime");
6356
6355
  var LABEL = "Historique";
6357
6356
  var SHORT_TOOLTIP = "Voir l\u2019historique des actions";
@@ -6367,7 +6366,7 @@ var HistoryButton = (_a) => {
6367
6366
  "tooltip",
6368
6367
  "onOpenChange"
6369
6368
  ]);
6370
- const [isOpen, setIsOpen] = (0, import_react45.useState)(false);
6369
+ const [isOpen, setIsOpen] = (0, import_react46.useState)(false);
6371
6370
  const changeOpen = (nextIsOpen) => {
6372
6371
  setIsOpen(nextIsOpen);
6373
6372
  onOpenChange == null ? void 0 : onOpenChange(nextIsOpen);
@@ -6667,7 +6666,7 @@ var Timeline = ({
6667
6666
  };
6668
6667
 
6669
6668
  // src/ui/components/ui/ColorPicker.tsx
6670
- var import_react46 = require("react");
6669
+ var import_react47 = require("react");
6671
6670
  var import_class_variance_authority15 = require("class-variance-authority");
6672
6671
  var import_jsx_runtime82 = require("react/jsx-runtime");
6673
6672
  var swatchVariants = (0, import_class_variance_authority15.cva)(
@@ -6696,7 +6695,7 @@ var inputVariants = (0, import_class_variance_authority15.cva)(
6696
6695
  defaultVariants: { size: "m" }
6697
6696
  }
6698
6697
  );
6699
- var ColorPicker = (0, import_react46.forwardRef)(
6698
+ var ColorPicker = (0, import_react47.forwardRef)(
6700
6699
  ({
6701
6700
  label,
6702
6701
  value,
@@ -6706,7 +6705,7 @@ var ColorPicker = (0, import_react46.forwardRef)(
6706
6705
  size,
6707
6706
  className
6708
6707
  }, ref) => {
6709
- const [internalColor, setInternalColor] = (0, import_react46.useState)(defaultValue);
6708
+ const [internalColor, setInternalColor] = (0, import_react47.useState)(defaultValue);
6710
6709
  const currentColor = value !== void 0 ? value : internalColor;
6711
6710
  const handleChange = (e) => {
6712
6711
  const next = e.target.value;
@@ -6770,7 +6769,7 @@ var ColorPicker = (0, import_react46.forwardRef)(
6770
6769
  ColorPicker.displayName = "ColorPicker";
6771
6770
 
6772
6771
  // src/ui/components/ui/FileUploadZone.tsx
6773
- var import_react47 = require("react");
6772
+ var import_react48 = require("react");
6774
6773
  var import_jsx_runtime83 = require("react/jsx-runtime");
6775
6774
  var ACCEPT_MAP = {
6776
6775
  png: "image/png",
@@ -6803,23 +6802,23 @@ var FileUploadZone = ({
6803
6802
  showFileName = false,
6804
6803
  className
6805
6804
  }) => {
6806
- const [isDragging, setIsDragging] = (0, import_react47.useState)(false);
6807
- const [internalPreviewUrl, setInternalPreviewUrl] = (0, import_react47.useState)(
6805
+ const [isDragging, setIsDragging] = (0, import_react48.useState)(false);
6806
+ const [internalPreviewUrl, setInternalPreviewUrl] = (0, import_react48.useState)(
6808
6807
  null
6809
6808
  );
6810
- const [fileType, setFileType] = (0, import_react47.useState)(null);
6811
- const [fileName, setFileName] = (0, import_react47.useState)(null);
6812
- const [inlineError, setInlineError] = (0, import_react47.useState)(null);
6813
- const inputRef = (0, import_react47.useRef)(null);
6809
+ const [fileType, setFileType] = (0, import_react48.useState)(null);
6810
+ const [fileName, setFileName] = (0, import_react48.useState)(null);
6811
+ const [inlineError, setInlineError] = (0, import_react48.useState)(null);
6812
+ const inputRef = (0, import_react48.useRef)(null);
6814
6813
  const resolvedAccept = acceptOnlyPdf ? PDF_ONLY : accept;
6815
6814
  const mimeTypes = getMimeTypes(resolvedAccept);
6816
6815
  const acceptString = mimeTypes.join(",");
6817
6816
  const previewUrl = multiple ? null : controlledPreviewUrl || (showPreview ? internalPreviewUrl : null);
6818
- const emitError = (0, import_react47.useCallback)(
6817
+ const emitError = (0, import_react48.useCallback)(
6819
6818
  (message) => onError ? onError(message) : setInlineError(message),
6820
6819
  [onError]
6821
6820
  );
6822
- const validateFile = (0, import_react47.useCallback)(
6821
+ const validateFile = (0, import_react48.useCallback)(
6823
6822
  (file) => {
6824
6823
  if (!mimeTypes.includes(file.type))
6825
6824
  return { ok: false, error: "Format de fichier non accept\xE9." };
@@ -6833,7 +6832,7 @@ var FileUploadZone = ({
6833
6832
  },
6834
6833
  [mimeTypes, maxSizeMB]
6835
6834
  );
6836
- const processFile = (0, import_react47.useCallback)(
6835
+ const processFile = (0, import_react48.useCallback)(
6837
6836
  (file) => {
6838
6837
  setInlineError(null);
6839
6838
  const result = validateFile(file);
@@ -6848,7 +6847,7 @@ var FileUploadZone = ({
6848
6847
  },
6849
6848
  [validateFile, onSave, showPreview, emitError]
6850
6849
  );
6851
- const processFiles = (0, import_react47.useCallback)(
6850
+ const processFiles = (0, import_react48.useCallback)(
6852
6851
  (files) => {
6853
6852
  setInlineError(null);
6854
6853
  for (const file of files) {
@@ -7007,7 +7006,7 @@ var FileUploadZone = ({
7007
7006
  };
7008
7007
 
7009
7008
  // src/ui/components/ui/FilePicker.tsx
7010
- var import_react48 = require("react");
7009
+ var import_react49 = require("react");
7011
7010
  var import_jsx_runtime84 = require("react/jsx-runtime");
7012
7011
  var FilePicker = ({
7013
7012
  label,
@@ -7021,7 +7020,7 @@ var FilePicker = ({
7021
7020
  disabled = false,
7022
7021
  className
7023
7022
  }) => {
7024
- const inputRef = (0, import_react48.useRef)(null);
7023
+ const inputRef = (0, import_react49.useRef)(null);
7025
7024
  return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
7026
7025
  /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
7027
7026
  "input",
@@ -7059,7 +7058,7 @@ var FilePicker = ({
7059
7058
  };
7060
7059
 
7061
7060
  // src/ui/components/ui/Item.tsx
7062
- var import_react49 = require("react");
7061
+ var import_react50 = require("react");
7063
7062
  var import_class_variance_authority16 = require("class-variance-authority");
7064
7063
  var import_jsx_runtime85 = require("react/jsx-runtime");
7065
7064
  var itemVariants = (0, import_class_variance_authority16.cva)(
@@ -7079,7 +7078,7 @@ var itemVariants = (0, import_class_variance_authority16.cva)(
7079
7078
  defaultVariants: { variant: "default", size: "default" }
7080
7079
  }
7081
7080
  );
7082
- var Item4 = (0, import_react49.forwardRef)(
7081
+ var Item4 = (0, import_react50.forwardRef)(
7083
7082
  (_a, ref) => {
7084
7083
  var _b = _a, { variant, size, className } = _b, props = __objRest(_b, ["variant", "size", "className"]);
7085
7084
  return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
@@ -7238,7 +7237,7 @@ var Attachment = ({
7238
7237
  };
7239
7238
 
7240
7239
  // src/ui/components/ui/PdfPreview.tsx
7241
- var import_react50 = require("react");
7240
+ var import_react51 = require("react");
7242
7241
  var import_react_pdf = require("react-pdf");
7243
7242
  var import_jsx_runtime87 = require("react/jsx-runtime");
7244
7243
  import_react_pdf.pdfjs.GlobalWorkerOptions.workerSrc = `https://unpkg.com/pdfjs-dist@${import_react_pdf.pdfjs.version}/build/pdf.worker.min.mjs`;
@@ -7248,8 +7247,8 @@ var PdfPreview = ({
7248
7247
  maxHeight = "600px",
7249
7248
  className
7250
7249
  }) => {
7251
- const [hasError, setHasError] = (0, import_react50.useState)(false);
7252
- const [numPages, setNumPages] = (0, import_react50.useState)(0);
7250
+ const [hasError, setHasError] = (0, import_react51.useState)(false);
7251
+ const [numPages, setNumPages] = (0, import_react51.useState)(0);
7253
7252
  const height = Math.round(width * 1.3);
7254
7253
  const thumbnailSkeleton = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Skeleton, { width, height });
7255
7254
  if (hasError) {
@@ -7305,7 +7304,7 @@ var PdfPreview = ({
7305
7304
  };
7306
7305
 
7307
7306
  // src/ui/components/ui/VideoPlayer.tsx
7308
- var import_react51 = require("react");
7307
+ var import_react52 = require("react");
7309
7308
  var import_jsx_runtime88 = require("react/jsx-runtime");
7310
7309
  var formatVideoDuration = (seconds) => {
7311
7310
  if (seconds === void 0 || !Number.isFinite(seconds) || seconds < 0)
@@ -7345,20 +7344,20 @@ var VideoPlayer = ({
7345
7344
  defaultVolume = DEFAULT_VOLUME,
7346
7345
  className
7347
7346
  }) => {
7348
- const [isInlinePlaying, setIsInlinePlaying] = (0, import_react51.useState)(false);
7349
- const [isExpanded, setIsExpanded] = (0, import_react51.useState)(false);
7350
- const [hasPosterError, setHasPosterError] = (0, import_react51.useState)(false);
7351
- const [hasFramePreviewError, setHasFramePreviewError] = (0, import_react51.useState)(false);
7352
- const inlineVideoRef = (0, import_react51.useRef)(null);
7353
- const expandedVideoRef = (0, import_react51.useRef)(null);
7354
- (0, import_react51.useEffect)(() => {
7347
+ const [isInlinePlaying, setIsInlinePlaying] = (0, import_react52.useState)(false);
7348
+ const [isExpanded, setIsExpanded] = (0, import_react52.useState)(false);
7349
+ const [hasPosterError, setHasPosterError] = (0, import_react52.useState)(false);
7350
+ const [hasFramePreviewError, setHasFramePreviewError] = (0, import_react52.useState)(false);
7351
+ const inlineVideoRef = (0, import_react52.useRef)(null);
7352
+ const expandedVideoRef = (0, import_react52.useRef)(null);
7353
+ (0, import_react52.useEffect)(() => {
7355
7354
  setHasPosterError(false);
7356
7355
  }, [poster]);
7357
- (0, import_react51.useEffect)(() => {
7356
+ (0, import_react52.useEffect)(() => {
7358
7357
  setHasFramePreviewError(false);
7359
7358
  }, [src]);
7360
7359
  const visiblePoster = hasPosterError ? void 0 : poster;
7361
- const attachExpandedVideo = (0, import_react51.useCallback)(
7360
+ const attachExpandedVideo = (0, import_react52.useCallback)(
7362
7361
  (video) => {
7363
7362
  expandedVideoRef.current = video;
7364
7363
  if (video) video.volume = clampVolume(defaultVolume);
@@ -7370,7 +7369,7 @@ var VideoPlayer = ({
7370
7369
  e.preventDefault();
7371
7370
  (_a = expandedVideoRef.current) == null ? void 0 : _a.focus({ preventScroll: true });
7372
7371
  };
7373
- const attachInlineVideo = (0, import_react51.useCallback)(
7372
+ const attachInlineVideo = (0, import_react52.useCallback)(
7374
7373
  (video) => {
7375
7374
  inlineVideoRef.current = video;
7376
7375
  if (video) video.volume = clampVolume(defaultVolume);
@@ -7635,7 +7634,7 @@ var ScrollArea = (_a) => {
7635
7634
  };
7636
7635
 
7637
7636
  // src/ui/components/ui/Message.tsx
7638
- var import_react52 = require("react");
7637
+ var import_react53 = require("react");
7639
7638
  var import_jsx_runtime90 = require("react/jsx-runtime");
7640
7639
  var BUBBLE_BACKGROUND = {
7641
7640
  own: { solid: "bg-blue-700", pale: "bg-blue-50" },
@@ -7647,7 +7646,7 @@ var BUBBLE_TAIL = {
7647
7646
  teammate: "rounded-br-none",
7648
7647
  other: "rounded-bl-none"
7649
7648
  };
7650
- var Message = (0, import_react52.forwardRef)(
7649
+ var Message = (0, import_react53.forwardRef)(
7651
7650
  (_a, ref) => {
7652
7651
  var _b = _a, {
7653
7652
  isOwn = false,
@@ -7789,7 +7788,7 @@ var Message = (0, import_react52.forwardRef)(
7789
7788
  Message.displayName = "Message";
7790
7789
 
7791
7790
  // src/ui/components/ui/MessageScroller.tsx
7792
- var import_react53 = require("react");
7791
+ var import_react54 = require("react");
7793
7792
  var import_jsx_runtime91 = require("react/jsx-runtime");
7794
7793
  var SEPARATOR_LINE = {
7795
7794
  neutral: "",
@@ -7841,9 +7840,9 @@ var MessageScroller = ({
7841
7840
  viewportRef,
7842
7841
  className
7843
7842
  }) => {
7844
- const fallbackRef = (0, import_react53.useRef)(null);
7843
+ const fallbackRef = (0, import_react54.useRef)(null);
7845
7844
  const scrollerRef = viewportRef != null ? viewportRef : fallbackRef;
7846
- (0, import_react53.useLayoutEffect)(() => {
7845
+ (0, import_react54.useLayoutEffect)(() => {
7847
7846
  if (!autoScroll) return;
7848
7847
  const viewport = scrollerRef.current;
7849
7848
  if (!viewport) return;
@@ -7897,7 +7896,7 @@ var MessageScroller = ({
7897
7896
  };
7898
7897
 
7899
7898
  // src/ui/components/ui/Stepper.tsx
7900
- var import_react54 = require("react");
7899
+ var import_react55 = require("react");
7901
7900
  var import_jsx_runtime92 = require("react/jsx-runtime");
7902
7901
  var Stepper = ({
7903
7902
  numberOfSteps,
@@ -7915,7 +7914,7 @@ var Stepper = ({
7915
7914
  children: Array.from({ length: numberOfSteps }, (_, i) => {
7916
7915
  const isActive = i === current;
7917
7916
  const isCompleted = i < current;
7918
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_react54.Fragment, { children: [
7917
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_react55.Fragment, { children: [
7919
7918
  /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
7920
7919
  "div",
7921
7920
  {
@@ -7935,7 +7934,7 @@ var Stepper = ({
7935
7934
  );
7936
7935
 
7937
7936
  // src/ui/components/ui/DatePicker.tsx
7938
- var import_react55 = require("react");
7937
+ var import_react56 = require("react");
7939
7938
  var import_react_day_picker = require("react-day-picker");
7940
7939
  var import_locale = require("react-day-picker/locale");
7941
7940
  var import_style2 = require("react-day-picker/style.css");
@@ -8004,8 +8003,8 @@ var DatePicker = ({
8004
8003
  className
8005
8004
  }) => {
8006
8005
  const isRange = mode === "range";
8007
- const [open, setOpen] = (0, import_react55.useState)(false);
8008
- const [activePreset, setActivePreset] = (0, import_react55.useState)(null);
8006
+ const [open, setOpen] = (0, import_react56.useState)(false);
8007
+ const [activePreset, setActivePreset] = (0, import_react56.useState)(null);
8009
8008
  const resolvedPresets = presets != null ? presets : isRange ? RANGE_PRESETS : SINGLE_PRESETS;
8010
8009
  const displayText = isRange ? startDate && endDate ? `${(0, import_date_fns.format)(startDate, "dd/MM/yyyy")} \u2014 ${(0, import_date_fns.format)(endDate, "dd/MM/yyyy")}` : placeholder != null ? placeholder : "S\xE9lectionner une p\xE9riode" : value ? (0, import_date_fns.format)(value, "dd/MM/yyyy") : placeholder != null ? placeholder : "S\xE9lectionner une date";
8011
8010
  const hasValue = isRange ? Boolean(startDate && endDate) : Boolean(value);
package/dist/ui/index.mjs CHANGED
@@ -3266,30 +3266,29 @@ var TableHeaderCell = ({
3266
3266
  );
3267
3267
 
3268
3268
  // src/ui/components/ui/table/TableRow.tsx
3269
+ import { forwardRef as forwardRef17 } from "react";
3269
3270
  import { jsx as jsx39 } from "react/jsx-runtime";
3270
- var TableRow = ({
3271
- children,
3272
- onClick,
3273
- className,
3274
- backgroundColor,
3275
- accentColor
3276
- }) => /* @__PURE__ */ jsx39(
3277
- "tr",
3278
- {
3279
- onClick,
3280
- className: cn(
3281
- "border-t border-grey-200 transition-colors hover:bg-black/[0.025]",
3282
- onClick && "cursor-pointer",
3283
- accentColor && "border-l-4",
3284
- className
3285
- ),
3286
- style: {
3287
- backgroundColor,
3288
- borderLeftColor: accentColor
3289
- },
3290
- children
3291
- }
3271
+ var TableRow = forwardRef17(
3272
+ ({ children, onClick, className, backgroundColor, accentColor }, ref) => /* @__PURE__ */ jsx39(
3273
+ "tr",
3274
+ {
3275
+ ref,
3276
+ onClick,
3277
+ className: cn(
3278
+ "border-t border-grey-200 transition-colors hover:bg-black/[0.025]",
3279
+ onClick && "cursor-pointer",
3280
+ accentColor && "border-l-4",
3281
+ className
3282
+ ),
3283
+ style: {
3284
+ backgroundColor,
3285
+ borderLeftColor: accentColor
3286
+ },
3287
+ children
3288
+ }
3289
+ )
3292
3290
  );
3291
+ TableRow.displayName = "TableRow";
3293
3292
 
3294
3293
  // src/ui/components/ui/table/TableCell.tsx
3295
3294
  import { jsx as jsx40 } from "react/jsx-runtime";
@@ -3385,7 +3384,7 @@ var TableFooterCell = ({
3385
3384
  import {
3386
3385
  createContext as createContext2,
3387
3386
  useContext as useContext2,
3388
- forwardRef as forwardRef17,
3387
+ forwardRef as forwardRef18,
3389
3388
  Children,
3390
3389
  cloneElement,
3391
3390
  isValidElement
@@ -3545,7 +3544,7 @@ var BADGE_ICON_COLOR_CLASS = {
3545
3544
  "orange-600": "text-orange-600",
3546
3545
  "purple-700": "text-purple-700"
3547
3546
  };
3548
- var Avatar = forwardRef17(
3547
+ var Avatar = forwardRef18(
3549
3548
  (_a, ref) => {
3550
3549
  var _b = _a, {
3551
3550
  size = 40,
@@ -3598,7 +3597,7 @@ var Avatar = forwardRef17(
3598
3597
  }
3599
3598
  );
3600
3599
  Avatar.displayName = "Avatar";
3601
- var AvatarImage = forwardRef17((_a, ref) => {
3600
+ var AvatarImage = forwardRef18((_a, ref) => {
3602
3601
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3603
3602
  return /* @__PURE__ */ jsx44(
3604
3603
  RadixAvatar.Image,
@@ -3624,7 +3623,7 @@ var FALLBACK_COLOR_CLASS = {
3624
3623
  "orange-600": "bg-orange-600 text-white",
3625
3624
  "purple-700": "bg-purple-700 text-white"
3626
3625
  };
3627
- var AvatarFallback = forwardRef17((_a, ref) => {
3626
+ var AvatarFallback = forwardRef18((_a, ref) => {
3628
3627
  var _b = _a, { color = "grey-600", className, style } = _b, props = __objRest(_b, ["color", "className", "style"]);
3629
3628
  const size = useAvatarSize();
3630
3629
  return /* @__PURE__ */ jsx44(
@@ -3641,11 +3640,11 @@ var AvatarFallback = forwardRef17((_a, ref) => {
3641
3640
  );
3642
3641
  });
3643
3642
  AvatarFallback.displayName = "AvatarFallback";
3644
- var AvatarBadge = forwardRef17(
3643
+ var AvatarBadge = forwardRef18(
3645
3644
  (_a, ref) => {
3646
- var _b = _a, { className, style } = _b, props = __objRest(_b, ["className", "style"]);
3647
- const size = useAvatarSize();
3648
- const badgeSize = Math.round(size * 0.35);
3645
+ var _b = _a, { size, className, style } = _b, props = __objRest(_b, ["size", "className", "style"]);
3646
+ const avatarSize = useAvatarSize();
3647
+ const badgeSize = size != null ? size : Math.round(avatarSize * 0.35);
3649
3648
  return /* @__PURE__ */ jsx44(
3650
3649
  "div",
3651
3650
  __spreadValues({
@@ -4243,7 +4242,7 @@ var Popover = ({
4243
4242
  ] });
4244
4243
 
4245
4244
  // src/ui/components/ui/sidebar/Sidebar.tsx
4246
- import { forwardRef as forwardRef18 } from "react";
4245
+ import { forwardRef as forwardRef19 } from "react";
4247
4246
 
4248
4247
  // src/ui/components/ui/sidebar/SidebarContext.ts
4249
4248
  import { createContext as createContext3, useContext as useContext3 } from "react";
@@ -4253,7 +4252,7 @@ var useSidebarCollapsed = () => useContext3(SidebarCollapsedContext);
4253
4252
 
4254
4253
  // src/ui/components/ui/sidebar/Sidebar.tsx
4255
4254
  import { jsx as jsx50 } from "react/jsx-runtime";
4256
- var Sidebar = forwardRef18(
4255
+ var Sidebar = forwardRef19(
4257
4256
  (_a, ref) => {
4258
4257
  var _b = _a, { collapsed = false, className, children } = _b, props = __objRest(_b, ["collapsed", "className", "children"]);
4259
4258
  return /* @__PURE__ */ jsx50(SidebarCollapsedProvider, { value: collapsed, children: /* @__PURE__ */ jsx50(
@@ -4274,9 +4273,9 @@ var Sidebar = forwardRef18(
4274
4273
  Sidebar.displayName = "Sidebar";
4275
4274
 
4276
4275
  // src/ui/components/ui/sidebar/SidebarTrigger.tsx
4277
- import { forwardRef as forwardRef19 } from "react";
4276
+ import { forwardRef as forwardRef20 } from "react";
4278
4277
  import { jsx as jsx51 } from "react/jsx-runtime";
4279
- var SidebarTrigger = forwardRef19((_a, ref) => {
4278
+ var SidebarTrigger = forwardRef20((_a, ref) => {
4280
4279
  var _b = _a, { collapsed, className } = _b, props = __objRest(_b, ["collapsed", "className"]);
4281
4280
  return /* @__PURE__ */ jsx51(
4282
4281
  "button",
@@ -4303,9 +4302,9 @@ var SidebarTrigger = forwardRef19((_a, ref) => {
4303
4302
  SidebarTrigger.displayName = "SidebarTrigger";
4304
4303
 
4305
4304
  // src/ui/components/ui/sidebar/SidebarHeader.tsx
4306
- import { forwardRef as forwardRef20 } from "react";
4305
+ import { forwardRef as forwardRef21 } from "react";
4307
4306
  import { jsx as jsx52 } from "react/jsx-runtime";
4308
- var SidebarHeader = forwardRef20(
4307
+ var SidebarHeader = forwardRef21(
4309
4308
  (_a, ref) => {
4310
4309
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4311
4310
  return /* @__PURE__ */ jsx52(
@@ -4320,9 +4319,9 @@ var SidebarHeader = forwardRef20(
4320
4319
  SidebarHeader.displayName = "SidebarHeader";
4321
4320
 
4322
4321
  // src/ui/components/ui/sidebar/SidebarContent.tsx
4323
- import { forwardRef as forwardRef21 } from "react";
4322
+ import { forwardRef as forwardRef22 } from "react";
4324
4323
  import { jsx as jsx53 } from "react/jsx-runtime";
4325
- var SidebarContent = forwardRef21(
4324
+ var SidebarContent = forwardRef22(
4326
4325
  (_a, ref) => {
4327
4326
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4328
4327
  return /* @__PURE__ */ jsx53(
@@ -4341,9 +4340,9 @@ var SidebarContent = forwardRef21(
4341
4340
  SidebarContent.displayName = "SidebarContent";
4342
4341
 
4343
4342
  // src/ui/components/ui/sidebar/SidebarGroup.tsx
4344
- import { forwardRef as forwardRef22 } from "react";
4343
+ import { forwardRef as forwardRef23 } from "react";
4345
4344
  import { jsx as jsx54, jsxs as jsxs26 } from "react/jsx-runtime";
4346
- var SidebarGroup = forwardRef22(
4345
+ var SidebarGroup = forwardRef23(
4347
4346
  (_a, ref) => {
4348
4347
  var _b = _a, { label, className, children } = _b, props = __objRest(_b, ["label", "className", "children"]);
4349
4348
  const collapsed = useSidebarCollapsed();
@@ -4364,9 +4363,9 @@ var SidebarGroup = forwardRef22(
4364
4363
  SidebarGroup.displayName = "SidebarGroup";
4365
4364
 
4366
4365
  // src/ui/components/ui/sidebar/SidebarMenuButton.tsx
4367
- import { forwardRef as forwardRef23 } from "react";
4366
+ import { forwardRef as forwardRef24 } from "react";
4368
4367
  import { jsx as jsx55, jsxs as jsxs27 } from "react/jsx-runtime";
4369
- var SidebarMenuButton = forwardRef23(
4368
+ var SidebarMenuButton = forwardRef24(
4370
4369
  (_a, ref) => {
4371
4370
  var _b = _a, {
4372
4371
  icon,
@@ -4446,9 +4445,9 @@ var SidebarMenuButton = forwardRef23(
4446
4445
  SidebarMenuButton.displayName = "SidebarMenuButton";
4447
4446
 
4448
4447
  // src/ui/components/ui/sidebar/SidebarMenuSub.tsx
4449
- import { forwardRef as forwardRef24 } from "react";
4448
+ import { forwardRef as forwardRef25 } from "react";
4450
4449
  import { jsx as jsx56 } from "react/jsx-runtime";
4451
- var SidebarMenuSub = forwardRef24(
4450
+ var SidebarMenuSub = forwardRef25(
4452
4451
  (_a, ref) => {
4453
4452
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4454
4453
  return /* @__PURE__ */ jsx56(
@@ -4466,22 +4465,22 @@ var SidebarMenuSub = forwardRef24(
4466
4465
  SidebarMenuSub.displayName = "SidebarMenuSub";
4467
4466
 
4468
4467
  // src/ui/components/ui/sidebar/SidebarMenuSubItem.tsx
4469
- import { forwardRef as forwardRef25 } from "react";
4468
+ import { forwardRef as forwardRef26 } from "react";
4470
4469
  import { jsx as jsx57 } from "react/jsx-runtime";
4471
- var SidebarMenuSubItem = forwardRef25((_a, ref) => {
4470
+ var SidebarMenuSubItem = forwardRef26((_a, ref) => {
4472
4471
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4473
4472
  return /* @__PURE__ */ jsx57("li", __spreadValues({ ref, className: cn("relative", className) }, props));
4474
4473
  });
4475
4474
  SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
4476
4475
 
4477
4476
  // src/ui/components/ui/sidebar/SidebarMenuSubButton.tsx
4478
- import { forwardRef as forwardRef26 } from "react";
4477
+ import { forwardRef as forwardRef27 } from "react";
4479
4478
  import { jsx as jsx58 } from "react/jsx-runtime";
4480
4479
  var SIZE_CLASS = {
4481
4480
  default: "h-10",
4482
4481
  lg: "h-14"
4483
4482
  };
4484
- var SidebarMenuSubButton = forwardRef26((_a, ref) => {
4483
+ var SidebarMenuSubButton = forwardRef27((_a, ref) => {
4485
4484
  var _b = _a, { active, size = "default", className } = _b, props = __objRest(_b, ["active", "size", "className"]);
4486
4485
  return /* @__PURE__ */ jsx58(
4487
4486
  "button",
@@ -4502,9 +4501,9 @@ var SidebarMenuSubButton = forwardRef26((_a, ref) => {
4502
4501
  SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
4503
4502
 
4504
4503
  // src/ui/components/ui/sidebar/SidebarFooter.tsx
4505
- import { forwardRef as forwardRef27 } from "react";
4504
+ import { forwardRef as forwardRef28 } from "react";
4506
4505
  import { jsx as jsx59 } from "react/jsx-runtime";
4507
- var SidebarFooter = forwardRef27(
4506
+ var SidebarFooter = forwardRef28(
4508
4507
  (_a, ref) => {
4509
4508
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4510
4509
  return /* @__PURE__ */ jsx59(
@@ -4542,9 +4541,9 @@ var SidebarSupportInfo = ({
4542
4541
  };
4543
4542
 
4544
4543
  // src/ui/components/ui/sidebar/SidebarMenuSearchInput.tsx
4545
- import { forwardRef as forwardRef28 } from "react";
4544
+ import { forwardRef as forwardRef29 } from "react";
4546
4545
  import { jsx as jsx61, jsxs as jsxs29 } from "react/jsx-runtime";
4547
- var SidebarMenuSearchInput = forwardRef28((_a, ref) => {
4546
+ var SidebarMenuSearchInput = forwardRef29((_a, ref) => {
4548
4547
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4549
4548
  return /* @__PURE__ */ jsxs29(InputGroup, { children: [
4550
4549
  /* @__PURE__ */ jsx61(InputGroupAddon, { align: "inline-start", children: /* @__PURE__ */ jsx61(FaIcon, { name: "magnifying-glass", size: 14, className: "text-white/50" }) }),
@@ -4898,7 +4897,7 @@ var toast = {
4898
4897
  };
4899
4898
 
4900
4899
  // src/ui/components/ui/PageContainer.tsx
4901
- import { forwardRef as forwardRef29 } from "react";
4900
+ import { forwardRef as forwardRef30 } from "react";
4902
4901
  import { cva as cva13 } from "class-variance-authority";
4903
4902
  import { jsx as jsx66 } from "react/jsx-runtime";
4904
4903
  var pageContainerVariants = cva13(
@@ -4915,7 +4914,7 @@ var pageContainerVariants = cva13(
4915
4914
  defaultVariants: { padding: "md" }
4916
4915
  }
4917
4916
  );
4918
- var PageContainer = forwardRef29(
4917
+ var PageContainer = forwardRef30(
4919
4918
  (_a, ref) => {
4920
4919
  var _b = _a, { padding, className } = _b, props = __objRest(_b, ["padding", "className"]);
4921
4920
  return /* @__PURE__ */ jsx66(
@@ -6496,7 +6495,7 @@ var Timeline = ({
6496
6495
  };
6497
6496
 
6498
6497
  // src/ui/components/ui/ColorPicker.tsx
6499
- import { forwardRef as forwardRef30, useState as useState13 } from "react";
6498
+ import { forwardRef as forwardRef31, useState as useState13 } from "react";
6500
6499
  import { cva as cva15 } from "class-variance-authority";
6501
6500
  import { jsx as jsx82, jsxs as jsxs46 } from "react/jsx-runtime";
6502
6501
  var swatchVariants = cva15(
@@ -6525,7 +6524,7 @@ var inputVariants = cva15(
6525
6524
  defaultVariants: { size: "m" }
6526
6525
  }
6527
6526
  );
6528
- var ColorPicker = forwardRef30(
6527
+ var ColorPicker = forwardRef31(
6529
6528
  ({
6530
6529
  label,
6531
6530
  value,
@@ -6888,7 +6887,7 @@ var FilePicker = ({
6888
6887
  };
6889
6888
 
6890
6889
  // src/ui/components/ui/Item.tsx
6891
- import { forwardRef as forwardRef31 } from "react";
6890
+ import { forwardRef as forwardRef32 } from "react";
6892
6891
  import { cva as cva16 } from "class-variance-authority";
6893
6892
  import { jsx as jsx85 } from "react/jsx-runtime";
6894
6893
  var itemVariants = cva16(
@@ -6908,7 +6907,7 @@ var itemVariants = cva16(
6908
6907
  defaultVariants: { variant: "default", size: "default" }
6909
6908
  }
6910
6909
  );
6911
- var Item4 = forwardRef31(
6910
+ var Item4 = forwardRef32(
6912
6911
  (_a, ref) => {
6913
6912
  var _b = _a, { variant, size, className } = _b, props = __objRest(_b, ["variant", "size", "className"]);
6914
6913
  return /* @__PURE__ */ jsx85(
@@ -7469,7 +7468,7 @@ var ScrollArea = (_a) => {
7469
7468
  };
7470
7469
 
7471
7470
  // src/ui/components/ui/Message.tsx
7472
- import { forwardRef as forwardRef32 } from "react";
7471
+ import { forwardRef as forwardRef33 } from "react";
7473
7472
  import { jsx as jsx90, jsxs as jsxs53 } from "react/jsx-runtime";
7474
7473
  var BUBBLE_BACKGROUND = {
7475
7474
  own: { solid: "bg-blue-700", pale: "bg-blue-50" },
@@ -7481,7 +7480,7 @@ var BUBBLE_TAIL = {
7481
7480
  teammate: "rounded-br-none",
7482
7481
  other: "rounded-bl-none"
7483
7482
  };
7484
- var Message = forwardRef32(
7483
+ var Message = forwardRef33(
7485
7484
  (_a, ref) => {
7486
7485
  var _b = _a, {
7487
7486
  isOwn = false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.396",
3
+ "version": "1.0.398",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",