@dmsi/wedgekit-react 0.0.105 → 0.0.107

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 (63) hide show
  1. package/dist/{chunk-X62XGQY7.js → chunk-2XOQII4G.js} +1 -1
  2. package/dist/{chunk-6UI5GABI.js → chunk-3JRVV6QY.js} +1 -1
  3. package/dist/{chunk-QNQ5K7NW.js → chunk-3NWBR3V3.js} +1 -1
  4. package/dist/chunk-4F6VQXKY.js +112 -0
  5. package/dist/{chunk-CG2NIXZE.js → chunk-6CS5ZBXO.js} +1 -1
  6. package/dist/{chunk-P242H6OU.js → chunk-IMN6I5NV.js} +1 -1
  7. package/dist/{chunk-VPEVXTBJ.js → chunk-KYMBBPEW.js} +9 -4
  8. package/dist/{chunk-H6LXXGX6.js → chunk-L364HTYC.js} +7 -5
  9. package/dist/{chunk-WVLT6XM7.js → chunk-OX3HKFIH.js} +2 -2
  10. package/dist/{chunk-D2YP2BTN.js → chunk-QIHDPSOM.js} +2 -2
  11. package/dist/{chunk-E5VEDZYV.js → chunk-ZEGVZ5NW.js} +2 -2
  12. package/dist/components/Button.cjs +7 -5
  13. package/dist/components/Button.js +1 -1
  14. package/dist/components/ContentTab.cjs +7 -5
  15. package/dist/components/ContentTab.js +2 -2
  16. package/dist/components/ContentTabs.cjs +7 -5
  17. package/dist/components/ContentTabs.js +2 -2
  18. package/dist/components/DataGridCell.cjs +2 -2
  19. package/dist/components/DataGridCell.js +1 -1
  20. package/dist/components/FilterGroup.cjs +7 -5
  21. package/dist/components/FilterGroup.js +2 -2
  22. package/dist/components/LoadingScrim.cjs +168 -0
  23. package/dist/components/LoadingScrim.js +27 -0
  24. package/dist/components/MobileDataGrid.cjs +7 -5
  25. package/dist/components/MobileDataGrid.js +1 -1
  26. package/dist/components/Modal.cjs +7 -5
  27. package/dist/components/Modal.js +4 -4
  28. package/dist/components/ModalButtons.cjs +7 -5
  29. package/dist/components/ModalButtons.js +2 -2
  30. package/dist/components/ModalHeader.cjs +7 -5
  31. package/dist/components/ModalHeader.js +2 -2
  32. package/dist/components/NavigationTab.cjs +7 -5
  33. package/dist/components/NavigationTab.js +2 -2
  34. package/dist/components/NavigationTabs.cjs +7 -5
  35. package/dist/components/NavigationTabs.js +2 -2
  36. package/dist/components/Notification.cjs +7 -5
  37. package/dist/components/Notification.js +1 -1
  38. package/dist/components/OptionPill.cjs +7 -5
  39. package/dist/components/OptionPill.js +2 -2
  40. package/dist/components/PDFViewer.cjs +7 -5
  41. package/dist/components/PDFViewer.js +4 -4
  42. package/dist/components/PaymentOnAccountModal.cjs +15 -8
  43. package/dist/components/PaymentOnAccountModal.js +6 -6
  44. package/dist/components/SelectPaymentMethod.cjs +15 -8
  45. package/dist/components/SelectPaymentMethod.js +2 -2
  46. package/dist/components/Spinner.cjs +136 -0
  47. package/dist/components/Spinner.js +7 -0
  48. package/dist/components/Stepper.cjs +7 -5
  49. package/dist/components/Stepper.js +1 -1
  50. package/dist/components/Toast.cjs +7 -5
  51. package/dist/components/Toast.js +1 -1
  52. package/dist/components/Upload.cjs +7 -5
  53. package/dist/components/Upload.js +1 -1
  54. package/dist/components/index.cjs +19 -11
  55. package/dist/components/index.js +9 -8
  56. package/dist/index.css +40 -0
  57. package/package.json +1 -1
  58. package/src/components/Button.tsx +7 -5
  59. package/src/components/DataGrid/index.tsx +10 -4
  60. package/src/components/DataGridCell.tsx +2 -2
  61. package/src/components/LoadingScrim.tsx +32 -0
  62. package/src/components/SelectPaymentMethod.tsx +6 -2
  63. package/src/components/Spinner.tsx +102 -0
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/Spinner.tsx
21
+ var Spinner_exports = {};
22
+ __export(Spinner_exports, {
23
+ Spinner: () => Spinner
24
+ });
25
+ module.exports = __toCommonJS(Spinner_exports);
26
+ var import_jsx_runtime = require("react/jsx-runtime");
27
+ var Spinner = ({ size = "small" }) => {
28
+ const dimension = size === "large" ? 48 : 24;
29
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
30
+ "svg",
31
+ {
32
+ width: dimension,
33
+ height: dimension,
34
+ viewBox: "0 0 24 24",
35
+ xmlns: "http://www.w3.org/2000/svg",
36
+ fill: "#1D1E1E",
37
+ className: size === "large" ? "animate-spin" : "",
38
+ "aria-label": "Loading",
39
+ children: [
40
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
41
+ "animate",
42
+ {
43
+ attributeName: "opacity",
44
+ begin: "0s",
45
+ dur: "1s",
46
+ from: "1",
47
+ to: "0",
48
+ repeatCount: "indefinite"
49
+ }
50
+ ) }),
51
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
52
+ "animate",
53
+ {
54
+ attributeName: "opacity",
55
+ begin: "-0.875s",
56
+ dur: "1s",
57
+ from: "1",
58
+ to: "0",
59
+ repeatCount: "indefinite"
60
+ }
61
+ ) }),
62
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
63
+ "animate",
64
+ {
65
+ attributeName: "opacity",
66
+ begin: "-0.75s",
67
+ dur: "1s",
68
+ from: "1",
69
+ to: "0",
70
+ repeatCount: "indefinite"
71
+ }
72
+ ) }),
73
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
74
+ "animate",
75
+ {
76
+ attributeName: "opacity",
77
+ begin: "-0.625s",
78
+ dur: "1s",
79
+ from: "1",
80
+ to: "0",
81
+ repeatCount: "indefinite"
82
+ }
83
+ ) }),
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
85
+ "animate",
86
+ {
87
+ attributeName: "opacity",
88
+ begin: "-0.5s",
89
+ dur: "1s",
90
+ from: "1",
91
+ to: "0",
92
+ repeatCount: "indefinite"
93
+ }
94
+ ) }),
95
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
96
+ "animate",
97
+ {
98
+ attributeName: "opacity",
99
+ begin: "-0.375s",
100
+ dur: "1s",
101
+ from: "1",
102
+ to: "0",
103
+ repeatCount: "indefinite"
104
+ }
105
+ ) }),
106
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
107
+ "animate",
108
+ {
109
+ attributeName: "opacity",
110
+ begin: "-0.25s",
111
+ dur: "1s",
112
+ from: "1",
113
+ to: "0",
114
+ repeatCount: "indefinite"
115
+ }
116
+ ) }),
117
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
118
+ "animate",
119
+ {
120
+ attributeName: "opacity",
121
+ begin: "-0.125s",
122
+ dur: "1s",
123
+ from: "1",
124
+ to: "0",
125
+ repeatCount: "indefinite"
126
+ }
127
+ ) })
128
+ ]
129
+ }
130
+ );
131
+ };
132
+ Spinner.displayName = "Spinner";
133
+ // Annotate the CommonJS export names for ESM import in node:
134
+ 0 && (module.exports = {
135
+ Spinner
136
+ });
@@ -0,0 +1,7 @@
1
+ import {
2
+ Spinner
3
+ } from "../chunk-4F6VQXKY.js";
4
+ import "../chunk-ORMEWXMH.js";
5
+ export {
6
+ Spinner
7
+ };
@@ -275,11 +275,14 @@ var Button = (_a) => {
275
275
  "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
276
276
  );
277
277
  const navigationVarianStyles = variant === "navigation" && (0, import_clsx2.default)(
278
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
278
+ (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
279
279
  "bg-transparent",
280
- "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover",
281
- "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
282
- "active:bg-background-action-secondary-active active:text-text-action-primary-active",
280
+ "hover:bg-background-on-action-secondary-hover hover:text-brand-text-action-primary-hover",
281
+ // "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover", // Will use this once colors are finalized
282
+ "focus:bg-background-on-action-secondary-hover focus:text-brand-text-action-primary-hover focus:outline-0",
283
+ // "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover", // Will use this once colors are finalized
284
+ "active:bg-background-on-action-secondary-active active:text-brand-text-action-primary-active",
285
+ // "active:bg-background-action-secondary-active active:text-text-action-primary-active", // Will use this once colors are finalized
283
286
  "disabled:bg-transparent disabled:text-text-on-action-primary-disabled",
284
287
  "flex-col",
285
288
  paddingUsingComponentGap
@@ -317,7 +320,6 @@ var Button = (_a) => {
317
320
  onClick: props.onClick,
318
321
  disabled,
319
322
  href,
320
- "data-theme": variant === "navigation" ? "brand" : void 0,
321
323
  children: [
322
324
  leftIcon && leftIcon,
323
325
  !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
@@ -6,7 +6,7 @@ import "../chunk-5UH6QUFB.js";
6
6
  import "../chunk-S5K22XTH.js";
7
7
  import {
8
8
  Button
9
- } from "../chunk-H6LXXGX6.js";
9
+ } from "../chunk-L364HTYC.js";
10
10
  import {
11
11
  Icon
12
12
  } from "../chunk-IGQVA7SC.js";
@@ -410,11 +410,14 @@ var Button = (_a) => {
410
410
  "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
411
411
  );
412
412
  const navigationVarianStyles = variant === "navigation" && (0, import_clsx5.default)(
413
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
413
+ (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
414
414
  "bg-transparent",
415
- "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover",
416
- "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
417
- "active:bg-background-action-secondary-active active:text-text-action-primary-active",
415
+ "hover:bg-background-on-action-secondary-hover hover:text-brand-text-action-primary-hover",
416
+ // "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover", // Will use this once colors are finalized
417
+ "focus:bg-background-on-action-secondary-hover focus:text-brand-text-action-primary-hover focus:outline-0",
418
+ // "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover", // Will use this once colors are finalized
419
+ "active:bg-background-on-action-secondary-active active:text-brand-text-action-primary-active",
420
+ // "active:bg-background-action-secondary-active active:text-text-action-primary-active", // Will use this once colors are finalized
418
421
  "disabled:bg-transparent disabled:text-text-on-action-primary-disabled",
419
422
  "flex-col",
420
423
  paddingUsingComponentGap
@@ -452,7 +455,6 @@ var Button = (_a) => {
452
455
  onClick: props.onClick,
453
456
  disabled,
454
457
  href,
455
- "data-theme": variant === "navigation" ? "brand" : void 0,
456
458
  children: [
457
459
  leftIcon && leftIcon,
458
460
  !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
@@ -7,7 +7,7 @@ import {
7
7
  } from "../chunk-VG4EPHJA.js";
8
8
  import {
9
9
  Button
10
- } from "../chunk-H6LXXGX6.js";
10
+ } from "../chunk-L364HTYC.js";
11
11
  import {
12
12
  Icon
13
13
  } from "../chunk-IGQVA7SC.js";
@@ -355,11 +355,14 @@ var Button = (_a) => {
355
355
  "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
356
356
  );
357
357
  const navigationVarianStyles = variant === "navigation" && (0, import_clsx4.default)(
358
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
358
+ (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
359
359
  "bg-transparent",
360
- "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover",
361
- "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
362
- "active:bg-background-action-secondary-active active:text-text-action-primary-active",
360
+ "hover:bg-background-on-action-secondary-hover hover:text-brand-text-action-primary-hover",
361
+ // "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover", // Will use this once colors are finalized
362
+ "focus:bg-background-on-action-secondary-hover focus:text-brand-text-action-primary-hover focus:outline-0",
363
+ // "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover", // Will use this once colors are finalized
364
+ "active:bg-background-on-action-secondary-active active:text-brand-text-action-primary-active",
365
+ // "active:bg-background-action-secondary-active active:text-text-action-primary-active", // Will use this once colors are finalized
363
366
  "disabled:bg-transparent disabled:text-text-on-action-primary-disabled",
364
367
  "flex-col",
365
368
  paddingUsingComponentGap
@@ -397,7 +400,6 @@ var Button = (_a) => {
397
400
  onClick: props.onClick,
398
401
  disabled,
399
402
  href,
400
- "data-theme": variant === "navigation" ? "brand" : void 0,
401
403
  children: [
402
404
  leftIcon && leftIcon,
403
405
  !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-VG4EPHJA.js";
4
4
  import {
5
5
  Button
6
- } from "../chunk-H6LXXGX6.js";
6
+ } from "../chunk-L364HTYC.js";
7
7
  import {
8
8
  Icon
9
9
  } from "../chunk-IGQVA7SC.js";
@@ -1782,9 +1782,10 @@ var DataGridCell = (0, import_react10.memo)(
1782
1782
  lockedHeaderBgStyles,
1783
1783
  iconComponentStyles,
1784
1784
  className,
1785
- "flex flex-1 items-center gap-1 whitespace-nowrap h-10 relative text-text-action-primary-normal",
1785
+ "flex flex-1 items-center gap-1 whitespace-nowrap h-10 relative text-text-primary-normal",
1786
1786
  "focus-within:!z-10",
1787
1787
  "overflow-x-hidden",
1788
+ "overflow-y-hidden",
1788
1789
  component === "input" && "border",
1789
1790
  component === "input" && !error && !warning && "border-border-primary-normal",
1790
1791
  component === "input" && error && "border-border-primary-error",
@@ -1802,7 +1803,6 @@ var DataGridCell = (0, import_react10.memo)(
1802
1803
  className: (0, import_clsx8.default)("flex h-10", !width && "flex-1"),
1803
1804
  style: { width }
1804
1805
  }, props), {
1805
- "data-theme": type === "header" ? "brand" : void 0,
1806
1806
  children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1807
1807
  "div",
1808
1808
  {
@@ -2875,13 +2875,14 @@ function DataGrid({
2875
2875
  ),
2876
2876
  useMenuDefaultMinWidth,
2877
2877
  children: [
2878
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
2878
+ typeof cellValue !== "number" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
2879
2879
  getSortIcon(header.column.getIsSorted()),
2880
2880
  !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(
2881
2881
  header.column.getNextSortingOrder(),
2882
2882
  true
2883
2883
  ),
2884
2884
  header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
2885
+ typeof cellValue === "number" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
2885
2886
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2886
2887
  "div",
2887
2888
  {
@@ -3430,11 +3431,14 @@ var Button = (_a) => {
3430
3431
  "disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
3431
3432
  );
3432
3433
  const navigationVarianStyles = variant === "navigation" && (0, import_clsx17.default)(
3433
- (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
3434
+ (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
3434
3435
  "bg-transparent",
3435
- "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover",
3436
- "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
3437
- "active:bg-background-action-secondary-active active:text-text-action-primary-active",
3436
+ "hover:bg-background-on-action-secondary-hover hover:text-brand-text-action-primary-hover",
3437
+ // "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover", // Will use this once colors are finalized
3438
+ "focus:bg-background-on-action-secondary-hover focus:text-brand-text-action-primary-hover focus:outline-0",
3439
+ // "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover", // Will use this once colors are finalized
3440
+ "active:bg-background-on-action-secondary-active active:text-brand-text-action-primary-active",
3441
+ // "active:bg-background-action-secondary-active active:text-text-action-primary-active", // Will use this once colors are finalized
3438
3442
  "disabled:bg-transparent disabled:text-text-on-action-primary-disabled",
3439
3443
  "flex-col",
3440
3444
  paddingUsingComponentGap
@@ -3472,7 +3476,6 @@ var Button = (_a) => {
3472
3476
  onClick: props.onClick,
3473
3477
  disabled,
3474
3478
  href,
3475
- "data-theme": variant === "navigation" ? "brand" : void 0,
3476
3479
  children: [
3477
3480
  leftIcon && leftIcon,
3478
3481
  !iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
@@ -4468,7 +4471,13 @@ function SelectPaymentMethod(props) {
4468
4471
  {
4469
4472
  isOpen: selectedMethod === "CCPayment",
4470
4473
  title: "Pay by Credit/Debit Card",
4471
- before: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Radio, { checked: selectedMethod === "CCPayment", readOnly: true }),
4474
+ before: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4475
+ Radio,
4476
+ {
4477
+ checked: selectedMethod === "CCPayment",
4478
+ onClick: (e) => e.preventDefault()
4479
+ }
4480
+ ),
4472
4481
  onClick: () => handleToggle(selectedMethod === "CCPayment" ? null : "CCPayment"),
4473
4482
  children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { className: "w-full", onClick: onPay, disabled: isPayLoading, children: isPayLoading ? "Processing..." : "Proceed to Payment" })
4474
4483
  }
@@ -4512,8 +4521,7 @@ function ACHSelector(props) {
4512
4521
  before: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4513
4522
  Radio,
4514
4523
  {
4515
- checked: !!selectedBankGuid && selectedMethod === "ACHPayment",
4516
- readOnly: true
4524
+ checked: !!selectedBankGuid && selectedMethod === "ACHPayment"
4517
4525
  }
4518
4526
  ),
4519
4527
  onClick: () => setIsOpen((prev) => !prev),
@@ -6,14 +6,14 @@ import {
6
6
  } from "../chunk-Y4HUYAI5.js";
7
7
  import {
8
8
  PaymentOnAccountModal
9
- } from "../chunk-WVLT6XM7.js";
10
- import "../chunk-VPEVXTBJ.js";
9
+ } from "../chunk-OX3HKFIH.js";
10
+ import "../chunk-KYMBBPEW.js";
11
11
  import "../chunk-TTO4PL7Y.js";
12
- import "../chunk-D2YP2BTN.js";
12
+ import "../chunk-QIHDPSOM.js";
13
13
  import "../chunk-4RJKB7LC.js";
14
- import "../chunk-CG2NIXZE.js";
14
+ import "../chunk-6CS5ZBXO.js";
15
15
  import "../chunk-FWPJ73IK.js";
16
- import "../chunk-6UI5GABI.js";
16
+ import "../chunk-3JRVV6QY.js";
17
17
  import "../chunk-4JLU7TAC.js";
18
18
  import "../chunk-J6LETUNM.js";
19
19
  import "../chunk-3ZUSYRI7.js";
@@ -25,7 +25,7 @@ import {
25
25
  DataGridCell,
26
26
  DragAlongCell,
27
27
  DraggableCellHeader
28
- } from "../chunk-E5VEDZYV.js";
28
+ } from "../chunk-ZEGVZ5NW.js";
29
29
  import {
30
30
  Menu
31
31
  } from "../chunk-37TJJQL3.js";
@@ -63,7 +63,7 @@ import {
63
63
  } from "../chunk-VG4EPHJA.js";
64
64
  import {
65
65
  Button
66
- } from "../chunk-H6LXXGX6.js";
66
+ } from "../chunk-L364HTYC.js";
67
67
  import {
68
68
  Icon
69
69
  } from "../chunk-IGQVA7SC.js";
@@ -853,13 +853,14 @@ function DataGrid({
853
853
  ),
854
854
  useMenuDefaultMinWidth,
855
855
  children: [
856
- /* @__PURE__ */ jsx8(Subheader, { tall: true, children: header.column.columnDef.header }),
856
+ typeof cellValue !== "number" && /* @__PURE__ */ jsx8(Subheader, { tall: true, children: header.column.columnDef.header }),
857
857
  getSortIcon(header.column.getIsSorted()),
858
858
  !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(
859
859
  header.column.getNextSortingOrder(),
860
860
  true
861
861
  ),
862
862
  header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ jsx8(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
863
+ typeof cellValue === "number" && /* @__PURE__ */ jsx8(Subheader, { tall: true, children: header.column.columnDef.header }),
863
864
  /* @__PURE__ */ jsx8(
864
865
  "div",
865
866
  {
package/dist/index.css CHANGED
@@ -1602,6 +1602,12 @@
1602
1602
  .bg-neutral-600 {
1603
1603
  background-color: var(--color-neutral-600);
1604
1604
  }
1605
+ .bg-neutral-600\/30 {
1606
+ background-color: color-mix(in srgb, #000000 30%, transparent);
1607
+ @supports (color: color-mix(in lab, red, red)) {
1608
+ background-color: color-mix(in oklab, var(--color-neutral-600) 30%, transparent);
1609
+ }
1610
+ }
1605
1611
  .bg-neutral-600\/50 {
1606
1612
  background-color: color-mix(in srgb, #000000 50%, transparent);
1607
1613
  @supports (color: color-mix(in lab, red, red)) {
@@ -2866,6 +2872,13 @@
2866
2872
  }
2867
2873
  }
2868
2874
  }
2875
+ .hover\:bg-background-on-action-secondary-hover {
2876
+ &:hover {
2877
+ @media (hover: hover) {
2878
+ background-color: var(--color-background-on-action-secondary-hover);
2879
+ }
2880
+ }
2881
+ }
2869
2882
  .hover\:bg-background-secondary-normal\/30 {
2870
2883
  &:hover {
2871
2884
  @media (hover: hover) {
@@ -2904,6 +2917,13 @@
2904
2917
  }
2905
2918
  }
2906
2919
  }
2920
+ .hover\:text-brand-text-action-primary-hover {
2921
+ &:hover {
2922
+ @media (hover: hover) {
2923
+ color: var(--color-brand-text-action-primary-hover);
2924
+ }
2925
+ }
2926
+ }
2907
2927
  .hover\:text-icon-action-critical-secondary-hover {
2908
2928
  &:hover {
2909
2929
  @media (hover: hover) {
@@ -3031,6 +3051,16 @@
3031
3051
  background-color: var(--color-background-action-secondary-hover);
3032
3052
  }
3033
3053
  }
3054
+ .focus\:bg-background-on-action-secondary-hover {
3055
+ &:focus {
3056
+ background-color: var(--color-background-on-action-secondary-hover);
3057
+ }
3058
+ }
3059
+ .focus\:text-brand-text-action-primary-hover {
3060
+ &:focus {
3061
+ color: var(--color-brand-text-action-primary-hover);
3062
+ }
3063
+ }
3034
3064
  .focus\:text-text-action-critical-hover {
3035
3065
  &:focus {
3036
3066
  color: var(--color-text-action-critical-hover);
@@ -3171,6 +3201,11 @@
3171
3201
  background-color: var(--color-background-action-secondary-active);
3172
3202
  }
3173
3203
  }
3204
+ .active\:bg-background-on-action-secondary-active {
3205
+ &:active {
3206
+ background-color: var(--color-background-on-action-secondary-active);
3207
+ }
3208
+ }
3174
3209
  .active\:\!text-brand-text-on-action-primary-active {
3175
3210
  &:active {
3176
3211
  color: var(--color-brand-text-on-action-primary-active) !important;
@@ -3186,6 +3221,11 @@
3186
3221
  color: var(--color-action-300);
3187
3222
  }
3188
3223
  }
3224
+ .active\:text-brand-text-action-primary-active {
3225
+ &:active {
3226
+ color: var(--color-brand-text-action-primary-active);
3227
+ }
3228
+ }
3189
3229
  .active\:text-icon-action-critical-secondary-active {
3190
3230
  &:active {
3191
3231
  color: var(--color-icon-action-critical-secondary-active);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dmsi/wedgekit-react",
3
3
  "private": false,
4
- "version": "0.0.105",
4
+ "version": "0.0.107",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsup",
@@ -146,11 +146,14 @@ export const Button = ({
146
146
  clsx(
147
147
  colorClassName?.trim()
148
148
  ? colorClassName
149
- : "text-text-action-primary-normal",
149
+ : "text-text-on-action-primary-normal",
150
150
  "bg-transparent",
151
- "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover",
152
- "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
153
- "active:bg-background-action-secondary-active active:text-text-action-primary-active",
151
+ "hover:bg-background-on-action-secondary-hover hover:text-brand-text-action-primary-hover",
152
+ // "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover", // Will use this once colors are finalized
153
+ "focus:bg-background-on-action-secondary-hover focus:text-brand-text-action-primary-hover focus:outline-0",
154
+ // "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover", // Will use this once colors are finalized
155
+ "active:bg-background-on-action-secondary-active active:text-brand-text-action-primary-active",
156
+ // "active:bg-background-action-secondary-active active:text-text-action-primary-active", // Will use this once colors are finalized
154
157
  "disabled:bg-transparent disabled:text-text-on-action-primary-disabled",
155
158
  "flex-col",
156
159
  paddingUsingComponentGap,
@@ -195,7 +198,6 @@ export const Button = ({
195
198
  onClick={props.onClick}
196
199
  disabled={disabled}
197
200
  href={href}
198
- data-theme={variant === "navigation" ? "brand" : undefined}
199
201
  >
200
202
  {leftIcon && leftIcon}
201
203
 
@@ -393,9 +393,11 @@ export function DataGrid<T extends Record<string, unknown>>({
393
393
  )}
394
394
  useMenuDefaultMinWidth={useMenuDefaultMinWidth}
395
395
  >
396
- <Subheader tall>
397
- {header.column.columnDef.header}
398
- </Subheader>
396
+ {typeof cellValue !== "number" && (
397
+ <Subheader tall>
398
+ {header.column.columnDef.header}
399
+ </Subheader>
400
+ )}
399
401
 
400
402
  {getSortIcon(header.column.getIsSorted())}
401
403
 
@@ -412,7 +414,11 @@ export function DataGrid<T extends Record<string, unknown>>({
412
414
  {header.column.getSortIndex() + 1}
413
415
  </Subheader>
414
416
  )}
415
-
417
+ {typeof cellValue === "number" && (
418
+ <Subheader tall>
419
+ {header.column.columnDef.header}
420
+ </Subheader>
421
+ )}
416
422
  <div
417
423
  onDoubleClick={(e) => {
418
424
  e.stopPropagation();
@@ -146,9 +146,10 @@ export const DataGridCell = memo(
146
146
  lockedHeaderBgStyles,
147
147
  iconComponentStyles,
148
148
  className,
149
- "flex flex-1 items-center gap-1 whitespace-nowrap h-10 relative text-text-action-primary-normal",
149
+ "flex flex-1 items-center gap-1 whitespace-nowrap h-10 relative text-text-primary-normal",
150
150
  "focus-within:!z-10",
151
151
  "overflow-x-hidden",
152
+ "overflow-y-hidden",
152
153
  component === "input" && "border",
153
154
  component === "input" &&
154
155
  !error &&
@@ -169,7 +170,6 @@ export const DataGridCell = memo(
169
170
  className={clsx("flex h-10", !width && "flex-1")}
170
171
  style={{ width }}
171
172
  {...props}
172
- data-theme={type === "header" ? "brand" : undefined}
173
173
  >
174
174
  <div
175
175
  className={cellClasses}
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ import clsx from "clsx";
3
+
4
+ import { Spinner } from "./Spinner";
5
+ /**
6
+ * LoadingScrim
7
+ *
8
+ * Displays a full-screen backdrop with a centered loading spinner.
9
+ * Disables interaction with underlying UI.
10
+ *
11
+ * @example
12
+ * <LoadingScrim />
13
+ */
14
+ export function LoadingScrim({ className }: { className?: string }) {
15
+ return (
16
+ <div
17
+ className={clsx(
18
+ "fixed inset-0 z-50 flex items-center justify-center bg-neutral-600/30",
19
+ className,
20
+ )}
21
+ aria-modal="true"
22
+ role="dialog"
23
+ tabIndex={-1}
24
+ >
25
+ <div className="flex items-center justify-center">
26
+ <Spinner size="large" />
27
+ </div>
28
+ </div>
29
+ );
30
+ }
31
+
32
+ LoadingScrim.displayName = "LoadingScrim";
@@ -83,7 +83,12 @@ export function SelectPaymentMethod(props: SelectPaymentMethodProps) {
83
83
  <Accordion
84
84
  isOpen={selectedMethod === "CCPayment"}
85
85
  title="Pay by Credit/Debit Card"
86
- before={<Radio checked={selectedMethod === "CCPayment"} readOnly />}
86
+ before={
87
+ <Radio
88
+ checked={selectedMethod === "CCPayment"}
89
+ onClick={(e) => e.preventDefault()}
90
+ />
91
+ }
87
92
  onClick={() =>
88
93
  handleToggle(selectedMethod === "CCPayment" ? null : "CCPayment")
89
94
  }
@@ -153,7 +158,6 @@ function ACHSelector(props: ACHSelectorProps) {
153
158
  before={
154
159
  <Radio
155
160
  checked={!!selectedBankGuid && selectedMethod === "ACHPayment"}
156
- readOnly
157
161
  />
158
162
  }
159
163
  onClick={() => setIsOpen((prev) => !prev)}