unifyedx-storybook-new 0.2.96 → 0.2.97

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.
@@ -1,12 +1,12 @@
1
1
  import { jsxs as n, jsx as e, Fragment as re } from "react/jsx-runtime";
2
- import ne, { useState as B, useMemo as ae, useId as Ze, Fragment as ee, useEffect as te, useCallback as K, useRef as ge } from "react";
3
- import { c as Z, U as ct, X as Ne, P as c, L as Ra, C as ve, a as tt, D as dt, f as Ct, b as Wt, F as Ia, d as Oa, e as Ma, T as Be, u as Pa, I as Jt, g as Xt, h as La, i as Ba, j as Va, k as Qt, S as yt, l as Ht, M as ja, m as _a, n as xt, o as Ga, A as Ua, E as Zt, p as qa, q as Ya, r as Wa, s as Ja, t as Kt, v as Xa, w as Qa, x as Ha, y as Za, z as Ka, B as er, G as Ve, H as zt, J as St, K as tr, N as ea, O as ar, Q as vt, R as rr, V as nr, W as je, Y as sr, Z as lr, _ as ir, $ as or, a0 as cr, a1 as dr, a2 as Dt, a3 as mr, a4 as ur, a5 as hr, a6 as pr, a7 as gr, a8 as br, a9 as fr, aa as yr, ab as Te, ac as ta, ad as xr, ae as vr, af as Nr, ag as wr, ah as kr, ai as aa, aj as Cr, ak as zr, al as ra, am as Sr, an as mt, ao as na, ap as Dr } from "./vendor-j6TpyJEY.js";
2
+ import ne, { useState as B, useMemo as ae, useId as He, Fragment as ee, useEffect as te, useCallback as K, useRef as ge } from "react";
3
+ import { c as H, U as ct, X as Ne, P as c, L as Ra, C as ve, a as tt, D as dt, f as Ct, b as Wt, F as Ia, d as Oa, e as Ma, T as Be, u as Pa, I as Jt, g as Xt, h as La, i as Ba, j as Va, k as Qt, S as yt, l as Zt, M as ja, m as _a, n as xt, o as Ga, A as Ua, E as Ht, p as qa, q as Ya, r as Wa, s as Ja, t as Kt, v as Xa, w as Qa, x as Za, y as Ha, z as Ka, B as er, G as Ve, H as zt, J as St, K as tr, N as ea, O as ar, Q as vt, R as rr, V as nr, W as je, Y as sr, Z as lr, _ as ir, $ as or, a0 as cr, a1 as dr, a2 as Dt, a3 as mr, a4 as ur, a5 as hr, a6 as pr, a7 as gr, a8 as br, a9 as fr, aa as yr, ab as Te, ac as ta, ad as xr, ae as vr, af as Nr, ag as wr, ah as kr, ai as aa, aj as Cr, ak as zr, al as ra, am as Sr, an as mt, ao as na, ap as Dr } from "./vendor-j6TpyJEY.js";
4
4
  import { Popover as $r, PopoverButton as Ar, PopoverPanel as Tr, Transition as fe, Dialog as xe, TransitionChild as ke, DialogPanel as Fe, DialogTitle as at, TabGroup as Fr, TabList as Er, Tab as le, TabPanels as Rr, RadioGroup as qe, Listbox as oe, ListboxButton as Ir, ListboxOptions as Or, ListboxOption as Mr, SwitchGroup as Pr, Switch as it, Menu as Lr, MenuButton as Br, Portal as Vr, MenuItems as jr, MenuItem as _r, DialogBackdrop as Gr } from "@headlessui/react";
5
5
  import { motion as ce, AnimatePresence as De } from "framer-motion";
6
6
  import Ur from "lodash/debounce";
7
7
  import { useFloating as qr, offset as Yr, flip as Wr, shift as Jr, autoUpdate as Xr } from "@floating-ui/react";
8
8
  import ot, { debounce as Qr } from "lodash";
9
- import { ToastContainer as Hr, Slide as Zr, toast as Me } from "react-toastify";
9
+ import { ToastContainer as Zr, Slide as Hr, toast as Me } from "react-toastify";
10
10
  import "react-toastify/dist/ReactToastify.css";
11
11
  import { Page as Kr, Selection as en, Sort as tn, Filter as an, Group as rn, Search as nn, ExcelExport as sn, PdfExport as ln, ColumnChooser as on, Resize as cn, Reorder as dn, Print as mn, GridComponent as un, ColumnsDirective as hn, Inject as pn, ColumnDirective as $t } from "@syncfusion/ej2-react-grids";
12
12
  const gn = (t) => {
@@ -29,7 +29,7 @@ const gn = (t) => {
29
29
  className: u,
30
30
  ...o
31
31
  }) => {
32
- const [h, f] = B(!1), v = ae(() => bn(a), []), g = t && !h, r = !g && a, x = !g && !a, d = Z(
32
+ const [h, f] = B(!1), v = ae(() => bn(a), []), g = t && !h, r = !g && a, x = !g && !a, d = H(
33
33
  "avatar-container",
34
34
  `avatar--size-${s}`,
35
35
  u
@@ -74,7 +74,7 @@ const gn = (t) => {
74
74
  className: h,
75
75
  ...f
76
76
  }) => {
77
- const v = Z(
77
+ const v = H(
78
78
  "badge",
79
79
  `badge--variant-${a}`,
80
80
  `badge--size-${s}`,
@@ -161,7 +161,7 @@ const vn = {
161
161
  onClick: T,
162
162
  ...A
163
163
  }) => {
164
- const O = f || u, V = h && !g, _ = Z(
164
+ const O = f || u, V = h && !g, _ = H(
165
165
  "btn-base",
166
166
  vn[v],
167
167
  Nn[o],
@@ -223,7 +223,7 @@ const vn = {
223
223
  onChange: o,
224
224
  ...h
225
225
  }) => {
226
- const f = Ze(), v = a || f;
226
+ const f = He(), v = a || f;
227
227
  return /* @__PURE__ */ n("div", { className: `checkbox-container ${i || ""}`, children: [
228
228
  /* @__PURE__ */ n("label", { htmlFor: v, className: "checkbox-wrapper", children: [
229
229
  /* @__PURE__ */ e(
@@ -241,7 +241,7 @@ const vn = {
241
241
  /* @__PURE__ */ e(
242
242
  "div",
243
243
  {
244
- className: Z("checkbox-box", {
244
+ className: H("checkbox-box", {
245
245
  "checkbox-box--checked": u,
246
246
  "checkbox-box--error": !!s
247
247
  }),
@@ -263,7 +263,7 @@ const vn = {
263
263
  disabled: o = !1,
264
264
  className: h,
265
265
  ...f
266
- }) => /* @__PURE__ */ n("div", { className: Z("datepicker-wrapper", h), children: [
266
+ }) => /* @__PURE__ */ n("div", { className: H("datepicker-wrapper", h), children: [
267
267
  l && /* @__PURE__ */ e("label", { className: "datepicker-label", htmlFor: "datepicker-input", children: l }),
268
268
  /* @__PURE__ */ e(
269
269
  sa,
@@ -299,7 +299,7 @@ const vn = {
299
299
  " - ",
300
300
  Ct(g, "MMM d, y")
301
301
  ] }) : /* @__PURE__ */ e("span", { className: "datepicker-placeholder", children: i });
302
- return /* @__PURE__ */ n("div", { className: Z("datepicker-wrapper", h), children: [
302
+ return /* @__PURE__ */ n("div", { className: H("datepicker-wrapper", h), children: [
303
303
  l && /* @__PURE__ */ e("label", { className: "datepicker-label", htmlFor: "daterangepicker-input", children: l }),
304
304
  /* @__PURE__ */ n(kn, { children: [
305
305
  /* @__PURE__ */ e(Cn, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "datepicker-input-container", children: [
@@ -308,7 +308,7 @@ const vn = {
308
308
  {
309
309
  id: "daterangepicker-input",
310
310
  type: "button",
311
- className: Z("datepicker-trigger", {
311
+ className: H("datepicker-trigger", {
312
312
  "datepicker-trigger--error": !!u,
313
313
  "datepicker-trigger--disabled": o
314
314
  }),
@@ -1283,7 +1283,7 @@ const vn = {
1283
1283
  }
1284
1284
  ) }) })
1285
1285
  ] }) });
1286
- }, H = ({
1286
+ }, Z = ({
1287
1287
  label: t,
1288
1288
  id: a,
1289
1289
  type: s = "text",
@@ -1305,7 +1305,7 @@ const vn = {
1305
1305
  id: f,
1306
1306
  type: s,
1307
1307
  ref: o,
1308
- className: Z("input-field", {
1308
+ className: H("input-field", {
1309
1309
  "input-field--error": !!l,
1310
1310
  "input-field--with-icon": !!i
1311
1311
  }),
@@ -1528,7 +1528,7 @@ const vn = {
1528
1528
  qe.Option,
1529
1529
  {
1530
1530
  value: o.value,
1531
- className: ({ active: h, checked: f }) => Z("radiogroup-option", {
1531
+ className: ({ active: h, checked: f }) => H("radiogroup-option", {
1532
1532
  "radiogroup-option--active": h,
1533
1533
  "radiogroup-option--checked": f,
1534
1534
  "radiogroup-option--error": !!l
@@ -1632,12 +1632,12 @@ const vn = {
1632
1632
  /* @__PURE__ */ n(
1633
1633
  Ir,
1634
1634
  {
1635
- className: Z("select-button", {
1635
+ className: H("select-button", {
1636
1636
  "select-button--error": !!o
1637
1637
  }),
1638
1638
  children: [
1639
1639
  /* @__PURE__ */ e("span", { className: "select-value-display", children: x ? x.label : /* @__PURE__ */ e("span", { className: "placeholder", children: l }) }),
1640
- /* @__PURE__ */ e(Ht, { className: "select-chevron", "aria-hidden": "true" })
1640
+ /* @__PURE__ */ e(Zt, { className: "select-chevron", "aria-hidden": "true" })
1641
1641
  ]
1642
1642
  }
1643
1643
  ),
@@ -1718,7 +1718,7 @@ const vn = {
1718
1718
  return /* @__PURE__ */ n(
1719
1719
  "div",
1720
1720
  {
1721
- className: Z("nav-item-container", {
1721
+ className: H("nav-item-container", {
1722
1722
  "nav-item-container--parent-active": v,
1723
1723
  [`nav-item-container--level-${s}`]: s > 0
1724
1724
  }),
@@ -1729,7 +1729,7 @@ const vn = {
1729
1729
  href: l,
1730
1730
  target: t.target,
1731
1731
  rel: t.target === "_blank" ? "noopener noreferrer" : void 0,
1732
- className: Z("nav-item", {
1732
+ className: H("nav-item", {
1733
1733
  "nav-item--active": f,
1734
1734
  "nav-item--collapsed": a
1735
1735
  }),
@@ -1747,7 +1747,7 @@ const vn = {
1747
1747
  children: /* @__PURE__ */ e(
1748
1748
  xt,
1749
1749
  {
1750
- className: Z("nav-chevron", {
1750
+ className: H("nav-chevron", {
1751
1751
  "nav-chevron--open": u
1752
1752
  })
1753
1753
  }
@@ -1760,7 +1760,7 @@ const vn = {
1760
1760
  t.children && /* @__PURE__ */ e(
1761
1761
  "div",
1762
1762
  {
1763
- className: Z("sub-menu", {
1763
+ className: H("sub-menu", {
1764
1764
  "sub-menu--open": u,
1765
1765
  "sub-menu--collapsed": a
1766
1766
  }),
@@ -1800,7 +1800,7 @@ const vn = {
1800
1800
  /* @__PURE__ */ n(
1801
1801
  "aside",
1802
1802
  {
1803
- className: Z("sidebar", {
1803
+ className: H("sidebar", {
1804
1804
  "sidebar--collapsed": a,
1805
1805
  "sidebar--mobile-open": i
1806
1806
  }),
@@ -1858,7 +1858,7 @@ const vn = {
1858
1858
  className: s,
1859
1859
  ...i
1860
1860
  }) => {
1861
- const l = Z(
1861
+ const l = H(
1862
1862
  "spinner",
1863
1863
  `spinner--size-${t}`,
1864
1864
  `spinner--color-${a}`,
@@ -1916,7 +1916,7 @@ const vn = {
1916
1916
  {
1917
1917
  id: f,
1918
1918
  ref: l,
1919
- className: Z("textarea-field", {
1919
+ className: H("textarea-field", {
1920
1920
  "textarea-field--error": !!s
1921
1921
  }),
1922
1922
  maxLength: u,
@@ -1942,7 +1942,7 @@ const vn = {
1942
1942
  {
1943
1943
  checked: a,
1944
1944
  onChange: s,
1945
- className: Z("switch-element", {
1945
+ className: H("switch-element", {
1946
1946
  // Renamed from switch-wrapper
1947
1947
  "switch-element--error": !!l
1948
1948
  }),
@@ -2130,7 +2130,7 @@ const vn = {
2130
2130
  onClick: r,
2131
2131
  ...x
2132
2132
  }) => {
2133
- const d = h, b = Z(
2133
+ const d = h, b = H(
2134
2134
  "btn-base-icon",
2135
2135
  "btn-icon-only",
2136
2136
  In[f],
@@ -2161,7 +2161,7 @@ const vn = {
2161
2161
  // fullHeight = false,
2162
2162
  ...o
2163
2163
  }) => {
2164
- const h = Z(
2164
+ const h = H(
2165
2165
  "page-layout",
2166
2166
  {
2167
2167
  "page-layout--with-footer": a
@@ -2217,14 +2217,14 @@ const vn = {
2217
2217
  children: /* @__PURE__ */ e($n, { width: 30, height: 30 })
2218
2218
  }
2219
2219
  ),
2220
- /* @__PURE__ */ n("div", { className: "page-header-content", children: [
2221
- t && /* @__PURE__ */ e("h1", { className: "page-header-heading", children: t }),
2222
- s.length > 1 ? /* @__PURE__ */ e(wn, { crumbs: s }) : a ? /* @__PURE__ */ e("p", { className: "page-header-subheading", children: a }) : null
2220
+ /* @__PURE__ */ n("header", { className: "page-header-content", role: "banner", "aria-labelledby": "page-heading", "aria-describedby": a ? "page-subheading" : void 0, children: [
2221
+ t && /* @__PURE__ */ e("h1", { className: "page-header-heading", tabIndex: "-1", children: t }),
2222
+ s.length > 1 ? /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ e(wn, { crumbs: s }) }) : a ? /* @__PURE__ */ e("p", { id: "page-subheading", className: "page-header-subheading", children: a }) : null
2223
2223
  ] })
2224
2224
  ] }), Pn = ({
2225
2225
  options: t = [],
2226
2226
  onSelect: a,
2227
- triggerIcon: s = Zt
2227
+ triggerIcon: s = Ht
2228
2228
  }) => {
2229
2229
  const { refs: i, floatingStyles: l } = qr({
2230
2230
  whileElementsMounted: Xr,
@@ -2652,7 +2652,7 @@ const Ee = qn(), Ke = Ee.axiosGet, Ml = Ee.axiosDelete, ft = Ee.axiosPost, Pl =
2652
2652
  { id: 3, name: $e.ROLE, icon: Xa, code: "roles" }
2653
2653
  ], Lt = [
2654
2654
  { id: 1, name: At.View, icon: Qa },
2655
- { id: 2, name: At.Manage, icon: Ha }
2655
+ { id: 2, name: At.Manage, icon: Za }
2656
2656
  ], Xn = Ya().shape({
2657
2657
  pendingInvites: Wa().min(1, "You must add at least one person to invite.")
2658
2658
  }), Qn = ({
@@ -2671,7 +2671,7 @@ const Ee = qn(), Ke = Ee.axiosGet, Ml = Ee.axiosDelete, ft = Ee.axiosPost, Pl =
2671
2671
  handleSubmit: W,
2672
2672
  watch: J,
2673
2673
  formState: { errors: E, isSubmitting: U }
2674
- } = Za({
2674
+ } = Ha({
2675
2675
  defaultValues: { pendingInvites: [] },
2676
2676
  resolver: tr(Xn)
2677
2677
  }), { fields: F, append: m, remove: k, update: L } = Ka({
@@ -3046,7 +3046,7 @@ const Ee = qn(), Ke = Ee.axiosGet, Ml = Ee.axiosDelete, ft = Ee.axiosPost, Pl =
3046
3046
  ] })
3047
3047
  ] }) })
3048
3048
  ] });
3049
- }, Hn = ({
3049
+ }, Zn = ({
3050
3050
  entity: t,
3051
3051
  //entire file or folder details
3052
3052
  onBack: a,
@@ -3211,7 +3211,7 @@ const Ee = qn(), Ke = Ee.axiosGet, Ml = Ee.axiosDelete, ft = Ee.axiosPost, Pl =
3211
3211
  ] }) })
3212
3212
  ] })
3213
3213
  );
3214
- }, Zn = () => /* @__PURE__ */ n("div", { className: "flex items-center gap-4 p-4", children: [
3214
+ }, Hn = () => /* @__PURE__ */ n("div", { className: "flex items-center gap-4 p-4", children: [
3215
3215
  /* @__PURE__ */ e("div", { className: "h-10 w-10 rounded-full bg-gray-200 animate-pulse" }),
3216
3216
  /* @__PURE__ */ n("div", { className: "flex-grow space-y-2", children: [
3217
3217
  /* @__PURE__ */ e("div", { className: "h-4 w-3/5 rounded bg-gray-200 animate-pulse" }),
@@ -3240,7 +3240,7 @@ const Ee = qn(), Ke = Ee.axiosGet, Ml = Ee.axiosDelete, ft = Ee.axiosPost, Pl =
3240
3240
  exit: { opacity: 0, x: -20 }
3241
3241
  }, x = () => l ? (
3242
3242
  // Show 5 skeleton items while loading
3243
- /* @__PURE__ */ e("div", { children: Array.from({ length: 5 }).map((d, b) => /* @__PURE__ */ e(Zn, {}, b)) })
3243
+ /* @__PURE__ */ e("div", { children: Array.from({ length: 5 }).map((d, b) => /* @__PURE__ */ e(Hn, {}, b)) })
3244
3244
  ) : v.length === 0 ? /* @__PURE__ */ n(
3245
3245
  ce.div,
3246
3246
  {
@@ -3380,7 +3380,7 @@ const Ee = qn(), Ke = Ee.axiosGet, Ml = Ee.axiosDelete, ft = Ee.axiosPost, Pl =
3380
3380
  transition: { duration: 0.3, ease: "easeInOut" },
3381
3381
  className: "absolute top-0 left-0 w-full h-full",
3382
3382
  children: /* @__PURE__ */ e(
3383
- Hn,
3383
+ Zn,
3384
3384
  {
3385
3385
  entity: i,
3386
3386
  onBack: E,
@@ -3474,7 +3474,7 @@ function rt({
3474
3474
  getOptionId: d = (C) => String(C.id),
3475
3475
  getOptionLabel: b = (C) => C.name
3476
3476
  }) {
3477
- const C = Ze(), T = Ze(), [A, O] = B(""), V = ge(""), _ = ae(() => {
3477
+ const C = He(), T = He(), [A, O] = B(""), V = ge(""), _ = ae(() => {
3478
3478
  const F = /* @__PURE__ */ new Map();
3479
3479
  for (const m of a) F.set(d(m), m);
3480
3480
  return F;
@@ -3532,7 +3532,7 @@ function rt({
3532
3532
  ),
3533
3533
  children: [
3534
3534
  /* @__PURE__ */ e("span", { className: "block truncate", children: E() }),
3535
- /* @__PURE__ */ e("span", { className: "absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none", children: /* @__PURE__ */ e(Ht, { className: "w-5 h-5 text-gray-400", "aria-hidden": "true" }) })
3535
+ /* @__PURE__ */ e("span", { className: "absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none", children: /* @__PURE__ */ e(Zt, { className: "w-5 h-5 text-gray-400", "aria-hidden": "true" }) })
3536
3536
  ]
3537
3537
  }
3538
3538
  ),
@@ -4148,7 +4148,7 @@ function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4148
4148
  ),
4149
4149
  r.fieldtype === "text" && /* @__PURE__ */ n("div", { children: [
4150
4150
  /* @__PURE__ */ e(
4151
- H,
4151
+ Z,
4152
4152
  {
4153
4153
  type: "text",
4154
4154
  name: r.key,
@@ -4190,7 +4190,7 @@ function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4190
4190
  ] }),
4191
4191
  r.fieldtype === "number" && /* @__PURE__ */ n("div", { children: [
4192
4192
  /* @__PURE__ */ e(
4193
- H,
4193
+ Z,
4194
4194
  {
4195
4195
  type: "number",
4196
4196
  name: r.key,
@@ -4265,7 +4265,7 @@ function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4265
4265
  ] }),
4266
4266
  r.fieldtype === "email" && /* @__PURE__ */ n("div", { children: [
4267
4267
  /* @__PURE__ */ e(
4268
- H,
4268
+ Z,
4269
4269
  {
4270
4270
  type: "email",
4271
4271
  name: r.key,
@@ -4285,7 +4285,7 @@ function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4285
4285
  ] }),
4286
4286
  r.fieldtype === "url" && /* @__PURE__ */ n("div", { children: [
4287
4287
  /* @__PURE__ */ e(
4288
- H,
4288
+ Z,
4289
4289
  {
4290
4290
  type: "url",
4291
4291
  name: r.key,
@@ -4305,7 +4305,7 @@ function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4305
4305
  ] }),
4306
4306
  r.fieldtype === "password" && /* @__PURE__ */ n("div", { children: [
4307
4307
  /* @__PURE__ */ e(
4308
- H,
4308
+ Z,
4309
4309
  {
4310
4310
  type: "password",
4311
4311
  name: r.key,
@@ -4442,7 +4442,7 @@ function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4442
4442
  ] }),
4443
4443
  (r.fieldtype === "datetime" || r.fieldtype === "datetime-local") && /* @__PURE__ */ n("div", { children: [
4444
4444
  /* @__PURE__ */ e(
4445
- H,
4445
+ Z,
4446
4446
  {
4447
4447
  type: "datetime-local",
4448
4448
  name: r.key,
@@ -4461,7 +4461,7 @@ function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4461
4461
  ] }),
4462
4462
  r.fieldtype === "time" && /* @__PURE__ */ n("div", { children: [
4463
4463
  /* @__PURE__ */ e(
4464
- H,
4464
+ Z,
4465
4465
  {
4466
4466
  type: "time",
4467
4467
  name: r.key,
@@ -4480,7 +4480,7 @@ function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4480
4480
  ] }),
4481
4481
  r.fieldtype === "color" && /* @__PURE__ */ n("div", { children: [
4482
4482
  /* @__PURE__ */ e(
4483
- H,
4483
+ Z,
4484
4484
  {
4485
4485
  type: "color",
4486
4486
  name: r.key,
@@ -4497,7 +4497,7 @@ function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4497
4497
  ] }),
4498
4498
  r.fieldtype === "range" && /* @__PURE__ */ n("div", { children: [
4499
4499
  /* @__PURE__ */ e(
4500
- H,
4500
+ Z,
4501
4501
  {
4502
4502
  type: "range",
4503
4503
  name: r.key,
@@ -4525,7 +4525,7 @@ function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4525
4525
  ] }),
4526
4526
  r.fieldtype === "file" && /* @__PURE__ */ n("div", { children: [
4527
4527
  /* @__PURE__ */ e(
4528
- H,
4528
+ Z,
4529
4529
  {
4530
4530
  type: "file",
4531
4531
  name: r.key,
@@ -4616,7 +4616,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4616
4616
  case "text":
4617
4617
  return ($, p) => /* @__PURE__ */ n("div", { children: [
4618
4618
  /* @__PURE__ */ e(
4619
- H,
4619
+ Z,
4620
4620
  {
4621
4621
  value: $[m.key] || "",
4622
4622
  onChange: (S) => k(p, S.target.value),
@@ -4645,7 +4645,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4645
4645
  case "number":
4646
4646
  return ($, p) => /* @__PURE__ */ n("div", { children: [
4647
4647
  /* @__PURE__ */ e(
4648
- H,
4648
+ Z,
4649
4649
  {
4650
4650
  type: "number",
4651
4651
  value: $[m.key] || "",
@@ -4678,7 +4678,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4678
4678
  case "email":
4679
4679
  return ($, p) => /* @__PURE__ */ n("div", { children: [
4680
4680
  /* @__PURE__ */ e(
4681
- H,
4681
+ Z,
4682
4682
  {
4683
4683
  type: "email",
4684
4684
  value: $[m.key] || "",
@@ -4693,7 +4693,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4693
4693
  case "url":
4694
4694
  return ($, p) => /* @__PURE__ */ n("div", { children: [
4695
4695
  /* @__PURE__ */ e(
4696
- H,
4696
+ Z,
4697
4697
  {
4698
4698
  type: "url",
4699
4699
  value: $[m.key] || "",
@@ -4708,7 +4708,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4708
4708
  case "password":
4709
4709
  return ($, p) => /* @__PURE__ */ n("div", { children: [
4710
4710
  /* @__PURE__ */ e(
4711
- H,
4711
+ Z,
4712
4712
  {
4713
4713
  type: "password",
4714
4714
  value: $[m.key] || "",
@@ -4815,7 +4815,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4815
4815
  );
4816
4816
  case "datetime":
4817
4817
  return ($, p) => /* @__PURE__ */ e(
4818
- H,
4818
+ Z,
4819
4819
  {
4820
4820
  type: "datetime-local",
4821
4821
  value: $[m.key] || "",
@@ -4827,7 +4827,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4827
4827
  );
4828
4828
  case "time":
4829
4829
  return ($, p) => /* @__PURE__ */ e(
4830
- H,
4830
+ Z,
4831
4831
  {
4832
4832
  type: "time",
4833
4833
  value: $[m.key] || "",
@@ -4888,7 +4888,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4888
4888
  };
4889
4889
  case "color":
4890
4890
  return ($, p) => /* @__PURE__ */ e(
4891
- H,
4891
+ Z,
4892
4892
  {
4893
4893
  type: "color",
4894
4894
  value: $[m.key] || "#000000",
@@ -4899,7 +4899,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4899
4899
  case "range":
4900
4900
  return ($, p) => /* @__PURE__ */ n("div", { className: "w-full", children: [
4901
4901
  /* @__PURE__ */ e(
4902
- H,
4902
+ Z,
4903
4903
  {
4904
4904
  type: "range",
4905
4905
  value: $[m.key] || m.min || 0,
@@ -4914,7 +4914,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4914
4914
  ] });
4915
4915
  case "file":
4916
4916
  return ($, p) => /* @__PURE__ */ e(
4917
- H,
4917
+ Z,
4918
4918
  {
4919
4919
  type: "file",
4920
4920
  onChange: (S) => {
@@ -4927,7 +4927,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4927
4927
  );
4928
4928
  case "hidden":
4929
4929
  return ($, p) => /* @__PURE__ */ e(
4930
- H,
4930
+ Z,
4931
4931
  {
4932
4932
  type: "hidden",
4933
4933
  value: $[m.key] || "",
@@ -4938,7 +4938,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4938
4938
  default:
4939
4939
  return ($, p) => /* @__PURE__ */ n("div", { children: [
4940
4940
  /* @__PURE__ */ e(
4941
- H,
4941
+ Z,
4942
4942
  {
4943
4943
  value: $[m.key] || "",
4944
4944
  onChange: (S) => k(p, S.target.value),
@@ -5748,7 +5748,7 @@ function ql({ children: t }) {
5748
5748
  return /* @__PURE__ */ n(re, { children: [
5749
5749
  t,
5750
5750
  /* @__PURE__ */ e(
5751
- Hr,
5751
+ Zr,
5752
5752
  {
5753
5753
  position: "bottom-right",
5754
5754
  autoClose: 3500,
@@ -5758,7 +5758,7 @@ function ql({ children: t }) {
5758
5758
  pauseOnFocusLoss: !1,
5759
5759
  draggable: !0,
5760
5760
  pauseOnHover: !0,
5761
- transition: Zr,
5761
+ transition: Hr,
5762
5762
  limit: 4,
5763
5763
  closeButton: !0,
5764
5764
  bodyClassName: "ui-toast__body",
@@ -5777,11 +5777,11 @@ const Pe = {
5777
5777
  pauseOnFocusLoss: !1,
5778
5778
  closeOnClick: !0
5779
5779
  };
5780
- let He = 0;
5780
+ let Ze = 0;
5781
5781
  const Bt = () => {
5782
- typeof document > "u" || (He += 1, document.body.classList.add("toast-backdrop"));
5782
+ typeof document > "u" || (Ze += 1, document.body.classList.add("toast-backdrop"));
5783
5783
  }, Vt = () => {
5784
- typeof document > "u" || (He = Math.max(0, He - 1), He === 0 && document.body.classList.remove("toast-backdrop"));
5784
+ typeof document > "u" || (Ze = Math.max(0, Ze - 1), Ze === 0 && document.body.classList.remove("toast-backdrop"));
5785
5785
  }, We = {
5786
5786
  success: (t, a) => Me.success(t, { ...Pe, ...a }),
5787
5787
  info: (t, a) => Me.info(t, { ...Pe, ...a }),
@@ -6257,7 +6257,7 @@ function de({
6257
6257
  details: o = {},
6258
6258
  ...h
6259
6259
  }) {
6260
- const f = Ze(), v = xs(h, u), g = (x) => {
6260
+ const f = He(), v = xs(h, u), g = (x) => {
6261
6261
  l?.({
6262
6262
  key: v,
6263
6263
  checked: x.target.checked,
@@ -7658,7 +7658,7 @@ Qs.propTypes = {
7658
7658
  })
7659
7659
  )
7660
7660
  };
7661
- const Hs = {
7661
+ const Zs = {
7662
7662
  sm: {
7663
7663
  wrap: "max-w-xs w-full",
7664
7664
  title: "text-base font-semibold",
@@ -7725,7 +7725,7 @@ function Ut({ leave: t, sizeMeta: a }) {
7725
7725
  ] }, i)) })
7726
7726
  ] });
7727
7727
  }
7728
- function Zs({
7728
+ function Hs({
7729
7729
  size: t = "md",
7730
7730
  showCheckbox: a = !1,
7731
7731
  checkboxPosition: s = "top-left",
@@ -7735,7 +7735,7 @@ function Zs({
7735
7735
  term: o = "Fall 2025",
7736
7736
  ...h
7737
7737
  }) {
7738
- const [f, v] = B("vacation"), [g, r] = B(!1), x = ue(t), d = he[x], b = Hs[x], C = Je.find((T) => T.id === f) || Je[0];
7738
+ const [f, v] = B("vacation"), [g, r] = B(!1), x = ue(t), d = he[x], b = Zs[x], C = Je.find((T) => T.id === f) || Je[0];
7739
7739
  return /* @__PURE__ */ n(
7740
7740
  de,
7741
7741
  {
@@ -7801,7 +7801,7 @@ function Zs({
7801
7801
  }
7802
7802
  );
7803
7803
  }
7804
- Zs.propTypes = {
7804
+ Hs.propTypes = {
7805
7805
  size: c.string,
7806
7806
  showCheckbox: c.bool,
7807
7807
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -7949,7 +7949,7 @@ function al({
7949
7949
  {
7950
7950
  className: "flex items-center gap-1 p-2 text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100 hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-md transition-colors duration-200",
7951
7951
  onClick: () => v(!f),
7952
- children: /* @__PURE__ */ e(Zt, { className: "h-4 w-4" })
7952
+ children: /* @__PURE__ */ e(Ht, { className: "h-4 w-4" })
7953
7953
  }
7954
7954
  ),
7955
7955
  f && /* @__PURE__ */ n("div", { className: "absolute right-0 top-full mt-1 w-48 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md shadow-lg z-10 py-1", children: [
@@ -8444,8 +8444,8 @@ export {
8444
8444
  Al as FullScreenLoader,
8445
8445
  Sl as GenericFilter,
8446
8446
  ze as IconButton,
8447
- H as Input,
8448
- Zs as LeaveBalanceMock,
8447
+ Z as Input,
8448
+ Hs as LeaveBalanceMock,
8449
8449
  ys as ManageCollectionList,
8450
8450
  Fn as Modal,
8451
8451
  rt as MultiSelect,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unifyedx-storybook-new",
3
3
  "private": false,
4
- "version": "0.2.96",
4
+ "version": "0.2.97",
5
5
  "type": "module",
6
6
  "main": "dist/unifyedx-storybook-new.es.js",
7
7
  "module": "dist/unifyedx-storybook-new.es.js",