@medusajs/dashboard 2.10.4-preview-20250924060154 → 2.10.4-preview-20250924090158

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 (54) hide show
  1. package/dist/{add-campaign-promotions-BWIP24MA.mjs → add-campaign-promotions-62IIOR5K.mjs} +3 -3
  2. package/dist/{api-key-management-detail-WGWZQCFC.mjs → api-key-management-detail-TEW653QF.mjs} +1 -1
  3. package/dist/{api-key-management-sales-channels-H5TVIHTV.mjs → api-key-management-sales-channels-ESGRJKDT.mjs} +1 -1
  4. package/dist/app.css +0 -3
  5. package/dist/app.js +3490 -3464
  6. package/dist/app.mjs +2 -2
  7. package/dist/{campaign-detail-EJD7LQCW.mjs → campaign-detail-XYLU3HF4.mjs} +3 -3
  8. package/dist/{chunk-2252SSK6.mjs → chunk-6W7OL4TX.mjs} +1 -1
  9. package/dist/{chunk-OQPVQGSH.mjs → chunk-7GBCLBMX.mjs} +24 -11
  10. package/dist/{chunk-YPSSUJUZ.mjs → chunk-HEBATBOH.mjs} +6 -2
  11. package/dist/{chunk-U2FXUMKA.mjs → chunk-NDNUJ2UK.mjs} +1 -1
  12. package/dist/{chunk-CAZKNJTG.mjs → chunk-NKM6CHK6.mjs} +30 -30
  13. package/dist/{chunk-WP5CXGGO.mjs → chunk-TWP4GTKM.mjs} +1 -1
  14. package/dist/{chunk-V53HAFWH.mjs → chunk-UOEALCPZ.mjs} +1 -1
  15. package/dist/{chunk-6RWF7BPW.mjs → chunk-V6JXTITD.mjs} +1 -1
  16. package/dist/{customer-group-list-UTC5ZCJZ.mjs → customer-group-list-6XY7YF5E.mjs} +1 -1
  17. package/dist/{inventory-detail-BO5E7KXO.mjs → inventory-detail-WI5T47QL.mjs} +1 -1
  18. package/dist/{location-edit-RNGPJ26L.mjs → location-edit-X6JBEWIF.mjs} +1 -1
  19. package/dist/location-list-VNEYHAKV.mjs +323 -0
  20. package/dist/{location-sales-channels-NSXV65ZM.mjs → location-sales-channels-HVZHZMBY.mjs} +1 -1
  21. package/dist/{order-detail-6XQLJ5TU.mjs → order-detail-CNQ7HP32.mjs} +30 -22
  22. package/dist/{order-list-OTPVQKU6.mjs → order-list-YWPAJ7FR.mjs} +2 -2
  23. package/dist/{product-attributes-5PLACMXK.mjs → product-attributes-6ELSX5OH.mjs} +3 -3
  24. package/dist/{product-create-6FMLIS5X.mjs → product-create-6NWXJ7AY.mjs} +4 -4
  25. package/dist/{product-detail-2BJJMCCO.mjs → product-detail-G53SUBEP.mjs} +4 -4
  26. package/dist/{product-edit-N5P7RVNS.mjs → product-edit-ZYUXMIZP.mjs} +3 -3
  27. package/dist/{product-list-EUQX3NBE.mjs → product-list-R6IDCNRV.mjs} +2 -2
  28. package/dist/{product-media-XJGAON6B.mjs → product-media-AKHSFDJQ.mjs} +2 -2
  29. package/dist/{product-organization-FB6BVKKL.mjs → product-organization-J2UYHJ6I.mjs} +3 -3
  30. package/dist/{product-sales-channels-QBQDLU7Z.mjs → product-sales-channels-UX7AOJIF.mjs} +1 -1
  31. package/dist/{product-shipping-profile-UZQSV54B.mjs → product-shipping-profile-FN7L2V4X.mjs} +3 -3
  32. package/dist/{promotion-detail-VB5GZDCC.mjs → promotion-detail-RISSMGU5.mjs} +112 -63
  33. package/dist/{promotion-list-NAUTWXNU.mjs → promotion-list-UPVSOD6R.mjs} +3 -3
  34. package/dist/{refund-reason-list-VBHGRLJJ.mjs → refund-reason-list-RGRFZ5DU.mjs} +9 -4
  35. package/dist/{reset-password-ZCKXQZNQ.mjs → reset-password-AYCPBCKE.mjs} +1 -1
  36. package/dist/{sales-channel-list-R4HT6A7P.mjs → sales-channel-list-KNLMJ67Q.mjs} +1 -1
  37. package/dist/{tax-region-create-2GDG36NQ.mjs → tax-region-create-SP46RW2E.mjs} +1 -1
  38. package/dist/{user-list-TPBPZ7KJ.mjs → user-list-G4H2RSDX.mjs} +1 -1
  39. package/package.json +9 -9
  40. package/src/components/data-table/data-table.tsx +64 -46
  41. package/src/i18n/translations/$schema.json +19 -2
  42. package/src/i18n/translations/en.json +6 -2
  43. package/src/routes/locations/location-edit/components/edit-location-form/edit-location-form.tsx +1 -1
  44. package/src/routes/locations/location-list/index.ts +0 -1
  45. package/src/routes/locations/location-list/location-list.tsx +52 -14
  46. package/src/routes/locations/location-list/use-location-list-table-columns.tsx +185 -0
  47. package/src/routes/locations/location-list/use-location-list-table-query.tsx +22 -0
  48. package/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx +13 -5
  49. package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx +12 -4
  50. package/dist/chunk-BKJC5BGQ.mjs +0 -53
  51. package/dist/location-list-NKIOBHG4.mjs +0 -298
  52. package/src/routes/locations/location-list/components/location-list-header/index.ts +0 -1
  53. package/src/routes/locations/location-list/components/location-list-header/location-list-header.tsx +0 -21
  54. package/src/routes/locations/location-list/loader.ts +0 -36
@@ -17,17 +17,17 @@ import {
17
17
  } from "./chunk-4TC5YS65.mjs";
18
18
  import {
19
19
  PRODUCT_DETAIL_FIELDS
20
- } from "./chunk-U2FXUMKA.mjs";
20
+ } from "./chunk-NDNUJ2UK.mjs";
21
21
  import {
22
22
  FormExtensionZone,
23
23
  useExtendableForm
24
- } from "./chunk-CAZKNJTG.mjs";
24
+ } from "./chunk-NKM6CHK6.mjs";
25
25
  import "./chunk-NQIC7ZFS.mjs";
26
26
  import "./chunk-ONB3JEHR.mjs";
27
27
  import "./chunk-4GQOUCX6.mjs";
28
28
  import "./chunk-2VTICXJR.mjs";
29
29
  import "./chunk-D3YQN7HV.mjs";
30
- import "./chunk-YPSSUJUZ.mjs";
30
+ import "./chunk-HEBATBOH.mjs";
31
31
  import "./chunk-MNXC6Q4F.mjs";
32
32
  import {
33
33
  useExtension
@@ -8,7 +8,7 @@ import "./chunk-2D44OO7A.mjs";
8
8
  import "./chunk-Q33G337Z.mjs";
9
9
  import {
10
10
  DataTable
11
- } from "./chunk-OQPVQGSH.mjs";
11
+ } from "./chunk-7GBCLBMX.mjs";
12
12
  import "./chunk-C76H5USB.mjs";
13
13
  import "./chunk-PFKKVLZX.mjs";
14
14
  import {
@@ -14,14 +14,14 @@ import {
14
14
  } from "./chunk-4TC5YS65.mjs";
15
15
  import {
16
16
  PRODUCT_DETAIL_FIELDS
17
- } from "./chunk-U2FXUMKA.mjs";
18
- import "./chunk-CAZKNJTG.mjs";
17
+ } from "./chunk-NDNUJ2UK.mjs";
18
+ import "./chunk-NKM6CHK6.mjs";
19
19
  import "./chunk-NQIC7ZFS.mjs";
20
20
  import "./chunk-ONB3JEHR.mjs";
21
21
  import "./chunk-4GQOUCX6.mjs";
22
22
  import "./chunk-2VTICXJR.mjs";
23
23
  import "./chunk-D3YQN7HV.mjs";
24
- import "./chunk-YPSSUJUZ.mjs";
24
+ import "./chunk-HEBATBOH.mjs";
25
25
  import "./chunk-MNXC6Q4F.mjs";
26
26
  import "./chunk-C5P5PL3E.mjs";
27
27
  import "./chunk-DG7J63J2.mjs";
@@ -1,12 +1,9 @@
1
- import {
2
- BadgeListSummary
3
- } from "./chunk-BKJC5BGQ.mjs";
4
1
  import {
5
2
  DateRangeDisplay
6
3
  } from "./chunk-VAIHVNV6.mjs";
7
4
  import {
8
5
  getPromotionStatus
9
- } from "./chunk-2252SSK6.mjs";
6
+ } from "./chunk-6W7OL4TX.mjs";
10
7
  import {
11
8
  formatPercentage
12
9
  } from "./chunk-4FM6S5CX.mjs";
@@ -21,7 +18,7 @@ import {
21
18
  } from "./chunk-GIZFNLKK.mjs";
22
19
  import "./chunk-PFKKVLZX.mjs";
23
20
  import "./chunk-4GQOUCX6.mjs";
24
- import "./chunk-YPSSUJUZ.mjs";
21
+ import "./chunk-HEBATBOH.mjs";
25
22
  import {
26
23
  useExtension
27
24
  } from "./chunk-C5P5PL3E.mjs";
@@ -181,13 +178,65 @@ var CampaignSection = ({
181
178
 
182
179
  // src/routes/promotions/promotion-detail/components/promotion-conditions-section/promotion-conditions-section.tsx
183
180
  import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
184
- import { Badge, Container as Container2, Heading as Heading2 } from "@medusajs/ui";
181
+ import { Badge as Badge2, Container as Container2, Heading as Heading2 } from "@medusajs/ui";
182
+ import { useTranslation as useTranslation3 } from "react-i18next";
183
+
184
+ // src/components/common/badge-list-summary/badge-list-summary.tsx
185
+ import { Badge, Tooltip, clx } from "@medusajs/ui";
185
186
  import { useTranslation as useTranslation2 } from "react-i18next";
186
187
  import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
188
+ var BadgeListSummary = ({
189
+ list,
190
+ className,
191
+ inline,
192
+ rounded = false,
193
+ n = 2
194
+ }) => {
195
+ const { t } = useTranslation2();
196
+ const title = t("general.plusCount", {
197
+ count: list.length - n
198
+ });
199
+ return /* @__PURE__ */ jsxs2(
200
+ "div",
201
+ {
202
+ className: clx(
203
+ "text-ui-fg-subtle txt-compact-small gap-x-2 overflow-hidden",
204
+ {
205
+ "inline-flex": inline,
206
+ flex: !inline
207
+ },
208
+ className
209
+ ),
210
+ children: [
211
+ list.slice(0, n).map((item) => {
212
+ return /* @__PURE__ */ jsx3(Badge, { rounded: rounded ? "full" : "base", size: "2xsmall", children: item }, item);
213
+ }),
214
+ list.length > n && /* @__PURE__ */ jsx3("div", { className: "whitespace-nowrap", children: /* @__PURE__ */ jsx3(
215
+ Tooltip,
216
+ {
217
+ content: /* @__PURE__ */ jsx3("ul", { children: list.slice(n).map((c) => /* @__PURE__ */ jsx3("li", { children: c }, c)) }),
218
+ children: /* @__PURE__ */ jsx3(
219
+ Badge,
220
+ {
221
+ rounded: rounded ? "full" : "base",
222
+ size: "2xsmall",
223
+ className: "cursor-default whitespace-nowrap",
224
+ children: title
225
+ }
226
+ )
227
+ }
228
+ ) })
229
+ ]
230
+ }
231
+ );
232
+ };
233
+
234
+ // src/routes/promotions/promotion-detail/components/promotion-conditions-section/promotion-conditions-section.tsx
235
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
187
236
  function RuleBlock({ rule }) {
188
- return /* @__PURE__ */ jsx3("div", { className: "bg-ui-bg-subtle shadow-borders-base align-center flex justify-around rounded-md p-2", children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle txt-compact-xsmall flex items-center whitespace-nowrap", children: [
189
- /* @__PURE__ */ jsx3(
190
- Badge,
237
+ return /* @__PURE__ */ jsx4("div", { className: "bg-ui-bg-subtle shadow-borders-base align-center flex justify-around rounded-md p-2", children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle txt-compact-xsmall flex items-center whitespace-nowrap", children: [
238
+ /* @__PURE__ */ jsx4(
239
+ Badge2,
191
240
  {
192
241
  size: "2xsmall",
193
242
  className: "txt-compact-xsmall-plus tag-neutral-text mx-1 inline-block truncate",
@@ -195,8 +244,8 @@ function RuleBlock({ rule }) {
195
244
  },
196
245
  "rule-attribute"
197
246
  ),
198
- /* @__PURE__ */ jsx3("span", { className: "txt-compact-2xsmall mx-1 inline-block", children: rule.operator_label }),
199
- /* @__PURE__ */ jsx3(
247
+ /* @__PURE__ */ jsx4("span", { className: "txt-compact-2xsmall mx-1 inline-block", children: rule.operator_label }),
248
+ /* @__PURE__ */ jsx4(
200
249
  BadgeListSummary,
201
250
  {
202
251
  inline: true,
@@ -211,20 +260,20 @@ var PromotionConditionsSection = ({
211
260
  ruleType,
212
261
  applicationMethodTargetType
213
262
  }) => {
214
- const { t } = useTranslation2();
215
- return /* @__PURE__ */ jsxs2(Container2, { className: "p-0", children: [
216
- /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
217
- /* @__PURE__ */ jsx3("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx3(Heading2, { children: t(
263
+ const { t } = useTranslation3();
264
+ return /* @__PURE__ */ jsxs3(Container2, { className: "p-0", children: [
265
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", children: [
266
+ /* @__PURE__ */ jsx4("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx4(Heading2, { children: t(
218
267
  ruleType === "target-rules" ? `promotions.fields.conditions.${ruleType}.${applicationMethodTargetType}.title` : `promotions.fields.conditions.${ruleType}.title`
219
268
  ) }) }),
220
- /* @__PURE__ */ jsx3(
269
+ /* @__PURE__ */ jsx4(
221
270
  ActionMenu,
222
271
  {
223
272
  groups: [
224
273
  {
225
274
  actions: [
226
275
  {
227
- icon: /* @__PURE__ */ jsx3(PencilSquare2, {}),
276
+ icon: /* @__PURE__ */ jsx4(PencilSquare2, {}),
228
277
  label: t("actions.edit"),
229
278
  to: `${ruleType}/edit`
230
279
  }
@@ -234,8 +283,8 @@ var PromotionConditionsSection = ({
234
283
  }
235
284
  )
236
285
  ] }),
237
- /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle flex flex-col gap-2 px-6 pb-4 pt-2", children: [
238
- !rules.length && /* @__PURE__ */ jsx3(
286
+ /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle flex flex-col gap-2 px-6 pb-4 pt-2", children: [
287
+ !rules.length && /* @__PURE__ */ jsx4(
239
288
  NoRecords,
240
289
  {
241
290
  className: "h-[180px]",
@@ -248,7 +297,7 @@ var PromotionConditionsSection = ({
248
297
  buttonVariant: "transparentIconLeft"
249
298
  }
250
299
  ),
251
- rules.map((rule) => /* @__PURE__ */ jsx3(RuleBlock, { rule }, `${rule.id}-${rule.attribute}`))
300
+ rules.map((rule) => /* @__PURE__ */ jsx4(RuleBlock, { rule }, `${rule.id}-${rule.attribute}`))
252
301
  ] })
253
302
  ] });
254
303
  };
@@ -256,7 +305,7 @@ var PromotionConditionsSection = ({
256
305
  // src/routes/promotions/promotion-detail/components/promotion-general-section/promotion-general-section.tsx
257
306
  import { PencilSquare as PencilSquare3, Trash } from "@medusajs/icons";
258
307
  import {
259
- Badge as Badge2,
308
+ Badge as Badge3,
260
309
  Container as Container3,
261
310
  Copy,
262
311
  Heading as Heading3,
@@ -264,9 +313,9 @@ import {
264
313
  Text as Text2,
265
314
  usePrompt
266
315
  } from "@medusajs/ui";
267
- import { useTranslation as useTranslation3 } from "react-i18next";
316
+ import { useTranslation as useTranslation4 } from "react-i18next";
268
317
  import { useNavigate } from "react-router-dom";
269
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
318
+ import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
270
319
  function getDisplayValue(promotion) {
271
320
  const value = promotion.application_method?.value;
272
321
  if (!value) {
@@ -286,7 +335,7 @@ function getDisplayValue(promotion) {
286
335
  var PromotionGeneralSection = ({
287
336
  promotion
288
337
  }) => {
289
- const { t } = useTranslation3();
338
+ const { t } = useTranslation4();
290
339
  const prompt = usePrompt();
291
340
  const navigate = useNavigate();
292
341
  const { mutateAsync } = useDeletePromotion(promotion.id);
@@ -312,19 +361,19 @@ var PromotionGeneralSection = ({
312
361
  };
313
362
  const [color, text] = getPromotionStatus(promotion);
314
363
  const displayValue = getDisplayValue(promotion);
315
- return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", children: [
316
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", children: [
317
- /* @__PURE__ */ jsx4("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx4(Heading3, { children: promotion.code }) }),
318
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
319
- /* @__PURE__ */ jsx4(StatusBadge, { color, children: text }),
320
- /* @__PURE__ */ jsx4(
364
+ return /* @__PURE__ */ jsxs4(Container3, { className: "divide-y p-0", children: [
365
+ /* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", children: [
366
+ /* @__PURE__ */ jsx5("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx5(Heading3, { children: promotion.code }) }),
367
+ /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2", children: [
368
+ /* @__PURE__ */ jsx5(StatusBadge, { color, children: text }),
369
+ /* @__PURE__ */ jsx5(
321
370
  ActionMenu,
322
371
  {
323
372
  groups: [
324
373
  {
325
374
  actions: [
326
375
  {
327
- icon: /* @__PURE__ */ jsx4(PencilSquare3, {}),
376
+ icon: /* @__PURE__ */ jsx5(PencilSquare3, {}),
328
377
  label: t("actions.edit"),
329
378
  to: `/promotions/${promotion.id}/edit`
330
379
  }
@@ -333,7 +382,7 @@ var PromotionGeneralSection = ({
333
382
  {
334
383
  actions: [
335
384
  {
336
- icon: /* @__PURE__ */ jsx4(Trash, {}),
385
+ icon: /* @__PURE__ */ jsx5(Trash, {}),
337
386
  label: t("actions.delete"),
338
387
  onClick: handleDelete
339
388
  }
@@ -344,20 +393,20 @@ var PromotionGeneralSection = ({
344
393
  )
345
394
  ] })
346
395
  ] }),
347
- /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
348
- /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.campaign") }),
349
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty", children: promotion.is_automatic ? t("promotions.form.method.automatic.title") : t("promotions.form.method.code.title") })
396
+ /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
397
+ /* @__PURE__ */ jsx5(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.campaign") }),
398
+ /* @__PURE__ */ jsx5(Text2, { size: "small", leading: "compact", className: "text-pretty", children: promotion.is_automatic ? t("promotions.form.method.automatic.title") : t("promotions.form.method.code.title") })
350
399
  ] }),
351
- /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
352
- /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("fields.code") }),
353
- /* @__PURE__ */ jsx4(
400
+ /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
401
+ /* @__PURE__ */ jsx5(Text2, { size: "small", weight: "plus", leading: "compact", children: t("fields.code") }),
402
+ /* @__PURE__ */ jsx5(
354
403
  Copy,
355
404
  {
356
405
  content: promotion.code,
357
406
  className: "text-ui-tag-neutral-text",
358
407
  asChild: true,
359
- children: /* @__PURE__ */ jsx4(
360
- Badge2,
408
+ children: /* @__PURE__ */ jsx5(
409
+ Badge3,
361
410
  {
362
411
  size: "2xsmall",
363
412
  rounded: "full",
@@ -368,30 +417,30 @@ var PromotionGeneralSection = ({
368
417
  }
369
418
  )
370
419
  ] }),
371
- /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
372
- /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.type") }),
373
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", children: promotion.type })
420
+ /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
421
+ /* @__PURE__ */ jsx5(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.type") }),
422
+ /* @__PURE__ */ jsx5(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", children: promotion.type })
374
423
  ] }),
375
- /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
376
- /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.value") }),
377
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
378
- /* @__PURE__ */ jsx4(Text2, { className: "inline", size: "small", leading: "compact", children: displayValue || "-" }),
379
- promotion?.application_method?.type === "fixed" && /* @__PURE__ */ jsx4(Badge2, { size: "2xsmall", rounded: "full", children: promotion?.application_method?.currency_code?.toUpperCase() })
424
+ /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
425
+ /* @__PURE__ */ jsx5(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.value") }),
426
+ /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2", children: [
427
+ /* @__PURE__ */ jsx5(Text2, { className: "inline", size: "small", leading: "compact", children: displayValue || "-" }),
428
+ promotion?.application_method?.type === "fixed" && /* @__PURE__ */ jsx5(Badge3, { size: "2xsmall", rounded: "full", children: promotion?.application_method?.currency_code?.toUpperCase() })
380
429
  ] })
381
430
  ] }),
382
- /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
383
- /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.allocation") }),
384
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", children: promotion.application_method?.allocation })
431
+ /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
432
+ /* @__PURE__ */ jsx5(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.allocation") }),
433
+ /* @__PURE__ */ jsx5(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", children: promotion.application_method?.allocation })
385
434
  ] }),
386
- promotion.application_method?.type === "fixed" && /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
387
- /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.taxInclusive") }),
388
- /* @__PURE__ */ jsx4("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ jsx4(Text2, { className: "inline", size: "small", leading: "compact", children: promotion.is_tax_inclusive ? t("fields.true") : t("fields.false") }) })
435
+ promotion.application_method?.type === "fixed" && /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
436
+ /* @__PURE__ */ jsx5(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.taxInclusive") }),
437
+ /* @__PURE__ */ jsx5("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ jsx5(Text2, { className: "inline", size: "small", leading: "compact", children: promotion.is_tax_inclusive ? t("fields.true") : t("fields.false") }) })
389
438
  ] })
390
439
  ] });
391
440
  };
392
441
 
393
442
  // src/routes/promotions/promotion-detail/promotion-detail.tsx
394
- import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
443
+ import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
395
444
  var PromotionDetail = () => {
396
445
  const initialData = useLoaderData();
397
446
  const { id } = useParams2();
@@ -405,9 +454,9 @@ var PromotionDetail = () => {
405
454
  const { rules: buyRules } = usePromotionRules(id, "buy-rules", query);
406
455
  const { getWidgets } = useExtension();
407
456
  if (isLoading || !promotion) {
408
- return /* @__PURE__ */ jsx5(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 1, showJSON: true });
457
+ return /* @__PURE__ */ jsx6(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 1, showJSON: true });
409
458
  }
410
- return /* @__PURE__ */ jsxs4(
459
+ return /* @__PURE__ */ jsxs5(
411
460
  TwoColumnPage,
412
461
  {
413
462
  data: promotion,
@@ -420,10 +469,10 @@ var PromotionDetail = () => {
420
469
  hasOutlet: true,
421
470
  showJSON: true,
422
471
  children: [
423
- /* @__PURE__ */ jsxs4(TwoColumnPage.Main, { children: [
424
- /* @__PURE__ */ jsx5(PromotionGeneralSection, { promotion }),
425
- /* @__PURE__ */ jsx5(PromotionConditionsSection, { rules: rules || [], ruleType: "rules" }),
426
- /* @__PURE__ */ jsx5(
472
+ /* @__PURE__ */ jsxs5(TwoColumnPage.Main, { children: [
473
+ /* @__PURE__ */ jsx6(PromotionGeneralSection, { promotion }),
474
+ /* @__PURE__ */ jsx6(PromotionConditionsSection, { rules: rules || [], ruleType: "rules" }),
475
+ /* @__PURE__ */ jsx6(
427
476
  PromotionConditionsSection,
428
477
  {
429
478
  rules: targetRules || [],
@@ -431,7 +480,7 @@ var PromotionDetail = () => {
431
480
  applicationMethodTargetType: promotion.application_method.target_type || "items"
432
481
  }
433
482
  ),
434
- promotion.type === "buyget" && /* @__PURE__ */ jsx5(
483
+ promotion.type === "buyget" && /* @__PURE__ */ jsx6(
435
484
  PromotionConditionsSection,
436
485
  {
437
486
  rules: buyRules || [],
@@ -440,7 +489,7 @@ var PromotionDetail = () => {
440
489
  }
441
490
  )
442
491
  ] }),
443
- /* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(CampaignSection, { campaign: promotion.campaign }) })
492
+ /* @__PURE__ */ jsx6(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx6(CampaignSection, { campaign: promotion.campaign }) })
444
493
  ]
445
494
  }
446
495
  );
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-V53HAFWH.mjs";
5
- import "./chunk-2252SSK6.mjs";
4
+ } from "./chunk-UOEALCPZ.mjs";
5
+ import "./chunk-6W7OL4TX.mjs";
6
6
  import "./chunk-MSDRGCRR.mjs";
7
7
  import "./chunk-ADOCJB6L.mjs";
8
8
  import "./chunk-LQTHYS2Z.mjs";
@@ -25,7 +25,7 @@ import {
25
25
  import "./chunk-C76H5USB.mjs";
26
26
  import "./chunk-PFKKVLZX.mjs";
27
27
  import "./chunk-4GQOUCX6.mjs";
28
- import "./chunk-YPSSUJUZ.mjs";
28
+ import "./chunk-HEBATBOH.mjs";
29
29
  import {
30
30
  useExtension
31
31
  } from "./chunk-C5P5PL3E.mjs";
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-GIZFNLKK.mjs";
40
40
  import {
41
41
  DataTable
42
- } from "./chunk-OQPVQGSH.mjs";
42
+ } from "./chunk-7GBCLBMX.mjs";
43
43
  import "./chunk-C76H5USB.mjs";
44
44
  import "./chunk-PFKKVLZX.mjs";
45
45
  import "./chunk-MNXC6Q4F.mjs";
@@ -106,7 +106,12 @@ var refundReasonListLoader = async () => {
106
106
 
107
107
  // src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx
108
108
  import { PencilSquare, Trash } from "@medusajs/icons";
109
- import { Container, createDataTableColumnHelper, toast, usePrompt } from "@medusajs/ui";
109
+ import {
110
+ Container,
111
+ createDataTableColumnHelper,
112
+ toast,
113
+ usePrompt
114
+ } from "@medusajs/ui";
110
115
  import { keepPreviousData } from "@tanstack/react-query";
111
116
  import { useCallback, useMemo } from "react";
112
117
  import { useTranslation } from "react-i18next";
@@ -118,7 +123,7 @@ var RefundReasonListTable = () => {
118
123
  const { searchParams } = useRefundReasonTableQuery({
119
124
  pageSize: PAGE_SIZE
120
125
  });
121
- const { refund_reasons, count, isPending, isError, error } = useRefundReasons(
126
+ const { refund_reasons, count, isLoading, isError, error } = useRefundReasons(
122
127
  searchParams,
123
128
  {
124
129
  placeholderData: keepPreviousData
@@ -153,7 +158,7 @@ var RefundReasonListTable = () => {
153
158
  to: "create"
154
159
  }
155
160
  ],
156
- isLoading: isPending,
161
+ isLoading,
157
162
  enableSearch: true
158
163
  }
159
164
  ) });
@@ -3,7 +3,7 @@ import "./chunk-EQTBJSBZ.mjs";
3
3
  import "./chunk-4GQOUCX6.mjs";
4
4
  import {
5
5
  i18n
6
- } from "./chunk-YPSSUJUZ.mjs";
6
+ } from "./chunk-HEBATBOH.mjs";
7
7
  import {
8
8
  Form
9
9
  } from "./chunk-OBQI23QM.mjs";
@@ -11,7 +11,7 @@ import "./chunk-2D44OO7A.mjs";
11
11
  import "./chunk-Q33G337Z.mjs";
12
12
  import {
13
13
  DataTable
14
- } from "./chunk-OQPVQGSH.mjs";
14
+ } from "./chunk-7GBCLBMX.mjs";
15
15
  import "./chunk-C76H5USB.mjs";
16
16
  import "./chunk-PFKKVLZX.mjs";
17
17
  import {
@@ -24,7 +24,7 @@ import {
24
24
  import "./chunk-4GQOUCX6.mjs";
25
25
  import {
26
26
  i18n
27
- } from "./chunk-YPSSUJUZ.mjs";
27
+ } from "./chunk-HEBATBOH.mjs";
28
28
  import "./chunk-DG7J63J2.mjs";
29
29
  import {
30
30
  Form
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-Q33G337Z.mjs";
10
10
  import {
11
11
  DataTable
12
- } from "./chunk-OQPVQGSH.mjs";
12
+ } from "./chunk-7GBCLBMX.mjs";
13
13
  import {
14
14
  useQueryParams
15
15
  } from "./chunk-C76H5USB.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/dashboard",
3
- "version": "2.10.4-preview-20250924060154",
3
+ "version": "2.10.4-preview-20250924090158",
4
4
  "scripts": {
5
5
  "generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
6
6
  "dev": "vite",
@@ -45,10 +45,10 @@
45
45
  "@dnd-kit/utilities": "^3.2.2",
46
46
  "@hookform/error-message": "^2.0.1",
47
47
  "@hookform/resolvers": "3.4.2",
48
- "@medusajs/admin-shared": "2.10.4-preview-20250924060154",
49
- "@medusajs/icons": "2.10.4-preview-20250924060154",
50
- "@medusajs/js-sdk": "2.10.4-preview-20250924060154",
51
- "@medusajs/ui": "4.0.24-preview-20250924060154",
48
+ "@medusajs/admin-shared": "2.10.4-preview-20250924090158",
49
+ "@medusajs/icons": "2.10.4-preview-20250924090158",
50
+ "@medusajs/js-sdk": "2.10.4-preview-20250924090158",
51
+ "@medusajs/ui": "4.0.24-preview-20250924090158",
52
52
  "@radix-ui/react-dialog": "1.1.4",
53
53
  "@radix-ui/react-dismissable-layer": "1.1.4",
54
54
  "@tanstack/react-query": "5.64.2",
@@ -78,10 +78,10 @@
78
78
  "zod": "3.25.76"
79
79
  },
80
80
  "devDependencies": {
81
- "@medusajs/admin-shared": "2.10.4-preview-20250924060154",
82
- "@medusajs/admin-vite-plugin": "2.10.4-preview-20250924060154",
83
- "@medusajs/types": "2.10.4-preview-20250924060154",
84
- "@medusajs/ui-preset": "2.10.4-preview-20250924060154",
81
+ "@medusajs/admin-shared": "2.10.4-preview-20250924090158",
82
+ "@medusajs/admin-vite-plugin": "2.10.4-preview-20250924090158",
83
+ "@medusajs/types": "2.10.4-preview-20250924090158",
84
+ "@medusajs/ui-preset": "2.10.4-preview-20250924090158",
85
85
  "@types/node": "^20.11.15",
86
86
  "@types/react": "^18.2.79",
87
87
  "@types/react-dom": "^18.2.25",