@datatechsolutions/ui 3.4.0 → 3.5.1
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/astrlabe/index.js +107 -107
- package/dist/astrlabe/index.mjs +3 -3
- package/dist/astrlabe/workflow-canvas.js +3 -3
- package/dist/astrlabe/workflow-canvas.mjs +2 -2
- package/dist/{chunk-IDEM3DYF.mjs → chunk-2TBNOQ7M.mjs} +3 -3
- package/dist/{chunk-IDEM3DYF.mjs.map → chunk-2TBNOQ7M.mjs.map} +1 -1
- package/dist/{chunk-45QAUEYT.js → chunk-2UMDWOUY.js} +4 -4
- package/dist/{chunk-45QAUEYT.js.map → chunk-2UMDWOUY.js.map} +1 -1
- package/dist/{chunk-NAFWHJCM.mjs → chunk-37ZLBCJF.mjs} +6 -6
- package/dist/{chunk-NAFWHJCM.mjs.map → chunk-37ZLBCJF.mjs.map} +1 -1
- package/dist/{chunk-MO5FBVV3.js → chunk-5AVO5DJO.js} +62 -62
- package/dist/{chunk-MO5FBVV3.js.map → chunk-5AVO5DJO.js.map} +1 -1
- package/dist/{chunk-X3GW7UPN.mjs → chunk-7OZ4MVEF.mjs} +4 -4
- package/dist/{chunk-X3GW7UPN.mjs.map → chunk-7OZ4MVEF.mjs.map} +1 -1
- package/dist/{chunk-SQ4KGLBZ.mjs → chunk-CDYNTHUE.mjs} +41 -7
- package/dist/chunk-CDYNTHUE.mjs.map +1 -0
- package/dist/{chunk-ZKSDDFHG.mjs → chunk-CJGNEALB.mjs} +4 -4
- package/dist/{chunk-ZKSDDFHG.mjs.map → chunk-CJGNEALB.mjs.map} +1 -1
- package/dist/{chunk-4GDWGWHY.mjs → chunk-CP5QXRXA.mjs} +4 -4
- package/dist/{chunk-4GDWGWHY.mjs.map → chunk-CP5QXRXA.mjs.map} +1 -1
- package/dist/{chunk-SEYUYGER.mjs → chunk-EGXB3WXT.mjs} +12 -11
- package/dist/chunk-EGXB3WXT.mjs.map +1 -0
- package/dist/{chunk-UJVDI66K.js → chunk-EI6FIA45.js} +16 -16
- package/dist/{chunk-UJVDI66K.js.map → chunk-EI6FIA45.js.map} +1 -1
- package/dist/{chunk-AGGOHPMZ.mjs → chunk-EUXHJMGC.mjs} +138 -108
- package/dist/chunk-EUXHJMGC.mjs.map +1 -0
- package/dist/{chunk-M7KSEUZR.js → chunk-F5UDX6JA.js} +74 -74
- package/dist/{chunk-M7KSEUZR.js.map → chunk-F5UDX6JA.js.map} +1 -1
- package/dist/{chunk-6MBWKOPF.js → chunk-HVDDCBQ2.js} +33 -33
- package/dist/{chunk-6MBWKOPF.js.map → chunk-HVDDCBQ2.js.map} +1 -1
- package/dist/{chunk-FSBR4RCK.js → chunk-K4M4B6ME.js} +138 -108
- package/dist/chunk-K4M4B6ME.js.map +1 -0
- package/dist/{chunk-4ICEQJH4.js → chunk-KIBOX3UQ.js} +53 -53
- package/dist/{chunk-4ICEQJH4.js.map → chunk-KIBOX3UQ.js.map} +1 -1
- package/dist/{chunk-NCLZKVJK.js → chunk-KRPSTXN5.js} +9 -9
- package/dist/{chunk-NCLZKVJK.js.map → chunk-KRPSTXN5.js.map} +1 -1
- package/dist/{chunk-NVQWHJQH.mjs → chunk-L5O4NWQO.mjs} +3 -3
- package/dist/{chunk-NVQWHJQH.mjs.map → chunk-L5O4NWQO.mjs.map} +1 -1
- package/dist/{chunk-Y2AYFG4E.js → chunk-MT4FJRMD.js} +4 -4
- package/dist/{chunk-Y2AYFG4E.js.map → chunk-MT4FJRMD.js.map} +1 -1
- package/dist/{chunk-CF7GOUBQ.js → chunk-OWJIKCR2.js} +13 -13
- package/dist/{chunk-CF7GOUBQ.js.map → chunk-OWJIKCR2.js.map} +1 -1
- package/dist/{chunk-RFRXS4PC.mjs → chunk-PFHXKWFT.mjs} +3 -3
- package/dist/{chunk-RFRXS4PC.mjs.map → chunk-PFHXKWFT.mjs.map} +1 -1
- package/dist/{chunk-BW67WFHT.mjs → chunk-PI2C3S6A.mjs} +3 -3
- package/dist/{chunk-BW67WFHT.mjs.map → chunk-PI2C3S6A.mjs.map} +1 -1
- package/dist/{chunk-ERCDMBRT.js → chunk-PYQLY2RH.js} +168 -167
- package/dist/chunk-PYQLY2RH.js.map +1 -0
- package/dist/{chunk-UE2RDQIK.js → chunk-QIUVK4BI.js} +77 -77
- package/dist/{chunk-UE2RDQIK.js.map → chunk-QIUVK4BI.js.map} +1 -1
- package/dist/{chunk-RLVOG5OQ.mjs → chunk-R3Q5RXXO.mjs} +3 -3
- package/dist/{chunk-RLVOG5OQ.mjs.map → chunk-R3Q5RXXO.mjs.map} +1 -1
- package/dist/{chunk-QBFE7ABE.mjs → chunk-R6O57NTJ.mjs} +6 -6
- package/dist/{chunk-QBFE7ABE.mjs.map → chunk-R6O57NTJ.mjs.map} +1 -1
- package/dist/{chunk-TUQLZ4QD.js → chunk-RQBTLFYH.js} +5 -5
- package/dist/{chunk-TUQLZ4QD.js.map → chunk-RQBTLFYH.js.map} +1 -1
- package/dist/{chunk-YV7F7IXG.js → chunk-SFFSXC5E.js} +36 -36
- package/dist/{chunk-YV7F7IXG.js.map → chunk-SFFSXC5E.js.map} +1 -1
- package/dist/{chunk-RLLP7VQJ.js → chunk-U6XA2OYE.js} +63 -29
- package/dist/chunk-U6XA2OYE.js.map +1 -0
- package/dist/{chunk-CUWPLPVY.mjs → chunk-ULEPJXTN.mjs} +3 -3
- package/dist/{chunk-CUWPLPVY.mjs.map → chunk-ULEPJXTN.mjs.map} +1 -1
- package/dist/{chunk-PGVZKMOA.js → chunk-VMIAMBCP.js} +39 -39
- package/dist/{chunk-PGVZKMOA.js.map → chunk-VMIAMBCP.js.map} +1 -1
- package/dist/{chunk-VV6SYMPM.mjs → chunk-WKCR4KVQ.mjs} +3 -3
- package/dist/{chunk-VV6SYMPM.mjs.map → chunk-WKCR4KVQ.mjs.map} +1 -1
- package/dist/{chunk-AL73YAV4.mjs → chunk-YV2SE5LS.mjs} +3 -3
- package/dist/{chunk-AL73YAV4.mjs.map → chunk-YV2SE5LS.mjs.map} +1 -1
- package/dist/index.d.mts +63 -16
- package/dist/index.d.ts +63 -16
- package/dist/index.js +704 -704
- package/dist/index.mjs +1 -1
- package/dist/platform/admin/index.js +10 -10
- package/dist/platform/admin/index.mjs +4 -4
- package/dist/platform/agents-workspace.js +6 -6
- package/dist/platform/agents-workspace.mjs +5 -5
- package/dist/platform/app-shell.js +3 -3
- package/dist/platform/app-shell.mjs +2 -2
- package/dist/platform/auth/index.js +27 -27
- package/dist/platform/auth/index.mjs +4 -4
- package/dist/platform/billing/index.js +3 -3
- package/dist/platform/billing/index.mjs +2 -2
- package/dist/platform/impersonation/index.js +3 -3
- package/dist/platform/impersonation/index.mjs +2 -2
- package/dist/platform/index.d.mts +1 -1
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.js +82 -82
- package/dist/platform/index.mjs +18 -18
- package/dist/platform/pages/index.d.mts +8 -0
- package/dist/platform/pages/index.d.ts +8 -0
- package/dist/platform/pages/index.js +317 -201
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +143 -27
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/settings/index.js +7 -7
- package/dist/platform/settings/index.mjs +6 -6
- package/dist/platform/workflow-canvas-shell.js +4 -4
- package/dist/platform/workflow-canvas-shell.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-AGGOHPMZ.mjs.map +0 -1
- package/dist/chunk-ERCDMBRT.js.map +0 -1
- package/dist/chunk-FSBR4RCK.js.map +0 -1
- package/dist/chunk-RLLP7VQJ.js.map +0 -1
- package/dist/chunk-SEYUYGER.mjs.map +0 -1
- package/dist/chunk-SQ4KGLBZ.mjs.map +0 -1
|
@@ -879,7 +879,6 @@ function HeroBlock({
|
|
|
879
879
|
titlePlaceholder,
|
|
880
880
|
subtitle,
|
|
881
881
|
icon,
|
|
882
|
-
iconShape = "square",
|
|
883
882
|
iconBackground = "glass",
|
|
884
883
|
gradient,
|
|
885
884
|
iconSize = "md",
|
|
@@ -897,13 +896,13 @@ function HeroBlock({
|
|
|
897
896
|
const subtitleClass = KIND_SUBTITLE_CLASSES[kind];
|
|
898
897
|
const eyebrowClass = KIND_EYEBROW_CLASSES[kind];
|
|
899
898
|
const iconGapClass = KIND_ICON_GAP[kind];
|
|
900
|
-
const radiusClass =
|
|
899
|
+
const radiusClass = iconSize === "sm" ? "rounded-xl" : "rounded-2xl";
|
|
901
900
|
const titleToneClass = tone === "dark" ? "text-white" : "text-slate-950 dark:text-white";
|
|
902
901
|
const subtitleToneClass = tone === "dark" ? "text-white/75" : "text-slate-600 dark:text-slate-300";
|
|
903
902
|
const eyebrowToneClass = tone === "dark" ? "text-white/75" : "text-slate-600 dark:text-slate-300";
|
|
904
903
|
const wrapIcon = (node) => {
|
|
905
904
|
if (iconBackground === "none") {
|
|
906
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: `inline-flex shrink-0 items-center justify-center ${sizeClass}
|
|
905
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: `inline-flex shrink-0 items-center justify-center ${sizeClass}`, children: node });
|
|
907
906
|
}
|
|
908
907
|
if (iconBackground === "gradient" && gradient) {
|
|
909
908
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: `inline-flex shrink-0 items-center justify-center ${sizeClass} ${radiusClass} bg-gradient-to-br ${gradient} shadow-lg`, children: node });
|
|
@@ -1011,9 +1010,16 @@ function SectionCard({
|
|
|
1011
1010
|
collapsible = false,
|
|
1012
1011
|
defaultOpen = true,
|
|
1013
1012
|
open: controlledOpen,
|
|
1014
|
-
onOpenChange
|
|
1013
|
+
onOpenChange,
|
|
1014
|
+
accentGradient,
|
|
1015
|
+
actions,
|
|
1016
|
+
toolbar,
|
|
1017
|
+
badges,
|
|
1018
|
+
kind = "section",
|
|
1019
|
+
headingLevel = "h3",
|
|
1020
|
+
eyebrowExtra
|
|
1015
1021
|
}) {
|
|
1016
|
-
const { icon, title, subtitle, gradient = "from-indigo-500 to-purple-600", rightContent } = header;
|
|
1022
|
+
const { icon, eyebrow, title, subtitle, gradient = "from-indigo-500 to-purple-600", rightContent } = header;
|
|
1017
1023
|
const [internalOpen, setInternalOpen] = React12.useState(defaultOpen);
|
|
1018
1024
|
const isOpen = controlledOpen ?? internalOpen;
|
|
1019
1025
|
const setOpen = (next) => {
|
|
@@ -1030,18 +1036,30 @@ function SectionCard({
|
|
|
1030
1036
|
"aria-hidden": "true"
|
|
1031
1037
|
}
|
|
1032
1038
|
) : null;
|
|
1033
|
-
const
|
|
1039
|
+
const hasRightSlot = rightContent || actions || chevron;
|
|
1040
|
+
const headerRight = hasRightSlot ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1034
1041
|
rightContent,
|
|
1042
|
+
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: actions }),
|
|
1035
1043
|
chevron
|
|
1036
|
-
] }) :
|
|
1044
|
+
] }) : void 0;
|
|
1045
|
+
const iconSize = kind === "section" ? "sm" : "md";
|
|
1046
|
+
const sectionPad = "px-4 sm:px-6 py-4";
|
|
1047
|
+
const surfacePad = "px-5 sm:px-8 py-5";
|
|
1048
|
+
const bannerPad = "px-5 sm:px-8 py-6 sm:py-8";
|
|
1049
|
+
const displayPad = "px-6 sm:px-10 py-8 sm:py-12";
|
|
1050
|
+
const headerPadCls = kind === "display" ? displayPad : kind === "banner" ? bannerPad : kind === "surface" ? surfacePad : sectionPad;
|
|
1051
|
+
const bodyPadCls = kind === "display" ? "p-6 sm:p-10" : kind === "banner" ? "p-5 sm:p-8" : kind === "surface" ? "p-5 sm:p-8" : "p-4 sm:p-6";
|
|
1052
|
+
const slotXCls = kind === "display" ? "px-6 sm:px-10" : kind === "banner" ? "px-5 sm:px-8" : kind === "surface" ? "px-5 sm:px-8" : "px-4 sm:px-6";
|
|
1053
|
+
const renderedEyebrow = eyebrow && eyebrowExtra ? `${eyebrow}` : eyebrow;
|
|
1037
1054
|
const headerContent = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1038
1055
|
HeroBlock,
|
|
1039
1056
|
{
|
|
1040
|
-
headingLevel
|
|
1041
|
-
kind
|
|
1042
|
-
iconSize
|
|
1057
|
+
headingLevel,
|
|
1058
|
+
kind,
|
|
1059
|
+
iconSize,
|
|
1043
1060
|
iconBackground: "glass",
|
|
1044
1061
|
icon,
|
|
1062
|
+
eyebrow: renderedEyebrow,
|
|
1045
1063
|
title,
|
|
1046
1064
|
subtitle,
|
|
1047
1065
|
rightContent: headerRight,
|
|
@@ -1049,6 +1067,13 @@ function SectionCard({
|
|
|
1049
1067
|
}
|
|
1050
1068
|
);
|
|
1051
1069
|
return /* @__PURE__ */ jsxRuntime.jsxs(Card, { variant, className, children: [
|
|
1070
|
+
accentGradient && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1071
|
+
"div",
|
|
1072
|
+
{
|
|
1073
|
+
"aria-hidden": "true",
|
|
1074
|
+
className: `h-1.5 w-full bg-gradient-to-r ${accentGradient}`
|
|
1075
|
+
}
|
|
1076
|
+
),
|
|
1052
1077
|
collapsible ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1053
1078
|
"button",
|
|
1054
1079
|
{
|
|
@@ -1056,10 +1081,12 @@ function SectionCard({
|
|
|
1056
1081
|
onClick: () => setOpen(!isOpen),
|
|
1057
1082
|
"aria-expanded": isOpen,
|
|
1058
1083
|
"aria-controls": bodyId,
|
|
1059
|
-
className: `block w-full cursor-pointer
|
|
1084
|
+
className: `block w-full cursor-pointer text-left transition-colors hover:bg-white/30 dark:hover:bg-white/[0.04] focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/70 focus-visible:ring-inset ${headerPadCls} ${isOpen ? "border-b liquid-divider" : ""}`,
|
|
1060
1085
|
children: headerContent
|
|
1061
1086
|
}
|
|
1062
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1087
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${headerPadCls} border-b liquid-divider`, children: headerContent }),
|
|
1088
|
+
toolbar && (!collapsible || isOpen) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${slotXCls} pt-5`, children: toolbar }),
|
|
1089
|
+
badges && (!collapsible || isOpen) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${slotXCls} pt-4 flex flex-wrap items-center gap-2`, children: badges }),
|
|
1063
1090
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1064
1091
|
"div",
|
|
1065
1092
|
{
|
|
@@ -1067,7 +1094,7 @@ function SectionCard({
|
|
|
1067
1094
|
role: collapsible ? "region" : void 0,
|
|
1068
1095
|
"aria-labelledby": collapsible ? headingId : void 0,
|
|
1069
1096
|
hidden: collapsible && !isOpen,
|
|
1070
|
-
className: padded ?
|
|
1097
|
+
className: padded ? bodyPadCls : "",
|
|
1071
1098
|
children
|
|
1072
1099
|
}
|
|
1073
1100
|
)
|
|
@@ -1602,7 +1629,7 @@ function WheelPicker({
|
|
|
1602
1629
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1603
1630
|
"div",
|
|
1604
1631
|
{
|
|
1605
|
-
className: "absolute inset-x-4 z-0 rounded-lg bg-
|
|
1632
|
+
className: "absolute inset-x-4 z-0 rounded-lg bg-white/55 dark:bg-white/[0.08] border border-white/40 dark:border-white/10 backdrop-blur-md shadow-[inset_0_1px_1.5px_rgba(255,255,255,0.45)]",
|
|
1606
1633
|
style: {
|
|
1607
1634
|
top: (containerHeight - itemHeight) / 2,
|
|
1608
1635
|
height: itemHeight
|
|
@@ -3665,48 +3692,35 @@ function HeroSection({
|
|
|
3665
3692
|
labelExtra,
|
|
3666
3693
|
children
|
|
3667
3694
|
}) {
|
|
3695
|
+
const subtitleIsString = typeof subtitle === "string";
|
|
3668
3696
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3669
|
-
|
|
3697
|
+
SectionCard,
|
|
3670
3698
|
{
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3699
|
+
kind: "banner",
|
|
3700
|
+
headingLevel: "h1",
|
|
3701
|
+
variant: "default",
|
|
3702
|
+
padded: true,
|
|
3703
|
+
accentGradient: gradient,
|
|
3704
|
+
actions,
|
|
3705
|
+
toolbar,
|
|
3706
|
+
badges,
|
|
3707
|
+
eyebrowExtra: labelExtra,
|
|
3708
|
+
header: {
|
|
3709
|
+
icon,
|
|
3710
|
+
eyebrow: label,
|
|
3711
|
+
title,
|
|
3712
|
+
subtitle: subtitleIsString ? subtitle : void 0
|
|
3713
|
+
},
|
|
3674
3714
|
children: [
|
|
3675
|
-
|
|
3676
|
-
"
|
|
3715
|
+
!subtitleIsString && subtitle && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3716
|
+
"p",
|
|
3677
3717
|
{
|
|
3678
|
-
"
|
|
3679
|
-
className:
|
|
3718
|
+
"data-testid": "hero-subtitle",
|
|
3719
|
+
className: "max-w-xl text-sm text-slate-600 dark:text-white/75 sm:text-lg",
|
|
3720
|
+
children: subtitle
|
|
3680
3721
|
}
|
|
3681
3722
|
),
|
|
3682
|
-
/* @__PURE__ */ jsxRuntime.
|
|
3683
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3684
|
-
HeroBlock,
|
|
3685
|
-
{
|
|
3686
|
-
headingLevel: "h1",
|
|
3687
|
-
kind: "banner",
|
|
3688
|
-
eyebrow: label,
|
|
3689
|
-
title,
|
|
3690
|
-
subtitle: typeof subtitle === "string" ? subtitle : void 0,
|
|
3691
|
-
icon,
|
|
3692
|
-
iconBackground: "glass",
|
|
3693
|
-
iconSize: "md",
|
|
3694
|
-
rightContent: actions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3", children: actions }) : void 0
|
|
3695
|
-
}
|
|
3696
|
-
),
|
|
3697
|
-
typeof subtitle !== "string" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3698
|
-
"p",
|
|
3699
|
-
{
|
|
3700
|
-
"data-testid": "hero-subtitle",
|
|
3701
|
-
className: "mt-2 max-w-xl text-sm text-slate-600 dark:text-white/75 sm:mt-3 sm:text-lg",
|
|
3702
|
-
children: subtitle
|
|
3703
|
-
}
|
|
3704
|
-
),
|
|
3705
|
-
labelExtra && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-slate-500", children: labelExtra }),
|
|
3706
|
-
toolbar && /* @__PURE__ */ jsxRuntime.jsx("div", { "data-testid": "hero-toolbar", className: "mt-4", children: toolbar }),
|
|
3707
|
-
badges && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-6 flex flex-wrap items-center gap-4", children: badges }),
|
|
3708
|
-
children
|
|
3709
|
-
] })
|
|
3723
|
+
children && /* @__PURE__ */ jsxRuntime.jsx("div", { className: !subtitleIsString && subtitle ? "mt-5" : "", children })
|
|
3710
3724
|
]
|
|
3711
3725
|
}
|
|
3712
3726
|
);
|
|
@@ -3714,9 +3728,14 @@ function HeroSection({
|
|
|
3714
3728
|
var DEFAULT_STYLE_CONFIG = {
|
|
3715
3729
|
default: {
|
|
3716
3730
|
icon: HeroIcons.MapIcon,
|
|
3717
|
-
className: "bg-
|
|
3731
|
+
className: "bg-slate-500/15 text-slate-700 dark:text-slate-200"
|
|
3718
3732
|
}
|
|
3719
3733
|
};
|
|
3734
|
+
var CRYSTAL_STYLE = {
|
|
3735
|
+
backdropFilter: "blur(12px) saturate(1.5)",
|
|
3736
|
+
WebkitBackdropFilter: "blur(12px) saturate(1.5)",
|
|
3737
|
+
boxShadow: "inset 0 1px 1.5px rgba(255,255,255,0.45), 0 1px 3px -1px rgba(15,23,42,0.12)"
|
|
3738
|
+
};
|
|
3720
3739
|
function ActiveFilterChips({
|
|
3721
3740
|
filters,
|
|
3722
3741
|
onRemoveFilter,
|
|
@@ -3733,19 +3752,23 @@ function ActiveFilterChips({
|
|
|
3733
3752
|
animate: { opacity: 1, scale: 1 },
|
|
3734
3753
|
exit: { opacity: 0, scale: 0.8 },
|
|
3735
3754
|
layout: true,
|
|
3736
|
-
|
|
3755
|
+
style: CRYSTAL_STYLE,
|
|
3756
|
+
className: `inline-flex items-center gap-1.5 rounded-full border border-current/20 px-3 py-1 text-xs font-semibold ${colorClass}`,
|
|
3737
3757
|
children: [
|
|
3738
|
-
/* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "h-
|
|
3758
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "h-3.5 w-3.5", "aria-hidden": true }),
|
|
3739
3759
|
filter.label,
|
|
3740
3760
|
onRemoveFilter ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3741
3761
|
"button",
|
|
3742
3762
|
{
|
|
3743
|
-
|
|
3763
|
+
type: "button",
|
|
3764
|
+
"aria-label": `remover ${filter.label}`,
|
|
3765
|
+
onClick: (event) => {
|
|
3766
|
+
event.stopPropagation();
|
|
3744
3767
|
chunkUZ3CMNUJ_js.triggerHaptic("light");
|
|
3745
3768
|
onRemoveFilter(filter);
|
|
3746
3769
|
},
|
|
3747
|
-
className: "ml-
|
|
3748
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.XMarkIcon, { className: "h-3
|
|
3770
|
+
className: "ml-0.5 inline-flex h-4 w-4 shrink-0 cursor-pointer items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/70",
|
|
3771
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.XMarkIcon, { className: "h-3 w-3" })
|
|
3749
3772
|
}
|
|
3750
3773
|
) : null
|
|
3751
3774
|
]
|
|
@@ -4575,8 +4598,8 @@ function SegmentedControl({
|
|
|
4575
4598
|
"data-testid": "segmented-control",
|
|
4576
4599
|
onKeyDown: handleKeyDown,
|
|
4577
4600
|
className: `
|
|
4578
|
-
relative inline-flex items-center rounded-xl
|
|
4579
|
-
|
|
4601
|
+
liquid-surface relative inline-flex items-center rounded-xl
|
|
4602
|
+
focus-within:ring-2 focus-within:ring-indigo-500/70 focus-within:ring-offset-1
|
|
4580
4603
|
${styles2.container}
|
|
4581
4604
|
${fullWidth ? "w-full" : ""}
|
|
4582
4605
|
${disabled ? "opacity-50 pointer-events-none" : ""}
|
|
@@ -4585,7 +4608,13 @@ function SegmentedControl({
|
|
|
4585
4608
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4586
4609
|
framerMotion.motion.div,
|
|
4587
4610
|
{
|
|
4588
|
-
|
|
4611
|
+
"aria-hidden": true,
|
|
4612
|
+
className: "absolute top-1 bottom-1 rounded-lg bg-white/75 dark:bg-white/[0.14] border border-white/60 dark:border-white/15",
|
|
4613
|
+
style: {
|
|
4614
|
+
backdropFilter: "blur(12px) saturate(1.5)",
|
|
4615
|
+
WebkitBackdropFilter: "blur(12px) saturate(1.5)",
|
|
4616
|
+
boxShadow: "inset 0 1px 1.5px rgba(255,255,255,0.55), 0 1px 3px -1px rgba(15,23,42,0.12)"
|
|
4617
|
+
},
|
|
4589
4618
|
initial: false,
|
|
4590
4619
|
animate: {
|
|
4591
4620
|
left: indicatorStyle.left,
|
|
@@ -4608,10 +4637,11 @@ function SegmentedControl({
|
|
|
4608
4637
|
onClick: () => handleSelect(segment.value),
|
|
4609
4638
|
className: `
|
|
4610
4639
|
relative z-10 flex items-center justify-center gap-1.5
|
|
4611
|
-
font-
|
|
4640
|
+
font-semibold rounded-lg transition-colors duration-150
|
|
4641
|
+
focus:outline-none
|
|
4612
4642
|
${styles2.segment}
|
|
4613
4643
|
${fullWidth ? "flex-1" : ""}
|
|
4614
|
-
${isSelected ? "text-slate-
|
|
4644
|
+
${isSelected ? "text-slate-950 dark:text-white" : "text-slate-700 dark:text-slate-300 hover:text-slate-900 dark:hover:text-white"}
|
|
4615
4645
|
`,
|
|
4616
4646
|
children: [
|
|
4617
4647
|
segment.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: segment.icon }),
|
|
@@ -7396,12 +7426,12 @@ function ContextMenu({
|
|
|
7396
7426
|
"div",
|
|
7397
7427
|
{
|
|
7398
7428
|
ref: menuRef,
|
|
7399
|
-
className: `fixed z-[9999] ${minWidthClass} rounded-xl
|
|
7429
|
+
className: `liquid-surface-strong fixed z-[9999] ${minWidthClass} rounded-xl py-1 shadow-lg`,
|
|
7400
7430
|
style: { left: position.x, top: position.y },
|
|
7401
7431
|
"data-testid": testId,
|
|
7402
7432
|
children: entries.map((entry) => {
|
|
7403
7433
|
if (entry.type === "divider") {
|
|
7404
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-1 border-t
|
|
7434
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-1 border-t liquid-divider" }, entry.key);
|
|
7405
7435
|
}
|
|
7406
7436
|
const IconComponent = entry.icon;
|
|
7407
7437
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -7410,7 +7440,7 @@ function ContextMenu({
|
|
|
7410
7440
|
type: "button",
|
|
7411
7441
|
onClick: entry.onClick,
|
|
7412
7442
|
disabled: entry.disabled,
|
|
7413
|
-
className: `flex w-full items-center gap-2.5 px-3 py-2 text-left text-sm transition-colors duration-150 ${entry.disabled ? "cursor-not-allowed text-
|
|
7443
|
+
className: `flex w-full items-center gap-2.5 px-3 py-2 text-left text-sm transition-colors duration-150 focus:outline-none focus-visible:bg-indigo-500/10 focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-indigo-500/40 ${entry.disabled ? "cursor-not-allowed text-slate-400 dark:text-slate-600" : entry.danger ? "text-red-600 hover:bg-red-500/10 dark:text-red-400 dark:hover:bg-red-500/15" : "text-slate-700 hover:bg-white/45 dark:text-slate-200 dark:hover:bg-white/[0.07]"}`,
|
|
7414
7444
|
"data-testid": entry.testId,
|
|
7415
7445
|
children: [
|
|
7416
7446
|
IconComponent ? /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "h-4 w-4" }) : null,
|
|
@@ -7786,7 +7816,7 @@ function TimePicker({
|
|
|
7786
7816
|
"button",
|
|
7787
7817
|
{
|
|
7788
7818
|
type: "button",
|
|
7789
|
-
className: `flex items-center gap-2 text-sm
|
|
7819
|
+
className: `liquid-surface flex items-center gap-2 text-sm rounded-xl px-4 h-[44px] text-slate-900 dark:text-white hover:bg-white/30 dark:hover:bg-white/[0.06] focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/70 focus-visible:ring-offset-1 transition-colors duration-200 ${className}`,
|
|
7790
7820
|
children: [
|
|
7791
7821
|
/* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ClockIcon, { className: "h-4 w-4 text-indigo-500" }),
|
|
7792
7822
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "whitespace-nowrap font-mono", children: displayText })
|
|
@@ -7796,18 +7826,18 @@ function TimePicker({
|
|
|
7796
7826
|
/* @__PURE__ */ jsxRuntime.jsx(Popover__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7797
7827
|
Popover__namespace.Content,
|
|
7798
7828
|
{
|
|
7799
|
-
className: "z-50 w-[220px] rounded-2xl
|
|
7829
|
+
className: "liquid-surface-strong z-50 w-[220px] rounded-2xl p-5 shadow-xl animate-in fade-in-0 zoom-in-95",
|
|
7800
7830
|
sideOffset: 8,
|
|
7801
7831
|
align: "start",
|
|
7802
7832
|
children: [
|
|
7803
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-medium text-
|
|
7833
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-medium text-slate-600 dark:text-slate-300 mb-3 text-center uppercase tracking-wide", children: t("setTime") }),
|
|
7804
7834
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-2", children: [
|
|
7805
7835
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
7806
7836
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7807
7837
|
"label",
|
|
7808
7838
|
{
|
|
7809
7839
|
htmlFor: "time-picker-hours",
|
|
7810
|
-
className: "text-[10px] font-medium text-
|
|
7840
|
+
className: "text-[10px] font-medium text-slate-500 dark:text-slate-400 mb-1 uppercase",
|
|
7811
7841
|
children: t("hours")
|
|
7812
7842
|
}
|
|
7813
7843
|
),
|
|
@@ -7823,17 +7853,17 @@ function TimePicker({
|
|
|
7823
7853
|
onChange: handleHoursChange,
|
|
7824
7854
|
onKeyDown: handleKeyDown,
|
|
7825
7855
|
"aria-label": t("hours"),
|
|
7826
|
-
className: "w-14 h-14 text-center text-2xl font-semibold rounded-xl bg-
|
|
7856
|
+
className: "w-14 h-14 text-center text-2xl font-semibold rounded-xl bg-white/60 dark:bg-white/[0.08] text-slate-900 dark:text-white border border-white/40 dark:border-white/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/70 focus-visible:ring-offset-1 transition-colors duration-200 backdrop-blur-md"
|
|
7827
7857
|
}
|
|
7828
7858
|
)
|
|
7829
7859
|
] }),
|
|
7830
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-2xl font-bold text-
|
|
7860
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-2xl font-bold text-slate-400 dark:text-slate-500 mt-4", children: ":" }),
|
|
7831
7861
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
7832
7862
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7833
7863
|
"label",
|
|
7834
7864
|
{
|
|
7835
7865
|
htmlFor: "time-picker-minutes",
|
|
7836
|
-
className: "text-[10px] font-medium text-
|
|
7866
|
+
className: "text-[10px] font-medium text-slate-500 dark:text-slate-400 mb-1 uppercase",
|
|
7837
7867
|
children: t("minutes")
|
|
7838
7868
|
}
|
|
7839
7869
|
),
|
|
@@ -7848,7 +7878,7 @@ function TimePicker({
|
|
|
7848
7878
|
onChange: handleMinutesChange,
|
|
7849
7879
|
onKeyDown: handleKeyDown,
|
|
7850
7880
|
"aria-label": t("minutes"),
|
|
7851
|
-
className: "w-14 h-14 text-center text-2xl font-semibold rounded-xl bg-
|
|
7881
|
+
className: "w-14 h-14 text-center text-2xl font-semibold rounded-xl bg-white/60 dark:bg-white/[0.08] text-slate-900 dark:text-white border border-white/40 dark:border-white/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/70 focus-visible:ring-offset-1 transition-colors duration-200 backdrop-blur-md"
|
|
7852
7882
|
}
|
|
7853
7883
|
)
|
|
7854
7884
|
] })
|
|
@@ -7861,8 +7891,8 @@ function TimePicker({
|
|
|
7861
7891
|
disabled: isFuture,
|
|
7862
7892
|
onClick: handleConfirm,
|
|
7863
7893
|
className: `
|
|
7864
|
-
mt-4 w-full flex items-center justify-center gap-2 h-10 rounded-xl text-sm font-medium transition-colors duration-200
|
|
7865
|
-
${isFuture ? "bg-
|
|
7894
|
+
mt-4 w-full flex items-center justify-center gap-2 h-10 rounded-xl text-sm font-medium transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/70 focus-visible:ring-offset-1
|
|
7895
|
+
${isFuture ? "bg-white/40 dark:bg-white/[0.06] text-slate-400 dark:text-slate-500 cursor-not-allowed border border-white/30 dark:border-white/10" : "bg-indigo-500 text-white hover:bg-indigo-600 active:bg-indigo-700 shadow-[inset_0_1px_1.5px_rgba(255,255,255,0.4)]"}
|
|
7866
7896
|
`,
|
|
7867
7897
|
children: [
|
|
7868
7898
|
/* @__PURE__ */ jsxRuntime.jsx(HeroIcons.CheckIcon, { className: "h-4 w-4" }),
|
|
@@ -7870,7 +7900,7 @@ function TimePicker({
|
|
|
7870
7900
|
]
|
|
7871
7901
|
}
|
|
7872
7902
|
),
|
|
7873
|
-
/* @__PURE__ */ jsxRuntime.jsx(Popover__namespace.Arrow, { className: "fill-white/
|
|
7903
|
+
/* @__PURE__ */ jsxRuntime.jsx(Popover__namespace.Arrow, { className: "fill-white/85 dark:fill-slate-900/85" })
|
|
7874
7904
|
]
|
|
7875
7905
|
}
|
|
7876
7906
|
) })
|
|
@@ -8425,11 +8455,11 @@ function DetailsPopover({
|
|
|
8425
8455
|
/* @__PURE__ */ jsxRuntime.jsx(Popover__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8426
8456
|
Popover__namespace.Content,
|
|
8427
8457
|
{
|
|
8428
|
-
className: "z-50 w-80 overflow-hidden rounded-xl
|
|
8458
|
+
className: "liquid-surface-strong z-50 w-80 overflow-hidden rounded-xl shadow-xl animate-in fade-in-0 zoom-in-95",
|
|
8429
8459
|
sideOffset: 5,
|
|
8430
8460
|
align: "center",
|
|
8431
8461
|
children: [
|
|
8432
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `border-b
|
|
8462
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `border-b liquid-divider bg-gradient-to-r px-4 py-3 ${headerClassName}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
8433
8463
|
headerIcon,
|
|
8434
8464
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: headerTitle })
|
|
8435
8465
|
] }) }),
|
|
@@ -8437,40 +8467,40 @@ function DetailsPopover({
|
|
|
8437
8467
|
actor ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
8438
8468
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-full bg-gradient-to-br from-indigo-500 to-purple-600 text-sm font-bold text-white shadow-xs", children: actor.avatarText }),
|
|
8439
8469
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
8440
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-
|
|
8441
|
-
actor.secondaryText ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-
|
|
8470
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-slate-900 dark:text-white", children: actor.primaryText }),
|
|
8471
|
+
actor.secondaryText ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-slate-500 dark:text-slate-400", children: actor.secondaryText }) : null
|
|
8442
8472
|
] })
|
|
8443
8473
|
] }) : null,
|
|
8444
8474
|
timestamp ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-sm", children: [
|
|
8445
8475
|
timestampIcon,
|
|
8446
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
8476
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-slate-600 dark:text-slate-300", children: timestamp })
|
|
8447
8477
|
] }) : null,
|
|
8448
|
-
comparison ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-t
|
|
8478
|
+
comparison ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-t liquid-divider pt-2", children: [
|
|
8449
8479
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center gap-2", children: [
|
|
8450
8480
|
comparison.icon,
|
|
8451
8481
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-medium uppercase tracking-wider text-amber-600 dark:text-amber-400", children: comparison.label })
|
|
8452
8482
|
] }),
|
|
8453
8483
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between text-sm", children: [
|
|
8454
8484
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
8455
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-
|
|
8456
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium text-
|
|
8485
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-slate-500 dark:text-slate-400", children: comparison.fromLabel }),
|
|
8486
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium text-slate-400 line-through", children: comparison.fromValue })
|
|
8457
8487
|
] }),
|
|
8458
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-2xl text-
|
|
8488
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-2xl text-slate-300 dark:text-slate-600", children: "\u2192" }),
|
|
8459
8489
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
8460
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-
|
|
8490
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-slate-500 dark:text-slate-400", children: comparison.toLabel }),
|
|
8461
8491
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-bold text-emerald-600 dark:text-emerald-400", children: comparison.toValue })
|
|
8462
8492
|
] })
|
|
8463
8493
|
] })
|
|
8464
8494
|
] }) : null,
|
|
8465
|
-
note ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t
|
|
8495
|
+
note ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t liquid-divider pt-2", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-2", children: [
|
|
8466
8496
|
note.icon,
|
|
8467
8497
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
8468
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-1 text-xs font-medium text-
|
|
8469
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
8498
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-1 text-xs font-medium text-slate-500 dark:text-slate-400", children: note.label }),
|
|
8499
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-700 dark:text-slate-300", children: note.value })
|
|
8470
8500
|
] })
|
|
8471
8501
|
] }) }) : null
|
|
8472
8502
|
] }),
|
|
8473
|
-
/* @__PURE__ */ jsxRuntime.jsx(Popover__namespace.Arrow, { className: "fill-white dark:fill-
|
|
8503
|
+
/* @__PURE__ */ jsxRuntime.jsx(Popover__namespace.Arrow, { className: "fill-white/85 dark:fill-slate-900/85" })
|
|
8474
8504
|
]
|
|
8475
8505
|
}
|
|
8476
8506
|
) })
|
|
@@ -10052,7 +10082,7 @@ var sizes3 = {
|
|
|
10052
10082
|
md: { container: "px-3 py-1 text-sm gap-1.5", icon: "h-4 w-4", remove: "h-4 w-4 -mr-1" },
|
|
10053
10083
|
lg: { container: "px-3.5 py-1.5 text-sm gap-2", icon: "h-4 w-4", remove: "h-4 w-4 -mr-1" }
|
|
10054
10084
|
};
|
|
10055
|
-
var
|
|
10085
|
+
var CRYSTAL_STYLE2 = {
|
|
10056
10086
|
backdropFilter: "blur(12px) saturate(1.5)",
|
|
10057
10087
|
WebkitBackdropFilter: "blur(12px) saturate(1.5)",
|
|
10058
10088
|
boxShadow: "inset 0 1px 1.5px rgba(255,255,255,0.45), 0 1px 3px -1px rgba(15,23,42,0.12)"
|
|
@@ -10087,7 +10117,7 @@ function Badge({
|
|
|
10087
10117
|
type: "button",
|
|
10088
10118
|
"data-testid": "badge",
|
|
10089
10119
|
onClick,
|
|
10090
|
-
style:
|
|
10120
|
+
style: CRYSTAL_STYLE2,
|
|
10091
10121
|
...liveProps,
|
|
10092
10122
|
className: clsx__default.default(
|
|
10093
10123
|
base,
|
|
@@ -10108,7 +10138,7 @@ function Badge({
|
|
|
10108
10138
|
"data-testid": "badge",
|
|
10109
10139
|
...props,
|
|
10110
10140
|
...liveProps,
|
|
10111
|
-
style:
|
|
10141
|
+
style: CRYSTAL_STYLE2,
|
|
10112
10142
|
className: clsx__default.default(base, "pr-1"),
|
|
10113
10143
|
children: [
|
|
10114
10144
|
icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx__default.default("shrink-0", sz.icon), "aria-hidden": true, children: icon }),
|
|
@@ -10134,7 +10164,7 @@ function Badge({
|
|
|
10134
10164
|
}
|
|
10135
10165
|
);
|
|
10136
10166
|
}
|
|
10137
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("span", { "data-testid": "badge", ...props, ...liveProps, style:
|
|
10167
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("span", { "data-testid": "badge", ...props, ...liveProps, style: CRYSTAL_STYLE2, className: base, children: [
|
|
10138
10168
|
icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx__default.default("shrink-0", sz.icon), "aria-hidden": true, children: icon }),
|
|
10139
10169
|
children
|
|
10140
10170
|
] });
|
|
@@ -10737,7 +10767,7 @@ function MonthPicker({
|
|
|
10737
10767
|
"button",
|
|
10738
10768
|
{
|
|
10739
10769
|
type: "button",
|
|
10740
|
-
className: `${noBorder ? "flex items-center justify-center gap-2 text-sm bg-transparent px-4 h-full min-h-[52px] text-
|
|
10770
|
+
className: `${noBorder ? "flex items-center justify-center gap-2 text-sm bg-transparent px-4 h-full min-h-[52px] text-slate-900 dark:text-white hover:bg-white/30 dark:hover:bg-white/[0.06] focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/70 focus-visible:ring-offset-1 transition-all duration-200 active:scale-[0.985]" : "liquid-surface flex items-center justify-center gap-2 text-sm rounded-xl px-4 h-[52px] text-slate-900 dark:text-white hover:bg-white/30 dark:hover:bg-white/[0.06] focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/70 focus-visible:ring-offset-1 transition-all duration-200 active:scale-[0.985]"} ${triggerClassName}`.trim(),
|
|
10741
10771
|
children: triggerContent ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
10742
10772
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CalendarIcon, { className: "h-4 w-4 text-indigo-500" }),
|
|
10743
10773
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "capitalize whitespace-nowrap", children: displayValue })
|
|
@@ -10747,7 +10777,7 @@ function MonthPicker({
|
|
|
10747
10777
|
/* @__PURE__ */ jsxRuntime.jsx(Popover__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10748
10778
|
Popover__namespace.Content,
|
|
10749
10779
|
{
|
|
10750
|
-
className: `z-50 w-64 rounded-xl
|
|
10780
|
+
className: `liquid-surface-strong z-50 w-64 rounded-xl p-4 shadow-xl animate-in fade-in-0 zoom-in-95 ${contentClassName}`.trim(),
|
|
10751
10781
|
sideOffset: 5,
|
|
10752
10782
|
side,
|
|
10753
10783
|
avoidCollisions,
|
|
@@ -10760,19 +10790,19 @@ function MonthPicker({
|
|
|
10760
10790
|
type: "button",
|
|
10761
10791
|
onClick: () => setViewYear((y) => y - 1),
|
|
10762
10792
|
disabled: !canGoPrev,
|
|
10763
|
-
className: "p-1.5 rounded-lg hover:bg-
|
|
10764
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeftIcon, { className: "h-5 w-5 text-
|
|
10793
|
+
className: "p-1.5 rounded-lg hover:bg-white/40 dark:hover:bg-white/[0.08] disabled:opacity-30 disabled:cursor-not-allowed transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/70 focus-visible:ring-offset-1",
|
|
10794
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeftIcon, { className: "h-5 w-5 text-slate-500 dark:text-slate-400" })
|
|
10765
10795
|
}
|
|
10766
10796
|
),
|
|
10767
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-
|
|
10797
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-slate-900 dark:text-white text-lg", children: viewYear }),
|
|
10768
10798
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10769
10799
|
"button",
|
|
10770
10800
|
{
|
|
10771
10801
|
type: "button",
|
|
10772
10802
|
onClick: () => setViewYear((y) => y + 1),
|
|
10773
10803
|
disabled: !canGoNext,
|
|
10774
|
-
className: "p-1.5 rounded-lg hover:bg-
|
|
10775
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "h-5 w-5 text-
|
|
10804
|
+
className: "p-1.5 rounded-lg hover:bg-white/40 dark:hover:bg-white/[0.08] disabled:opacity-30 disabled:cursor-not-allowed transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/70 focus-visible:ring-offset-1",
|
|
10805
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "h-5 w-5 text-slate-500 dark:text-slate-400" })
|
|
10776
10806
|
}
|
|
10777
10807
|
)
|
|
10778
10808
|
] }),
|
|
@@ -10787,28 +10817,28 @@ function MonthPicker({
|
|
|
10787
10817
|
onClick: () => isAvailable && handleSelectMonth(index),
|
|
10788
10818
|
disabled: !isAvailable,
|
|
10789
10819
|
className: `
|
|
10790
|
-
px-2 py-2.5 text-sm rounded-lg transition-all duration-200 capitalize font-medium focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-
|
|
10791
|
-
${isSelected ? "bg-indigo-500 text-white" : isAvailable ? "text-
|
|
10820
|
+
px-2 py-2.5 text-sm rounded-lg transition-all duration-200 capitalize font-medium focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-indigo-500/70 active:scale-[0.98]
|
|
10821
|
+
${isSelected ? "bg-indigo-500 text-white shadow-[inset_0_1px_1.5px_rgba(255,255,255,0.45)]" : isAvailable ? "text-slate-700 dark:text-slate-200 hover:bg-indigo-500/10 hover:text-indigo-600 dark:hover:text-indigo-400" : "text-slate-300 dark:text-slate-600 cursor-not-allowed"}
|
|
10792
10822
|
`,
|
|
10793
10823
|
children: month
|
|
10794
10824
|
},
|
|
10795
10825
|
month
|
|
10796
10826
|
);
|
|
10797
10827
|
}) }),
|
|
10798
|
-
availableYears.length > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 pt-3
|
|
10828
|
+
availableYears.length > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 pt-3 liquid-divider", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-1 justify-center", children: availableYears.map((year) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
10799
10829
|
"button",
|
|
10800
10830
|
{
|
|
10801
10831
|
type: "button",
|
|
10802
10832
|
onClick: () => setViewYear(year),
|
|
10803
10833
|
className: `
|
|
10804
|
-
px-2 py-1 text-xs rounded-lg transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-
|
|
10805
|
-
${viewYear === year ? "bg-indigo-
|
|
10834
|
+
px-2 py-1 text-xs rounded-lg transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-indigo-500/70
|
|
10835
|
+
${viewYear === year ? "bg-indigo-500/15 dark:bg-indigo-400/20 text-indigo-700 dark:text-indigo-300 font-medium" : "text-slate-500 dark:text-slate-400 hover:bg-white/40 dark:hover:bg-white/[0.08]"}
|
|
10806
10836
|
`,
|
|
10807
10837
|
children: year
|
|
10808
10838
|
},
|
|
10809
10839
|
year
|
|
10810
10840
|
)) }) }),
|
|
10811
|
-
/* @__PURE__ */ jsxRuntime.jsx(Popover__namespace.Arrow, { className: "fill-white dark:fill-
|
|
10841
|
+
/* @__PURE__ */ jsxRuntime.jsx(Popover__namespace.Arrow, { className: "fill-white/85 dark:fill-slate-900/85" })
|
|
10812
10842
|
]
|
|
10813
10843
|
}
|
|
10814
10844
|
) })
|
|
@@ -21608,5 +21638,5 @@ exports.useSocialProviders = useSocialProviders;
|
|
|
21608
21638
|
exports.validateDashboardSpec = validateDashboardSpec;
|
|
21609
21639
|
exports.xScale = xScale;
|
|
21610
21640
|
exports.yScale = yScale;
|
|
21611
|
-
//# sourceMappingURL=chunk-
|
|
21612
|
-
//# sourceMappingURL=chunk-
|
|
21641
|
+
//# sourceMappingURL=chunk-K4M4B6ME.js.map
|
|
21642
|
+
//# sourceMappingURL=chunk-K4M4B6ME.js.map
|