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