@helpwave/hightide 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -11378,24 +11378,22 @@ var VerticalDivider = ({
11378
11378
  };
11379
11379
 
11380
11380
  // src/components/layout/Visibility.tsx
11381
+ import { Fragment as Fragment4, jsx as jsx35 } from "react/jsx-runtime";
11381
11382
  function Visibility({ children, isVisible }) {
11382
- if (isVisible) {
11383
- return children;
11384
- }
11385
- return void 0;
11383
+ return /* @__PURE__ */ jsx35(Fragment4, { children: isVisible && children });
11386
11384
  }
11387
11385
 
11388
11386
  // src/components/loading-states/ErrorComponent.tsx
11389
11387
  import { AlertOctagon } from "lucide-react";
11390
11388
  import clsx26 from "clsx";
11391
- import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
11389
+ import { jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
11392
11390
  var ErrorComponent = ({
11393
11391
  errorText,
11394
11392
  classname
11395
11393
  }) => {
11396
11394
  const translation = useHightideTranslation();
11397
11395
  return /* @__PURE__ */ jsxs22("div", { className: clsx26("flex-col-4 items-center justify-center w-full h-24", classname), children: [
11398
- /* @__PURE__ */ jsx35(AlertOctagon, { size: 64, className: "text-warning" }),
11396
+ /* @__PURE__ */ jsx36(AlertOctagon, { size: 64, className: "text-warning" }),
11399
11397
  errorText ?? `${translation("errorOccurred")} :(`
11400
11398
  ] });
11401
11399
  };
@@ -11405,14 +11403,14 @@ import { useState as useState20 } from "react";
11405
11403
 
11406
11404
  // src/components/loading-states/LoadingContainer.tsx
11407
11405
  import { clsx as clsx27 } from "clsx";
11408
- import { jsx as jsx36 } from "react/jsx-runtime";
11406
+ import { jsx as jsx37 } from "react/jsx-runtime";
11409
11407
  var LoadingContainer = ({ className }) => {
11410
- return /* @__PURE__ */ jsx36("div", { className: clsx27("relative overflow-hidden shimmer bg-disabled/30 rounded-md", className) });
11408
+ return /* @__PURE__ */ jsx37("div", { className: clsx27("relative overflow-hidden shimmer bg-disabled/30 rounded-md", className) });
11411
11409
  };
11412
11410
 
11413
11411
  // src/components/loading-states/LoadingAndErrorComponent.tsx
11414
11412
  import { clsx as clsx28 } from "clsx";
11415
- import { jsx as jsx37 } from "react/jsx-runtime";
11413
+ import { Fragment as Fragment5, jsx as jsx38 } from "react/jsx-runtime";
11416
11414
  var LoadingAndErrorComponent = ({
11417
11415
  children,
11418
11416
  isLoading = false,
@@ -11432,40 +11430,40 @@ var LoadingAndErrorComponent = ({
11432
11430
  }, minimumLoadingDuration);
11433
11431
  }
11434
11432
  if (isLoading || minimumLoadingDuration && isInMinimumLoading) {
11435
- return loadingComponent ?? /* @__PURE__ */ jsx37(LoadingContainer, { className: clsx28(className) });
11433
+ return /* @__PURE__ */ jsx38(Fragment5, { children: loadingComponent ?? /* @__PURE__ */ jsx38(LoadingContainer, { className: clsx28(className) }) });
11436
11434
  }
11437
11435
  if (hasError) {
11438
- return errorComponent ?? /* @__PURE__ */ jsx37(LoadingContainer, { className: clsx28("bg-negative", className) });
11436
+ return /* @__PURE__ */ jsx38(Fragment5, { children: errorComponent ?? /* @__PURE__ */ jsx38(LoadingContainer, { className: clsx28("bg-negative", className) }) });
11439
11437
  }
11440
- return children;
11438
+ return /* @__PURE__ */ jsx38(Fragment5, { children });
11441
11439
  };
11442
11440
 
11443
11441
  // src/components/loading-states/LoadingAnimation.tsx
11444
11442
  import clsx29 from "clsx";
11445
- import { jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
11443
+ import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
11446
11444
  var LoadingAnimation = ({
11447
11445
  loadingText,
11448
11446
  classname
11449
11447
  }) => {
11450
11448
  const translation = useHightideTranslation();
11451
11449
  return /* @__PURE__ */ jsxs23("div", { className: clsx29("flex-col-2 items-center justify-center w-full h-24", classname), children: [
11452
- /* @__PURE__ */ jsx38(HelpwaveLogo, { animate: "loading" }),
11450
+ /* @__PURE__ */ jsx39(HelpwaveLogo, { animate: "loading" }),
11453
11451
  loadingText ?? `${translation("loading")}...`
11454
11452
  ] });
11455
11453
  };
11456
11454
 
11457
11455
  // src/components/loading-states/LoadingButton.tsx
11458
11456
  import clsx30 from "clsx";
11459
- import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
11457
+ import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
11460
11458
  var LoadingButton = ({ isLoading = false, size = "medium", onClick, ...rest }) => {
11461
11459
  return /* @__PURE__ */ jsxs24("div", { className: "inline-block relative", children: [
11462
- isLoading && /* @__PURE__ */ jsx39("div", { className: clsx30("flex-row-2 absolute inset-0 items-center justify-center bg-white/40"), children: /* @__PURE__ */ jsx39(HelpwaveLogo, { animate: "loading", className: "text-white" }) }),
11463
- /* @__PURE__ */ jsx39(Button, { ...rest, size, disabled: rest.disabled, onClick })
11460
+ isLoading && /* @__PURE__ */ jsx40("div", { className: clsx30("flex-row-2 absolute inset-0 items-center justify-center bg-white/40"), children: /* @__PURE__ */ jsx40(HelpwaveLogo, { animate: "loading", className: "text-white" }) }),
11461
+ /* @__PURE__ */ jsx40(Button, { ...rest, size, disabled: rest.disabled, onClick })
11464
11462
  ] });
11465
11463
  };
11466
11464
 
11467
11465
  // src/components/loading-states/ProgressIndicator.tsx
11468
- import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
11466
+ import { jsx as jsx41, jsxs as jsxs25 } from "react/jsx-runtime";
11469
11467
  var sizeMapping = { small: 16, medium: 24, big: 48 };
11470
11468
  var ProgressIndicator = ({
11471
11469
  progress,
@@ -11491,7 +11489,7 @@ var ProgressIndicator = ({
11491
11489
  transform: `rotate(${rotation}deg)`
11492
11490
  },
11493
11491
  children: [
11494
- /* @__PURE__ */ jsx40(
11492
+ /* @__PURE__ */ jsx41(
11495
11493
  "circle",
11496
11494
  {
11497
11495
  cx: center,
@@ -11502,7 +11500,7 @@ var ProgressIndicator = ({
11502
11500
  className: "stroke-progress-indicator-fill"
11503
11501
  }
11504
11502
  ),
11505
- /* @__PURE__ */ jsx40(
11503
+ /* @__PURE__ */ jsx41(
11506
11504
  "circle",
11507
11505
  {
11508
11506
  cx: center,
@@ -11523,13 +11521,13 @@ var ProgressIndicator = ({
11523
11521
  // src/components/navigation/BreadCrumb.tsx
11524
11522
  var import_link = __toESM(require_link2());
11525
11523
  import clsx31 from "clsx";
11526
- import { Fragment as Fragment4 } from "react";
11527
- import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
11524
+ import { Fragment as Fragment6 } from "react";
11525
+ import { jsx as jsx42, jsxs as jsxs26 } from "react/jsx-runtime";
11528
11526
  var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
11529
- return /* @__PURE__ */ jsx41("div", { className: clsx31("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
11527
+ return /* @__PURE__ */ jsx42("div", { className: clsx31("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
11530
11528
  const isLast = index === crumbs.length - 1;
11531
- return /* @__PURE__ */ jsxs26(Fragment4, { children: [
11532
- /* @__PURE__ */ jsx41(
11529
+ return /* @__PURE__ */ jsxs26(Fragment6, { children: [
11530
+ /* @__PURE__ */ jsx42(
11533
11531
  import_link.default,
11534
11532
  {
11535
11533
  href: crumb.link,
@@ -11544,7 +11542,7 @@ var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
11544
11542
  children: crumb.display
11545
11543
  }
11546
11544
  ),
11547
- !isLast && /* @__PURE__ */ jsx41("span", { className: clsx31(`px-1`, "text-description"), children: "/" })
11545
+ !isLast && /* @__PURE__ */ jsx42("span", { className: clsx31(`px-1`, "text-description"), children: "/" })
11548
11546
  ] }, index);
11549
11547
  }) });
11550
11548
  };
@@ -11555,7 +11553,7 @@ import { Menu as MenuIcon, XIcon as XIcon2 } from "lucide-react";
11555
11553
  import { useEffect as useEffect20 } from "react";
11556
11554
  import { useCallback as useCallback11, useId as useId8, useRef as useRef11, useState as useState21 } from "react";
11557
11555
  import clsx32 from "clsx";
11558
- import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
11556
+ import { Fragment as Fragment7, jsx as jsx43, jsxs as jsxs27 } from "react/jsx-runtime";
11559
11557
  function isSubItem(item) {
11560
11558
  return "items" in item && Array.isArray(item.items);
11561
11559
  }
@@ -11583,7 +11581,7 @@ var NavigationItemWithSubItem = ({
11583
11581
  }
11584
11582
  }, []);
11585
11583
  const zIndex = useZIndexRegister(isOpen);
11586
- return /* @__PURE__ */ jsxs27(Fragment5, { children: [
11584
+ return /* @__PURE__ */ jsxs27(Fragment7, { children: [
11587
11585
  /* @__PURE__ */ jsxs27(
11588
11586
  "button",
11589
11587
  {
@@ -11599,11 +11597,11 @@ var NavigationItemWithSubItem = ({
11599
11597
  "aria-controls": "navigation-items-" + id,
11600
11598
  children: [
11601
11599
  label,
11602
- /* @__PURE__ */ jsx42(ExpansionIcon, { isExpanded: isOpen })
11600
+ /* @__PURE__ */ jsx43(ExpansionIcon, { isExpanded: isOpen })
11603
11601
  ]
11604
11602
  }
11605
11603
  ),
11606
- /* @__PURE__ */ jsx42(
11604
+ /* @__PURE__ */ jsx43(
11607
11605
  "ul",
11608
11606
  {
11609
11607
  id: "navigation-items-" + id,
@@ -11622,7 +11620,7 @@ var NavigationItemWithSubItem = ({
11622
11620
  { "opacity-0": !style }
11623
11621
  ),
11624
11622
  style: { ...style, zIndex },
11625
- children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ jsx42("li", { children: /* @__PURE__ */ jsx42(
11623
+ children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ jsx43("li", { children: /* @__PURE__ */ jsx43(
11626
11624
  import_link2.default,
11627
11625
  {
11628
11626
  href: link,
@@ -11636,7 +11634,7 @@ var NavigationItemWithSubItem = ({
11636
11634
  ] });
11637
11635
  };
11638
11636
  var NavigationItemList = ({ items, ...restProps }) => {
11639
- return /* @__PURE__ */ jsx42("ul", { ...restProps, className: clsx32("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ jsx42("li", { children: isSubItem(item) ? /* @__PURE__ */ jsx42(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ jsx42(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
11637
+ return /* @__PURE__ */ jsx43("ul", { ...restProps, className: clsx32("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ jsx43("li", { children: isSubItem(item) ? /* @__PURE__ */ jsx43(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ jsx43(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
11640
11638
  };
11641
11639
  var Navigation = ({ ...props }) => {
11642
11640
  const [isMobileOpen, setIsMobileOpen] = useState21(false);
@@ -11647,14 +11645,14 @@ var Navigation = ({ ...props }) => {
11647
11645
  }, [isMobileOpen]);
11648
11646
  const zIndex = useZIndexRegister(isMobileOpen);
11649
11647
  return /* @__PURE__ */ jsxs27("nav", { children: [
11650
- /* @__PURE__ */ jsx42(
11648
+ /* @__PURE__ */ jsx43(
11651
11649
  NavigationItemList,
11652
11650
  {
11653
11651
  ...props,
11654
11652
  className: clsx32("hidden", { "desktop:flex": !isMobileOpen }, props.className)
11655
11653
  }
11656
11654
  ),
11657
- /* @__PURE__ */ jsx42(
11655
+ /* @__PURE__ */ jsx43(
11658
11656
  Button,
11659
11657
  {
11660
11658
  layout: "icon",
@@ -11665,7 +11663,7 @@ var Navigation = ({ ...props }) => {
11665
11663
  "aria-haspopup": "true",
11666
11664
  "aria-expanded": isMobileOpen,
11667
11665
  "aria-controls": "navigation-menu-" + id,
11668
- children: /* @__PURE__ */ jsx42(MenuIcon, { className: "w-6 h-6" })
11666
+ children: /* @__PURE__ */ jsx43(MenuIcon, { className: "w-6 h-6" })
11669
11667
  }
11670
11668
  ),
11671
11669
  /* @__PURE__ */ jsxs27(
@@ -11690,17 +11688,17 @@ var Navigation = ({ ...props }) => {
11690
11688
  ),
11691
11689
  style: { zIndex },
11692
11690
  children: [
11693
- /* @__PURE__ */ jsx42(
11691
+ /* @__PURE__ */ jsx43(
11694
11692
  Button,
11695
11693
  {
11696
11694
  layout: "icon",
11697
11695
  coloringStyle: "text",
11698
11696
  color: "neutral",
11699
11697
  onClick: () => setIsMobileOpen(false),
11700
- children: /* @__PURE__ */ jsx42(XIcon2, {})
11698
+ children: /* @__PURE__ */ jsx43(XIcon2, {})
11701
11699
  }
11702
11700
  ),
11703
- /* @__PURE__ */ jsx42(NavigationItemList, { ...props, className: clsx32("flex-col-8", props.className) })
11701
+ /* @__PURE__ */ jsx43(NavigationItemList, { ...props, className: clsx32("flex-col-8", props.className) })
11704
11702
  ]
11705
11703
  }
11706
11704
  )
@@ -11711,7 +11709,7 @@ var Navigation = ({ ...props }) => {
11711
11709
  import { ChevronFirst, ChevronLast, ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
11712
11710
  import clsx33 from "clsx";
11713
11711
  import { useEffect as useEffect21, useState as useState22 } from "react";
11714
- import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
11712
+ import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
11715
11713
  var Pagination = ({
11716
11714
  pageIndex,
11717
11715
  pageCount,
@@ -11735,7 +11733,7 @@ var Pagination = ({
11735
11733
  onPageChanged(page);
11736
11734
  };
11737
11735
  return /* @__PURE__ */ jsxs28("div", { className: clsx33("flex-row-1", className), style, children: [
11738
- /* @__PURE__ */ jsx43(
11736
+ /* @__PURE__ */ jsx44(
11739
11737
  Button,
11740
11738
  {
11741
11739
  layout: "icon",
@@ -11743,10 +11741,10 @@ var Pagination = ({
11743
11741
  color: "neutral",
11744
11742
  onClick: () => changePage(0),
11745
11743
  disabled: onFirstPage || noPages,
11746
- children: /* @__PURE__ */ jsx43(ChevronFirst, {})
11744
+ children: /* @__PURE__ */ jsx44(ChevronFirst, {})
11747
11745
  }
11748
11746
  ),
11749
- /* @__PURE__ */ jsx43(
11747
+ /* @__PURE__ */ jsx44(
11750
11748
  Button,
11751
11749
  {
11752
11750
  layout: "icon",
@@ -11754,11 +11752,11 @@ var Pagination = ({
11754
11752
  color: "neutral",
11755
11753
  onClick: () => changePage(pageIndex - 1),
11756
11754
  disabled: onFirstPage || noPages,
11757
- children: /* @__PURE__ */ jsx43(ChevronLeft2, {})
11755
+ children: /* @__PURE__ */ jsx44(ChevronLeft2, {})
11758
11756
  }
11759
11757
  ),
11760
11758
  /* @__PURE__ */ jsxs28("div", { className: "flex-row-2 min-w-56 items-center justify-center mx-2 text-center", children: [
11761
- /* @__PURE__ */ jsx43(
11759
+ /* @__PURE__ */ jsx44(
11762
11760
  Input,
11763
11761
  {
11764
11762
  value,
@@ -11782,8 +11780,8 @@ var Pagination = ({
11782
11780
  editCompleteOptions: { delay: 800 }
11783
11781
  }
11784
11782
  ),
11785
- /* @__PURE__ */ jsx43("span", { className: "select-none w-10", children: translation("of") }),
11786
- /* @__PURE__ */ jsx43(
11783
+ /* @__PURE__ */ jsx44("span", { className: "select-none w-10", children: translation("of") }),
11784
+ /* @__PURE__ */ jsx44(
11787
11785
  "span",
11788
11786
  {
11789
11787
  className: "flex-row-2 w-24 items-center justify-center select-none h-10 bg-input-background text-input-text rounded-md font-bold",
@@ -11791,7 +11789,7 @@ var Pagination = ({
11791
11789
  }
11792
11790
  )
11793
11791
  ] }),
11794
- /* @__PURE__ */ jsx43(
11792
+ /* @__PURE__ */ jsx44(
11795
11793
  Button,
11796
11794
  {
11797
11795
  layout: "icon",
@@ -11799,10 +11797,10 @@ var Pagination = ({
11799
11797
  color: "neutral",
11800
11798
  onClick: () => changePage(pageIndex + 1),
11801
11799
  disabled: onLastPage || noPages,
11802
- children: /* @__PURE__ */ jsx43(ChevronRight2, {})
11800
+ children: /* @__PURE__ */ jsx44(ChevronRight2, {})
11803
11801
  }
11804
11802
  ),
11805
- /* @__PURE__ */ jsx43(
11803
+ /* @__PURE__ */ jsx44(
11806
11804
  Button,
11807
11805
  {
11808
11806
  layout: "icon",
@@ -11810,7 +11808,7 @@ var Pagination = ({
11810
11808
  color: "neutral",
11811
11809
  onClick: () => changePage(pageCount - 1),
11812
11810
  disabled: onLastPage || noPages,
11813
- children: /* @__PURE__ */ jsx43(ChevronLast, {})
11811
+ children: /* @__PURE__ */ jsx44(ChevronLast, {})
11814
11812
  }
11815
11813
  )
11816
11814
  ] });
@@ -11819,7 +11817,7 @@ var Pagination = ({
11819
11817
  // src/components/navigation/StepperBar.tsx
11820
11818
  import { Check, ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight3 } from "lucide-react";
11821
11819
  import clsx34 from "clsx";
11822
- import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
11820
+ import { jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
11823
11821
  var defaultState = {
11824
11822
  currentStep: 0,
11825
11823
  seenSteps: /* @__PURE__ */ new Set([0])
@@ -11846,7 +11844,7 @@ var StepperBar = ({
11846
11844
  {
11847
11845
  className: clsx34("flex-row-2 justify-between", className),
11848
11846
  children: [
11849
- /* @__PURE__ */ jsx44("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ jsxs29(
11847
+ /* @__PURE__ */ jsx45("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ jsxs29(
11850
11848
  Button,
11851
11849
  {
11852
11850
  disabled: currentStep === 0 || disabledSteps.has(currentStep),
@@ -11855,14 +11853,14 @@ var StepperBar = ({
11855
11853
  },
11856
11854
  className: "flex-row-1 items-center justify-center",
11857
11855
  children: [
11858
- /* @__PURE__ */ jsx44(ChevronLeft3, { size: 14 }),
11856
+ /* @__PURE__ */ jsx45(ChevronLeft3, { size: 14 }),
11859
11857
  translation("back")
11860
11858
  ]
11861
11859
  }
11862
11860
  ) }),
11863
- /* @__PURE__ */ jsx44("div", { className: "flex-row-2 flex-[5] justify-center items-center", children: showDots && dots.map((value, index) => {
11861
+ /* @__PURE__ */ jsx45("div", { className: "flex-row-2 flex-[5] justify-center items-center", children: showDots && dots.map((value, index) => {
11864
11862
  const seen = seenSteps.has(index);
11865
- return /* @__PURE__ */ jsx44(
11863
+ return /* @__PURE__ */ jsx45(
11866
11864
  "div",
11867
11865
  {
11868
11866
  onClick: () => seen && update(index),
@@ -11882,7 +11880,7 @@ var StepperBar = ({
11882
11880
  index
11883
11881
  );
11884
11882
  }) }),
11885
- currentStep !== numberOfSteps && /* @__PURE__ */ jsx44("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ jsxs29(
11883
+ currentStep !== numberOfSteps && /* @__PURE__ */ jsx45("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ jsxs29(
11886
11884
  Button,
11887
11885
  {
11888
11886
  onClick: () => update(currentStep + 1),
@@ -11890,18 +11888,18 @@ var StepperBar = ({
11890
11888
  disabled: disabledSteps.has(currentStep),
11891
11889
  children: [
11892
11890
  translation("next"),
11893
- /* @__PURE__ */ jsx44(ChevronRight3, { size: 14 })
11891
+ /* @__PURE__ */ jsx45(ChevronRight3, { size: 14 })
11894
11892
  ]
11895
11893
  }
11896
11894
  ) }),
11897
- currentStep === numberOfSteps && /* @__PURE__ */ jsx44("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ jsxs29(
11895
+ currentStep === numberOfSteps && /* @__PURE__ */ jsx45("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ jsxs29(
11898
11896
  Button,
11899
11897
  {
11900
11898
  disabled: disabledSteps.has(currentStep),
11901
11899
  onClick: onFinish,
11902
11900
  className: "flex-row-1 items-center justify-center",
11903
11901
  children: [
11904
- /* @__PURE__ */ jsx44(Check, { size: 14 }),
11902
+ /* @__PURE__ */ jsx45(Check, { size: 14 }),
11905
11903
  finishText ?? translation("confirm")
11906
11904
  ]
11907
11905
  }
@@ -11912,7 +11910,7 @@ var StepperBar = ({
11912
11910
  };
11913
11911
  var StepperBarUncontrolled = ({ state, onChange, ...props }) => {
11914
11912
  const [usedState, setUsedState] = useOverwritableState(state, onChange);
11915
- return /* @__PURE__ */ jsx44(
11913
+ return /* @__PURE__ */ jsx45(
11916
11914
  StepperBar,
11917
11915
  {
11918
11916
  ...props,
@@ -11928,7 +11926,7 @@ import { Check as Check3 } from "lucide-react";
11928
11926
  // src/components/user-action/Checkbox.tsx
11929
11927
  import { Check as Check2, Minus } from "lucide-react";
11930
11928
  import clsx35 from "clsx";
11931
- import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
11929
+ import { jsx as jsx46, jsxs as jsxs30 } from "react/jsx-runtime";
11932
11930
  var checkboxSizeMapping = {
11933
11931
  small: "size-5 border-2",
11934
11932
  medium: "size-6 border-2",
@@ -11982,8 +11980,8 @@ var Checkbox = ({
11982
11980
  "aria-disabled": disabled,
11983
11981
  tabIndex: disabled ? -1 : 0,
11984
11982
  children: [
11985
- !indeterminate && /* @__PURE__ */ jsx45(Check2, { className: innerIconSize, "aria-hidden": true }),
11986
- indeterminate && /* @__PURE__ */ jsx45(Minus, { className: innerIconSize, "aria-hidden": true })
11983
+ !indeterminate && /* @__PURE__ */ jsx46(Check2, { className: innerIconSize, "aria-hidden": true }),
11984
+ indeterminate && /* @__PURE__ */ jsx46(Minus, { className: innerIconSize, "aria-hidden": true })
11987
11985
  ]
11988
11986
  }
11989
11987
  );
@@ -11994,7 +11992,7 @@ var CheckboxUncontrolled = ({
11994
11992
  ...props
11995
11993
  }) => {
11996
11994
  const [checked, setChecked] = useOverwritableState(initialChecked, onCheckedChange);
11997
- return /* @__PURE__ */ jsx45(
11995
+ return /* @__PURE__ */ jsx46(
11998
11996
  Checkbox,
11999
11997
  {
12000
11998
  ...props,
@@ -12007,7 +12005,7 @@ var CheckboxUncontrolled = ({
12007
12005
  // src/components/properties/PropertyBase.tsx
12008
12006
  import { AlertTriangle } from "lucide-react";
12009
12007
  import clsx36 from "clsx";
12010
- import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
12008
+ import { jsx as jsx47, jsxs as jsxs31 } from "react/jsx-runtime";
12011
12009
  var PropertyBase = ({
12012
12010
  name,
12013
12011
  input,
@@ -12033,8 +12031,8 @@ var PropertyBase = ({
12033
12031
  className
12034
12032
  ),
12035
12033
  children: [
12036
- /* @__PURE__ */ jsx46("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
12037
- /* @__PURE__ */ jsx46("span", { className: "font-semibold", children: name })
12034
+ /* @__PURE__ */ jsx47("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
12035
+ /* @__PURE__ */ jsx47("span", { className: "font-semibold", children: name })
12038
12036
  ]
12039
12037
  }
12040
12038
  ),
@@ -12051,8 +12049,8 @@ var PropertyBase = ({
12051
12049
  ),
12052
12050
  children: [
12053
12051
  input({ softRequired, hasValue }),
12054
- requiredAndNoValue && /* @__PURE__ */ jsx46("div", { className: "text-warning", children: /* @__PURE__ */ jsx46(AlertTriangle, { size: 24 }) }),
12055
- onRemove && !readOnly && /* @__PURE__ */ jsx46(
12052
+ requiredAndNoValue && /* @__PURE__ */ jsx47("div", { className: "text-warning", children: /* @__PURE__ */ jsx47(AlertTriangle, { size: 24 }) }),
12053
+ onRemove && !readOnly && /* @__PURE__ */ jsx47(
12056
12054
  Button,
12057
12055
  {
12058
12056
  onClick: onRemove,
@@ -12071,7 +12069,7 @@ var PropertyBase = ({
12071
12069
 
12072
12070
  // src/components/properties/CheckboxProperty.tsx
12073
12071
  import { useId as useId9 } from "react";
12074
- import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
12072
+ import { jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
12075
12073
  var CheckboxProperty = ({
12076
12074
  value,
12077
12075
  onChange,
@@ -12080,15 +12078,15 @@ var CheckboxProperty = ({
12080
12078
  }) => {
12081
12079
  const translation = useHightideTranslation();
12082
12080
  const id = useId9();
12083
- return /* @__PURE__ */ jsx47(
12081
+ return /* @__PURE__ */ jsx48(
12084
12082
  PropertyBase,
12085
12083
  {
12086
12084
  ...baseProps,
12087
12085
  hasValue: true,
12088
12086
  readOnly,
12089
- icon: /* @__PURE__ */ jsx47(Check3, { size: 24 }),
12087
+ icon: /* @__PURE__ */ jsx48(Check3, { size: 24 }),
12090
12088
  input: () => /* @__PURE__ */ jsxs32("div", { className: "flex-row-2 items-center", children: [
12091
- /* @__PURE__ */ jsx47(
12089
+ /* @__PURE__ */ jsx48(
12092
12090
  Checkbox,
12093
12091
  {
12094
12092
  id,
@@ -12098,7 +12096,7 @@ var CheckboxProperty = ({
12098
12096
  "aria-labelledby": id + "label"
12099
12097
  }
12100
12098
  ),
12101
- /* @__PURE__ */ jsx47(Label, { id: id + "label", children: `${translation("yes")}/${translation("no")}` })
12099
+ /* @__PURE__ */ jsx48(Label, { id: id + "label", children: `${translation("yes")}/${translation("no")}` })
12102
12100
  ] })
12103
12101
  }
12104
12102
  );
@@ -12107,7 +12105,7 @@ var CheckboxProperty = ({
12107
12105
  // src/components/properties/DateProperty.tsx
12108
12106
  import { CalendarDays } from "lucide-react";
12109
12107
  import clsx37 from "clsx";
12110
- import { jsx as jsx48 } from "react/jsx-runtime";
12108
+ import { jsx as jsx49 } from "react/jsx-runtime";
12111
12109
  var DateProperty = ({
12112
12110
  value,
12113
12111
  onChange,
@@ -12118,13 +12116,13 @@ var DateProperty = ({
12118
12116
  }) => {
12119
12117
  const hasValue = !!value;
12120
12118
  const dateText = value ? type === "dateTime" ? formatDateTime(value) : formatDate(value) : "";
12121
- return /* @__PURE__ */ jsx48(
12119
+ return /* @__PURE__ */ jsx49(
12122
12120
  PropertyBase,
12123
12121
  {
12124
12122
  ...baseProps,
12125
12123
  hasValue,
12126
- icon: /* @__PURE__ */ jsx48(CalendarDays, { size: 24 }),
12127
- input: ({ softRequired }) => /* @__PURE__ */ jsx48(
12124
+ icon: /* @__PURE__ */ jsx49(CalendarDays, { size: 24 }),
12125
+ input: ({ softRequired }) => /* @__PURE__ */ jsx49(
12128
12126
  Input,
12129
12127
  {
12130
12128
  className: clsx37("default-style-none focus-style-none", { "bg-surface-warning": softRequired && !hasValue }),
@@ -12150,7 +12148,7 @@ var DateProperty = ({
12150
12148
  // src/components/properties/MultiSelectProperty.tsx
12151
12149
  import { List } from "lucide-react";
12152
12150
  import clsx38 from "clsx";
12153
- import { jsx as jsx49 } from "react/jsx-runtime";
12151
+ import { jsx as jsx50 } from "react/jsx-runtime";
12154
12152
  var MultiSelectProperty = ({
12155
12153
  children,
12156
12154
  values,
@@ -12158,13 +12156,13 @@ var MultiSelectProperty = ({
12158
12156
  ...props
12159
12157
  }) => {
12160
12158
  const hasValue = values.length > 0;
12161
- return /* @__PURE__ */ jsx49(
12159
+ return /* @__PURE__ */ jsx50(
12162
12160
  PropertyBase,
12163
12161
  {
12164
12162
  ...props,
12165
12163
  hasValue,
12166
- icon: /* @__PURE__ */ jsx49(List, { size: 24 }),
12167
- input: ({ softRequired }) => /* @__PURE__ */ jsx49(
12164
+ icon: /* @__PURE__ */ jsx50(List, { size: 24 }),
12165
+ input: ({ softRequired }) => /* @__PURE__ */ jsx50(
12168
12166
  MultiSelectChipDisplay,
12169
12167
  {
12170
12168
  values,
@@ -12191,7 +12189,7 @@ var MultiSelectProperty = ({
12191
12189
  // src/components/properties/NumberProperty.tsx
12192
12190
  import { Binary } from "lucide-react";
12193
12191
  import clsx39 from "clsx";
12194
- import { jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
12192
+ import { jsx as jsx51, jsxs as jsxs33 } from "react/jsx-runtime";
12195
12193
  var NumberProperty = ({
12196
12194
  value,
12197
12195
  onChange,
@@ -12203,13 +12201,13 @@ var NumberProperty = ({
12203
12201
  }) => {
12204
12202
  const translation = useHightideTranslation();
12205
12203
  const hasValue = value !== void 0;
12206
- return /* @__PURE__ */ jsx50(
12204
+ return /* @__PURE__ */ jsx51(
12207
12205
  PropertyBase,
12208
12206
  {
12209
12207
  ...baseProps,
12210
12208
  onRemove,
12211
12209
  hasValue,
12212
- icon: /* @__PURE__ */ jsx50(Binary, { size: 24 }),
12210
+ icon: /* @__PURE__ */ jsx51(Binary, { size: 24 }),
12213
12211
  input: ({ softRequired }) => (
12214
12212
  // TODO this max width might be to low for some numbers
12215
12213
  /* @__PURE__ */ jsxs33(
@@ -12217,7 +12215,7 @@ var NumberProperty = ({
12217
12215
  {
12218
12216
  className: clsx39("relative flex-row-2 max-w-56", { "text-warning": softRequired && !hasValue }),
12219
12217
  children: [
12220
- /* @__PURE__ */ jsx50(
12218
+ /* @__PURE__ */ jsx51(
12221
12219
  Input,
12222
12220
  {
12223
12221
  className: clsx39("default-style-none focus-style-none w-full pr-8", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
@@ -12243,7 +12241,7 @@ var NumberProperty = ({
12243
12241
  }
12244
12242
  }
12245
12243
  ),
12246
- suffix && /* @__PURE__ */ jsx50(
12244
+ suffix && /* @__PURE__ */ jsx51(
12247
12245
  "span",
12248
12246
  {
12249
12247
  className: clsx39(
@@ -12264,7 +12262,7 @@ var NumberProperty = ({
12264
12262
  // src/components/properties/SelectProperty.tsx
12265
12263
  import { List as List2 } from "lucide-react";
12266
12264
  import clsx40 from "clsx";
12267
- import { jsx as jsx51 } from "react/jsx-runtime";
12265
+ import { jsx as jsx52 } from "react/jsx-runtime";
12268
12266
  var SingleSelectProperty = ({
12269
12267
  children,
12270
12268
  value,
@@ -12273,13 +12271,13 @@ var SingleSelectProperty = ({
12273
12271
  ...props
12274
12272
  }) => {
12275
12273
  const hasValue = value !== void 0;
12276
- return /* @__PURE__ */ jsx51(
12274
+ return /* @__PURE__ */ jsx52(
12277
12275
  PropertyBase,
12278
12276
  {
12279
12277
  ...props,
12280
12278
  hasValue,
12281
- icon: /* @__PURE__ */ jsx51(List2, { size: 24 }),
12282
- input: ({ softRequired }) => /* @__PURE__ */ jsx51(
12279
+ icon: /* @__PURE__ */ jsx52(List2, { size: 24 }),
12280
+ input: ({ softRequired }) => /* @__PURE__ */ jsx52(
12283
12281
  Select,
12284
12282
  {
12285
12283
  value,
@@ -12308,7 +12306,7 @@ import clsx42 from "clsx";
12308
12306
  // src/components/user-action/Textarea.tsx
12309
12307
  import { forwardRef as forwardRef8, useId as useId10 } from "react";
12310
12308
  import clsx41 from "clsx";
12311
- import { jsx as jsx52, jsxs as jsxs34 } from "react/jsx-runtime";
12309
+ import { jsx as jsx53, jsxs as jsxs34 } from "react/jsx-runtime";
12312
12310
  var Textarea = forwardRef8(function Textarea2({
12313
12311
  id,
12314
12312
  onChange,
@@ -12325,7 +12323,7 @@ var Textarea = forwardRef8(function Textarea2({
12325
12323
  onEditCompleted?.(text);
12326
12324
  clearTimer();
12327
12325
  };
12328
- return /* @__PURE__ */ jsx52(
12326
+ return /* @__PURE__ */ jsx53(
12329
12327
  "textarea",
12330
12328
  {
12331
12329
  ...props,
@@ -12357,7 +12355,7 @@ var TextareaUncontrolled = ({
12357
12355
  ...props
12358
12356
  }) => {
12359
12357
  const [text, setText] = useOverwritableState(value, onChangeText);
12360
- return /* @__PURE__ */ jsx52(
12358
+ return /* @__PURE__ */ jsx53(
12361
12359
  Textarea,
12362
12360
  {
12363
12361
  ...props,
@@ -12389,8 +12387,8 @@ var TextareaWithHeadline = ({
12389
12387
  containerClassName
12390
12388
  ),
12391
12389
  children: [
12392
- headline && /* @__PURE__ */ jsx52(Label, { size: "md", ...headlineProps, htmlFor: usedId, children: headline }),
12393
- /* @__PURE__ */ jsx52(
12390
+ headline && /* @__PURE__ */ jsx53(Label, { size: "md", ...headlineProps, htmlFor: usedId, children: headline }),
12391
+ /* @__PURE__ */ jsx53(
12394
12392
  Textarea,
12395
12393
  {
12396
12394
  ...props,
@@ -12407,7 +12405,7 @@ var TextareaWithHeadline = ({
12407
12405
  };
12408
12406
 
12409
12407
  // src/components/properties/TextProperty.tsx
12410
- import { jsx as jsx53 } from "react/jsx-runtime";
12408
+ import { jsx as jsx54 } from "react/jsx-runtime";
12411
12409
  var TextProperty = ({
12412
12410
  value,
12413
12411
  readOnly,
@@ -12418,14 +12416,14 @@ var TextProperty = ({
12418
12416
  }) => {
12419
12417
  const translation = useHightideTranslation();
12420
12418
  const hasValue = value !== void 0;
12421
- return /* @__PURE__ */ jsx53(
12419
+ return /* @__PURE__ */ jsx54(
12422
12420
  PropertyBase,
12423
12421
  {
12424
12422
  ...baseProps,
12425
12423
  onRemove,
12426
12424
  hasValue,
12427
- icon: /* @__PURE__ */ jsx53(Text, { size: 24 }),
12428
- input: ({ softRequired }) => /* @__PURE__ */ jsx53(
12425
+ icon: /* @__PURE__ */ jsx54(Text, { size: 24 }),
12426
+ input: ({ softRequired }) => /* @__PURE__ */ jsx54(
12429
12427
  Textarea,
12430
12428
  {
12431
12429
  className: clsx42(
@@ -12458,11 +12456,11 @@ var TextProperty = ({
12458
12456
 
12459
12457
  // src/components/table/FillerRowElement.tsx
12460
12458
  import { clsx as clsx43 } from "clsx";
12461
- import { jsx as jsx54 } from "react/jsx-runtime";
12459
+ import { jsx as jsx55 } from "react/jsx-runtime";
12462
12460
  var FillerRowElement = ({
12463
12461
  className
12464
12462
  }) => {
12465
- return /* @__PURE__ */ jsx54("div", { className: clsx43("flex flex-row items-center w-1/2 h-4 text-disabled font-bold", className), children: "-" });
12463
+ return /* @__PURE__ */ jsx55("div", { className: clsx43("flex flex-row items-center w-1/2 h-4 text-disabled font-bold", className), children: "-" });
12466
12464
  };
12467
12465
 
12468
12466
  // src/components/table/Filter.ts
@@ -12493,12 +12491,12 @@ import {
12493
12491
 
12494
12492
  // src/components/table/TableCell.tsx
12495
12493
  import { clsx as clsx44 } from "clsx";
12496
- import { jsx as jsx55 } from "react/jsx-runtime";
12494
+ import { jsx as jsx56 } from "react/jsx-runtime";
12497
12495
  var TableCell = ({
12498
12496
  children,
12499
12497
  className
12500
12498
  }) => {
12501
- return /* @__PURE__ */ jsx55("span", { className: clsx44("block max-w-full overflow-ellipsis truncate", className), children });
12499
+ return /* @__PURE__ */ jsx56("span", { className: clsx44("block max-w-full overflow-ellipsis truncate", className), children });
12502
12500
  };
12503
12501
 
12504
12502
  // src/hooks/useResizeCallbackWrapper.ts
@@ -12520,7 +12518,7 @@ import clsx46 from "clsx";
12520
12518
  import { useRef as useRef12, useState as useState23 } from "react";
12521
12519
  import { clsx as clsx45 } from "clsx";
12522
12520
  import { createPortal as createPortal4 } from "react-dom";
12523
- import { jsx as jsx56, jsxs as jsxs35 } from "react/jsx-runtime";
12521
+ import { jsx as jsx57, jsxs as jsxs35 } from "react/jsx-runtime";
12524
12522
  var Tooltip = ({
12525
12523
  tooltip,
12526
12524
  children,
@@ -12547,10 +12545,22 @@ var Tooltip = ({
12547
12545
  right: `border-r-tooltip-background border-t-transparent border-b-transparent`
12548
12546
  };
12549
12547
  const triangleStyle = {
12550
- top: { borderWidth: `${triangleSize}rem ${triangleSize}rem 0 ${triangleSize}rem`, transform: `translate(0,${triangleSize}rem)` },
12551
- bottom: { borderWidth: `0 ${triangleSize}rem ${triangleSize}rem ${triangleSize}rem`, transform: `translate(0,-${triangleSize}rem)` },
12552
- left: { borderWidth: `${triangleSize}rem 0 ${triangleSize}rem ${triangleSize}rem`, transform: `translate(${triangleSize}rem,0)` },
12553
- right: { borderWidth: `${triangleSize}rem ${triangleSize}rem ${triangleSize}rem 0`, transform: `translate(-${triangleSize}rem,0)` }
12548
+ top: {
12549
+ borderWidth: `${triangleSize}rem ${triangleSize}rem 0 ${triangleSize}rem`,
12550
+ transform: `translate(0,${triangleSize}rem)`
12551
+ },
12552
+ bottom: {
12553
+ borderWidth: `0 ${triangleSize}rem ${triangleSize}rem ${triangleSize}rem`,
12554
+ transform: `translate(0,-${triangleSize}rem)`
12555
+ },
12556
+ left: {
12557
+ borderWidth: `${triangleSize}rem 0 ${triangleSize}rem ${triangleSize}rem`,
12558
+ transform: `translate(${triangleSize}rem,0)`
12559
+ },
12560
+ right: {
12561
+ borderWidth: `${triangleSize}rem ${triangleSize}rem ${triangleSize}rem 0`,
12562
+ transform: `translate(-${triangleSize}rem,0)`
12563
+ }
12554
12564
  };
12555
12565
  const isActive = !disabled && isShown;
12556
12566
  const css = useFloatingElement({
@@ -12574,8 +12584,10 @@ var Tooltip = ({
12574
12584
  {
12575
12585
  ref: anchorRef,
12576
12586
  className: clsx45("relative inline-block", containerClassName),
12577
- onMouseEnter: () => setState((prevState) => {
12578
- clearTimeout(prevState.timer);
12587
+ onPointerEnter: () => setState((prevState) => {
12588
+ if (prevState.isShown) {
12589
+ return prevState;
12590
+ }
12579
12591
  return {
12580
12592
  ...prevState,
12581
12593
  timer: setTimeout(() => {
@@ -12586,7 +12598,7 @@ var Tooltip = ({
12586
12598
  }, appearDelay)
12587
12599
  };
12588
12600
  }),
12589
- onMouseLeave: () => setState((prevState) => {
12601
+ onPointerLeave: () => setState((prevState) => {
12590
12602
  clearTimeout(prevState.timer);
12591
12603
  return {
12592
12604
  ...prevState,
@@ -12602,7 +12614,7 @@ var Tooltip = ({
12602
12614
  children,
12603
12615
  /* @__PURE__ */ jsxs35(Visibility, { isVisible: isActive, children: [
12604
12616
  createPortal4(
12605
- /* @__PURE__ */ jsx56(
12617
+ /* @__PURE__ */ jsx57(
12606
12618
  "div",
12607
12619
  {
12608
12620
  ref: containerRef,
@@ -12618,7 +12630,7 @@ var Tooltip = ({
12618
12630
  document.body
12619
12631
  ),
12620
12632
  createPortal4(
12621
- /* @__PURE__ */ jsx56(
12633
+ /* @__PURE__ */ jsx57(
12622
12634
  "div",
12623
12635
  {
12624
12636
  ref: triangleRef,
@@ -12640,7 +12652,7 @@ var Tooltip = ({
12640
12652
  };
12641
12653
 
12642
12654
  // src/components/table/TableSortButton.tsx
12643
- import { jsx as jsx57, jsxs as jsxs36 } from "react/jsx-runtime";
12655
+ import { jsx as jsx58, jsxs as jsxs36 } from "react/jsx-runtime";
12644
12656
  var TableSortButton = ({
12645
12657
  sortDirection,
12646
12658
  invert = false,
@@ -12652,16 +12664,16 @@ var TableSortButton = ({
12652
12664
  }) => {
12653
12665
  const translation = useHightideTranslation();
12654
12666
  const { sortingsCount, index } = sortingIndexDisplay;
12655
- let icon = /* @__PURE__ */ jsx57(ChevronsUpDown, { className: "size-4" });
12667
+ let icon = /* @__PURE__ */ jsx58(ChevronsUpDown, { className: "size-4" });
12656
12668
  if (sortDirection) {
12657
12669
  let usedSortDirection = sortDirection;
12658
12670
  if (invert) {
12659
12671
  usedSortDirection = usedSortDirection === "desc" ? "asc" : "desc";
12660
12672
  }
12661
- icon = usedSortDirection === "asc" ? /* @__PURE__ */ jsx57(ChevronUp, { className: "size-4" }) : /* @__PURE__ */ jsx57(ChevronDown3, { className: "size-4" });
12673
+ icon = usedSortDirection === "asc" ? /* @__PURE__ */ jsx58(ChevronUp, { className: "size-4" }) : /* @__PURE__ */ jsx58(ChevronDown3, { className: "size-4" });
12662
12674
  }
12663
12675
  const hasSortingIndex = !!sortingIndexDisplay && sortingsCount > 1 && index > 0;
12664
- return /* @__PURE__ */ jsx57(Tooltip, { tooltip: translation("rSortingOrderAfter", { otherSortings: index - 1 }), disabled: !hasSortingIndex, children: /* @__PURE__ */ jsxs36(
12676
+ return /* @__PURE__ */ jsx58(Tooltip, { tooltip: translation("rSortingOrderAfter", { otherSortings: index - 1 }), disabled: !hasSortingIndex, children: /* @__PURE__ */ jsxs36(
12665
12677
  Button,
12666
12678
  {
12667
12679
  layout: hasSortingIndex ? "default" : "icon",
@@ -12670,7 +12682,7 @@ var TableSortButton = ({
12670
12682
  className: clsx46("relative", className),
12671
12683
  ...props,
12672
12684
  children: [
12673
- /* @__PURE__ */ jsx57(Visibility, { isVisible: hasSortingIndex, children: /* @__PURE__ */ jsx57(
12685
+ /* @__PURE__ */ jsx58(Visibility, { isVisible: hasSortingIndex, children: /* @__PURE__ */ jsx58(
12674
12686
  "div",
12675
12687
  {
12676
12688
  className: clsx46("absolute bottom-0 right-1/2 translate-x-1/2 translate-y-2/3 z-1 primary coloring-solid rounded-full h-4 w-5 text-sm"),
@@ -12823,14 +12835,14 @@ var useOutsideClick = (refs, handler) => {
12823
12835
  };
12824
12836
 
12825
12837
  // src/components/user-action/Menu.tsx
12826
- import { Fragment as Fragment6, jsx as jsx58, jsxs as jsxs37 } from "react/jsx-runtime";
12838
+ import { Fragment as Fragment8, jsx as jsx59, jsxs as jsxs37 } from "react/jsx-runtime";
12827
12839
  var MenuItem = ({
12828
12840
  children,
12829
12841
  onClick,
12830
12842
  alignment = "left",
12831
12843
  isDisabled = false,
12832
12844
  className
12833
- }) => /* @__PURE__ */ jsx58(
12845
+ }) => /* @__PURE__ */ jsx59(
12834
12846
  "div",
12835
12847
  {
12836
12848
  className: clsx47("block px-3 py-1.5 first:rounded-t-md last:rounded-b-md text-sm font-semibold text-nowrap", {
@@ -12900,9 +12912,9 @@ var Menu = ({
12900
12912
  }
12901
12913
  }, [isOpen]);
12902
12914
  const zIndex = useZIndexRegister(isOpen);
12903
- return /* @__PURE__ */ jsxs37(Fragment6, { children: [
12915
+ return /* @__PURE__ */ jsxs37(Fragment8, { children: [
12904
12916
  trigger(bag, triggerRef),
12905
- createPortal5(/* @__PURE__ */ jsx58(
12917
+ createPortal5(/* @__PURE__ */ jsx59(
12906
12918
  "div",
12907
12919
  {
12908
12920
  ref: menuRef,
@@ -12933,7 +12945,7 @@ var Menu = ({
12933
12945
 
12934
12946
  // src/components/table/TableFilterButton.tsx
12935
12947
  import { useEffect as useEffect26, useState as useState26 } from "react";
12936
- import { Fragment as Fragment7, jsx as jsx59, jsxs as jsxs38 } from "react/jsx-runtime";
12948
+ import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs38 } from "react/jsx-runtime";
12937
12949
  var TableFilterButton = ({
12938
12950
  filterType,
12939
12951
  column
@@ -12945,21 +12957,21 @@ var TableFilterButton = ({
12945
12957
  useEffect26(() => {
12946
12958
  setFilterValue(columnFilterValue);
12947
12959
  }, [columnFilterValue]);
12948
- return /* @__PURE__ */ jsx59(
12960
+ return /* @__PURE__ */ jsx60(
12949
12961
  Menu,
12950
12962
  {
12951
12963
  trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ jsxs38("div", { ref, className: "relative", children: [
12952
- /* @__PURE__ */ jsx59(
12964
+ /* @__PURE__ */ jsx60(
12953
12965
  Button,
12954
12966
  {
12955
12967
  layout: "icon",
12956
12968
  color: "neutral",
12957
12969
  size: "tiny",
12958
12970
  onClick: toggleOpen,
12959
- children: /* @__PURE__ */ jsx59(FilterIcon, { className: "size-4" })
12971
+ children: /* @__PURE__ */ jsx60(FilterIcon, { className: "size-4" })
12960
12972
  }
12961
12973
  ),
12962
- hasFilter && /* @__PURE__ */ jsx59(
12974
+ hasFilter && /* @__PURE__ */ jsx60(
12963
12975
  "div",
12964
12976
  {
12965
12977
  className: "absolute top-0.5 right-0.5 w-2 h-2 rounded-full bg-primary pointer-events-none",
@@ -12968,8 +12980,8 @@ var TableFilterButton = ({
12968
12980
  )
12969
12981
  ] }),
12970
12982
  children: ({ close }) => /* @__PURE__ */ jsxs38("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
12971
- /* @__PURE__ */ jsx59("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
12972
- filterType === "text" && /* @__PURE__ */ jsx59(
12983
+ /* @__PURE__ */ jsx60("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
12984
+ filterType === "text" && /* @__PURE__ */ jsx60(
12973
12985
  Input,
12974
12986
  {
12975
12987
  value: filterValue ?? "",
@@ -12980,7 +12992,7 @@ var TableFilterButton = ({
12980
12992
  }
12981
12993
  ),
12982
12994
  filterType === "range" && /* @__PURE__ */ jsxs38("div", { className: "flex-row-2 items-center", children: [
12983
- /* @__PURE__ */ jsx59(
12995
+ /* @__PURE__ */ jsx60(
12984
12996
  Input,
12985
12997
  {
12986
12998
  value: filterValue?.[0] ?? "",
@@ -12993,8 +13005,8 @@ var TableFilterButton = ({
12993
13005
  className: "h-10 input-indicator-hidden w-40"
12994
13006
  }
12995
13007
  ),
12996
- /* @__PURE__ */ jsx59("span", { className: "font-bold", children: "-" }),
12997
- /* @__PURE__ */ jsx59(
13008
+ /* @__PURE__ */ jsx60("span", { className: "font-bold", children: "-" }),
13009
+ /* @__PURE__ */ jsx60(
12998
13010
  Input,
12999
13011
  {
13000
13012
  value: filterValue?.[1] ?? "",
@@ -13008,8 +13020,8 @@ var TableFilterButton = ({
13008
13020
  }
13009
13021
  )
13010
13022
  ] }),
13011
- filterType === "dateRange" && /* @__PURE__ */ jsxs38(Fragment7, { children: [
13012
- /* @__PURE__ */ jsx59(
13023
+ filterType === "dateRange" && /* @__PURE__ */ jsxs38(Fragment9, { children: [
13024
+ /* @__PURE__ */ jsx60(
13013
13025
  Input,
13014
13026
  {
13015
13027
  value: filterValue?.[0] ? filterValue?.[0].toISOString().slice(0, 16) : "",
@@ -13022,7 +13034,7 @@ var TableFilterButton = ({
13022
13034
  className: "h-10 w-50"
13023
13035
  }
13024
13036
  ),
13025
- /* @__PURE__ */ jsx59(
13037
+ /* @__PURE__ */ jsx60(
13026
13038
  Input,
13027
13039
  {
13028
13040
  value: filterValue?.[1] ? filterValue?.[1].toISOString().slice(0, 16) : "",
@@ -13037,11 +13049,11 @@ var TableFilterButton = ({
13037
13049
  )
13038
13050
  ] }),
13039
13051
  /* @__PURE__ */ jsxs38("div", { className: "flex-row-2 justify-end w-full", children: [
13040
- hasFilter && /* @__PURE__ */ jsx59(Button, { color: "negative", size: "small", onClick: () => {
13052
+ hasFilter && /* @__PURE__ */ jsx60(Button, { color: "negative", size: "small", onClick: () => {
13041
13053
  column.setFilterValue(void 0);
13042
13054
  close();
13043
13055
  }, children: translation("remove") }),
13044
- /* @__PURE__ */ jsx59(Button, { size: "small", onClick: () => {
13056
+ /* @__PURE__ */ jsx60(Button, { size: "small", onClick: () => {
13045
13057
  column.setFilterValue(filterValue);
13046
13058
  close();
13047
13059
  }, children: translation("apply") })
@@ -13052,7 +13064,7 @@ var TableFilterButton = ({
13052
13064
  };
13053
13065
 
13054
13066
  // src/components/table/Table.tsx
13055
- import { jsx as jsx60, jsxs as jsxs39 } from "react/jsx-runtime";
13067
+ import { jsx as jsx61, jsxs as jsxs39 } from "react/jsx-runtime";
13056
13068
  var Table = ({
13057
13069
  data,
13058
13070
  fillerRow,
@@ -13172,7 +13184,7 @@ var Table = ({
13172
13184
  minSize: 60,
13173
13185
  maxSize: 700,
13174
13186
  cell: ({ cell }) => {
13175
- return /* @__PURE__ */ jsx60(TableCell, { children: cell.getValue() });
13187
+ return /* @__PURE__ */ jsx61(TableCell, { children: cell.getValue() });
13176
13188
  },
13177
13189
  ...defaultColumn
13178
13190
  },
@@ -13258,7 +13270,7 @@ var Table = ({
13258
13270
  return colSizes;
13259
13271
  }, [table.getState().columnSizingInfo, table.getState().columnSizing]);
13260
13272
  return /* @__PURE__ */ jsxs39("div", { ref, className: clsx48("flex-col-4", className), children: [
13261
- /* @__PURE__ */ jsx60("div", { className: clsx48("flex-col-0 w-full overflow-auto", tableContainerClassName), children: /* @__PURE__ */ jsxs39(
13273
+ /* @__PURE__ */ jsx61("div", { className: clsx48("flex-col-0 w-full overflow-auto", tableContainerClassName), children: /* @__PURE__ */ jsxs39(
13262
13274
  "table",
13263
13275
  {
13264
13276
  ref: tableRef,
@@ -13268,7 +13280,7 @@ var Table = ({
13268
13280
  width: Math.floor(Math.max(table.getTotalSize() - columns.length, ref.current?.offsetWidth ?? table.getTotalSize()))
13269
13281
  },
13270
13282
  children: [
13271
- table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx60("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx60(
13283
+ table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx61("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx61(
13272
13284
  "col",
13273
13285
  {
13274
13286
  style: {
@@ -13279,15 +13291,15 @@ var Table = ({
13279
13291
  },
13280
13292
  header.id
13281
13293
  )) }, headerGroup.id)),
13282
- /* @__PURE__ */ jsx60("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx60("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
13294
+ /* @__PURE__ */ jsx61("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx61("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
13283
13295
  return /* @__PURE__ */ jsxs39(
13284
13296
  "th",
13285
13297
  {
13286
13298
  colSpan: header.colSpan,
13287
13299
  className: clsx48("relative group", header.column.columnDef.meta?.className),
13288
13300
  children: [
13289
- /* @__PURE__ */ jsx60("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ jsxs39("div", { className: "flex-row-1 items-center", children: [
13290
- header.column.getCanSort() && /* @__PURE__ */ jsx60(
13301
+ /* @__PURE__ */ jsx61("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ jsxs39("div", { className: "flex-row-1 items-center", children: [
13302
+ header.column.getCanSort() && /* @__PURE__ */ jsx61(
13291
13303
  TableSortButton,
13292
13304
  {
13293
13305
  sortDirection: header.column.getIsSorted(),
@@ -13313,7 +13325,7 @@ var Table = ({
13313
13325
  }
13314
13326
  }
13315
13327
  ),
13316
- header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ jsx60(
13328
+ header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ jsx61(
13317
13329
  TableFilterButton,
13318
13330
  {
13319
13331
  column: header.column,
@@ -13325,7 +13337,7 @@ var Table = ({
13325
13337
  header.getContext()
13326
13338
  )
13327
13339
  ] }) }),
13328
- header.column.getCanResize() && /* @__PURE__ */ jsx60(
13340
+ header.column.getCanResize() && /* @__PURE__ */ jsx61(
13329
13341
  "div",
13330
13342
  {
13331
13343
  onMouseDown: header.getResizeHandler(),
@@ -13346,13 +13358,13 @@ var Table = ({
13346
13358
  }) }, headerGroup.id)) }),
13347
13359
  /* @__PURE__ */ jsxs39("tbody", { children: [
13348
13360
  table.getRowModel().rows.map((row) => {
13349
- return /* @__PURE__ */ jsx60(
13361
+ return /* @__PURE__ */ jsx61(
13350
13362
  "tr",
13351
13363
  {
13352
13364
  onClick: () => onRowClick?.(row, table),
13353
13365
  className: table.options.meta?.bodyRowClassName,
13354
13366
  children: row.getVisibleCells().map((cell) => {
13355
- return /* @__PURE__ */ jsx60("td", { children: flexRender(
13367
+ return /* @__PURE__ */ jsx61("td", { children: flexRender(
13356
13368
  cell.column.columnDef.cell,
13357
13369
  cell.getContext()
13358
13370
  ) }, cell.id);
@@ -13362,15 +13374,15 @@ var Table = ({
13362
13374
  );
13363
13375
  }),
13364
13376
  range(table.getState().pagination.pageSize - table.getRowModel().rows.length, { allowEmptyRange: true }).map((row, index) => {
13365
- return /* @__PURE__ */ jsx60("tr", { children: columns.map((column) => {
13366
- return /* @__PURE__ */ jsx60("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ jsx60(FillerRowElement, {}) }, column.id);
13377
+ return /* @__PURE__ */ jsx61("tr", { children: columns.map((column) => {
13378
+ return /* @__PURE__ */ jsx61("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ jsx61(FillerRowElement, {}) }, column.id);
13367
13379
  }) }, "filler-row-" + index);
13368
13380
  })
13369
13381
  ] })
13370
13382
  ]
13371
13383
  }
13372
13384
  ) }),
13373
- /* @__PURE__ */ jsx60("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ jsx60(
13385
+ /* @__PURE__ */ jsx61("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ jsx61(
13374
13386
  Pagination,
13375
13387
  {
13376
13388
  pageIndex: table.getState().pagination.pageIndex,
@@ -13382,7 +13394,7 @@ var Table = ({
13382
13394
  };
13383
13395
  var TableUncontrolled = ({ data, ...props }) => {
13384
13396
  const [usedDate] = useOverwritableState(data);
13385
- return /* @__PURE__ */ jsx60(
13397
+ return /* @__PURE__ */ jsx61(
13386
13398
  Table,
13387
13399
  {
13388
13400
  ...props,
@@ -13406,7 +13418,7 @@ var TableWithSelection = ({
13406
13418
  {
13407
13419
  id: selectionRowId,
13408
13420
  header: ({ table }) => {
13409
- return /* @__PURE__ */ jsx60(
13421
+ return /* @__PURE__ */ jsx61(
13410
13422
  Checkbox,
13411
13423
  {
13412
13424
  checked: table.getIsAllRowsSelected(),
@@ -13419,7 +13431,7 @@ var TableWithSelection = ({
13419
13431
  );
13420
13432
  },
13421
13433
  cell: ({ row }) => {
13422
- return /* @__PURE__ */ jsx60(
13434
+ return /* @__PURE__ */ jsx61(
13423
13435
  Checkbox,
13424
13436
  {
13425
13437
  disabled: !row.getCanSelect(),
@@ -13437,15 +13449,15 @@ var TableWithSelection = ({
13437
13449
  ...columns
13438
13450
  ];
13439
13451
  }, [columns, selectionRowId]);
13440
- return /* @__PURE__ */ jsx60(
13452
+ return /* @__PURE__ */ jsx61(
13441
13453
  Table,
13442
13454
  {
13443
13455
  columns: columnsWithSelection,
13444
13456
  fillerRow: (columnId, table) => {
13445
13457
  if (columnId === selectionRowId) {
13446
- return /* @__PURE__ */ jsx60(Checkbox, { checked: false, disabled: true, className: "max-w-6" });
13458
+ return /* @__PURE__ */ jsx61(Checkbox, { checked: false, disabled: true, className: "max-w-6" });
13447
13459
  }
13448
- return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ jsx60(FillerRowElement, {});
13460
+ return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ jsx61(FillerRowElement, {});
13449
13461
  },
13450
13462
  state: {
13451
13463
  rowSelection,
@@ -13480,7 +13492,7 @@ var writeToClipboard = (text) => {
13480
13492
 
13481
13493
  // src/components/user-action/CopyToClipboardWrapper.tsx
13482
13494
  import { CheckIcon as CheckIcon2, Copy } from "lucide-react";
13483
- import { jsx as jsx61, jsxs as jsxs40 } from "react/jsx-runtime";
13495
+ import { jsx as jsx62, jsxs as jsxs40 } from "react/jsx-runtime";
13484
13496
  var CopyToClipboardWrapper = ({
13485
13497
  children,
13486
13498
  textToCopy,
@@ -13545,14 +13557,14 @@ var CopyToClipboardWrapper = ({
13545
13557
  },
13546
13558
  children: [
13547
13559
  isShowingConfirmation && /* @__PURE__ */ jsxs40("div", { className: "flex-row-1", children: [
13548
- /* @__PURE__ */ jsx61(CheckIcon2, { size: 16, className: "text-positive" }),
13560
+ /* @__PURE__ */ jsx62(CheckIcon2, { size: 16, className: "text-positive" }),
13549
13561
  translation("copied")
13550
13562
  ] }),
13551
13563
  isShowingIndication && /* @__PURE__ */ jsxs40("div", { className: "flex-row-1 text-description", children: [
13552
- /* @__PURE__ */ jsx61(Copy, { size: 16 }),
13564
+ /* @__PURE__ */ jsx62(Copy, { size: 16 }),
13553
13565
  translation("clickToCopy")
13554
13566
  ] }),
13555
- /* @__PURE__ */ jsx61(
13567
+ /* @__PURE__ */ jsx62(
13556
13568
  "div",
13557
13569
  {
13558
13570
  className: clsx49(`absolute w-0 h-0`, triangleClasses[position]),
@@ -13569,7 +13581,7 @@ var CopyToClipboardWrapper = ({
13569
13581
 
13570
13582
  // src/components/user-action/DateAndTimePicker.tsx
13571
13583
  import clsx50 from "clsx";
13572
- import { jsx as jsx62, jsxs as jsxs41 } from "react/jsx-runtime";
13584
+ import { jsx as jsx63, jsxs as jsxs41 } from "react/jsx-runtime";
13573
13585
  var DateTimePicker = ({
13574
13586
  value = /* @__PURE__ */ new Date(),
13575
13587
  start = subtractDuration(/* @__PURE__ */ new Date(), { years: 50 }),
@@ -13584,7 +13596,7 @@ var DateTimePicker = ({
13584
13596
  let dateDisplay;
13585
13597
  let timeDisplay;
13586
13598
  if (useDate) {
13587
- dateDisplay = /* @__PURE__ */ jsx62(
13599
+ dateDisplay = /* @__PURE__ */ jsx63(
13588
13600
  DatePicker,
13589
13601
  {
13590
13602
  ...datePickerProps,
@@ -13598,7 +13610,7 @@ var DateTimePicker = ({
13598
13610
  );
13599
13611
  }
13600
13612
  if (useTime) {
13601
- timeDisplay = /* @__PURE__ */ jsx62(
13613
+ timeDisplay = /* @__PURE__ */ jsx63(
13602
13614
  TimePicker,
13603
13615
  {
13604
13616
  ...timePickerProps,
@@ -13617,7 +13629,7 @@ var DateTimePicker = ({
13617
13629
  // src/components/user-action/ScrollPicker.tsx
13618
13630
  import { useCallback as useCallback13, useEffect as useEffect28, useState as useState29 } from "react";
13619
13631
  import clsx51 from "clsx";
13620
- import { jsx as jsx63, jsxs as jsxs42 } from "react/jsx-runtime";
13632
+ import { jsx as jsx64, jsxs as jsxs42 } from "react/jsx-runtime";
13621
13633
  var up = 1;
13622
13634
  var down = -1;
13623
13635
  var ScrollPicker = ({
@@ -13756,7 +13768,7 @@ var ScrollPicker = ({
13756
13768
  }
13757
13769
  return clamp(1 - opacityValue / max);
13758
13770
  };
13759
- return /* @__PURE__ */ jsx63(
13771
+ return /* @__PURE__ */ jsx64(
13760
13772
  "div",
13761
13773
  {
13762
13774
  className: "relative overflow-hidden",
@@ -13768,14 +13780,14 @@ var ScrollPicker = ({
13768
13780
  }
13769
13781
  },
13770
13782
  children: /* @__PURE__ */ jsxs42("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
13771
- /* @__PURE__ */ jsx63(
13783
+ /* @__PURE__ */ jsx64(
13772
13784
  "div",
13773
13785
  {
13774
13786
  className: "absolute z-[1] top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2 w-full min-w-[40px] border border-divider/50 border-y-2 border-x-0 ",
13775
13787
  style: { height: `${itemHeight}px` }
13776
13788
  }
13777
13789
  ),
13778
- /* @__PURE__ */ jsx63(
13790
+ /* @__PURE__ */ jsx64(
13779
13791
  "div",
13780
13792
  {
13781
13793
  className: "flex-col-2 select-none",
@@ -13783,7 +13795,7 @@ var ScrollPicker = ({
13783
13795
  transform: `translateY(${-transition * (distance + itemHeight)}px)`,
13784
13796
  columnGap: `${distance}px`
13785
13797
  },
13786
- children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ jsx63(
13798
+ children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ jsx64(
13787
13799
  "div",
13788
13800
  {
13789
13801
  className: clsx51(
@@ -13816,7 +13828,7 @@ var ScrollPicker = ({
13816
13828
  import { useEffect as useEffect29, useMemo as useMemo8, useRef as useRef15, useState as useState30 } from "react";
13817
13829
  import { CalendarIcon } from "lucide-react";
13818
13830
  import clsx52 from "clsx";
13819
- import { Fragment as Fragment8, jsx as jsx64, jsxs as jsxs43 } from "react/jsx-runtime";
13831
+ import { Fragment as Fragment10, jsx as jsx65, jsxs as jsxs43 } from "react/jsx-runtime";
13820
13832
  var DateTimeInput = ({
13821
13833
  date,
13822
13834
  onValueChange,
@@ -13844,9 +13856,9 @@ var DateTimeInput = ({
13844
13856
  const cleanInputProps = { ...props };
13845
13857
  delete cleanInputProps["isShowingError"];
13846
13858
  delete cleanInputProps["setIsShowingError"];
13847
- return /* @__PURE__ */ jsxs43(Fragment8, { children: [
13859
+ return /* @__PURE__ */ jsxs43(Fragment10, { children: [
13848
13860
  /* @__PURE__ */ jsxs43("div", { ...containerProps, className: clsx52("relative w-full", containerProps?.className), children: [
13849
- /* @__PURE__ */ jsx64(
13861
+ /* @__PURE__ */ jsx65(
13850
13862
  Input,
13851
13863
  {
13852
13864
  ...cleanInputProps,
@@ -13864,7 +13876,7 @@ var DateTimeInput = ({
13864
13876
  )
13865
13877
  }
13866
13878
  ),
13867
- /* @__PURE__ */ jsx64(
13879
+ /* @__PURE__ */ jsx65(
13868
13880
  Button,
13869
13881
  {
13870
13882
  coloringStyle: "text",
@@ -13874,18 +13886,18 @@ var DateTimeInput = ({
13874
13886
  className: "absolute right-1 top-1/2 -translate-y-1/2",
13875
13887
  disabled: isReadOnly,
13876
13888
  onClick: () => setIsOpen((prevState) => !prevState),
13877
- children: /* @__PURE__ */ jsx64(CalendarIcon, { className: "size-5" })
13889
+ children: /* @__PURE__ */ jsx65(CalendarIcon, { className: "size-5" })
13878
13890
  }
13879
13891
  )
13880
13892
  ] }),
13881
- /* @__PURE__ */ jsx64(Visibility, { isVisible: isOpen, children: /* @__PURE__ */ jsxs43(
13893
+ /* @__PURE__ */ jsx65(Visibility, { isVisible: isOpen, children: /* @__PURE__ */ jsxs43(
13882
13894
  "div",
13883
13895
  {
13884
13896
  ref: containerRef,
13885
13897
  className: "absolute left-0 flex-col-3 rounded-lg shadow-xl border bg-surface-variant text-on-surface border-divider p-2",
13886
13898
  style: { zIndex },
13887
13899
  children: [
13888
- /* @__PURE__ */ jsx64(
13900
+ /* @__PURE__ */ jsx65(
13889
13901
  DateTimePicker,
13890
13902
  {
13891
13903
  ...pickerProps,
@@ -13897,7 +13909,7 @@ var DateTimeInput = ({
13897
13909
  }
13898
13910
  ),
13899
13911
  /* @__PURE__ */ jsxs43("div", { className: "flex-row-2 justify-end", children: [
13900
- /* @__PURE__ */ jsx64(Visibility, { isVisible: !!onRemove, children: /* @__PURE__ */ jsx64(
13912
+ /* @__PURE__ */ jsx65(Visibility, { isVisible: !!onRemove, children: /* @__PURE__ */ jsx65(
13901
13913
  Button,
13902
13914
  {
13903
13915
  size: "medium",
@@ -13909,7 +13921,7 @@ var DateTimeInput = ({
13909
13921
  children: translation("clear")
13910
13922
  }
13911
13923
  ) }),
13912
- /* @__PURE__ */ jsx64(
13924
+ /* @__PURE__ */ jsx65(
13913
13925
  Button,
13914
13926
  {
13915
13927
  size: "medium",
@@ -13931,7 +13943,7 @@ var DateTimeInputUncontrolled = ({
13931
13943
  ...props
13932
13944
  }) => {
13933
13945
  const [date, setDate] = useOverwritableState(useMemo8(() => initialDate ?? /* @__PURE__ */ new Date(), [initialDate]));
13934
- return /* @__PURE__ */ jsx64(
13946
+ return /* @__PURE__ */ jsx65(
13935
13947
  DateTimeInput,
13936
13948
  {
13937
13949
  ...props,
@@ -13952,7 +13964,7 @@ var DateTimeInputUncontrolled = ({
13952
13964
  import { useId as useId11 } from "react";
13953
13965
  import { forwardRef as forwardRef9, useState as useState31 } from "react";
13954
13966
  import clsx53 from "clsx";
13955
- import { jsx as jsx65, jsxs as jsxs44 } from "react/jsx-runtime";
13967
+ import { jsx as jsx66, jsxs as jsxs44 } from "react/jsx-runtime";
13956
13968
  var InsideLabelInput = forwardRef9(function InsideLabelInput2({
13957
13969
  id: customId,
13958
13970
  label,
@@ -13963,7 +13975,7 @@ var InsideLabelInput = forwardRef9(function InsideLabelInput2({
13963
13975
  const generatedId = useId11();
13964
13976
  const id = customId ?? generatedId;
13965
13977
  return /* @__PURE__ */ jsxs44("div", { className: clsx53("relative"), children: [
13966
- /* @__PURE__ */ jsx65(
13978
+ /* @__PURE__ */ jsx66(
13967
13979
  Input,
13968
13980
  {
13969
13981
  ...props,
@@ -13981,7 +13993,7 @@ var InsideLabelInput = forwardRef9(function InsideLabelInput2({
13981
13993
  }
13982
13994
  }
13983
13995
  ),
13984
- /* @__PURE__ */ jsx65(
13996
+ /* @__PURE__ */ jsx66(
13985
13997
  "label",
13986
13998
  {
13987
13999
  id: id + "-label",
@@ -14003,7 +14015,7 @@ var InsideLabelInputUncontrolled = ({
14003
14015
  ...props
14004
14016
  }) => {
14005
14017
  const [value, setValue] = useOverwritableState(initialValue, props.onChangeText);
14006
- return /* @__PURE__ */ jsx65(
14018
+ return /* @__PURE__ */ jsx66(
14007
14019
  InsideLabelInput,
14008
14020
  {
14009
14021
  ...props,
@@ -14016,7 +14028,7 @@ var InsideLabelInputUncontrolled = ({
14016
14028
  // src/components/user-action/input/SearchBar.tsx
14017
14029
  import { Search } from "lucide-react";
14018
14030
  import { clsx as clsx54 } from "clsx";
14019
- import { jsx as jsx66, jsxs as jsxs45 } from "react/jsx-runtime";
14031
+ import { jsx as jsx67, jsxs as jsxs45 } from "react/jsx-runtime";
14020
14032
  var SearchBar = ({
14021
14033
  onSearch,
14022
14034
  searchButtonProps,
@@ -14025,7 +14037,7 @@ var SearchBar = ({
14025
14037
  }) => {
14026
14038
  const translation = useHightideTranslation();
14027
14039
  return /* @__PURE__ */ jsxs45("div", { ...containerProps, className: clsx54("relative", containerProps?.className), children: [
14028
- /* @__PURE__ */ jsx66(
14040
+ /* @__PURE__ */ jsx67(
14029
14041
  InputUncontrolled,
14030
14042
  {
14031
14043
  ...inputProps,
@@ -14033,7 +14045,7 @@ var SearchBar = ({
14033
14045
  className: clsx54("pr-10 w-full", inputProps.className)
14034
14046
  }
14035
14047
  ),
14036
- onSearch && /* @__PURE__ */ jsx66(
14048
+ onSearch && /* @__PURE__ */ jsx67(
14037
14049
  Button,
14038
14050
  {
14039
14051
  ...searchButtonProps,
@@ -14043,7 +14055,7 @@ var SearchBar = ({
14043
14055
  coloringStyle: "text",
14044
14056
  onClick: (event) => onSearch(event),
14045
14057
  className: clsx54("absolute right-1 top-1/2 -translate-y-1/2", searchButtonProps?.className),
14046
- children: /* @__PURE__ */ jsx66(Search, { className: "w-full h-full" })
14058
+ children: /* @__PURE__ */ jsx67(Search, { className: "w-full h-full" })
14047
14059
  }
14048
14060
  )
14049
14061
  ] });
@@ -14053,7 +14065,7 @@ var SearchBar = ({
14053
14065
  import { forwardRef as forwardRef10, useEffect as useEffect30, useImperativeHandle as useImperativeHandle4, useRef as useRef16, useState as useState32 } from "react";
14054
14066
  import { Pencil } from "lucide-react";
14055
14067
  import clsx55 from "clsx";
14056
- import { jsx as jsx67, jsxs as jsxs46 } from "react/jsx-runtime";
14068
+ import { jsx as jsx68, jsxs as jsxs46 } from "react/jsx-runtime";
14057
14069
  var ToggleableInput = forwardRef10(function ToggleableInput2({
14058
14070
  value,
14059
14071
  initialState = "display",
@@ -14069,7 +14081,7 @@ var ToggleableInput = forwardRef10(function ToggleableInput2({
14069
14081
  }
14070
14082
  }, [isEditing]);
14071
14083
  return /* @__PURE__ */ jsxs46("div", { className: clsx55("relative flex-row-2", { "flex-1": isEditing }), children: [
14072
- /* @__PURE__ */ jsx67(
14084
+ /* @__PURE__ */ jsx68(
14073
14085
  Input,
14074
14086
  {
14075
14087
  ...props,
@@ -14096,8 +14108,8 @@ var ToggleableInput = forwardRef10(function ToggleableInput2({
14096
14108
  }
14097
14109
  ),
14098
14110
  !isEditing && /* @__PURE__ */ jsxs46("div", { className: "absolute left-0 flex-row-2 items-center pointer-events-none touch-none w-full overflow-hidden", children: [
14099
- /* @__PURE__ */ jsx67("span", { className: clsx55(" truncate"), children: value }),
14100
- /* @__PURE__ */ jsx67(Pencil, { className: clsx55(`size-force-4`, { "text-transparent": isEditing }) })
14111
+ /* @__PURE__ */ jsx68("span", { className: clsx55(" truncate"), children: value }),
14112
+ /* @__PURE__ */ jsx68(Pencil, { className: clsx55(`size-force-4`, { "text-transparent": isEditing }) })
14101
14113
  ] })
14102
14114
  ] });
14103
14115
  });
@@ -14107,7 +14119,7 @@ var ToggleableInputUncontrolled = ({
14107
14119
  ...restProps
14108
14120
  }) => {
14109
14121
  const [value, setValue] = useOverwritableState(initialValue, onChangeText);
14110
- return /* @__PURE__ */ jsx67(
14122
+ return /* @__PURE__ */ jsx68(
14111
14123
  ToggleableInput,
14112
14124
  {
14113
14125
  value,
@@ -14121,7 +14133,7 @@ var ToggleableInputUncontrolled = ({
14121
14133
  import { useRef as useRef17 } from "react";
14122
14134
  import { useImperativeHandle as useImperativeHandle5 } from "react";
14123
14135
  import { forwardRef as forwardRef11 } from "react";
14124
- import { jsx as jsx68 } from "react/jsx-runtime";
14136
+ import { jsx as jsx69 } from "react/jsx-runtime";
14125
14137
  var FocusTrap = forwardRef11(function FocusTrap2({
14126
14138
  active = true,
14127
14139
  initialFocus,
@@ -14131,7 +14143,7 @@ var FocusTrap = forwardRef11(function FocusTrap2({
14131
14143
  const innerRef = useRef17(null);
14132
14144
  useImperativeHandle5(forwardedRef, () => innerRef.current);
14133
14145
  useFocusTrap({ container: innerRef, active, initialFocus, focusFirst });
14134
- return /* @__PURE__ */ jsx68("div", { ref: innerRef, ...props });
14146
+ return /* @__PURE__ */ jsx69("div", { ref: innerRef, ...props });
14135
14147
  });
14136
14148
 
14137
14149
  // src/components/utils/Transition.tsx