@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.js CHANGED
@@ -11543,24 +11543,22 @@ var VerticalDivider = ({
11543
11543
  };
11544
11544
 
11545
11545
  // src/components/layout/Visibility.tsx
11546
+ var import_jsx_runtime36 = require("react/jsx-runtime");
11546
11547
  function Visibility({ children, isVisible }) {
11547
- if (isVisible) {
11548
- return children;
11549
- }
11550
- return void 0;
11548
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: isVisible && children });
11551
11549
  }
11552
11550
 
11553
11551
  // src/components/loading-states/ErrorComponent.tsx
11554
11552
  var import_lucide_react8 = require("lucide-react");
11555
11553
  var import_clsx26 = __toESM(require("clsx"));
11556
- var import_jsx_runtime36 = require("react/jsx-runtime");
11554
+ var import_jsx_runtime37 = require("react/jsx-runtime");
11557
11555
  var ErrorComponent = ({
11558
11556
  errorText,
11559
11557
  classname
11560
11558
  }) => {
11561
11559
  const translation = useHightideTranslation();
11562
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: (0, import_clsx26.default)("flex-col-4 items-center justify-center w-full h-24", classname), children: [
11563
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react8.AlertOctagon, { size: 64, className: "text-warning" }),
11560
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: (0, import_clsx26.default)("flex-col-4 items-center justify-center w-full h-24", classname), children: [
11561
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react8.AlertOctagon, { size: 64, className: "text-warning" }),
11564
11562
  errorText ?? `${translation("errorOccurred")} :(`
11565
11563
  ] });
11566
11564
  };
@@ -11570,14 +11568,14 @@ var import_react30 = require("react");
11570
11568
 
11571
11569
  // src/components/loading-states/LoadingContainer.tsx
11572
11570
  var import_clsx27 = require("clsx");
11573
- var import_jsx_runtime37 = require("react/jsx-runtime");
11571
+ var import_jsx_runtime38 = require("react/jsx-runtime");
11574
11572
  var LoadingContainer = ({ className }) => {
11575
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: (0, import_clsx27.clsx)("relative overflow-hidden shimmer bg-disabled/30 rounded-md", className) });
11573
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: (0, import_clsx27.clsx)("relative overflow-hidden shimmer bg-disabled/30 rounded-md", className) });
11576
11574
  };
11577
11575
 
11578
11576
  // src/components/loading-states/LoadingAndErrorComponent.tsx
11579
11577
  var import_clsx28 = require("clsx");
11580
- var import_jsx_runtime38 = require("react/jsx-runtime");
11578
+ var import_jsx_runtime39 = require("react/jsx-runtime");
11581
11579
  var LoadingAndErrorComponent = ({
11582
11580
  children,
11583
11581
  isLoading = false,
@@ -11597,40 +11595,40 @@ var LoadingAndErrorComponent = ({
11597
11595
  }, minimumLoadingDuration);
11598
11596
  }
11599
11597
  if (isLoading || minimumLoadingDuration && isInMinimumLoading) {
11600
- return loadingComponent ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(LoadingContainer, { className: (0, import_clsx28.clsx)(className) });
11598
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: loadingComponent ?? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(LoadingContainer, { className: (0, import_clsx28.clsx)(className) }) });
11601
11599
  }
11602
11600
  if (hasError) {
11603
- return errorComponent ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(LoadingContainer, { className: (0, import_clsx28.clsx)("bg-negative", className) });
11601
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: errorComponent ?? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(LoadingContainer, { className: (0, import_clsx28.clsx)("bg-negative", className) }) });
11604
11602
  }
11605
- return children;
11603
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children });
11606
11604
  };
11607
11605
 
11608
11606
  // src/components/loading-states/LoadingAnimation.tsx
11609
11607
  var import_clsx29 = __toESM(require("clsx"));
11610
- var import_jsx_runtime39 = require("react/jsx-runtime");
11608
+ var import_jsx_runtime40 = require("react/jsx-runtime");
11611
11609
  var LoadingAnimation = ({
11612
11610
  loadingText,
11613
11611
  classname
11614
11612
  }) => {
11615
11613
  const translation = useHightideTranslation();
11616
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: (0, import_clsx29.default)("flex-col-2 items-center justify-center w-full h-24", classname), children: [
11617
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(HelpwaveLogo, { animate: "loading" }),
11614
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: (0, import_clsx29.default)("flex-col-2 items-center justify-center w-full h-24", classname), children: [
11615
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(HelpwaveLogo, { animate: "loading" }),
11618
11616
  loadingText ?? `${translation("loading")}...`
11619
11617
  ] });
11620
11618
  };
11621
11619
 
11622
11620
  // src/components/loading-states/LoadingButton.tsx
11623
11621
  var import_clsx30 = __toESM(require("clsx"));
11624
- var import_jsx_runtime40 = require("react/jsx-runtime");
11622
+ var import_jsx_runtime41 = require("react/jsx-runtime");
11625
11623
  var LoadingButton = ({ isLoading = false, size = "medium", onClick, ...rest }) => {
11626
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "inline-block relative", children: [
11627
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: (0, import_clsx30.default)("flex-row-2 absolute inset-0 items-center justify-center bg-white/40"), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(HelpwaveLogo, { animate: "loading", className: "text-white" }) }),
11628
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Button, { ...rest, size, disabled: rest.disabled, onClick })
11624
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "inline-block relative", children: [
11625
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: (0, import_clsx30.default)("flex-row-2 absolute inset-0 items-center justify-center bg-white/40"), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(HelpwaveLogo, { animate: "loading", className: "text-white" }) }),
11626
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Button, { ...rest, size, disabled: rest.disabled, onClick })
11629
11627
  ] });
11630
11628
  };
11631
11629
 
11632
11630
  // src/components/loading-states/ProgressIndicator.tsx
11633
- var import_jsx_runtime41 = require("react/jsx-runtime");
11631
+ var import_jsx_runtime42 = require("react/jsx-runtime");
11634
11632
  var sizeMapping = { small: 16, medium: 24, big: 48 };
11635
11633
  var ProgressIndicator = ({
11636
11634
  progress,
@@ -11647,7 +11645,7 @@ var ProgressIndicator = ({
11647
11645
  if (direction === "clockwise") {
11648
11646
  rotation += 360 * progress;
11649
11647
  }
11650
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
11648
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
11651
11649
  "svg",
11652
11650
  {
11653
11651
  style: {
@@ -11656,7 +11654,7 @@ var ProgressIndicator = ({
11656
11654
  transform: `rotate(${rotation}deg)`
11657
11655
  },
11658
11656
  children: [
11659
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
11657
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11660
11658
  "circle",
11661
11659
  {
11662
11660
  cx: center,
@@ -11667,7 +11665,7 @@ var ProgressIndicator = ({
11667
11665
  className: "stroke-progress-indicator-fill"
11668
11666
  }
11669
11667
  ),
11670
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
11668
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11671
11669
  "circle",
11672
11670
  {
11673
11671
  cx: center,
@@ -11689,12 +11687,12 @@ var ProgressIndicator = ({
11689
11687
  var import_link = __toESM(require_link2());
11690
11688
  var import_clsx31 = __toESM(require("clsx"));
11691
11689
  var import_react31 = require("react");
11692
- var import_jsx_runtime42 = require("react/jsx-runtime");
11690
+ var import_jsx_runtime43 = require("react/jsx-runtime");
11693
11691
  var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
11694
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: (0, import_clsx31.default)("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
11692
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: (0, import_clsx31.default)("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
11695
11693
  const isLast = index === crumbs.length - 1;
11696
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_react31.Fragment, { children: [
11697
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11694
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_react31.Fragment, { children: [
11695
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11698
11696
  import_link.default,
11699
11697
  {
11700
11698
  href: crumb.link,
@@ -11709,7 +11707,7 @@ var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
11709
11707
  children: crumb.display
11710
11708
  }
11711
11709
  ),
11712
- !isLast && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: (0, import_clsx31.default)(`px-1`, "text-description"), children: "/" })
11710
+ !isLast && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: (0, import_clsx31.default)(`px-1`, "text-description"), children: "/" })
11713
11711
  ] }, index);
11714
11712
  }) });
11715
11713
  };
@@ -11720,7 +11718,7 @@ var import_react32 = require("react");
11720
11718
  var import_react33 = require("react");
11721
11719
  var import_link2 = __toESM(require_link2());
11722
11720
  var import_clsx32 = __toESM(require("clsx"));
11723
- var import_jsx_runtime43 = require("react/jsx-runtime");
11721
+ var import_jsx_runtime44 = require("react/jsx-runtime");
11724
11722
  function isSubItem(item) {
11725
11723
  return "items" in item && Array.isArray(item.items);
11726
11724
  }
@@ -11748,8 +11746,8 @@ var NavigationItemWithSubItem = ({
11748
11746
  }
11749
11747
  }, []);
11750
11748
  const zIndex = useZIndexRegister(isOpen);
11751
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
11752
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
11749
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
11750
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
11753
11751
  "button",
11754
11752
  {
11755
11753
  id: "navigation-" + id,
@@ -11764,11 +11762,11 @@ var NavigationItemWithSubItem = ({
11764
11762
  "aria-controls": "navigation-items-" + id,
11765
11763
  children: [
11766
11764
  label,
11767
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ExpansionIcon, { isExpanded: isOpen })
11765
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ExpansionIcon, { isExpanded: isOpen })
11768
11766
  ]
11769
11767
  }
11770
11768
  ),
11771
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11769
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11772
11770
  "ul",
11773
11771
  {
11774
11772
  id: "navigation-items-" + id,
@@ -11787,7 +11785,7 @@ var NavigationItemWithSubItem = ({
11787
11785
  { "opacity-0": !style }
11788
11786
  ),
11789
11787
  style: { ...style, zIndex },
11790
- children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11788
+ children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11791
11789
  import_link2.default,
11792
11790
  {
11793
11791
  href: link,
@@ -11801,7 +11799,7 @@ var NavigationItemWithSubItem = ({
11801
11799
  ] });
11802
11800
  };
11803
11801
  var NavigationItemList = ({ items, ...restProps }) => {
11804
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { ...restProps, className: (0, import_clsx32.default)("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("li", { children: isSubItem(item) ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
11802
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("ul", { ...restProps, className: (0, import_clsx32.default)("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("li", { children: isSubItem(item) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
11805
11803
  };
11806
11804
  var Navigation = ({ ...props }) => {
11807
11805
  const [isMobileOpen, setIsMobileOpen] = (0, import_react33.useState)(false);
@@ -11811,15 +11809,15 @@ var Navigation = ({ ...props }) => {
11811
11809
  menuRef.current?.focus();
11812
11810
  }, [isMobileOpen]);
11813
11811
  const zIndex = useZIndexRegister(isMobileOpen);
11814
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("nav", { children: [
11815
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11812
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("nav", { children: [
11813
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11816
11814
  NavigationItemList,
11817
11815
  {
11818
11816
  ...props,
11819
11817
  className: (0, import_clsx32.default)("hidden", { "desktop:flex": !isMobileOpen }, props.className)
11820
11818
  }
11821
11819
  ),
11822
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11820
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11823
11821
  Button,
11824
11822
  {
11825
11823
  layout: "icon",
@@ -11830,10 +11828,10 @@ var Navigation = ({ ...props }) => {
11830
11828
  "aria-haspopup": "true",
11831
11829
  "aria-expanded": isMobileOpen,
11832
11830
  "aria-controls": "navigation-menu-" + id,
11833
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react9.Menu, { className: "w-6 h-6" })
11831
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react9.Menu, { className: "w-6 h-6" })
11834
11832
  }
11835
11833
  ),
11836
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
11834
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
11837
11835
  "div",
11838
11836
  {
11839
11837
  id: "navigation-menu-" + id,
@@ -11855,17 +11853,17 @@ var Navigation = ({ ...props }) => {
11855
11853
  ),
11856
11854
  style: { zIndex },
11857
11855
  children: [
11858
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11856
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11859
11857
  Button,
11860
11858
  {
11861
11859
  layout: "icon",
11862
11860
  coloringStyle: "text",
11863
11861
  color: "neutral",
11864
11862
  onClick: () => setIsMobileOpen(false),
11865
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react9.XIcon, {})
11863
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react9.XIcon, {})
11866
11864
  }
11867
11865
  ),
11868
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(NavigationItemList, { ...props, className: (0, import_clsx32.default)("flex-col-8", props.className) })
11866
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavigationItemList, { ...props, className: (0, import_clsx32.default)("flex-col-8", props.className) })
11869
11867
  ]
11870
11868
  }
11871
11869
  )
@@ -11876,7 +11874,7 @@ var Navigation = ({ ...props }) => {
11876
11874
  var import_lucide_react10 = require("lucide-react");
11877
11875
  var import_clsx33 = __toESM(require("clsx"));
11878
11876
  var import_react34 = require("react");
11879
- var import_jsx_runtime44 = require("react/jsx-runtime");
11877
+ var import_jsx_runtime45 = require("react/jsx-runtime");
11880
11878
  var Pagination = ({
11881
11879
  pageIndex,
11882
11880
  pageCount,
@@ -11899,8 +11897,8 @@ var Pagination = ({
11899
11897
  const changePage = (page) => {
11900
11898
  onPageChanged(page);
11901
11899
  };
11902
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: (0, import_clsx33.default)("flex-row-1", className), style, children: [
11903
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11900
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: (0, import_clsx33.default)("flex-row-1", className), style, children: [
11901
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11904
11902
  Button,
11905
11903
  {
11906
11904
  layout: "icon",
@@ -11908,10 +11906,10 @@ var Pagination = ({
11908
11906
  color: "neutral",
11909
11907
  onClick: () => changePage(0),
11910
11908
  disabled: onFirstPage || noPages,
11911
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronFirst, {})
11909
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronFirst, {})
11912
11910
  }
11913
11911
  ),
11914
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11912
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11915
11913
  Button,
11916
11914
  {
11917
11915
  layout: "icon",
@@ -11919,11 +11917,11 @@ var Pagination = ({
11919
11917
  color: "neutral",
11920
11918
  onClick: () => changePage(pageIndex - 1),
11921
11919
  disabled: onFirstPage || noPages,
11922
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronLeft, {})
11920
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronLeft, {})
11923
11921
  }
11924
11922
  ),
11925
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex-row-2 min-w-56 items-center justify-center mx-2 text-center", children: [
11926
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11923
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex-row-2 min-w-56 items-center justify-center mx-2 text-center", children: [
11924
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11927
11925
  Input,
11928
11926
  {
11929
11927
  value,
@@ -11947,8 +11945,8 @@ var Pagination = ({
11947
11945
  editCompleteOptions: { delay: 800 }
11948
11946
  }
11949
11947
  ),
11950
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "select-none w-10", children: translation("of") }),
11951
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11948
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "select-none w-10", children: translation("of") }),
11949
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11952
11950
  "span",
11953
11951
  {
11954
11952
  className: "flex-row-2 w-24 items-center justify-center select-none h-10 bg-input-background text-input-text rounded-md font-bold",
@@ -11956,7 +11954,7 @@ var Pagination = ({
11956
11954
  }
11957
11955
  )
11958
11956
  ] }),
11959
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11957
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11960
11958
  Button,
11961
11959
  {
11962
11960
  layout: "icon",
@@ -11964,10 +11962,10 @@ var Pagination = ({
11964
11962
  color: "neutral",
11965
11963
  onClick: () => changePage(pageIndex + 1),
11966
11964
  disabled: onLastPage || noPages,
11967
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronRight, {})
11965
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronRight, {})
11968
11966
  }
11969
11967
  ),
11970
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11968
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11971
11969
  Button,
11972
11970
  {
11973
11971
  layout: "icon",
@@ -11975,7 +11973,7 @@ var Pagination = ({
11975
11973
  color: "neutral",
11976
11974
  onClick: () => changePage(pageCount - 1),
11977
11975
  disabled: onLastPage || noPages,
11978
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronLast, {})
11976
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronLast, {})
11979
11977
  }
11980
11978
  )
11981
11979
  ] });
@@ -11984,7 +11982,7 @@ var Pagination = ({
11984
11982
  // src/components/navigation/StepperBar.tsx
11985
11983
  var import_lucide_react11 = require("lucide-react");
11986
11984
  var import_clsx34 = __toESM(require("clsx"));
11987
- var import_jsx_runtime45 = require("react/jsx-runtime");
11985
+ var import_jsx_runtime46 = require("react/jsx-runtime");
11988
11986
  var defaultState = {
11989
11987
  currentStep: 0,
11990
11988
  seenSteps: /* @__PURE__ */ new Set([0])
@@ -12006,12 +12004,12 @@ var StepperBar = ({
12006
12004
  seenSteps.add(newStep);
12007
12005
  onChange({ currentStep: newStep, seenSteps });
12008
12006
  };
12009
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
12007
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12010
12008
  "div",
12011
12009
  {
12012
12010
  className: (0, import_clsx34.default)("flex-row-2 justify-between", className),
12013
12011
  children: [
12014
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
12012
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12015
12013
  Button,
12016
12014
  {
12017
12015
  disabled: currentStep === 0 || disabledSteps.has(currentStep),
@@ -12020,14 +12018,14 @@ var StepperBar = ({
12020
12018
  },
12021
12019
  className: "flex-row-1 items-center justify-center",
12022
12020
  children: [
12023
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react11.ChevronLeft, { size: 14 }),
12021
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react11.ChevronLeft, { size: 14 }),
12024
12022
  translation("back")
12025
12023
  ]
12026
12024
  }
12027
12025
  ) }),
12028
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-row-2 flex-[5] justify-center items-center", children: showDots && dots.map((value, index) => {
12026
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex-row-2 flex-[5] justify-center items-center", children: showDots && dots.map((value, index) => {
12029
12027
  const seen = seenSteps.has(index);
12030
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
12028
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12031
12029
  "div",
12032
12030
  {
12033
12031
  onClick: () => seen && update(index),
@@ -12047,7 +12045,7 @@ var StepperBar = ({
12047
12045
  index
12048
12046
  );
12049
12047
  }) }),
12050
- currentStep !== numberOfSteps && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
12048
+ currentStep !== numberOfSteps && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12051
12049
  Button,
12052
12050
  {
12053
12051
  onClick: () => update(currentStep + 1),
@@ -12055,18 +12053,18 @@ var StepperBar = ({
12055
12053
  disabled: disabledSteps.has(currentStep),
12056
12054
  children: [
12057
12055
  translation("next"),
12058
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react11.ChevronRight, { size: 14 })
12056
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react11.ChevronRight, { size: 14 })
12059
12057
  ]
12060
12058
  }
12061
12059
  ) }),
12062
- currentStep === numberOfSteps && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
12060
+ currentStep === numberOfSteps && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12063
12061
  Button,
12064
12062
  {
12065
12063
  disabled: disabledSteps.has(currentStep),
12066
12064
  onClick: onFinish,
12067
12065
  className: "flex-row-1 items-center justify-center",
12068
12066
  children: [
12069
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react11.Check, { size: 14 }),
12067
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react11.Check, { size: 14 }),
12070
12068
  finishText ?? translation("confirm")
12071
12069
  ]
12072
12070
  }
@@ -12077,7 +12075,7 @@ var StepperBar = ({
12077
12075
  };
12078
12076
  var StepperBarUncontrolled = ({ state, onChange, ...props }) => {
12079
12077
  const [usedState, setUsedState] = useOverwritableState(state, onChange);
12080
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
12078
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12081
12079
  StepperBar,
12082
12080
  {
12083
12081
  ...props,
@@ -12093,7 +12091,7 @@ var import_lucide_react14 = require("lucide-react");
12093
12091
  // src/components/user-action/Checkbox.tsx
12094
12092
  var import_lucide_react12 = require("lucide-react");
12095
12093
  var import_clsx35 = __toESM(require("clsx"));
12096
- var import_jsx_runtime46 = require("react/jsx-runtime");
12094
+ var import_jsx_runtime47 = require("react/jsx-runtime");
12097
12095
  var checkboxSizeMapping = {
12098
12096
  small: "size-5 border-2",
12099
12097
  medium: "size-6 border-2",
@@ -12116,7 +12114,7 @@ var Checkbox = ({
12116
12114
  }) => {
12117
12115
  const usedSizeClass = checkboxSizeMapping[size];
12118
12116
  const innerIconSize = checkboxIconSizeMapping[size];
12119
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12117
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
12120
12118
  "div",
12121
12119
  {
12122
12120
  ...props,
@@ -12147,8 +12145,8 @@ var Checkbox = ({
12147
12145
  "aria-disabled": disabled,
12148
12146
  tabIndex: disabled ? -1 : 0,
12149
12147
  children: [
12150
- !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react12.Check, { className: innerIconSize, "aria-hidden": true }),
12151
- indeterminate && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react12.Minus, { className: innerIconSize, "aria-hidden": true })
12148
+ !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react12.Check, { className: innerIconSize, "aria-hidden": true }),
12149
+ indeterminate && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react12.Minus, { className: innerIconSize, "aria-hidden": true })
12152
12150
  ]
12153
12151
  }
12154
12152
  );
@@ -12159,7 +12157,7 @@ var CheckboxUncontrolled = ({
12159
12157
  ...props
12160
12158
  }) => {
12161
12159
  const [checked, setChecked] = useOverwritableState(initialChecked, onCheckedChange);
12162
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12160
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12163
12161
  Checkbox,
12164
12162
  {
12165
12163
  ...props,
@@ -12172,7 +12170,7 @@ var CheckboxUncontrolled = ({
12172
12170
  // src/components/properties/PropertyBase.tsx
12173
12171
  var import_lucide_react13 = require("lucide-react");
12174
12172
  var import_clsx36 = __toESM(require("clsx"));
12175
- var import_jsx_runtime47 = require("react/jsx-runtime");
12173
+ var import_jsx_runtime48 = require("react/jsx-runtime");
12176
12174
  var PropertyBase = ({
12177
12175
  name,
12178
12176
  input,
@@ -12185,8 +12183,8 @@ var PropertyBase = ({
12185
12183
  }) => {
12186
12184
  const translation = useHightideTranslation();
12187
12185
  const requiredAndNoValue = softRequired && !hasValue;
12188
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: (0, import_clsx36.default)("flex-row-0 group", className), children: [
12189
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
12186
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: (0, import_clsx36.default)("flex-row-0 group", className), children: [
12187
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
12190
12188
  "div",
12191
12189
  {
12192
12190
  className: (0, import_clsx36.default)(
@@ -12198,12 +12196,12 @@ var PropertyBase = ({
12198
12196
  className
12199
12197
  ),
12200
12198
  children: [
12201
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
12202
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "font-semibold", children: name })
12199
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
12200
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "font-semibold", children: name })
12203
12201
  ]
12204
12202
  }
12205
12203
  ),
12206
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
12204
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
12207
12205
  "div",
12208
12206
  {
12209
12207
  className: (0, import_clsx36.default)(
@@ -12216,8 +12214,8 @@ var PropertyBase = ({
12216
12214
  ),
12217
12215
  children: [
12218
12216
  input({ softRequired, hasValue }),
12219
- requiredAndNoValue && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "text-warning", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react13.AlertTriangle, { size: 24 }) }),
12220
- onRemove && !readOnly && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12217
+ requiredAndNoValue && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "text-warning", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react13.AlertTriangle, { size: 24 }) }),
12218
+ onRemove && !readOnly && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12221
12219
  Button,
12222
12220
  {
12223
12221
  onClick: onRemove,
@@ -12236,7 +12234,7 @@ var PropertyBase = ({
12236
12234
 
12237
12235
  // src/components/properties/CheckboxProperty.tsx
12238
12236
  var import_react35 = require("react");
12239
- var import_jsx_runtime48 = require("react/jsx-runtime");
12237
+ var import_jsx_runtime49 = require("react/jsx-runtime");
12240
12238
  var CheckboxProperty = ({
12241
12239
  value,
12242
12240
  onChange,
@@ -12245,15 +12243,15 @@ var CheckboxProperty = ({
12245
12243
  }) => {
12246
12244
  const translation = useHightideTranslation();
12247
12245
  const id = (0, import_react35.useId)();
12248
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12246
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
12249
12247
  PropertyBase,
12250
12248
  {
12251
12249
  ...baseProps,
12252
12250
  hasValue: true,
12253
12251
  readOnly,
12254
- icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react14.Check, { size: 24 }),
12255
- input: () => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex-row-2 items-center", children: [
12256
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12252
+ icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react14.Check, { size: 24 }),
12253
+ input: () => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex-row-2 items-center", children: [
12254
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
12257
12255
  Checkbox,
12258
12256
  {
12259
12257
  id,
@@ -12263,7 +12261,7 @@ var CheckboxProperty = ({
12263
12261
  "aria-labelledby": id + "label"
12264
12262
  }
12265
12263
  ),
12266
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Label, { id: id + "label", children: `${translation("yes")}/${translation("no")}` })
12264
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Label, { id: id + "label", children: `${translation("yes")}/${translation("no")}` })
12267
12265
  ] })
12268
12266
  }
12269
12267
  );
@@ -12272,7 +12270,7 @@ var CheckboxProperty = ({
12272
12270
  // src/components/properties/DateProperty.tsx
12273
12271
  var import_lucide_react15 = require("lucide-react");
12274
12272
  var import_clsx37 = __toESM(require("clsx"));
12275
- var import_jsx_runtime49 = require("react/jsx-runtime");
12273
+ var import_jsx_runtime50 = require("react/jsx-runtime");
12276
12274
  var DateProperty = ({
12277
12275
  value,
12278
12276
  onChange,
@@ -12283,13 +12281,13 @@ var DateProperty = ({
12283
12281
  }) => {
12284
12282
  const hasValue = !!value;
12285
12283
  const dateText = value ? type === "dateTime" ? formatDateTime(value) : formatDate(value) : "";
12286
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
12284
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12287
12285
  PropertyBase,
12288
12286
  {
12289
12287
  ...baseProps,
12290
12288
  hasValue,
12291
- icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react15.CalendarDays, { size: 24 }),
12292
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
12289
+ icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react15.CalendarDays, { size: 24 }),
12290
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12293
12291
  Input,
12294
12292
  {
12295
12293
  className: (0, import_clsx37.default)("default-style-none focus-style-none", { "bg-surface-warning": softRequired && !hasValue }),
@@ -12315,7 +12313,7 @@ var DateProperty = ({
12315
12313
  // src/components/properties/MultiSelectProperty.tsx
12316
12314
  var import_lucide_react16 = require("lucide-react");
12317
12315
  var import_clsx38 = __toESM(require("clsx"));
12318
- var import_jsx_runtime50 = require("react/jsx-runtime");
12316
+ var import_jsx_runtime51 = require("react/jsx-runtime");
12319
12317
  var MultiSelectProperty = ({
12320
12318
  children,
12321
12319
  values,
@@ -12323,13 +12321,13 @@ var MultiSelectProperty = ({
12323
12321
  ...props
12324
12322
  }) => {
12325
12323
  const hasValue = values.length > 0;
12326
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12324
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12327
12325
  PropertyBase,
12328
12326
  {
12329
12327
  ...props,
12330
12328
  hasValue,
12331
- icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react16.List, { size: 24 }),
12332
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12329
+ icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react16.List, { size: 24 }),
12330
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12333
12331
  MultiSelectChipDisplay,
12334
12332
  {
12335
12333
  values,
@@ -12356,7 +12354,7 @@ var MultiSelectProperty = ({
12356
12354
  // src/components/properties/NumberProperty.tsx
12357
12355
  var import_lucide_react17 = require("lucide-react");
12358
12356
  var import_clsx39 = __toESM(require("clsx"));
12359
- var import_jsx_runtime51 = require("react/jsx-runtime");
12357
+ var import_jsx_runtime52 = require("react/jsx-runtime");
12360
12358
  var NumberProperty = ({
12361
12359
  value,
12362
12360
  onChange,
@@ -12368,21 +12366,21 @@ var NumberProperty = ({
12368
12366
  }) => {
12369
12367
  const translation = useHightideTranslation();
12370
12368
  const hasValue = value !== void 0;
12371
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12369
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12372
12370
  PropertyBase,
12373
12371
  {
12374
12372
  ...baseProps,
12375
12373
  onRemove,
12376
12374
  hasValue,
12377
- icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react17.Binary, { size: 24 }),
12375
+ icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react17.Binary, { size: 24 }),
12378
12376
  input: ({ softRequired }) => (
12379
12377
  // TODO this max width might be to low for some numbers
12380
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
12378
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
12381
12379
  "div",
12382
12380
  {
12383
12381
  className: (0, import_clsx39.default)("relative flex-row-2 max-w-56", { "text-warning": softRequired && !hasValue }),
12384
12382
  children: [
12385
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12383
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12386
12384
  Input,
12387
12385
  {
12388
12386
  className: (0, import_clsx39.default)("default-style-none focus-style-none w-full pr-8", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
@@ -12408,7 +12406,7 @@ var NumberProperty = ({
12408
12406
  }
12409
12407
  }
12410
12408
  ),
12411
- suffix && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12409
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12412
12410
  "span",
12413
12411
  {
12414
12412
  className: (0, import_clsx39.default)(
@@ -12429,7 +12427,7 @@ var NumberProperty = ({
12429
12427
  // src/components/properties/SelectProperty.tsx
12430
12428
  var import_lucide_react18 = require("lucide-react");
12431
12429
  var import_clsx40 = __toESM(require("clsx"));
12432
- var import_jsx_runtime52 = require("react/jsx-runtime");
12430
+ var import_jsx_runtime53 = require("react/jsx-runtime");
12433
12431
  var SingleSelectProperty = ({
12434
12432
  children,
12435
12433
  value,
@@ -12438,13 +12436,13 @@ var SingleSelectProperty = ({
12438
12436
  ...props
12439
12437
  }) => {
12440
12438
  const hasValue = value !== void 0;
12441
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12439
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12442
12440
  PropertyBase,
12443
12441
  {
12444
12442
  ...props,
12445
12443
  hasValue,
12446
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react18.List, { size: 24 }),
12447
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12444
+ icon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react18.List, { size: 24 }),
12445
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12448
12446
  Select,
12449
12447
  {
12450
12448
  value,
@@ -12473,7 +12471,7 @@ var import_clsx42 = __toESM(require("clsx"));
12473
12471
  // src/components/user-action/Textarea.tsx
12474
12472
  var import_react36 = require("react");
12475
12473
  var import_clsx41 = __toESM(require("clsx"));
12476
- var import_jsx_runtime53 = require("react/jsx-runtime");
12474
+ var import_jsx_runtime54 = require("react/jsx-runtime");
12477
12475
  var Textarea = (0, import_react36.forwardRef)(function Textarea2({
12478
12476
  id,
12479
12477
  onChange,
@@ -12490,7 +12488,7 @@ var Textarea = (0, import_react36.forwardRef)(function Textarea2({
12490
12488
  onEditCompleted?.(text);
12491
12489
  clearTimer();
12492
12490
  };
12493
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12491
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12494
12492
  "textarea",
12495
12493
  {
12496
12494
  ...props,
@@ -12522,7 +12520,7 @@ var TextareaUncontrolled = ({
12522
12520
  ...props
12523
12521
  }) => {
12524
12522
  const [text, setText] = useOverwritableState(value, onChangeText);
12525
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12523
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12526
12524
  Textarea,
12527
12525
  {
12528
12526
  ...props,
@@ -12542,7 +12540,7 @@ var TextareaWithHeadline = ({
12542
12540
  }) => {
12543
12541
  const genId = (0, import_react36.useId)();
12544
12542
  const usedId = id ?? genId;
12545
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
12543
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
12546
12544
  "div",
12547
12545
  {
12548
12546
  className: (0, import_clsx41.default)(
@@ -12554,8 +12552,8 @@ var TextareaWithHeadline = ({
12554
12552
  containerClassName
12555
12553
  ),
12556
12554
  children: [
12557
- headline && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label, { size: "md", ...headlineProps, htmlFor: usedId, children: headline }),
12558
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12555
+ headline && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label, { size: "md", ...headlineProps, htmlFor: usedId, children: headline }),
12556
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12559
12557
  Textarea,
12560
12558
  {
12561
12559
  ...props,
@@ -12572,7 +12570,7 @@ var TextareaWithHeadline = ({
12572
12570
  };
12573
12571
 
12574
12572
  // src/components/properties/TextProperty.tsx
12575
- var import_jsx_runtime54 = require("react/jsx-runtime");
12573
+ var import_jsx_runtime55 = require("react/jsx-runtime");
12576
12574
  var TextProperty = ({
12577
12575
  value,
12578
12576
  readOnly,
@@ -12583,14 +12581,14 @@ var TextProperty = ({
12583
12581
  }) => {
12584
12582
  const translation = useHightideTranslation();
12585
12583
  const hasValue = value !== void 0;
12586
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12584
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
12587
12585
  PropertyBase,
12588
12586
  {
12589
12587
  ...baseProps,
12590
12588
  onRemove,
12591
12589
  hasValue,
12592
- icon: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react19.Text, { size: 24 }),
12593
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12590
+ icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react19.Text, { size: 24 }),
12591
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
12594
12592
  Textarea,
12595
12593
  {
12596
12594
  className: (0, import_clsx42.default)(
@@ -12623,11 +12621,11 @@ var TextProperty = ({
12623
12621
 
12624
12622
  // src/components/table/FillerRowElement.tsx
12625
12623
  var import_clsx43 = require("clsx");
12626
- var import_jsx_runtime55 = require("react/jsx-runtime");
12624
+ var import_jsx_runtime56 = require("react/jsx-runtime");
12627
12625
  var FillerRowElement = ({
12628
12626
  className
12629
12627
  }) => {
12630
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: (0, import_clsx43.clsx)("flex flex-row items-center w-1/2 h-4 text-disabled font-bold", className), children: "-" });
12628
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: (0, import_clsx43.clsx)("flex flex-row items-center w-1/2 h-4 text-disabled font-bold", className), children: "-" });
12631
12629
  };
12632
12630
 
12633
12631
  // src/components/table/Filter.ts
@@ -12651,12 +12649,12 @@ var import_react_table = require("@tanstack/react-table");
12651
12649
 
12652
12650
  // src/components/table/TableCell.tsx
12653
12651
  var import_clsx44 = require("clsx");
12654
- var import_jsx_runtime56 = require("react/jsx-runtime");
12652
+ var import_jsx_runtime57 = require("react/jsx-runtime");
12655
12653
  var TableCell = ({
12656
12654
  children,
12657
12655
  className
12658
12656
  }) => {
12659
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: (0, import_clsx44.clsx)("block max-w-full overflow-ellipsis truncate", className), children });
12657
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: (0, import_clsx44.clsx)("block max-w-full overflow-ellipsis truncate", className), children });
12660
12658
  };
12661
12659
 
12662
12660
  // src/hooks/useResizeCallbackWrapper.ts
@@ -12678,7 +12676,7 @@ var import_clsx46 = __toESM(require("clsx"));
12678
12676
  var import_react38 = require("react");
12679
12677
  var import_clsx45 = require("clsx");
12680
12678
  var import_react_dom4 = require("react-dom");
12681
- var import_jsx_runtime57 = require("react/jsx-runtime");
12679
+ var import_jsx_runtime58 = require("react/jsx-runtime");
12682
12680
  var Tooltip = ({
12683
12681
  tooltip,
12684
12682
  children,
@@ -12705,10 +12703,22 @@ var Tooltip = ({
12705
12703
  right: `border-r-tooltip-background border-t-transparent border-b-transparent`
12706
12704
  };
12707
12705
  const triangleStyle = {
12708
- top: { borderWidth: `${triangleSize}rem ${triangleSize}rem 0 ${triangleSize}rem`, transform: `translate(0,${triangleSize}rem)` },
12709
- bottom: { borderWidth: `0 ${triangleSize}rem ${triangleSize}rem ${triangleSize}rem`, transform: `translate(0,-${triangleSize}rem)` },
12710
- left: { borderWidth: `${triangleSize}rem 0 ${triangleSize}rem ${triangleSize}rem`, transform: `translate(${triangleSize}rem,0)` },
12711
- right: { borderWidth: `${triangleSize}rem ${triangleSize}rem ${triangleSize}rem 0`, transform: `translate(-${triangleSize}rem,0)` }
12706
+ top: {
12707
+ borderWidth: `${triangleSize}rem ${triangleSize}rem 0 ${triangleSize}rem`,
12708
+ transform: `translate(0,${triangleSize}rem)`
12709
+ },
12710
+ bottom: {
12711
+ borderWidth: `0 ${triangleSize}rem ${triangleSize}rem ${triangleSize}rem`,
12712
+ transform: `translate(0,-${triangleSize}rem)`
12713
+ },
12714
+ left: {
12715
+ borderWidth: `${triangleSize}rem 0 ${triangleSize}rem ${triangleSize}rem`,
12716
+ transform: `translate(${triangleSize}rem,0)`
12717
+ },
12718
+ right: {
12719
+ borderWidth: `${triangleSize}rem ${triangleSize}rem ${triangleSize}rem 0`,
12720
+ transform: `translate(-${triangleSize}rem,0)`
12721
+ }
12712
12722
  };
12713
12723
  const isActive = !disabled && isShown;
12714
12724
  const css = useFloatingElement({
@@ -12727,13 +12737,15 @@ var Tooltip = ({
12727
12737
  });
12728
12738
  const zIndex = useZIndexRegister(isActive);
12729
12739
  const zIndexTriangle = useZIndexRegister(isActive);
12730
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
12740
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
12731
12741
  "div",
12732
12742
  {
12733
12743
  ref: anchorRef,
12734
12744
  className: (0, import_clsx45.clsx)("relative inline-block", containerClassName),
12735
- onMouseEnter: () => setState((prevState) => {
12736
- clearTimeout(prevState.timer);
12745
+ onPointerEnter: () => setState((prevState) => {
12746
+ if (prevState.isShown) {
12747
+ return prevState;
12748
+ }
12737
12749
  return {
12738
12750
  ...prevState,
12739
12751
  timer: setTimeout(() => {
@@ -12744,7 +12756,7 @@ var Tooltip = ({
12744
12756
  }, appearDelay)
12745
12757
  };
12746
12758
  }),
12747
- onMouseLeave: () => setState((prevState) => {
12759
+ onPointerLeave: () => setState((prevState) => {
12748
12760
  clearTimeout(prevState.timer);
12749
12761
  return {
12750
12762
  ...prevState,
@@ -12758,9 +12770,9 @@ var Tooltip = ({
12758
12770
  }),
12759
12771
  children: [
12760
12772
  children,
12761
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Visibility, { isVisible: isActive, children: [
12773
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Visibility, { isVisible: isActive, children: [
12762
12774
  (0, import_react_dom4.createPortal)(
12763
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
12775
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
12764
12776
  "div",
12765
12777
  {
12766
12778
  ref: containerRef,
@@ -12776,7 +12788,7 @@ var Tooltip = ({
12776
12788
  document.body
12777
12789
  ),
12778
12790
  (0, import_react_dom4.createPortal)(
12779
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
12791
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
12780
12792
  "div",
12781
12793
  {
12782
12794
  ref: triangleRef,
@@ -12798,7 +12810,7 @@ var Tooltip = ({
12798
12810
  };
12799
12811
 
12800
12812
  // src/components/table/TableSortButton.tsx
12801
- var import_jsx_runtime58 = require("react/jsx-runtime");
12813
+ var import_jsx_runtime59 = require("react/jsx-runtime");
12802
12814
  var TableSortButton = ({
12803
12815
  sortDirection,
12804
12816
  invert = false,
@@ -12810,16 +12822,16 @@ var TableSortButton = ({
12810
12822
  }) => {
12811
12823
  const translation = useHightideTranslation();
12812
12824
  const { sortingsCount, index } = sortingIndexDisplay;
12813
- let icon = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react20.ChevronsUpDown, { className: "size-4" });
12825
+ let icon = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react20.ChevronsUpDown, { className: "size-4" });
12814
12826
  if (sortDirection) {
12815
12827
  let usedSortDirection = sortDirection;
12816
12828
  if (invert) {
12817
12829
  usedSortDirection = usedSortDirection === "desc" ? "asc" : "desc";
12818
12830
  }
12819
- icon = usedSortDirection === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react20.ChevronUp, { className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react20.ChevronDown, { className: "size-4" });
12831
+ icon = usedSortDirection === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react20.ChevronUp, { className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react20.ChevronDown, { className: "size-4" });
12820
12832
  }
12821
12833
  const hasSortingIndex = !!sortingIndexDisplay && sortingsCount > 1 && index > 0;
12822
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Tooltip, { tooltip: translation("rSortingOrderAfter", { otherSortings: index - 1 }), disabled: !hasSortingIndex, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
12834
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Tooltip, { tooltip: translation("rSortingOrderAfter", { otherSortings: index - 1 }), disabled: !hasSortingIndex, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
12823
12835
  Button,
12824
12836
  {
12825
12837
  layout: hasSortingIndex ? "default" : "icon",
@@ -12828,7 +12840,7 @@ var TableSortButton = ({
12828
12840
  className: (0, import_clsx46.default)("relative", className),
12829
12841
  ...props,
12830
12842
  children: [
12831
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Visibility, { isVisible: hasSortingIndex, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
12843
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Visibility, { isVisible: hasSortingIndex, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
12832
12844
  "div",
12833
12845
  {
12834
12846
  className: (0, import_clsx46.default)("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"),
@@ -12981,14 +12993,14 @@ var useOutsideClick = (refs, handler) => {
12981
12993
  };
12982
12994
 
12983
12995
  // src/components/user-action/Menu.tsx
12984
- var import_jsx_runtime59 = require("react/jsx-runtime");
12996
+ var import_jsx_runtime60 = require("react/jsx-runtime");
12985
12997
  var MenuItem = ({
12986
12998
  children,
12987
12999
  onClick,
12988
13000
  alignment = "left",
12989
13001
  isDisabled = false,
12990
13002
  className
12991
- }) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13003
+ }) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
12992
13004
  "div",
12993
13005
  {
12994
13006
  className: (0, import_clsx47.default)("block px-3 py-1.5 first:rounded-t-md last:rounded-b-md text-sm font-semibold text-nowrap", {
@@ -13058,9 +13070,9 @@ var Menu = ({
13058
13070
  }
13059
13071
  }, [isOpen]);
13060
13072
  const zIndex = useZIndexRegister(isOpen);
13061
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
13073
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
13062
13074
  trigger(bag, triggerRef),
13063
- (0, import_react_dom5.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13075
+ (0, import_react_dom5.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13064
13076
  "div",
13065
13077
  {
13066
13078
  ref: menuRef,
@@ -13091,7 +13103,7 @@ var Menu = ({
13091
13103
 
13092
13104
  // src/components/table/TableFilterButton.tsx
13093
13105
  var import_react42 = require("react");
13094
- var import_jsx_runtime60 = require("react/jsx-runtime");
13106
+ var import_jsx_runtime61 = require("react/jsx-runtime");
13095
13107
  var TableFilterButton = ({
13096
13108
  filterType,
13097
13109
  column
@@ -13103,21 +13115,21 @@ var TableFilterButton = ({
13103
13115
  (0, import_react42.useEffect)(() => {
13104
13116
  setFilterValue(columnFilterValue);
13105
13117
  }, [columnFilterValue]);
13106
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13118
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13107
13119
  Menu,
13108
13120
  {
13109
- trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { ref, className: "relative", children: [
13110
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13121
+ trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { ref, className: "relative", children: [
13122
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13111
13123
  Button,
13112
13124
  {
13113
13125
  layout: "icon",
13114
13126
  color: "neutral",
13115
13127
  size: "tiny",
13116
13128
  onClick: toggleOpen,
13117
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react21.FilterIcon, { className: "size-4" })
13129
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react21.FilterIcon, { className: "size-4" })
13118
13130
  }
13119
13131
  ),
13120
- hasFilter && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13132
+ hasFilter && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13121
13133
  "div",
13122
13134
  {
13123
13135
  className: "absolute top-0.5 right-0.5 w-2 h-2 rounded-full bg-primary pointer-events-none",
@@ -13125,9 +13137,9 @@ var TableFilterButton = ({
13125
13137
  }
13126
13138
  )
13127
13139
  ] }),
13128
- children: ({ close }) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
13129
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
13130
- filterType === "text" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13140
+ children: ({ close }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
13141
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
13142
+ filterType === "text" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13131
13143
  Input,
13132
13144
  {
13133
13145
  value: filterValue ?? "",
@@ -13137,8 +13149,8 @@ var TableFilterButton = ({
13137
13149
  className: "h-10"
13138
13150
  }
13139
13151
  ),
13140
- filterType === "range" && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-row-2 items-center", children: [
13141
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13152
+ filterType === "range" && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-row-2 items-center", children: [
13153
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13142
13154
  Input,
13143
13155
  {
13144
13156
  value: filterValue?.[0] ?? "",
@@ -13151,8 +13163,8 @@ var TableFilterButton = ({
13151
13163
  className: "h-10 input-indicator-hidden w-40"
13152
13164
  }
13153
13165
  ),
13154
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "font-bold", children: "-" }),
13155
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13166
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "font-bold", children: "-" }),
13167
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13156
13168
  Input,
13157
13169
  {
13158
13170
  value: filterValue?.[1] ?? "",
@@ -13166,8 +13178,8 @@ var TableFilterButton = ({
13166
13178
  }
13167
13179
  )
13168
13180
  ] }),
13169
- filterType === "dateRange" && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
13170
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13181
+ filterType === "dateRange" && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
13182
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13171
13183
  Input,
13172
13184
  {
13173
13185
  value: filterValue?.[0] ? filterValue?.[0].toISOString().slice(0, 16) : "",
@@ -13180,7 +13192,7 @@ var TableFilterButton = ({
13180
13192
  className: "h-10 w-50"
13181
13193
  }
13182
13194
  ),
13183
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13195
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13184
13196
  Input,
13185
13197
  {
13186
13198
  value: filterValue?.[1] ? filterValue?.[1].toISOString().slice(0, 16) : "",
@@ -13194,12 +13206,12 @@ var TableFilterButton = ({
13194
13206
  }
13195
13207
  )
13196
13208
  ] }),
13197
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-row-2 justify-end w-full", children: [
13198
- hasFilter && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { color: "negative", size: "small", onClick: () => {
13209
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-row-2 justify-end w-full", children: [
13210
+ hasFilter && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { color: "negative", size: "small", onClick: () => {
13199
13211
  column.setFilterValue(void 0);
13200
13212
  close();
13201
13213
  }, children: translation("remove") }),
13202
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { size: "small", onClick: () => {
13214
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { size: "small", onClick: () => {
13203
13215
  column.setFilterValue(filterValue);
13204
13216
  close();
13205
13217
  }, children: translation("apply") })
@@ -13210,7 +13222,7 @@ var TableFilterButton = ({
13210
13222
  };
13211
13223
 
13212
13224
  // src/components/table/Table.tsx
13213
- var import_jsx_runtime61 = require("react/jsx-runtime");
13225
+ var import_jsx_runtime62 = require("react/jsx-runtime");
13214
13226
  var Table = ({
13215
13227
  data,
13216
13228
  fillerRow,
@@ -13330,7 +13342,7 @@ var Table = ({
13330
13342
  minSize: 60,
13331
13343
  maxSize: 700,
13332
13344
  cell: ({ cell }) => {
13333
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(TableCell, { children: cell.getValue() });
13345
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TableCell, { children: cell.getValue() });
13334
13346
  },
13335
13347
  ...defaultColumn
13336
13348
  },
@@ -13415,8 +13427,8 @@ var Table = ({
13415
13427
  }
13416
13428
  return colSizes;
13417
13429
  }, [table.getState().columnSizingInfo, table.getState().columnSizing]);
13418
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { ref, className: (0, import_clsx48.default)("flex-col-4", className), children: [
13419
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: (0, import_clsx48.default)("flex-col-0 w-full overflow-auto", tableContainerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
13430
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { ref, className: (0, import_clsx48.default)("flex-col-4", className), children: [
13431
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: (0, import_clsx48.default)("flex-col-0 w-full overflow-auto", tableContainerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
13420
13432
  "table",
13421
13433
  {
13422
13434
  ref: tableRef,
@@ -13426,7 +13438,7 @@ var Table = ({
13426
13438
  width: Math.floor(Math.max(table.getTotalSize() - columns.length, ref.current?.offsetWidth ?? table.getTotalSize()))
13427
13439
  },
13428
13440
  children: [
13429
- table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13441
+ table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13430
13442
  "col",
13431
13443
  {
13432
13444
  style: {
@@ -13437,15 +13449,15 @@ var Table = ({
13437
13449
  },
13438
13450
  header.id
13439
13451
  )) }, headerGroup.id)),
13440
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
13441
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
13452
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
13453
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
13442
13454
  "th",
13443
13455
  {
13444
13456
  colSpan: header.colSpan,
13445
13457
  className: (0, import_clsx48.default)("relative group", header.column.columnDef.meta?.className),
13446
13458
  children: [
13447
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-row-1 items-center", children: [
13448
- header.column.getCanSort() && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13459
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-row-1 items-center", children: [
13460
+ header.column.getCanSort() && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13449
13461
  TableSortButton,
13450
13462
  {
13451
13463
  sortDirection: header.column.getIsSorted(),
@@ -13471,7 +13483,7 @@ var Table = ({
13471
13483
  }
13472
13484
  }
13473
13485
  ),
13474
- header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13486
+ header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13475
13487
  TableFilterButton,
13476
13488
  {
13477
13489
  column: header.column,
@@ -13483,7 +13495,7 @@ var Table = ({
13483
13495
  header.getContext()
13484
13496
  )
13485
13497
  ] }) }),
13486
- header.column.getCanResize() && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13498
+ header.column.getCanResize() && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13487
13499
  "div",
13488
13500
  {
13489
13501
  onMouseDown: header.getResizeHandler(),
@@ -13502,15 +13514,15 @@ var Table = ({
13502
13514
  header.id
13503
13515
  );
13504
13516
  }) }, headerGroup.id)) }),
13505
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("tbody", { children: [
13517
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("tbody", { children: [
13506
13518
  table.getRowModel().rows.map((row) => {
13507
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13519
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13508
13520
  "tr",
13509
13521
  {
13510
13522
  onClick: () => onRowClick?.(row, table),
13511
13523
  className: table.options.meta?.bodyRowClassName,
13512
13524
  children: row.getVisibleCells().map((cell) => {
13513
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { children: (0, import_react_table.flexRender)(
13525
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("td", { children: (0, import_react_table.flexRender)(
13514
13526
  cell.column.columnDef.cell,
13515
13527
  cell.getContext()
13516
13528
  ) }, cell.id);
@@ -13520,15 +13532,15 @@ var Table = ({
13520
13532
  );
13521
13533
  }),
13522
13534
  range(table.getState().pagination.pageSize - table.getRowModel().rows.length, { allowEmptyRange: true }).map((row, index) => {
13523
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("tr", { children: columns.map((column) => {
13524
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FillerRowElement, {}) }, column.id);
13535
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("tr", { children: columns.map((column) => {
13536
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FillerRowElement, {}) }, column.id);
13525
13537
  }) }, "filler-row-" + index);
13526
13538
  })
13527
13539
  ] })
13528
13540
  ]
13529
13541
  }
13530
13542
  ) }),
13531
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13543
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13532
13544
  Pagination,
13533
13545
  {
13534
13546
  pageIndex: table.getState().pagination.pageIndex,
@@ -13540,7 +13552,7 @@ var Table = ({
13540
13552
  };
13541
13553
  var TableUncontrolled = ({ data, ...props }) => {
13542
13554
  const [usedDate] = useOverwritableState(data);
13543
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13555
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13544
13556
  Table,
13545
13557
  {
13546
13558
  ...props,
@@ -13564,7 +13576,7 @@ var TableWithSelection = ({
13564
13576
  {
13565
13577
  id: selectionRowId,
13566
13578
  header: ({ table }) => {
13567
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13579
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13568
13580
  Checkbox,
13569
13581
  {
13570
13582
  checked: table.getIsAllRowsSelected(),
@@ -13577,7 +13589,7 @@ var TableWithSelection = ({
13577
13589
  );
13578
13590
  },
13579
13591
  cell: ({ row }) => {
13580
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13592
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13581
13593
  Checkbox,
13582
13594
  {
13583
13595
  disabled: !row.getCanSelect(),
@@ -13595,15 +13607,15 @@ var TableWithSelection = ({
13595
13607
  ...columns
13596
13608
  ];
13597
13609
  }, [columns, selectionRowId]);
13598
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13610
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13599
13611
  Table,
13600
13612
  {
13601
13613
  columns: columnsWithSelection,
13602
13614
  fillerRow: (columnId, table) => {
13603
13615
  if (columnId === selectionRowId) {
13604
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Checkbox, { checked: false, disabled: true, className: "max-w-6" });
13616
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Checkbox, { checked: false, disabled: true, className: "max-w-6" });
13605
13617
  }
13606
- return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FillerRowElement, {});
13618
+ return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FillerRowElement, {});
13607
13619
  },
13608
13620
  state: {
13609
13621
  rowSelection,
@@ -13638,7 +13650,7 @@ var writeToClipboard = (text) => {
13638
13650
 
13639
13651
  // src/components/user-action/CopyToClipboardWrapper.tsx
13640
13652
  var import_lucide_react22 = require("lucide-react");
13641
- var import_jsx_runtime62 = require("react/jsx-runtime");
13653
+ var import_jsx_runtime63 = require("react/jsx-runtime");
13642
13654
  var CopyToClipboardWrapper = ({
13643
13655
  children,
13644
13656
  textToCopy,
@@ -13669,7 +13681,7 @@ var CopyToClipboardWrapper = ({
13669
13681
  left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
13670
13682
  right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
13671
13683
  };
13672
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
13684
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
13673
13685
  "div",
13674
13686
  {
13675
13687
  className: (0, import_clsx49.clsx)("relative inline-block cursor-copy", containerClassName),
@@ -13687,7 +13699,7 @@ var CopyToClipboardWrapper = ({
13687
13699
  },
13688
13700
  children: [
13689
13701
  children,
13690
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
13702
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
13691
13703
  "div",
13692
13704
  {
13693
13705
  className: (0, import_clsx49.clsx)(
@@ -13702,15 +13714,15 @@ var CopyToClipboardWrapper = ({
13702
13714
  opacity: isShowingIndication || isShowingConfirmation ? 1 : 0
13703
13715
  },
13704
13716
  children: [
13705
- isShowingConfirmation && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-row-1", children: [
13706
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.CheckIcon, { size: 16, className: "text-positive" }),
13717
+ isShowingConfirmation && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-row-1", children: [
13718
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react22.CheckIcon, { size: 16, className: "text-positive" }),
13707
13719
  translation("copied")
13708
13720
  ] }),
13709
- isShowingIndication && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-row-1 text-description", children: [
13710
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.Copy, { size: 16 }),
13721
+ isShowingIndication && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-row-1 text-description", children: [
13722
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react22.Copy, { size: 16 }),
13711
13723
  translation("clickToCopy")
13712
13724
  ] }),
13713
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13725
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
13714
13726
  "div",
13715
13727
  {
13716
13728
  className: (0, import_clsx49.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
@@ -13727,7 +13739,7 @@ var CopyToClipboardWrapper = ({
13727
13739
 
13728
13740
  // src/components/user-action/DateAndTimePicker.tsx
13729
13741
  var import_clsx50 = __toESM(require("clsx"));
13730
- var import_jsx_runtime63 = require("react/jsx-runtime");
13742
+ var import_jsx_runtime64 = require("react/jsx-runtime");
13731
13743
  var DateTimePicker = ({
13732
13744
  value = /* @__PURE__ */ new Date(),
13733
13745
  start = subtractDuration(/* @__PURE__ */ new Date(), { years: 50 }),
@@ -13742,7 +13754,7 @@ var DateTimePicker = ({
13742
13754
  let dateDisplay;
13743
13755
  let timeDisplay;
13744
13756
  if (useDate) {
13745
- dateDisplay = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
13757
+ dateDisplay = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13746
13758
  DatePicker,
13747
13759
  {
13748
13760
  ...datePickerProps,
@@ -13756,7 +13768,7 @@ var DateTimePicker = ({
13756
13768
  );
13757
13769
  }
13758
13770
  if (useTime) {
13759
- timeDisplay = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
13771
+ timeDisplay = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13760
13772
  TimePicker,
13761
13773
  {
13762
13774
  ...timePickerProps,
@@ -13766,7 +13778,7 @@ var DateTimePicker = ({
13766
13778
  }
13767
13779
  );
13768
13780
  }
13769
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-row-2 min-h-71 max-h-71", children: [
13781
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex-row-2 min-h-71 max-h-71", children: [
13770
13782
  dateDisplay,
13771
13783
  timeDisplay
13772
13784
  ] });
@@ -13775,7 +13787,7 @@ var DateTimePicker = ({
13775
13787
  // src/components/user-action/ScrollPicker.tsx
13776
13788
  var import_react45 = require("react");
13777
13789
  var import_clsx51 = __toESM(require("clsx"));
13778
- var import_jsx_runtime64 = require("react/jsx-runtime");
13790
+ var import_jsx_runtime65 = require("react/jsx-runtime");
13779
13791
  var up = 1;
13780
13792
  var down = -1;
13781
13793
  var ScrollPicker = ({
@@ -13914,7 +13926,7 @@ var ScrollPicker = ({
13914
13926
  }
13915
13927
  return clamp(1 - opacityValue / max);
13916
13928
  };
13917
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13929
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
13918
13930
  "div",
13919
13931
  {
13920
13932
  className: "relative overflow-hidden",
@@ -13925,15 +13937,15 @@ var ScrollPicker = ({
13925
13937
  setAnimation(({ velocity, ...animationData }) => ({ ...animationData, velocity: velocity + deltaY }));
13926
13938
  }
13927
13939
  },
13928
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
13929
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13940
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
13941
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
13930
13942
  "div",
13931
13943
  {
13932
13944
  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 ",
13933
13945
  style: { height: `${itemHeight}px` }
13934
13946
  }
13935
13947
  ),
13936
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13948
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
13937
13949
  "div",
13938
13950
  {
13939
13951
  className: "flex-col-2 select-none",
@@ -13941,7 +13953,7 @@ var ScrollPicker = ({
13941
13953
  transform: `translateY(${-transition * (distance + itemHeight)}px)`,
13942
13954
  columnGap: `${distance}px`
13943
13955
  },
13944
- children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13956
+ children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
13945
13957
  "div",
13946
13958
  {
13947
13959
  className: (0, import_clsx51.default)(
@@ -13974,7 +13986,7 @@ var ScrollPicker = ({
13974
13986
  var import_react46 = require("react");
13975
13987
  var import_lucide_react23 = require("lucide-react");
13976
13988
  var import_clsx52 = __toESM(require("clsx"));
13977
- var import_jsx_runtime65 = require("react/jsx-runtime");
13989
+ var import_jsx_runtime66 = require("react/jsx-runtime");
13978
13990
  var DateTimeInput = ({
13979
13991
  date,
13980
13992
  onValueChange,
@@ -14002,9 +14014,9 @@ var DateTimeInput = ({
14002
14014
  const cleanInputProps = { ...props };
14003
14015
  delete cleanInputProps["isShowingError"];
14004
14016
  delete cleanInputProps["setIsShowingError"];
14005
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
14006
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { ...containerProps, className: (0, import_clsx52.default)("relative w-full", containerProps?.className), children: [
14007
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14017
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
14018
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { ...containerProps, className: (0, import_clsx52.default)("relative w-full", containerProps?.className), children: [
14019
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14008
14020
  Input,
14009
14021
  {
14010
14022
  ...cleanInputProps,
@@ -14022,7 +14034,7 @@ var DateTimeInput = ({
14022
14034
  )
14023
14035
  }
14024
14036
  ),
14025
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14037
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14026
14038
  Button,
14027
14039
  {
14028
14040
  coloringStyle: "text",
@@ -14032,18 +14044,18 @@ var DateTimeInput = ({
14032
14044
  className: "absolute right-1 top-1/2 -translate-y-1/2",
14033
14045
  disabled: isReadOnly,
14034
14046
  onClick: () => setIsOpen((prevState) => !prevState),
14035
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react23.CalendarIcon, { className: "size-5" })
14047
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react23.CalendarIcon, { className: "size-5" })
14036
14048
  }
14037
14049
  )
14038
14050
  ] }),
14039
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Visibility, { isVisible: isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
14051
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Visibility, { isVisible: isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
14040
14052
  "div",
14041
14053
  {
14042
14054
  ref: containerRef,
14043
14055
  className: "absolute left-0 flex-col-3 rounded-lg shadow-xl border bg-surface-variant text-on-surface border-divider p-2",
14044
14056
  style: { zIndex },
14045
14057
  children: [
14046
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14058
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14047
14059
  DateTimePicker,
14048
14060
  {
14049
14061
  ...pickerProps,
@@ -14054,8 +14066,8 @@ var DateTimeInput = ({
14054
14066
  }
14055
14067
  }
14056
14068
  ),
14057
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex-row-2 justify-end", children: [
14058
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Visibility, { isVisible: !!onRemove, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14069
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex-row-2 justify-end", children: [
14070
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Visibility, { isVisible: !!onRemove, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14059
14071
  Button,
14060
14072
  {
14061
14073
  size: "medium",
@@ -14067,7 +14079,7 @@ var DateTimeInput = ({
14067
14079
  children: translation("clear")
14068
14080
  }
14069
14081
  ) }),
14070
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14082
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14071
14083
  Button,
14072
14084
  {
14073
14085
  size: "medium",
@@ -14089,7 +14101,7 @@ var DateTimeInputUncontrolled = ({
14089
14101
  ...props
14090
14102
  }) => {
14091
14103
  const [date, setDate] = useOverwritableState((0, import_react46.useMemo)(() => initialDate ?? /* @__PURE__ */ new Date(), [initialDate]));
14092
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14104
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14093
14105
  DateTimeInput,
14094
14106
  {
14095
14107
  ...props,
@@ -14110,7 +14122,7 @@ var DateTimeInputUncontrolled = ({
14110
14122
  var import_react47 = require("react");
14111
14123
  var import_react48 = require("react");
14112
14124
  var import_clsx53 = __toESM(require("clsx"));
14113
- var import_jsx_runtime66 = require("react/jsx-runtime");
14125
+ var import_jsx_runtime67 = require("react/jsx-runtime");
14114
14126
  var InsideLabelInput = (0, import_react48.forwardRef)(function InsideLabelInput2({
14115
14127
  id: customId,
14116
14128
  label,
@@ -14120,8 +14132,8 @@ var InsideLabelInput = (0, import_react48.forwardRef)(function InsideLabelInput2
14120
14132
  const [isFocused, setIsFocused] = (0, import_react48.useState)(false);
14121
14133
  const generatedId = (0, import_react47.useId)();
14122
14134
  const id = customId ?? generatedId;
14123
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: (0, import_clsx53.default)("relative"), children: [
14124
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14135
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: (0, import_clsx53.default)("relative"), children: [
14136
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14125
14137
  Input,
14126
14138
  {
14127
14139
  ...props,
@@ -14139,7 +14151,7 @@ var InsideLabelInput = (0, import_react48.forwardRef)(function InsideLabelInput2
14139
14151
  }
14140
14152
  }
14141
14153
  ),
14142
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14154
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14143
14155
  "label",
14144
14156
  {
14145
14157
  id: id + "-label",
@@ -14161,7 +14173,7 @@ var InsideLabelInputUncontrolled = ({
14161
14173
  ...props
14162
14174
  }) => {
14163
14175
  const [value, setValue] = useOverwritableState(initialValue, props.onChangeText);
14164
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14176
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14165
14177
  InsideLabelInput,
14166
14178
  {
14167
14179
  ...props,
@@ -14174,7 +14186,7 @@ var InsideLabelInputUncontrolled = ({
14174
14186
  // src/components/user-action/input/SearchBar.tsx
14175
14187
  var import_lucide_react24 = require("lucide-react");
14176
14188
  var import_clsx54 = require("clsx");
14177
- var import_jsx_runtime67 = require("react/jsx-runtime");
14189
+ var import_jsx_runtime68 = require("react/jsx-runtime");
14178
14190
  var SearchBar = ({
14179
14191
  onSearch,
14180
14192
  searchButtonProps,
@@ -14182,8 +14194,8 @@ var SearchBar = ({
14182
14194
  ...inputProps
14183
14195
  }) => {
14184
14196
  const translation = useHightideTranslation();
14185
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { ...containerProps, className: (0, import_clsx54.clsx)("relative", containerProps?.className), children: [
14186
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14197
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { ...containerProps, className: (0, import_clsx54.clsx)("relative", containerProps?.className), children: [
14198
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14187
14199
  InputUncontrolled,
14188
14200
  {
14189
14201
  ...inputProps,
@@ -14191,7 +14203,7 @@ var SearchBar = ({
14191
14203
  className: (0, import_clsx54.clsx)("pr-10 w-full", inputProps.className)
14192
14204
  }
14193
14205
  ),
14194
- onSearch && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14206
+ onSearch && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14195
14207
  Button,
14196
14208
  {
14197
14209
  ...searchButtonProps,
@@ -14201,7 +14213,7 @@ var SearchBar = ({
14201
14213
  coloringStyle: "text",
14202
14214
  onClick: (event) => onSearch(event),
14203
14215
  className: (0, import_clsx54.clsx)("absolute right-1 top-1/2 -translate-y-1/2", searchButtonProps?.className),
14204
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react24.Search, { className: "w-full h-full" })
14216
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_lucide_react24.Search, { className: "w-full h-full" })
14205
14217
  }
14206
14218
  )
14207
14219
  ] });
@@ -14211,7 +14223,7 @@ var SearchBar = ({
14211
14223
  var import_react49 = require("react");
14212
14224
  var import_lucide_react25 = require("lucide-react");
14213
14225
  var import_clsx55 = __toESM(require("clsx"));
14214
- var import_jsx_runtime68 = require("react/jsx-runtime");
14226
+ var import_jsx_runtime69 = require("react/jsx-runtime");
14215
14227
  var ToggleableInput = (0, import_react49.forwardRef)(function ToggleableInput2({
14216
14228
  value,
14217
14229
  initialState = "display",
@@ -14226,8 +14238,8 @@ var ToggleableInput = (0, import_react49.forwardRef)(function ToggleableInput2({
14226
14238
  innerRef.current?.focus();
14227
14239
  }
14228
14240
  }, [isEditing]);
14229
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: (0, import_clsx55.default)("relative flex-row-2", { "flex-1": isEditing }), children: [
14230
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14241
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: (0, import_clsx55.default)("relative flex-row-2", { "flex-1": isEditing }), children: [
14242
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
14231
14243
  Input,
14232
14244
  {
14233
14245
  ...props,
@@ -14253,9 +14265,9 @@ var ToggleableInput = (0, import_react49.forwardRef)(function ToggleableInput2({
14253
14265
  })
14254
14266
  }
14255
14267
  ),
14256
- !isEditing && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "absolute left-0 flex-row-2 items-center pointer-events-none touch-none w-full overflow-hidden", children: [
14257
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: (0, import_clsx55.default)(" truncate"), children: value }),
14258
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_lucide_react25.Pencil, { className: (0, import_clsx55.default)(`size-force-4`, { "text-transparent": isEditing }) })
14268
+ !isEditing && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "absolute left-0 flex-row-2 items-center pointer-events-none touch-none w-full overflow-hidden", children: [
14269
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0, import_clsx55.default)(" truncate"), children: value }),
14270
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_lucide_react25.Pencil, { className: (0, import_clsx55.default)(`size-force-4`, { "text-transparent": isEditing }) })
14259
14271
  ] })
14260
14272
  ] });
14261
14273
  });
@@ -14265,7 +14277,7 @@ var ToggleableInputUncontrolled = ({
14265
14277
  ...restProps
14266
14278
  }) => {
14267
14279
  const [value, setValue] = useOverwritableState(initialValue, onChangeText);
14268
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14280
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
14269
14281
  ToggleableInput,
14270
14282
  {
14271
14283
  value,
@@ -14279,7 +14291,7 @@ var ToggleableInputUncontrolled = ({
14279
14291
  var import_react50 = require("react");
14280
14292
  var import_react51 = require("react");
14281
14293
  var import_react52 = require("react");
14282
- var import_jsx_runtime69 = require("react/jsx-runtime");
14294
+ var import_jsx_runtime70 = require("react/jsx-runtime");
14283
14295
  var FocusTrap = (0, import_react52.forwardRef)(function FocusTrap2({
14284
14296
  active = true,
14285
14297
  initialFocus,
@@ -14289,7 +14301,7 @@ var FocusTrap = (0, import_react52.forwardRef)(function FocusTrap2({
14289
14301
  const innerRef = (0, import_react50.useRef)(null);
14290
14302
  (0, import_react51.useImperativeHandle)(forwardedRef, () => innerRef.current);
14291
14303
  useFocusTrap({ container: innerRef, active, initialFocus, focusFirst });
14292
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { ref: innerRef, ...props });
14304
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { ref: innerRef, ...props });
14293
14305
  });
14294
14306
 
14295
14307
  // src/components/utils/Transition.tsx