@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
@@ -209,8 +209,38 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
209
209
  "gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
210
210
  );
211
211
 
212
- // src/components/Button.tsx
212
+ // src/components/Spinner.tsx
213
213
  var import_jsx_runtime = require("react/jsx-runtime");
214
+ var Spinner = ({ size = "small", testid }) => {
215
+ const dimension = size === "large" ? 48 : 24;
216
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
217
+ "svg",
218
+ {
219
+ "data-testid": testid,
220
+ width: dimension,
221
+ height: dimension,
222
+ viewBox: "0 0 24 24",
223
+ xmlns: "http://www.w3.org/2000/svg",
224
+ fill: "#1D1E1E",
225
+ className: "spinner",
226
+ "aria-label": "Loading",
227
+ children: [
228
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
229
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
230
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
231
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
232
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
233
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
234
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
235
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
236
+ ]
237
+ }
238
+ );
239
+ };
240
+ Spinner.displayName = "Spinner";
241
+
242
+ // src/components/Button.tsx
243
+ var import_jsx_runtime2 = require("react/jsx-runtime");
214
244
  var Button = (_a) => {
215
245
  var _b = _a, {
216
246
  variant = "primary",
@@ -226,7 +256,8 @@ var Button = (_a) => {
226
256
  colorClassName,
227
257
  href,
228
258
  id,
229
- testid
259
+ testid,
260
+ isLoading
230
261
  } = _b, props = __objRest(_b, [
231
262
  "variant",
232
263
  "as",
@@ -241,7 +272,8 @@ var Button = (_a) => {
241
272
  "colorClassName",
242
273
  "href",
243
274
  "id",
244
- "testid"
275
+ "testid",
276
+ "isLoading"
245
277
  ]);
246
278
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
247
279
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -325,7 +357,7 @@ var Button = (_a) => {
325
357
  typography.buttonLabel
326
358
  );
327
359
  const Element = href && !as ? "a" : as;
328
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
360
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
329
361
  Element,
330
362
  __spreadProps(__spreadValues({
331
363
  id,
@@ -339,7 +371,8 @@ var Button = (_a) => {
339
371
  "data-theme": variant === "navigation" ? "brand" : void 0,
340
372
  children: [
341
373
  leftIcon && leftIcon,
342
- !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 }),
374
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Spinner, { size: "small" }),
375
+ !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 }),
343
376
  rightIcon && rightIcon
344
377
  ]
345
378
  })
@@ -349,7 +382,7 @@ Button.displayName = "Button";
349
382
 
350
383
  // src/components/Paragraph.tsx
351
384
  var import_clsx3 = __toESM(require("clsx"), 1);
352
- var import_jsx_runtime2 = require("react/jsx-runtime");
385
+ var import_jsx_runtime3 = require("react/jsx-runtime");
353
386
  var Paragraph = (_a) => {
354
387
  var _b = _a, {
355
388
  className,
@@ -375,7 +408,7 @@ var Paragraph = (_a) => {
375
408
  "testid"
376
409
  ]);
377
410
  const Element = as;
378
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
411
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
379
412
  Element,
380
413
  __spreadProps(__spreadValues({
381
414
  id,
@@ -402,7 +435,7 @@ Paragraph.displayName = "Paragraph";
402
435
 
403
436
  // src/components/Heading.tsx
404
437
  var import_clsx4 = __toESM(require("clsx"), 1);
405
- var import_jsx_runtime3 = require("react/jsx-runtime");
438
+ var import_jsx_runtime4 = require("react/jsx-runtime");
406
439
  var Heading = (_a) => {
407
440
  var _b = _a, {
408
441
  className,
@@ -425,7 +458,7 @@ var Heading = (_a) => {
425
458
  ]);
426
459
  const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
427
460
  const Element = as != null ? as : defaultElement;
428
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
461
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
429
462
  Element,
430
463
  __spreadProps(__spreadValues({
431
464
  id,
@@ -446,16 +479,16 @@ var Heading = (_a) => {
446
479
  );
447
480
  };
448
481
  Heading.displayName = "Heading";
449
- var Heading1 = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading1" }));
450
- var Heading2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading2" }));
451
- var Heading3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading3" }));
482
+ var Heading1 = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading1" }));
483
+ var Heading2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading2" }));
484
+ var Heading3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading3" }));
452
485
  Heading1.displayName = "Heading1";
453
486
  Heading2.displayName = "Heading2";
454
487
  Heading3.displayName = "Heading3";
455
488
 
456
489
  // src/components/Icon.tsx
457
490
  var import_clsx5 = __toESM(require("clsx"), 1);
458
- var import_jsx_runtime4 = require("react/jsx-runtime");
491
+ var import_jsx_runtime5 = require("react/jsx-runtime");
459
492
  function Icon(_a) {
460
493
  var _b = _a, {
461
494
  name,
@@ -470,7 +503,7 @@ function Icon(_a) {
470
503
  ]);
471
504
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
472
505
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
473
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
506
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
474
507
  "span",
475
508
  __spreadProps(__spreadValues({}, props), {
476
509
  "data-testid": testid,
@@ -490,7 +523,7 @@ function Icon(_a) {
490
523
 
491
524
  // src/components/Stack.tsx
492
525
  var import_clsx6 = __toESM(require("clsx"), 1);
493
- var import_jsx_runtime5 = require("react/jsx-runtime");
526
+ var import_jsx_runtime6 = require("react/jsx-runtime");
494
527
  var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx6.default)(
495
528
  "flex",
496
529
  items === "start" && "items-start",
@@ -563,7 +596,8 @@ var Stack = (_a) => {
563
596
  bottom,
564
597
  zIndex,
565
598
  flexWrap,
566
- className
599
+ className,
600
+ unclipEdges
567
601
  } = _b, props = __objRest(_b, [
568
602
  "children",
569
603
  "items",
@@ -612,12 +646,13 @@ var Stack = (_a) => {
612
646
  "bottom",
613
647
  "zIndex",
614
648
  "flexWrap",
615
- "className"
649
+ "className",
650
+ "unclipEdges"
616
651
  ]);
617
652
  var _a2, _b2, _c, _d, _e, _f, _g;
618
653
  const flexClassNames = getFlexClassNames({ items, justify, grow });
619
654
  const gapClassNames = useGapClassNames(sizing);
620
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
655
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
621
656
  "div",
622
657
  __spreadProps(__spreadValues({
623
658
  id,
@@ -704,6 +739,7 @@ var Stack = (_a) => {
704
739
  elevation === 4 && "shadow-4",
705
740
  elevation === 16 && "shadow-16",
706
741
  rounded && "rounded",
742
+ unclipEdges && "-m-0.75 p-1",
707
743
  className
708
744
  ),
709
745
  children
@@ -712,23 +748,23 @@ var Stack = (_a) => {
712
748
  };
713
749
 
714
750
  // src/components/Notification.tsx
715
- var import_jsx_runtime6 = require("react/jsx-runtime");
751
+ var import_jsx_runtime7 = require("react/jsx-runtime");
716
752
  var variants = {
717
753
  success: {
718
754
  className: "border-success-400",
719
- 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 }) })
755
+ icon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-success-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "check_circle", size: 24 }) })
720
756
  },
721
757
  warning: {
722
758
  className: "border-warning-400",
723
- 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 }) })
759
+ icon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-warning-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "warning", size: 24 }) })
724
760
  },
725
761
  error: {
726
762
  className: "border-critical-400",
727
- 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 }) })
763
+ icon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-critical-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "error", size: 24 }) })
728
764
  },
729
765
  info: {
730
766
  className: "border-action-400",
731
- 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 }) })
767
+ icon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-on-action-secondary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "info", size: 24 }) })
732
768
  }
733
769
  };
734
770
  var Notification = (_a) => {
@@ -761,7 +797,7 @@ var Notification = (_a) => {
761
797
  const [visible, setVisible] = (0, import_react.useState)(true);
762
798
  const { className, icon: iconElement } = (_a2 = variants[variant]) != null ? _a2 : variants.success;
763
799
  if (!visible) return null;
764
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
800
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
765
801
  "div",
766
802
  __spreadProps(__spreadValues({
767
803
  id,
@@ -773,7 +809,7 @@ var Notification = (_a) => {
773
809
  )
774
810
  }, props), {
775
811
  children: [
776
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
812
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
777
813
  Stack,
778
814
  {
779
815
  horizontal: true,
@@ -783,16 +819,16 @@ var Notification = (_a) => {
783
819
  sizing: "layout",
784
820
  children: [
785
821
  iconElement,
786
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Stack, { elevation: 0, items: "start", justify: "start", sizing: "component", children: [
787
- title && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Heading3, { as: "h3", children: title }),
788
- message && enableMessage && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Paragraph, { as: "p", children: message }),
789
- description && enableDescription && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Paragraph, { as: "p", children: description }),
790
- disclaimer && enableDisclaimer && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Paragraph, { as: "p", children: disclaimer })
822
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Stack, { elevation: 0, items: "start", justify: "start", sizing: "component", children: [
823
+ title && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Heading3, { as: "h3", children: title }),
824
+ message && enableMessage && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Paragraph, { as: "p", children: message }),
825
+ description && enableDescription && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Paragraph, { as: "p", children: description }),
826
+ disclaimer && enableDisclaimer && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Paragraph, { as: "p", children: disclaimer })
791
827
  ] })
792
828
  ]
793
829
  }
794
830
  ),
795
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
831
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
796
832
  Button,
797
833
  {
798
834
  id: id ? `${id}-close-button` : void 0,
@@ -800,7 +836,7 @@ var Notification = (_a) => {
800
836
  iconOnly: true,
801
837
  variant: "tertiary",
802
838
  onClick: () => setVisible(false),
803
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "close", size: 24 })
839
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "close", size: 24 })
804
840
  }
805
841
  )
806
842
  ]
@@ -3,17 +3,18 @@ import {
3
3
  Heading3
4
4
  } from "../chunk-MXSJF6TW.js";
5
5
  import {
6
- Paragraph
7
- } from "../chunk-WMPWWFUJ.js";
6
+ Button
7
+ } from "../chunk-HVYK7COK.js";
8
+ import "../chunk-SBRRNFOP.js";
8
9
  import {
9
10
  Stack
10
- } from "../chunk-AX4M7X4Z.js";
11
+ } from "../chunk-MTGNBARV.js";
12
+ import {
13
+ Paragraph
14
+ } from "../chunk-WMPWWFUJ.js";
11
15
  import {
12
16
  Icon
13
17
  } from "../chunk-NKUETCDA.js";
14
- import {
15
- Button
16
- } from "../chunk-45AHDOAU.js";
17
18
  import "../chunk-7KWFEH56.js";
18
19
  import {
19
20
  __objRest,
@@ -206,7 +206,39 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
206
206
 
207
207
  // src/components/Button.tsx
208
208
  var import_clsx2 = __toESM(require("clsx"), 1);
209
+
210
+ // src/components/Spinner.tsx
209
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");
210
242
  var Button = (_a) => {
211
243
  var _b = _a, {
212
244
  variant = "primary",
@@ -222,7 +254,8 @@ var Button = (_a) => {
222
254
  colorClassName,
223
255
  href,
224
256
  id,
225
- testid
257
+ testid,
258
+ isLoading
226
259
  } = _b, props = __objRest(_b, [
227
260
  "variant",
228
261
  "as",
@@ -237,7 +270,8 @@ var Button = (_a) => {
237
270
  "colorClassName",
238
271
  "href",
239
272
  "id",
240
- "testid"
273
+ "testid",
274
+ "isLoading"
241
275
  ]);
242
276
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
243
277
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -321,7 +355,7 @@ var Button = (_a) => {
321
355
  typography.buttonLabel
322
356
  );
323
357
  const Element = href && !as ? "a" : as;
324
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
358
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
325
359
  Element,
326
360
  __spreadProps(__spreadValues({
327
361
  id,
@@ -335,7 +369,8 @@ var Button = (_a) => {
335
369
  "data-theme": variant === "navigation" ? "brand" : void 0,
336
370
  children: [
337
371
  leftIcon && leftIcon,
338
- !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 }),
339
374
  rightIcon && rightIcon
340
375
  ]
341
376
  })
@@ -345,7 +380,7 @@ Button.displayName = "Button";
345
380
 
346
381
  // src/components/Label.tsx
347
382
  var import_clsx3 = __toESM(require("clsx"), 1);
348
- var import_jsx_runtime2 = require("react/jsx-runtime");
383
+ var import_jsx_runtime3 = require("react/jsx-runtime");
349
384
  var Label = (_a) => {
350
385
  var _b = _a, {
351
386
  as = "span",
@@ -365,7 +400,7 @@ var Label = (_a) => {
365
400
  "testid"
366
401
  ]);
367
402
  const Element = as;
368
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
403
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
369
404
  Element,
370
405
  __spreadProps(__spreadValues({
371
406
  id,
@@ -389,7 +424,7 @@ Label.displayName = "Label";
389
424
 
390
425
  // src/components/Icon.tsx
391
426
  var import_clsx4 = __toESM(require("clsx"), 1);
392
- var import_jsx_runtime3 = require("react/jsx-runtime");
427
+ var import_jsx_runtime4 = require("react/jsx-runtime");
393
428
  function Icon(_a) {
394
429
  var _b = _a, {
395
430
  name,
@@ -404,7 +439,7 @@ function Icon(_a) {
404
439
  ]);
405
440
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
406
441
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
407
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
442
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
408
443
  "span",
409
444
  __spreadProps(__spreadValues({}, props), {
410
445
  "data-testid": testid,
@@ -423,7 +458,7 @@ function Icon(_a) {
423
458
  }
424
459
 
425
460
  // src/components/OptionPill.tsx
426
- var import_jsx_runtime4 = require("react/jsx-runtime");
461
+ var import_jsx_runtime5 = require("react/jsx-runtime");
427
462
  var OptionPill = (_a) => {
428
463
  var _b = _a, {
429
464
  id,
@@ -474,7 +509,7 @@ var OptionPill = (_a) => {
474
509
  disabled && !selected && "text-text-primary-disabled",
475
510
  disabled && selected && "text-text-on-action-primary-disabled"
476
511
  );
477
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
512
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
478
513
  "div",
479
514
  __spreadProps(__spreadValues(__spreadValues({
480
515
  id,
@@ -492,7 +527,7 @@ var OptionPill = (_a) => {
492
527
  textColor
493
528
  ),
494
529
  children: [
495
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
530
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
496
531
  Label,
497
532
  {
498
533
  id: id ? `${id}-label` : void 0,
@@ -502,7 +537,7 @@ var OptionPill = (_a) => {
502
537
  children
503
538
  }
504
539
  ),
505
- removable && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
540
+ removable && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
506
541
  Button,
507
542
  {
508
543
  id: id ? `${id}-remove-button` : void 0,
@@ -515,7 +550,7 @@ var OptionPill = (_a) => {
515
550
  ),
516
551
  iconOnly: true,
517
552
  variant: "tertiary",
518
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "close", size: 16 })
553
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "close", size: 16 })
519
554
  }
520
555
  )
521
556
  ]
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  OptionPill
3
- } from "../chunk-FWCVZWE6.js";
3
+ } from "../chunk-7ZL4GBAD.js";
4
4
  import "../chunk-HXGJVYGQ.js";
5
+ import "../chunk-HVYK7COK.js";
6
+ import "../chunk-SBRRNFOP.js";
5
7
  import "../chunk-NKUETCDA.js";
6
- import "../chunk-45AHDOAU.js";
7
8
  import "../chunk-7KWFEH56.js";
8
9
  import "../chunk-ORMEWXMH.js";
9
10
  export {
@@ -206,8 +206,38 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
206
206
  "gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
207
207
  );
208
208
 
209
- // src/components/Button.tsx
209
+ // src/components/Spinner.tsx
210
210
  var import_jsx_runtime = require("react/jsx-runtime");
211
+ var Spinner = ({ size = "small", testid }) => {
212
+ const dimension = size === "large" ? 48 : 24;
213
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
214
+ "svg",
215
+ {
216
+ "data-testid": testid,
217
+ width: dimension,
218
+ height: dimension,
219
+ viewBox: "0 0 24 24",
220
+ xmlns: "http://www.w3.org/2000/svg",
221
+ fill: "#1D1E1E",
222
+ className: "spinner",
223
+ "aria-label": "Loading",
224
+ children: [
225
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
226
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
227
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
228
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
229
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
230
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
231
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
232
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
233
+ ]
234
+ }
235
+ );
236
+ };
237
+ Spinner.displayName = "Spinner";
238
+
239
+ // src/components/Button.tsx
240
+ var import_jsx_runtime2 = require("react/jsx-runtime");
211
241
  var Button = (_a) => {
212
242
  var _b = _a, {
213
243
  variant = "primary",
@@ -223,7 +253,8 @@ var Button = (_a) => {
223
253
  colorClassName,
224
254
  href,
225
255
  id,
226
- testid
256
+ testid,
257
+ isLoading
227
258
  } = _b, props = __objRest(_b, [
228
259
  "variant",
229
260
  "as",
@@ -238,7 +269,8 @@ var Button = (_a) => {
238
269
  "colorClassName",
239
270
  "href",
240
271
  "id",
241
- "testid"
272
+ "testid",
273
+ "isLoading"
242
274
  ]);
243
275
  const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
244
276
  (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
@@ -322,7 +354,7 @@ var Button = (_a) => {
322
354
  typography.buttonLabel
323
355
  );
324
356
  const Element = href && !as ? "a" : as;
325
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
357
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
326
358
  Element,
327
359
  __spreadProps(__spreadValues({
328
360
  id,
@@ -336,7 +368,8 @@ var Button = (_a) => {
336
368
  "data-theme": variant === "navigation" ? "brand" : void 0,
337
369
  children: [
338
370
  leftIcon && leftIcon,
339
- !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 }),
371
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Spinner, { size: "small" }),
372
+ !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 }),
340
373
  rightIcon && rightIcon
341
374
  ]
342
375
  })
@@ -346,7 +379,7 @@ Button.displayName = "Button";
346
379
 
347
380
  // src/components/Icon.tsx
348
381
  var import_clsx3 = __toESM(require("clsx"), 1);
349
- var import_jsx_runtime2 = require("react/jsx-runtime");
382
+ var import_jsx_runtime3 = require("react/jsx-runtime");
350
383
  function Icon(_a) {
351
384
  var _b = _a, {
352
385
  name,
@@ -361,7 +394,7 @@ function Icon(_a) {
361
394
  ]);
362
395
  const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
363
396
  const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
364
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
397
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
365
398
  "span",
366
399
  __spreadProps(__spreadValues({}, props), {
367
400
  "data-testid": testid,
@@ -383,7 +416,7 @@ function Icon(_a) {
383
416
  var import_clsx4 = __toESM(require("clsx"), 1);
384
417
  var import_react = require("react");
385
418
  var import_react_dom = require("react-dom");
386
- var import_jsx_runtime3 = require("react/jsx-runtime");
419
+ var import_jsx_runtime4 = require("react/jsx-runtime");
387
420
  var Tooltip = ({
388
421
  id,
389
422
  testid,
@@ -450,7 +483,7 @@ var Tooltip = ({
450
483
  return () => window.removeEventListener("resize", updatePosition);
451
484
  }
452
485
  }, [isVisible]);
453
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
486
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
454
487
  "div",
455
488
  {
456
489
  id,
@@ -462,7 +495,7 @@ var Tooltip = ({
462
495
  children: [
463
496
  children,
464
497
  !keepHidden && isVisible && typeof document !== "undefined" && (0, import_react_dom.createPortal)(
465
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
498
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
466
499
  "div",
467
500
  {
468
501
  id: id ? `${id}-message` : void 0,
@@ -502,19 +535,19 @@ var Tooltip = ({
502
535
  Tooltip.displayName = "Tooltip";
503
536
 
504
537
  // src/components/PDFViewer/DownloadIcon.tsx
505
- var import_jsx_runtime4 = require("react/jsx-runtime");
538
+ var import_jsx_runtime5 = require("react/jsx-runtime");
506
539
  function DownloadIcon({
507
540
  onClick,
508
541
  isDownloading,
509
542
  testid
510
543
  }) {
511
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Tooltip, { message: "Download", position: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
544
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Tooltip, { message: "Download", position: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
512
545
  Button,
513
546
  {
514
547
  testid,
515
548
  iconOnly: true,
516
549
  variant: "tertiary",
517
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: isDownloading ? "cached" : "download" }),
550
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: isDownloading ? "cached" : "download" }),
518
551
  onClick
519
552
  }
520
553
  ) });
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  DownloadIcon
3
- } from "../../chunk-7COWXCPA.js";
3
+ } from "../../chunk-45SH6WHE.js";
4
4
  import "../../chunk-MDB26F6T.js";
5
+ import "../../chunk-HVYK7COK.js";
6
+ import "../../chunk-SBRRNFOP.js";
5
7
  import "../../chunk-NKUETCDA.js";
6
- import "../../chunk-45AHDOAU.js";
7
8
  import "../../chunk-7KWFEH56.js";
8
9
  import "../../chunk-ORMEWXMH.js";
9
10
  export {
@@ -312,7 +312,8 @@ var Stack = (_a) => {
312
312
  bottom,
313
313
  zIndex,
314
314
  flexWrap,
315
- className
315
+ className,
316
+ unclipEdges
316
317
  } = _b, props = __objRest(_b, [
317
318
  "children",
318
319
  "items",
@@ -361,7 +362,8 @@ var Stack = (_a) => {
361
362
  "bottom",
362
363
  "zIndex",
363
364
  "flexWrap",
364
- "className"
365
+ "className",
366
+ "unclipEdges"
365
367
  ]);
366
368
  var _a2, _b2, _c, _d, _e, _f, _g;
367
369
  const flexClassNames = getFlexClassNames({ items, justify, grow });
@@ -453,6 +455,7 @@ var Stack = (_a) => {
453
455
  elevation === 4 && "shadow-4",
454
456
  elevation === 16 && "shadow-16",
455
457
  rounded && "rounded",
458
+ unclipEdges && "-m-0.75 p-1",
456
459
  className
457
460
  ),
458
461
  children
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PDFElement
3
- } from "../../chunk-K4SIZGMK.js";
3
+ } from "../../chunk-EQ2RAI53.js";
4
4
  import "../../chunk-VJVY6NPF.js";
5
5
  import "../../chunk-SBRRNFOP.js";
6
- import "../../chunk-AX4M7X4Z.js";
6
+ import "../../chunk-MTGNBARV.js";
7
7
  import "../../chunk-7KWFEH56.js";
8
8
  import "../../chunk-ORMEWXMH.js";
9
9
  export {