@datatechsolutions/ui 3.12.1 → 3.13.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/graph-node.js +6 -6
- package/dist/astrlabe/graph-node.mjs +2 -2
- package/dist/astrlabe/index.js +114 -114
- package/dist/astrlabe/index.mjs +6 -6
- package/dist/astrlabe/workflow-canvas.js +6 -6
- package/dist/astrlabe/workflow-canvas.mjs +5 -5
- package/dist/{chunk-BPMYNE7S.mjs → chunk-3VCSMSJB.mjs} +6 -6
- package/dist/{chunk-BPMYNE7S.mjs.map → chunk-3VCSMSJB.mjs.map} +1 -1
- package/dist/{chunk-OM5NNUD2.mjs → chunk-4MNKVDTJ.mjs} +9 -8
- package/dist/chunk-4MNKVDTJ.mjs.map +1 -0
- package/dist/{chunk-PIIY2Z2O.mjs → chunk-4QCO4CBC.mjs} +4 -4
- package/dist/{chunk-PIIY2Z2O.mjs.map → chunk-4QCO4CBC.mjs.map} +1 -1
- package/dist/{chunk-4D23CQZM.mjs → chunk-4VEQJAXJ.mjs} +6 -6
- package/dist/{chunk-4D23CQZM.mjs.map → chunk-4VEQJAXJ.mjs.map} +1 -1
- package/dist/{chunk-FKRIQYRG.js → chunk-4Z5NZINA.js} +431 -481
- package/dist/chunk-4Z5NZINA.js.map +1 -0
- package/dist/{chunk-Z75CEP4V.js → chunk-54T5F65C.js} +29 -29
- package/dist/{chunk-Z75CEP4V.js.map → chunk-54T5F65C.js.map} +1 -1
- package/dist/{chunk-V3UZCOZI.js → chunk-7IAWXG43.js} +35 -35
- package/dist/{chunk-V3UZCOZI.js.map → chunk-7IAWXG43.js.map} +1 -1
- package/dist/{chunk-PLEWG2L7.js → chunk-AC54BNSK.js} +15 -15
- package/dist/{chunk-PLEWG2L7.js.map → chunk-AC54BNSK.js.map} +1 -1
- package/dist/{chunk-ID55ABBB.js → chunk-B3TA74C4.js} +100 -100
- package/dist/chunk-B3TA74C4.js.map +1 -0
- package/dist/{chunk-5OZTI7TR.js → chunk-CKY2QIRR.js} +6 -6
- package/dist/{chunk-5OZTI7TR.js.map → chunk-CKY2QIRR.js.map} +1 -1
- package/dist/{chunk-EZQ2D47U.js → chunk-CVEI4RQP.js} +4 -4
- package/dist/{chunk-EZQ2D47U.js.map → chunk-CVEI4RQP.js.map} +1 -1
- package/dist/{chunk-NK4H3JWN.mjs → chunk-DJHNSBIR.mjs} +63 -100
- package/dist/chunk-DJHNSBIR.mjs.map +1 -0
- package/dist/{chunk-P4RVGMZL.js → chunk-DTFU3ZTD.js} +5 -33
- package/dist/chunk-DTFU3ZTD.js.map +1 -0
- package/dist/{chunk-BHOT22QL.js → chunk-EBARYRSA.js} +2 -2
- package/dist/{chunk-BHOT22QL.js.map → chunk-EBARYRSA.js.map} +1 -1
- package/dist/{chunk-QGLGQXJE.js → chunk-FV42SSLP.js} +10 -10
- package/dist/chunk-FV42SSLP.js.map +1 -0
- package/dist/{chunk-RT264BD4.mjs → chunk-M4KRQXOT.mjs} +4 -4
- package/dist/{chunk-RT264BD4.mjs.map → chunk-M4KRQXOT.mjs.map} +1 -1
- package/dist/{chunk-WR55H7DH.mjs → chunk-O4RZCDP2.mjs} +2 -2
- package/dist/{chunk-WR55H7DH.mjs.map → chunk-O4RZCDP2.mjs.map} +1 -1
- package/dist/{chunk-VYU2FYDE.js → chunk-PM7A5I3X.js} +146 -183
- package/dist/chunk-PM7A5I3X.js.map +1 -0
- package/dist/{chunk-TDNBO3V7.js → chunk-Q7QPHZOV.js} +74 -74
- package/dist/{chunk-TDNBO3V7.js.map → chunk-Q7QPHZOV.js.map} +1 -1
- package/dist/{chunk-OW5LSEHU.mjs → chunk-QEACOJXX.mjs} +74 -74
- package/dist/chunk-QEACOJXX.mjs.map +1 -0
- package/dist/{chunk-N5GQIT7A.mjs → chunk-RMPXGEFL.mjs} +11 -10
- package/dist/chunk-RMPXGEFL.mjs.map +1 -0
- package/dist/{chunk-QSCWV47U.js → chunk-RPNMDGRA.js} +50 -50
- package/dist/chunk-RPNMDGRA.js.map +1 -0
- package/dist/{chunk-5TLKFOEL.mjs → chunk-RSCRIDMW.mjs} +275 -313
- package/dist/chunk-RSCRIDMW.mjs.map +1 -0
- package/dist/{chunk-XGAPZT4J.js → chunk-RUZPOHJW.js} +48 -47
- package/dist/chunk-RUZPOHJW.js.map +1 -0
- package/dist/{chunk-ULKZGM2T.js → chunk-RWZ2PLMQ.js} +177 -177
- package/dist/chunk-RWZ2PLMQ.js.map +1 -0
- package/dist/{chunk-UVFWKDRO.mjs → chunk-SCGICCQM.mjs} +15 -15
- package/dist/chunk-SCGICCQM.mjs.map +1 -0
- package/dist/{chunk-EDI46QA7.mjs → chunk-TRNDFSM6.mjs} +274 -324
- package/dist/chunk-TRNDFSM6.mjs.map +1 -0
- package/dist/{chunk-LRNVB7MO.js → chunk-ULSG4JLR.js} +6 -6
- package/dist/{chunk-LRNVB7MO.js.map → chunk-ULSG4JLR.js.map} +1 -1
- package/dist/{chunk-MFF37C24.js → chunk-UPWJRCAD.js} +445 -483
- package/dist/chunk-UPWJRCAD.js.map +1 -0
- package/dist/{chunk-RBH723MG.mjs → chunk-UUTTS3VV.mjs} +45 -45
- package/dist/chunk-UUTTS3VV.mjs.map +1 -0
- package/dist/{chunk-MYHBXIO2.js → chunk-VCL5LDS5.js} +42 -41
- package/dist/chunk-VCL5LDS5.js.map +1 -0
- package/dist/{chunk-PLTLRL2V.mjs → chunk-VPRAESA7.mjs} +3 -3
- package/dist/{chunk-PLTLRL2V.mjs.map → chunk-VPRAESA7.mjs.map} +1 -1
- package/dist/{chunk-HTODLUKG.js → chunk-VWZ53TE2.js} +12 -12
- package/dist/{chunk-HTODLUKG.js.map → chunk-VWZ53TE2.js.map} +1 -1
- package/dist/{chunk-3VYD7QL2.mjs → chunk-WX44DAQD.mjs} +9 -9
- package/dist/chunk-WX44DAQD.mjs.map +1 -0
- package/dist/{chunk-DJ33CSGJ.mjs → chunk-XYMHIZ3K.mjs} +5 -33
- package/dist/chunk-XYMHIZ3K.mjs.map +1 -0
- package/dist/{chunk-YXN2K77G.js → chunk-Y5VN4SPH.js} +26 -3
- package/dist/chunk-Y5VN4SPH.js.map +1 -0
- package/dist/{chunk-NQGLSM46.mjs → chunk-Y65X2NHF.mjs} +4 -4
- package/dist/{chunk-NQGLSM46.mjs.map → chunk-Y65X2NHF.mjs.map} +1 -1
- package/dist/{chunk-YYNGXKUE.mjs → chunk-YHD6SJIN.mjs} +15 -15
- package/dist/{chunk-YYNGXKUE.mjs.map → chunk-YHD6SJIN.mjs.map} +1 -1
- package/dist/{chunk-7VJ7CMMT.mjs → chunk-ZEFNBGYI.mjs} +26 -3
- package/dist/chunk-ZEFNBGYI.mjs.map +1 -0
- package/dist/{chunk-WLNY3GVM.mjs → chunk-ZPV7X4ZE.mjs} +7 -7
- package/dist/{chunk-WLNY3GVM.mjs.map → chunk-ZPV7X4ZE.mjs.map} +1 -1
- package/dist/index.js +709 -709
- package/dist/index.mjs +3 -3
- package/dist/lib/i18n-context.d.mts +12 -4
- package/dist/lib/i18n-context.d.ts +12 -4
- package/dist/lib/i18n-context.js +6 -6
- package/dist/lib/i18n-context.mjs +1 -1
- package/dist/platform/admin/index.js +12 -12
- package/dist/platform/admin/index.mjs +6 -6
- package/dist/platform/agents-workspace.js +9 -9
- package/dist/platform/agents-workspace.mjs +8 -8
- package/dist/platform/app-shell.js +5 -5
- package/dist/platform/app-shell.mjs +4 -4
- package/dist/platform/auth/index.js +29 -29
- package/dist/platform/auth/index.mjs +6 -6
- package/dist/platform/billing/index.js +7 -7
- package/dist/platform/billing/index.mjs +5 -5
- package/dist/platform/impersonation/index.js +5 -5
- package/dist/platform/impersonation/index.mjs +4 -4
- package/dist/platform/index.d.mts +1 -1
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.js +112 -112
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/index.mjs +30 -30
- package/dist/platform/index.mjs.map +1 -1
- package/dist/platform/pages/index.d.mts +12 -2
- package/dist/platform/pages/index.d.ts +12 -2
- package/dist/platform/pages/index.js +451 -450
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +51 -50
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/settings/index.js +9 -9
- package/dist/platform/settings/index.mjs +8 -8
- package/dist/platform/workflow-canvas-shell.js +7 -7
- package/dist/platform/workflow-canvas-shell.mjs +6 -6
- package/package.json +2 -1
- package/dist/chunk-3VYD7QL2.mjs.map +0 -1
- package/dist/chunk-5TLKFOEL.mjs.map +0 -1
- package/dist/chunk-7VJ7CMMT.mjs.map +0 -1
- package/dist/chunk-DJ33CSGJ.mjs.map +0 -1
- package/dist/chunk-EDI46QA7.mjs.map +0 -1
- package/dist/chunk-FKRIQYRG.js.map +0 -1
- package/dist/chunk-ID55ABBB.js.map +0 -1
- package/dist/chunk-MFF37C24.js.map +0 -1
- package/dist/chunk-MYHBXIO2.js.map +0 -1
- package/dist/chunk-N5GQIT7A.mjs.map +0 -1
- package/dist/chunk-NK4H3JWN.mjs.map +0 -1
- package/dist/chunk-OM5NNUD2.mjs.map +0 -1
- package/dist/chunk-OW5LSEHU.mjs.map +0 -1
- package/dist/chunk-P4RVGMZL.js.map +0 -1
- package/dist/chunk-QGLGQXJE.js.map +0 -1
- package/dist/chunk-QSCWV47U.js.map +0 -1
- package/dist/chunk-RBH723MG.mjs.map +0 -1
- package/dist/chunk-ULKZGM2T.js.map +0 -1
- package/dist/chunk-UVFWKDRO.mjs.map +0 -1
- package/dist/chunk-VYU2FYDE.js.map +0 -1
- package/dist/chunk-XGAPZT4J.js.map +0 -1
- package/dist/chunk-YXN2K77G.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var chunkY5VN4SPH_js = require('./chunk-Y5VN4SPH.js');
|
|
4
5
|
var chunk22XPYFHJ_js = require('./chunk-22XPYFHJ.js');
|
|
5
|
-
var
|
|
6
|
-
var chunkBHOT22QL_js = require('./chunk-BHOT22QL.js');
|
|
6
|
+
var chunkEBARYRSA_js = require('./chunk-EBARYRSA.js');
|
|
7
7
|
var chunkUZ3CMNUJ_js = require('./chunk-UZ3CMNUJ.js');
|
|
8
8
|
var chunkS7KHTUHA_js = require('./chunk-S7KHTUHA.js');
|
|
9
9
|
var React9 = require('react');
|
|
@@ -371,7 +371,7 @@ var Input = React9.forwardRef(
|
|
|
371
371
|
variant = "default",
|
|
372
372
|
...props
|
|
373
373
|
}, ref) => {
|
|
374
|
-
const t =
|
|
374
|
+
const t = chunkY5VN4SPH_js.useTranslations("auth");
|
|
375
375
|
const autoId = React9.useId();
|
|
376
376
|
const inputId = props.id || autoId;
|
|
377
377
|
const errorId = `${inputId}-error`;
|
|
@@ -435,7 +435,7 @@ var Input = React9.forwardRef(
|
|
|
435
435
|
initial: { opacity: 0, scale: 0.8 },
|
|
436
436
|
animate: { opacity: 1, scale: 1 },
|
|
437
437
|
exit: { opacity: 0, scale: 0.8 },
|
|
438
|
-
transition:
|
|
438
|
+
transition: chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.bouncy),
|
|
439
439
|
children: /* @__PURE__ */ jsxRuntime.jsx(solid.CheckCircleIcon, { className: "h-5 w-5 text-ios-green dark:text-ios-green-dark" })
|
|
440
440
|
}
|
|
441
441
|
) }),
|
|
@@ -1217,7 +1217,7 @@ function ToggleSwitch({
|
|
|
1217
1217
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1218
1218
|
framerMotion.motion.span,
|
|
1219
1219
|
{
|
|
1220
|
-
transition:
|
|
1220
|
+
transition: chunkEBARYRSA_js.springPresets.bouncy,
|
|
1221
1221
|
className: `
|
|
1222
1222
|
pointer-events-none inline-block rounded-full
|
|
1223
1223
|
bg-white shadow-lg shadow-black/10
|
|
@@ -1667,7 +1667,7 @@ function getTestIdFromTitle(title) {
|
|
|
1667
1667
|
return "entity-card";
|
|
1668
1668
|
}
|
|
1669
1669
|
function StatusBadgeInternal({ status }) {
|
|
1670
|
-
const tCommon =
|
|
1670
|
+
const tCommon = chunkY5VN4SPH_js.useTranslations("common");
|
|
1671
1671
|
if (typeof status !== "boolean") {
|
|
1672
1672
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: status });
|
|
1673
1673
|
}
|
|
@@ -3018,7 +3018,7 @@ function SearchBar({
|
|
|
3018
3018
|
filterChipStyleConfig,
|
|
3019
3019
|
filtersModal
|
|
3020
3020
|
}) {
|
|
3021
|
-
const t =
|
|
3021
|
+
const t = chunkY5VN4SPH_js.useTranslations("common");
|
|
3022
3022
|
const [isFocused, setIsFocused] = React9.useState(false);
|
|
3023
3023
|
const inputRef = React9.useRef(null);
|
|
3024
3024
|
const hasFilters = activeFilters.length > 0 || searchTerm.length > 0;
|
|
@@ -3117,7 +3117,7 @@ function SearchBar({
|
|
|
3117
3117
|
}
|
|
3118
3118
|
),
|
|
3119
3119
|
filtersModal && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3120
|
-
|
|
3120
|
+
chunkEBARYRSA_js.Button,
|
|
3121
3121
|
{
|
|
3122
3122
|
type: "button",
|
|
3123
3123
|
onClick: filtersModal.onOpen,
|
|
@@ -3183,7 +3183,7 @@ function SearchBar({
|
|
|
3183
3183
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-h-[72vh] overflow-y-auto p-4 sm:p-5", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-6", children: filtersModal.children }) }),
|
|
3184
3184
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-end gap-2 border-t liquid-divider p-4", children: [
|
|
3185
3185
|
filtersModal.onClear && filtersModalCount > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3186
|
-
|
|
3186
|
+
chunkEBARYRSA_js.Button,
|
|
3187
3187
|
{
|
|
3188
3188
|
type: "button",
|
|
3189
3189
|
onClick: filtersModal.onClear,
|
|
@@ -3193,7 +3193,7 @@ function SearchBar({
|
|
|
3193
3193
|
}
|
|
3194
3194
|
),
|
|
3195
3195
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3196
|
-
|
|
3196
|
+
chunkEBARYRSA_js.Button,
|
|
3197
3197
|
{
|
|
3198
3198
|
type: "button",
|
|
3199
3199
|
onClick: filtersModal.onClose,
|
|
@@ -3286,7 +3286,7 @@ function StatCard({
|
|
|
3286
3286
|
onClick,
|
|
3287
3287
|
className = ""
|
|
3288
3288
|
}) {
|
|
3289
|
-
const t =
|
|
3289
|
+
const t = chunkY5VN4SPH_js.useTranslations("common");
|
|
3290
3290
|
const colorConfig = colorClasses[color];
|
|
3291
3291
|
const isClickable = !!onClick;
|
|
3292
3292
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -3463,7 +3463,7 @@ function PriceChangeBadge({
|
|
|
3463
3463
|
showIcon = false,
|
|
3464
3464
|
className = ""
|
|
3465
3465
|
}) {
|
|
3466
|
-
const locale =
|
|
3466
|
+
const locale = chunkY5VN4SPH_js.useLocale();
|
|
3467
3467
|
if (value === null) return null;
|
|
3468
3468
|
const isPositive = value >= 0;
|
|
3469
3469
|
const toneClasses = isPositive ? "border-emerald-500/30 bg-emerald-500/20 text-emerald-700 dark:text-emerald-300" : "border-red-500/30 bg-red-500/20 text-red-700 dark:text-red-300";
|
|
@@ -3491,8 +3491,8 @@ function Pagination({
|
|
|
3491
3491
|
onPageChange,
|
|
3492
3492
|
className = ""
|
|
3493
3493
|
}) {
|
|
3494
|
-
const t =
|
|
3495
|
-
const tCommon =
|
|
3494
|
+
const t = chunkY5VN4SPH_js.useTranslations("approvals");
|
|
3495
|
+
const tCommon = chunkY5VN4SPH_js.useTranslations("common");
|
|
3496
3496
|
const from = (currentPage - 1) * pageSize + 1;
|
|
3497
3497
|
const to = Math.min(currentPage * pageSize, totalItems);
|
|
3498
3498
|
const getPageNumbers2 = () => {
|
|
@@ -3731,7 +3731,7 @@ function Spinner({
|
|
|
3731
3731
|
className,
|
|
3732
3732
|
label
|
|
3733
3733
|
}) {
|
|
3734
|
-
const t =
|
|
3734
|
+
const t = chunkY5VN4SPH_js.useTranslations("common");
|
|
3735
3735
|
const ariaLabel = label || t("loading");
|
|
3736
3736
|
const SpinnerComponent = {
|
|
3737
3737
|
circle: CircleSpinner,
|
|
@@ -3960,7 +3960,7 @@ function SegmentedControl({
|
|
|
3960
3960
|
left: indicatorStyle.left,
|
|
3961
3961
|
width: indicatorStyle.width
|
|
3962
3962
|
},
|
|
3963
|
-
transition:
|
|
3963
|
+
transition: chunkEBARYRSA_js.springPresets.default
|
|
3964
3964
|
}
|
|
3965
3965
|
),
|
|
3966
3966
|
normalizedSegments.map((segment) => {
|
|
@@ -4036,7 +4036,7 @@ function PageIndicator({
|
|
|
4036
4036
|
size = "md",
|
|
4037
4037
|
variant = "default"
|
|
4038
4038
|
}) {
|
|
4039
|
-
const t =
|
|
4039
|
+
const t = chunkY5VN4SPH_js.useTranslations("common");
|
|
4040
4040
|
const { dot, gap } = sizeConfig2[size];
|
|
4041
4041
|
const colors2 = variantConfig[variant];
|
|
4042
4042
|
const handleClick = (index) => {
|
|
@@ -4095,7 +4095,7 @@ function ExpandingPageIndicator({
|
|
|
4095
4095
|
variant = "default",
|
|
4096
4096
|
activeWidth = 24
|
|
4097
4097
|
}) {
|
|
4098
|
-
const t =
|
|
4098
|
+
const t = chunkY5VN4SPH_js.useTranslations("common");
|
|
4099
4099
|
const colors2 = variantConfig[variant];
|
|
4100
4100
|
const handleClick = (index) => {
|
|
4101
4101
|
if (onChange && index !== active) {
|
|
@@ -4982,7 +4982,7 @@ function TableCell({ className, children, ...props }) {
|
|
|
4982
4982
|
),
|
|
4983
4983
|
children: [
|
|
4984
4984
|
href && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4985
|
-
|
|
4985
|
+
chunkEBARYRSA_js.Link,
|
|
4986
4986
|
{
|
|
4987
4987
|
"data-row-link": true,
|
|
4988
4988
|
href,
|
|
@@ -5039,7 +5039,7 @@ function SortableTableHeader({
|
|
|
5039
5039
|
{
|
|
5040
5040
|
initial: false,
|
|
5041
5041
|
animate: { opacity: 1 },
|
|
5042
|
-
transition:
|
|
5042
|
+
transition: chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.stiff),
|
|
5043
5043
|
className: "flex-shrink-0",
|
|
5044
5044
|
children: direction === "asc" ? /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ChevronUpIcon, { className: "h-4 w-4" }) : direction === "desc" ? /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ChevronDownIcon, { className: "h-4 w-4" }) : /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ChevronUpDownIcon, { className: "h-4 w-4 opacity-40" })
|
|
5045
5045
|
}
|
|
@@ -5092,7 +5092,7 @@ function TableEmptyState({
|
|
|
5092
5092
|
{
|
|
5093
5093
|
initial: { opacity: 0, y: 10 },
|
|
5094
5094
|
animate: { opacity: 1, y: 0 },
|
|
5095
|
-
transition:
|
|
5095
|
+
transition: chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.gentle),
|
|
5096
5096
|
className: "flex flex-col items-center gap-3",
|
|
5097
5097
|
children: [
|
|
5098
5098
|
icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-12 w-12 rounded-full bg-white/40 dark:bg-white/[0.04] flex items-center justify-center text-slate-400 dark:text-slate-500", children: icon }),
|
|
@@ -5122,7 +5122,7 @@ function AnimatedTableRow({
|
|
|
5122
5122
|
animate: { opacity: 1, y: 0 },
|
|
5123
5123
|
exit: { opacity: 0, x: -20 },
|
|
5124
5124
|
transition: {
|
|
5125
|
-
...
|
|
5125
|
+
...chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.gentle),
|
|
5126
5126
|
delay: index * 0.03
|
|
5127
5127
|
},
|
|
5128
5128
|
...restProps,
|
|
@@ -5181,7 +5181,7 @@ function SelectableTableRow({
|
|
|
5181
5181
|
"aria-label": "Select row",
|
|
5182
5182
|
onClick: handleSelect,
|
|
5183
5183
|
whileTap: { scale: 0.9 },
|
|
5184
|
-
transition:
|
|
5184
|
+
transition: chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.stiff),
|
|
5185
5185
|
className: clsx4__default.default(
|
|
5186
5186
|
"h-5 w-5 rounded-full border-2 flex items-center justify-center transition-colors",
|
|
5187
5187
|
selected ? "bg-[#007AFF] dark:bg-[#0A84FF] border-[#007AFF] dark:border-[#0A84FF]" : "border-slate-300 dark:border-slate-600"
|
|
@@ -5192,7 +5192,7 @@ function SelectableTableRow({
|
|
|
5192
5192
|
initial: { scale: 0 },
|
|
5193
5193
|
animate: { scale: 1 },
|
|
5194
5194
|
exit: { scale: 0 },
|
|
5195
|
-
transition:
|
|
5195
|
+
transition: chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.bouncy),
|
|
5196
5196
|
className: "h-3 w-3 text-white",
|
|
5197
5197
|
fill: "none",
|
|
5198
5198
|
viewBox: "0 0 24 24",
|
|
@@ -5236,7 +5236,7 @@ function EmptyState({
|
|
|
5236
5236
|
{
|
|
5237
5237
|
initial: { scale: 0.8, opacity: 0 },
|
|
5238
5238
|
animate: { scale: 1, opacity: 1 },
|
|
5239
|
-
transition:
|
|
5239
|
+
transition: chunkEBARYRSA_js.springPresets.bouncy,
|
|
5240
5240
|
className: "mx-auto mb-4",
|
|
5241
5241
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "inline-flex h-16 w-16 items-center justify-center rounded-full border border-white/60 bg-white/75 shadow-sm backdrop-blur-xl dark:border-white/12 dark:bg-white/8", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-8 w-8 text-slate-600 dark:text-slate-300" }) })
|
|
5242
5242
|
}
|
|
@@ -5246,7 +5246,7 @@ function EmptyState({
|
|
|
5246
5246
|
{
|
|
5247
5247
|
initial: { y: 10, opacity: 0 },
|
|
5248
5248
|
animate: { y: 0, opacity: 1 },
|
|
5249
|
-
transition: { ...
|
|
5249
|
+
transition: { ...chunkEBARYRSA_js.springPresets.default, delay: 0.1 },
|
|
5250
5250
|
children: [
|
|
5251
5251
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-base font-semibold text-slate-900 dark:text-white", children: message }),
|
|
5252
5252
|
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-sm text-slate-500 dark:text-slate-400 max-w-sm mx-auto", children: description })
|
|
@@ -5258,9 +5258,9 @@ function EmptyState({
|
|
|
5258
5258
|
{
|
|
5259
5259
|
initial: { y: 10, opacity: 0 },
|
|
5260
5260
|
animate: { y: 0, opacity: 1 },
|
|
5261
|
-
transition: { ...
|
|
5261
|
+
transition: { ...chunkEBARYRSA_js.springPresets.default, delay: 0.2 },
|
|
5262
5262
|
className: "mt-6",
|
|
5263
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5263
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkEBARYRSA_js.Button, { color: "ios-glass-blue", onClick: handleActionClick, children: action.label })
|
|
5264
5264
|
}
|
|
5265
5265
|
)
|
|
5266
5266
|
]
|
|
@@ -5316,7 +5316,7 @@ function ErrorState({
|
|
|
5316
5316
|
details,
|
|
5317
5317
|
variant = "default"
|
|
5318
5318
|
}) {
|
|
5319
|
-
const t =
|
|
5319
|
+
const t = chunkY5VN4SPH_js.useTranslations("common.errorState");
|
|
5320
5320
|
const [isRetrying, setIsRetrying] = React9.useState(false);
|
|
5321
5321
|
const [showErrorDetails, setShowErrorDetails] = React9.useState(false);
|
|
5322
5322
|
const config = errorTypeConfig[type];
|
|
@@ -5348,7 +5348,7 @@ function ErrorState({
|
|
|
5348
5348
|
{
|
|
5349
5349
|
initial: { scale: 0.8, opacity: 0 },
|
|
5350
5350
|
animate: { scale: 1, opacity: 1 },
|
|
5351
|
-
transition:
|
|
5351
|
+
transition: chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.bouncy),
|
|
5352
5352
|
className: "mx-auto mb-4",
|
|
5353
5353
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: `inline-flex h-16 w-16 items-center justify-center rounded-full ${config.iconBg}`, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: `h-8 w-8 ${config.iconColor}` }) })
|
|
5354
5354
|
}
|
|
@@ -5358,7 +5358,7 @@ function ErrorState({
|
|
|
5358
5358
|
{
|
|
5359
5359
|
initial: { y: 10, opacity: 0 },
|
|
5360
5360
|
animate: { y: 0, opacity: 1 },
|
|
5361
|
-
transition: { ...
|
|
5361
|
+
transition: { ...chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.default), delay: 0.1 },
|
|
5362
5362
|
children: [
|
|
5363
5363
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-slate-900 dark:text-white", children: title || t(config.titleKey) }),
|
|
5364
5364
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-sm text-slate-500 dark:text-slate-400 max-w-sm mx-auto", children: message || t(config.messageKey) }),
|
|
@@ -5371,11 +5371,11 @@ function ErrorState({
|
|
|
5371
5371
|
{
|
|
5372
5372
|
initial: { y: 10, opacity: 0 },
|
|
5373
5373
|
animate: { y: 0, opacity: 1 },
|
|
5374
|
-
transition: { ...
|
|
5374
|
+
transition: { ...chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.default), delay: 0.2 },
|
|
5375
5375
|
className: "mt-6 flex flex-col sm:flex-row items-center justify-center gap-3",
|
|
5376
5376
|
children: [
|
|
5377
5377
|
onRetry && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5378
|
-
|
|
5378
|
+
chunkEBARYRSA_js.Button,
|
|
5379
5379
|
{
|
|
5380
5380
|
color: "ios-glass-blue",
|
|
5381
5381
|
onClick: handleRetry,
|
|
@@ -5389,7 +5389,7 @@ function ErrorState({
|
|
|
5389
5389
|
}
|
|
5390
5390
|
),
|
|
5391
5391
|
secondaryAction && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5392
|
-
|
|
5392
|
+
chunkEBARYRSA_js.Button,
|
|
5393
5393
|
{
|
|
5394
5394
|
plain: true,
|
|
5395
5395
|
onClick: () => {
|
|
@@ -5407,14 +5407,16 @@ function ErrorState({
|
|
|
5407
5407
|
{
|
|
5408
5408
|
initial: { y: 10, opacity: 0 },
|
|
5409
5409
|
animate: { y: 0, opacity: 1 },
|
|
5410
|
-
transition: { ...
|
|
5410
|
+
transition: { ...chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.default), delay: 0.3 },
|
|
5411
5411
|
className: "mt-6",
|
|
5412
5412
|
children: [
|
|
5413
5413
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5414
|
-
|
|
5414
|
+
chunkEBARYRSA_js.Button,
|
|
5415
5415
|
{
|
|
5416
|
+
type: "button",
|
|
5417
|
+
plain: true,
|
|
5418
|
+
size: "xs",
|
|
5416
5419
|
onClick: toggleDetails,
|
|
5417
|
-
className: "text-xs text-slate-400 dark:text-slate-500 hover:text-slate-600 dark:hover:text-slate-400 transition-colors",
|
|
5418
5420
|
children: showErrorDetails ? t("hideDetails") : t("showDetails")
|
|
5419
5421
|
}
|
|
5420
5422
|
),
|
|
@@ -5424,7 +5426,7 @@ function ErrorState({
|
|
|
5424
5426
|
initial: { height: 0, opacity: 0 },
|
|
5425
5427
|
animate: { height: "auto", opacity: 1 },
|
|
5426
5428
|
exit: { height: 0, opacity: 0 },
|
|
5427
|
-
transition:
|
|
5429
|
+
transition: chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.gentle),
|
|
5428
5430
|
className: "overflow-hidden",
|
|
5429
5431
|
children: /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "mt-3 p-3 bg-white/40 dark:bg-white/[0.04] rounded-lg text-xs text-left text-slate-600 dark:text-slate-400 font-mono overflow-x-auto max-h-32", children: details })
|
|
5430
5432
|
}
|
|
@@ -5451,7 +5453,7 @@ function OfflineState({
|
|
|
5451
5453
|
onRetry,
|
|
5452
5454
|
message
|
|
5453
5455
|
}) {
|
|
5454
|
-
const t =
|
|
5456
|
+
const t = chunkY5VN4SPH_js.useTranslations("common.errorState");
|
|
5455
5457
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5456
5458
|
ErrorState,
|
|
5457
5459
|
{
|
|
@@ -5469,14 +5471,14 @@ function NoResultsState({
|
|
|
5469
5471
|
onClearFilters,
|
|
5470
5472
|
suggestions
|
|
5471
5473
|
}) {
|
|
5472
|
-
const t =
|
|
5474
|
+
const t = chunkY5VN4SPH_js.useTranslations("common.emptyState");
|
|
5473
5475
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "liquid-surface rounded-xl px-6 py-12 text-center", children: [
|
|
5474
5476
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5475
5477
|
framerMotion.motion.div,
|
|
5476
5478
|
{
|
|
5477
5479
|
initial: { scale: 0.8, opacity: 0 },
|
|
5478
5480
|
animate: { scale: 1, opacity: 1 },
|
|
5479
|
-
transition:
|
|
5481
|
+
transition: chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.bouncy),
|
|
5480
5482
|
className: "mx-auto mb-4",
|
|
5481
5483
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "inline-flex h-16 w-16 items-center justify-center rounded-full border border-white/60 bg-white/75 shadow-sm backdrop-blur-xl dark:border-white/12 dark:bg-white/8", children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.DocumentMagnifyingGlassIcon, { className: "h-8 w-8 text-slate-600 dark:text-slate-300" }) })
|
|
5482
5484
|
}
|
|
@@ -5486,7 +5488,7 @@ function NoResultsState({
|
|
|
5486
5488
|
{
|
|
5487
5489
|
initial: { y: 10, opacity: 0 },
|
|
5488
5490
|
animate: { y: 0, opacity: 1 },
|
|
5489
|
-
transition: { ...
|
|
5491
|
+
transition: { ...chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.default), delay: 0.1 },
|
|
5490
5492
|
children: [
|
|
5491
5493
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-slate-900 dark:text-white", children: t("noResultsFound") }),
|
|
5492
5494
|
searchTerm && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-sm text-slate-500 dark:text-slate-400", children: t("noResultsFor", { searchTerm }) }),
|
|
@@ -5506,10 +5508,10 @@ function NoResultsState({
|
|
|
5506
5508
|
{
|
|
5507
5509
|
initial: { y: 10, opacity: 0 },
|
|
5508
5510
|
animate: { y: 0, opacity: 1 },
|
|
5509
|
-
transition: { ...
|
|
5511
|
+
transition: { ...chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.default), delay: 0.2 },
|
|
5510
5512
|
className: "mt-6",
|
|
5511
5513
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5512
|
-
|
|
5514
|
+
chunkEBARYRSA_js.Button,
|
|
5513
5515
|
{
|
|
5514
5516
|
color: "ios-glass-blue",
|
|
5515
5517
|
onClick: () => {
|
|
@@ -5533,7 +5535,7 @@ function NoDataState({
|
|
|
5533
5535
|
onAction,
|
|
5534
5536
|
icon: CustomIcon
|
|
5535
5537
|
}) {
|
|
5536
|
-
const t =
|
|
5538
|
+
const t = chunkY5VN4SPH_js.useTranslations("common.emptyState");
|
|
5537
5539
|
const Icon = CustomIcon || HeroIcons.FolderOpenIcon;
|
|
5538
5540
|
const resolvedTitle = title || t("noDataTitle");
|
|
5539
5541
|
const resolvedMessage = message || t("noDataMessage");
|
|
@@ -5544,7 +5546,7 @@ function NoDataState({
|
|
|
5544
5546
|
{
|
|
5545
5547
|
initial: { scale: 0.8, opacity: 0 },
|
|
5546
5548
|
animate: { scale: 1, opacity: 1 },
|
|
5547
|
-
transition:
|
|
5549
|
+
transition: chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.bouncy),
|
|
5548
5550
|
className: "mx-auto mb-4",
|
|
5549
5551
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "inline-flex h-16 w-16 items-center justify-center rounded-full border border-white/60 bg-white/75 shadow-sm backdrop-blur-xl dark:border-white/12 dark:bg-white/8", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-8 w-8 text-slate-600 dark:text-slate-300" }) })
|
|
5550
5552
|
}
|
|
@@ -5554,7 +5556,7 @@ function NoDataState({
|
|
|
5554
5556
|
{
|
|
5555
5557
|
initial: { y: 10, opacity: 0 },
|
|
5556
5558
|
animate: { y: 0, opacity: 1 },
|
|
5557
|
-
transition: { ...
|
|
5559
|
+
transition: { ...chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.default), delay: 0.1 },
|
|
5558
5560
|
children: [
|
|
5559
5561
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-base font-semibold text-slate-900 dark:text-white", children: resolvedTitle }),
|
|
5560
5562
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-sm text-slate-500 dark:text-slate-400 max-w-sm mx-auto", children: resolvedMessage })
|
|
@@ -5566,10 +5568,10 @@ function NoDataState({
|
|
|
5566
5568
|
{
|
|
5567
5569
|
initial: { y: 10, opacity: 0 },
|
|
5568
5570
|
animate: { y: 0, opacity: 1 },
|
|
5569
|
-
transition: { ...
|
|
5571
|
+
transition: { ...chunkEBARYRSA_js.getTransition(chunkEBARYRSA_js.springPresets.default), delay: 0.2 },
|
|
5570
5572
|
className: "mt-6",
|
|
5571
5573
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5572
|
-
|
|
5574
|
+
chunkEBARYRSA_js.Button,
|
|
5573
5575
|
{
|
|
5574
5576
|
color: "ios-glass-blue",
|
|
5575
5577
|
onClick: () => {
|
|
@@ -5642,7 +5644,7 @@ function DynamicIsland({
|
|
|
5642
5644
|
layout: true,
|
|
5643
5645
|
initial: false,
|
|
5644
5646
|
animate: sizeVariants[internalState],
|
|
5645
|
-
transition:
|
|
5647
|
+
transition: chunkEBARYRSA_js.springPresets.bouncy,
|
|
5646
5648
|
onClick: handleTap,
|
|
5647
5649
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full w-full overflow-hidden bg-black rounded-[inherit]", children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5648
5650
|
framerMotion.motion.div,
|
|
@@ -5840,7 +5842,7 @@ function NotificationProvider({ children, appName = "Datatech" }) {
|
|
|
5840
5842
|
] });
|
|
5841
5843
|
}
|
|
5842
5844
|
function NotificationBellButton() {
|
|
5843
|
-
const t =
|
|
5845
|
+
const t = chunkY5VN4SPH_js.useTranslations("notifications");
|
|
5844
5846
|
const { history, historyOpen, openHistory } = useNotifications();
|
|
5845
5847
|
const totalCount = history.length;
|
|
5846
5848
|
if (historyOpen) return null;
|
|
@@ -5883,7 +5885,7 @@ function NotificationDrawer({
|
|
|
5883
5885
|
onRemove,
|
|
5884
5886
|
onClear
|
|
5885
5887
|
}) {
|
|
5886
|
-
const t =
|
|
5888
|
+
const t = chunkY5VN4SPH_js.useTranslations("notifications");
|
|
5887
5889
|
return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: open ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5888
5890
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5889
5891
|
framerMotion.motion.div,
|
|
@@ -5936,8 +5938,8 @@ function NotificationDrawer({
|
|
|
5936
5938
|
] }),
|
|
5937
5939
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-5 h-px bg-gradient-to-r from-transparent via-gray-200/80 to-transparent dark:via-white/10" }),
|
|
5938
5940
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-y-auto px-5 py-4", children: history.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center py-20 text-center", children: [
|
|
5939
|
-
/* @__PURE__ */ jsxRuntime.jsx(HeroIcons.BellIcon, { className: "h-12 w-12 text-
|
|
5940
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-
|
|
5941
|
+
/* @__PURE__ */ jsxRuntime.jsx(HeroIcons.BellIcon, { className: "h-12 w-12 text-slate-300 dark:text-slate-600 mb-3" }),
|
|
5942
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-slate-400 dark:text-slate-500", children: t("empty") })
|
|
5941
5943
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2.5", children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { initial: false, children: history.map((item) => {
|
|
5942
5944
|
const style = NOTIFICATION_TYPE_STYLES[item.type];
|
|
5943
5945
|
const Icon = style.icon;
|
|
@@ -5952,16 +5954,16 @@ function NotificationDrawer({
|
|
|
5952
5954
|
children: [
|
|
5953
5955
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `mt-0.5 flex-shrink-0 ${style.color}`, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-5 w-5" }) }),
|
|
5954
5956
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
5955
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-
|
|
5956
|
-
item.message ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-0.5 text-xs text-
|
|
5957
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1.5 text-[11px] text-
|
|
5957
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-slate-900 dark:text-white truncate", children: item.title }),
|
|
5958
|
+
item.message ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-0.5 text-xs text-slate-500 dark:text-slate-400 line-clamp-2", children: item.message }) : null,
|
|
5959
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1.5 text-[11px] text-slate-400 dark:text-slate-500", children: formatTimeAgo(item.timestamp, t) })
|
|
5958
5960
|
] }),
|
|
5959
5961
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5960
5962
|
"button",
|
|
5961
5963
|
{
|
|
5962
5964
|
type: "button",
|
|
5963
5965
|
onClick: () => onRemove(item.id),
|
|
5964
|
-
className: "absolute right-2.5 top-2.5 rounded-lg p-1 text-
|
|
5966
|
+
className: "absolute right-2.5 top-2.5 rounded-lg p-1 text-slate-300 opacity-0 transition-all group-hover:opacity-100 group-focus-within:opacity-100 hover:text-slate-500 active:scale-95 dark:text-slate-600 dark:hover:text-slate-400",
|
|
5965
5967
|
"aria-label": t("dismiss"),
|
|
5966
5968
|
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.XMarkIcon, { className: "h-3.5 w-3.5" })
|
|
5967
5969
|
}
|
|
@@ -6171,17 +6173,16 @@ function AccentBar({ gradient, className }) {
|
|
|
6171
6173
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `h-1.5 w-full bg-gradient-to-r ${gradient} ${className ?? ""}` });
|
|
6172
6174
|
}
|
|
6173
6175
|
function CloseBtn({ onClick, label }) {
|
|
6174
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6175
|
-
|
|
6176
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-4 top-4 z-10", "data-testid": "modal-close", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6177
|
+
chunkEBARYRSA_js.IconButton,
|
|
6176
6178
|
{
|
|
6177
|
-
|
|
6179
|
+
label,
|
|
6180
|
+
variant: "ghost",
|
|
6181
|
+
size: "sm",
|
|
6178
6182
|
onClick,
|
|
6179
|
-
"
|
|
6180
|
-
"data-testid": "modal-close",
|
|
6181
|
-
className: "absolute right-4 top-4 z-10 inline-flex h-9 w-9 items-center justify-center rounded-xl text-slate-500 transition hover:bg-white/40 hover:text-slate-700 dark:text-slate-300 dark:hover:bg-white/[0.08] dark:hover:text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/70 focus-visible:ring-offset-2",
|
|
6182
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.XMarkIcon, { className: "h-5 w-5" })
|
|
6183
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.XMarkIcon, { className: "h-5 w-5" })
|
|
6183
6184
|
}
|
|
6184
|
-
);
|
|
6185
|
+
) });
|
|
6185
6186
|
}
|
|
6186
6187
|
function SidebarLayout({
|
|
6187
6188
|
sidebarElement,
|
|
@@ -6401,8 +6402,8 @@ function GlassModal({
|
|
|
6401
6402
|
const footerElement = findSlot(children, FOOTER_TYPE);
|
|
6402
6403
|
const nonSlotChildren = filterNonSlots(children);
|
|
6403
6404
|
const resolvedFooter = footer ?? (footerElement ? footerElement.props.children : void 0) ?? (showFormFooter ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col sm:flex-row justify-end gap-2 sm:gap-3", children: [
|
|
6404
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6405
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6405
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEBARYRSA_js.Button, { type: "button", onClick: onClose, disabled: isLoading, outline: true, className: "w-full sm:w-auto", "data-testid": "form-modal-cancel", children: cancelLabel ?? "Cancel" }),
|
|
6406
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEBARYRSA_js.Button, { type: "submit", disabled: submitDisabled, loading: isLoading, loadingText: submitLabel, color: "ios-glass-blue", className: "w-full sm:w-auto", "data-testid": "form-modal-submit", children: submitLabel ?? "Save" })
|
|
6406
6407
|
] }) : void 0);
|
|
6407
6408
|
const handleSubmit = React9.useCallback((event) => {
|
|
6408
6409
|
event.preventDefault();
|
|
@@ -6496,7 +6497,7 @@ function Text({ className, ...props }) {
|
|
|
6496
6497
|
}
|
|
6497
6498
|
function TextLink({ className, ...props }) {
|
|
6498
6499
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6499
|
-
|
|
6500
|
+
chunkEBARYRSA_js.Link,
|
|
6500
6501
|
{
|
|
6501
6502
|
...props,
|
|
6502
6503
|
className: clsx4__default.default(
|
|
@@ -6821,7 +6822,7 @@ function ChipPicker({
|
|
|
6821
6822
|
}
|
|
6822
6823
|
var DEFAULT_COPYABLE_CLASSNAME = "liquid-surface-strong text-gray-500 dark:text-gray-400";
|
|
6823
6824
|
function CopyableId({ id, copyValue, label, className }) {
|
|
6824
|
-
const t =
|
|
6825
|
+
const t = chunkY5VN4SPH_js.useTranslations();
|
|
6825
6826
|
const [copied, setCopied] = React9.useState(false);
|
|
6826
6827
|
const valueToCopy = copyValue ?? id;
|
|
6827
6828
|
const handleCopy = async (e) => {
|
|
@@ -6947,8 +6948,8 @@ function DatePicker({
|
|
|
6947
6948
|
disableFuture = false,
|
|
6948
6949
|
className = ""
|
|
6949
6950
|
}) {
|
|
6950
|
-
const appLocale =
|
|
6951
|
-
const t =
|
|
6951
|
+
const appLocale = chunkY5VN4SPH_js.useLocale();
|
|
6952
|
+
const t = chunkY5VN4SPH_js.useTranslations("datePicker");
|
|
6952
6953
|
const dateFnsLocale = dateFnsLocales[appLocale] ?? locale.ptBR;
|
|
6953
6954
|
const [open, setOpen] = React9.useState(false);
|
|
6954
6955
|
const [viewMode, setViewMode] = React9.useState("days");
|
|
@@ -7050,8 +7051,8 @@ function DatePicker({
|
|
|
7050
7051
|
type: "button",
|
|
7051
7052
|
onClick: handlePrevMonth,
|
|
7052
7053
|
"aria-label": t("previousMonth"),
|
|
7053
|
-
className: "p-1.5 rounded-lg hover:bg-
|
|
7054
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ChevronLeftIcon, { className: "h-5 w-5 text-
|
|
7054
|
+
className: "p-1.5 rounded-lg hover:bg-white/40 dark:hover:bg-white/[0.04] transition-colors",
|
|
7055
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ChevronLeftIcon, { className: "h-5 w-5 text-slate-500 dark:text-slate-400" })
|
|
7055
7056
|
}
|
|
7056
7057
|
),
|
|
7057
7058
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7059,7 +7060,7 @@ function DatePicker({
|
|
|
7059
7060
|
{
|
|
7060
7061
|
type: "button",
|
|
7061
7062
|
onClick: () => setViewMode("year-month"),
|
|
7062
|
-
className: "px-3 py-1 rounded-lg font-semibold text-
|
|
7063
|
+
className: "px-3 py-1 rounded-lg font-semibold text-slate-900 dark:text-white hover:bg-white/40 dark:hover:bg-white/[0.04] transition-colors capitalize",
|
|
7063
7064
|
children: monthYearLabel
|
|
7064
7065
|
}
|
|
7065
7066
|
),
|
|
@@ -7069,15 +7070,15 @@ function DatePicker({
|
|
|
7069
7070
|
type: "button",
|
|
7070
7071
|
onClick: handleNextMonth,
|
|
7071
7072
|
"aria-label": t("nextMonth"),
|
|
7072
|
-
className: "p-1.5 rounded-lg hover:bg-
|
|
7073
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ChevronRightIcon, { className: "h-5 w-5 text-
|
|
7073
|
+
className: "p-1.5 rounded-lg hover:bg-white/40 dark:hover:bg-white/[0.04] transition-colors",
|
|
7074
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ChevronRightIcon, { className: "h-5 w-5 text-slate-500 dark:text-slate-400" })
|
|
7074
7075
|
}
|
|
7075
7076
|
)
|
|
7076
7077
|
] }),
|
|
7077
7078
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-7 gap-0.5 mb-1", children: dayNames.map((name, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7078
7079
|
"div",
|
|
7079
7080
|
{
|
|
7080
|
-
className: "text-center text-xs font-medium text-
|
|
7081
|
+
className: "text-center text-xs font-medium text-slate-400 dark:text-slate-500 uppercase py-1",
|
|
7081
7082
|
children: name
|
|
7082
7083
|
},
|
|
7083
7084
|
`${name}-${i}`
|
|
@@ -7098,9 +7099,9 @@ function DatePicker({
|
|
|
7098
7099
|
onClick: () => handleSelectDay(day),
|
|
7099
7100
|
className: `
|
|
7100
7101
|
h-9 w-full rounded-lg text-sm font-medium transition-colors
|
|
7101
|
-
${disabled ? "text-
|
|
7102
|
-
${!disabled && !isSelected && isCurrentMonth ? "text-
|
|
7103
|
-
${!disabled && !isSelected && !isCurrentMonth ? "text-
|
|
7102
|
+
${disabled ? "text-slate-300 dark:text-slate-600 cursor-not-allowed" : ""}
|
|
7103
|
+
${!disabled && !isSelected && isCurrentMonth ? "text-slate-800 dark:text-slate-200 hover:bg-indigo-500/10 hover:text-indigo-600 dark:hover:text-indigo-400" : ""}
|
|
7104
|
+
${!disabled && !isSelected && !isCurrentMonth ? "text-slate-400 dark:text-slate-500 hover:bg-white/40 dark:hover:bg-white/[0.04]" : ""}
|
|
7104
7105
|
${isSelected ? "bg-indigo-500 text-white hover:bg-indigo-600" : ""}
|
|
7105
7106
|
${isToday && !isSelected ? "ring-1 ring-indigo-400 dark:ring-indigo-500" : ""}
|
|
7106
7107
|
`,
|
|
@@ -7109,7 +7110,7 @@ function DatePicker({
|
|
|
7109
7110
|
day.toISOString()
|
|
7110
7111
|
);
|
|
7111
7112
|
}) }),
|
|
7112
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 pt-3
|
|
7113
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 pt-3 liquid-divider border-t text-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7113
7114
|
"button",
|
|
7114
7115
|
{
|
|
7115
7116
|
type: "button",
|
|
@@ -7130,19 +7131,19 @@ function DatePicker({
|
|
|
7130
7131
|
type: "button",
|
|
7131
7132
|
onClick: () => handleSelectYear(viewDate.getFullYear() - 1),
|
|
7132
7133
|
"aria-label": t("previousYear"),
|
|
7133
|
-
className: "p-1.5 rounded-lg hover:bg-
|
|
7134
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ChevronLeftIcon, { className: "h-5 w-5 text-
|
|
7134
|
+
className: "p-1.5 rounded-lg hover:bg-white/40 dark:hover:bg-white/[0.04] transition-colors",
|
|
7135
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ChevronLeftIcon, { className: "h-5 w-5 text-slate-500 dark:text-slate-400" })
|
|
7135
7136
|
}
|
|
7136
7137
|
),
|
|
7137
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-lg text-
|
|
7138
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-lg text-slate-900 dark:text-white", children: viewDate.getFullYear() }),
|
|
7138
7139
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7139
7140
|
"button",
|
|
7140
7141
|
{
|
|
7141
7142
|
type: "button",
|
|
7142
7143
|
onClick: () => handleSelectYear(viewDate.getFullYear() + 1),
|
|
7143
7144
|
"aria-label": t("nextYear"),
|
|
7144
|
-
className: "p-1.5 rounded-lg hover:bg-
|
|
7145
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ChevronRightIcon, { className: "h-5 w-5 text-
|
|
7145
|
+
className: "p-1.5 rounded-lg hover:bg-white/40 dark:hover:bg-white/[0.04] transition-colors",
|
|
7146
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ChevronRightIcon, { className: "h-5 w-5 text-slate-500 dark:text-slate-400" })
|
|
7146
7147
|
}
|
|
7147
7148
|
)
|
|
7148
7149
|
] }),
|
|
@@ -7157,23 +7158,23 @@ function DatePicker({
|
|
|
7157
7158
|
onClick: () => handleSelectMonth(index),
|
|
7158
7159
|
className: `
|
|
7159
7160
|
px-2 py-2.5 text-sm rounded-lg transition-colors capitalize font-medium
|
|
7160
|
-
${isFutureMonth ? "text-
|
|
7161
|
+
${isFutureMonth ? "text-slate-300 dark:text-slate-600 cursor-not-allowed" : ""}
|
|
7161
7162
|
${!isFutureMonth && isSelectedMonth ? "bg-indigo-500 text-white" : ""}
|
|
7162
|
-
${!isFutureMonth && !isSelectedMonth ? "text-
|
|
7163
|
+
${!isFutureMonth && !isSelectedMonth ? "text-slate-700 dark:text-slate-200 hover:bg-indigo-500/10 hover:text-indigo-600 dark:hover:text-indigo-400" : ""}
|
|
7163
7164
|
`,
|
|
7164
7165
|
children: name
|
|
7165
7166
|
},
|
|
7166
7167
|
name
|
|
7167
7168
|
);
|
|
7168
7169
|
}) }),
|
|
7169
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 pt-3
|
|
7170
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 pt-3 liquid-divider border-t", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-1 justify-center", children: yearRange.slice(-7).map((year) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7170
7171
|
"button",
|
|
7171
7172
|
{
|
|
7172
7173
|
type: "button",
|
|
7173
7174
|
onClick: () => handleSelectYear(year),
|
|
7174
7175
|
className: `
|
|
7175
7176
|
px-2 py-1 text-xs rounded-lg transition-colors
|
|
7176
|
-
${viewDate.getFullYear() === year ? "bg-indigo-100 dark:bg-indigo-900/50 text-indigo-700 dark:text-indigo-300 font-medium" : "text-
|
|
7177
|
+
${viewDate.getFullYear() === year ? "bg-indigo-100 dark:bg-indigo-900/50 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.04]"}
|
|
7177
7178
|
`,
|
|
7178
7179
|
children: year
|
|
7179
7180
|
},
|
|
@@ -7189,7 +7190,7 @@ function DatePicker({
|
|
|
7189
7190
|
}
|
|
7190
7191
|
) })
|
|
7191
7192
|
] }),
|
|
7192
|
-
/* @__PURE__ */ jsxRuntime.jsx(Popover__namespace.Arrow, { className: "fill-white/70 dark:fill-
|
|
7193
|
+
/* @__PURE__ */ jsxRuntime.jsx(Popover__namespace.Arrow, { className: "fill-white/70 dark:fill-slate-800/70" })
|
|
7193
7194
|
]
|
|
7194
7195
|
}
|
|
7195
7196
|
) })
|
|
@@ -7214,7 +7215,7 @@ function TimePicker({
|
|
|
7214
7215
|
placeholder,
|
|
7215
7216
|
className = ""
|
|
7216
7217
|
}) {
|
|
7217
|
-
const t =
|
|
7218
|
+
const t = chunkY5VN4SPH_js.useTranslations("timePicker");
|
|
7218
7219
|
const [open, setOpen] = React9.useState(false);
|
|
7219
7220
|
const [draftHours, setDraftHours] = React9.useState(value ? value.hours : 0);
|
|
7220
7221
|
const [draftMinutes, setDraftMinutes] = React9.useState(value ? value.minutes : 0);
|
|
@@ -7414,12 +7415,12 @@ function PageHeading({
|
|
|
7414
7415
|
meta,
|
|
7415
7416
|
actions
|
|
7416
7417
|
}) {
|
|
7417
|
-
const t =
|
|
7418
|
+
const t = chunkY5VN4SPH_js.useTranslations("common");
|
|
7418
7419
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6 lg:flex lg:items-start lg:justify-between", children: [
|
|
7419
7420
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
7420
7421
|
breadcrumbs?.length ? /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": t("breadcrumb"), className: "mb-2", children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: "flex items-center gap-2 text-xs text-gray-500 dark:text-gray-400", children: breadcrumbs.map((crumb, index) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-center gap-2", children: [
|
|
7421
7422
|
index > 0 ? /* @__PURE__ */ jsxRuntime.jsx(solid.ChevronRightIcon, { className: "h-4 w-4", "aria-hidden": "true" }) : null,
|
|
7422
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7423
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEBARYRSA_js.Link, { href: crumb.href, className: "hover:text-gray-800 dark:hover:text-white", children: crumb.name })
|
|
7423
7424
|
] }, `${crumb.href}-${crumb.name}`)) }) }) : null,
|
|
7424
7425
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7425
7426
|
HeroBlock,
|
|
@@ -7490,7 +7491,7 @@ function FormInput({
|
|
|
7490
7491
|
required ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-0.5 text-red-500", children: "*" }) : null
|
|
7491
7492
|
] }) : null,
|
|
7492
7493
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: wrapperClass(error), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `relative flex items-center ${sizeClasses2[inputSize]} ${className}`, children: [
|
|
7493
|
-
icon ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mr-2 text-
|
|
7494
|
+
icon ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mr-2 text-slate-400 dark:text-slate-500", "aria-hidden": "true", children: icon }) : null,
|
|
7494
7495
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7495
7496
|
"input",
|
|
7496
7497
|
{
|
|
@@ -7499,7 +7500,7 @@ function FormInput({
|
|
|
7499
7500
|
required,
|
|
7500
7501
|
"aria-invalid": error ? true : false,
|
|
7501
7502
|
"aria-describedby": describedBy,
|
|
7502
|
-
className: "w-full bg-transparent text-
|
|
7503
|
+
className: "w-full bg-transparent text-slate-900 placeholder:text-slate-500 focus:outline-none dark:text-white dark:placeholder:text-slate-500",
|
|
7503
7504
|
onChange: (event) => onValueChange?.(event.target.value)
|
|
7504
7505
|
}
|
|
7505
7506
|
)
|
|
@@ -7535,7 +7536,7 @@ function FormTextarea({
|
|
|
7535
7536
|
required,
|
|
7536
7537
|
"aria-invalid": error ? true : void 0,
|
|
7537
7538
|
"aria-describedby": describedBy,
|
|
7538
|
-
className: `w-full resize-y bg-transparent px-3.5 py-2.5 text-
|
|
7539
|
+
className: `w-full resize-y bg-transparent px-3.5 py-2.5 text-slate-900 placeholder:text-slate-500 focus:outline-none dark:text-white dark:placeholder:text-slate-500 ${className}`,
|
|
7539
7540
|
onChange: (event) => onValueChange?.(event.target.value)
|
|
7540
7541
|
}
|
|
7541
7542
|
) }),
|
|
@@ -7586,7 +7587,7 @@ function FormPriceInput({
|
|
|
7586
7587
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7587
7588
|
"span",
|
|
7588
7589
|
{
|
|
7589
|
-
className: `absolute top-1/2 -translate-y-1/2 text-
|
|
7590
|
+
className: `absolute top-1/2 -translate-y-1/2 text-slate-400 dark:text-slate-500 pointer-events-none select-none ${sizes3.symbol}`,
|
|
7590
7591
|
"aria-hidden": "true",
|
|
7591
7592
|
children: currencySymbol
|
|
7592
7593
|
}
|
|
@@ -7607,7 +7608,7 @@ function FormPriceInput({
|
|
|
7607
7608
|
"aria-invalid": error ? true : false,
|
|
7608
7609
|
"aria-describedby": describedBy,
|
|
7609
7610
|
"aria-label": label ? `${label} in ${currencySymbol}` : void 0,
|
|
7610
|
-
className: `w-full bg-transparent tabular-nums ${sizes3.input} ${sizes3.padding} text-
|
|
7611
|
+
className: `w-full bg-transparent tabular-nums ${sizes3.input} ${sizes3.padding} text-slate-900 placeholder:text-slate-500 focus:outline-none dark:text-white dark:placeholder:text-slate-500 ${colorClass ?? ""} ${className}`
|
|
7611
7612
|
}
|
|
7612
7613
|
)
|
|
7613
7614
|
] }) }),
|
|
@@ -7643,7 +7644,7 @@ function FormSelect({
|
|
|
7643
7644
|
required,
|
|
7644
7645
|
"aria-invalid": error ? true : void 0,
|
|
7645
7646
|
"aria-describedby": describedBy,
|
|
7646
|
-
className: `w-full bg-transparent ${sizeClasses2[inputSize]} text-
|
|
7647
|
+
className: `w-full bg-transparent ${sizeClasses2[inputSize]} text-slate-900 focus:outline-none dark:text-white ${className}`,
|
|
7647
7648
|
onChange: (event) => onValueChange?.(event.target.value),
|
|
7648
7649
|
children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: option.value, children: option.label }, option.value))
|
|
7649
7650
|
}
|
|
@@ -7684,8 +7685,8 @@ function FormActions({
|
|
|
7684
7685
|
className
|
|
7685
7686
|
}) {
|
|
7686
7687
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx4__default.default("flex justify-end gap-2 border-t border-gray-200 pt-4 dark:border-gray-700", className), children: [
|
|
7687
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7688
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7688
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEBARYRSA_js.Button, { type: "button", outline: true, onClick: onCancel, children: cancelLabel }),
|
|
7689
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEBARYRSA_js.Button, { type: "button", onClick: onSave, disabled: saveDisabled, children: saveLabel })
|
|
7689
7690
|
] });
|
|
7690
7691
|
}
|
|
7691
7692
|
function FormToggle({
|
|
@@ -7827,7 +7828,7 @@ function BaseForm({
|
|
|
7827
7828
|
children,
|
|
7828
7829
|
showFooter && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2 pt-4", children: [
|
|
7829
7830
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7830
|
-
|
|
7831
|
+
chunkEBARYRSA_js.Button,
|
|
7831
7832
|
{
|
|
7832
7833
|
type: "submit",
|
|
7833
7834
|
color: "ios-glass-blue",
|
|
@@ -7839,7 +7840,7 @@ function BaseForm({
|
|
|
7839
7840
|
}
|
|
7840
7841
|
),
|
|
7841
7842
|
onCancel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7842
|
-
|
|
7843
|
+
chunkEBARYRSA_js.Button,
|
|
7843
7844
|
{
|
|
7844
7845
|
type: "button",
|
|
7845
7846
|
outline: true,
|
|
@@ -7860,9 +7861,9 @@ function ExpandableHistoryList({
|
|
|
7860
7861
|
className = "space-y-3"
|
|
7861
7862
|
}) {
|
|
7862
7863
|
const [expandedItemId, setExpandedItemId] = React9.useState(null);
|
|
7863
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "py-6 text-center text-sm text-
|
|
7864
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "py-6 text-center text-sm text-slate-500 dark:text-slate-400", children: loadingLabel }) : items.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "py-6 text-center text-sm text-gray-500 dark:text-gray-400", children: emptyLabel }) : items.map((item) => {
|
|
7864
7865
|
const isExpanded = expandedItemId === item.id;
|
|
7865
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-xl border border-
|
|
7866
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-xl border border-slate-200/80 dark:border-slate-700/80", children: [
|
|
7866
7867
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7867
7868
|
"button",
|
|
7868
7869
|
{
|
|
@@ -7870,17 +7871,17 @@ function ExpandableHistoryList({
|
|
|
7870
7871
|
onClick: () => setExpandedItemId(
|
|
7871
7872
|
(previousExpandedItemId) => previousExpandedItemId === item.id ? null : item.id
|
|
7872
7873
|
),
|
|
7873
|
-
className: "w-full px-4 py-3 text-left hover:bg-
|
|
7874
|
+
className: "w-full px-4 py-3 text-left hover:bg-slate-50/80 dark:hover:bg-slate-800/40",
|
|
7874
7875
|
children: [
|
|
7875
7876
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [
|
|
7876
7877
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: item.headerLeft }),
|
|
7877
|
-
item.headerRight ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-
|
|
7878
|
+
item.headerRight ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-slate-500 dark:text-slate-400", children: item.headerRight }) : null
|
|
7878
7879
|
] }),
|
|
7879
|
-
item.summary ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-
|
|
7880
|
+
item.summary ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-slate-500 dark:text-slate-400", children: item.summary }) : null
|
|
7880
7881
|
]
|
|
7881
7882
|
}
|
|
7882
7883
|
),
|
|
7883
|
-
isExpanded && item.details ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3 border-t border-
|
|
7884
|
+
isExpanded && item.details ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3 border-t border-slate-200/80 px-4 py-3 dark:border-slate-700/80", children: item.details }) : null
|
|
7884
7885
|
] }, item.id);
|
|
7885
7886
|
}) });
|
|
7886
7887
|
}
|
|
@@ -8021,7 +8022,7 @@ function StepFormPage({
|
|
|
8021
8022
|
headerRight,
|
|
8022
8023
|
children
|
|
8023
8024
|
}) {
|
|
8024
|
-
const translation =
|
|
8025
|
+
const translation = chunkY5VN4SPH_js.useTranslations("forms");
|
|
8025
8026
|
const isLastStep = currentStep === steps.length - 1;
|
|
8026
8027
|
const isFirstStep = currentStep === 0;
|
|
8027
8028
|
const handleBack = () => {
|
|
@@ -8087,7 +8088,7 @@ function StepFormPage({
|
|
|
8087
8088
|
) }),
|
|
8088
8089
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6 flex items-center justify-between border-t border-white/30 pt-5 dark:border-white/10", children: [
|
|
8089
8090
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8090
|
-
|
|
8091
|
+
chunkEBARYRSA_js.Button,
|
|
8091
8092
|
{
|
|
8092
8093
|
type: "button",
|
|
8093
8094
|
onClick: handleBack,
|
|
@@ -8096,7 +8097,7 @@ function StepFormPage({
|
|
|
8096
8097
|
}
|
|
8097
8098
|
),
|
|
8098
8099
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8099
|
-
|
|
8100
|
+
chunkEBARYRSA_js.Button,
|
|
8100
8101
|
{
|
|
8101
8102
|
type: "button",
|
|
8102
8103
|
onClick: handleNext,
|
|
@@ -8713,7 +8714,7 @@ function CookieConsent({
|
|
|
8713
8714
|
onAccept,
|
|
8714
8715
|
onReject
|
|
8715
8716
|
} = {}) {
|
|
8716
|
-
const t =
|
|
8717
|
+
const t = chunkY5VN4SPH_js.useTranslations("common.cookieConsent");
|
|
8717
8718
|
const [visible, setVisible] = React9.useState(false);
|
|
8718
8719
|
React9.useEffect(() => {
|
|
8719
8720
|
const consent = localStorage.getItem(storageKey);
|
|
@@ -8754,8 +8755,8 @@ function CookieConsent({
|
|
|
8754
8755
|
children: t("learnMore")
|
|
8755
8756
|
}
|
|
8756
8757
|
),
|
|
8757
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8758
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8758
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEBARYRSA_js.Button, { onClick: handleReject, outline: true, children: t("reject") }),
|
|
8759
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEBARYRSA_js.Button, { onClick: handleAccept, color: "ios-glass-blue", children: t("accept") })
|
|
8759
8760
|
] })
|
|
8760
8761
|
] }) })
|
|
8761
8762
|
}
|
|
@@ -9160,7 +9161,7 @@ function NavigationProgress() {
|
|
|
9160
9161
|
return /* @__PURE__ */ jsxRuntime.jsx(reactTransitionProgress.ProgressBar, { className: "fixed h-1 top-0 z-[200] bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 shadow-lg shadow-purple-500/20" });
|
|
9161
9162
|
}
|
|
9162
9163
|
function PageLoadingState({ label, compact = false }) {
|
|
9163
|
-
const t =
|
|
9164
|
+
const t = chunkY5VN4SPH_js.useTranslations("common");
|
|
9164
9165
|
const resolvedLabel = label || t("loading");
|
|
9165
9166
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9166
9167
|
"div",
|
|
@@ -9286,9 +9287,9 @@ var AvatarButton = React9.forwardRef(function AvatarButton2({
|
|
|
9286
9287
|
"focus:not-data-focus:outline-hidden data-focus:outline-2 data-focus:outline-offset-2 data-focus:outline-indigo-500/70"
|
|
9287
9288
|
);
|
|
9288
9289
|
if (typeof props.href === "string") {
|
|
9289
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9290
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEBARYRSA_js.Link, { ...props, className: classes, ref, children: /* @__PURE__ */ jsxRuntime.jsx(chunkEBARYRSA_js.TouchTarget, { children: /* @__PURE__ */ jsxRuntime.jsx(Avatar, { src, square, initials, alt, tone }) }) });
|
|
9290
9291
|
}
|
|
9291
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Headless3__namespace.Button, { ...props, className: classes, ref, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9292
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Headless3__namespace.Button, { ...props, className: classes, ref, children: /* @__PURE__ */ jsxRuntime.jsx(chunkEBARYRSA_js.TouchTarget, { children: /* @__PURE__ */ jsxRuntime.jsx(Avatar, { src, square, initials, alt, tone }) }) });
|
|
9292
9293
|
});
|
|
9293
9294
|
function ImageUpload({
|
|
9294
9295
|
src,
|
|
@@ -9383,7 +9384,7 @@ function ImageUpload({
|
|
|
9383
9384
|
] });
|
|
9384
9385
|
}
|
|
9385
9386
|
function Breadcrumb({ pages, actions, centerContent, dashboardPath = "/dashboard" }) {
|
|
9386
|
-
const t =
|
|
9387
|
+
const t = chunkY5VN4SPH_js.useTranslations("common");
|
|
9387
9388
|
const currentPage = pages.find((page) => page.current) || pages[pages.length - 1];
|
|
9388
9389
|
const parentPage = pages.length > 1 ? pages[pages.length - 2] : null;
|
|
9389
9390
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -9393,7 +9394,7 @@ function Breadcrumb({ pages, actions, centerContent, dashboardPath = "/dashboard
|
|
|
9393
9394
|
className: "liquid-surface-strong sticky top-2 z-30 mx-4 rounded-2xl sm:mx-6 lg:mx-8",
|
|
9394
9395
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid w-full grid-cols-[1fr_auto_1fr] items-center gap-3 px-4 py-2.5 sm:px-6 lg:px-8", children: [
|
|
9395
9396
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0", children: parentPage ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9396
|
-
|
|
9397
|
+
chunkEBARYRSA_js.Link,
|
|
9397
9398
|
{
|
|
9398
9399
|
href: parentPage.href,
|
|
9399
9400
|
className: "inline-flex max-w-full items-center gap-1 rounded-full px-2 py-1 text-sm font-medium text-slate-600 hover:bg-white/60 dark:text-slate-300 dark:hover:bg-white/10",
|
|
@@ -9403,7 +9404,7 @@ function Breadcrumb({ pages, actions, centerContent, dashboardPath = "/dashboard
|
|
|
9403
9404
|
]
|
|
9404
9405
|
}
|
|
9405
9406
|
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9406
|
-
|
|
9407
|
+
chunkEBARYRSA_js.Link,
|
|
9407
9408
|
{
|
|
9408
9409
|
href: dashboardPath,
|
|
9409
9410
|
className: "inline-flex items-center gap-1 rounded-full px-2 py-1 text-sm font-medium text-slate-600 hover:bg-white/60 dark:text-slate-300 dark:hover:bg-white/10",
|
|
@@ -9426,7 +9427,7 @@ function CreateActionButton({
|
|
|
9426
9427
|
mode = "responsive"
|
|
9427
9428
|
}) {
|
|
9428
9429
|
const buttonContent = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9429
|
-
|
|
9430
|
+
chunkEBARYRSA_js.Button,
|
|
9430
9431
|
{
|
|
9431
9432
|
type: "button",
|
|
9432
9433
|
onClick,
|
|
@@ -9666,7 +9667,7 @@ function FlyoutQuickActions({
|
|
|
9666
9667
|
onSignOut,
|
|
9667
9668
|
onClose
|
|
9668
9669
|
}) {
|
|
9669
|
-
const t =
|
|
9670
|
+
const t = chunkY5VN4SPH_js.useTranslations("common");
|
|
9670
9671
|
const isDark = resolvedTheme === "dark";
|
|
9671
9672
|
const handleAction = (action) => {
|
|
9672
9673
|
onClose?.();
|
|
@@ -9729,7 +9730,7 @@ function FlyoutNavGrid({
|
|
|
9729
9730
|
getAccentRgb,
|
|
9730
9731
|
searchFocusRingClass = "focus-ring-indigo"
|
|
9731
9732
|
}) {
|
|
9732
|
-
const t =
|
|
9733
|
+
const t = chunkY5VN4SPH_js.useTranslations("common");
|
|
9733
9734
|
const [query, setQuery] = React9.useState("");
|
|
9734
9735
|
const isCurrentPath = (href) => href === "/dashboard" ? currentPath === "/dashboard" : currentPath.startsWith(href);
|
|
9735
9736
|
const normalizedQuery = query.trim().toLowerCase();
|
|
@@ -9918,8 +9919,8 @@ function MonthPicker({
|
|
|
9918
9919
|
side = "bottom",
|
|
9919
9920
|
avoidCollisions = true
|
|
9920
9921
|
}) {
|
|
9921
|
-
const locale$1 =
|
|
9922
|
-
const t =
|
|
9922
|
+
const locale$1 = chunkY5VN4SPH_js.useLocale();
|
|
9923
|
+
const t = chunkY5VN4SPH_js.useTranslations("common");
|
|
9923
9924
|
const dateFnsLocale = dateFnsLocales2[locale$1] || locale.ptBR;
|
|
9924
9925
|
const months = React9__namespace.useMemo(() => getLocalizedMonths(dateFnsLocale), [dateFnsLocale]);
|
|
9925
9926
|
const defaultPlaceholder = t("selectMonth");
|
|
@@ -10165,7 +10166,7 @@ function PageEmptyState({ title, message, iconName, customIcon }) {
|
|
|
10165
10166
|
{
|
|
10166
10167
|
initial: prefersReducedMotion2 ? false : { opacity: 0, scale: 0.95 },
|
|
10167
10168
|
animate: prefersReducedMotion2 ? noMotion : { opacity: 1, scale: 1 },
|
|
10168
|
-
transition: prefersReducedMotion2 ? noTransition :
|
|
10169
|
+
transition: prefersReducedMotion2 ? noTransition : chunkEBARYRSA_js.springPresets.gentle,
|
|
10169
10170
|
className: "liquid-surface w-full max-w-lg rounded-2xl px-8 py-14 text-center",
|
|
10170
10171
|
children: [
|
|
10171
10172
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10173,7 +10174,7 @@ function PageEmptyState({ title, message, iconName, customIcon }) {
|
|
|
10173
10174
|
{
|
|
10174
10175
|
initial: prefersReducedMotion2 ? false : { scale: 0.6, opacity: 0 },
|
|
10175
10176
|
animate: prefersReducedMotion2 ? noMotion : { scale: 1, opacity: 1 },
|
|
10176
|
-
transition: prefersReducedMotion2 ? noTransition :
|
|
10177
|
+
transition: prefersReducedMotion2 ? noTransition : chunkEBARYRSA_js.springPresets.bouncy,
|
|
10177
10178
|
className: "mx-auto mb-6",
|
|
10178
10179
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: `inline-flex h-20 w-20 items-center justify-center rounded-full backdrop-blur-md border ${accent.container}`, children: customIcon ?? /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: `h-10 w-10 ${accent.icon}` }) })
|
|
10179
10180
|
}
|
|
@@ -10184,7 +10185,7 @@ function PageEmptyState({ title, message, iconName, customIcon }) {
|
|
|
10184
10185
|
"data-testid": "empty-state-title",
|
|
10185
10186
|
initial: prefersReducedMotion2 ? false : { y: 12, opacity: 0 },
|
|
10186
10187
|
animate: prefersReducedMotion2 ? noMotion : { y: 0, opacity: 1 },
|
|
10187
|
-
transition: prefersReducedMotion2 ? noTransition : { ...
|
|
10188
|
+
transition: prefersReducedMotion2 ? noTransition : { ...chunkEBARYRSA_js.springPresets.default, delay: 0.1 },
|
|
10188
10189
|
className: "text-xl font-semibold text-gray-900 dark:text-white",
|
|
10189
10190
|
children: title
|
|
10190
10191
|
}
|
|
@@ -10195,7 +10196,7 @@ function PageEmptyState({ title, message, iconName, customIcon }) {
|
|
|
10195
10196
|
"data-testid": "empty-state-message",
|
|
10196
10197
|
initial: prefersReducedMotion2 ? false : { y: 12, opacity: 0 },
|
|
10197
10198
|
animate: prefersReducedMotion2 ? noMotion : { y: 0, opacity: 1 },
|
|
10198
|
-
transition: prefersReducedMotion2 ? noTransition : { ...
|
|
10199
|
+
transition: prefersReducedMotion2 ? noTransition : { ...chunkEBARYRSA_js.springPresets.default, delay: 0.15 },
|
|
10199
10200
|
className: "mt-3 text-sm text-gray-500 dark:text-gray-400 max-w-sm mx-auto leading-relaxed",
|
|
10200
10201
|
children: message
|
|
10201
10202
|
}
|
|
@@ -10212,7 +10213,7 @@ function PageEmptyState({ title, message, iconName, customIcon }) {
|
|
|
10212
10213
|
{
|
|
10213
10214
|
initial: prefersReducedMotion2 ? false : { scale: 0 },
|
|
10214
10215
|
animate: prefersReducedMotion2 ? noMotion : { scale: 1 },
|
|
10215
|
-
transition: prefersReducedMotion2 ? noTransition : { ...
|
|
10216
|
+
transition: prefersReducedMotion2 ? noTransition : { ...chunkEBARYRSA_js.springPresets.bouncy, delay: 0.35 + i * 0.08 },
|
|
10216
10217
|
className: "h-1.5 w-1.5 rounded-full bg-gray-300 dark:bg-gray-600"
|
|
10217
10218
|
},
|
|
10218
10219
|
i
|
|
@@ -10248,7 +10249,7 @@ function PageErrorState({
|
|
|
10248
10249
|
{
|
|
10249
10250
|
initial: prefersReducedMotion2 ? false : { opacity: 0, scale: 0.95 },
|
|
10250
10251
|
animate: prefersReducedMotion2 ? noMotion : { opacity: 1, scale: 1 },
|
|
10251
|
-
transition: prefersReducedMotion2 ? noTransition :
|
|
10252
|
+
transition: prefersReducedMotion2 ? noTransition : chunkEBARYRSA_js.springPresets.gentle,
|
|
10252
10253
|
className: "liquid-surface w-full max-w-2xl rounded-2xl px-12 py-14 text-center",
|
|
10253
10254
|
children: [
|
|
10254
10255
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10256,7 +10257,7 @@ function PageErrorState({
|
|
|
10256
10257
|
{
|
|
10257
10258
|
initial: prefersReducedMotion2 ? false : { scale: 0.6, opacity: 0 },
|
|
10258
10259
|
animate: prefersReducedMotion2 ? noMotion : { scale: 1, opacity: 1 },
|
|
10259
|
-
transition: prefersReducedMotion2 ? noTransition :
|
|
10260
|
+
transition: prefersReducedMotion2 ? noTransition : chunkEBARYRSA_js.springPresets.bouncy,
|
|
10260
10261
|
className: "mx-auto mb-6",
|
|
10261
10262
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "inline-flex h-20 w-20 items-center justify-center rounded-full backdrop-blur-md border bg-red-50/80 dark:bg-red-900/30 border-red-100/50 dark:border-red-800/30", children: customIcon ?? /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ExclamationTriangleIcon, { className: "h-10 w-10 text-red-500 dark:text-red-400" }) })
|
|
10262
10263
|
}
|
|
@@ -10266,7 +10267,7 @@ function PageErrorState({
|
|
|
10266
10267
|
{
|
|
10267
10268
|
initial: prefersReducedMotion2 ? false : { y: 12, opacity: 0 },
|
|
10268
10269
|
animate: prefersReducedMotion2 ? noMotion : { y: 0, opacity: 1 },
|
|
10269
|
-
transition: prefersReducedMotion2 ? noTransition : { ...
|
|
10270
|
+
transition: prefersReducedMotion2 ? noTransition : { ...chunkEBARYRSA_js.springPresets.default, delay: 0.05 },
|
|
10270
10271
|
className: "mb-1 text-sm font-semibold tracking-widest text-red-500 dark:text-red-400",
|
|
10271
10272
|
children: statusCode
|
|
10272
10273
|
}
|
|
@@ -10277,7 +10278,7 @@ function PageErrorState({
|
|
|
10277
10278
|
"data-testid": "error-state-title",
|
|
10278
10279
|
initial: prefersReducedMotion2 ? false : { y: 12, opacity: 0 },
|
|
10279
10280
|
animate: prefersReducedMotion2 ? noMotion : { y: 0, opacity: 1 },
|
|
10280
|
-
transition: prefersReducedMotion2 ? noTransition : { ...
|
|
10281
|
+
transition: prefersReducedMotion2 ? noTransition : { ...chunkEBARYRSA_js.springPresets.default, delay: 0.1 },
|
|
10281
10282
|
className: "text-xl font-semibold text-gray-900 dark:text-white",
|
|
10282
10283
|
children: title
|
|
10283
10284
|
}
|
|
@@ -10288,7 +10289,7 @@ function PageErrorState({
|
|
|
10288
10289
|
"data-testid": "error-state-message",
|
|
10289
10290
|
initial: prefersReducedMotion2 ? false : { y: 12, opacity: 0 },
|
|
10290
10291
|
animate: prefersReducedMotion2 ? noMotion : { y: 0, opacity: 1 },
|
|
10291
|
-
transition: prefersReducedMotion2 ? noTransition : { ...
|
|
10292
|
+
transition: prefersReducedMotion2 ? noTransition : { ...chunkEBARYRSA_js.springPresets.default, delay: 0.15 },
|
|
10292
10293
|
className: "mt-3 text-sm text-gray-500 dark:text-gray-400 max-w-sm mx-auto leading-relaxed",
|
|
10293
10294
|
children: message
|
|
10294
10295
|
}
|
|
@@ -10298,15 +10299,15 @@ function PageErrorState({
|
|
|
10298
10299
|
{
|
|
10299
10300
|
initial: prefersReducedMotion2 ? false : { y: 12, opacity: 0 },
|
|
10300
10301
|
animate: prefersReducedMotion2 ? noMotion : { y: 0, opacity: 1 },
|
|
10301
|
-
transition: prefersReducedMotion2 ? noTransition : { ...
|
|
10302
|
+
transition: prefersReducedMotion2 ? noTransition : { ...chunkEBARYRSA_js.springPresets.default, delay: 0.25 },
|
|
10302
10303
|
className: "mt-8",
|
|
10303
10304
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
10304
|
-
|
|
10305
|
+
chunkEBARYRSA_js.Button,
|
|
10305
10306
|
{
|
|
10306
10307
|
type: "button",
|
|
10308
|
+
destructive: true,
|
|
10307
10309
|
onClick: onRetry,
|
|
10308
10310
|
"data-testid": "error-state-retry",
|
|
10309
|
-
className: "rounded-xl bg-red-600 px-6 py-2.5 text-sm font-semibold text-white shadow-lg shadow-red-500/20 transition-all hover:bg-red-700 hover:shadow-red-500/30 active:scale-[0.97] dark:bg-red-500 dark:hover:bg-red-600 dark:shadow-red-500/10",
|
|
10310
10311
|
children: retryLabel
|
|
10311
10312
|
}
|
|
10312
10313
|
)
|
|
@@ -10324,7 +10325,7 @@ function PageErrorState({
|
|
|
10324
10325
|
{
|
|
10325
10326
|
initial: prefersReducedMotion2 ? false : { scale: 0 },
|
|
10326
10327
|
animate: prefersReducedMotion2 ? noMotion : { scale: 1 },
|
|
10327
|
-
transition: prefersReducedMotion2 ? noTransition : { ...
|
|
10328
|
+
transition: prefersReducedMotion2 ? noTransition : { ...chunkEBARYRSA_js.springPresets.bouncy, delay: 0.35 + i * 0.08 },
|
|
10328
10329
|
className: "h-1.5 w-1.5 rounded-full bg-red-300 dark:bg-red-700"
|
|
10329
10330
|
},
|
|
10330
10331
|
i
|
|
@@ -10798,7 +10799,7 @@ function StatusToggle({
|
|
|
10798
10799
|
onIcon,
|
|
10799
10800
|
className
|
|
10800
10801
|
}) {
|
|
10801
|
-
const translation =
|
|
10802
|
+
const translation = chunkY5VN4SPH_js.useTranslations("common");
|
|
10802
10803
|
const resolvedOffLabel = offLabel ?? translation("inactive");
|
|
10803
10804
|
const resolvedOnLabel = onLabel ?? translation("active");
|
|
10804
10805
|
const resolvedOffIcon = offIcon ?? /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.XCircleIcon, { className: "h-4 w-4" });
|
|
@@ -10862,16 +10863,16 @@ function FieldRenderer({ field }) {
|
|
|
10862
10863
|
className: [GLASS_INPUT, field.copyable ? "pr-10" : ""].join(" ")
|
|
10863
10864
|
}
|
|
10864
10865
|
),
|
|
10865
|
-
field.copyable ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
10866
|
-
|
|
10866
|
+
field.copyable ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-3 top-1/2 -translate-y-1/2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
10867
|
+
chunkEBARYRSA_js.IconButton,
|
|
10867
10868
|
{
|
|
10868
|
-
|
|
10869
|
+
label: `Copy ${field.label}`,
|
|
10870
|
+
variant: "ghost",
|
|
10871
|
+
size: "sm",
|
|
10869
10872
|
onClick: () => navigator.clipboard.writeText(field.value),
|
|
10870
|
-
|
|
10871
|
-
"aria-label": `Copy ${field.label}`,
|
|
10872
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ClipboardDocumentIcon, { className: "h-4 w-4" })
|
|
10873
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.ClipboardDocumentIcon, { className: "h-4 w-4" })
|
|
10873
10874
|
}
|
|
10874
|
-
) : null
|
|
10875
|
+
) }) : null
|
|
10875
10876
|
] }),
|
|
10876
10877
|
field.description ? /* @__PURE__ */ jsxRuntime.jsx(Description3, { className: "text-xs text-slate-500 dark:text-slate-400", children: field.description }) : null
|
|
10877
10878
|
] });
|
|
@@ -10908,7 +10909,7 @@ function ProfileContent({ config }) {
|
|
|
10908
10909
|
) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xl font-bold text-white", children: config.initials })
|
|
10909
10910
|
}
|
|
10910
10911
|
),
|
|
10911
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10912
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkEBARYRSA_js.Button, { color: "zinc", onClick: config.onChangeAvatar, className: "flex items-center gap-2", children: [
|
|
10912
10913
|
/* @__PURE__ */ jsxRuntime.jsx(HeroIcons.UserIcon, { className: "h-4 w-4" }),
|
|
10913
10914
|
config.changeAvatarLabel
|
|
10914
10915
|
] })
|
|
@@ -10957,7 +10958,7 @@ function ProfileContent({ config }) {
|
|
|
10957
10958
|
)
|
|
10958
10959
|
] }),
|
|
10959
10960
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10960
|
-
|
|
10961
|
+
chunkEBARYRSA_js.Button,
|
|
10961
10962
|
{
|
|
10962
10963
|
color: "blue",
|
|
10963
10964
|
className: "mt-2",
|
|
@@ -11158,7 +11159,7 @@ function SettingsModal({
|
|
|
11158
11159
|
}
|
|
11159
11160
|
return /* @__PURE__ */ jsxRuntime.jsx(PlaceholderContent, { message: placeholderMessage });
|
|
11160
11161
|
};
|
|
11161
|
-
const footer = signOut ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11162
|
+
const footer = signOut ? /* @__PURE__ */ jsxRuntime.jsxs(chunkEBARYRSA_js.Button, { type: "button", onClick: signOut.onClick, color: "ios-glass-red", fullWidth: true, children: [
|
|
11162
11163
|
signOut.icon,
|
|
11163
11164
|
signOut.label
|
|
11164
11165
|
] }) : sidebarFooter;
|
|
@@ -11239,7 +11240,7 @@ function OtpInput({
|
|
|
11239
11240
|
autoFocus = false,
|
|
11240
11241
|
inputMode = "numeric"
|
|
11241
11242
|
}) {
|
|
11242
|
-
const t =
|
|
11243
|
+
const t = chunkY5VN4SPH_js.useTranslations("auth");
|
|
11243
11244
|
const groupId = React9.useId();
|
|
11244
11245
|
const inputsRef = React9.useRef([]);
|
|
11245
11246
|
const digits = value.split("").concat(Array(length).fill("")).slice(0, length);
|
|
@@ -11414,7 +11415,7 @@ function PasswordStrengthMeter({
|
|
|
11414
11415
|
policy = DEFAULT_POLICY,
|
|
11415
11416
|
showRequirements = false
|
|
11416
11417
|
}) {
|
|
11417
|
-
const t =
|
|
11418
|
+
const t = chunkY5VN4SPH_js.useTranslations("auth");
|
|
11418
11419
|
const requirements = React9.useMemo(
|
|
11419
11420
|
() => evaluateRequirements(password, policy),
|
|
11420
11421
|
[password, policy]
|
|
@@ -11438,7 +11439,7 @@ function PasswordStrengthMeter({
|
|
|
11438
11439
|
className: `h-1.5 flex-1 rounded-full ${index < strength ? STRENGTH_COLORS[strength - 1] : "bg-gray-200 dark:bg-gray-700"}`,
|
|
11439
11440
|
initial: { scaleX: 0 },
|
|
11440
11441
|
animate: { scaleX: index < strength ? 1 : 0.5 },
|
|
11441
|
-
transition:
|
|
11442
|
+
transition: chunkEBARYRSA_js.springPresets.stiff,
|
|
11442
11443
|
style: { transformOrigin: "left" }
|
|
11443
11444
|
},
|
|
11444
11445
|
index
|
|
@@ -11467,7 +11468,7 @@ function BackupCodeGrid({
|
|
|
11467
11468
|
revealed = true,
|
|
11468
11469
|
onReveal
|
|
11469
11470
|
}) {
|
|
11470
|
-
const t =
|
|
11471
|
+
const t = chunkY5VN4SPH_js.useTranslations("auth");
|
|
11471
11472
|
const handleCopyAll = React9.useCallback(async () => {
|
|
11472
11473
|
const text = codes.join("\n");
|
|
11473
11474
|
await navigator.clipboard.writeText(text);
|
|
@@ -11496,7 +11497,7 @@ function BackupCodeGrid({
|
|
|
11496
11497
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
11497
11498
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "liquid-surface-strong rounded-xl p-4", children: !revealed ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center py-8 gap-3", children: [
|
|
11498
11499
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: t("backupCodesHidden") }),
|
|
11499
|
-
onReveal && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11500
|
+
onReveal && /* @__PURE__ */ jsxRuntime.jsx(chunkEBARYRSA_js.Button, { outline: true, onClick: onReveal, children: t("backupCodesReveal") })
|
|
11500
11501
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 gap-2", children: codes.map((code, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11501
11502
|
"div",
|
|
11502
11503
|
{
|
|
@@ -11512,11 +11513,11 @@ function BackupCodeGrid({
|
|
|
11512
11513
|
index
|
|
11513
11514
|
)) }) }),
|
|
11514
11515
|
revealed && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
11515
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
11516
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkEBARYRSA_js.Button, { outline: true, size: "sm", onClick: handleCopyAll, children: [
|
|
11516
11517
|
/* @__PURE__ */ jsxRuntime.jsx(solid.ClipboardDocumentIcon, { className: "h-4 w-4" }),
|
|
11517
11518
|
t("backupCodesCopyAll")
|
|
11518
11519
|
] }),
|
|
11519
|
-
showDownload && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11520
|
+
showDownload && /* @__PURE__ */ jsxRuntime.jsxs(chunkEBARYRSA_js.Button, { outline: true, size: "sm", onClick: handleDownload, children: [
|
|
11520
11521
|
/* @__PURE__ */ jsxRuntime.jsx(solid.ArrowDownTrayIcon, { className: "h-4 w-4" }),
|
|
11521
11522
|
t("backupCodesDownload")
|
|
11522
11523
|
] })
|
|
@@ -11552,10 +11553,10 @@ function SocialLoginButtons({
|
|
|
11552
11553
|
loading = null,
|
|
11553
11554
|
disabled = false
|
|
11554
11555
|
}) {
|
|
11555
|
-
const t =
|
|
11556
|
+
const t = chunkY5VN4SPH_js.useTranslations("auth");
|
|
11556
11557
|
const isColumn = layout === "column";
|
|
11557
11558
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex ${isColumn ? "flex-col" : "flex-row"} gap-2`, children: providers.map((provider) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11558
|
-
|
|
11559
|
+
chunkEBARYRSA_js.Button,
|
|
11559
11560
|
{
|
|
11560
11561
|
outline: true,
|
|
11561
11562
|
fullWidth: isColumn,
|
|
@@ -11866,7 +11867,7 @@ function RadiantHeading({
|
|
|
11866
11867
|
...props,
|
|
11867
11868
|
className: clsx4.clsx(
|
|
11868
11869
|
className,
|
|
11869
|
-
"text-4xl font-bold tracking-tight text-
|
|
11870
|
+
"text-4xl font-bold tracking-tight text-slate-900 dark:text-white sm:text-5xl lg:text-6xl"
|
|
11870
11871
|
)
|
|
11871
11872
|
}
|
|
11872
11873
|
);
|
|
@@ -11895,7 +11896,7 @@ function Lead({
|
|
|
11895
11896
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11896
11897
|
"p",
|
|
11897
11898
|
{
|
|
11898
|
-
className: clsx4.clsx(className, "text-xl text-
|
|
11899
|
+
className: clsx4.clsx(className, "text-xl text-slate-600 dark:text-slate-400 leading-relaxed"),
|
|
11899
11900
|
...props
|
|
11900
11901
|
}
|
|
11901
11902
|
);
|
|
@@ -11973,19 +11974,18 @@ function BentoCard({
|
|
|
11973
11974
|
className: clsx4.clsx(
|
|
11974
11975
|
className,
|
|
11975
11976
|
"group relative flex flex-col overflow-hidden rounded-2xl",
|
|
11976
|
-
"
|
|
11977
|
-
"border border-gray-200 dark:border-gray-700"
|
|
11977
|
+
"liquid-surface shadow-lg hover:shadow-xl transition-shadow"
|
|
11978
11978
|
),
|
|
11979
11979
|
children: [
|
|
11980
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative h-80 shrink-0 overflow-hidden bg-gradient-to-br from-
|
|
11980
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative h-80 shrink-0 overflow-hidden bg-gradient-to-br from-slate-100 to-slate-50 dark:from-slate-700 dark:to-slate-800", children: [
|
|
11981
11981
|
graphic,
|
|
11982
|
-
fade.includes("top") && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-gradient-to-b from-white dark:from-
|
|
11983
|
-
fade.includes("bottom") && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-white dark:from-
|
|
11982
|
+
fade.includes("top") && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-gradient-to-b from-white dark:from-slate-800 to-transparent opacity-40" }),
|
|
11983
|
+
fade.includes("bottom") && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-white dark:from-slate-800 to-transparent opacity-40" })
|
|
11984
11984
|
] }),
|
|
11985
11985
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative p-8 sm:p-10", children: [
|
|
11986
11986
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-semibold text-blue-600 dark:text-blue-400 uppercase tracking-wider mb-2", children: eyebrow }),
|
|
11987
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-2xl font-bold tracking-tight text-
|
|
11988
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-3 max-w-xl text-base text-
|
|
11987
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-2xl font-bold tracking-tight text-slate-900 dark:text-white", children: title }),
|
|
11988
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-3 max-w-xl text-base text-slate-600 dark:text-slate-400 leading-relaxed", children: description })
|
|
11989
11989
|
] })
|
|
11990
11990
|
]
|
|
11991
11991
|
}
|
|
@@ -12056,14 +12056,14 @@ function FeatureCard({
|
|
|
12056
12056
|
initial: { opacity: 0, y: 20 },
|
|
12057
12057
|
whileInView: { opacity: 1, y: 0 },
|
|
12058
12058
|
transition: { duration: 0.5 },
|
|
12059
|
-
className: "group relative rounded-2xl overflow-hidden
|
|
12059
|
+
className: "group liquid-surface relative rounded-2xl overflow-hidden p-8 shadow-md hover:shadow-xl transition-all duration-300",
|
|
12060
12060
|
children: [
|
|
12061
12061
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx4.clsx(
|
|
12062
12062
|
"inline-flex rounded-xl p-3 mb-6",
|
|
12063
12063
|
`bg-gradient-to-br ${gradient}`
|
|
12064
12064
|
), children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-6 w-6 text-white" }) }),
|
|
12065
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-xl font-bold text-
|
|
12066
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-
|
|
12065
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-xl font-bold text-slate-900 dark:text-white mb-2", children: title }),
|
|
12066
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-slate-600 dark:text-slate-400 leading-relaxed", children: description })
|
|
12067
12067
|
]
|
|
12068
12068
|
}
|
|
12069
12069
|
);
|
|
@@ -20060,7 +20060,7 @@ function SkipToContent({
|
|
|
20060
20060
|
"a",
|
|
20061
20061
|
{
|
|
20062
20062
|
href: `#${targetId}`,
|
|
20063
|
-
className: "sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-[9999] focus:rounded-lg focus:bg-white focus:px-4 focus:py-2 focus:text-sm focus:font-semibold focus:text-indigo-600 focus:shadow-lg focus:ring-2 focus:ring-indigo-500 focus:outline-none dark:focus:bg-
|
|
20063
|
+
className: "sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-[9999] focus:rounded-lg focus:bg-white focus:px-4 focus:py-2 focus:text-sm focus:font-semibold focus:text-indigo-600 focus:shadow-lg focus:ring-2 focus:ring-indigo-500/70 focus:ring-offset-1 focus:outline-none dark:focus:bg-slate-800 dark:focus:text-indigo-400",
|
|
20064
20064
|
"data-testid": "skip-to-content",
|
|
20065
20065
|
children: label
|
|
20066
20066
|
}
|
|
@@ -20802,5 +20802,5 @@ exports.useSocialProviders = useSocialProviders;
|
|
|
20802
20802
|
exports.validateDashboardSpec = validateDashboardSpec;
|
|
20803
20803
|
exports.xScale = xScale;
|
|
20804
20804
|
exports.yScale = yScale;
|
|
20805
|
-
//# sourceMappingURL=chunk-
|
|
20806
|
-
//# sourceMappingURL=chunk-
|
|
20805
|
+
//# sourceMappingURL=chunk-RWZ2PLMQ.js.map
|
|
20806
|
+
//# sourceMappingURL=chunk-RWZ2PLMQ.js.map
|