@helpwave/hightide 0.12.6 → 0.12.7
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 +34 -21
- package/dist/index.d.ts +34 -21
- package/dist/index.js +182 -163
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +213 -194
- package/dist/index.mjs.map +1 -1
- package/dist/style/globals.css +190 -121
- package/dist/style/uncompiled/theme/colors/component.css +7 -0
- package/dist/style/uncompiled/theme/colors/semantic.css +4 -4
- package/dist/style/uncompiled/theme/components/app-page.css +2 -2
- package/dist/style/uncompiled/theme/components/avatar.css +12 -3
- package/dist/style/uncompiled/theme/components/button.css +1 -0
- package/dist/style/uncompiled/theme/components/card.css +16 -5
- package/dist/style/uncompiled/theme/components/checkbox.css +1 -7
- package/dist/style/uncompiled/theme/components/date-time-input.css +4 -0
- package/dist/style/uncompiled/theme/components/general.css +1 -0
- package/dist/style/uncompiled/theme/components/icon-button.css +1 -0
- package/dist/style/uncompiled/theme/components/switch.css +5 -1
- package/dist/style/uncompiled/theme/components/table.css +5 -1
- package/dist/style/uncompiled/theme/components/vertical-navigation.css +3 -2
- package/dist/style/uncompiled/utitlity/coloring.css +4 -8
- package/dist/style/uncompiled/utitlity/focus.css +14 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7322,6 +7322,125 @@ function Visibility({ children, isVisible }) {
|
|
|
7322
7322
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: isVisible && children });
|
|
7323
7323
|
}
|
|
7324
7324
|
|
|
7325
|
+
// src/components/display-and-visualization/Avatar.tsx
|
|
7326
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
7327
|
+
var import_react2 = require("react");
|
|
7328
|
+
var Avatar = ({
|
|
7329
|
+
image: initialImage,
|
|
7330
|
+
name,
|
|
7331
|
+
size = "md",
|
|
7332
|
+
...props
|
|
7333
|
+
}) => {
|
|
7334
|
+
const [hasError, setHasError] = (0, import_react.useState)(false);
|
|
7335
|
+
const [hasLoaded, setHasLoaded] = (0, import_react.useState)(false);
|
|
7336
|
+
const [image, setImage] = (0, import_react.useState)(initialImage);
|
|
7337
|
+
const displayName = (0, import_react.useMemo)(() => {
|
|
7338
|
+
const maxLetters = size === "sm" ? 1 : 2;
|
|
7339
|
+
return (name ?? "").split(" ").filter((_, index) => index < maxLetters).map((value) => value[0]).join("").toUpperCase();
|
|
7340
|
+
}, [name, size]);
|
|
7341
|
+
const isShowingImage = !!image && (!hasError || !hasLoaded);
|
|
7342
|
+
(0, import_react.useEffect)(() => {
|
|
7343
|
+
if (initialImage?.avatarUrl !== image?.avatarUrl) {
|
|
7344
|
+
setHasError(false);
|
|
7345
|
+
setHasLoaded(false);
|
|
7346
|
+
}
|
|
7347
|
+
setImage(initialImage);
|
|
7348
|
+
}, [image?.avatarUrl, initialImage]);
|
|
7349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
7350
|
+
"div",
|
|
7351
|
+
{
|
|
7352
|
+
...props,
|
|
7353
|
+
"data-name": "avatar",
|
|
7354
|
+
"data-size": size ?? void 0,
|
|
7355
|
+
children: [
|
|
7356
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Visibility, { isVisible: isShowingImage, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
7357
|
+
"img",
|
|
7358
|
+
{
|
|
7359
|
+
src: image?.avatarUrl,
|
|
7360
|
+
alt: image?.alt,
|
|
7361
|
+
"data-name": "avatar-image",
|
|
7362
|
+
onLoad: () => setHasLoaded(true),
|
|
7363
|
+
onError: () => setHasError(true),
|
|
7364
|
+
"data-error": hasError ? "" : void 0,
|
|
7365
|
+
"data-loaded": hasLoaded ? "" : void 0
|
|
7366
|
+
},
|
|
7367
|
+
image?.avatarUrl
|
|
7368
|
+
) }),
|
|
7369
|
+
name ? displayName : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.UserIcon, {})
|
|
7370
|
+
]
|
|
7371
|
+
}
|
|
7372
|
+
);
|
|
7373
|
+
};
|
|
7374
|
+
var AvatarGroup = ({
|
|
7375
|
+
avatars,
|
|
7376
|
+
showTotalNumber = true,
|
|
7377
|
+
size = "md",
|
|
7378
|
+
...props
|
|
7379
|
+
}) => {
|
|
7380
|
+
const maxShownProfiles = 5;
|
|
7381
|
+
const displayedProfiles = avatars.length < maxShownProfiles ? avatars : avatars.slice(0, maxShownProfiles);
|
|
7382
|
+
const notDisplayedProfiles = avatars.length - maxShownProfiles;
|
|
7383
|
+
const group = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "avatar-group-container", children: displayedProfiles.map((avatar, index) => /* @__PURE__ */ (0, import_react2.createElement)(
|
|
7384
|
+
Avatar,
|
|
7385
|
+
{
|
|
7386
|
+
...avatar,
|
|
7387
|
+
key: index,
|
|
7388
|
+
size,
|
|
7389
|
+
"data-group": ""
|
|
7390
|
+
}
|
|
7391
|
+
)) });
|
|
7392
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
7393
|
+
"div",
|
|
7394
|
+
{
|
|
7395
|
+
...props,
|
|
7396
|
+
"data-name": props["data-name"] ?? "avatar-group",
|
|
7397
|
+
"data-size": size ?? void 0,
|
|
7398
|
+
children: [
|
|
7399
|
+
group,
|
|
7400
|
+
showTotalNumber && notDisplayedProfiles > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
7401
|
+
"span",
|
|
7402
|
+
{
|
|
7403
|
+
"data-name": "avatar-group-more",
|
|
7404
|
+
"data-size": size,
|
|
7405
|
+
children: `+ ${notDisplayedProfiles}`
|
|
7406
|
+
}
|
|
7407
|
+
)
|
|
7408
|
+
]
|
|
7409
|
+
}
|
|
7410
|
+
);
|
|
7411
|
+
};
|
|
7412
|
+
var AvatarWithStatus = ({
|
|
7413
|
+
status = "unknown",
|
|
7414
|
+
className,
|
|
7415
|
+
size = "md",
|
|
7416
|
+
...avatarProps
|
|
7417
|
+
}) => {
|
|
7418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
7419
|
+
"div",
|
|
7420
|
+
{
|
|
7421
|
+
className: (0, import_clsx3.default)(className),
|
|
7422
|
+
"data-name": "avatar-with-status",
|
|
7423
|
+
"data-size": size ?? void 0,
|
|
7424
|
+
children: [
|
|
7425
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Avatar, { ...avatarProps, size }),
|
|
7426
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
7427
|
+
"div",
|
|
7428
|
+
{
|
|
7429
|
+
"data-name": "avatar-with-status-dot",
|
|
7430
|
+
"data-size": size ?? void 0,
|
|
7431
|
+
"data-status": status
|
|
7432
|
+
}
|
|
7433
|
+
)
|
|
7434
|
+
]
|
|
7435
|
+
}
|
|
7436
|
+
);
|
|
7437
|
+
};
|
|
7438
|
+
|
|
7439
|
+
// src/components/display-and-visualization/Card.tsx
|
|
7440
|
+
var import_react3 = require("react");
|
|
7441
|
+
var import_clsx4 = __toESM(require("clsx"));
|
|
7442
|
+
var import_lucide_react2 = require("lucide-react");
|
|
7443
|
+
|
|
7325
7444
|
// src/utils/array.ts
|
|
7326
7445
|
var equalSizeGroups = (array, groupSize) => {
|
|
7327
7446
|
if (groupSize <= 0) {
|
|
@@ -7587,130 +7706,24 @@ var PropsUtil = {
|
|
|
7587
7706
|
mergeProps
|
|
7588
7707
|
};
|
|
7589
7708
|
|
|
7590
|
-
// src/components/display-and-visualization/Avatar.tsx
|
|
7591
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
7592
|
-
var import_react2 = require("react");
|
|
7593
|
-
var Avatar = ({
|
|
7594
|
-
image: initialImage,
|
|
7595
|
-
name,
|
|
7596
|
-
size = "md",
|
|
7597
|
-
...props
|
|
7598
|
-
}) => {
|
|
7599
|
-
const [hasError, setHasError] = (0, import_react.useState)(false);
|
|
7600
|
-
const [hasLoaded, setHasLoaded] = (0, import_react.useState)(false);
|
|
7601
|
-
const [image, setImage] = (0, import_react.useState)(initialImage);
|
|
7602
|
-
const displayName = (0, import_react.useMemo)(() => {
|
|
7603
|
-
const maxLetters = size === "sm" ? 1 : 2;
|
|
7604
|
-
return (name ?? "").split(" ").filter((_, index) => index < maxLetters).map((value) => value[0]).join("").toUpperCase();
|
|
7605
|
-
}, [name, size]);
|
|
7606
|
-
const isShowingImage = !!image && (!hasError || !hasLoaded);
|
|
7607
|
-
(0, import_react.useEffect)(() => {
|
|
7608
|
-
if (initialImage?.avatarUrl !== image?.avatarUrl) {
|
|
7609
|
-
setHasError(false);
|
|
7610
|
-
setHasLoaded(false);
|
|
7611
|
-
}
|
|
7612
|
-
setImage(initialImage);
|
|
7613
|
-
}, [image?.avatarUrl, initialImage]);
|
|
7614
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
7615
|
-
"div",
|
|
7616
|
-
{
|
|
7617
|
-
...props,
|
|
7618
|
-
"data-name": props["data-name"] ?? "avatar",
|
|
7619
|
-
"data-size": props["data-size"] ?? size ?? void 0,
|
|
7620
|
-
children: [
|
|
7621
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Visibility, { isVisible: isShowingImage, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
7622
|
-
"img",
|
|
7623
|
-
{
|
|
7624
|
-
src: image?.avatarUrl,
|
|
7625
|
-
alt: image?.alt,
|
|
7626
|
-
"data-name": "avatar-image",
|
|
7627
|
-
onLoad: () => setHasLoaded(true),
|
|
7628
|
-
onError: () => setHasError(true),
|
|
7629
|
-
"data-error": hasError ? "" : void 0,
|
|
7630
|
-
"data-loaded": hasLoaded ? "" : void 0
|
|
7631
|
-
},
|
|
7632
|
-
image?.avatarUrl
|
|
7633
|
-
) }),
|
|
7634
|
-
name ? displayName : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.UserIcon, {})
|
|
7635
|
-
]
|
|
7636
|
-
}
|
|
7637
|
-
);
|
|
7638
|
-
};
|
|
7639
|
-
var AvatarGroup = ({
|
|
7640
|
-
avatars,
|
|
7641
|
-
showTotalNumber = true,
|
|
7642
|
-
size = "md",
|
|
7643
|
-
...props
|
|
7644
|
-
}) => {
|
|
7645
|
-
const maxShownProfiles = 5;
|
|
7646
|
-
const displayedProfiles = avatars.length < maxShownProfiles ? avatars : avatars.slice(0, maxShownProfiles);
|
|
7647
|
-
const notDisplayedProfiles = avatars.length - maxShownProfiles;
|
|
7648
|
-
const group = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "avatar-group-container", children: displayedProfiles.map((avatar, index) => /* @__PURE__ */ (0, import_react2.createElement)(
|
|
7649
|
-
Avatar,
|
|
7650
|
-
{
|
|
7651
|
-
...avatar,
|
|
7652
|
-
key: index,
|
|
7653
|
-
size,
|
|
7654
|
-
"data-group": ""
|
|
7655
|
-
}
|
|
7656
|
-
)) });
|
|
7657
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
7658
|
-
"div",
|
|
7659
|
-
{
|
|
7660
|
-
...props,
|
|
7661
|
-
"data-name": props["data-name"] ?? "avatar-group",
|
|
7662
|
-
"data-size": size ?? void 0,
|
|
7663
|
-
children: [
|
|
7664
|
-
group,
|
|
7665
|
-
showTotalNumber && notDisplayedProfiles > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
7666
|
-
"span",
|
|
7667
|
-
{
|
|
7668
|
-
"data-name": "avatar-group-more",
|
|
7669
|
-
"data-size": size,
|
|
7670
|
-
children: `+ ${notDisplayedProfiles}`
|
|
7671
|
-
}
|
|
7672
|
-
)
|
|
7673
|
-
]
|
|
7674
|
-
}
|
|
7675
|
-
);
|
|
7676
|
-
};
|
|
7677
|
-
var AvatarWithStatus = ({
|
|
7678
|
-
isOnline,
|
|
7679
|
-
className,
|
|
7680
|
-
size = "md",
|
|
7681
|
-
...avatarProps
|
|
7682
|
-
}) => {
|
|
7683
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
7684
|
-
"div",
|
|
7685
|
-
{
|
|
7686
|
-
className: (0, import_clsx3.default)(className),
|
|
7687
|
-
"data-name": "avatar-with-status",
|
|
7688
|
-
"data-size": size ?? void 0,
|
|
7689
|
-
children: [
|
|
7690
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Avatar, { ...avatarProps, size }),
|
|
7691
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
7692
|
-
"div",
|
|
7693
|
-
{
|
|
7694
|
-
"data-name": "avatar-with-status-dot",
|
|
7695
|
-
"data-size": size ?? void 0,
|
|
7696
|
-
"data-online": PropsUtil.dataAttributes.bool(isOnline),
|
|
7697
|
-
"aria-label": isOnline ? "Online" : "Offline"
|
|
7698
|
-
}
|
|
7699
|
-
)
|
|
7700
|
-
]
|
|
7701
|
-
}
|
|
7702
|
-
);
|
|
7703
|
-
};
|
|
7704
|
-
|
|
7705
7709
|
// src/components/display-and-visualization/Card.tsx
|
|
7706
|
-
var import_react3 = require("react");
|
|
7707
|
-
var import_clsx4 = __toESM(require("clsx"));
|
|
7708
|
-
var import_lucide_react2 = require("lucide-react");
|
|
7709
7710
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
7711
|
+
function CardHeaderContent({ title, description, leading, trailing }) {
|
|
7712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
7713
|
+
leading != null && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { "data-name": "card-leading", children: leading }),
|
|
7714
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { "data-name": "card-content", children: [
|
|
7715
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { "data-name": "card-title", children: title }),
|
|
7716
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Visibility, { isVisible: !!description, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { "data-name": "card-description", children: description }) })
|
|
7717
|
+
] }),
|
|
7718
|
+
trailing != null && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { "data-name": "card-trailing", children: trailing })
|
|
7719
|
+
] });
|
|
7720
|
+
}
|
|
7710
7721
|
var Card = ({
|
|
7711
7722
|
title,
|
|
7712
7723
|
description,
|
|
7713
7724
|
size = "md",
|
|
7725
|
+
leading,
|
|
7726
|
+
trailing,
|
|
7714
7727
|
children,
|
|
7715
7728
|
className,
|
|
7716
7729
|
...props
|
|
@@ -7723,8 +7736,15 @@ var Card = ({
|
|
|
7723
7736
|
"data-name": props["data-name"] ?? "card",
|
|
7724
7737
|
"data-size": size,
|
|
7725
7738
|
children: [
|
|
7726
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("
|
|
7727
|
-
|
|
7739
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { "data-name": "card-header", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
7740
|
+
CardHeaderContent,
|
|
7741
|
+
{
|
|
7742
|
+
title,
|
|
7743
|
+
description,
|
|
7744
|
+
leading,
|
|
7745
|
+
trailing
|
|
7746
|
+
}
|
|
7747
|
+
) }),
|
|
7728
7748
|
children
|
|
7729
7749
|
]
|
|
7730
7750
|
}
|
|
@@ -7734,7 +7754,8 @@ var ActionCard = (0, import_react3.forwardRef)(function ActionCard2({
|
|
|
7734
7754
|
title,
|
|
7735
7755
|
description,
|
|
7736
7756
|
size = "md",
|
|
7737
|
-
|
|
7757
|
+
leading,
|
|
7758
|
+
trailing,
|
|
7738
7759
|
disabled = false,
|
|
7739
7760
|
children,
|
|
7740
7761
|
className,
|
|
@@ -7770,13 +7791,15 @@ var ActionCard = (0, import_react3.forwardRef)(function ActionCard2({
|
|
|
7770
7791
|
role: onClick ? "button" : void 0,
|
|
7771
7792
|
tabIndex: onClick && !disabled ? 0 : void 0,
|
|
7772
7793
|
children: [
|
|
7773
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7794
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { "data-name": "card-header", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
7795
|
+
CardHeaderContent,
|
|
7796
|
+
{
|
|
7797
|
+
title,
|
|
7798
|
+
description,
|
|
7799
|
+
leading,
|
|
7800
|
+
trailing
|
|
7801
|
+
}
|
|
7802
|
+
) }),
|
|
7780
7803
|
children
|
|
7781
7804
|
]
|
|
7782
7805
|
}
|
|
@@ -7786,6 +7809,7 @@ var NavigationCard = (0, import_react3.forwardRef)(function NavigationCard2({
|
|
|
7786
7809
|
title,
|
|
7787
7810
|
description,
|
|
7788
7811
|
size = "md",
|
|
7812
|
+
leading,
|
|
7789
7813
|
href,
|
|
7790
7814
|
isExternal = false,
|
|
7791
7815
|
children,
|
|
@@ -7831,10 +7855,14 @@ var NavigationCard = (0, import_react3.forwardRef)(function NavigationCard2({
|
|
|
7831
7855
|
tabIndex: 0,
|
|
7832
7856
|
children: [
|
|
7833
7857
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { "data-name": "card-header", children: [
|
|
7834
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7858
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
7859
|
+
CardHeaderContent,
|
|
7860
|
+
{
|
|
7861
|
+
title,
|
|
7862
|
+
description,
|
|
7863
|
+
leading
|
|
7864
|
+
}
|
|
7865
|
+
),
|
|
7838
7866
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
7839
7867
|
"a",
|
|
7840
7868
|
{
|
|
@@ -14885,32 +14913,19 @@ function VerticalNavigationItem({
|
|
|
14885
14913
|
const handleHeaderActivate = (0, import_react59.useCallback)(() => {
|
|
14886
14914
|
toggleExpansion(id, { isFocusing: true });
|
|
14887
14915
|
}, [id, toggleExpansion]);
|
|
14888
|
-
const handleLeafActivate = (0, import_react59.useCallback)((
|
|
14889
|
-
if (event.target.closest('[data-name="vertical-navigation-item-link"]')) return;
|
|
14916
|
+
const handleLeafActivate = (0, import_react59.useCallback)(() => {
|
|
14890
14917
|
navigateTo(id);
|
|
14891
|
-
|
|
14892
|
-
|
|
14893
|
-
|
|
14894
|
-
|
|
14895
|
-
href: url,
|
|
14896
|
-
target: "_blank",
|
|
14897
|
-
rel: "noopener noreferrer",
|
|
14898
|
-
"data-name": "vertical-navigation-item-link",
|
|
14899
|
-
tabIndex: -1,
|
|
14900
|
-
children: [
|
|
14901
|
-
label,
|
|
14902
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react9.ExternalLink, { className: "vertical-navigation-item-link-external-icon" })
|
|
14903
|
-
]
|
|
14904
|
-
}
|
|
14905
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
14906
|
-
"a",
|
|
14907
|
-
{
|
|
14908
|
-
href: url,
|
|
14909
|
-
"data-name": "vertical-navigation-item-link",
|
|
14910
|
-
tabIndex: -1,
|
|
14911
|
-
children: label
|
|
14918
|
+
if (url == null) return;
|
|
14919
|
+
if (external) {
|
|
14920
|
+
window.open(url, "_blank", "noopener,noreferrer");
|
|
14921
|
+
return;
|
|
14912
14922
|
}
|
|
14913
|
-
|
|
14923
|
+
window.location.assign(url);
|
|
14924
|
+
}, [external, id, navigateTo, url]);
|
|
14925
|
+
const labelContent = url == null ? label : external ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { "data-name": "vertical-navigation-item-link", children: [
|
|
14926
|
+
label,
|
|
14927
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react9.ExternalLink, { className: "vertical-navigation-item-link-external-icon" })
|
|
14928
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { "data-name": "vertical-navigation-item-link", children: label });
|
|
14914
14929
|
if (!hasChildren) {
|
|
14915
14930
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
14916
14931
|
"li",
|
|
@@ -16009,7 +16024,7 @@ var Navigation = ({ ...props }) => {
|
|
|
16009
16024
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
16010
16025
|
IconButton,
|
|
16011
16026
|
{
|
|
16012
|
-
tooltip: translation("
|
|
16027
|
+
tooltip: translation("menu"),
|
|
16013
16028
|
coloringStyle: "text",
|
|
16014
16029
|
color: "neutral",
|
|
16015
16030
|
onClick: () => setIsMobileOpen(true),
|
|
@@ -18343,7 +18358,7 @@ var DatePicker = ({
|
|
|
18343
18358
|
Button,
|
|
18344
18359
|
{
|
|
18345
18360
|
size: "sm",
|
|
18346
|
-
|
|
18361
|
+
color: "neutral",
|
|
18347
18362
|
className: (0, import_clsx29.default)("flex-row-1 items-center cursor-pointer select-none", {
|
|
18348
18363
|
"text-disabled": displayMode !== "day"
|
|
18349
18364
|
}),
|
|
@@ -19193,6 +19208,9 @@ var DateTimeInput = (0, import_react84.forwardRef)(function DateTimeInput2({
|
|
|
19193
19208
|
const focusField = () => {
|
|
19194
19209
|
fieldRef.current?.querySelector('[data-name="date-time-segment"]')?.focus();
|
|
19195
19210
|
};
|
|
19211
|
+
const hasClear = !required && allowClear && !readOnly && !disabled && state !== null;
|
|
19212
|
+
const hasTimePicker = !readOnly;
|
|
19213
|
+
const hasActions = hasClear || hasTimePicker || actions.length > 0;
|
|
19196
19214
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { ...containerProps, className: (0, import_clsx31.default)("relative w-full", containerProps?.className), children: [
|
|
19197
19215
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
19198
19216
|
"div",
|
|
@@ -19210,6 +19228,7 @@ var DateTimeInput = (0, import_react84.forwardRef)(function DateTimeInput2({
|
|
|
19210
19228
|
className: (0, import_clsx31.default)("cursor-text", props.className),
|
|
19211
19229
|
"data-name": props["data-name"] ?? "date-time-input",
|
|
19212
19230
|
"data-value": PropsUtil.dataAttributes.bool(!!state),
|
|
19231
|
+
"data-has-actions": PropsUtil.dataAttributes.bool(hasActions),
|
|
19213
19232
|
...PropsUtil.dataAttributes.interactionStates({ disabled, readOnly, invalid, required }),
|
|
19214
19233
|
...PropsUtil.aria.interactionStates({ disabled, readOnly, invalid, required }, props),
|
|
19215
19234
|
children: [
|
|
@@ -19228,13 +19247,12 @@ var DateTimeInput = (0, import_react84.forwardRef)(function DateTimeInput2({
|
|
|
19228
19247
|
onValueChange: (next) => setState(fromZoned(next)),
|
|
19229
19248
|
onEditComplete: (next) => onEditComplete?.(fromZoned(next)),
|
|
19230
19249
|
"aria-labelledby": props["aria-labelledby"],
|
|
19231
|
-
"aria-describedby": props["aria-describedby"]
|
|
19232
|
-
className: "grow"
|
|
19250
|
+
"aria-describedby": props["aria-describedby"]
|
|
19233
19251
|
}
|
|
19234
19252
|
),
|
|
19235
19253
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex-row-1 items-center", children: [
|
|
19236
19254
|
actions,
|
|
19237
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Visibility, { isVisible:
|
|
19255
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Visibility, { isVisible: hasClear, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
19238
19256
|
IconButton,
|
|
19239
19257
|
{
|
|
19240
19258
|
tooltip: translation("clearValue"),
|
|
@@ -19248,7 +19266,7 @@ var DateTimeInput = (0, import_react84.forwardRef)(function DateTimeInput2({
|
|
|
19248
19266
|
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react22.X, { className: "size-5" })
|
|
19249
19267
|
}
|
|
19250
19268
|
) }),
|
|
19251
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Visibility, { isVisible:
|
|
19269
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Visibility, { isVisible: hasTimePicker, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
19252
19270
|
IconButton,
|
|
19253
19271
|
{
|
|
19254
19272
|
tooltip: translation("sDateTimeSelect", { datetimeMode: mode }),
|
|
@@ -20973,7 +20991,7 @@ var TableHeader = ({ isSticky = false }) => {
|
|
|
20973
20991
|
"data-name": "table-header-cell",
|
|
20974
20992
|
className: (0, import_clsx35.default)("group/table-header-cell", header.column.columnDef.meta?.className),
|
|
20975
20993
|
children: [
|
|
20976
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Visibility, { isVisible: !header.isPlaceholder, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "
|
|
20994
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Visibility, { isVisible: !header.isPlaceholder, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "table-header-cell-content", children: [
|
|
20977
20995
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Visibility, { isVisible: header.column.getCanSort(), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
20978
20996
|
TableSortButton,
|
|
20979
20997
|
{
|
|
@@ -23397,6 +23415,7 @@ var DateProperty = ({
|
|
|
23397
23415
|
onValueChange,
|
|
23398
23416
|
onEditComplete,
|
|
23399
23417
|
"data-name": "property-input",
|
|
23418
|
+
className: "flex-row-4 pr-0",
|
|
23400
23419
|
"data-invalid": PropsUtil.dataAttributes.bool(invalid)
|
|
23401
23420
|
}
|
|
23402
23421
|
)
|