@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.js CHANGED
@@ -7641,7 +7641,14 @@ var DayPicker = ({
7641
7641
  "border-transparent": !(isToday && markToday)
7642
7642
  }
7643
7643
  ),
7644
- onClick: () => onChange?.(date),
7644
+ onClick: () => onChange?.(new Date(
7645
+ date.getFullYear(),
7646
+ date.getMonth(),
7647
+ date.getDate(),
7648
+ selected.getHours(),
7649
+ selected.getMinutes(),
7650
+ selected.getSeconds()
7651
+ )),
7645
7652
  children: date.getDate()
7646
7653
  },
7647
7654
  date.getDate()
@@ -11543,24 +11550,22 @@ var VerticalDivider = ({
11543
11550
  };
11544
11551
 
11545
11552
  // src/components/layout/Visibility.tsx
11553
+ var import_jsx_runtime36 = require("react/jsx-runtime");
11546
11554
  function Visibility({ children, isVisible }) {
11547
- if (isVisible) {
11548
- return children;
11549
- }
11550
- return void 0;
11555
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: isVisible && children });
11551
11556
  }
11552
11557
 
11553
11558
  // src/components/loading-states/ErrorComponent.tsx
11554
11559
  var import_lucide_react8 = require("lucide-react");
11555
11560
  var import_clsx26 = __toESM(require("clsx"));
11556
- var import_jsx_runtime36 = require("react/jsx-runtime");
11561
+ var import_jsx_runtime37 = require("react/jsx-runtime");
11557
11562
  var ErrorComponent = ({
11558
11563
  errorText,
11559
11564
  classname
11560
11565
  }) => {
11561
11566
  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" }),
11567
+ 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: [
11568
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react8.AlertOctagon, { size: 64, className: "text-warning" }),
11564
11569
  errorText ?? `${translation("errorOccurred")} :(`
11565
11570
  ] });
11566
11571
  };
@@ -11570,14 +11575,14 @@ var import_react30 = require("react");
11570
11575
 
11571
11576
  // src/components/loading-states/LoadingContainer.tsx
11572
11577
  var import_clsx27 = require("clsx");
11573
- var import_jsx_runtime37 = require("react/jsx-runtime");
11578
+ var import_jsx_runtime38 = require("react/jsx-runtime");
11574
11579
  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) });
11580
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: (0, import_clsx27.clsx)("relative overflow-hidden shimmer bg-disabled/30 rounded-md", className) });
11576
11581
  };
11577
11582
 
11578
11583
  // src/components/loading-states/LoadingAndErrorComponent.tsx
11579
11584
  var import_clsx28 = require("clsx");
11580
- var import_jsx_runtime38 = require("react/jsx-runtime");
11585
+ var import_jsx_runtime39 = require("react/jsx-runtime");
11581
11586
  var LoadingAndErrorComponent = ({
11582
11587
  children,
11583
11588
  isLoading = false,
@@ -11597,40 +11602,40 @@ var LoadingAndErrorComponent = ({
11597
11602
  }, minimumLoadingDuration);
11598
11603
  }
11599
11604
  if (isLoading || minimumLoadingDuration && isInMinimumLoading) {
11600
- return loadingComponent ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(LoadingContainer, { className: (0, import_clsx28.clsx)(className) });
11605
+ 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
11606
  }
11602
11607
  if (hasError) {
11603
- return errorComponent ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(LoadingContainer, { className: (0, import_clsx28.clsx)("bg-negative", className) });
11608
+ 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
11609
  }
11605
- return children;
11610
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children });
11606
11611
  };
11607
11612
 
11608
11613
  // src/components/loading-states/LoadingAnimation.tsx
11609
11614
  var import_clsx29 = __toESM(require("clsx"));
11610
- var import_jsx_runtime39 = require("react/jsx-runtime");
11615
+ var import_jsx_runtime40 = require("react/jsx-runtime");
11611
11616
  var LoadingAnimation = ({
11612
11617
  loadingText,
11613
11618
  classname
11614
11619
  }) => {
11615
11620
  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" }),
11621
+ 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: [
11622
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(HelpwaveLogo, { animate: "loading" }),
11618
11623
  loadingText ?? `${translation("loading")}...`
11619
11624
  ] });
11620
11625
  };
11621
11626
 
11622
11627
  // src/components/loading-states/LoadingButton.tsx
11623
11628
  var import_clsx30 = __toESM(require("clsx"));
11624
- var import_jsx_runtime40 = require("react/jsx-runtime");
11629
+ var import_jsx_runtime41 = require("react/jsx-runtime");
11625
11630
  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 })
11631
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "inline-block relative", children: [
11632
+ 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" }) }),
11633
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Button, { ...rest, size, disabled: rest.disabled, onClick })
11629
11634
  ] });
11630
11635
  };
11631
11636
 
11632
11637
  // src/components/loading-states/ProgressIndicator.tsx
11633
- var import_jsx_runtime41 = require("react/jsx-runtime");
11638
+ var import_jsx_runtime42 = require("react/jsx-runtime");
11634
11639
  var sizeMapping = { small: 16, medium: 24, big: 48 };
11635
11640
  var ProgressIndicator = ({
11636
11641
  progress,
@@ -11647,7 +11652,7 @@ var ProgressIndicator = ({
11647
11652
  if (direction === "clockwise") {
11648
11653
  rotation += 360 * progress;
11649
11654
  }
11650
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
11655
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
11651
11656
  "svg",
11652
11657
  {
11653
11658
  style: {
@@ -11656,7 +11661,7 @@ var ProgressIndicator = ({
11656
11661
  transform: `rotate(${rotation}deg)`
11657
11662
  },
11658
11663
  children: [
11659
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
11664
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11660
11665
  "circle",
11661
11666
  {
11662
11667
  cx: center,
@@ -11667,7 +11672,7 @@ var ProgressIndicator = ({
11667
11672
  className: "stroke-progress-indicator-fill"
11668
11673
  }
11669
11674
  ),
11670
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
11675
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11671
11676
  "circle",
11672
11677
  {
11673
11678
  cx: center,
@@ -11689,12 +11694,12 @@ var ProgressIndicator = ({
11689
11694
  var import_link = __toESM(require_link2());
11690
11695
  var import_clsx31 = __toESM(require("clsx"));
11691
11696
  var import_react31 = require("react");
11692
- var import_jsx_runtime42 = require("react/jsx-runtime");
11697
+ var import_jsx_runtime43 = require("react/jsx-runtime");
11693
11698
  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) => {
11699
+ 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
11700
  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)(
11701
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_react31.Fragment, { children: [
11702
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11698
11703
  import_link.default,
11699
11704
  {
11700
11705
  href: crumb.link,
@@ -11709,7 +11714,7 @@ var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
11709
11714
  children: crumb.display
11710
11715
  }
11711
11716
  ),
11712
- !isLast && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: (0, import_clsx31.default)(`px-1`, "text-description"), children: "/" })
11717
+ !isLast && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: (0, import_clsx31.default)(`px-1`, "text-description"), children: "/" })
11713
11718
  ] }, index);
11714
11719
  }) });
11715
11720
  };
@@ -11720,7 +11725,7 @@ var import_react32 = require("react");
11720
11725
  var import_react33 = require("react");
11721
11726
  var import_link2 = __toESM(require_link2());
11722
11727
  var import_clsx32 = __toESM(require("clsx"));
11723
- var import_jsx_runtime43 = require("react/jsx-runtime");
11728
+ var import_jsx_runtime44 = require("react/jsx-runtime");
11724
11729
  function isSubItem(item) {
11725
11730
  return "items" in item && Array.isArray(item.items);
11726
11731
  }
@@ -11748,8 +11753,8 @@ var NavigationItemWithSubItem = ({
11748
11753
  }
11749
11754
  }, []);
11750
11755
  const zIndex = useZIndexRegister(isOpen);
11751
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
11752
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
11756
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
11757
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
11753
11758
  "button",
11754
11759
  {
11755
11760
  id: "navigation-" + id,
@@ -11764,11 +11769,11 @@ var NavigationItemWithSubItem = ({
11764
11769
  "aria-controls": "navigation-items-" + id,
11765
11770
  children: [
11766
11771
  label,
11767
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ExpansionIcon, { isExpanded: isOpen })
11772
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ExpansionIcon, { isExpanded: isOpen })
11768
11773
  ]
11769
11774
  }
11770
11775
  ),
11771
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11776
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11772
11777
  "ul",
11773
11778
  {
11774
11779
  id: "navigation-items-" + id,
@@ -11787,7 +11792,7 @@ var NavigationItemWithSubItem = ({
11787
11792
  { "opacity-0": !style }
11788
11793
  ),
11789
11794
  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)(
11795
+ children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11791
11796
  import_link2.default,
11792
11797
  {
11793
11798
  href: link,
@@ -11801,7 +11806,7 @@ var NavigationItemWithSubItem = ({
11801
11806
  ] });
11802
11807
  };
11803
11808
  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)) });
11809
+ 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
11810
  };
11806
11811
  var Navigation = ({ ...props }) => {
11807
11812
  const [isMobileOpen, setIsMobileOpen] = (0, import_react33.useState)(false);
@@ -11811,15 +11816,15 @@ var Navigation = ({ ...props }) => {
11811
11816
  menuRef.current?.focus();
11812
11817
  }, [isMobileOpen]);
11813
11818
  const zIndex = useZIndexRegister(isMobileOpen);
11814
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("nav", { children: [
11815
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11819
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("nav", { children: [
11820
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11816
11821
  NavigationItemList,
11817
11822
  {
11818
11823
  ...props,
11819
11824
  className: (0, import_clsx32.default)("hidden", { "desktop:flex": !isMobileOpen }, props.className)
11820
11825
  }
11821
11826
  ),
11822
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11827
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11823
11828
  Button,
11824
11829
  {
11825
11830
  layout: "icon",
@@ -11830,10 +11835,10 @@ var Navigation = ({ ...props }) => {
11830
11835
  "aria-haspopup": "true",
11831
11836
  "aria-expanded": isMobileOpen,
11832
11837
  "aria-controls": "navigation-menu-" + id,
11833
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react9.Menu, { className: "w-6 h-6" })
11838
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react9.Menu, { className: "w-6 h-6" })
11834
11839
  }
11835
11840
  ),
11836
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
11841
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
11837
11842
  "div",
11838
11843
  {
11839
11844
  id: "navigation-menu-" + id,
@@ -11855,17 +11860,17 @@ var Navigation = ({ ...props }) => {
11855
11860
  ),
11856
11861
  style: { zIndex },
11857
11862
  children: [
11858
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11863
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11859
11864
  Button,
11860
11865
  {
11861
11866
  layout: "icon",
11862
11867
  coloringStyle: "text",
11863
11868
  color: "neutral",
11864
11869
  onClick: () => setIsMobileOpen(false),
11865
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react9.XIcon, {})
11870
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react9.XIcon, {})
11866
11871
  }
11867
11872
  ),
11868
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(NavigationItemList, { ...props, className: (0, import_clsx32.default)("flex-col-8", props.className) })
11873
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavigationItemList, { ...props, className: (0, import_clsx32.default)("flex-col-8", props.className) })
11869
11874
  ]
11870
11875
  }
11871
11876
  )
@@ -11876,7 +11881,7 @@ var Navigation = ({ ...props }) => {
11876
11881
  var import_lucide_react10 = require("lucide-react");
11877
11882
  var import_clsx33 = __toESM(require("clsx"));
11878
11883
  var import_react34 = require("react");
11879
- var import_jsx_runtime44 = require("react/jsx-runtime");
11884
+ var import_jsx_runtime45 = require("react/jsx-runtime");
11880
11885
  var Pagination = ({
11881
11886
  pageIndex,
11882
11887
  pageCount,
@@ -11899,8 +11904,8 @@ var Pagination = ({
11899
11904
  const changePage = (page) => {
11900
11905
  onPageChanged(page);
11901
11906
  };
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)(
11907
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: (0, import_clsx33.default)("flex-row-1", className), style, children: [
11908
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11904
11909
  Button,
11905
11910
  {
11906
11911
  layout: "icon",
@@ -11908,10 +11913,10 @@ var Pagination = ({
11908
11913
  color: "neutral",
11909
11914
  onClick: () => changePage(0),
11910
11915
  disabled: onFirstPage || noPages,
11911
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronFirst, {})
11916
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronFirst, {})
11912
11917
  }
11913
11918
  ),
11914
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11919
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11915
11920
  Button,
11916
11921
  {
11917
11922
  layout: "icon",
@@ -11919,11 +11924,11 @@ var Pagination = ({
11919
11924
  color: "neutral",
11920
11925
  onClick: () => changePage(pageIndex - 1),
11921
11926
  disabled: onFirstPage || noPages,
11922
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronLeft, {})
11927
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronLeft, {})
11923
11928
  }
11924
11929
  ),
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)(
11930
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex-row-2 min-w-56 items-center justify-center mx-2 text-center", children: [
11931
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11927
11932
  Input,
11928
11933
  {
11929
11934
  value,
@@ -11947,8 +11952,8 @@ var Pagination = ({
11947
11952
  editCompleteOptions: { delay: 800 }
11948
11953
  }
11949
11954
  ),
11950
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "select-none w-10", children: translation("of") }),
11951
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11955
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "select-none w-10", children: translation("of") }),
11956
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11952
11957
  "span",
11953
11958
  {
11954
11959
  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 +11961,7 @@ var Pagination = ({
11956
11961
  }
11957
11962
  )
11958
11963
  ] }),
11959
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11964
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11960
11965
  Button,
11961
11966
  {
11962
11967
  layout: "icon",
@@ -11964,10 +11969,10 @@ var Pagination = ({
11964
11969
  color: "neutral",
11965
11970
  onClick: () => changePage(pageIndex + 1),
11966
11971
  disabled: onLastPage || noPages,
11967
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronRight, {})
11972
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronRight, {})
11968
11973
  }
11969
11974
  ),
11970
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11975
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11971
11976
  Button,
11972
11977
  {
11973
11978
  layout: "icon",
@@ -11975,7 +11980,7 @@ var Pagination = ({
11975
11980
  color: "neutral",
11976
11981
  onClick: () => changePage(pageCount - 1),
11977
11982
  disabled: onLastPage || noPages,
11978
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronLast, {})
11983
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronLast, {})
11979
11984
  }
11980
11985
  )
11981
11986
  ] });
@@ -11984,7 +11989,7 @@ var Pagination = ({
11984
11989
  // src/components/navigation/StepperBar.tsx
11985
11990
  var import_lucide_react11 = require("lucide-react");
11986
11991
  var import_clsx34 = __toESM(require("clsx"));
11987
- var import_jsx_runtime45 = require("react/jsx-runtime");
11992
+ var import_jsx_runtime46 = require("react/jsx-runtime");
11988
11993
  var defaultState = {
11989
11994
  currentStep: 0,
11990
11995
  seenSteps: /* @__PURE__ */ new Set([0])
@@ -12006,12 +12011,12 @@ var StepperBar = ({
12006
12011
  seenSteps.add(newStep);
12007
12012
  onChange({ currentStep: newStep, seenSteps });
12008
12013
  };
12009
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
12014
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12010
12015
  "div",
12011
12016
  {
12012
12017
  className: (0, import_clsx34.default)("flex-row-2 justify-between", className),
12013
12018
  children: [
12014
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
12019
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12015
12020
  Button,
12016
12021
  {
12017
12022
  disabled: currentStep === 0 || disabledSteps.has(currentStep),
@@ -12020,14 +12025,14 @@ var StepperBar = ({
12020
12025
  },
12021
12026
  className: "flex-row-1 items-center justify-center",
12022
12027
  children: [
12023
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react11.ChevronLeft, { size: 14 }),
12028
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react11.ChevronLeft, { size: 14 }),
12024
12029
  translation("back")
12025
12030
  ]
12026
12031
  }
12027
12032
  ) }),
12028
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-row-2 flex-[5] justify-center items-center", children: showDots && dots.map((value, index) => {
12033
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex-row-2 flex-[5] justify-center items-center", children: showDots && dots.map((value, index) => {
12029
12034
  const seen = seenSteps.has(index);
12030
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
12035
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12031
12036
  "div",
12032
12037
  {
12033
12038
  onClick: () => seen && update(index),
@@ -12047,7 +12052,7 @@ var StepperBar = ({
12047
12052
  index
12048
12053
  );
12049
12054
  }) }),
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)(
12055
+ 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
12056
  Button,
12052
12057
  {
12053
12058
  onClick: () => update(currentStep + 1),
@@ -12055,18 +12060,18 @@ var StepperBar = ({
12055
12060
  disabled: disabledSteps.has(currentStep),
12056
12061
  children: [
12057
12062
  translation("next"),
12058
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react11.ChevronRight, { size: 14 })
12063
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react11.ChevronRight, { size: 14 })
12059
12064
  ]
12060
12065
  }
12061
12066
  ) }),
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)(
12067
+ 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
12068
  Button,
12064
12069
  {
12065
12070
  disabled: disabledSteps.has(currentStep),
12066
12071
  onClick: onFinish,
12067
12072
  className: "flex-row-1 items-center justify-center",
12068
12073
  children: [
12069
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react11.Check, { size: 14 }),
12074
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react11.Check, { size: 14 }),
12070
12075
  finishText ?? translation("confirm")
12071
12076
  ]
12072
12077
  }
@@ -12077,7 +12082,7 @@ var StepperBar = ({
12077
12082
  };
12078
12083
  var StepperBarUncontrolled = ({ state, onChange, ...props }) => {
12079
12084
  const [usedState, setUsedState] = useOverwritableState(state, onChange);
12080
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
12085
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12081
12086
  StepperBar,
12082
12087
  {
12083
12088
  ...props,
@@ -12093,7 +12098,7 @@ var import_lucide_react14 = require("lucide-react");
12093
12098
  // src/components/user-action/Checkbox.tsx
12094
12099
  var import_lucide_react12 = require("lucide-react");
12095
12100
  var import_clsx35 = __toESM(require("clsx"));
12096
- var import_jsx_runtime46 = require("react/jsx-runtime");
12101
+ var import_jsx_runtime47 = require("react/jsx-runtime");
12097
12102
  var checkboxSizeMapping = {
12098
12103
  small: "size-5 border-2",
12099
12104
  medium: "size-6 border-2",
@@ -12116,7 +12121,7 @@ var Checkbox = ({
12116
12121
  }) => {
12117
12122
  const usedSizeClass = checkboxSizeMapping[size];
12118
12123
  const innerIconSize = checkboxIconSizeMapping[size];
12119
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12124
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
12120
12125
  "div",
12121
12126
  {
12122
12127
  ...props,
@@ -12147,8 +12152,8 @@ var Checkbox = ({
12147
12152
  "aria-disabled": disabled,
12148
12153
  tabIndex: disabled ? -1 : 0,
12149
12154
  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 })
12155
+ !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react12.Check, { className: innerIconSize, "aria-hidden": true }),
12156
+ indeterminate && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react12.Minus, { className: innerIconSize, "aria-hidden": true })
12152
12157
  ]
12153
12158
  }
12154
12159
  );
@@ -12159,7 +12164,7 @@ var CheckboxUncontrolled = ({
12159
12164
  ...props
12160
12165
  }) => {
12161
12166
  const [checked, setChecked] = useOverwritableState(initialChecked, onCheckedChange);
12162
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12167
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12163
12168
  Checkbox,
12164
12169
  {
12165
12170
  ...props,
@@ -12172,7 +12177,7 @@ var CheckboxUncontrolled = ({
12172
12177
  // src/components/properties/PropertyBase.tsx
12173
12178
  var import_lucide_react13 = require("lucide-react");
12174
12179
  var import_clsx36 = __toESM(require("clsx"));
12175
- var import_jsx_runtime47 = require("react/jsx-runtime");
12180
+ var import_jsx_runtime48 = require("react/jsx-runtime");
12176
12181
  var PropertyBase = ({
12177
12182
  name,
12178
12183
  input,
@@ -12185,8 +12190,8 @@ var PropertyBase = ({
12185
12190
  }) => {
12186
12191
  const translation = useHightideTranslation();
12187
12192
  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)(
12193
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: (0, import_clsx36.default)("flex-row-0 group", className), children: [
12194
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
12190
12195
  "div",
12191
12196
  {
12192
12197
  className: (0, import_clsx36.default)(
@@ -12198,12 +12203,12 @@ var PropertyBase = ({
12198
12203
  className
12199
12204
  ),
12200
12205
  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 })
12206
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
12207
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "font-semibold", children: name })
12203
12208
  ]
12204
12209
  }
12205
12210
  ),
12206
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
12211
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
12207
12212
  "div",
12208
12213
  {
12209
12214
  className: (0, import_clsx36.default)(
@@ -12216,8 +12221,8 @@ var PropertyBase = ({
12216
12221
  ),
12217
12222
  children: [
12218
12223
  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)(
12224
+ requiredAndNoValue && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "text-warning", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react13.AlertTriangle, { size: 24 }) }),
12225
+ onRemove && !readOnly && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12221
12226
  Button,
12222
12227
  {
12223
12228
  onClick: onRemove,
@@ -12236,7 +12241,7 @@ var PropertyBase = ({
12236
12241
 
12237
12242
  // src/components/properties/CheckboxProperty.tsx
12238
12243
  var import_react35 = require("react");
12239
- var import_jsx_runtime48 = require("react/jsx-runtime");
12244
+ var import_jsx_runtime49 = require("react/jsx-runtime");
12240
12245
  var CheckboxProperty = ({
12241
12246
  value,
12242
12247
  onChange,
@@ -12245,15 +12250,15 @@ var CheckboxProperty = ({
12245
12250
  }) => {
12246
12251
  const translation = useHightideTranslation();
12247
12252
  const id = (0, import_react35.useId)();
12248
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12253
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
12249
12254
  PropertyBase,
12250
12255
  {
12251
12256
  ...baseProps,
12252
12257
  hasValue: true,
12253
12258
  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)(
12259
+ icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react14.Check, { size: 24 }),
12260
+ input: () => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex-row-2 items-center", children: [
12261
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
12257
12262
  Checkbox,
12258
12263
  {
12259
12264
  id,
@@ -12263,7 +12268,7 @@ var CheckboxProperty = ({
12263
12268
  "aria-labelledby": id + "label"
12264
12269
  }
12265
12270
  ),
12266
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Label, { id: id + "label", children: `${translation("yes")}/${translation("no")}` })
12271
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Label, { id: id + "label", children: `${translation("yes")}/${translation("no")}` })
12267
12272
  ] })
12268
12273
  }
12269
12274
  );
@@ -12272,7 +12277,7 @@ var CheckboxProperty = ({
12272
12277
  // src/components/properties/DateProperty.tsx
12273
12278
  var import_lucide_react15 = require("lucide-react");
12274
12279
  var import_clsx37 = __toESM(require("clsx"));
12275
- var import_jsx_runtime49 = require("react/jsx-runtime");
12280
+ var import_jsx_runtime50 = require("react/jsx-runtime");
12276
12281
  var DateProperty = ({
12277
12282
  value,
12278
12283
  onChange,
@@ -12283,13 +12288,13 @@ var DateProperty = ({
12283
12288
  }) => {
12284
12289
  const hasValue = !!value;
12285
12290
  const dateText = value ? type === "dateTime" ? formatDateTime(value) : formatDate(value) : "";
12286
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
12291
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12287
12292
  PropertyBase,
12288
12293
  {
12289
12294
  ...baseProps,
12290
12295
  hasValue,
12291
- icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react15.CalendarDays, { size: 24 }),
12292
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
12296
+ icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react15.CalendarDays, { size: 24 }),
12297
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12293
12298
  Input,
12294
12299
  {
12295
12300
  className: (0, import_clsx37.default)("default-style-none focus-style-none", { "bg-surface-warning": softRequired && !hasValue }),
@@ -12315,7 +12320,7 @@ var DateProperty = ({
12315
12320
  // src/components/properties/MultiSelectProperty.tsx
12316
12321
  var import_lucide_react16 = require("lucide-react");
12317
12322
  var import_clsx38 = __toESM(require("clsx"));
12318
- var import_jsx_runtime50 = require("react/jsx-runtime");
12323
+ var import_jsx_runtime51 = require("react/jsx-runtime");
12319
12324
  var MultiSelectProperty = ({
12320
12325
  children,
12321
12326
  values,
@@ -12323,13 +12328,13 @@ var MultiSelectProperty = ({
12323
12328
  ...props
12324
12329
  }) => {
12325
12330
  const hasValue = values.length > 0;
12326
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12331
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12327
12332
  PropertyBase,
12328
12333
  {
12329
12334
  ...props,
12330
12335
  hasValue,
12331
- icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react16.List, { size: 24 }),
12332
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12336
+ icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react16.List, { size: 24 }),
12337
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12333
12338
  MultiSelectChipDisplay,
12334
12339
  {
12335
12340
  values,
@@ -12356,7 +12361,7 @@ var MultiSelectProperty = ({
12356
12361
  // src/components/properties/NumberProperty.tsx
12357
12362
  var import_lucide_react17 = require("lucide-react");
12358
12363
  var import_clsx39 = __toESM(require("clsx"));
12359
- var import_jsx_runtime51 = require("react/jsx-runtime");
12364
+ var import_jsx_runtime52 = require("react/jsx-runtime");
12360
12365
  var NumberProperty = ({
12361
12366
  value,
12362
12367
  onChange,
@@ -12368,21 +12373,21 @@ var NumberProperty = ({
12368
12373
  }) => {
12369
12374
  const translation = useHightideTranslation();
12370
12375
  const hasValue = value !== void 0;
12371
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12376
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12372
12377
  PropertyBase,
12373
12378
  {
12374
12379
  ...baseProps,
12375
12380
  onRemove,
12376
12381
  hasValue,
12377
- icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react17.Binary, { size: 24 }),
12382
+ icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react17.Binary, { size: 24 }),
12378
12383
  input: ({ softRequired }) => (
12379
12384
  // TODO this max width might be to low for some numbers
12380
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
12385
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
12381
12386
  "div",
12382
12387
  {
12383
12388
  className: (0, import_clsx39.default)("relative flex-row-2 max-w-56", { "text-warning": softRequired && !hasValue }),
12384
12389
  children: [
12385
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12390
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12386
12391
  Input,
12387
12392
  {
12388
12393
  className: (0, import_clsx39.default)("default-style-none focus-style-none w-full pr-8", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
@@ -12408,7 +12413,7 @@ var NumberProperty = ({
12408
12413
  }
12409
12414
  }
12410
12415
  ),
12411
- suffix && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12416
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12412
12417
  "span",
12413
12418
  {
12414
12419
  className: (0, import_clsx39.default)(
@@ -12429,7 +12434,7 @@ var NumberProperty = ({
12429
12434
  // src/components/properties/SelectProperty.tsx
12430
12435
  var import_lucide_react18 = require("lucide-react");
12431
12436
  var import_clsx40 = __toESM(require("clsx"));
12432
- var import_jsx_runtime52 = require("react/jsx-runtime");
12437
+ var import_jsx_runtime53 = require("react/jsx-runtime");
12433
12438
  var SingleSelectProperty = ({
12434
12439
  children,
12435
12440
  value,
@@ -12438,13 +12443,13 @@ var SingleSelectProperty = ({
12438
12443
  ...props
12439
12444
  }) => {
12440
12445
  const hasValue = value !== void 0;
12441
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12446
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12442
12447
  PropertyBase,
12443
12448
  {
12444
12449
  ...props,
12445
12450
  hasValue,
12446
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react18.List, { size: 24 }),
12447
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12451
+ icon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react18.List, { size: 24 }),
12452
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12448
12453
  Select,
12449
12454
  {
12450
12455
  value,
@@ -12473,7 +12478,7 @@ var import_clsx42 = __toESM(require("clsx"));
12473
12478
  // src/components/user-action/Textarea.tsx
12474
12479
  var import_react36 = require("react");
12475
12480
  var import_clsx41 = __toESM(require("clsx"));
12476
- var import_jsx_runtime53 = require("react/jsx-runtime");
12481
+ var import_jsx_runtime54 = require("react/jsx-runtime");
12477
12482
  var Textarea = (0, import_react36.forwardRef)(function Textarea2({
12478
12483
  id,
12479
12484
  onChange,
@@ -12490,7 +12495,7 @@ var Textarea = (0, import_react36.forwardRef)(function Textarea2({
12490
12495
  onEditCompleted?.(text);
12491
12496
  clearTimer();
12492
12497
  };
12493
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12498
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12494
12499
  "textarea",
12495
12500
  {
12496
12501
  ...props,
@@ -12522,7 +12527,7 @@ var TextareaUncontrolled = ({
12522
12527
  ...props
12523
12528
  }) => {
12524
12529
  const [text, setText] = useOverwritableState(value, onChangeText);
12525
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12530
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12526
12531
  Textarea,
12527
12532
  {
12528
12533
  ...props,
@@ -12542,7 +12547,7 @@ var TextareaWithHeadline = ({
12542
12547
  }) => {
12543
12548
  const genId = (0, import_react36.useId)();
12544
12549
  const usedId = id ?? genId;
12545
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
12550
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
12546
12551
  "div",
12547
12552
  {
12548
12553
  className: (0, import_clsx41.default)(
@@ -12554,8 +12559,8 @@ var TextareaWithHeadline = ({
12554
12559
  containerClassName
12555
12560
  ),
12556
12561
  children: [
12557
- headline && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label, { size: "md", ...headlineProps, htmlFor: usedId, children: headline }),
12558
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12562
+ headline && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label, { size: "md", ...headlineProps, htmlFor: usedId, children: headline }),
12563
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12559
12564
  Textarea,
12560
12565
  {
12561
12566
  ...props,
@@ -12572,7 +12577,7 @@ var TextareaWithHeadline = ({
12572
12577
  };
12573
12578
 
12574
12579
  // src/components/properties/TextProperty.tsx
12575
- var import_jsx_runtime54 = require("react/jsx-runtime");
12580
+ var import_jsx_runtime55 = require("react/jsx-runtime");
12576
12581
  var TextProperty = ({
12577
12582
  value,
12578
12583
  readOnly,
@@ -12583,14 +12588,14 @@ var TextProperty = ({
12583
12588
  }) => {
12584
12589
  const translation = useHightideTranslation();
12585
12590
  const hasValue = value !== void 0;
12586
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12591
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
12587
12592
  PropertyBase,
12588
12593
  {
12589
12594
  ...baseProps,
12590
12595
  onRemove,
12591
12596
  hasValue,
12592
- icon: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react19.Text, { size: 24 }),
12593
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12597
+ icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react19.Text, { size: 24 }),
12598
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
12594
12599
  Textarea,
12595
12600
  {
12596
12601
  className: (0, import_clsx42.default)(
@@ -12623,11 +12628,11 @@ var TextProperty = ({
12623
12628
 
12624
12629
  // src/components/table/FillerRowElement.tsx
12625
12630
  var import_clsx43 = require("clsx");
12626
- var import_jsx_runtime55 = require("react/jsx-runtime");
12631
+ var import_jsx_runtime56 = require("react/jsx-runtime");
12627
12632
  var FillerRowElement = ({
12628
12633
  className
12629
12634
  }) => {
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: "-" });
12635
+ 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
12636
  };
12632
12637
 
12633
12638
  // src/components/table/Filter.ts
@@ -12651,12 +12656,12 @@ var import_react_table = require("@tanstack/react-table");
12651
12656
 
12652
12657
  // src/components/table/TableCell.tsx
12653
12658
  var import_clsx44 = require("clsx");
12654
- var import_jsx_runtime56 = require("react/jsx-runtime");
12659
+ var import_jsx_runtime57 = require("react/jsx-runtime");
12655
12660
  var TableCell = ({
12656
12661
  children,
12657
12662
  className
12658
12663
  }) => {
12659
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: (0, import_clsx44.clsx)("block max-w-full overflow-ellipsis truncate", className), children });
12664
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: (0, import_clsx44.clsx)("block max-w-full overflow-ellipsis truncate", className), children });
12660
12665
  };
12661
12666
 
12662
12667
  // src/hooks/useResizeCallbackWrapper.ts
@@ -12678,7 +12683,7 @@ var import_clsx46 = __toESM(require("clsx"));
12678
12683
  var import_react38 = require("react");
12679
12684
  var import_clsx45 = require("clsx");
12680
12685
  var import_react_dom4 = require("react-dom");
12681
- var import_jsx_runtime57 = require("react/jsx-runtime");
12686
+ var import_jsx_runtime58 = require("react/jsx-runtime");
12682
12687
  var Tooltip = ({
12683
12688
  tooltip,
12684
12689
  children,
@@ -12739,7 +12744,7 @@ var Tooltip = ({
12739
12744
  });
12740
12745
  const zIndex = useZIndexRegister(isActive);
12741
12746
  const zIndexTriangle = useZIndexRegister(isActive);
12742
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
12747
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
12743
12748
  "div",
12744
12749
  {
12745
12750
  ref: anchorRef,
@@ -12772,9 +12777,9 @@ var Tooltip = ({
12772
12777
  }),
12773
12778
  children: [
12774
12779
  children,
12775
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Visibility, { isVisible: isActive, children: [
12780
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Visibility, { isVisible: isActive, children: [
12776
12781
  (0, import_react_dom4.createPortal)(
12777
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
12782
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
12778
12783
  "div",
12779
12784
  {
12780
12785
  ref: containerRef,
@@ -12790,7 +12795,7 @@ var Tooltip = ({
12790
12795
  document.body
12791
12796
  ),
12792
12797
  (0, import_react_dom4.createPortal)(
12793
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
12798
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
12794
12799
  "div",
12795
12800
  {
12796
12801
  ref: triangleRef,
@@ -12812,7 +12817,7 @@ var Tooltip = ({
12812
12817
  };
12813
12818
 
12814
12819
  // src/components/table/TableSortButton.tsx
12815
- var import_jsx_runtime58 = require("react/jsx-runtime");
12820
+ var import_jsx_runtime59 = require("react/jsx-runtime");
12816
12821
  var TableSortButton = ({
12817
12822
  sortDirection,
12818
12823
  invert = false,
@@ -12824,16 +12829,16 @@ var TableSortButton = ({
12824
12829
  }) => {
12825
12830
  const translation = useHightideTranslation();
12826
12831
  const { sortingsCount, index } = sortingIndexDisplay;
12827
- let icon = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react20.ChevronsUpDown, { className: "size-4" });
12832
+ let icon = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react20.ChevronsUpDown, { className: "size-4" });
12828
12833
  if (sortDirection) {
12829
12834
  let usedSortDirection = sortDirection;
12830
12835
  if (invert) {
12831
12836
  usedSortDirection = usedSortDirection === "desc" ? "asc" : "desc";
12832
12837
  }
12833
- 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" });
12838
+ 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" });
12834
12839
  }
12835
12840
  const hasSortingIndex = !!sortingIndexDisplay && sortingsCount > 1 && index > 0;
12836
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Tooltip, { tooltip: translation("rSortingOrderAfter", { otherSortings: index - 1 }), disabled: !hasSortingIndex, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
12841
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Tooltip, { tooltip: translation("rSortingOrderAfter", { otherSortings: index - 1 }), disabled: !hasSortingIndex, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
12837
12842
  Button,
12838
12843
  {
12839
12844
  layout: hasSortingIndex ? "default" : "icon",
@@ -12842,7 +12847,7 @@ var TableSortButton = ({
12842
12847
  className: (0, import_clsx46.default)("relative", className),
12843
12848
  ...props,
12844
12849
  children: [
12845
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Visibility, { isVisible: hasSortingIndex, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
12850
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Visibility, { isVisible: hasSortingIndex, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
12846
12851
  "div",
12847
12852
  {
12848
12853
  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"),
@@ -12995,14 +13000,14 @@ var useOutsideClick = (refs, handler) => {
12995
13000
  };
12996
13001
 
12997
13002
  // src/components/user-action/Menu.tsx
12998
- var import_jsx_runtime59 = require("react/jsx-runtime");
13003
+ var import_jsx_runtime60 = require("react/jsx-runtime");
12999
13004
  var MenuItem = ({
13000
13005
  children,
13001
13006
  onClick,
13002
13007
  alignment = "left",
13003
13008
  isDisabled = false,
13004
13009
  className
13005
- }) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13010
+ }) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13006
13011
  "div",
13007
13012
  {
13008
13013
  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", {
@@ -13072,9 +13077,9 @@ var Menu = ({
13072
13077
  }
13073
13078
  }, [isOpen]);
13074
13079
  const zIndex = useZIndexRegister(isOpen);
13075
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
13080
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
13076
13081
  trigger(bag, triggerRef),
13077
- (0, import_react_dom5.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13082
+ (0, import_react_dom5.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13078
13083
  "div",
13079
13084
  {
13080
13085
  ref: menuRef,
@@ -13105,7 +13110,7 @@ var Menu = ({
13105
13110
 
13106
13111
  // src/components/table/TableFilterButton.tsx
13107
13112
  var import_react42 = require("react");
13108
- var import_jsx_runtime60 = require("react/jsx-runtime");
13113
+ var import_jsx_runtime61 = require("react/jsx-runtime");
13109
13114
  var TableFilterButton = ({
13110
13115
  filterType,
13111
13116
  column
@@ -13117,21 +13122,21 @@ var TableFilterButton = ({
13117
13122
  (0, import_react42.useEffect)(() => {
13118
13123
  setFilterValue(columnFilterValue);
13119
13124
  }, [columnFilterValue]);
13120
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13125
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13121
13126
  Menu,
13122
13127
  {
13123
- trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { ref, className: "relative", children: [
13124
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13128
+ trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { ref, className: "relative", children: [
13129
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13125
13130
  Button,
13126
13131
  {
13127
13132
  layout: "icon",
13128
13133
  color: "neutral",
13129
13134
  size: "tiny",
13130
13135
  onClick: toggleOpen,
13131
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react21.FilterIcon, { className: "size-4" })
13136
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react21.FilterIcon, { className: "size-4" })
13132
13137
  }
13133
13138
  ),
13134
- hasFilter && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13139
+ hasFilter && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13135
13140
  "div",
13136
13141
  {
13137
13142
  className: "absolute top-0.5 right-0.5 w-2 h-2 rounded-full bg-primary pointer-events-none",
@@ -13139,9 +13144,9 @@ var TableFilterButton = ({
13139
13144
  }
13140
13145
  )
13141
13146
  ] }),
13142
- children: ({ close }) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
13143
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
13144
- filterType === "text" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13147
+ children: ({ close }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
13148
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
13149
+ filterType === "text" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13145
13150
  Input,
13146
13151
  {
13147
13152
  value: filterValue ?? "",
@@ -13151,8 +13156,8 @@ var TableFilterButton = ({
13151
13156
  className: "h-10"
13152
13157
  }
13153
13158
  ),
13154
- filterType === "range" && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-row-2 items-center", children: [
13155
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13159
+ filterType === "range" && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-row-2 items-center", children: [
13160
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13156
13161
  Input,
13157
13162
  {
13158
13163
  value: filterValue?.[0] ?? "",
@@ -13165,8 +13170,8 @@ var TableFilterButton = ({
13165
13170
  className: "h-10 input-indicator-hidden w-40"
13166
13171
  }
13167
13172
  ),
13168
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "font-bold", children: "-" }),
13169
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13173
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "font-bold", children: "-" }),
13174
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13170
13175
  Input,
13171
13176
  {
13172
13177
  value: filterValue?.[1] ?? "",
@@ -13180,8 +13185,8 @@ var TableFilterButton = ({
13180
13185
  }
13181
13186
  )
13182
13187
  ] }),
13183
- filterType === "dateRange" && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
13184
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13188
+ filterType === "dateRange" && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
13189
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13185
13190
  Input,
13186
13191
  {
13187
13192
  value: filterValue?.[0] ? filterValue?.[0].toISOString().slice(0, 16) : "",
@@ -13194,7 +13199,7 @@ var TableFilterButton = ({
13194
13199
  className: "h-10 w-50"
13195
13200
  }
13196
13201
  ),
13197
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13202
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13198
13203
  Input,
13199
13204
  {
13200
13205
  value: filterValue?.[1] ? filterValue?.[1].toISOString().slice(0, 16) : "",
@@ -13208,12 +13213,12 @@ var TableFilterButton = ({
13208
13213
  }
13209
13214
  )
13210
13215
  ] }),
13211
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-row-2 justify-end w-full", children: [
13212
- hasFilter && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { color: "negative", size: "small", onClick: () => {
13216
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-row-2 justify-end w-full", children: [
13217
+ hasFilter && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { color: "negative", size: "small", onClick: () => {
13213
13218
  column.setFilterValue(void 0);
13214
13219
  close();
13215
13220
  }, children: translation("remove") }),
13216
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { size: "small", onClick: () => {
13221
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { size: "small", onClick: () => {
13217
13222
  column.setFilterValue(filterValue);
13218
13223
  close();
13219
13224
  }, children: translation("apply") })
@@ -13224,7 +13229,7 @@ var TableFilterButton = ({
13224
13229
  };
13225
13230
 
13226
13231
  // src/components/table/Table.tsx
13227
- var import_jsx_runtime61 = require("react/jsx-runtime");
13232
+ var import_jsx_runtime62 = require("react/jsx-runtime");
13228
13233
  var Table = ({
13229
13234
  data,
13230
13235
  fillerRow,
@@ -13344,7 +13349,7 @@ var Table = ({
13344
13349
  minSize: 60,
13345
13350
  maxSize: 700,
13346
13351
  cell: ({ cell }) => {
13347
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(TableCell, { children: cell.getValue() });
13352
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TableCell, { children: cell.getValue() });
13348
13353
  },
13349
13354
  ...defaultColumn
13350
13355
  },
@@ -13429,8 +13434,8 @@ var Table = ({
13429
13434
  }
13430
13435
  return colSizes;
13431
13436
  }, [table.getState().columnSizingInfo, table.getState().columnSizing]);
13432
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { ref, className: (0, import_clsx48.default)("flex-col-4", className), children: [
13433
- /* @__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)(
13437
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { ref, className: (0, import_clsx48.default)("flex-col-4", className), children: [
13438
+ /* @__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)(
13434
13439
  "table",
13435
13440
  {
13436
13441
  ref: tableRef,
@@ -13440,7 +13445,7 @@ var Table = ({
13440
13445
  width: Math.floor(Math.max(table.getTotalSize() - columns.length, ref.current?.offsetWidth ?? table.getTotalSize()))
13441
13446
  },
13442
13447
  children: [
13443
- table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13448
+ table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13444
13449
  "col",
13445
13450
  {
13446
13451
  style: {
@@ -13451,15 +13456,15 @@ var Table = ({
13451
13456
  },
13452
13457
  header.id
13453
13458
  )) }, headerGroup.id)),
13454
- /* @__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) => {
13455
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
13459
+ /* @__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) => {
13460
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
13456
13461
  "th",
13457
13462
  {
13458
13463
  colSpan: header.colSpan,
13459
13464
  className: (0, import_clsx48.default)("relative group", header.column.columnDef.meta?.className),
13460
13465
  children: [
13461
- /* @__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: [
13462
- header.column.getCanSort() && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13466
+ /* @__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: [
13467
+ header.column.getCanSort() && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13463
13468
  TableSortButton,
13464
13469
  {
13465
13470
  sortDirection: header.column.getIsSorted(),
@@ -13485,7 +13490,7 @@ var Table = ({
13485
13490
  }
13486
13491
  }
13487
13492
  ),
13488
- header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13493
+ header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13489
13494
  TableFilterButton,
13490
13495
  {
13491
13496
  column: header.column,
@@ -13497,7 +13502,7 @@ var Table = ({
13497
13502
  header.getContext()
13498
13503
  )
13499
13504
  ] }) }),
13500
- header.column.getCanResize() && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13505
+ header.column.getCanResize() && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13501
13506
  "div",
13502
13507
  {
13503
13508
  onMouseDown: header.getResizeHandler(),
@@ -13516,15 +13521,15 @@ var Table = ({
13516
13521
  header.id
13517
13522
  );
13518
13523
  }) }, headerGroup.id)) }),
13519
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("tbody", { children: [
13524
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("tbody", { children: [
13520
13525
  table.getRowModel().rows.map((row) => {
13521
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13526
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13522
13527
  "tr",
13523
13528
  {
13524
13529
  onClick: () => onRowClick?.(row, table),
13525
13530
  className: table.options.meta?.bodyRowClassName,
13526
13531
  children: row.getVisibleCells().map((cell) => {
13527
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { children: (0, import_react_table.flexRender)(
13532
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("td", { children: (0, import_react_table.flexRender)(
13528
13533
  cell.column.columnDef.cell,
13529
13534
  cell.getContext()
13530
13535
  ) }, cell.id);
@@ -13534,15 +13539,15 @@ var Table = ({
13534
13539
  );
13535
13540
  }),
13536
13541
  range(table.getState().pagination.pageSize - table.getRowModel().rows.length, { allowEmptyRange: true }).map((row, index) => {
13537
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("tr", { children: columns.map((column) => {
13538
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FillerRowElement, {}) }, column.id);
13542
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("tr", { children: columns.map((column) => {
13543
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FillerRowElement, {}) }, column.id);
13539
13544
  }) }, "filler-row-" + index);
13540
13545
  })
13541
13546
  ] })
13542
13547
  ]
13543
13548
  }
13544
13549
  ) }),
13545
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13550
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13546
13551
  Pagination,
13547
13552
  {
13548
13553
  pageIndex: table.getState().pagination.pageIndex,
@@ -13554,7 +13559,7 @@ var Table = ({
13554
13559
  };
13555
13560
  var TableUncontrolled = ({ data, ...props }) => {
13556
13561
  const [usedDate] = useOverwritableState(data);
13557
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13562
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13558
13563
  Table,
13559
13564
  {
13560
13565
  ...props,
@@ -13578,7 +13583,7 @@ var TableWithSelection = ({
13578
13583
  {
13579
13584
  id: selectionRowId,
13580
13585
  header: ({ table }) => {
13581
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13586
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13582
13587
  Checkbox,
13583
13588
  {
13584
13589
  checked: table.getIsAllRowsSelected(),
@@ -13591,7 +13596,7 @@ var TableWithSelection = ({
13591
13596
  );
13592
13597
  },
13593
13598
  cell: ({ row }) => {
13594
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13599
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13595
13600
  Checkbox,
13596
13601
  {
13597
13602
  disabled: !row.getCanSelect(),
@@ -13609,15 +13614,15 @@ var TableWithSelection = ({
13609
13614
  ...columns
13610
13615
  ];
13611
13616
  }, [columns, selectionRowId]);
13612
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13617
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13613
13618
  Table,
13614
13619
  {
13615
13620
  columns: columnsWithSelection,
13616
13621
  fillerRow: (columnId, table) => {
13617
13622
  if (columnId === selectionRowId) {
13618
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Checkbox, { checked: false, disabled: true, className: "max-w-6" });
13623
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Checkbox, { checked: false, disabled: true, className: "max-w-6" });
13619
13624
  }
13620
- return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FillerRowElement, {});
13625
+ return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FillerRowElement, {});
13621
13626
  },
13622
13627
  state: {
13623
13628
  rowSelection,
@@ -13652,7 +13657,7 @@ var writeToClipboard = (text) => {
13652
13657
 
13653
13658
  // src/components/user-action/CopyToClipboardWrapper.tsx
13654
13659
  var import_lucide_react22 = require("lucide-react");
13655
- var import_jsx_runtime62 = require("react/jsx-runtime");
13660
+ var import_jsx_runtime63 = require("react/jsx-runtime");
13656
13661
  var CopyToClipboardWrapper = ({
13657
13662
  children,
13658
13663
  textToCopy,
@@ -13683,7 +13688,7 @@ var CopyToClipboardWrapper = ({
13683
13688
  left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
13684
13689
  right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
13685
13690
  };
13686
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
13691
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
13687
13692
  "div",
13688
13693
  {
13689
13694
  className: (0, import_clsx49.clsx)("relative inline-block cursor-copy", containerClassName),
@@ -13701,7 +13706,7 @@ var CopyToClipboardWrapper = ({
13701
13706
  },
13702
13707
  children: [
13703
13708
  children,
13704
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
13709
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
13705
13710
  "div",
13706
13711
  {
13707
13712
  className: (0, import_clsx49.clsx)(
@@ -13716,15 +13721,15 @@ var CopyToClipboardWrapper = ({
13716
13721
  opacity: isShowingIndication || isShowingConfirmation ? 1 : 0
13717
13722
  },
13718
13723
  children: [
13719
- isShowingConfirmation && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-row-1", children: [
13720
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.CheckIcon, { size: 16, className: "text-positive" }),
13724
+ isShowingConfirmation && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-row-1", children: [
13725
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react22.CheckIcon, { size: 16, className: "text-positive" }),
13721
13726
  translation("copied")
13722
13727
  ] }),
13723
- isShowingIndication && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-row-1 text-description", children: [
13724
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.Copy, { size: 16 }),
13728
+ isShowingIndication && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-row-1 text-description", children: [
13729
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react22.Copy, { size: 16 }),
13725
13730
  translation("clickToCopy")
13726
13731
  ] }),
13727
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13732
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
13728
13733
  "div",
13729
13734
  {
13730
13735
  className: (0, import_clsx49.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
@@ -13741,7 +13746,7 @@ var CopyToClipboardWrapper = ({
13741
13746
 
13742
13747
  // src/components/user-action/DateAndTimePicker.tsx
13743
13748
  var import_clsx50 = __toESM(require("clsx"));
13744
- var import_jsx_runtime63 = require("react/jsx-runtime");
13749
+ var import_jsx_runtime64 = require("react/jsx-runtime");
13745
13750
  var DateTimePicker = ({
13746
13751
  value = /* @__PURE__ */ new Date(),
13747
13752
  start = subtractDuration(/* @__PURE__ */ new Date(), { years: 50 }),
@@ -13756,7 +13761,7 @@ var DateTimePicker = ({
13756
13761
  let dateDisplay;
13757
13762
  let timeDisplay;
13758
13763
  if (useDate) {
13759
- dateDisplay = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
13764
+ dateDisplay = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13760
13765
  DatePicker,
13761
13766
  {
13762
13767
  ...datePickerProps,
@@ -13770,7 +13775,7 @@ var DateTimePicker = ({
13770
13775
  );
13771
13776
  }
13772
13777
  if (useTime) {
13773
- timeDisplay = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
13778
+ timeDisplay = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13774
13779
  TimePicker,
13775
13780
  {
13776
13781
  ...timePickerProps,
@@ -13780,7 +13785,7 @@ var DateTimePicker = ({
13780
13785
  }
13781
13786
  );
13782
13787
  }
13783
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-row-2 min-h-71 max-h-71", children: [
13788
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex-row-2 min-h-71 max-h-71", children: [
13784
13789
  dateDisplay,
13785
13790
  timeDisplay
13786
13791
  ] });
@@ -13789,7 +13794,7 @@ var DateTimePicker = ({
13789
13794
  // src/components/user-action/ScrollPicker.tsx
13790
13795
  var import_react45 = require("react");
13791
13796
  var import_clsx51 = __toESM(require("clsx"));
13792
- var import_jsx_runtime64 = require("react/jsx-runtime");
13797
+ var import_jsx_runtime65 = require("react/jsx-runtime");
13793
13798
  var up = 1;
13794
13799
  var down = -1;
13795
13800
  var ScrollPicker = ({
@@ -13928,7 +13933,7 @@ var ScrollPicker = ({
13928
13933
  }
13929
13934
  return clamp(1 - opacityValue / max);
13930
13935
  };
13931
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13936
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
13932
13937
  "div",
13933
13938
  {
13934
13939
  className: "relative overflow-hidden",
@@ -13939,15 +13944,15 @@ var ScrollPicker = ({
13939
13944
  setAnimation(({ velocity, ...animationData }) => ({ ...animationData, velocity: velocity + deltaY }));
13940
13945
  }
13941
13946
  },
13942
- 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: [
13943
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13947
+ 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: [
13948
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
13944
13949
  "div",
13945
13950
  {
13946
13951
  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 ",
13947
13952
  style: { height: `${itemHeight}px` }
13948
13953
  }
13949
13954
  ),
13950
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13955
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
13951
13956
  "div",
13952
13957
  {
13953
13958
  className: "flex-col-2 select-none",
@@ -13955,7 +13960,7 @@ var ScrollPicker = ({
13955
13960
  transform: `translateY(${-transition * (distance + itemHeight)}px)`,
13956
13961
  columnGap: `${distance}px`
13957
13962
  },
13958
- children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13963
+ children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
13959
13964
  "div",
13960
13965
  {
13961
13966
  className: (0, import_clsx51.default)(
@@ -13988,7 +13993,7 @@ var ScrollPicker = ({
13988
13993
  var import_react46 = require("react");
13989
13994
  var import_lucide_react23 = require("lucide-react");
13990
13995
  var import_clsx52 = __toESM(require("clsx"));
13991
- var import_jsx_runtime65 = require("react/jsx-runtime");
13996
+ var import_jsx_runtime66 = require("react/jsx-runtime");
13992
13997
  var DateTimeInput = ({
13993
13998
  date,
13994
13999
  onValueChange,
@@ -14016,13 +14021,13 @@ var DateTimeInput = ({
14016
14021
  const cleanInputProps = { ...props };
14017
14022
  delete cleanInputProps["isShowingError"];
14018
14023
  delete cleanInputProps["setIsShowingError"];
14019
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
14020
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { ...containerProps, className: (0, import_clsx52.default)("relative w-full", containerProps?.className), children: [
14021
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14024
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
14025
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { ...containerProps, className: (0, import_clsx52.default)("relative w-full", containerProps?.className), children: [
14026
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14022
14027
  Input,
14023
14028
  {
14024
14029
  ...cleanInputProps,
14025
- placeholder: translation("clickToAdd"),
14030
+ placeholder: translation("clickToSelect"),
14026
14031
  value: date ? DateUtils.formatAbsolute(date, locale, mode === "dateTime") : "",
14027
14032
  onClick: (event) => {
14028
14033
  setIsOpen(true);
@@ -14036,7 +14041,7 @@ var DateTimeInput = ({
14036
14041
  )
14037
14042
  }
14038
14043
  ),
14039
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14044
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14040
14045
  Button,
14041
14046
  {
14042
14047
  coloringStyle: "text",
@@ -14046,18 +14051,18 @@ var DateTimeInput = ({
14046
14051
  className: "absolute right-1 top-1/2 -translate-y-1/2",
14047
14052
  disabled: isReadOnly,
14048
14053
  onClick: () => setIsOpen((prevState) => !prevState),
14049
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react23.CalendarIcon, { className: "size-5" })
14054
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react23.CalendarIcon, { className: "size-5" })
14050
14055
  }
14051
14056
  )
14052
14057
  ] }),
14053
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Visibility, { isVisible: isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
14058
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Visibility, { isVisible: isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
14054
14059
  "div",
14055
14060
  {
14056
14061
  ref: containerRef,
14057
14062
  className: "absolute left-0 flex-col-3 rounded-lg shadow-xl border bg-surface-variant text-on-surface border-divider p-2",
14058
14063
  style: { zIndex },
14059
14064
  children: [
14060
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14065
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14061
14066
  DateTimePicker,
14062
14067
  {
14063
14068
  ...pickerProps,
@@ -14068,8 +14073,8 @@ var DateTimeInput = ({
14068
14073
  }
14069
14074
  }
14070
14075
  ),
14071
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex-row-2 justify-end", children: [
14072
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Visibility, { isVisible: !!onRemove, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14076
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex-row-2 justify-end", children: [
14077
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Visibility, { isVisible: !!onRemove, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14073
14078
  Button,
14074
14079
  {
14075
14080
  size: "medium",
@@ -14081,7 +14086,7 @@ var DateTimeInput = ({
14081
14086
  children: translation("clear")
14082
14087
  }
14083
14088
  ) }),
14084
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14089
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14085
14090
  Button,
14086
14091
  {
14087
14092
  size: "medium",
@@ -14102,8 +14107,8 @@ var DateTimeInputUncontrolled = ({
14102
14107
  date: initialDate,
14103
14108
  ...props
14104
14109
  }) => {
14105
- const [date, setDate] = useOverwritableState((0, import_react46.useMemo)(() => initialDate ?? /* @__PURE__ */ new Date(), [initialDate]));
14106
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14110
+ const [date, setDate] = useOverwritableState(initialDate);
14111
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14107
14112
  DateTimeInput,
14108
14113
  {
14109
14114
  ...props,
@@ -14113,7 +14118,7 @@ var DateTimeInputUncontrolled = ({
14113
14118
  props.onValueChange?.(newDate);
14114
14119
  },
14115
14120
  onRemove: () => {
14116
- setDate(/* @__PURE__ */ new Date());
14121
+ setDate(void 0);
14117
14122
  props.onRemove?.();
14118
14123
  }
14119
14124
  }
@@ -14124,7 +14129,7 @@ var DateTimeInputUncontrolled = ({
14124
14129
  var import_react47 = require("react");
14125
14130
  var import_react48 = require("react");
14126
14131
  var import_clsx53 = __toESM(require("clsx"));
14127
- var import_jsx_runtime66 = require("react/jsx-runtime");
14132
+ var import_jsx_runtime67 = require("react/jsx-runtime");
14128
14133
  var InsideLabelInput = (0, import_react48.forwardRef)(function InsideLabelInput2({
14129
14134
  id: customId,
14130
14135
  label,
@@ -14134,8 +14139,8 @@ var InsideLabelInput = (0, import_react48.forwardRef)(function InsideLabelInput2
14134
14139
  const [isFocused, setIsFocused] = (0, import_react48.useState)(false);
14135
14140
  const generatedId = (0, import_react47.useId)();
14136
14141
  const id = customId ?? generatedId;
14137
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: (0, import_clsx53.default)("relative"), children: [
14138
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14142
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: (0, import_clsx53.default)("relative"), children: [
14143
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14139
14144
  Input,
14140
14145
  {
14141
14146
  ...props,
@@ -14153,7 +14158,7 @@ var InsideLabelInput = (0, import_react48.forwardRef)(function InsideLabelInput2
14153
14158
  }
14154
14159
  }
14155
14160
  ),
14156
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14161
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14157
14162
  "label",
14158
14163
  {
14159
14164
  id: id + "-label",
@@ -14175,7 +14180,7 @@ var InsideLabelInputUncontrolled = ({
14175
14180
  ...props
14176
14181
  }) => {
14177
14182
  const [value, setValue] = useOverwritableState(initialValue, props.onChangeText);
14178
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14183
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14179
14184
  InsideLabelInput,
14180
14185
  {
14181
14186
  ...props,
@@ -14188,7 +14193,7 @@ var InsideLabelInputUncontrolled = ({
14188
14193
  // src/components/user-action/input/SearchBar.tsx
14189
14194
  var import_lucide_react24 = require("lucide-react");
14190
14195
  var import_clsx54 = require("clsx");
14191
- var import_jsx_runtime67 = require("react/jsx-runtime");
14196
+ var import_jsx_runtime68 = require("react/jsx-runtime");
14192
14197
  var SearchBar = ({
14193
14198
  onSearch,
14194
14199
  searchButtonProps,
@@ -14196,8 +14201,8 @@ var SearchBar = ({
14196
14201
  ...inputProps
14197
14202
  }) => {
14198
14203
  const translation = useHightideTranslation();
14199
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { ...containerProps, className: (0, import_clsx54.clsx)("relative", containerProps?.className), children: [
14200
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14204
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { ...containerProps, className: (0, import_clsx54.clsx)("relative", containerProps?.className), children: [
14205
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14201
14206
  InputUncontrolled,
14202
14207
  {
14203
14208
  ...inputProps,
@@ -14205,7 +14210,7 @@ var SearchBar = ({
14205
14210
  className: (0, import_clsx54.clsx)("pr-10 w-full", inputProps.className)
14206
14211
  }
14207
14212
  ),
14208
- onSearch && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14213
+ onSearch && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14209
14214
  Button,
14210
14215
  {
14211
14216
  ...searchButtonProps,
@@ -14215,7 +14220,7 @@ var SearchBar = ({
14215
14220
  coloringStyle: "text",
14216
14221
  onClick: (event) => onSearch(event),
14217
14222
  className: (0, import_clsx54.clsx)("absolute right-1 top-1/2 -translate-y-1/2", searchButtonProps?.className),
14218
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react24.Search, { className: "w-full h-full" })
14223
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_lucide_react24.Search, { className: "w-full h-full" })
14219
14224
  }
14220
14225
  )
14221
14226
  ] });
@@ -14225,7 +14230,7 @@ var SearchBar = ({
14225
14230
  var import_react49 = require("react");
14226
14231
  var import_lucide_react25 = require("lucide-react");
14227
14232
  var import_clsx55 = __toESM(require("clsx"));
14228
- var import_jsx_runtime68 = require("react/jsx-runtime");
14233
+ var import_jsx_runtime69 = require("react/jsx-runtime");
14229
14234
  var ToggleableInput = (0, import_react49.forwardRef)(function ToggleableInput2({
14230
14235
  value,
14231
14236
  initialState = "display",
@@ -14240,8 +14245,8 @@ var ToggleableInput = (0, import_react49.forwardRef)(function ToggleableInput2({
14240
14245
  innerRef.current?.focus();
14241
14246
  }
14242
14247
  }, [isEditing]);
14243
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: (0, import_clsx55.default)("relative flex-row-2", { "flex-1": isEditing }), children: [
14244
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14248
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: (0, import_clsx55.default)("relative flex-row-2", { "flex-1": isEditing }), children: [
14249
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
14245
14250
  Input,
14246
14251
  {
14247
14252
  ...props,
@@ -14267,9 +14272,9 @@ var ToggleableInput = (0, import_react49.forwardRef)(function ToggleableInput2({
14267
14272
  })
14268
14273
  }
14269
14274
  ),
14270
- !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: [
14271
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: (0, import_clsx55.default)(" truncate"), children: value }),
14272
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_lucide_react25.Pencil, { className: (0, import_clsx55.default)(`size-force-4`, { "text-transparent": isEditing }) })
14275
+ !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: [
14276
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0, import_clsx55.default)(" truncate"), children: value }),
14277
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_lucide_react25.Pencil, { className: (0, import_clsx55.default)(`size-force-4`, { "text-transparent": isEditing }) })
14273
14278
  ] })
14274
14279
  ] });
14275
14280
  });
@@ -14279,7 +14284,7 @@ var ToggleableInputUncontrolled = ({
14279
14284
  ...restProps
14280
14285
  }) => {
14281
14286
  const [value, setValue] = useOverwritableState(initialValue, onChangeText);
14282
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14287
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
14283
14288
  ToggleableInput,
14284
14289
  {
14285
14290
  value,
@@ -14293,7 +14298,7 @@ var ToggleableInputUncontrolled = ({
14293
14298
  var import_react50 = require("react");
14294
14299
  var import_react51 = require("react");
14295
14300
  var import_react52 = require("react");
14296
- var import_jsx_runtime69 = require("react/jsx-runtime");
14301
+ var import_jsx_runtime70 = require("react/jsx-runtime");
14297
14302
  var FocusTrap = (0, import_react52.forwardRef)(function FocusTrap2({
14298
14303
  active = true,
14299
14304
  initialFocus,
@@ -14303,7 +14308,7 @@ var FocusTrap = (0, import_react52.forwardRef)(function FocusTrap2({
14303
14308
  const innerRef = (0, import_react50.useRef)(null);
14304
14309
  (0, import_react51.useImperativeHandle)(forwardedRef, () => innerRef.current);
14305
14310
  useFocusTrap({ container: innerRef, active, initialFocus, focusFirst });
14306
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { ref: innerRef, ...props });
14311
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { ref: innerRef, ...props });
14307
14312
  });
14308
14313
 
14309
14314
  // src/components/utils/Transition.tsx