@helpwave/hightide 0.5.1 → 0.5.3

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
@@ -7455,7 +7455,14 @@ var DayPicker = ({
7455
7455
  "border-transparent": !(isToday && markToday)
7456
7456
  }
7457
7457
  ),
7458
- onClick: () => onChange?.(date),
7458
+ onClick: () => onChange?.(new Date(
7459
+ date.getFullYear(),
7460
+ date.getMonth(),
7461
+ date.getDate(),
7462
+ selected.getHours(),
7463
+ selected.getMinutes(),
7464
+ selected.getSeconds()
7465
+ )),
7459
7466
  children: date.getDate()
7460
7467
  },
7461
7468
  date.getDate()
@@ -11378,24 +11385,22 @@ var VerticalDivider = ({
11378
11385
  };
11379
11386
 
11380
11387
  // src/components/layout/Visibility.tsx
11388
+ import { Fragment as Fragment4, jsx as jsx35 } from "react/jsx-runtime";
11381
11389
  function Visibility({ children, isVisible }) {
11382
- if (isVisible) {
11383
- return children;
11384
- }
11385
- return void 0;
11390
+ return /* @__PURE__ */ jsx35(Fragment4, { children: isVisible && children });
11386
11391
  }
11387
11392
 
11388
11393
  // src/components/loading-states/ErrorComponent.tsx
11389
11394
  import { AlertOctagon } from "lucide-react";
11390
11395
  import clsx26 from "clsx";
11391
- import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
11396
+ import { jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
11392
11397
  var ErrorComponent = ({
11393
11398
  errorText,
11394
11399
  classname
11395
11400
  }) => {
11396
11401
  const translation = useHightideTranslation();
11397
11402
  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" }),
11403
+ /* @__PURE__ */ jsx36(AlertOctagon, { size: 64, className: "text-warning" }),
11399
11404
  errorText ?? `${translation("errorOccurred")} :(`
11400
11405
  ] });
11401
11406
  };
@@ -11405,14 +11410,14 @@ import { useState as useState20 } from "react";
11405
11410
 
11406
11411
  // src/components/loading-states/LoadingContainer.tsx
11407
11412
  import { clsx as clsx27 } from "clsx";
11408
- import { jsx as jsx36 } from "react/jsx-runtime";
11413
+ import { jsx as jsx37 } from "react/jsx-runtime";
11409
11414
  var LoadingContainer = ({ className }) => {
11410
- return /* @__PURE__ */ jsx36("div", { className: clsx27("relative overflow-hidden shimmer bg-disabled/30 rounded-md", className) });
11415
+ return /* @__PURE__ */ jsx37("div", { className: clsx27("relative overflow-hidden shimmer bg-disabled/30 rounded-md", className) });
11411
11416
  };
11412
11417
 
11413
11418
  // src/components/loading-states/LoadingAndErrorComponent.tsx
11414
11419
  import { clsx as clsx28 } from "clsx";
11415
- import { jsx as jsx37 } from "react/jsx-runtime";
11420
+ import { Fragment as Fragment5, jsx as jsx38 } from "react/jsx-runtime";
11416
11421
  var LoadingAndErrorComponent = ({
11417
11422
  children,
11418
11423
  isLoading = false,
@@ -11432,40 +11437,40 @@ var LoadingAndErrorComponent = ({
11432
11437
  }, minimumLoadingDuration);
11433
11438
  }
11434
11439
  if (isLoading || minimumLoadingDuration && isInMinimumLoading) {
11435
- return loadingComponent ?? /* @__PURE__ */ jsx37(LoadingContainer, { className: clsx28(className) });
11440
+ return /* @__PURE__ */ jsx38(Fragment5, { children: loadingComponent ?? /* @__PURE__ */ jsx38(LoadingContainer, { className: clsx28(className) }) });
11436
11441
  }
11437
11442
  if (hasError) {
11438
- return errorComponent ?? /* @__PURE__ */ jsx37(LoadingContainer, { className: clsx28("bg-negative", className) });
11443
+ return /* @__PURE__ */ jsx38(Fragment5, { children: errorComponent ?? /* @__PURE__ */ jsx38(LoadingContainer, { className: clsx28("bg-negative", className) }) });
11439
11444
  }
11440
- return children;
11445
+ return /* @__PURE__ */ jsx38(Fragment5, { children });
11441
11446
  };
11442
11447
 
11443
11448
  // src/components/loading-states/LoadingAnimation.tsx
11444
11449
  import clsx29 from "clsx";
11445
- import { jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
11450
+ import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
11446
11451
  var LoadingAnimation = ({
11447
11452
  loadingText,
11448
11453
  classname
11449
11454
  }) => {
11450
11455
  const translation = useHightideTranslation();
11451
11456
  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" }),
11457
+ /* @__PURE__ */ jsx39(HelpwaveLogo, { animate: "loading" }),
11453
11458
  loadingText ?? `${translation("loading")}...`
11454
11459
  ] });
11455
11460
  };
11456
11461
 
11457
11462
  // src/components/loading-states/LoadingButton.tsx
11458
11463
  import clsx30 from "clsx";
11459
- import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
11464
+ import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
11460
11465
  var LoadingButton = ({ isLoading = false, size = "medium", onClick, ...rest }) => {
11461
11466
  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 })
11467
+ 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" }) }),
11468
+ /* @__PURE__ */ jsx40(Button, { ...rest, size, disabled: rest.disabled, onClick })
11464
11469
  ] });
11465
11470
  };
11466
11471
 
11467
11472
  // src/components/loading-states/ProgressIndicator.tsx
11468
- import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
11473
+ import { jsx as jsx41, jsxs as jsxs25 } from "react/jsx-runtime";
11469
11474
  var sizeMapping = { small: 16, medium: 24, big: 48 };
11470
11475
  var ProgressIndicator = ({
11471
11476
  progress,
@@ -11491,7 +11496,7 @@ var ProgressIndicator = ({
11491
11496
  transform: `rotate(${rotation}deg)`
11492
11497
  },
11493
11498
  children: [
11494
- /* @__PURE__ */ jsx40(
11499
+ /* @__PURE__ */ jsx41(
11495
11500
  "circle",
11496
11501
  {
11497
11502
  cx: center,
@@ -11502,7 +11507,7 @@ var ProgressIndicator = ({
11502
11507
  className: "stroke-progress-indicator-fill"
11503
11508
  }
11504
11509
  ),
11505
- /* @__PURE__ */ jsx40(
11510
+ /* @__PURE__ */ jsx41(
11506
11511
  "circle",
11507
11512
  {
11508
11513
  cx: center,
@@ -11523,13 +11528,13 @@ var ProgressIndicator = ({
11523
11528
  // src/components/navigation/BreadCrumb.tsx
11524
11529
  var import_link = __toESM(require_link2());
11525
11530
  import clsx31 from "clsx";
11526
- import { Fragment as Fragment4 } from "react";
11527
- import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
11531
+ import { Fragment as Fragment6 } from "react";
11532
+ import { jsx as jsx42, jsxs as jsxs26 } from "react/jsx-runtime";
11528
11533
  var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
11529
- return /* @__PURE__ */ jsx41("div", { className: clsx31("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
11534
+ return /* @__PURE__ */ jsx42("div", { className: clsx31("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
11530
11535
  const isLast = index === crumbs.length - 1;
11531
- return /* @__PURE__ */ jsxs26(Fragment4, { children: [
11532
- /* @__PURE__ */ jsx41(
11536
+ return /* @__PURE__ */ jsxs26(Fragment6, { children: [
11537
+ /* @__PURE__ */ jsx42(
11533
11538
  import_link.default,
11534
11539
  {
11535
11540
  href: crumb.link,
@@ -11544,7 +11549,7 @@ var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
11544
11549
  children: crumb.display
11545
11550
  }
11546
11551
  ),
11547
- !isLast && /* @__PURE__ */ jsx41("span", { className: clsx31(`px-1`, "text-description"), children: "/" })
11552
+ !isLast && /* @__PURE__ */ jsx42("span", { className: clsx31(`px-1`, "text-description"), children: "/" })
11548
11553
  ] }, index);
11549
11554
  }) });
11550
11555
  };
@@ -11555,7 +11560,7 @@ import { Menu as MenuIcon, XIcon as XIcon2 } from "lucide-react";
11555
11560
  import { useEffect as useEffect20 } from "react";
11556
11561
  import { useCallback as useCallback11, useId as useId8, useRef as useRef11, useState as useState21 } from "react";
11557
11562
  import clsx32 from "clsx";
11558
- import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
11563
+ import { Fragment as Fragment7, jsx as jsx43, jsxs as jsxs27 } from "react/jsx-runtime";
11559
11564
  function isSubItem(item) {
11560
11565
  return "items" in item && Array.isArray(item.items);
11561
11566
  }
@@ -11583,7 +11588,7 @@ var NavigationItemWithSubItem = ({
11583
11588
  }
11584
11589
  }, []);
11585
11590
  const zIndex = useZIndexRegister(isOpen);
11586
- return /* @__PURE__ */ jsxs27(Fragment5, { children: [
11591
+ return /* @__PURE__ */ jsxs27(Fragment7, { children: [
11587
11592
  /* @__PURE__ */ jsxs27(
11588
11593
  "button",
11589
11594
  {
@@ -11599,11 +11604,11 @@ var NavigationItemWithSubItem = ({
11599
11604
  "aria-controls": "navigation-items-" + id,
11600
11605
  children: [
11601
11606
  label,
11602
- /* @__PURE__ */ jsx42(ExpansionIcon, { isExpanded: isOpen })
11607
+ /* @__PURE__ */ jsx43(ExpansionIcon, { isExpanded: isOpen })
11603
11608
  ]
11604
11609
  }
11605
11610
  ),
11606
- /* @__PURE__ */ jsx42(
11611
+ /* @__PURE__ */ jsx43(
11607
11612
  "ul",
11608
11613
  {
11609
11614
  id: "navigation-items-" + id,
@@ -11622,7 +11627,7 @@ var NavigationItemWithSubItem = ({
11622
11627
  { "opacity-0": !style }
11623
11628
  ),
11624
11629
  style: { ...style, zIndex },
11625
- children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ jsx42("li", { children: /* @__PURE__ */ jsx42(
11630
+ children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ jsx43("li", { children: /* @__PURE__ */ jsx43(
11626
11631
  import_link2.default,
11627
11632
  {
11628
11633
  href: link,
@@ -11636,7 +11641,7 @@ var NavigationItemWithSubItem = ({
11636
11641
  ] });
11637
11642
  };
11638
11643
  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)) });
11644
+ 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
11645
  };
11641
11646
  var Navigation = ({ ...props }) => {
11642
11647
  const [isMobileOpen, setIsMobileOpen] = useState21(false);
@@ -11647,14 +11652,14 @@ var Navigation = ({ ...props }) => {
11647
11652
  }, [isMobileOpen]);
11648
11653
  const zIndex = useZIndexRegister(isMobileOpen);
11649
11654
  return /* @__PURE__ */ jsxs27("nav", { children: [
11650
- /* @__PURE__ */ jsx42(
11655
+ /* @__PURE__ */ jsx43(
11651
11656
  NavigationItemList,
11652
11657
  {
11653
11658
  ...props,
11654
11659
  className: clsx32("hidden", { "desktop:flex": !isMobileOpen }, props.className)
11655
11660
  }
11656
11661
  ),
11657
- /* @__PURE__ */ jsx42(
11662
+ /* @__PURE__ */ jsx43(
11658
11663
  Button,
11659
11664
  {
11660
11665
  layout: "icon",
@@ -11665,7 +11670,7 @@ var Navigation = ({ ...props }) => {
11665
11670
  "aria-haspopup": "true",
11666
11671
  "aria-expanded": isMobileOpen,
11667
11672
  "aria-controls": "navigation-menu-" + id,
11668
- children: /* @__PURE__ */ jsx42(MenuIcon, { className: "w-6 h-6" })
11673
+ children: /* @__PURE__ */ jsx43(MenuIcon, { className: "w-6 h-6" })
11669
11674
  }
11670
11675
  ),
11671
11676
  /* @__PURE__ */ jsxs27(
@@ -11690,17 +11695,17 @@ var Navigation = ({ ...props }) => {
11690
11695
  ),
11691
11696
  style: { zIndex },
11692
11697
  children: [
11693
- /* @__PURE__ */ jsx42(
11698
+ /* @__PURE__ */ jsx43(
11694
11699
  Button,
11695
11700
  {
11696
11701
  layout: "icon",
11697
11702
  coloringStyle: "text",
11698
11703
  color: "neutral",
11699
11704
  onClick: () => setIsMobileOpen(false),
11700
- children: /* @__PURE__ */ jsx42(XIcon2, {})
11705
+ children: /* @__PURE__ */ jsx43(XIcon2, {})
11701
11706
  }
11702
11707
  ),
11703
- /* @__PURE__ */ jsx42(NavigationItemList, { ...props, className: clsx32("flex-col-8", props.className) })
11708
+ /* @__PURE__ */ jsx43(NavigationItemList, { ...props, className: clsx32("flex-col-8", props.className) })
11704
11709
  ]
11705
11710
  }
11706
11711
  )
@@ -11711,7 +11716,7 @@ var Navigation = ({ ...props }) => {
11711
11716
  import { ChevronFirst, ChevronLast, ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
11712
11717
  import clsx33 from "clsx";
11713
11718
  import { useEffect as useEffect21, useState as useState22 } from "react";
11714
- import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
11719
+ import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
11715
11720
  var Pagination = ({
11716
11721
  pageIndex,
11717
11722
  pageCount,
@@ -11735,7 +11740,7 @@ var Pagination = ({
11735
11740
  onPageChanged(page);
11736
11741
  };
11737
11742
  return /* @__PURE__ */ jsxs28("div", { className: clsx33("flex-row-1", className), style, children: [
11738
- /* @__PURE__ */ jsx43(
11743
+ /* @__PURE__ */ jsx44(
11739
11744
  Button,
11740
11745
  {
11741
11746
  layout: "icon",
@@ -11743,10 +11748,10 @@ var Pagination = ({
11743
11748
  color: "neutral",
11744
11749
  onClick: () => changePage(0),
11745
11750
  disabled: onFirstPage || noPages,
11746
- children: /* @__PURE__ */ jsx43(ChevronFirst, {})
11751
+ children: /* @__PURE__ */ jsx44(ChevronFirst, {})
11747
11752
  }
11748
11753
  ),
11749
- /* @__PURE__ */ jsx43(
11754
+ /* @__PURE__ */ jsx44(
11750
11755
  Button,
11751
11756
  {
11752
11757
  layout: "icon",
@@ -11754,11 +11759,11 @@ var Pagination = ({
11754
11759
  color: "neutral",
11755
11760
  onClick: () => changePage(pageIndex - 1),
11756
11761
  disabled: onFirstPage || noPages,
11757
- children: /* @__PURE__ */ jsx43(ChevronLeft2, {})
11762
+ children: /* @__PURE__ */ jsx44(ChevronLeft2, {})
11758
11763
  }
11759
11764
  ),
11760
11765
  /* @__PURE__ */ jsxs28("div", { className: "flex-row-2 min-w-56 items-center justify-center mx-2 text-center", children: [
11761
- /* @__PURE__ */ jsx43(
11766
+ /* @__PURE__ */ jsx44(
11762
11767
  Input,
11763
11768
  {
11764
11769
  value,
@@ -11782,8 +11787,8 @@ var Pagination = ({
11782
11787
  editCompleteOptions: { delay: 800 }
11783
11788
  }
11784
11789
  ),
11785
- /* @__PURE__ */ jsx43("span", { className: "select-none w-10", children: translation("of") }),
11786
- /* @__PURE__ */ jsx43(
11790
+ /* @__PURE__ */ jsx44("span", { className: "select-none w-10", children: translation("of") }),
11791
+ /* @__PURE__ */ jsx44(
11787
11792
  "span",
11788
11793
  {
11789
11794
  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 +11796,7 @@ var Pagination = ({
11791
11796
  }
11792
11797
  )
11793
11798
  ] }),
11794
- /* @__PURE__ */ jsx43(
11799
+ /* @__PURE__ */ jsx44(
11795
11800
  Button,
11796
11801
  {
11797
11802
  layout: "icon",
@@ -11799,10 +11804,10 @@ var Pagination = ({
11799
11804
  color: "neutral",
11800
11805
  onClick: () => changePage(pageIndex + 1),
11801
11806
  disabled: onLastPage || noPages,
11802
- children: /* @__PURE__ */ jsx43(ChevronRight2, {})
11807
+ children: /* @__PURE__ */ jsx44(ChevronRight2, {})
11803
11808
  }
11804
11809
  ),
11805
- /* @__PURE__ */ jsx43(
11810
+ /* @__PURE__ */ jsx44(
11806
11811
  Button,
11807
11812
  {
11808
11813
  layout: "icon",
@@ -11810,7 +11815,7 @@ var Pagination = ({
11810
11815
  color: "neutral",
11811
11816
  onClick: () => changePage(pageCount - 1),
11812
11817
  disabled: onLastPage || noPages,
11813
- children: /* @__PURE__ */ jsx43(ChevronLast, {})
11818
+ children: /* @__PURE__ */ jsx44(ChevronLast, {})
11814
11819
  }
11815
11820
  )
11816
11821
  ] });
@@ -11819,7 +11824,7 @@ var Pagination = ({
11819
11824
  // src/components/navigation/StepperBar.tsx
11820
11825
  import { Check, ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight3 } from "lucide-react";
11821
11826
  import clsx34 from "clsx";
11822
- import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
11827
+ import { jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
11823
11828
  var defaultState = {
11824
11829
  currentStep: 0,
11825
11830
  seenSteps: /* @__PURE__ */ new Set([0])
@@ -11846,7 +11851,7 @@ var StepperBar = ({
11846
11851
  {
11847
11852
  className: clsx34("flex-row-2 justify-between", className),
11848
11853
  children: [
11849
- /* @__PURE__ */ jsx44("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ jsxs29(
11854
+ /* @__PURE__ */ jsx45("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ jsxs29(
11850
11855
  Button,
11851
11856
  {
11852
11857
  disabled: currentStep === 0 || disabledSteps.has(currentStep),
@@ -11855,14 +11860,14 @@ var StepperBar = ({
11855
11860
  },
11856
11861
  className: "flex-row-1 items-center justify-center",
11857
11862
  children: [
11858
- /* @__PURE__ */ jsx44(ChevronLeft3, { size: 14 }),
11863
+ /* @__PURE__ */ jsx45(ChevronLeft3, { size: 14 }),
11859
11864
  translation("back")
11860
11865
  ]
11861
11866
  }
11862
11867
  ) }),
11863
- /* @__PURE__ */ jsx44("div", { className: "flex-row-2 flex-[5] justify-center items-center", children: showDots && dots.map((value, index) => {
11868
+ /* @__PURE__ */ jsx45("div", { className: "flex-row-2 flex-[5] justify-center items-center", children: showDots && dots.map((value, index) => {
11864
11869
  const seen = seenSteps.has(index);
11865
- return /* @__PURE__ */ jsx44(
11870
+ return /* @__PURE__ */ jsx45(
11866
11871
  "div",
11867
11872
  {
11868
11873
  onClick: () => seen && update(index),
@@ -11882,7 +11887,7 @@ var StepperBar = ({
11882
11887
  index
11883
11888
  );
11884
11889
  }) }),
11885
- currentStep !== numberOfSteps && /* @__PURE__ */ jsx44("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ jsxs29(
11890
+ currentStep !== numberOfSteps && /* @__PURE__ */ jsx45("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ jsxs29(
11886
11891
  Button,
11887
11892
  {
11888
11893
  onClick: () => update(currentStep + 1),
@@ -11890,18 +11895,18 @@ var StepperBar = ({
11890
11895
  disabled: disabledSteps.has(currentStep),
11891
11896
  children: [
11892
11897
  translation("next"),
11893
- /* @__PURE__ */ jsx44(ChevronRight3, { size: 14 })
11898
+ /* @__PURE__ */ jsx45(ChevronRight3, { size: 14 })
11894
11899
  ]
11895
11900
  }
11896
11901
  ) }),
11897
- currentStep === numberOfSteps && /* @__PURE__ */ jsx44("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ jsxs29(
11902
+ currentStep === numberOfSteps && /* @__PURE__ */ jsx45("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ jsxs29(
11898
11903
  Button,
11899
11904
  {
11900
11905
  disabled: disabledSteps.has(currentStep),
11901
11906
  onClick: onFinish,
11902
11907
  className: "flex-row-1 items-center justify-center",
11903
11908
  children: [
11904
- /* @__PURE__ */ jsx44(Check, { size: 14 }),
11909
+ /* @__PURE__ */ jsx45(Check, { size: 14 }),
11905
11910
  finishText ?? translation("confirm")
11906
11911
  ]
11907
11912
  }
@@ -11912,7 +11917,7 @@ var StepperBar = ({
11912
11917
  };
11913
11918
  var StepperBarUncontrolled = ({ state, onChange, ...props }) => {
11914
11919
  const [usedState, setUsedState] = useOverwritableState(state, onChange);
11915
- return /* @__PURE__ */ jsx44(
11920
+ return /* @__PURE__ */ jsx45(
11916
11921
  StepperBar,
11917
11922
  {
11918
11923
  ...props,
@@ -11928,7 +11933,7 @@ import { Check as Check3 } from "lucide-react";
11928
11933
  // src/components/user-action/Checkbox.tsx
11929
11934
  import { Check as Check2, Minus } from "lucide-react";
11930
11935
  import clsx35 from "clsx";
11931
- import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
11936
+ import { jsx as jsx46, jsxs as jsxs30 } from "react/jsx-runtime";
11932
11937
  var checkboxSizeMapping = {
11933
11938
  small: "size-5 border-2",
11934
11939
  medium: "size-6 border-2",
@@ -11982,8 +11987,8 @@ var Checkbox = ({
11982
11987
  "aria-disabled": disabled,
11983
11988
  tabIndex: disabled ? -1 : 0,
11984
11989
  children: [
11985
- !indeterminate && /* @__PURE__ */ jsx45(Check2, { className: innerIconSize, "aria-hidden": true }),
11986
- indeterminate && /* @__PURE__ */ jsx45(Minus, { className: innerIconSize, "aria-hidden": true })
11990
+ !indeterminate && /* @__PURE__ */ jsx46(Check2, { className: innerIconSize, "aria-hidden": true }),
11991
+ indeterminate && /* @__PURE__ */ jsx46(Minus, { className: innerIconSize, "aria-hidden": true })
11987
11992
  ]
11988
11993
  }
11989
11994
  );
@@ -11994,7 +11999,7 @@ var CheckboxUncontrolled = ({
11994
11999
  ...props
11995
12000
  }) => {
11996
12001
  const [checked, setChecked] = useOverwritableState(initialChecked, onCheckedChange);
11997
- return /* @__PURE__ */ jsx45(
12002
+ return /* @__PURE__ */ jsx46(
11998
12003
  Checkbox,
11999
12004
  {
12000
12005
  ...props,
@@ -12007,7 +12012,7 @@ var CheckboxUncontrolled = ({
12007
12012
  // src/components/properties/PropertyBase.tsx
12008
12013
  import { AlertTriangle } from "lucide-react";
12009
12014
  import clsx36 from "clsx";
12010
- import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
12015
+ import { jsx as jsx47, jsxs as jsxs31 } from "react/jsx-runtime";
12011
12016
  var PropertyBase = ({
12012
12017
  name,
12013
12018
  input,
@@ -12033,8 +12038,8 @@ var PropertyBase = ({
12033
12038
  className
12034
12039
  ),
12035
12040
  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 })
12041
+ /* @__PURE__ */ jsx47("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
12042
+ /* @__PURE__ */ jsx47("span", { className: "font-semibold", children: name })
12038
12043
  ]
12039
12044
  }
12040
12045
  ),
@@ -12051,8 +12056,8 @@ var PropertyBase = ({
12051
12056
  ),
12052
12057
  children: [
12053
12058
  input({ softRequired, hasValue }),
12054
- requiredAndNoValue && /* @__PURE__ */ jsx46("div", { className: "text-warning", children: /* @__PURE__ */ jsx46(AlertTriangle, { size: 24 }) }),
12055
- onRemove && !readOnly && /* @__PURE__ */ jsx46(
12059
+ requiredAndNoValue && /* @__PURE__ */ jsx47("div", { className: "text-warning", children: /* @__PURE__ */ jsx47(AlertTriangle, { size: 24 }) }),
12060
+ onRemove && !readOnly && /* @__PURE__ */ jsx47(
12056
12061
  Button,
12057
12062
  {
12058
12063
  onClick: onRemove,
@@ -12071,7 +12076,7 @@ var PropertyBase = ({
12071
12076
 
12072
12077
  // src/components/properties/CheckboxProperty.tsx
12073
12078
  import { useId as useId9 } from "react";
12074
- import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
12079
+ import { jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
12075
12080
  var CheckboxProperty = ({
12076
12081
  value,
12077
12082
  onChange,
@@ -12080,15 +12085,15 @@ var CheckboxProperty = ({
12080
12085
  }) => {
12081
12086
  const translation = useHightideTranslation();
12082
12087
  const id = useId9();
12083
- return /* @__PURE__ */ jsx47(
12088
+ return /* @__PURE__ */ jsx48(
12084
12089
  PropertyBase,
12085
12090
  {
12086
12091
  ...baseProps,
12087
12092
  hasValue: true,
12088
12093
  readOnly,
12089
- icon: /* @__PURE__ */ jsx47(Check3, { size: 24 }),
12094
+ icon: /* @__PURE__ */ jsx48(Check3, { size: 24 }),
12090
12095
  input: () => /* @__PURE__ */ jsxs32("div", { className: "flex-row-2 items-center", children: [
12091
- /* @__PURE__ */ jsx47(
12096
+ /* @__PURE__ */ jsx48(
12092
12097
  Checkbox,
12093
12098
  {
12094
12099
  id,
@@ -12098,7 +12103,7 @@ var CheckboxProperty = ({
12098
12103
  "aria-labelledby": id + "label"
12099
12104
  }
12100
12105
  ),
12101
- /* @__PURE__ */ jsx47(Label, { id: id + "label", children: `${translation("yes")}/${translation("no")}` })
12106
+ /* @__PURE__ */ jsx48(Label, { id: id + "label", children: `${translation("yes")}/${translation("no")}` })
12102
12107
  ] })
12103
12108
  }
12104
12109
  );
@@ -12107,7 +12112,7 @@ var CheckboxProperty = ({
12107
12112
  // src/components/properties/DateProperty.tsx
12108
12113
  import { CalendarDays } from "lucide-react";
12109
12114
  import clsx37 from "clsx";
12110
- import { jsx as jsx48 } from "react/jsx-runtime";
12115
+ import { jsx as jsx49 } from "react/jsx-runtime";
12111
12116
  var DateProperty = ({
12112
12117
  value,
12113
12118
  onChange,
@@ -12118,13 +12123,13 @@ var DateProperty = ({
12118
12123
  }) => {
12119
12124
  const hasValue = !!value;
12120
12125
  const dateText = value ? type === "dateTime" ? formatDateTime(value) : formatDate(value) : "";
12121
- return /* @__PURE__ */ jsx48(
12126
+ return /* @__PURE__ */ jsx49(
12122
12127
  PropertyBase,
12123
12128
  {
12124
12129
  ...baseProps,
12125
12130
  hasValue,
12126
- icon: /* @__PURE__ */ jsx48(CalendarDays, { size: 24 }),
12127
- input: ({ softRequired }) => /* @__PURE__ */ jsx48(
12131
+ icon: /* @__PURE__ */ jsx49(CalendarDays, { size: 24 }),
12132
+ input: ({ softRequired }) => /* @__PURE__ */ jsx49(
12128
12133
  Input,
12129
12134
  {
12130
12135
  className: clsx37("default-style-none focus-style-none", { "bg-surface-warning": softRequired && !hasValue }),
@@ -12150,7 +12155,7 @@ var DateProperty = ({
12150
12155
  // src/components/properties/MultiSelectProperty.tsx
12151
12156
  import { List } from "lucide-react";
12152
12157
  import clsx38 from "clsx";
12153
- import { jsx as jsx49 } from "react/jsx-runtime";
12158
+ import { jsx as jsx50 } from "react/jsx-runtime";
12154
12159
  var MultiSelectProperty = ({
12155
12160
  children,
12156
12161
  values,
@@ -12158,13 +12163,13 @@ var MultiSelectProperty = ({
12158
12163
  ...props
12159
12164
  }) => {
12160
12165
  const hasValue = values.length > 0;
12161
- return /* @__PURE__ */ jsx49(
12166
+ return /* @__PURE__ */ jsx50(
12162
12167
  PropertyBase,
12163
12168
  {
12164
12169
  ...props,
12165
12170
  hasValue,
12166
- icon: /* @__PURE__ */ jsx49(List, { size: 24 }),
12167
- input: ({ softRequired }) => /* @__PURE__ */ jsx49(
12171
+ icon: /* @__PURE__ */ jsx50(List, { size: 24 }),
12172
+ input: ({ softRequired }) => /* @__PURE__ */ jsx50(
12168
12173
  MultiSelectChipDisplay,
12169
12174
  {
12170
12175
  values,
@@ -12191,7 +12196,7 @@ var MultiSelectProperty = ({
12191
12196
  // src/components/properties/NumberProperty.tsx
12192
12197
  import { Binary } from "lucide-react";
12193
12198
  import clsx39 from "clsx";
12194
- import { jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
12199
+ import { jsx as jsx51, jsxs as jsxs33 } from "react/jsx-runtime";
12195
12200
  var NumberProperty = ({
12196
12201
  value,
12197
12202
  onChange,
@@ -12203,13 +12208,13 @@ var NumberProperty = ({
12203
12208
  }) => {
12204
12209
  const translation = useHightideTranslation();
12205
12210
  const hasValue = value !== void 0;
12206
- return /* @__PURE__ */ jsx50(
12211
+ return /* @__PURE__ */ jsx51(
12207
12212
  PropertyBase,
12208
12213
  {
12209
12214
  ...baseProps,
12210
12215
  onRemove,
12211
12216
  hasValue,
12212
- icon: /* @__PURE__ */ jsx50(Binary, { size: 24 }),
12217
+ icon: /* @__PURE__ */ jsx51(Binary, { size: 24 }),
12213
12218
  input: ({ softRequired }) => (
12214
12219
  // TODO this max width might be to low for some numbers
12215
12220
  /* @__PURE__ */ jsxs33(
@@ -12217,7 +12222,7 @@ var NumberProperty = ({
12217
12222
  {
12218
12223
  className: clsx39("relative flex-row-2 max-w-56", { "text-warning": softRequired && !hasValue }),
12219
12224
  children: [
12220
- /* @__PURE__ */ jsx50(
12225
+ /* @__PURE__ */ jsx51(
12221
12226
  Input,
12222
12227
  {
12223
12228
  className: clsx39("default-style-none focus-style-none w-full pr-8", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
@@ -12243,7 +12248,7 @@ var NumberProperty = ({
12243
12248
  }
12244
12249
  }
12245
12250
  ),
12246
- suffix && /* @__PURE__ */ jsx50(
12251
+ suffix && /* @__PURE__ */ jsx51(
12247
12252
  "span",
12248
12253
  {
12249
12254
  className: clsx39(
@@ -12264,7 +12269,7 @@ var NumberProperty = ({
12264
12269
  // src/components/properties/SelectProperty.tsx
12265
12270
  import { List as List2 } from "lucide-react";
12266
12271
  import clsx40 from "clsx";
12267
- import { jsx as jsx51 } from "react/jsx-runtime";
12272
+ import { jsx as jsx52 } from "react/jsx-runtime";
12268
12273
  var SingleSelectProperty = ({
12269
12274
  children,
12270
12275
  value,
@@ -12273,13 +12278,13 @@ var SingleSelectProperty = ({
12273
12278
  ...props
12274
12279
  }) => {
12275
12280
  const hasValue = value !== void 0;
12276
- return /* @__PURE__ */ jsx51(
12281
+ return /* @__PURE__ */ jsx52(
12277
12282
  PropertyBase,
12278
12283
  {
12279
12284
  ...props,
12280
12285
  hasValue,
12281
- icon: /* @__PURE__ */ jsx51(List2, { size: 24 }),
12282
- input: ({ softRequired }) => /* @__PURE__ */ jsx51(
12286
+ icon: /* @__PURE__ */ jsx52(List2, { size: 24 }),
12287
+ input: ({ softRequired }) => /* @__PURE__ */ jsx52(
12283
12288
  Select,
12284
12289
  {
12285
12290
  value,
@@ -12308,7 +12313,7 @@ import clsx42 from "clsx";
12308
12313
  // src/components/user-action/Textarea.tsx
12309
12314
  import { forwardRef as forwardRef8, useId as useId10 } from "react";
12310
12315
  import clsx41 from "clsx";
12311
- import { jsx as jsx52, jsxs as jsxs34 } from "react/jsx-runtime";
12316
+ import { jsx as jsx53, jsxs as jsxs34 } from "react/jsx-runtime";
12312
12317
  var Textarea = forwardRef8(function Textarea2({
12313
12318
  id,
12314
12319
  onChange,
@@ -12325,7 +12330,7 @@ var Textarea = forwardRef8(function Textarea2({
12325
12330
  onEditCompleted?.(text);
12326
12331
  clearTimer();
12327
12332
  };
12328
- return /* @__PURE__ */ jsx52(
12333
+ return /* @__PURE__ */ jsx53(
12329
12334
  "textarea",
12330
12335
  {
12331
12336
  ...props,
@@ -12357,7 +12362,7 @@ var TextareaUncontrolled = ({
12357
12362
  ...props
12358
12363
  }) => {
12359
12364
  const [text, setText] = useOverwritableState(value, onChangeText);
12360
- return /* @__PURE__ */ jsx52(
12365
+ return /* @__PURE__ */ jsx53(
12361
12366
  Textarea,
12362
12367
  {
12363
12368
  ...props,
@@ -12389,8 +12394,8 @@ var TextareaWithHeadline = ({
12389
12394
  containerClassName
12390
12395
  ),
12391
12396
  children: [
12392
- headline && /* @__PURE__ */ jsx52(Label, { size: "md", ...headlineProps, htmlFor: usedId, children: headline }),
12393
- /* @__PURE__ */ jsx52(
12397
+ headline && /* @__PURE__ */ jsx53(Label, { size: "md", ...headlineProps, htmlFor: usedId, children: headline }),
12398
+ /* @__PURE__ */ jsx53(
12394
12399
  Textarea,
12395
12400
  {
12396
12401
  ...props,
@@ -12407,7 +12412,7 @@ var TextareaWithHeadline = ({
12407
12412
  };
12408
12413
 
12409
12414
  // src/components/properties/TextProperty.tsx
12410
- import { jsx as jsx53 } from "react/jsx-runtime";
12415
+ import { jsx as jsx54 } from "react/jsx-runtime";
12411
12416
  var TextProperty = ({
12412
12417
  value,
12413
12418
  readOnly,
@@ -12418,14 +12423,14 @@ var TextProperty = ({
12418
12423
  }) => {
12419
12424
  const translation = useHightideTranslation();
12420
12425
  const hasValue = value !== void 0;
12421
- return /* @__PURE__ */ jsx53(
12426
+ return /* @__PURE__ */ jsx54(
12422
12427
  PropertyBase,
12423
12428
  {
12424
12429
  ...baseProps,
12425
12430
  onRemove,
12426
12431
  hasValue,
12427
- icon: /* @__PURE__ */ jsx53(Text, { size: 24 }),
12428
- input: ({ softRequired }) => /* @__PURE__ */ jsx53(
12432
+ icon: /* @__PURE__ */ jsx54(Text, { size: 24 }),
12433
+ input: ({ softRequired }) => /* @__PURE__ */ jsx54(
12429
12434
  Textarea,
12430
12435
  {
12431
12436
  className: clsx42(
@@ -12458,11 +12463,11 @@ var TextProperty = ({
12458
12463
 
12459
12464
  // src/components/table/FillerRowElement.tsx
12460
12465
  import { clsx as clsx43 } from "clsx";
12461
- import { jsx as jsx54 } from "react/jsx-runtime";
12466
+ import { jsx as jsx55 } from "react/jsx-runtime";
12462
12467
  var FillerRowElement = ({
12463
12468
  className
12464
12469
  }) => {
12465
- return /* @__PURE__ */ jsx54("div", { className: clsx43("flex flex-row items-center w-1/2 h-4 text-disabled font-bold", className), children: "-" });
12470
+ return /* @__PURE__ */ jsx55("div", { className: clsx43("flex flex-row items-center w-1/2 h-4 text-disabled font-bold", className), children: "-" });
12466
12471
  };
12467
12472
 
12468
12473
  // src/components/table/Filter.ts
@@ -12493,12 +12498,12 @@ import {
12493
12498
 
12494
12499
  // src/components/table/TableCell.tsx
12495
12500
  import { clsx as clsx44 } from "clsx";
12496
- import { jsx as jsx55 } from "react/jsx-runtime";
12501
+ import { jsx as jsx56 } from "react/jsx-runtime";
12497
12502
  var TableCell = ({
12498
12503
  children,
12499
12504
  className
12500
12505
  }) => {
12501
- return /* @__PURE__ */ jsx55("span", { className: clsx44("block max-w-full overflow-ellipsis truncate", className), children });
12506
+ return /* @__PURE__ */ jsx56("span", { className: clsx44("block max-w-full overflow-ellipsis truncate", className), children });
12502
12507
  };
12503
12508
 
12504
12509
  // src/hooks/useResizeCallbackWrapper.ts
@@ -12520,7 +12525,7 @@ import clsx46 from "clsx";
12520
12525
  import { useRef as useRef12, useState as useState23 } from "react";
12521
12526
  import { clsx as clsx45 } from "clsx";
12522
12527
  import { createPortal as createPortal4 } from "react-dom";
12523
- import { jsx as jsx56, jsxs as jsxs35 } from "react/jsx-runtime";
12528
+ import { jsx as jsx57, jsxs as jsxs35 } from "react/jsx-runtime";
12524
12529
  var Tooltip = ({
12525
12530
  tooltip,
12526
12531
  children,
@@ -12616,7 +12621,7 @@ var Tooltip = ({
12616
12621
  children,
12617
12622
  /* @__PURE__ */ jsxs35(Visibility, { isVisible: isActive, children: [
12618
12623
  createPortal4(
12619
- /* @__PURE__ */ jsx56(
12624
+ /* @__PURE__ */ jsx57(
12620
12625
  "div",
12621
12626
  {
12622
12627
  ref: containerRef,
@@ -12632,7 +12637,7 @@ var Tooltip = ({
12632
12637
  document.body
12633
12638
  ),
12634
12639
  createPortal4(
12635
- /* @__PURE__ */ jsx56(
12640
+ /* @__PURE__ */ jsx57(
12636
12641
  "div",
12637
12642
  {
12638
12643
  ref: triangleRef,
@@ -12654,7 +12659,7 @@ var Tooltip = ({
12654
12659
  };
12655
12660
 
12656
12661
  // src/components/table/TableSortButton.tsx
12657
- import { jsx as jsx57, jsxs as jsxs36 } from "react/jsx-runtime";
12662
+ import { jsx as jsx58, jsxs as jsxs36 } from "react/jsx-runtime";
12658
12663
  var TableSortButton = ({
12659
12664
  sortDirection,
12660
12665
  invert = false,
@@ -12666,16 +12671,16 @@ var TableSortButton = ({
12666
12671
  }) => {
12667
12672
  const translation = useHightideTranslation();
12668
12673
  const { sortingsCount, index } = sortingIndexDisplay;
12669
- let icon = /* @__PURE__ */ jsx57(ChevronsUpDown, { className: "size-4" });
12674
+ let icon = /* @__PURE__ */ jsx58(ChevronsUpDown, { className: "size-4" });
12670
12675
  if (sortDirection) {
12671
12676
  let usedSortDirection = sortDirection;
12672
12677
  if (invert) {
12673
12678
  usedSortDirection = usedSortDirection === "desc" ? "asc" : "desc";
12674
12679
  }
12675
- icon = usedSortDirection === "asc" ? /* @__PURE__ */ jsx57(ChevronUp, { className: "size-4" }) : /* @__PURE__ */ jsx57(ChevronDown3, { className: "size-4" });
12680
+ icon = usedSortDirection === "asc" ? /* @__PURE__ */ jsx58(ChevronUp, { className: "size-4" }) : /* @__PURE__ */ jsx58(ChevronDown3, { className: "size-4" });
12676
12681
  }
12677
12682
  const hasSortingIndex = !!sortingIndexDisplay && sortingsCount > 1 && index > 0;
12678
- return /* @__PURE__ */ jsx57(Tooltip, { tooltip: translation("rSortingOrderAfter", { otherSortings: index - 1 }), disabled: !hasSortingIndex, children: /* @__PURE__ */ jsxs36(
12683
+ return /* @__PURE__ */ jsx58(Tooltip, { tooltip: translation("rSortingOrderAfter", { otherSortings: index - 1 }), disabled: !hasSortingIndex, children: /* @__PURE__ */ jsxs36(
12679
12684
  Button,
12680
12685
  {
12681
12686
  layout: hasSortingIndex ? "default" : "icon",
@@ -12684,7 +12689,7 @@ var TableSortButton = ({
12684
12689
  className: clsx46("relative", className),
12685
12690
  ...props,
12686
12691
  children: [
12687
- /* @__PURE__ */ jsx57(Visibility, { isVisible: hasSortingIndex, children: /* @__PURE__ */ jsx57(
12692
+ /* @__PURE__ */ jsx58(Visibility, { isVisible: hasSortingIndex, children: /* @__PURE__ */ jsx58(
12688
12693
  "div",
12689
12694
  {
12690
12695
  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"),
@@ -12837,14 +12842,14 @@ var useOutsideClick = (refs, handler) => {
12837
12842
  };
12838
12843
 
12839
12844
  // src/components/user-action/Menu.tsx
12840
- import { Fragment as Fragment6, jsx as jsx58, jsxs as jsxs37 } from "react/jsx-runtime";
12845
+ import { Fragment as Fragment8, jsx as jsx59, jsxs as jsxs37 } from "react/jsx-runtime";
12841
12846
  var MenuItem = ({
12842
12847
  children,
12843
12848
  onClick,
12844
12849
  alignment = "left",
12845
12850
  isDisabled = false,
12846
12851
  className
12847
- }) => /* @__PURE__ */ jsx58(
12852
+ }) => /* @__PURE__ */ jsx59(
12848
12853
  "div",
12849
12854
  {
12850
12855
  className: clsx47("block px-3 py-1.5 first:rounded-t-md last:rounded-b-md text-sm font-semibold text-nowrap", {
@@ -12914,9 +12919,9 @@ var Menu = ({
12914
12919
  }
12915
12920
  }, [isOpen]);
12916
12921
  const zIndex = useZIndexRegister(isOpen);
12917
- return /* @__PURE__ */ jsxs37(Fragment6, { children: [
12922
+ return /* @__PURE__ */ jsxs37(Fragment8, { children: [
12918
12923
  trigger(bag, triggerRef),
12919
- createPortal5(/* @__PURE__ */ jsx58(
12924
+ createPortal5(/* @__PURE__ */ jsx59(
12920
12925
  "div",
12921
12926
  {
12922
12927
  ref: menuRef,
@@ -12947,7 +12952,7 @@ var Menu = ({
12947
12952
 
12948
12953
  // src/components/table/TableFilterButton.tsx
12949
12954
  import { useEffect as useEffect26, useState as useState26 } from "react";
12950
- import { Fragment as Fragment7, jsx as jsx59, jsxs as jsxs38 } from "react/jsx-runtime";
12955
+ import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs38 } from "react/jsx-runtime";
12951
12956
  var TableFilterButton = ({
12952
12957
  filterType,
12953
12958
  column
@@ -12959,21 +12964,21 @@ var TableFilterButton = ({
12959
12964
  useEffect26(() => {
12960
12965
  setFilterValue(columnFilterValue);
12961
12966
  }, [columnFilterValue]);
12962
- return /* @__PURE__ */ jsx59(
12967
+ return /* @__PURE__ */ jsx60(
12963
12968
  Menu,
12964
12969
  {
12965
12970
  trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ jsxs38("div", { ref, className: "relative", children: [
12966
- /* @__PURE__ */ jsx59(
12971
+ /* @__PURE__ */ jsx60(
12967
12972
  Button,
12968
12973
  {
12969
12974
  layout: "icon",
12970
12975
  color: "neutral",
12971
12976
  size: "tiny",
12972
12977
  onClick: toggleOpen,
12973
- children: /* @__PURE__ */ jsx59(FilterIcon, { className: "size-4" })
12978
+ children: /* @__PURE__ */ jsx60(FilterIcon, { className: "size-4" })
12974
12979
  }
12975
12980
  ),
12976
- hasFilter && /* @__PURE__ */ jsx59(
12981
+ hasFilter && /* @__PURE__ */ jsx60(
12977
12982
  "div",
12978
12983
  {
12979
12984
  className: "absolute top-0.5 right-0.5 w-2 h-2 rounded-full bg-primary pointer-events-none",
@@ -12982,8 +12987,8 @@ var TableFilterButton = ({
12982
12987
  )
12983
12988
  ] }),
12984
12989
  children: ({ close }) => /* @__PURE__ */ jsxs38("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
12985
- /* @__PURE__ */ jsx59("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
12986
- filterType === "text" && /* @__PURE__ */ jsx59(
12990
+ /* @__PURE__ */ jsx60("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
12991
+ filterType === "text" && /* @__PURE__ */ jsx60(
12987
12992
  Input,
12988
12993
  {
12989
12994
  value: filterValue ?? "",
@@ -12994,7 +12999,7 @@ var TableFilterButton = ({
12994
12999
  }
12995
13000
  ),
12996
13001
  filterType === "range" && /* @__PURE__ */ jsxs38("div", { className: "flex-row-2 items-center", children: [
12997
- /* @__PURE__ */ jsx59(
13002
+ /* @__PURE__ */ jsx60(
12998
13003
  Input,
12999
13004
  {
13000
13005
  value: filterValue?.[0] ?? "",
@@ -13007,8 +13012,8 @@ var TableFilterButton = ({
13007
13012
  className: "h-10 input-indicator-hidden w-40"
13008
13013
  }
13009
13014
  ),
13010
- /* @__PURE__ */ jsx59("span", { className: "font-bold", children: "-" }),
13011
- /* @__PURE__ */ jsx59(
13015
+ /* @__PURE__ */ jsx60("span", { className: "font-bold", children: "-" }),
13016
+ /* @__PURE__ */ jsx60(
13012
13017
  Input,
13013
13018
  {
13014
13019
  value: filterValue?.[1] ?? "",
@@ -13022,8 +13027,8 @@ var TableFilterButton = ({
13022
13027
  }
13023
13028
  )
13024
13029
  ] }),
13025
- filterType === "dateRange" && /* @__PURE__ */ jsxs38(Fragment7, { children: [
13026
- /* @__PURE__ */ jsx59(
13030
+ filterType === "dateRange" && /* @__PURE__ */ jsxs38(Fragment9, { children: [
13031
+ /* @__PURE__ */ jsx60(
13027
13032
  Input,
13028
13033
  {
13029
13034
  value: filterValue?.[0] ? filterValue?.[0].toISOString().slice(0, 16) : "",
@@ -13036,7 +13041,7 @@ var TableFilterButton = ({
13036
13041
  className: "h-10 w-50"
13037
13042
  }
13038
13043
  ),
13039
- /* @__PURE__ */ jsx59(
13044
+ /* @__PURE__ */ jsx60(
13040
13045
  Input,
13041
13046
  {
13042
13047
  value: filterValue?.[1] ? filterValue?.[1].toISOString().slice(0, 16) : "",
@@ -13051,11 +13056,11 @@ var TableFilterButton = ({
13051
13056
  )
13052
13057
  ] }),
13053
13058
  /* @__PURE__ */ jsxs38("div", { className: "flex-row-2 justify-end w-full", children: [
13054
- hasFilter && /* @__PURE__ */ jsx59(Button, { color: "negative", size: "small", onClick: () => {
13059
+ hasFilter && /* @__PURE__ */ jsx60(Button, { color: "negative", size: "small", onClick: () => {
13055
13060
  column.setFilterValue(void 0);
13056
13061
  close();
13057
13062
  }, children: translation("remove") }),
13058
- /* @__PURE__ */ jsx59(Button, { size: "small", onClick: () => {
13063
+ /* @__PURE__ */ jsx60(Button, { size: "small", onClick: () => {
13059
13064
  column.setFilterValue(filterValue);
13060
13065
  close();
13061
13066
  }, children: translation("apply") })
@@ -13066,7 +13071,7 @@ var TableFilterButton = ({
13066
13071
  };
13067
13072
 
13068
13073
  // src/components/table/Table.tsx
13069
- import { jsx as jsx60, jsxs as jsxs39 } from "react/jsx-runtime";
13074
+ import { jsx as jsx61, jsxs as jsxs39 } from "react/jsx-runtime";
13070
13075
  var Table = ({
13071
13076
  data,
13072
13077
  fillerRow,
@@ -13186,7 +13191,7 @@ var Table = ({
13186
13191
  minSize: 60,
13187
13192
  maxSize: 700,
13188
13193
  cell: ({ cell }) => {
13189
- return /* @__PURE__ */ jsx60(TableCell, { children: cell.getValue() });
13194
+ return /* @__PURE__ */ jsx61(TableCell, { children: cell.getValue() });
13190
13195
  },
13191
13196
  ...defaultColumn
13192
13197
  },
@@ -13272,7 +13277,7 @@ var Table = ({
13272
13277
  return colSizes;
13273
13278
  }, [table.getState().columnSizingInfo, table.getState().columnSizing]);
13274
13279
  return /* @__PURE__ */ jsxs39("div", { ref, className: clsx48("flex-col-4", className), children: [
13275
- /* @__PURE__ */ jsx60("div", { className: clsx48("flex-col-0 w-full overflow-auto", tableContainerClassName), children: /* @__PURE__ */ jsxs39(
13280
+ /* @__PURE__ */ jsx61("div", { className: clsx48("flex-col-0 w-full overflow-auto", tableContainerClassName), children: /* @__PURE__ */ jsxs39(
13276
13281
  "table",
13277
13282
  {
13278
13283
  ref: tableRef,
@@ -13282,7 +13287,7 @@ var Table = ({
13282
13287
  width: Math.floor(Math.max(table.getTotalSize() - columns.length, ref.current?.offsetWidth ?? table.getTotalSize()))
13283
13288
  },
13284
13289
  children: [
13285
- table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx60("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx60(
13290
+ table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx61("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx61(
13286
13291
  "col",
13287
13292
  {
13288
13293
  style: {
@@ -13293,15 +13298,15 @@ var Table = ({
13293
13298
  },
13294
13299
  header.id
13295
13300
  )) }, headerGroup.id)),
13296
- /* @__PURE__ */ jsx60("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx60("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
13301
+ /* @__PURE__ */ jsx61("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx61("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
13297
13302
  return /* @__PURE__ */ jsxs39(
13298
13303
  "th",
13299
13304
  {
13300
13305
  colSpan: header.colSpan,
13301
13306
  className: clsx48("relative group", header.column.columnDef.meta?.className),
13302
13307
  children: [
13303
- /* @__PURE__ */ jsx60("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ jsxs39("div", { className: "flex-row-1 items-center", children: [
13304
- header.column.getCanSort() && /* @__PURE__ */ jsx60(
13308
+ /* @__PURE__ */ jsx61("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ jsxs39("div", { className: "flex-row-1 items-center", children: [
13309
+ header.column.getCanSort() && /* @__PURE__ */ jsx61(
13305
13310
  TableSortButton,
13306
13311
  {
13307
13312
  sortDirection: header.column.getIsSorted(),
@@ -13327,7 +13332,7 @@ var Table = ({
13327
13332
  }
13328
13333
  }
13329
13334
  ),
13330
- header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ jsx60(
13335
+ header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ jsx61(
13331
13336
  TableFilterButton,
13332
13337
  {
13333
13338
  column: header.column,
@@ -13339,7 +13344,7 @@ var Table = ({
13339
13344
  header.getContext()
13340
13345
  )
13341
13346
  ] }) }),
13342
- header.column.getCanResize() && /* @__PURE__ */ jsx60(
13347
+ header.column.getCanResize() && /* @__PURE__ */ jsx61(
13343
13348
  "div",
13344
13349
  {
13345
13350
  onMouseDown: header.getResizeHandler(),
@@ -13360,13 +13365,13 @@ var Table = ({
13360
13365
  }) }, headerGroup.id)) }),
13361
13366
  /* @__PURE__ */ jsxs39("tbody", { children: [
13362
13367
  table.getRowModel().rows.map((row) => {
13363
- return /* @__PURE__ */ jsx60(
13368
+ return /* @__PURE__ */ jsx61(
13364
13369
  "tr",
13365
13370
  {
13366
13371
  onClick: () => onRowClick?.(row, table),
13367
13372
  className: table.options.meta?.bodyRowClassName,
13368
13373
  children: row.getVisibleCells().map((cell) => {
13369
- return /* @__PURE__ */ jsx60("td", { children: flexRender(
13374
+ return /* @__PURE__ */ jsx61("td", { children: flexRender(
13370
13375
  cell.column.columnDef.cell,
13371
13376
  cell.getContext()
13372
13377
  ) }, cell.id);
@@ -13376,15 +13381,15 @@ var Table = ({
13376
13381
  );
13377
13382
  }),
13378
13383
  range(table.getState().pagination.pageSize - table.getRowModel().rows.length, { allowEmptyRange: true }).map((row, index) => {
13379
- return /* @__PURE__ */ jsx60("tr", { children: columns.map((column) => {
13380
- return /* @__PURE__ */ jsx60("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ jsx60(FillerRowElement, {}) }, column.id);
13384
+ return /* @__PURE__ */ jsx61("tr", { children: columns.map((column) => {
13385
+ return /* @__PURE__ */ jsx61("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ jsx61(FillerRowElement, {}) }, column.id);
13381
13386
  }) }, "filler-row-" + index);
13382
13387
  })
13383
13388
  ] })
13384
13389
  ]
13385
13390
  }
13386
13391
  ) }),
13387
- /* @__PURE__ */ jsx60("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ jsx60(
13392
+ /* @__PURE__ */ jsx61("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ jsx61(
13388
13393
  Pagination,
13389
13394
  {
13390
13395
  pageIndex: table.getState().pagination.pageIndex,
@@ -13396,7 +13401,7 @@ var Table = ({
13396
13401
  };
13397
13402
  var TableUncontrolled = ({ data, ...props }) => {
13398
13403
  const [usedDate] = useOverwritableState(data);
13399
- return /* @__PURE__ */ jsx60(
13404
+ return /* @__PURE__ */ jsx61(
13400
13405
  Table,
13401
13406
  {
13402
13407
  ...props,
@@ -13420,7 +13425,7 @@ var TableWithSelection = ({
13420
13425
  {
13421
13426
  id: selectionRowId,
13422
13427
  header: ({ table }) => {
13423
- return /* @__PURE__ */ jsx60(
13428
+ return /* @__PURE__ */ jsx61(
13424
13429
  Checkbox,
13425
13430
  {
13426
13431
  checked: table.getIsAllRowsSelected(),
@@ -13433,7 +13438,7 @@ var TableWithSelection = ({
13433
13438
  );
13434
13439
  },
13435
13440
  cell: ({ row }) => {
13436
- return /* @__PURE__ */ jsx60(
13441
+ return /* @__PURE__ */ jsx61(
13437
13442
  Checkbox,
13438
13443
  {
13439
13444
  disabled: !row.getCanSelect(),
@@ -13451,15 +13456,15 @@ var TableWithSelection = ({
13451
13456
  ...columns
13452
13457
  ];
13453
13458
  }, [columns, selectionRowId]);
13454
- return /* @__PURE__ */ jsx60(
13459
+ return /* @__PURE__ */ jsx61(
13455
13460
  Table,
13456
13461
  {
13457
13462
  columns: columnsWithSelection,
13458
13463
  fillerRow: (columnId, table) => {
13459
13464
  if (columnId === selectionRowId) {
13460
- return /* @__PURE__ */ jsx60(Checkbox, { checked: false, disabled: true, className: "max-w-6" });
13465
+ return /* @__PURE__ */ jsx61(Checkbox, { checked: false, disabled: true, className: "max-w-6" });
13461
13466
  }
13462
- return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ jsx60(FillerRowElement, {});
13467
+ return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ jsx61(FillerRowElement, {});
13463
13468
  },
13464
13469
  state: {
13465
13470
  rowSelection,
@@ -13494,7 +13499,7 @@ var writeToClipboard = (text) => {
13494
13499
 
13495
13500
  // src/components/user-action/CopyToClipboardWrapper.tsx
13496
13501
  import { CheckIcon as CheckIcon2, Copy } from "lucide-react";
13497
- import { jsx as jsx61, jsxs as jsxs40 } from "react/jsx-runtime";
13502
+ import { jsx as jsx62, jsxs as jsxs40 } from "react/jsx-runtime";
13498
13503
  var CopyToClipboardWrapper = ({
13499
13504
  children,
13500
13505
  textToCopy,
@@ -13559,14 +13564,14 @@ var CopyToClipboardWrapper = ({
13559
13564
  },
13560
13565
  children: [
13561
13566
  isShowingConfirmation && /* @__PURE__ */ jsxs40("div", { className: "flex-row-1", children: [
13562
- /* @__PURE__ */ jsx61(CheckIcon2, { size: 16, className: "text-positive" }),
13567
+ /* @__PURE__ */ jsx62(CheckIcon2, { size: 16, className: "text-positive" }),
13563
13568
  translation("copied")
13564
13569
  ] }),
13565
13570
  isShowingIndication && /* @__PURE__ */ jsxs40("div", { className: "flex-row-1 text-description", children: [
13566
- /* @__PURE__ */ jsx61(Copy, { size: 16 }),
13571
+ /* @__PURE__ */ jsx62(Copy, { size: 16 }),
13567
13572
  translation("clickToCopy")
13568
13573
  ] }),
13569
- /* @__PURE__ */ jsx61(
13574
+ /* @__PURE__ */ jsx62(
13570
13575
  "div",
13571
13576
  {
13572
13577
  className: clsx49(`absolute w-0 h-0`, triangleClasses[position]),
@@ -13583,7 +13588,7 @@ var CopyToClipboardWrapper = ({
13583
13588
 
13584
13589
  // src/components/user-action/DateAndTimePicker.tsx
13585
13590
  import clsx50 from "clsx";
13586
- import { jsx as jsx62, jsxs as jsxs41 } from "react/jsx-runtime";
13591
+ import { jsx as jsx63, jsxs as jsxs41 } from "react/jsx-runtime";
13587
13592
  var DateTimePicker = ({
13588
13593
  value = /* @__PURE__ */ new Date(),
13589
13594
  start = subtractDuration(/* @__PURE__ */ new Date(), { years: 50 }),
@@ -13598,7 +13603,7 @@ var DateTimePicker = ({
13598
13603
  let dateDisplay;
13599
13604
  let timeDisplay;
13600
13605
  if (useDate) {
13601
- dateDisplay = /* @__PURE__ */ jsx62(
13606
+ dateDisplay = /* @__PURE__ */ jsx63(
13602
13607
  DatePicker,
13603
13608
  {
13604
13609
  ...datePickerProps,
@@ -13612,7 +13617,7 @@ var DateTimePicker = ({
13612
13617
  );
13613
13618
  }
13614
13619
  if (useTime) {
13615
- timeDisplay = /* @__PURE__ */ jsx62(
13620
+ timeDisplay = /* @__PURE__ */ jsx63(
13616
13621
  TimePicker,
13617
13622
  {
13618
13623
  ...timePickerProps,
@@ -13631,7 +13636,7 @@ var DateTimePicker = ({
13631
13636
  // src/components/user-action/ScrollPicker.tsx
13632
13637
  import { useCallback as useCallback13, useEffect as useEffect28, useState as useState29 } from "react";
13633
13638
  import clsx51 from "clsx";
13634
- import { jsx as jsx63, jsxs as jsxs42 } from "react/jsx-runtime";
13639
+ import { jsx as jsx64, jsxs as jsxs42 } from "react/jsx-runtime";
13635
13640
  var up = 1;
13636
13641
  var down = -1;
13637
13642
  var ScrollPicker = ({
@@ -13770,7 +13775,7 @@ var ScrollPicker = ({
13770
13775
  }
13771
13776
  return clamp(1 - opacityValue / max);
13772
13777
  };
13773
- return /* @__PURE__ */ jsx63(
13778
+ return /* @__PURE__ */ jsx64(
13774
13779
  "div",
13775
13780
  {
13776
13781
  className: "relative overflow-hidden",
@@ -13782,14 +13787,14 @@ var ScrollPicker = ({
13782
13787
  }
13783
13788
  },
13784
13789
  children: /* @__PURE__ */ jsxs42("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
13785
- /* @__PURE__ */ jsx63(
13790
+ /* @__PURE__ */ jsx64(
13786
13791
  "div",
13787
13792
  {
13788
13793
  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 ",
13789
13794
  style: { height: `${itemHeight}px` }
13790
13795
  }
13791
13796
  ),
13792
- /* @__PURE__ */ jsx63(
13797
+ /* @__PURE__ */ jsx64(
13793
13798
  "div",
13794
13799
  {
13795
13800
  className: "flex-col-2 select-none",
@@ -13797,7 +13802,7 @@ var ScrollPicker = ({
13797
13802
  transform: `translateY(${-transition * (distance + itemHeight)}px)`,
13798
13803
  columnGap: `${distance}px`
13799
13804
  },
13800
- children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ jsx63(
13805
+ children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ jsx64(
13801
13806
  "div",
13802
13807
  {
13803
13808
  className: clsx51(
@@ -13830,7 +13835,7 @@ var ScrollPicker = ({
13830
13835
  import { useEffect as useEffect29, useMemo as useMemo8, useRef as useRef15, useState as useState30 } from "react";
13831
13836
  import { CalendarIcon } from "lucide-react";
13832
13837
  import clsx52 from "clsx";
13833
- import { Fragment as Fragment8, jsx as jsx64, jsxs as jsxs43 } from "react/jsx-runtime";
13838
+ import { Fragment as Fragment10, jsx as jsx65, jsxs as jsxs43 } from "react/jsx-runtime";
13834
13839
  var DateTimeInput = ({
13835
13840
  date,
13836
13841
  onValueChange,
@@ -13858,13 +13863,13 @@ var DateTimeInput = ({
13858
13863
  const cleanInputProps = { ...props };
13859
13864
  delete cleanInputProps["isShowingError"];
13860
13865
  delete cleanInputProps["setIsShowingError"];
13861
- return /* @__PURE__ */ jsxs43(Fragment8, { children: [
13866
+ return /* @__PURE__ */ jsxs43(Fragment10, { children: [
13862
13867
  /* @__PURE__ */ jsxs43("div", { ...containerProps, className: clsx52("relative w-full", containerProps?.className), children: [
13863
- /* @__PURE__ */ jsx64(
13868
+ /* @__PURE__ */ jsx65(
13864
13869
  Input,
13865
13870
  {
13866
13871
  ...cleanInputProps,
13867
- placeholder: translation("clickToAdd"),
13872
+ placeholder: translation("clickToSelect"),
13868
13873
  value: date ? DateUtils.formatAbsolute(date, locale, mode === "dateTime") : "",
13869
13874
  onClick: (event) => {
13870
13875
  setIsOpen(true);
@@ -13878,7 +13883,7 @@ var DateTimeInput = ({
13878
13883
  )
13879
13884
  }
13880
13885
  ),
13881
- /* @__PURE__ */ jsx64(
13886
+ /* @__PURE__ */ jsx65(
13882
13887
  Button,
13883
13888
  {
13884
13889
  coloringStyle: "text",
@@ -13888,18 +13893,18 @@ var DateTimeInput = ({
13888
13893
  className: "absolute right-1 top-1/2 -translate-y-1/2",
13889
13894
  disabled: isReadOnly,
13890
13895
  onClick: () => setIsOpen((prevState) => !prevState),
13891
- children: /* @__PURE__ */ jsx64(CalendarIcon, { className: "size-5" })
13896
+ children: /* @__PURE__ */ jsx65(CalendarIcon, { className: "size-5" })
13892
13897
  }
13893
13898
  )
13894
13899
  ] }),
13895
- /* @__PURE__ */ jsx64(Visibility, { isVisible: isOpen, children: /* @__PURE__ */ jsxs43(
13900
+ /* @__PURE__ */ jsx65(Visibility, { isVisible: isOpen, children: /* @__PURE__ */ jsxs43(
13896
13901
  "div",
13897
13902
  {
13898
13903
  ref: containerRef,
13899
13904
  className: "absolute left-0 flex-col-3 rounded-lg shadow-xl border bg-surface-variant text-on-surface border-divider p-2",
13900
13905
  style: { zIndex },
13901
13906
  children: [
13902
- /* @__PURE__ */ jsx64(
13907
+ /* @__PURE__ */ jsx65(
13903
13908
  DateTimePicker,
13904
13909
  {
13905
13910
  ...pickerProps,
@@ -13911,7 +13916,7 @@ var DateTimeInput = ({
13911
13916
  }
13912
13917
  ),
13913
13918
  /* @__PURE__ */ jsxs43("div", { className: "flex-row-2 justify-end", children: [
13914
- /* @__PURE__ */ jsx64(Visibility, { isVisible: !!onRemove, children: /* @__PURE__ */ jsx64(
13919
+ /* @__PURE__ */ jsx65(Visibility, { isVisible: !!onRemove, children: /* @__PURE__ */ jsx65(
13915
13920
  Button,
13916
13921
  {
13917
13922
  size: "medium",
@@ -13923,7 +13928,7 @@ var DateTimeInput = ({
13923
13928
  children: translation("clear")
13924
13929
  }
13925
13930
  ) }),
13926
- /* @__PURE__ */ jsx64(
13931
+ /* @__PURE__ */ jsx65(
13927
13932
  Button,
13928
13933
  {
13929
13934
  size: "medium",
@@ -13944,8 +13949,8 @@ var DateTimeInputUncontrolled = ({
13944
13949
  date: initialDate,
13945
13950
  ...props
13946
13951
  }) => {
13947
- const [date, setDate] = useOverwritableState(useMemo8(() => initialDate ?? /* @__PURE__ */ new Date(), [initialDate]));
13948
- return /* @__PURE__ */ jsx64(
13952
+ const [date, setDate] = useOverwritableState(initialDate);
13953
+ return /* @__PURE__ */ jsx65(
13949
13954
  DateTimeInput,
13950
13955
  {
13951
13956
  ...props,
@@ -13955,7 +13960,7 @@ var DateTimeInputUncontrolled = ({
13955
13960
  props.onValueChange?.(newDate);
13956
13961
  },
13957
13962
  onRemove: () => {
13958
- setDate(/* @__PURE__ */ new Date());
13963
+ setDate(void 0);
13959
13964
  props.onRemove?.();
13960
13965
  }
13961
13966
  }
@@ -13966,7 +13971,7 @@ var DateTimeInputUncontrolled = ({
13966
13971
  import { useId as useId11 } from "react";
13967
13972
  import { forwardRef as forwardRef9, useState as useState31 } from "react";
13968
13973
  import clsx53 from "clsx";
13969
- import { jsx as jsx65, jsxs as jsxs44 } from "react/jsx-runtime";
13974
+ import { jsx as jsx66, jsxs as jsxs44 } from "react/jsx-runtime";
13970
13975
  var InsideLabelInput = forwardRef9(function InsideLabelInput2({
13971
13976
  id: customId,
13972
13977
  label,
@@ -13977,7 +13982,7 @@ var InsideLabelInput = forwardRef9(function InsideLabelInput2({
13977
13982
  const generatedId = useId11();
13978
13983
  const id = customId ?? generatedId;
13979
13984
  return /* @__PURE__ */ jsxs44("div", { className: clsx53("relative"), children: [
13980
- /* @__PURE__ */ jsx65(
13985
+ /* @__PURE__ */ jsx66(
13981
13986
  Input,
13982
13987
  {
13983
13988
  ...props,
@@ -13995,7 +14000,7 @@ var InsideLabelInput = forwardRef9(function InsideLabelInput2({
13995
14000
  }
13996
14001
  }
13997
14002
  ),
13998
- /* @__PURE__ */ jsx65(
14003
+ /* @__PURE__ */ jsx66(
13999
14004
  "label",
14000
14005
  {
14001
14006
  id: id + "-label",
@@ -14017,7 +14022,7 @@ var InsideLabelInputUncontrolled = ({
14017
14022
  ...props
14018
14023
  }) => {
14019
14024
  const [value, setValue] = useOverwritableState(initialValue, props.onChangeText);
14020
- return /* @__PURE__ */ jsx65(
14025
+ return /* @__PURE__ */ jsx66(
14021
14026
  InsideLabelInput,
14022
14027
  {
14023
14028
  ...props,
@@ -14030,7 +14035,7 @@ var InsideLabelInputUncontrolled = ({
14030
14035
  // src/components/user-action/input/SearchBar.tsx
14031
14036
  import { Search } from "lucide-react";
14032
14037
  import { clsx as clsx54 } from "clsx";
14033
- import { jsx as jsx66, jsxs as jsxs45 } from "react/jsx-runtime";
14038
+ import { jsx as jsx67, jsxs as jsxs45 } from "react/jsx-runtime";
14034
14039
  var SearchBar = ({
14035
14040
  onSearch,
14036
14041
  searchButtonProps,
@@ -14039,7 +14044,7 @@ var SearchBar = ({
14039
14044
  }) => {
14040
14045
  const translation = useHightideTranslation();
14041
14046
  return /* @__PURE__ */ jsxs45("div", { ...containerProps, className: clsx54("relative", containerProps?.className), children: [
14042
- /* @__PURE__ */ jsx66(
14047
+ /* @__PURE__ */ jsx67(
14043
14048
  InputUncontrolled,
14044
14049
  {
14045
14050
  ...inputProps,
@@ -14047,7 +14052,7 @@ var SearchBar = ({
14047
14052
  className: clsx54("pr-10 w-full", inputProps.className)
14048
14053
  }
14049
14054
  ),
14050
- onSearch && /* @__PURE__ */ jsx66(
14055
+ onSearch && /* @__PURE__ */ jsx67(
14051
14056
  Button,
14052
14057
  {
14053
14058
  ...searchButtonProps,
@@ -14057,7 +14062,7 @@ var SearchBar = ({
14057
14062
  coloringStyle: "text",
14058
14063
  onClick: (event) => onSearch(event),
14059
14064
  className: clsx54("absolute right-1 top-1/2 -translate-y-1/2", searchButtonProps?.className),
14060
- children: /* @__PURE__ */ jsx66(Search, { className: "w-full h-full" })
14065
+ children: /* @__PURE__ */ jsx67(Search, { className: "w-full h-full" })
14061
14066
  }
14062
14067
  )
14063
14068
  ] });
@@ -14067,7 +14072,7 @@ var SearchBar = ({
14067
14072
  import { forwardRef as forwardRef10, useEffect as useEffect30, useImperativeHandle as useImperativeHandle4, useRef as useRef16, useState as useState32 } from "react";
14068
14073
  import { Pencil } from "lucide-react";
14069
14074
  import clsx55 from "clsx";
14070
- import { jsx as jsx67, jsxs as jsxs46 } from "react/jsx-runtime";
14075
+ import { jsx as jsx68, jsxs as jsxs46 } from "react/jsx-runtime";
14071
14076
  var ToggleableInput = forwardRef10(function ToggleableInput2({
14072
14077
  value,
14073
14078
  initialState = "display",
@@ -14083,7 +14088,7 @@ var ToggleableInput = forwardRef10(function ToggleableInput2({
14083
14088
  }
14084
14089
  }, [isEditing]);
14085
14090
  return /* @__PURE__ */ jsxs46("div", { className: clsx55("relative flex-row-2", { "flex-1": isEditing }), children: [
14086
- /* @__PURE__ */ jsx67(
14091
+ /* @__PURE__ */ jsx68(
14087
14092
  Input,
14088
14093
  {
14089
14094
  ...props,
@@ -14110,8 +14115,8 @@ var ToggleableInput = forwardRef10(function ToggleableInput2({
14110
14115
  }
14111
14116
  ),
14112
14117
  !isEditing && /* @__PURE__ */ jsxs46("div", { className: "absolute left-0 flex-row-2 items-center pointer-events-none touch-none w-full overflow-hidden", children: [
14113
- /* @__PURE__ */ jsx67("span", { className: clsx55(" truncate"), children: value }),
14114
- /* @__PURE__ */ jsx67(Pencil, { className: clsx55(`size-force-4`, { "text-transparent": isEditing }) })
14118
+ /* @__PURE__ */ jsx68("span", { className: clsx55(" truncate"), children: value }),
14119
+ /* @__PURE__ */ jsx68(Pencil, { className: clsx55(`size-force-4`, { "text-transparent": isEditing }) })
14115
14120
  ] })
14116
14121
  ] });
14117
14122
  });
@@ -14121,7 +14126,7 @@ var ToggleableInputUncontrolled = ({
14121
14126
  ...restProps
14122
14127
  }) => {
14123
14128
  const [value, setValue] = useOverwritableState(initialValue, onChangeText);
14124
- return /* @__PURE__ */ jsx67(
14129
+ return /* @__PURE__ */ jsx68(
14125
14130
  ToggleableInput,
14126
14131
  {
14127
14132
  value,
@@ -14135,7 +14140,7 @@ var ToggleableInputUncontrolled = ({
14135
14140
  import { useRef as useRef17 } from "react";
14136
14141
  import { useImperativeHandle as useImperativeHandle5 } from "react";
14137
14142
  import { forwardRef as forwardRef11 } from "react";
14138
- import { jsx as jsx68 } from "react/jsx-runtime";
14143
+ import { jsx as jsx69 } from "react/jsx-runtime";
14139
14144
  var FocusTrap = forwardRef11(function FocusTrap2({
14140
14145
  active = true,
14141
14146
  initialFocus,
@@ -14145,7 +14150,7 @@ var FocusTrap = forwardRef11(function FocusTrap2({
14145
14150
  const innerRef = useRef17(null);
14146
14151
  useImperativeHandle5(forwardedRef, () => innerRef.current);
14147
14152
  useFocusTrap({ container: innerRef, active, initialFocus, focusFirst });
14148
- return /* @__PURE__ */ jsx68("div", { ref: innerRef, ...props });
14153
+ return /* @__PURE__ */ jsx69("div", { ref: innerRef, ...props });
14149
14154
  });
14150
14155
 
14151
14156
  // src/components/utils/Transition.tsx