munza-x-data-grid 1.4.4 → 1.4.5

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/data-grid.js CHANGED
@@ -1718,8 +1718,6 @@ var Et = ({ refs: e, axis: t = "both" }) => {
1718
1718
  setGlobalFilter: u,
1719
1719
  renderSubComponent: _
1720
1720
  }), [
1721
- C,
1722
- w,
1723
1721
  p,
1724
1722
  m,
1725
1723
  h,
@@ -7075,25 +7073,25 @@ function $(...e) {
7075
7073
  }
7076
7074
  //#endregion
7077
7075
  //#region src/components/ui/button.tsx
7078
- var Ud = Pt("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
7076
+ var Ud = Pt("mun:group/button mun:inline-flex mun:shrink-0 mun:items-center mun:justify-center mun:rounded-lg mun:border mun:border-transparent mun:bg-clip-padding mun:text-sm mun:font-medium mun:whitespace-nowrap mun:transition-all mun:outline-none mun:select-none mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:active:translate-y-px mun:disabled:pointer-events-none mun:disabled:opacity-50 mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:dark:aria-invalid:border-destructive/50 mun:dark:aria-invalid:ring-destructive/40 mun:[&_svg]:pointer-events-none mun:[&_svg]:shrink-0 mun:[&_svg:not([class*='size-'])]:size-4", {
7079
7077
  variants: {
7080
7078
  variant: {
7081
- default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
7082
- outline: "border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
7083
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
7084
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
7085
- destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
7086
- link: "text-primary underline-offset-4 hover:underline"
7079
+ default: "mun:bg-primary mun:text-primary-foreground mun:[a]:hover:bg-primary/80",
7080
+ outline: "mun:border-border mun:bg-background mun:hover:bg-muted mun:hover:text-foreground mun:aria-expanded:bg-muted mun:aria-expanded:text-foreground mun:dark:border-input mun:dark:bg-input/30 mun:dark:hover:bg-input/50",
7081
+ secondary: "mun:bg-secondary mun:text-secondary-foreground mun:hover:bg-secondary/80 mun:aria-expanded:bg-secondary mun:aria-expanded:text-secondary-foreground",
7082
+ ghost: "mun:hover:bg-muted mun:hover:text-foreground mun:aria-expanded:bg-muted mun:aria-expanded:text-foreground mun:dark:hover:bg-muted/50",
7083
+ destructive: "mun:bg-destructive/10 mun:text-destructive mun:hover:bg-destructive/20 mun:focus-visible:border-destructive/40 mun:focus-visible:ring-destructive/20 mun:dark:bg-destructive/20 mun:dark:hover:bg-destructive/30 mun:dark:focus-visible:ring-destructive/40",
7084
+ link: "mun:text-primary mun:underline-offset-4 mun:hover:underline"
7087
7085
  },
7088
7086
  size: {
7089
- default: "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
7090
- xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
7091
- sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
7092
- lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
7093
- icon: "size-8",
7094
- "icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
7095
- "icon-sm": "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
7096
- "icon-lg": "size-9"
7087
+ default: "mun:h-8 mun:gap-1.5 mun:px-2.5 mun:has-data-[icon=inline-end]:pr-2 mun:has-data-[icon=inline-start]:pl-2",
7088
+ xs: "mun:h-6 mun:gap-1 mun:rounded-[min(var(--radius-md),10px)] mun:px-2 mun:text-xs mun:in-data-[slot=button-group]:rounded-lg mun:has-data-[icon=inline-end]:pr-1.5 mun:has-data-[icon=inline-start]:pl-1.5 mun:[&_svg:not([class*='size-'])]:size-3",
7089
+ sm: "mun:h-7 mun:gap-1 mun:rounded-[min(var(--radius-md),12px)] mun:px-2.5 mun:text-[0.8rem] mun:in-data-[slot=button-group]:rounded-lg mun:has-data-[icon=inline-end]:pr-1.5 mun:has-data-[icon=inline-start]:pl-1.5 mun:[&_svg:not([class*='size-'])]:size-3.5",
7090
+ lg: "mun:h-9 mun:gap-1.5 mun:px-2.5 mun:has-data-[icon=inline-end]:pr-3 mun:has-data-[icon=inline-start]:pl-3",
7091
+ icon: "mun:size-8",
7092
+ "icon-xs": "mun:size-6 mun:rounded-[min(var(--radius-md),10px)] mun:in-data-[slot=button-group]:rounded-lg mun:[&_svg:not([class*='size-'])]:size-3",
7093
+ "icon-sm": "mun:size-7 mun:rounded-[min(var(--radius-md),12px)] mun:in-data-[slot=button-group]:rounded-lg",
7094
+ "icon-lg": "mun:size-9"
7097
7095
  }
7098
7096
  },
7099
7097
  defaultVariants: {
@@ -7120,7 +7118,7 @@ function Gd({ className: e, type: t, ...n }) {
7120
7118
  return /* @__PURE__ */ f("input", {
7121
7119
  type: t,
7122
7120
  "data-slot": "input",
7123
- className: $("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
7121
+ className: $("mun:h-8 mun:w-full mun:min-w-0 mun:rounded-lg mun:border mun:border-input mun:bg-transparent mun:px-2.5 mun:py-1 mun:text-base mun:transition-colors mun:outline-none mun:file:inline-flex mun:file:h-6 mun:file:border-0 mun:file:bg-transparent mun:file:text-sm mun:file:font-medium mun:file:text-foreground mun:placeholder:text-muted-foreground mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:disabled:pointer-events-none mun:disabled:cursor-not-allowed mun:disabled:bg-input/50 mun:disabled:opacity-50 mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:md:text-sm mun:dark:bg-input/30 mun:dark:disabled:bg-input/80 mun:dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
7124
7122
  ...n
7125
7123
  });
7126
7124
  }
@@ -7128,16 +7126,16 @@ function Gd({ className: e, type: t, ...n }) {
7128
7126
  //#region src/components/ui/native-select.tsx
7129
7127
  function Kd({ className: e, size: t = "default", ...n }) {
7130
7128
  return /* @__PURE__ */ p("div", {
7131
- className: $("group/native-select relative w-fit has-[select:disabled]:opacity-50", e),
7129
+ className: $("mun:group/native-select mun:relative mun:w-fit mun:has-[select:disabled]:opacity-50", e),
7132
7130
  "data-slot": "native-select-wrapper",
7133
7131
  "data-size": t,
7134
7132
  children: [/* @__PURE__ */ f("select", {
7135
7133
  "data-slot": "native-select",
7136
7134
  "data-size": t,
7137
- className: "h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-accent dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
7135
+ className: "mun:h-8 mun:w-full mun:min-w-0 mun:appearance-none mun:rounded-lg mun:border mun:border-input mun:bg-transparent mun:py-1 mun:pr-8 mun:pl-2.5 mun:text-sm mun:transition-colors mun:outline-none mun:select-none mun:selection:bg-primary mun:selection:text-primary-foreground mun:placeholder:text-muted-foreground mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:disabled:pointer-events-none mun:disabled:cursor-not-allowed mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:data-[size=sm]:h-7 mun:data-[size=sm]:rounded-[min(var(--radius-md),10px)] mun:data-[size=sm]:py-0.5 mun:dark:bg-accent mun:dark:aria-invalid:border-destructive/50 mun:dark:aria-invalid:ring-destructive/40",
7138
7136
  ...n
7139
7137
  }), /* @__PURE__ */ f(E, {
7140
- className: "pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none",
7138
+ className: "mun:pointer-events-none mun:absolute mun:top-1/2 mun:right-2.5 mun:size-4 mun:-translate-y-1/2 mun:text-muted-foreground mun:select-none",
7141
7139
  "aria-hidden": "true",
7142
7140
  "data-slot": "native-select-icon"
7143
7141
  })]
@@ -7272,42 +7270,42 @@ var Jd = ({ pagination: e = [] }) => {
7272
7270
  function Zd({ className: e, ...t }) {
7273
7271
  return /* @__PURE__ */ f("table", {
7274
7272
  "data-slot": "table",
7275
- className: $("w-full caption-bottom text-sm", e),
7273
+ className: $("mun:w-full mun:caption-bottom mun:text-sm", e),
7276
7274
  ...t
7277
7275
  });
7278
7276
  }
7279
7277
  function Qd({ className: e, ...t }) {
7280
7278
  return /* @__PURE__ */ f("thead", {
7281
7279
  "data-slot": "table-header",
7282
- className: $("[&_tr]:border-b", e),
7280
+ className: $("mun:[&_tr]:border-b", e),
7283
7281
  ...t
7284
7282
  });
7285
7283
  }
7286
7284
  function $d({ className: e, ...t }) {
7287
7285
  return /* @__PURE__ */ f("tbody", {
7288
7286
  "data-slot": "table-body",
7289
- className: $("[&_tr:last-child]:border-0", e),
7287
+ className: $("mun:[&_tr:last-child]:border-0", e),
7290
7288
  ...t
7291
7289
  });
7292
7290
  }
7293
7291
  function ef({ className: e, ...t }) {
7294
7292
  return /* @__PURE__ */ f("tr", {
7295
7293
  "data-slot": "table-row",
7296
- className: $("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", e),
7294
+ className: $("mun:border-b mun:transition-colors mun:hover:bg-muted/50 mun:data-[state=selected]:bg-muted", e),
7297
7295
  ...t
7298
7296
  });
7299
7297
  }
7300
7298
  function tf({ className: e, ...t }) {
7301
7299
  return /* @__PURE__ */ f("th", {
7302
7300
  "data-slot": "table-head",
7303
- className: $("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0", e),
7301
+ className: $("mun:h-10 mun:px-2 mun:text-left mun:align-middle mun:font-medium mun:whitespace-nowrap mun:text-foreground mun:[&:has([role=checkbox])]:pr-0", e),
7304
7302
  ...t
7305
7303
  });
7306
7304
  }
7307
7305
  function nf({ className: e, ...t }) {
7308
7306
  return /* @__PURE__ */ f("td", {
7309
7307
  "data-slot": "table-cell",
7310
- className: $("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", e),
7308
+ className: $("mun:p-2 mun:align-middle mun:whitespace-nowrap mun:[&:has([role=checkbox])]:pr-0", e),
7311
7309
  ...t
7312
7310
  });
7313
7311
  }
@@ -7316,21 +7314,21 @@ function nf({ className: e, ...t }) {
7316
7314
  function rf({ className: e, ...t }) {
7317
7315
  return /* @__PURE__ */ f("div", {
7318
7316
  "data-slot": "empty",
7319
- className: $("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance", e),
7317
+ className: $("mun:flex mun:w-full mun:min-w-0 mun:flex-1 mun:flex-col mun:items-center mun:justify-center mun:gap-4 mun:rounded-xl mun:border-dashed mun:p-6 mun:text-center mun:text-balance", e),
7320
7318
  ...t
7321
7319
  });
7322
7320
  }
7323
7321
  function af({ className: e, ...t }) {
7324
7322
  return /* @__PURE__ */ f("div", {
7325
7323
  "data-slot": "empty-header",
7326
- className: $("flex max-w-sm flex-col items-center gap-2", e),
7324
+ className: $("mun:flex mun:max-w-sm mun:flex-col mun:items-center mun:gap-2", e),
7327
7325
  ...t
7328
7326
  });
7329
7327
  }
7330
- var of = Pt("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
7328
+ var of = Pt("mun:mb-2 mun:flex mun:shrink-0 mun:items-center mun:justify-center mun:[&_svg]:pointer-events-none mun:[&_svg]:shrink-0", {
7331
7329
  variants: { variant: {
7332
7330
  default: "bg-transparent",
7333
- icon: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"
7331
+ icon: "mun:flex mun:size-8 mun:shrink-0 mun:items-center mun:justify-center mun:rounded-lg mun:bg-muted mun:text-foreground mun:[&_svg:not([class*='size-'])]:size-4"
7334
7332
  } },
7335
7333
  defaultVariants: { variant: "default" }
7336
7334
  });
@@ -7348,14 +7346,14 @@ function sf({ className: e, variant: t = "default", ...n }) {
7348
7346
  function cf({ className: e, ...t }) {
7349
7347
  return /* @__PURE__ */ f("div", {
7350
7348
  "data-slot": "empty-title",
7351
- className: $("font-heading text-sm font-medium tracking-tight", e),
7349
+ className: $("mun:font-heading mun:text-sm mun:font-medium mun:tracking-tight", e),
7352
7350
  ...t
7353
7351
  });
7354
7352
  }
7355
7353
  function lf({ className: e, ...t }) {
7356
7354
  return /* @__PURE__ */ f("div", {
7357
7355
  "data-slot": "empty-description",
7358
- className: $("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
7356
+ className: $("mun:text-sm/relaxed mun:text-muted-foreground mun:[&>a]:underline mun:[&>a]:underline-offset-4 mun:[&>a:hover]:text-primary", e),
7359
7357
  ...t
7360
7358
  });
7361
7359
  }
@@ -7372,15 +7370,12 @@ var uf = () => /* @__PURE__ */ f("div", {
7372
7370
  /* @__PURE__ */ f(lf, { children: "No data found" })
7373
7371
  ] }) })
7374
7372
  }), df = () => {
7375
- let { table: e } = kt(), t = c(() => e.getAllLeafColumns(), [e]);
7376
- return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(Zd, {
7377
- style: { width: e.getTotalSize() },
7378
- children: /* @__PURE__ */ f($d, { children: /* @__PURE__ */ f(ef, { children: t.map((e, t) => /* @__PURE__ */ f(nf, { style: {
7379
- width: e.getSize(),
7380
- minWidth: e.getSize(),
7381
- maxWidth: e.getSize()
7382
- } }, t)) }) })
7383
- }), /* @__PURE__ */ f(uf, {})] });
7373
+ let { table: e } = kt();
7374
+ return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(Zd, { children: /* @__PURE__ */ f($d, { children: /* @__PURE__ */ f(ef, { children: c(() => e.getAllLeafColumns(), [e]).map((e, t) => /* @__PURE__ */ f(nf, { style: {
7375
+ width: e.getSize(),
7376
+ minWidth: e.getSize(),
7377
+ maxWidth: e.getSize()
7378
+ } }, t)) }) }) }), /* @__PURE__ */ f(uf, {})] });
7384
7379
  }, ff = (e) => {
7385
7380
  let t = e.getIsPinned(), n = t === "left" && e.getIsLastColumn("left"), r = t === "right" && e.getIsFirstColumn("right");
7386
7381
  return {
@@ -7399,7 +7394,7 @@ var uf = () => /* @__PURE__ */ f("div", {
7399
7394
  function pf({ className: e, ...t }) {
7400
7395
  return /* @__PURE__ */ f("div", {
7401
7396
  "data-slot": "skeleton",
7402
- className: $("animate-pulse rounded-md bg-muted", e),
7397
+ className: $("mun:bg-accent mun:animate-pulse mun:rounded-md", e),
7403
7398
  ...t
7404
7399
  });
7405
7400
  }
@@ -7427,25 +7422,22 @@ var mf = [
7427
7422
  style: { width: `${mf[(t + n) % mf.length]}px` }
7428
7423
  }) }), gf = () => {
7429
7424
  let { table: e } = kt(), t = e.getHeaderGroups().map((e) => e.headers.filter((e) => !e.isPlaceholder && !e.subHeaders?.length).map((e) => e.column)).flat();
7430
- return /* @__PURE__ */ f(Zd, {
7431
- style: { width: e.getTotalSize() },
7432
- children: /* @__PURE__ */ f($d, { children: [...Array(20)].map((e, n) => /* @__PURE__ */ f(ef, {
7433
- className: "mun:*:border-r mun:*:border-border",
7434
- children: t.map((e, t) => /* @__PURE__ */ f(nf, {
7435
- style: {
7436
- width: e.getSize(),
7437
- minWidth: e.getSize(),
7438
- maxWidth: e.getSize(),
7439
- ...ff(e)
7440
- },
7441
- children: /* @__PURE__ */ f(hf, {
7442
- column: e,
7443
- i: n,
7444
- j: t
7445
- })
7446
- }, t))
7447
- }, n)) })
7448
- });
7425
+ return /* @__PURE__ */ f(Zd, { children: /* @__PURE__ */ f($d, { children: [...Array(20)].map((e, n) => /* @__PURE__ */ f(ef, {
7426
+ className: "mun:*:border-r mun:*:border-border",
7427
+ children: t.map((e, t) => /* @__PURE__ */ f(nf, {
7428
+ style: {
7429
+ width: e.getSize(),
7430
+ minWidth: e.getSize(),
7431
+ maxWidth: e.getSize(),
7432
+ ...ff(e)
7433
+ },
7434
+ children: /* @__PURE__ */ f(hf, {
7435
+ column: e,
7436
+ i: n,
7437
+ j: t
7438
+ })
7439
+ }, t))
7440
+ }, n)) }) });
7449
7441
  }, _f = ({ cell: e }) => /* @__PURE__ */ f(nf, {
7450
7442
  style: {
7451
7443
  position: "relative",
@@ -7457,17 +7449,14 @@ var mf = [
7457
7449
  children: xt(e.column.columnDef.cell, e.getContext())
7458
7450
  }, e.id), vf = () => {
7459
7451
  let { table: e, isLoading: n, isError: r, renderSubComponent: i } = kt();
7460
- return n ? /* @__PURE__ */ f(gf, {}) : r ? /* @__PURE__ */ f(Xd, {}) : e.getRowModel().rows.length === 0 ? /* @__PURE__ */ f(df, {}) : /* @__PURE__ */ f(Zd, {
7461
- style: { width: e.getTotalSize() },
7462
- children: /* @__PURE__ */ f($d, { children: e.getRowModel().rows.map((e) => /* @__PURE__ */ p(t.Fragment, { children: [/* @__PURE__ */ f(ef, {
7463
- "data-state": e.getIsSelected() && "selected",
7464
- className: "mun:*:border-r mun:*:border-border mun:data-[state=selected]:bg-blue-800/25",
7465
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ f(_f, { cell: e }, e.id))
7466
- }), i && e.getIsExpanded() && /* @__PURE__ */ f(ef, { children: /* @__PURE__ */ f(nf, {
7467
- colSpan: e.getVisibleCells().length,
7468
- children: i({ row: e })
7469
- }) })] }, e.id)) })
7470
- });
7452
+ return n ? /* @__PURE__ */ f(gf, {}) : r ? /* @__PURE__ */ f(Xd, {}) : e.getRowModel().rows.length === 0 ? /* @__PURE__ */ f(df, {}) : /* @__PURE__ */ f(Zd, { children: /* @__PURE__ */ f($d, { children: e.getRowModel().rows.map((e) => /* @__PURE__ */ p(t.Fragment, { children: [/* @__PURE__ */ f(ef, {
7453
+ "data-state": e.getIsSelected() && "selected",
7454
+ className: "mun:*:border-r mun:*:border-border mun:data-[state=selected]:bg-blue-800/25",
7455
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ f(_f, { cell: e }, e.id))
7456
+ }), i && e.getIsExpanded() && /* @__PURE__ */ f(ef, { children: /* @__PURE__ */ f(nf, {
7457
+ colSpan: e.getVisibleCells().length,
7458
+ children: i({ row: e })
7459
+ }) })] }, e.id)) }) });
7471
7460
  }, yf = ({ value: e, onChange: n, debounce: r = 500, ...i }) => {
7472
7461
  let [a, o] = t.useState(e);
7473
7462
  return t.useEffect(() => {
@@ -7557,7 +7546,7 @@ function Cf({ className: e, align: t = "start", sideOffset: n = 4, ...r }) {
7557
7546
  "data-slot": "dropdown-menu-content",
7558
7547
  sideOffset: n,
7559
7548
  align: t,
7560
- className: $("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
7549
+ className: $("mun:z-50 mun:max-h-(--radix-dropdown-menu-content-available-height) mun:w-(--radix-dropdown-menu-trigger-width) mun:min-w-32 mun:origin-(--radix-dropdown-menu-content-transform-origin) mun:overflow-x-hidden mun:overflow-y-auto mun:rounded-lg mun:bg-popover mun:p-1 mun:text-popover-foreground mun:shadow-md mun:ring-1 mun:ring-foreground/10 mun:duration-100 mun:data-[side=bottom]:slide-in-from-top-2 mun:data-[side=left]:slide-in-from-right-2 mun:data-[side=right]:slide-in-from-left-2 mun:data-[side=top]:slide-in-from-bottom-2 mun:data-[state=closed]:overflow-hidden mun:data-open:animate-in mun:data-open:fade-in-0 mun:data-open:zoom-in-95 mun:data-closed:animate-out mun:data-closed:fade-out-0 mun:data-closed:zoom-out-95", e),
7561
7550
  ...r
7562
7551
  }) });
7563
7552
  }
@@ -7572,21 +7561,21 @@ function Tf({ className: e, inset: t, variant: n = "default", ...r }) {
7572
7561
  "data-slot": "dropdown-menu-item",
7573
7562
  "data-inset": t,
7574
7563
  "data-variant": n,
7575
- className: $("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive", e),
7564
+ className: $("mun:group/dropdown-menu-item mun:relative mun:flex mun:cursor-default mun:items-center mun:gap-1.5 mun:rounded-md mun:px-1.5 mun:py-1 mun:text-sm mun:outline-hidden mun:select-none mun:focus:bg-accent mun:focus:text-accent-foreground mun:not-data-[variant=destructive]:focus:**:text-accent-foreground mun:data-inset:pl-7 mun:data-[variant=destructive]:text-destructive mun:data-[variant=destructive]:focus:bg-destructive/10 mun:data-[variant=destructive]:focus:text-destructive mun:dark:data-[variant=destructive]:focus:bg-destructive/20 mun:data-disabled:pointer-events-none mun:data-disabled:opacity-50 mun:[&_svg]:pointer-events-none mun:[&_svg]:shrink-0 mun:[&_svg:not([class*='size-'])]:size-4 mun:data-[variant=destructive]:*:[svg]:text-destructive", e),
7576
7565
  ...r
7577
7566
  });
7578
7567
  }
7579
7568
  function Ef({ className: e, ...t }) {
7580
7569
  return /* @__PURE__ */ f(du, {
7581
7570
  "data-slot": "dropdown-menu-separator",
7582
- className: $("-mx-1 my-1 h-px bg-border", e),
7571
+ className: $("mun:-mx-1 mun:my-1 mun:h-px mun:bg-border", e),
7583
7572
  ...t
7584
7573
  });
7585
7574
  }
7586
7575
  function Df({ className: e, ...t }) {
7587
7576
  return /* @__PURE__ */ f("span", {
7588
7577
  "data-slot": "dropdown-menu-shortcut",
7589
- className: $("ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground", e),
7578
+ className: $("mun:ml-auto mun:text-xs mun:tracking-widest mun:text-muted-foreground mun:group-focus/dropdown-menu-item:text-accent-foreground", e),
7590
7579
  ...t
7591
7580
  });
7592
7581
  }
@@ -7683,13 +7672,10 @@ var Of = ({ header: e }) => {
7683
7672
  }, e.id);
7684
7673
  }, jf = () => {
7685
7674
  let { table: e } = kt();
7686
- return /* @__PURE__ */ f(Zd, {
7687
- style: { width: e.getTotalSize() },
7688
- children: /* @__PURE__ */ f(Qd, { children: e.getHeaderGroups().map((e) => /* @__PURE__ */ f(ef, {
7689
- className: "mun:*:border-r mun:*:border-border",
7690
- children: e.headers.map((e) => /* @__PURE__ */ f(Af, { header: e }, e.id))
7691
- }, e.id)) })
7692
- });
7675
+ return /* @__PURE__ */ f(Zd, { children: /* @__PURE__ */ f(Qd, { children: e.getHeaderGroups().map((e) => /* @__PURE__ */ f(ef, {
7676
+ className: "mun:*:border-r mun:*:border-border",
7677
+ children: e.headers.map((e) => /* @__PURE__ */ f(Af, { header: e }, e.id))
7678
+ }, e.id)) }) });
7693
7679
  }, Mf = () => {
7694
7680
  let { paneRef1: e, paneRef2: n } = kt();
7695
7681
  return /* @__PURE__ */ p(t.Fragment, { children: [/* @__PURE__ */ f("div", {
@@ -7701,14 +7687,14 @@ var Of = ({ header: e }) => {
7701
7687
  ref: n,
7702
7688
  children: /* @__PURE__ */ f(vf, {})
7703
7689
  })] });
7704
- }, Nf = Pt("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
7690
+ }, Nf = Pt("mun:group/badge mun:inline-flex mun:h-5 mun:w-fit mun:shrink-0 mun:items-center mun:justify-center mun:gap-1 mun:overflow-hidden mun:rounded-4xl mun:border mun:border-transparent mun:px-2 mun:py-0.5 mun:text-xs mun:font-medium mun:whitespace-nowrap mun:transition-all mun:focus-visible:border-ring mun:focus-visible:ring-[3px] mun:focus-visible:ring-ring/50 mun:has-data-[icon=inline-end]:pr-1.5 mun:has-data-[icon=inline-start]:pl-1.5 mun:aria-invalid:border-destructive mun:aria-invalid:ring-destructive/20 mun:dark:aria-invalid:ring-destructive/40 mun:[&>svg]:pointer-events-none mun:[&>svg]:size-3!", {
7705
7691
  variants: { variant: {
7706
- default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
7707
- secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
7708
- destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
7709
- outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
7710
- ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
7711
- link: "text-primary underline-offset-4 hover:underline"
7692
+ default: "mun:bg-primary mun:text-primary-foreground mun:[a]:hover:bg-primary/80",
7693
+ secondary: "mun:bg-secondary mun:text-secondary-foreground mun:[a]:hover:bg-secondary/80",
7694
+ destructive: "mun:bg-destructive/10 mun:text-destructive mun:focus-visible:ring-destructive/20 mun:dark:bg-destructive/20 mun:dark:focus-visible:ring-destructive/40 mun:[a]:hover:bg-destructive/20",
7695
+ outline: "mun:border-border mun:text-foreground mun:[a]:hover:bg-muted mun:[a]:hover:text-muted-foreground",
7696
+ ghost: "mun:hover:bg-muted hover:text-muted-foreground mun:dark:hover:bg-muted/50",
7697
+ link: "mun:text-primary mun:underline-offset-4 mun:hover:underline"
7712
7698
  } },
7713
7699
  defaultVariants: { variant: "default" }
7714
7700
  });
@@ -7725,11 +7711,11 @@ function Pf({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
7725
7711
  function Ff({ className: e, ...t }) {
7726
7712
  return /* @__PURE__ */ f(Ni, {
7727
7713
  "data-slot": "checkbox",
7728
- className: $("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", e),
7714
+ className: $("mun:peer mun:relative mun:flex mun:size-4 mun:shrink-0 mun:items-center mun:justify-center mun:rounded-[4px] mun:border mun:border-input mun:transition-colors mun:outline-none mun:group-has-disabled/field:opacity-50 mun:after:absolute mun:after:-inset-x-3 mun:after:-inset-y-2 mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:disabled:cursor-not-allowed mun:disabled:opacity-50 mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:aria-invalid:aria-checked:border-primary mun:dark:bg-input/30 mun:dark:aria-invalid:border-destructive/50 mun:dark:aria-invalid:ring-destructive/40 mun:data-checked:border-primary mun:data-checked:bg-primary mun:data-checked:text-primary-foreground mun:dark:data-checked:bg-primary", e),
7729
7715
  ...t,
7730
7716
  children: /* @__PURE__ */ f(Fi, {
7731
7717
  "data-slot": "checkbox-indicator",
7732
- className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
7718
+ className: "mun:grid mun:place-content-center mun:text-current mun:transition-none mun:[&>svg]:size-3.5",
7733
7719
  children: /* @__PURE__ */ f(ee, {})
7734
7720
  })
7735
7721
  });
@@ -7739,7 +7725,7 @@ function Ff({ className: e, ...t }) {
7739
7725
  function If({ className: e, ...t }) {
7740
7726
  return /* @__PURE__ */ f(mu, {
7741
7727
  "data-slot": "label",
7742
- className: $("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
7728
+ className: $("mun:flex mun:items-center mun:gap-2 mun:text-sm mun:leading-none mun:font-medium mun:select-none mun:group-data-[disabled=true]:pointer-events-none mun:group-data-[disabled=true]:opacity-50 mun:peer-disabled:cursor-not-allowed mun:peer-disabled:opacity-50", e),
7743
7729
  ...t
7744
7730
  });
7745
7731
  }
@@ -0,0 +1,37 @@
1
+ export type TStore = {
2
+ _id: string;
3
+ name: string;
4
+ contactName: string;
5
+ ownerNumber: string;
6
+ phone1: string;
7
+ phone2?: string;
8
+ address: {
9
+ country: string;
10
+ state: string;
11
+ city: string;
12
+ zone: string;
13
+ landmark: string;
14
+ };
15
+ isActive: boolean;
16
+ isPickup: boolean;
17
+ isReturn: boolean;
18
+ user: string;
19
+ createdAt: string;
20
+ updatedAt: string;
21
+ };
22
+ type TResponse = {
23
+ status: string;
24
+ message: string;
25
+ payload: {
26
+ total: number;
27
+ data: TStore[];
28
+ };
29
+ };
30
+ export declare const useStores: () => {
31
+ data: TResponse | null;
32
+ isLoading: boolean;
33
+ isError: boolean;
34
+ isFetching: boolean;
35
+ refetch: () => Promise<void>;
36
+ };
37
+ export {};