@dmsi/wedgekit-react 0.0.552 → 0.0.554

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 (151) hide show
  1. package/dist/{chunk-7COWXCPA.js → chunk-45SH6WHE.js} +3 -3
  2. package/dist/{chunk-KJ5OQPPV.js → chunk-63WMDTVQ.js} +1 -1
  3. package/dist/{chunk-FJFZBIRG.js → chunk-7ZCXZDJD.js} +3 -3
  4. package/dist/{chunk-FWCVZWE6.js → chunk-7ZL4GBAD.js} +3 -3
  5. package/dist/{chunk-5BRIDIUA.js → chunk-AGHBLWDZ.js} +3 -3
  6. package/dist/{chunk-QYKOR7LE.js → chunk-CQLRGYHM.js} +3 -3
  7. package/dist/{chunk-XRE52QTN.js → chunk-D5V3PUQQ.js} +6 -6
  8. package/dist/{chunk-Y3EFHKAG.js → chunk-DWICBU2V.js} +1 -1
  9. package/dist/{chunk-CMMQTIVM.js → chunk-EJOPJIRO.js} +3 -3
  10. package/dist/{chunk-K4SIZGMK.js → chunk-EQ2RAI53.js} +1 -1
  11. package/dist/{chunk-SBGGDIE3.js → chunk-FIVKYEC3.js} +7 -7
  12. package/dist/{chunk-QMMPHXVE.js → chunk-GVIXW2QS.js} +3 -3
  13. package/dist/{chunk-ZIPJMN2E.js → chunk-GYQA4UIK.js} +6 -6
  14. package/dist/{chunk-45AHDOAU.js → chunk-HVYK7COK.js} +9 -3
  15. package/dist/{chunk-AKJUBFJK.js → chunk-KV7LAH3T.js} +3 -3
  16. package/dist/{chunk-AX4M7X4Z.js → chunk-MTGNBARV.js} +5 -2
  17. package/dist/{chunk-MHXYGKWA.js → chunk-Q3G6Z5DM.js} +1 -1
  18. package/dist/{chunk-4DXOA7NZ.js → chunk-RZ5EIDX4.js} +1 -1
  19. package/dist/{chunk-PJL5XESN.js → chunk-TL4M56HJ.js} +1 -1
  20. package/dist/{chunk-WNGFRQ4Y.js → chunk-TXPN24PW.js} +13 -13
  21. package/dist/{chunk-Z2QAJY5I.js → chunk-UAMI54FE.js} +1 -1
  22. package/dist/chunk-XJF4S3RB.js +82 -0
  23. package/dist/chunk-XR733AKC.js +82 -0
  24. package/dist/{chunk-7SFFUICM.js → chunk-YLC7OHW2.js} +6 -6
  25. package/dist/chunk-ZCJWOHFN.js +139 -0
  26. package/dist/{chunk-JADOJNBI.js → chunk-ZDXJXDZT.js} +4 -4
  27. package/dist/components/AccessCard.cjs +661 -0
  28. package/dist/components/AccessCard.js +13 -0
  29. package/dist/components/AccessCardGroup.cjs +365 -0
  30. package/dist/components/AccessCardGroup.js +11 -0
  31. package/dist/components/Accordion.cjs +5 -2
  32. package/dist/components/Accordion.js +2 -2
  33. package/dist/components/Alert.cjs +64 -28
  34. package/dist/components/Alert.js +4 -3
  35. package/dist/components/Button.cjs +38 -5
  36. package/dist/components/Button.js +2 -1
  37. package/dist/components/CalendarRange.cjs +298 -128
  38. package/dist/components/CalendarRange.css +44 -0
  39. package/dist/components/CalendarRange.js +28 -24
  40. package/dist/components/CompactImagesPreview.cjs +5 -2
  41. package/dist/components/CompactImagesPreview.js +2 -2
  42. package/dist/components/ContentTab.cjs +42 -9
  43. package/dist/components/ContentTab.js +3 -2
  44. package/dist/components/ContentTabs.cjs +47 -14
  45. package/dist/components/ContentTabs.js +3 -2
  46. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +281 -111
  47. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +44 -0
  48. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +28 -24
  49. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +291 -121
  50. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +44 -0
  51. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +28 -24
  52. package/dist/components/DataGrid/PinnedColumns.cjs +306 -136
  53. package/dist/components/DataGrid/PinnedColumns.css +44 -0
  54. package/dist/components/DataGrid/PinnedColumns.js +28 -24
  55. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +282 -112
  56. package/dist/components/DataGrid/TableBody/LoadingCell.css +44 -0
  57. package/dist/components/DataGrid/TableBody/LoadingCell.js +28 -24
  58. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +288 -118
  59. package/dist/components/DataGrid/TableBody/TableBodyRow.css +44 -0
  60. package/dist/components/DataGrid/TableBody/TableBodyRow.js +28 -24
  61. package/dist/components/DataGrid/TableBody/index.cjs +303 -133
  62. package/dist/components/DataGrid/TableBody/index.css +44 -0
  63. package/dist/components/DataGrid/TableBody/index.js +28 -24
  64. package/dist/components/DataGrid/index.cjs +392 -222
  65. package/dist/components/DataGrid/index.css +44 -0
  66. package/dist/components/DataGrid/index.js +28 -24
  67. package/dist/components/DataGrid/utils.cjs +282 -112
  68. package/dist/components/DataGrid/utils.css +44 -0
  69. package/dist/components/DataGrid/utils.js +28 -24
  70. package/dist/components/DataGridCell.js +3 -3
  71. package/dist/components/DateInput.cjs +311 -141
  72. package/dist/components/DateInput.css +44 -0
  73. package/dist/components/DateInput.js +28 -24
  74. package/dist/components/DateRangeInput.cjs +317 -147
  75. package/dist/components/DateRangeInput.css +44 -0
  76. package/dist/components/DateRangeInput.js +28 -24
  77. package/dist/components/FilterGroup.cjs +87 -52
  78. package/dist/components/FilterGroup.js +6 -5
  79. package/dist/components/InputGroup.cjs +1 -1
  80. package/dist/components/InputGroup.js +1 -1
  81. package/dist/components/ListGroup.cjs +5 -2
  82. package/dist/components/ListGroup.js +2 -2
  83. package/dist/components/MenuOption.js +2 -2
  84. package/dist/components/MobileDataGrid/ColumnList.cjs +5 -2
  85. package/dist/components/MobileDataGrid/ColumnList.js +3 -3
  86. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +288 -118
  87. package/dist/components/MobileDataGrid/ColumnSelector/index.css +44 -0
  88. package/dist/components/MobileDataGrid/ColumnSelector/index.js +28 -24
  89. package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +5 -2
  90. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
  91. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +293 -120
  92. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +44 -0
  93. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +28 -24
  94. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +5 -2
  95. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
  96. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +94 -58
  97. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +8 -7
  98. package/dist/components/MobileDataGrid/index.cjs +372 -199
  99. package/dist/components/MobileDataGrid/index.css +44 -0
  100. package/dist/components/MobileDataGrid/index.js +28 -24
  101. package/dist/components/Modal.cjs +64 -29
  102. package/dist/components/Modal.js +5 -4
  103. package/dist/components/ModalButtons.cjs +47 -14
  104. package/dist/components/ModalButtons.js +3 -2
  105. package/dist/components/ModalHeader.cjs +47 -12
  106. package/dist/components/ModalHeader.js +3 -2
  107. package/dist/components/NavigationTab.cjs +43 -10
  108. package/dist/components/NavigationTab.js +3 -2
  109. package/dist/components/NavigationTabs.cjs +48 -15
  110. package/dist/components/NavigationTabs.js +3 -2
  111. package/dist/components/NestedMenu.cjs +48 -13
  112. package/dist/components/NestedMenu.js +6 -5
  113. package/dist/components/Notification.cjs +68 -32
  114. package/dist/components/Notification.js +7 -6
  115. package/dist/components/OptionPill.cjs +48 -13
  116. package/dist/components/OptionPill.js +3 -2
  117. package/dist/components/PDFViewer/DownloadIcon.cjs +46 -13
  118. package/dist/components/PDFViewer/DownloadIcon.js +3 -2
  119. package/dist/components/PDFViewer/PDFElement.cjs +5 -2
  120. package/dist/components/PDFViewer/PDFElement.js +2 -2
  121. package/dist/components/PDFViewer/PDFNavigation.cjs +64 -28
  122. package/dist/components/PDFViewer/PDFNavigation.js +4 -3
  123. package/dist/components/PDFViewer/index.cjs +69 -61
  124. package/dist/components/PDFViewer/index.js +11 -11
  125. package/dist/components/ProductImagePreview/index.cjs +5 -2
  126. package/dist/components/ProductImagePreview/index.js +5 -5
  127. package/dist/components/Radio.js +5 -134
  128. package/dist/components/SideMenuGroup.cjs +5 -2
  129. package/dist/components/SideMenuGroup.js +1 -1
  130. package/dist/components/SideMenuItem.cjs +5 -2
  131. package/dist/components/SideMenuItem.js +3 -3
  132. package/dist/components/SimpleTable.cjs +5 -2
  133. package/dist/components/SimpleTable.js +2 -2
  134. package/dist/components/Stack.cjs +5 -2
  135. package/dist/components/Stack.js +1 -1
  136. package/dist/components/Stepper.cjs +73 -40
  137. package/dist/components/Stepper.js +4 -3
  138. package/dist/components/Swatch.cjs +5 -2
  139. package/dist/components/Swatch.js +3 -3
  140. package/dist/components/Time.cjs +5 -2
  141. package/dist/components/Time.js +2 -2
  142. package/dist/components/Toast.cjs +51 -16
  143. package/dist/components/Toast.js +4 -3
  144. package/dist/components/Upload.cjs +46 -38
  145. package/dist/components/Upload.js +6 -6
  146. package/dist/components/index.cjs +537 -231
  147. package/dist/components/index.css +44 -0
  148. package/dist/components/index.js +40 -30
  149. package/dist/index.css +44 -0
  150. package/package.json +1 -1
  151. package/dist/{chunk-EZ4KZYKG.js → chunk-YWQEMS2C.js} +3 -3
@@ -207,8 +207,38 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
207
207
  "gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
208
208
  );
209
209
 
210
- // src/components/Button.tsx
210
+ // src/components/Spinner.tsx
211
211
  var import_jsx_runtime = require("react/jsx-runtime");
212
+ var Spinner = ({ size = "small", testid }) => {
213
+ const dimension = size === "large" ? 48 : 24;
214
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
215
+ "svg",
216
+ {
217
+ "data-testid": testid,
218
+ width: dimension,
219
+ height: dimension,
220
+ viewBox: "0 0 24 24",
221
+ xmlns: "http://www.w3.org/2000/svg",
222
+ fill: "#1D1E1E",
223
+ className: "spinner",
224
+ "aria-label": "Loading",
225
+ children: [
226
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
227
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
228
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
229
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
230
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
231
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
232
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
233
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
234
+ ]
235
+ }
236
+ );
237
+ };
238
+ Spinner.displayName = "Spinner";
239
+
240
+ // src/components/Button.tsx
241
+ var import_jsx_runtime2 = require("react/jsx-runtime");
212
242
  var Button = (_a) => {
213
243
  var _b = _a, {
214
244
  variant = "primary",
@@ -224,7 +254,8 @@ var Button = (_a) => {
224
254
  colorClassName,
225
255
  href,
226
256
  id,
227
- testid
257
+ testid,
258
+ isLoading
228
259
  } = _b, props = __objRest(_b, [
229
260
  "variant",
230
261
  "as",
@@ -239,7 +270,8 @@ var Button = (_a) => {
239
270
  "colorClassName",
240
271
  "href",
241
272
  "id",
242
- "testid"
273
+ "testid",
274
+ "isLoading"
243
275
  ]);
244
276
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
245
277
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -323,7 +355,7 @@ var Button = (_a) => {
323
355
  typography.buttonLabel
324
356
  );
325
357
  const Element = href && !as ? "a" : as;
326
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
358
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
327
359
  Element,
328
360
  __spreadProps(__spreadValues({
329
361
  id,
@@ -337,7 +369,8 @@ var Button = (_a) => {
337
369
  "data-theme": variant === "navigation" ? "brand" : void 0,
338
370
  children: [
339
371
  leftIcon && leftIcon,
340
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
372
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Spinner, { size: "small" }),
373
+ !iconOnly && !isLoading && children && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
341
374
  rightIcon && rightIcon
342
375
  ]
343
376
  })
@@ -351,7 +384,7 @@ var import_clsx6 = __toESM(require("clsx"), 1);
351
384
 
352
385
  // src/components/Label.tsx
353
386
  var import_clsx3 = __toESM(require("clsx"), 1);
354
- var import_jsx_runtime2 = require("react/jsx-runtime");
387
+ var import_jsx_runtime3 = require("react/jsx-runtime");
355
388
  var Label = (_a) => {
356
389
  var _b = _a, {
357
390
  as = "span",
@@ -371,7 +404,7 @@ var Label = (_a) => {
371
404
  "testid"
372
405
  ]);
373
406
  const Element = as;
374
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
407
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
375
408
  Element,
376
409
  __spreadProps(__spreadValues({
377
410
  id,
@@ -395,7 +428,7 @@ Label.displayName = "Label";
395
428
 
396
429
  // src/components/Icon.tsx
397
430
  var import_clsx4 = __toESM(require("clsx"), 1);
398
- var import_jsx_runtime3 = require("react/jsx-runtime");
431
+ var import_jsx_runtime4 = require("react/jsx-runtime");
399
432
  function Icon(_a) {
400
433
  var _b = _a, {
401
434
  name,
@@ -410,7 +443,7 @@ function Icon(_a) {
410
443
  ]);
411
444
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
412
445
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
413
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
446
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
414
447
  "span",
415
448
  __spreadProps(__spreadValues({}, props), {
416
449
  "data-testid": testid,
@@ -463,7 +496,7 @@ function formatCurrencyDisplay(value) {
463
496
 
464
497
  // src/components/Paragraph.tsx
465
498
  var import_clsx5 = __toESM(require("clsx"), 1);
466
- var import_jsx_runtime4 = require("react/jsx-runtime");
499
+ var import_jsx_runtime5 = require("react/jsx-runtime");
467
500
  var Paragraph = (_a) => {
468
501
  var _b = _a, {
469
502
  className,
@@ -489,7 +522,7 @@ var Paragraph = (_a) => {
489
522
  "testid"
490
523
  ]);
491
524
  const Element = as;
492
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
525
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
493
526
  Element,
494
527
  __spreadProps(__spreadValues({
495
528
  id,
@@ -515,7 +548,7 @@ var Paragraph = (_a) => {
515
548
  Paragraph.displayName = "Paragraph";
516
549
 
517
550
  // src/components/Input.tsx
518
- var import_jsx_runtime5 = require("react/jsx-runtime");
551
+ var import_jsx_runtime6 = require("react/jsx-runtime");
519
552
  var InputBase = (_a) => {
520
553
  var _b = _a, {
521
554
  id,
@@ -610,7 +643,7 @@ var InputBase = (_a) => {
610
643
  const inputInvalidClass = (0, import_clsx6.default)(
611
644
  "has-[[data-error]]:border-transparent has-[[data-error]]:not-focus-within:outline-border-primary-error has-[[data-error]]:not-focus-within:outline-1"
612
645
  );
613
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
646
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
614
647
  "label",
615
648
  {
616
649
  id,
@@ -625,8 +658,8 @@ var InputBase = (_a) => {
625
658
  ),
626
659
  style: __spreadValues({}, props.style),
627
660
  children: [
628
- label && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_clsx6.default)("flex items-center", componentGap), children: [
629
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
661
+ label && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: (0, import_clsx6.default)("flex items-center", componentGap), children: [
662
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
630
663
  Label,
631
664
  {
632
665
  id: id ? `${id}-label` : void 0,
@@ -637,7 +670,7 @@ var InputBase = (_a) => {
637
670
  children: label
638
671
  }
639
672
  ),
640
- required && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
673
+ required && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
641
674
  "span",
642
675
  {
643
676
  className: (0, import_clsx6.default)(typography.label, "text-text-critical-normal"),
@@ -645,7 +678,7 @@ var InputBase = (_a) => {
645
678
  }
646
679
  )
647
680
  ] }),
648
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
681
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
649
682
  "div",
650
683
  {
651
684
  className: (0, import_clsx6.default)(
@@ -663,7 +696,7 @@ var InputBase = (_a) => {
663
696
  },
664
697
  children: [
665
698
  before,
666
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
699
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
667
700
  "input",
668
701
  __spreadProps(__spreadValues(__spreadValues({
669
702
  ref: (el) => {
@@ -688,12 +721,12 @@ var InputBase = (_a) => {
688
721
  style: __spreadProps(__spreadValues({}, props.style), { width })
689
722
  })
690
723
  ),
691
- secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
724
+ secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
692
725
  rightAdornment
693
726
  ]
694
727
  }
695
728
  ),
696
- caption && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
729
+ caption && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
697
730
  "div",
698
731
  {
699
732
  id: id ? `${id}-caption` : void 0,
@@ -788,9 +821,9 @@ var Input = (_a) => {
788
821
  if (props.before) return props.before;
789
822
  switch (variant) {
790
823
  case "search":
791
- return !removeSearchIcon ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "search" }) }) : null;
824
+ return !removeSearchIcon ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "search" }) }) : null;
792
825
  case "currency":
793
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "attach_money" }) });
826
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "attach_money" }) });
794
827
  default:
795
828
  return null;
796
829
  }
@@ -800,7 +833,7 @@ var Input = (_a) => {
800
833
  switch (variant) {
801
834
  case "search": {
802
835
  const hasValue = displayValue.length > 0;
803
- return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
836
+ return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
804
837
  Icon,
805
838
  {
806
839
  id: id ? `${id}-clear-button` : void 0,
@@ -812,11 +845,11 @@ var Input = (_a) => {
812
845
  ) : null;
813
846
  }
814
847
  case "finder":
815
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "search" });
848
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "search" });
816
849
  case "uom":
817
- return uom ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
850
+ return uom ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
818
851
  case "percentage":
819
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "percent" }) });
852
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "percent" }) });
820
853
  default:
821
854
  return null;
822
855
  }
@@ -936,7 +969,7 @@ var Input = (_a) => {
936
969
  onBlur == null ? void 0 : onBlur(e);
937
970
  };
938
971
  const inputProps = getInputProps();
939
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
972
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
940
973
  InputBase,
941
974
  __spreadProps(__spreadValues({}, inputProps), {
942
975
  before: getBeforeElement(),
@@ -949,15 +982,15 @@ var Input = (_a) => {
949
982
  );
950
983
  };
951
984
  Input.displayName = "Input";
952
- var Finder = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "finder" }));
953
- var UOM = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "uom" }));
985
+ var Finder = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "finder" }));
986
+ var UOM = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "uom" }));
954
987
  var Currency = (props) => {
955
988
  var _a;
956
989
  const handleCurrencyChange = (e) => {
957
990
  var _a2;
958
991
  (_a2 = props.onChange) == null ? void 0 : _a2.call(props, e);
959
992
  };
960
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
993
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
961
994
  Input,
962
995
  __spreadProps(__spreadValues({}, props), {
963
996
  variant: "currency",
@@ -966,7 +999,7 @@ var Currency = (props) => {
966
999
  })
967
1000
  );
968
1001
  };
969
- var Percentage = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "percentage" }));
1002
+ var Percentage = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "percentage" }));
970
1003
  Finder.displayName = "Finder";
971
1004
  UOM.displayName = "UOM";
972
1005
  Currency.displayName = "Currency";
@@ -974,7 +1007,7 @@ Percentage.displayName = "Percentage";
974
1007
 
975
1008
  // src/components/Stepper.tsx
976
1009
  var import_clsx7 = __toESM(require("clsx"), 1);
977
- var import_jsx_runtime6 = require("react/jsx-runtime");
1010
+ var import_jsx_runtime7 = require("react/jsx-runtime");
978
1011
  var Stepper = (_a) => {
979
1012
  var _b = _a, {
980
1013
  error,
@@ -1013,21 +1046,21 @@ var Stepper = (_a) => {
1013
1046
  setValue((prevVal) => prevVal - 1);
1014
1047
  onDecrease == null ? void 0 : onDecrease();
1015
1048
  }
1016
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1049
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1017
1050
  "div",
1018
1051
  {
1019
1052
  id,
1020
1053
  "data-testid": testid,
1021
1054
  className: (0, import_clsx7.default)("flex items-center", componentGap),
1022
1055
  children: [
1023
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1056
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1024
1057
  Button,
1025
1058
  {
1026
1059
  id: id ? `${id}-decrease-button` : void 0,
1027
1060
  testid: testid ? `${testid}-decrease-button` : void 0,
1028
1061
  iconOnly: true,
1029
1062
  variant: "tertiary",
1030
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1063
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1031
1064
  "span",
1032
1065
  {
1033
1066
  className: (0, import_clsx7.default)(
@@ -1035,14 +1068,14 @@ var Stepper = (_a) => {
1035
1068
  disabled || value === 0 && "text-icon-action-primary-disabled",
1036
1069
  "contents"
1037
1070
  ),
1038
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "remove" })
1071
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "remove" })
1039
1072
  }
1040
1073
  ),
1041
1074
  onClick: handleDecrease,
1042
1075
  disabled: disabled || value <= 0 || min != null && value <= min
1043
1076
  }
1044
1077
  ),
1045
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1078
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1046
1079
  InputBase,
1047
1080
  __spreadProps(__spreadValues({}, props), {
1048
1081
  id: id ? `${id}-input` : void 0,
@@ -1064,14 +1097,14 @@ var Stepper = (_a) => {
1064
1097
  className: "!w-6 !h-4.5 !px-0 disabled:!text-text-on-action-primary-disabled disabled:!bg-background-action-secondary-disabled disabled:!border-border-primary-normal"
1065
1098
  })
1066
1099
  ) }),
1067
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1100
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1068
1101
  Button,
1069
1102
  {
1070
1103
  id: id ? `${id}-increase-button` : void 0,
1071
1104
  testid: testid ? `${testid}-increase-button` : void 0,
1072
1105
  iconOnly: true,
1073
1106
  variant: "tertiary",
1074
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1107
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1075
1108
  "span",
1076
1109
  {
1077
1110
  className: (0, import_clsx7.default)(
@@ -1079,7 +1112,7 @@ var Stepper = (_a) => {
1079
1112
  disabled && "text-icon-action-primary-disabled",
1080
1113
  "contents"
1081
1114
  ),
1082
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "add" })
1115
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "add" })
1083
1116
  }
1084
1117
  ),
1085
1118
  onClick: handleIncrease,
@@ -4,13 +4,14 @@ import {
4
4
  } from "../chunk-NWTVBVBC.js";
5
5
  import "../chunk-HXGJVYGQ.js";
6
6
  import "../chunk-5UH6QUFB.js";
7
+ import {
8
+ Button
9
+ } from "../chunk-HVYK7COK.js";
10
+ import "../chunk-SBRRNFOP.js";
7
11
  import "../chunk-WMPWWFUJ.js";
8
12
  import {
9
13
  Icon
10
14
  } from "../chunk-NKUETCDA.js";
11
- import {
12
- Button
13
- } from "../chunk-45AHDOAU.js";
14
15
  import {
15
16
  componentGap
16
17
  } from "../chunk-7KWFEH56.js";
@@ -332,7 +332,8 @@ var Stack = (_a) => {
332
332
  bottom,
333
333
  zIndex,
334
334
  flexWrap,
335
- className
335
+ className,
336
+ unclipEdges
336
337
  } = _b, props = __objRest(_b, [
337
338
  "children",
338
339
  "items",
@@ -381,7 +382,8 @@ var Stack = (_a) => {
381
382
  "bottom",
382
383
  "zIndex",
383
384
  "flexWrap",
384
- "className"
385
+ "className",
386
+ "unclipEdges"
385
387
  ]);
386
388
  var _a2, _b2, _c, _d, _e, _f, _g;
387
389
  const flexClassNames = getFlexClassNames({ items, justify, grow });
@@ -473,6 +475,7 @@ var Stack = (_a) => {
473
475
  elevation === 4 && "shadow-4",
474
476
  elevation === 16 && "shadow-16",
475
477
  rounded && "rounded",
478
+ unclipEdges && "-m-0.75 p-1",
476
479
  className
477
480
  ),
478
481
  children
@@ -5,12 +5,12 @@ import {
5
5
  Heading2,
6
6
  Heading3
7
7
  } from "../chunk-MXSJF6TW.js";
8
+ import {
9
+ Stack
10
+ } from "../chunk-MTGNBARV.js";
8
11
  import {
9
12
  Paragraph
10
13
  } from "../chunk-WMPWWFUJ.js";
11
- import {
12
- Stack
13
- } from "../chunk-AX4M7X4Z.js";
14
14
  import {
15
15
  typography
16
16
  } from "../chunk-7KWFEH56.js";
@@ -933,7 +933,8 @@ var Stack = (_a) => {
933
933
  bottom,
934
934
  zIndex,
935
935
  flexWrap,
936
- className
936
+ className,
937
+ unclipEdges
937
938
  } = _b, props = __objRest(_b, [
938
939
  "children",
939
940
  "items",
@@ -982,7 +983,8 @@ var Stack = (_a) => {
982
983
  "bottom",
983
984
  "zIndex",
984
985
  "flexWrap",
985
- "className"
986
+ "className",
987
+ "unclipEdges"
986
988
  ]);
987
989
  var _a2, _b2, _c, _d, _e, _f, _g;
988
990
  const flexClassNames = getFlexClassNames({ items, justify, grow });
@@ -1074,6 +1076,7 @@ var Stack = (_a) => {
1074
1076
  elevation === 4 && "shadow-4",
1075
1077
  elevation === 16 && "shadow-16",
1076
1078
  rounded && "rounded",
1079
+ unclipEdges && "-m-0.75 p-1",
1077
1080
  className
1078
1081
  ),
1079
1082
  children
@@ -7,10 +7,10 @@ import {
7
7
  } from "../chunk-VXWSAIB5.js";
8
8
  import "../chunk-DQRQZE6O.js";
9
9
  import "../chunk-5UH6QUFB.js";
10
- import "../chunk-WMPWWFUJ.js";
11
10
  import {
12
11
  Stack
13
- } from "../chunk-AX4M7X4Z.js";
12
+ } from "../chunk-MTGNBARV.js";
13
+ import "../chunk-WMPWWFUJ.js";
14
14
  import {
15
15
  Icon
16
16
  } from "../chunk-NKUETCDA.js";
@@ -352,7 +352,39 @@ function Icon(_a) {
352
352
 
353
353
  // src/components/Button.tsx
354
354
  var import_clsx5 = __toESM(require("clsx"), 1);
355
+
356
+ // src/components/Spinner.tsx
355
357
  var import_jsx_runtime4 = require("react/jsx-runtime");
358
+ var Spinner = ({ size = "small", testid }) => {
359
+ const dimension = size === "large" ? 48 : 24;
360
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
361
+ "svg",
362
+ {
363
+ "data-testid": testid,
364
+ width: dimension,
365
+ height: dimension,
366
+ viewBox: "0 0 24 24",
367
+ xmlns: "http://www.w3.org/2000/svg",
368
+ fill: "#1D1E1E",
369
+ className: "spinner",
370
+ "aria-label": "Loading",
371
+ children: [
372
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
373
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
374
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
375
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
376
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
377
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
378
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
379
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
380
+ ]
381
+ }
382
+ );
383
+ };
384
+ Spinner.displayName = "Spinner";
385
+
386
+ // src/components/Button.tsx
387
+ var import_jsx_runtime5 = require("react/jsx-runtime");
356
388
  var Button = (_a) => {
357
389
  var _b = _a, {
358
390
  variant = "primary",
@@ -368,7 +400,8 @@ var Button = (_a) => {
368
400
  colorClassName,
369
401
  href,
370
402
  id,
371
- testid
403
+ testid,
404
+ isLoading
372
405
  } = _b, props = __objRest(_b, [
373
406
  "variant",
374
407
  "as",
@@ -383,7 +416,8 @@ var Button = (_a) => {
383
416
  "colorClassName",
384
417
  "href",
385
418
  "id",
386
- "testid"
419
+ "testid",
420
+ "isLoading"
387
421
  ]);
388
422
  const primaryVariantStyles = variant === "primary" && (0, import_clsx5.default)(
389
423
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -467,7 +501,7 @@ var Button = (_a) => {
467
501
  typography.buttonLabel
468
502
  );
469
503
  const Element = href && !as ? "a" : as;
470
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
504
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
471
505
  Element,
472
506
  __spreadProps(__spreadValues({
473
507
  id,
@@ -481,7 +515,8 @@ var Button = (_a) => {
481
515
  "data-theme": variant === "navigation" ? "brand" : void 0,
482
516
  children: [
483
517
  leftIcon && leftIcon,
484
- !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
518
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Spinner, { size: "small" }),
519
+ !iconOnly && !isLoading && children && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
485
520
  rightIcon && rightIcon
486
521
  ]
487
522
  })
@@ -491,23 +526,23 @@ Button.displayName = "Button";
491
526
 
492
527
  // src/components/Toast.tsx
493
528
  var import_client = require("react-dom/client");
494
- var import_jsx_runtime5 = require("react/jsx-runtime");
529
+ var import_jsx_runtime6 = require("react/jsx-runtime");
495
530
  var variants = {
496
531
  success: {
497
532
  className: "border-success-400",
498
- icon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-icon-success-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "check_circle", size: 24 }) })
533
+ icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-icon-success-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "check_circle", size: 24 }) })
499
534
  },
500
535
  warning: {
501
536
  className: "border-warning-400",
502
- icon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-icon-warning-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "warning", size: 24 }) })
537
+ icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-icon-warning-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "warning", size: 24 }) })
503
538
  },
504
539
  error: {
505
540
  className: "border-critical-400",
506
- icon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-icon-critical-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "error", size: 24 }) })
541
+ icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-icon-critical-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "error", size: 24 }) })
507
542
  },
508
543
  info: {
509
544
  className: "border-action-400",
510
- icon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-icon-on-action-secondary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "info", size: 24 }) })
545
+ icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-icon-on-action-secondary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "info", size: 24 }) })
511
546
  }
512
547
  };
513
548
  var slideInFromBottomAnimation = (element, displayDuration = 8e3, inDuration = 50, outDuration = 50) => {
@@ -636,7 +671,7 @@ var Toast = (_a) => {
636
671
  };
637
672
  const { className, icon: iconElement } = (_a2 = variants[variant]) != null ? _a2 : variants.success;
638
673
  if (!show) return null;
639
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
674
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
640
675
  "div",
641
676
  __spreadProps(__spreadValues({
642
677
  id,
@@ -654,12 +689,12 @@ var Toast = (_a) => {
654
689
  style: props.style,
655
690
  children: [
656
691
  iconElement,
657
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_clsx6.default)("flex items-center", layoutGroupGap), children: [
658
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_clsx6.default)("flex flex-col w-68", componentGap), children: [
659
- title && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Heading3, { testid: testid ? `${testid}-title` : void 0, id: id ? `${id}-title` : void 0, children: title }),
660
- message && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Paragraph, { testid: testid ? `${testid}-message` : void 0, id: id ? `${id}-message` : void 0, children: message })
692
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: (0, import_clsx6.default)("flex items-center", layoutGroupGap), children: [
693
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: (0, import_clsx6.default)("flex flex-col w-68", componentGap), children: [
694
+ title && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Heading3, { testid: testid ? `${testid}-title` : void 0, id: id ? `${id}-title` : void 0, children: title }),
695
+ message && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Paragraph, { testid: testid ? `${testid}-message` : void 0, id: id ? `${id}-message` : void 0, children: message })
661
696
  ] }),
662
- showViewButton && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
697
+ showViewButton && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
663
698
  Button,
664
699
  {
665
700
  id: id ? `${id}-view-button` : void 0,
@@ -685,7 +720,7 @@ function createToast(config) {
685
720
  toastContainer.remove();
686
721
  };
687
722
  root.render(
688
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
723
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
689
724
  Toast,
690
725
  {
691
726
  id: config.id,
@@ -2,15 +2,16 @@
2
2
  import {
3
3
  Heading3
4
4
  } from "../chunk-MXSJF6TW.js";
5
+ import {
6
+ Button
7
+ } from "../chunk-HVYK7COK.js";
8
+ import "../chunk-SBRRNFOP.js";
5
9
  import {
6
10
  Paragraph
7
11
  } from "../chunk-WMPWWFUJ.js";
8
12
  import {
9
13
  Icon
10
14
  } from "../chunk-NKUETCDA.js";
11
- import {
12
- Button
13
- } from "../chunk-45AHDOAU.js";
14
15
  import {
15
16
  componentGap,
16
17
  componentPadding,