@lax-wp/design-system 0.13.34 → 0.13.36

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.
Files changed (41) hide show
  1. package/dist/components/data-display/infinite-table/body/cell/CheckboxCell.cjs.js +1 -1
  2. package/dist/components/data-display/infinite-table/body/cell/CheckboxCell.cjs.js.map +1 -1
  3. package/dist/components/data-display/infinite-table/body/cell/CheckboxCell.es.js +23 -23
  4. package/dist/components/data-display/infinite-table/body/cell/CheckboxCell.es.js.map +1 -1
  5. package/dist/components/data-display/infinite-table/head/CheckAll.cjs.js +1 -1
  6. package/dist/components/data-display/infinite-table/head/CheckAll.cjs.js.map +1 -1
  7. package/dist/components/data-display/infinite-table/head/CheckAll.es.js +4 -4
  8. package/dist/components/data-display/infinite-table/head/CheckAll.es.js.map +1 -1
  9. package/dist/components/data-display/infinite-table/head/index.cjs.js +1 -1
  10. package/dist/components/data-display/infinite-table/head/index.cjs.js.map +1 -1
  11. package/dist/components/data-display/infinite-table/head/index.es.js +5 -5
  12. package/dist/components/data-display/infinite-table/head/index.es.js.map +1 -1
  13. package/dist/components/forms/date-time-field/DateTimeField.cjs.js +1 -1
  14. package/dist/components/forms/date-time-field/DateTimeField.cjs.js.map +1 -1
  15. package/dist/components/forms/date-time-field/DateTimeField.es.js +97 -92
  16. package/dist/components/forms/date-time-field/DateTimeField.es.js.map +1 -1
  17. package/dist/components/forms/dynamic-data-input/DynamicDataInputField.cjs.js +1 -1
  18. package/dist/components/forms/dynamic-data-input/DynamicDataInputField.cjs.js.map +1 -1
  19. package/dist/components/forms/dynamic-data-input/DynamicDataInputField.d.ts +6 -0
  20. package/dist/components/forms/dynamic-data-input/DynamicDataInputField.es.js +172 -142
  21. package/dist/components/forms/dynamic-data-input/DynamicDataInputField.es.js.map +1 -1
  22. package/dist/components/forms/link-input/LinkInputField.cjs.js +2 -0
  23. package/dist/components/forms/link-input/LinkInputField.cjs.js.map +1 -0
  24. package/dist/components/forms/link-input/LinkInputField.d.ts +59 -0
  25. package/dist/components/forms/link-input/LinkInputField.es.js +102 -0
  26. package/dist/components/forms/link-input/LinkInputField.es.js.map +1 -0
  27. package/dist/components/forms/master-data-input/MasterDataInputField.cjs.js +1 -1
  28. package/dist/components/forms/master-data-input/MasterDataInputField.cjs.js.map +1 -1
  29. package/dist/components/forms/master-data-input/MasterDataInputField.d.ts +6 -0
  30. package/dist/components/forms/master-data-input/MasterDataInputField.es.js +199 -169
  31. package/dist/components/forms/master-data-input/MasterDataInputField.es.js.map +1 -1
  32. package/dist/components/forms/percentage-input/PercentageInputField.cjs.js +1 -5
  33. package/dist/components/forms/percentage-input/PercentageInputField.cjs.js.map +1 -1
  34. package/dist/components/forms/percentage-input/PercentageInputField.d.ts +6 -0
  35. package/dist/components/forms/percentage-input/PercentageInputField.es.js +141 -134
  36. package/dist/components/forms/percentage-input/PercentageInputField.es.js.map +1 -1
  37. package/dist/index.cjs.js +1 -1
  38. package/dist/index.d.ts +5 -3
  39. package/dist/index.es.js +407 -405
  40. package/dist/index.es.js.map +1 -1
  41. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import { jsx as n, jsxs as f } from "react/jsx-runtime";
2
- import { DatePicker as ue, Tooltip as Le } from "antd";
2
+ import { DatePicker as de, Tooltip as Le } from "antd";
3
3
  import B from "../../../_virtual/index.es.js";
4
4
  import { useTranslation as Ne } from "react-i18next";
5
5
  import l from "dayjs";
6
- import Oe from "dayjs/plugin/customParseFormat";
7
- import Pe from "dayjs/plugin/localeData";
8
- import Re from "dayjs/plugin/utc";
6
+ import Re from "dayjs/plugin/customParseFormat";
7
+ import Oe from "dayjs/plugin/localeData";
8
+ import Pe from "dayjs/plugin/utc";
9
9
  import _e from "dayjs/plugin/weekday";
10
10
  import { forwardRef as $e, useState as V, useRef as X, useCallback as Y, useEffect as A } from "react";
11
11
  import { Typography as we } from "../../data-display/typography/Typography.es.js";
@@ -13,17 +13,17 @@ import { Label as qe } from "../../data-display/label/Label.es.js";
13
13
  import { AIExtractedIndicator as Ke } from "../../icons/AIExtractedIndicator.es.js";
14
14
  import { AIStarIcon as Te } from "../../icons/AIStarIcon.es.js";
15
15
  import { HelpIcon as Ue } from "../../icons/HelpIcon.es.js";
16
- import de from "../../tooltip/Tooltip.es.js";
16
+ import fe from "../../tooltip/Tooltip.es.js";
17
17
  import { BoltOutlined as Ze, NoteAddOutlined as je } from "@mui/icons-material";
18
- import { InputLabel as We } from "../shared/InputLabel.es.js";
19
- import { shouldShowConfidenceScore as fe, getConfidenceScoreBadgeFill as ze, getConfidenceScoreBadgeColor as Xe, getConfidenceScoreBadgeTextColor as Je, getConfidenceScoreBadgeClass as Qe } from "../../../utils/confidenceScoreUtils.es.js";
18
+ import { InputLabel as ze } from "../shared/InputLabel.es.js";
19
+ import { shouldShowConfidenceScore as Ye, getConfidenceScoreBadgeFill as We, getConfidenceScoreBadgeColor as Xe, getConfidenceScoreBadgeTextColor as Je, getConfidenceScoreBadgeClass as Qe } from "../../../utils/confidenceScoreUtils.es.js";
20
+ l.extend(Pe);
20
21
  l.extend(Re);
21
- l.extend(Oe);
22
22
  l.extend(_e);
23
- l.extend(Pe);
24
- const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YYYY-MM-DDTHH:mm:ss", De = {
23
+ l.extend(Oe);
24
+ const Ge = "MM/DD/YYYY", W = "MM/DD/YYYY - hh:mm A", pe = "YYYY-MM-DD", De = "YYYY-MM-DDTHH:mm:ss", Me = {
25
25
  ENTER: "Enter"
26
- }, he = [
26
+ }, Ee = [
27
27
  "MM/DD/YYYY",
28
28
  "M/DD/YYYY",
29
29
  "MM/D/YYYY",
@@ -60,12 +60,12 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
60
60
  "M/DD/YY HH:mm",
61
61
  "MM/D/YY HH:mm",
62
62
  "M/D/YY HH:mm",
63
- ...he,
63
+ ...Ee,
64
64
  "YYYY-MM-DDTHH:mm:ss.SSSZ",
65
65
  "YYYY-MM-DDTHH:mm:ssZ"
66
66
  ], tt = () => Math.random().toString(36).substring(2, 9), F = (c, m = !1) => {
67
67
  if (!c) return null;
68
- const d = m ? et : he;
68
+ const d = m ? et : Ee;
69
69
  for (const p of d) {
70
70
  const b = l(c, p, !0);
71
71
  if (b.isValid())
@@ -73,7 +73,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
73
73
  }
74
74
  const u = l(c);
75
75
  return u.isValid() ? u : null;
76
- }, Me = (c, m) => {
76
+ }, he = (c, m) => {
77
77
  const d = X(m);
78
78
  A(() => {
79
79
  d.current = m;
@@ -94,44 +94,44 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
94
94
  errorMessage: D,
95
95
  handleOnChange: M,
96
96
  showTime: o = !0,
97
- tags: Ee,
98
- needConfirm: ge = !1,
99
- simpleMode: be,
100
- originalCase: ve = !1,
97
+ tags: ge,
98
+ needConfirm: be = !1,
99
+ simpleMode: ve,
100
+ originalCase: ye = !1,
101
101
  dateFormat: J = void 0,
102
102
  tooltip: Q,
103
- isAiExtracted: ye = !1,
103
+ isAiExtracted: Se = !1,
104
104
  confidenceScore: L,
105
105
  confidenceType: v = "high",
106
106
  confidenceTooltip: N,
107
- sourceMeta: Se = [],
108
- onConfidenceScoreClick: Fe,
109
- isGTN: O = !1,
107
+ sourceMeta: Fe = [],
108
+ onConfidenceScoreClick: Ae,
109
+ isGTN: R = !1,
110
110
  gtnName: G = null,
111
- shouldPopOnParent: Ae = !1,
111
+ shouldPopOnParent: ee = !1,
112
112
  allowTimezoneConversion: h = !0,
113
113
  inputStyle: xe,
114
- labelClassName: ke,
115
- isLiveField: He = !1,
116
- labelExtra: ee,
117
- inputEmphasis: P = "default",
114
+ labelClassName: Ie,
115
+ isLiveField: ke = !1,
116
+ labelExtra: te,
117
+ inputEmphasis: O = "default",
118
118
  riskDetails: E,
119
- isRiskAnalysisOpen: R = !1,
120
- RiskDetailsCard: te,
119
+ isRiskAnalysisOpen: P = !1,
120
+ RiskDetailsCard: re,
121
121
  onAddGTNToDocument: x,
122
122
  formatDateForGTN: _,
123
123
  ...$
124
- }, Ie) => {
125
- const { t: Ce } = Ne(), w = !!(R && E?.color), re = P === "modified" && !D && !w, ne = P === "deleted" && !D && !w, oe = P === "success" && !D && !w, [k, q] = V(!1), [le, g] = V(null), [ae, K] = V(
124
+ }, He) => {
125
+ const { t: Ce } = Ne(), w = !!(P && E?.color), ne = O === "modified" && !D && !w, oe = O === "deleted" && !D && !w, le = O === "success" && !D && !w, [I, q] = V(!1), [ae, g] = V(null), [se, K] = V(
126
126
  null
127
- ), [H, se] = V(!1), s = J || (o ? z : Ge), a = $?.id || `date-picker-${tt()}`, y = X(null), I = X(!1);
128
- Me("paste", (e) => {
127
+ ), [k, ie] = V(!1), s = J || (o ? W : Ge), a = $?.id || `date-picker-${tt()}`, y = X(null), H = X(!1);
128
+ he("paste", (e) => {
129
129
  document.activeElement?.id === a && (e.preventDefault(), navigator.clipboard.readText().then((t) => {
130
130
  const r = F(t, o);
131
131
  r && T(r);
132
132
  }));
133
- }), Me("keydown", (e) => {
134
- if (e.key === De.ENTER && document.activeElement instanceof HTMLInputElement && document.activeElement.id === a) {
133
+ }), he("keydown", (e) => {
134
+ if (e.key === Me.ENTER && document.activeElement instanceof HTMLInputElement && document.activeElement.id === a) {
135
135
  const t = F(document?.activeElement?.value, o);
136
136
  t && T(t);
137
137
  }
@@ -163,7 +163,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
163
163
  }, []), S = Y(
164
164
  (e) => {
165
165
  if (!h) {
166
- const t = o ? pe : Ye;
166
+ const t = o ? De : pe;
167
167
  if (M(e ? e.format(t) : null), e) {
168
168
  const r = document.getElementById(a);
169
169
  if (r) {
@@ -203,7 +203,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
203
203
  M(null);
204
204
  },
205
205
  [h, M, o, a, s]
206
- ), ie = Y(
206
+ ), ce = Y(
207
207
  (e) => {
208
208
  if (!e) return null;
209
209
  if (!h)
@@ -232,7 +232,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
232
232
  (e) => {
233
233
  if (e?.isValid() || e === null) {
234
234
  g(e);
235
- const t = o ? pe : Ye, r = h ? e?.toISOString() : e ? e.format(t) : "";
235
+ const t = o ? De : pe, r = h ? e?.toISOString() : e ? e.format(t) : "";
236
236
  if (M(r || null), e?.isValid()) {
237
237
  const i = document.getElementById(a);
238
238
  if (i) {
@@ -253,10 +253,10 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
253
253
  [h, s, M, a, o]
254
254
  );
255
255
  A(() => {
256
- g(ie(m));
257
- }, [m, ie]), A(() => {
258
- ae && K(null);
259
- }, [ae]), A(() => {
256
+ g(ce(m));
257
+ }, [m, ce]), A(() => {
258
+ se && K(null);
259
+ }, [se]), A(() => {
260
260
  const e = document.getElementById(a);
261
261
  if (!e) return;
262
262
  const t = (r) => {
@@ -276,8 +276,8 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
276
276
  setTimeout(() => {
277
277
  document.querySelectorAll(
278
278
  ".ant-picker-dropdown:not(.ant-picker-dropdown-hidden)"
279
- ).forEach((W) => {
280
- W instanceof HTMLElement && (W.style.display = "none", W.classList.add("ant-picker-dropdown-hidden"));
279
+ ).forEach((z) => {
280
+ z instanceof HTMLElement && (z.style.display = "none", z.classList.add("ant-picker-dropdown-hidden"));
281
281
  });
282
282
  }, 50);
283
283
  }, 50));
@@ -293,8 +293,8 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
293
293
  );
294
294
  };
295
295
  }, [a, s, S, o]);
296
- const ce = Y((e) => {
297
- if (e.key === De.ENTER && !H) {
296
+ const me = Y((e) => {
297
+ if (e.key === Me.ENTER && !k) {
298
298
  e.preventDefault(), e.stopPropagation();
299
299
  const t = e.target.closest("form");
300
300
  if (t) {
@@ -302,26 +302,26 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
302
302
  r ? r.click() : t.requestSubmit();
303
303
  }
304
304
  }
305
- }, [H]), me = Y((e) => {
306
- if (e && I.current) {
307
- I.current = !1, se(!1);
305
+ }, [k]), ue = Y((e) => {
306
+ if (e && H.current) {
307
+ H.current = !1, ie(!1);
308
308
  return;
309
309
  }
310
- se(e), e || (I.current = !0, requestAnimationFrame(() => {
310
+ ie(e), e || (H.current = !0, requestAnimationFrame(() => {
311
311
  y.current?.focus(), requestAnimationFrame(() => {
312
- I.current = !1;
312
+ H.current = !1;
313
313
  });
314
314
  }));
315
315
  }, []);
316
- return be ? /* @__PURE__ */ n("div", { onKeyDownCapture: ce, children: /* @__PURE__ */ n(
317
- ue,
316
+ return ve ? /* @__PURE__ */ n("div", { onKeyDownCapture: me, children: /* @__PURE__ */ n(
317
+ de,
318
318
  {
319
319
  ...$,
320
320
  showTime: o,
321
- open: H,
321
+ open: k,
322
322
  format: s,
323
- placeholder: s === z ? "MM/DD/YYYY hh:mm" : s,
324
- value: le,
323
+ placeholder: s === W ? "MM/DD/YYYY hh:mm" : s,
324
+ value: ae,
325
325
  needConfirm: !1,
326
326
  onChange: (e) => {
327
327
  g(e), S(e), K(e?.toISOString() || null);
@@ -329,7 +329,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
329
329
  className: b,
330
330
  showNow: !1,
331
331
  onFocus: Ve,
332
- onOpenChange: me,
332
+ onOpenChange: ue,
333
333
  onBlur: (e) => {
334
334
  const t = e.target.value;
335
335
  if (t) {
@@ -339,29 +339,31 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
339
339
  },
340
340
  ref: y,
341
341
  disabled: p,
342
- id: a
342
+ id: a,
343
+ getPopupContainer: ee ? (e) => e.parentElement : () => document.body,
344
+ styles: { popup: { root: { zIndex: 9999 } } }
343
345
  }
344
346
  ) }) : /* @__PURE__ */ f(
345
347
  "div",
346
348
  {
347
- ref: Ie,
349
+ ref: He,
348
350
  className: B(
349
351
  "flex gap-0.5 relative",
350
- k && O ? "border rounded-lg border-primary-100 bg-primary-50 p-1" : ""
352
+ I && R ? "border rounded-lg border-primary-100 bg-primary-50 p-1" : ""
351
353
  ),
352
354
  onMouseEnter: () => q(!0),
353
355
  onMouseLeave: () => q(!1),
354
356
  children: [
355
- O && !k ? /* @__PURE__ */ n("div", { className: "w-1 h-1 bg-primary-600 rounded-full animate-blink mt-1.5" }) : null,
356
- /* @__PURE__ */ f("div", { className: `w-full flex flex-col font-inter ${b || ""}`, onKeyDownCapture: ce, children: [
357
- c || ee ? /* @__PURE__ */ n(
357
+ R && !I ? /* @__PURE__ */ n("div", { className: "w-1 h-1 bg-primary-600 rounded-full animate-blink mt-1.5" }) : null,
358
+ /* @__PURE__ */ f("div", { className: `w-full flex flex-col font-inter ${b || ""}`, onKeyDownCapture: me, children: [
359
+ c || te ? /* @__PURE__ */ n(
358
360
  "label",
359
361
  {
360
- className: `mb-1 text-xs font-medium text-gray-600 inline-flex items-center gap-1 ${ve ? "" : "capitalize"} ${ke || ""}`,
362
+ className: `mb-1 text-xs font-medium text-gray-600 inline-flex items-center gap-1 ${ye ? "" : "capitalize"} ${Ie || ""}`,
361
363
  children: /* @__PURE__ */ f("div", { className: "grid w-full grid-cols-[minmax(0,1fr)_auto] items-start gap-x-1", children: [
362
364
  /* @__PURE__ */ f("div", { className: "inline-flex min-w-0 items-center gap-1 flex-wrap", children: [
363
- (c || d || u) && /* @__PURE__ */ n(We, { label: c || "", required: d || !1, isRequiredConditional: u || !1 }),
364
- He && /* @__PURE__ */ n(
365
+ (c || d || u) && /* @__PURE__ */ n(ze, { label: c || "", required: d || !1, isRequiredConditional: u || !1 }),
366
+ ke && /* @__PURE__ */ n(
365
367
  Ze,
366
368
  {
367
369
  sx: {
@@ -371,14 +373,14 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
371
373
  }
372
374
  }
373
375
  ),
374
- ye && !fe(L) && /* @__PURE__ */ n(Ke, {}),
375
- /* @__PURE__ */ n(qe, { labels: Ee }),
376
- Q && /* @__PURE__ */ n(de, { placement: "top", title: Q, children: /* @__PURE__ */ n("div", { className: "cursor-pointer", children: /* @__PURE__ */ n(Ue, { className: "w-icon-sm h-icon-sm" }) }) }),
377
- ee
376
+ Se && !Ye(L) && /* @__PURE__ */ n(Ke, {}),
377
+ /* @__PURE__ */ n(qe, { labels: ge }),
378
+ Q && /* @__PURE__ */ n(fe, { placement: "top", title: Q, children: /* @__PURE__ */ n("div", { className: "cursor-pointer", children: /* @__PURE__ */ n(Ue, { className: "w-icon-sm h-icon-sm" }) }) }),
379
+ te
378
380
  ] }),
379
381
  /* @__PURE__ */ f("div", { className: "flex items-center gap-1 justify-self-end", children: [
380
- fe(L) && v ? /* @__PURE__ */ n(
381
- de,
382
+ Ye(L) && v ? /* @__PURE__ */ n(
383
+ fe,
382
384
  {
383
385
  placement: "top-end",
384
386
  title: N ?? "",
@@ -391,14 +393,14 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
391
393
  "inline-flex min-w-[50px] items-center gap-1 rounded-md px-1 py-0.5",
392
394
  Qe(v)
393
395
  ),
394
- onClick: () => Fe?.(Se),
396
+ onClick: () => Ae?.(Fe),
395
397
  children: [
396
398
  /* @__PURE__ */ n(
397
399
  Te,
398
400
  {
399
401
  size: 12,
400
402
  fill: Xe(v),
401
- fillSecondary: ze(v)
403
+ fillSecondary: We(v)
402
404
  }
403
405
  ),
404
406
  /* @__PURE__ */ f("span", { className: B("text-xs font-medium leading-4", Je(v)), children: [
@@ -410,7 +412,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
410
412
  )
411
413
  }
412
414
  ) : null,
413
- O && k && x ? /* @__PURE__ */ n(
415
+ R && I && x ? /* @__PURE__ */ n(
414
416
  "button",
415
417
  {
416
418
  id: "btn-date-field-add-to-document",
@@ -433,43 +435,46 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
433
435
  }
434
436
  ) : null,
435
437
  /* @__PURE__ */ n(
436
- ue,
438
+ de,
437
439
  {
438
440
  ...$,
439
441
  showTime: o ? { use12Hours: !0 } : !1,
440
- open: H,
442
+ open: k,
441
443
  format: s,
442
- placeholder: s === z ? "MM/DD/YYYY - HH:MM" : s,
444
+ placeholder: s === W ? "MM/DD/YYYY - HH:MM" : s,
443
445
  className: B(
444
446
  "w-full h-8 text-sm font-medium dark:text-black-300",
445
447
  D && "border-red-400",
446
- R && E?.color && `bg-${E.color}-50 border-${E.color}-300`,
447
- ne && "!border-[var(--Error-200,#FECACA)] !bg-[var(--Error-50,#FEF2F2)] !text-[#475467]",
448
- re && "!border-[var(--Warning-200,#FEDF89)] !bg-[var(--Warning-50,#FFFAEB)]",
449
- oe && "!border-[var(--Success-200,#BBF7D0)] !bg-[var(--Success-50,#F0FDF4)] !text-[#101828]"
448
+ P && E?.color && `bg-${E.color}-50 border-${E.color}-300`,
449
+ oe && "!border-[var(--Error-200,#FECACA)] !bg-[var(--Error-50,#FEF2F2)] !text-[#475467]",
450
+ ne && "!border-[var(--Warning-200,#FEDF89)] !bg-[var(--Warning-50,#FFFAEB)]",
451
+ le && "!border-[var(--Success-200,#BBF7D0)] !bg-[var(--Success-50,#F0FDF4)] !text-[#101828]"
450
452
  ),
451
453
  styles: {
452
454
  root: {
453
455
  ...xe,
454
456
  borderRadius: "7px",
455
- ...ne && {
457
+ ...oe && {
456
458
  borderColor: "var(--Error-200, #FECACA)",
457
459
  backgroundColor: "var(--Error-50, #FEF2F2)",
458
460
  color: "#475467"
459
461
  },
460
- ...re && {
462
+ ...ne && {
461
463
  borderColor: "var(--Warning-200, #FEDF89)",
462
464
  backgroundColor: "var(--Warning-50, #FFFAEB)"
463
465
  },
464
- ...oe && {
466
+ ...le && {
465
467
  borderColor: "var(--Success-200, #BBF7D0)",
466
468
  backgroundColor: "var(--Success-50, #F0FDF4)",
467
469
  color: "#101828"
468
470
  }
471
+ },
472
+ popup: {
473
+ root: { zIndex: 9999 }
469
474
  }
470
475
  },
471
476
  showNow: !1,
472
- value: le,
477
+ value: ae,
473
478
  onChange: (e) => {
474
479
  g(e), S(e), K(e?.toISOString() || null);
475
480
  },
@@ -480,12 +485,12 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
480
485
  r && (g(r), S(r));
481
486
  }
482
487
  },
483
- needConfirm: ge,
488
+ needConfirm: be,
484
489
  ref: y,
485
490
  disabled: p,
486
491
  inputReadOnly: !1,
487
- onOpenChange: me,
488
- getPopupContainer: Ae ? (e) => e.parentElement : () => document.body,
492
+ onOpenChange: ue,
493
+ getPopupContainer: ee ? (e) => e.parentElement : () => document.body,
489
494
  id: a,
490
495
  autoComplete: "off"
491
496
  }
@@ -501,7 +506,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
501
506
  }
502
507
  )
503
508
  ] }),
504
- k && E && R && te && /* @__PURE__ */ n(
509
+ I && E && P && re && /* @__PURE__ */ n(
505
510
  "div",
506
511
  {
507
512
  role: "tooltip",
@@ -512,7 +517,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
512
517
  onKeyDown: (e) => {
513
518
  e.key === "Escape" && q(!1);
514
519
  },
515
- children: /* @__PURE__ */ n(te, { riskDetails: E })
520
+ children: /* @__PURE__ */ n(re, { riskDetails: E })
516
521
  }
517
522
  )
518
523
  ]
@@ -523,7 +528,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
523
528
  rt.displayName = "DateTimeField";
524
529
  export {
525
530
  rt as DateTimeField,
526
- z as UNIVERSAL_DATETIME_FORMAT,
531
+ W as UNIVERSAL_DATETIME_FORMAT,
527
532
  Ge as UNIVERSAL_DATE_FORMAT
528
533
  };
529
534
  //# sourceMappingURL=DateTimeField.es.js.map