@smallwebco/tinypivot-react 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1314,7 +1314,8 @@ function CalculatedFieldModal({
1314
1314
  availableFields,
1315
1315
  existingField,
1316
1316
  onClose,
1317
- onSave
1317
+ onSave,
1318
+ theme
1318
1319
  }) {
1319
1320
  const [name, setName] = useState3("");
1320
1321
  const [formula, setFormula] = useState3("");
@@ -1385,7 +1386,7 @@ function CalculatedFieldModal({
1385
1386
  }, [onClose]);
1386
1387
  if (!show)
1387
1388
  return null;
1388
- const modalContent = /* @__PURE__ */ jsx2("div", { className: "vpg-modal-overlay", onClick: handleOverlayClick, children: /* @__PURE__ */ jsxs2("div", { className: "vpg-modal", children: [
1389
+ const modalContent = /* @__PURE__ */ jsx2("div", { className: `vpg-modal-overlay vpg-theme-${theme ?? "light"}`, onClick: handleOverlayClick, children: /* @__PURE__ */ jsxs2("div", { className: "vpg-modal", children: [
1389
1390
  /* @__PURE__ */ jsxs2("div", { className: "vpg-modal-header", children: [
1390
1391
  /* @__PURE__ */ jsxs2("h3", { children: [
1391
1392
  existingField ? "Edit" : "Create",
@@ -3927,7 +3928,8 @@ var PAGE_SIZE = 50;
3927
3928
  function DrillThroughModal({
3928
3929
  show,
3929
3930
  result,
3930
- onClose
3931
+ onClose,
3932
+ theme
3931
3933
  }) {
3932
3934
  const [currentPage, setCurrentPage] = useState12(1);
3933
3935
  useEffect10(() => {
@@ -3994,7 +3996,7 @@ function DrillThroughModal({
3994
3996
  if (!show || typeof document === "undefined")
3995
3997
  return null;
3996
3998
  return createPortal2(
3997
- /* @__PURE__ */ jsx7("div", { className: "vpg-modal-overlay", onClick: handleOverlayClick, children: /* @__PURE__ */ jsxs7("div", { className: "vpg-modal vpg-drill-modal", children: [
3999
+ /* @__PURE__ */ jsx7("div", { className: `vpg-modal-overlay vpg-theme-${theme ?? "light"}`, onClick: handleOverlayClick, children: /* @__PURE__ */ jsxs7("div", { className: "vpg-modal vpg-drill-modal", children: [
3998
4000
  /* @__PURE__ */ jsxs7("div", { className: "vpg-modal-header", children: [
3999
4001
  /* @__PURE__ */ jsx7("h3", { className: "vpg-drill-title", children: modalTitle }),
4000
4002
  /* @__PURE__ */ jsx7("button", { className: "vpg-modal-close", onClick: onClose, children: "\xD7" })
@@ -4450,6 +4452,7 @@ function PivotConfig({
4450
4452
  show: showCalcModal,
4451
4453
  availableFields: numericFieldNames,
4452
4454
  existingField: editingCalcField,
4455
+ theme,
4453
4456
  onClose: handleCloseCalcModal,
4454
4457
  onSave: handleSaveCalcField
4455
4458
  }
@@ -6599,6 +6602,7 @@ function DataGrid({
6599
6602
  rowFields: pivotRowFields,
6600
6603
  columnFields: pivotColumnFields,
6601
6604
  valueFields: pivotValueFields,
6605
+ theme: currentTheme,
6602
6606
  onClose: handleCloseDrillThroughModal
6603
6607
  }
6604
6608
  )