@wealthx/shadcn 1.5.32 → 1.5.33

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 (58) hide show
  1. package/.turbo/turbo-build.log +92 -92
  2. package/CHANGELOG.md +6 -0
  3. package/dist/{chunk-SYJ6LVJ6.mjs → chunk-3ZU5BH6X.mjs} +1 -1
  4. package/dist/{chunk-FTQ2AKZ2.mjs → chunk-4QTHK7ML.mjs} +1 -1
  5. package/dist/{chunk-T5HU4S4X.mjs → chunk-C7ZTZTEW.mjs} +1 -1
  6. package/dist/{chunk-KI57CBJR.mjs → chunk-DQNNP6I4.mjs} +33 -24
  7. package/dist/{chunk-AE4JKISB.mjs → chunk-EEI4FLEE.mjs} +1 -1
  8. package/dist/{chunk-IEQX4UVP.mjs → chunk-EY36WDCF.mjs} +1 -1
  9. package/dist/{chunk-HB5BKRMH.mjs → chunk-F3CU6KEI.mjs} +11 -1
  10. package/dist/chunk-H65NB7KI.mjs +182 -0
  11. package/dist/{chunk-TRM3KIHT.mjs → chunk-ICCPK3J2.mjs} +1 -1
  12. package/dist/{chunk-KGVVK6OS.mjs → chunk-ORMC3TV3.mjs} +3 -1
  13. package/dist/{chunk-HSXMTFIM.mjs → chunk-UD5UF5OC.mjs} +1 -1
  14. package/dist/{chunk-IW33VLL5.mjs → chunk-X3VEDQPO.mjs} +7 -3
  15. package/dist/{chunk-AAZSLTER.mjs → chunk-XGRSPFFC.mjs} +16 -7
  16. package/dist/components/ui/about-you-form.js +9 -6
  17. package/dist/components/ui/about-you-form.mjs +2 -2
  18. package/dist/components/ui/ai-conversations/index.js +4 -1
  19. package/dist/components/ui/ai-conversations/index.mjs +2 -2
  20. package/dist/components/ui/appointment-availability-settings.js +24 -12
  21. package/dist/components/ui/appointment-availability-settings.mjs +3 -3
  22. package/dist/components/ui/appointment-book-dialog.js +33 -24
  23. package/dist/components/ui/appointment-book-dialog.mjs +1 -1
  24. package/dist/components/ui/appointment-detail-sheet.js +3 -1
  25. package/dist/components/ui/appointment-detail-sheet.mjs +1 -1
  26. package/dist/components/ui/appointment-gmail-connect.js +127 -70
  27. package/dist/components/ui/appointment-gmail-connect.mjs +1 -1
  28. package/dist/components/ui/backoffice-signup-steps.js +23 -16
  29. package/dist/components/ui/backoffice-signup-steps.mjs +3 -3
  30. package/dist/components/ui/bank-statement-generate-dialog.js +12 -9
  31. package/dist/components/ui/bank-statement-generate-dialog.mjs +3 -3
  32. package/dist/components/ui/color-picker.js +21 -14
  33. package/dist/components/ui/color-picker.mjs +2 -2
  34. package/dist/components/ui/date-picker.js +6 -3
  35. package/dist/components/ui/date-picker.mjs +2 -2
  36. package/dist/components/ui/opportunity-edit-modals.js +45 -42
  37. package/dist/components/ui/opportunity-edit-modals.mjs +3 -3
  38. package/dist/components/ui/opportunity-summary-tab.js +48 -45
  39. package/dist/components/ui/opportunity-summary-tab.mjs +4 -4
  40. package/dist/components/ui/pipeline-dialogs.js +12 -9
  41. package/dist/components/ui/pipeline-dialogs.mjs +3 -3
  42. package/dist/components/ui/popover.js +22 -1
  43. package/dist/components/ui/popover.mjs +3 -1
  44. package/dist/components/ui/savings-goal-modal.js +11 -8
  45. package/dist/components/ui/savings-goal-modal.mjs +2 -2
  46. package/dist/index.js +349 -257
  47. package/dist/index.mjs +15 -13
  48. package/dist/styles.css +1 -1
  49. package/package.json +1 -1
  50. package/src/components/index.tsx +4 -0
  51. package/src/components/ui/appointment-availability-settings.tsx +32 -19
  52. package/src/components/ui/appointment-book-dialog.tsx +52 -73
  53. package/src/components/ui/appointment-detail-sheet.tsx +3 -1
  54. package/src/components/ui/appointment-gmail-connect.tsx +89 -29
  55. package/src/components/ui/color-picker.tsx +12 -4
  56. package/src/components/ui/popover.tsx +33 -2
  57. package/src/styles/styles-css.ts +1 -1
  58. package/dist/chunk-7TMPOZDE.mjs +0 -122
@@ -62,7 +62,7 @@ __export(opportunity_summary_tab_exports, {
62
62
  OpportunitySummaryTab: () => OpportunitySummaryTab
63
63
  });
64
64
  module.exports = __toCommonJS(opportunity_summary_tab_exports);
65
- var React11 = __toESM(require("react"));
65
+ var React12 = __toESM(require("react"));
66
66
  var import_react4 = require("react");
67
67
  var import_lucide_react12 = require("lucide-react");
68
68
 
@@ -1470,7 +1470,7 @@ function ExpensesCard({
1470
1470
  }
1471
1471
 
1472
1472
  // src/components/ui/opportunity-edit-modals.tsx
1473
- var React10 = __toESM(require("react"));
1473
+ var React11 = __toESM(require("react"));
1474
1474
  var import_lucide_react11 = require("lucide-react");
1475
1475
 
1476
1476
  // src/components/ui/dialog.tsx
@@ -1704,7 +1704,7 @@ function Textarea(_a) {
1704
1704
  }
1705
1705
 
1706
1706
  // src/components/ui/date-picker.tsx
1707
- var React6 = __toESM(require("react"));
1707
+ var React7 = __toESM(require("react"));
1708
1708
  var import_date_fns2 = require("date-fns");
1709
1709
  var import_lucide_react9 = require("lucide-react");
1710
1710
 
@@ -1909,8 +1909,10 @@ function CalendarDayButton(_a) {
1909
1909
  }
1910
1910
 
1911
1911
  // src/components/ui/popover.tsx
1912
+ var React6 = __toESM(require("react"));
1912
1913
  var import_popover = require("@base-ui/react/popover");
1913
1914
  var import_jsx_runtime16 = require("react/jsx-runtime");
1915
+ var PopoverPortalContext = React6.createContext(void 0);
1914
1916
  function Popover(_a) {
1915
1917
  var props = __objRest(_a, []);
1916
1918
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_popover.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
@@ -1932,7 +1934,8 @@ function PopoverContent(_a) {
1932
1934
  "style"
1933
1935
  ]);
1934
1936
  const themeVars = useThemeVars();
1935
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1937
+ const portalContainer = React6.useContext(PopoverPortalContext);
1938
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_popover.Popover.Portal, { container: portalContainer != null ? portalContainer : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1936
1939
  import_popover.Popover.Positioner,
1937
1940
  {
1938
1941
  className: "z-[200]",
@@ -1964,7 +1967,7 @@ function DatePicker({
1964
1967
  className,
1965
1968
  calendarProps
1966
1969
  }) {
1967
- const [open, setOpen] = React6.useState(false);
1970
+ const [open, setOpen] = React7.useState(false);
1968
1971
  function handleDaySelect(day) {
1969
1972
  if (!day) {
1970
1973
  onChange == null ? void 0 : onChange(void 0);
@@ -2053,10 +2056,10 @@ function DatePicker({
2053
2056
  }
2054
2057
 
2055
2058
  // src/components/ui/slider.tsx
2056
- var React7 = __toESM(require("react"));
2059
+ var React8 = __toESM(require("react"));
2057
2060
  var import_slider = require("@base-ui/react/slider");
2058
2061
  var import_jsx_runtime18 = require("react/jsx-runtime");
2059
- var Slider = React7.forwardRef(
2062
+ var Slider = React8.forwardRef(
2060
2063
  ({
2061
2064
  className,
2062
2065
  value,
@@ -2125,11 +2128,11 @@ var Slider = React7.forwardRef(
2125
2128
  Slider.displayName = "Slider";
2126
2129
 
2127
2130
  // src/components/ui/form-primitives.tsx
2128
- var React9 = __toESM(require("react"));
2131
+ var React10 = __toESM(require("react"));
2129
2132
  var import_lucide_react10 = require("lucide-react");
2130
2133
 
2131
2134
  // src/components/ui/toggle-group.tsx
2132
- var React8 = __toESM(require("react"));
2135
+ var React9 = __toESM(require("react"));
2133
2136
  var import_toggle_group = require("@base-ui/react/toggle-group");
2134
2137
  var import_toggle2 = require("@base-ui/react/toggle");
2135
2138
 
@@ -2160,7 +2163,7 @@ var toggleVariants = (0, import_class_variance_authority4.cva)(
2160
2163
 
2161
2164
  // src/components/ui/toggle-group.tsx
2162
2165
  var import_jsx_runtime20 = require("react/jsx-runtime");
2163
- var ToggleGroupContext = React8.createContext({
2166
+ var ToggleGroupContext = React9.createContext({
2164
2167
  size: "default",
2165
2168
  variant: "default",
2166
2169
  spacing: 0
@@ -2212,7 +2215,7 @@ function ToggleGroupItem(_a) {
2212
2215
  "variant",
2213
2216
  "size"
2214
2217
  ]);
2215
- const context = React8.useContext(ToggleGroupContext);
2218
+ const context = React9.useContext(ToggleGroupContext);
2216
2219
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2217
2220
  import_toggle2.Toggle,
2218
2221
  __spreadProps(__spreadValues({
@@ -2256,13 +2259,13 @@ function CurrencyInputWithSlider({
2256
2259
  onValueChange,
2257
2260
  className
2258
2261
  }) {
2259
- const [internalValue, setInternalValue] = React9.useState(defaultValue);
2262
+ const [internalValue, setInternalValue] = React10.useState(defaultValue);
2260
2263
  const numericValue = controlledValue !== void 0 ? controlledValue : internalValue;
2261
- const [inputText, setInputText] = React9.useState(
2264
+ const [inputText, setInputText] = React10.useState(
2262
2265
  formatNumberToCurrency(numericValue)
2263
2266
  );
2264
- const [isFocused, setIsFocused] = React9.useState(false);
2265
- React9.useEffect(() => {
2267
+ const [isFocused, setIsFocused] = React10.useState(false);
2268
+ React10.useEffect(() => {
2266
2269
  if (!isFocused) {
2267
2270
  setInputText(formatNumberToCurrency(numericValue));
2268
2271
  }
@@ -2360,13 +2363,13 @@ function AddressAutocomplete({
2360
2363
  onSelect,
2361
2364
  className
2362
2365
  }) {
2363
- const [internalValue, setInternalValue] = React9.useState("");
2366
+ const [internalValue, setInternalValue] = React10.useState("");
2364
2367
  const inputValue = controlledValue !== void 0 ? controlledValue : internalValue;
2365
- const [open, setOpen] = React9.useState(false);
2366
- const [activeIndex, setActiveIndex] = React9.useState(-1);
2367
- const containerRef = React9.useRef(null);
2368
- const listRef = React9.useRef(null);
2369
- const filtered = React9.useMemo(() => {
2368
+ const [open, setOpen] = React10.useState(false);
2369
+ const [activeIndex, setActiveIndex] = React10.useState(-1);
2370
+ const containerRef = React10.useRef(null);
2371
+ const listRef = React10.useRef(null);
2372
+ const filtered = React10.useMemo(() => {
2370
2373
  if (!inputValue.trim()) return suggestions.slice(0, 5);
2371
2374
  const q = inputValue.toLowerCase();
2372
2375
  return suggestions.filter((s) => s.label.toLowerCase().includes(q)).slice(0, 5);
@@ -2396,7 +2399,7 @@ function AddressAutocomplete({
2396
2399
  setOpen(false);
2397
2400
  }
2398
2401
  };
2399
- React9.useEffect(() => {
2402
+ React10.useEffect(() => {
2400
2403
  const handler = (e) => {
2401
2404
  if (containerRef.current && !containerRef.current.contains(e.target)) {
2402
2405
  setOpen(false);
@@ -2473,7 +2476,7 @@ function OwnershipSplit({
2473
2476
  onOwnersChange,
2474
2477
  className
2475
2478
  }) {
2476
- const [internalOwners, setInternalOwners] = React9.useState(DEFAULT_OWNERS);
2479
+ const [internalOwners, setInternalOwners] = React10.useState(DEFAULT_OWNERS);
2477
2480
  const owners = controlledOwners !== void 0 ? controlledOwners : internalOwners;
2478
2481
  const setOwners = (updated) => {
2479
2482
  if (controlledOwners === void 0) setInternalOwners(updated);
@@ -2878,9 +2881,9 @@ function EditLoanScenarioModal({
2878
2881
  container,
2879
2882
  className
2880
2883
  }) {
2881
- const [form, setForm] = React10.useState(__spreadValues(__spreadValues({}, LOAN_SCENARIO_DEFAULTS), initialData));
2882
- const initialSnapshot = React10.useRef("");
2883
- React10.useEffect(() => {
2884
+ const [form, setForm] = React11.useState(__spreadValues(__spreadValues({}, LOAN_SCENARIO_DEFAULTS), initialData));
2885
+ const initialSnapshot = React11.useRef("");
2886
+ React11.useEffect(() => {
2884
2887
  if (open) {
2885
2888
  const data = __spreadValues(__spreadValues({}, LOAN_SCENARIO_DEFAULTS), initialData);
2886
2889
  setForm(data);
@@ -3140,11 +3143,11 @@ function EditAssetsModal({
3140
3143
  container,
3141
3144
  className
3142
3145
  }) {
3143
- const [items, setItems] = React10.useState(
3146
+ const [items, setItems] = React11.useState(
3144
3147
  initialItems.length > 0 ? initialItems : [makeDefaultAssetItem()]
3145
3148
  );
3146
- const initialSnapshot = React10.useRef("");
3147
- React10.useEffect(() => {
3149
+ const initialSnapshot = React11.useRef("");
3150
+ React11.useEffect(() => {
3148
3151
  if (open) {
3149
3152
  const data = initialItems.length > 0 ? initialItems : [makeDefaultAssetItem()];
3150
3153
  setItems(data);
@@ -3437,11 +3440,11 @@ function EditDebtsModal({
3437
3440
  container,
3438
3441
  className
3439
3442
  }) {
3440
- const [items, setItems] = React10.useState(
3443
+ const [items, setItems] = React11.useState(
3441
3444
  initialItems.length > 0 ? initialItems : [makeDefaultDebtItem()]
3442
3445
  );
3443
- const initialSnapshot = React10.useRef("");
3444
- React10.useEffect(() => {
3446
+ const initialSnapshot = React11.useRef("");
3447
+ React11.useEffect(() => {
3445
3448
  if (open) {
3446
3449
  const data = initialItems.length > 0 ? initialItems : [makeDefaultDebtItem()];
3447
3450
  setItems(data);
@@ -3763,9 +3766,9 @@ function EditAboutApplicantModal({
3763
3766
  container,
3764
3767
  className
3765
3768
  }) {
3766
- const [form, setForm] = React10.useState(__spreadValues(__spreadValues({}, ABOUT_APPLICANT_DEFAULTS), initialData));
3767
- const initialSnapshot = React10.useRef("");
3768
- React10.useEffect(() => {
3769
+ const [form, setForm] = React11.useState(__spreadValues(__spreadValues({}, ABOUT_APPLICANT_DEFAULTS), initialData));
3770
+ const initialSnapshot = React11.useRef("");
3771
+ React11.useEffect(() => {
3769
3772
  if (open) {
3770
3773
  const data = __spreadValues(__spreadValues({}, ABOUT_APPLICANT_DEFAULTS), initialData);
3771
3774
  setForm(data);
@@ -4037,7 +4040,7 @@ function EditIncomeModal({
4037
4040
  container,
4038
4041
  className
4039
4042
  }) {
4040
- const defaultItems = React10.useMemo(
4043
+ const defaultItems = React11.useMemo(
4041
4044
  () => {
4042
4045
  var _a;
4043
4046
  return ((_a = initialData == null ? void 0 : initialData.items) == null ? void 0 : _a.length) ? initialData.items : [makeDefaultIncomeItem()];
@@ -4045,9 +4048,9 @@ function EditIncomeModal({
4045
4048
  []
4046
4049
  // eslint-disable-line react-hooks/exhaustive-deps
4047
4050
  );
4048
- const [items, setItems] = React10.useState(defaultItems);
4049
- const initialSnapshot = React10.useRef("");
4050
- React10.useEffect(() => {
4051
+ const [items, setItems] = React11.useState(defaultItems);
4052
+ const initialSnapshot = React11.useRef("");
4053
+ React11.useEffect(() => {
4051
4054
  var _a;
4052
4055
  if (open) {
4053
4056
  const data = ((_a = initialData == null ? void 0 : initialData.items) == null ? void 0 : _a.length) ? initialData.items : [makeDefaultIncomeItem()];
@@ -4264,7 +4267,7 @@ function EditExpensesModal({
4264
4267
  container,
4265
4268
  className
4266
4269
  }) {
4267
- const defaultItems = React10.useMemo(
4270
+ const defaultItems = React11.useMemo(
4268
4271
  () => {
4269
4272
  var _a;
4270
4273
  return ((_a = initialData == null ? void 0 : initialData.items) == null ? void 0 : _a.length) ? initialData.items : [makeDefaultExpenseItem()];
@@ -4272,9 +4275,9 @@ function EditExpensesModal({
4272
4275
  []
4273
4276
  // eslint-disable-line react-hooks/exhaustive-deps
4274
4277
  );
4275
- const [items, setItems] = React10.useState(defaultItems);
4276
- const initialSnapshot = React10.useRef("");
4277
- React10.useEffect(() => {
4278
+ const [items, setItems] = React11.useState(defaultItems);
4279
+ const initialSnapshot = React11.useRef("");
4280
+ React11.useEffect(() => {
4278
4281
  var _a;
4279
4282
  if (open) {
4280
4283
  const data = ((_a = initialData == null ? void 0 : initialData.items) == null ? void 0 : _a.length) ? initialData.items : [makeDefaultExpenseItem()];
@@ -4791,7 +4794,7 @@ function OpportunitySummaryTab({
4791
4794
  var _a2;
4792
4795
  return (_a2 = docStatusOverrides[doc.id]) != null ? _a2 : doc.status;
4793
4796
  }
4794
- const checklistProgress = React11.useMemo(() => {
4797
+ const checklistProgress = React12.useMemo(() => {
4795
4798
  var _a2, _b2;
4796
4799
  const map = /* @__PURE__ */ new Map();
4797
4800
  for (const doc of documents) {
@@ -4809,7 +4812,7 @@ function OpportunitySummaryTab({
4809
4812
  }
4810
4813
  return Array.from(map.entries()).map(([name, data]) => __spreadValues({ name }, data));
4811
4814
  }, [documents, docStatusOverrides]);
4812
- const groupedDocs = React11.useMemo(() => {
4815
+ const groupedDocs = React12.useMemo(() => {
4813
4816
  var _a2;
4814
4817
  if (documents.length <= 5 || !documents.some((d) => d.checklistItem))
4815
4818
  return null;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OpportunitySummaryTab
3
- } from "../../chunk-SYJ6LVJ6.mjs";
4
- import "../../chunk-HSXMTFIM.mjs";
3
+ } from "../../chunk-3ZU5BH6X.mjs";
4
+ import "../../chunk-UD5UF5OC.mjs";
5
5
  import "../../chunk-7LN5OGC2.mjs";
6
6
  import "../../chunk-DQB4EPIS.mjs";
7
7
  import "../../chunk-JTK6VJXY.mjs";
@@ -13,8 +13,8 @@ import "../../chunk-K6VCC2MK.mjs";
13
13
  import "../../chunk-T5FRVEJQ.mjs";
14
14
  import "../../chunk-BS75ICOO.mjs";
15
15
  import "../../chunk-X6RC5UWB.mjs";
16
- import "../../chunk-TRM3KIHT.mjs";
17
- import "../../chunk-HB5BKRMH.mjs";
16
+ import "../../chunk-ICCPK3J2.mjs";
17
+ import "../../chunk-F3CU6KEI.mjs";
18
18
  import "../../chunk-OWFQSXVD.mjs";
19
19
  import "../../chunk-6QAFGZC2.mjs";
20
20
  import "../../chunk-FBNEIYSE.mjs";
@@ -64,7 +64,7 @@ __export(pipeline_dialogs_exports, {
64
64
  PutOnHoldDialog: () => PutOnHoldDialog
65
65
  });
66
66
  module.exports = __toCommonJS(pipeline_dialogs_exports);
67
- var React7 = __toESM(require("react"));
67
+ var React8 = __toESM(require("react"));
68
68
  var import_date_fns3 = require("date-fns");
69
69
 
70
70
  // src/lib/utils.ts
@@ -675,7 +675,7 @@ function ToggleGroupItem(_a) {
675
675
  }
676
676
 
677
677
  // src/components/ui/date-picker.tsx
678
- var React6 = __toESM(require("react"));
678
+ var React7 = __toESM(require("react"));
679
679
  var import_date_fns2 = require("date-fns");
680
680
  var import_lucide_react5 = require("lucide-react");
681
681
 
@@ -915,8 +915,10 @@ function CalendarDayButton(_a) {
915
915
  }
916
916
 
917
917
  // src/components/ui/popover.tsx
918
+ var React6 = __toESM(require("react"));
918
919
  var import_popover = require("@base-ui/react/popover");
919
920
  var import_jsx_runtime9 = require("react/jsx-runtime");
921
+ var PopoverPortalContext = React6.createContext(void 0);
920
922
  function Popover(_a) {
921
923
  var props = __objRest(_a, []);
922
924
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_popover.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
@@ -938,7 +940,8 @@ function PopoverContent(_a) {
938
940
  "style"
939
941
  ]);
940
942
  const themeVars = useThemeVars();
941
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
943
+ const portalContainer = React6.useContext(PopoverPortalContext);
944
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_popover.Popover.Portal, { container: portalContainer != null ? portalContainer : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
942
945
  import_popover.Popover.Positioner,
943
946
  {
944
947
  className: "z-[200]",
@@ -970,7 +973,7 @@ function DatePicker({
970
973
  className,
971
974
  calendarProps
972
975
  }) {
973
- const [open, setOpen] = React6.useState(false);
976
+ const [open, setOpen] = React7.useState(false);
974
977
  function handleDaySelect(day) {
975
978
  if (!day) {
976
979
  onChange == null ? void 0 : onChange(void 0);
@@ -1171,10 +1174,10 @@ function PutOnHoldDialog({
1171
1174
  onSave,
1172
1175
  className
1173
1176
  }) {
1174
- const [duration, setDuration] = React7.useState("90");
1175
- const [customDate, setCustomDate] = React7.useState();
1176
- const today = React7.useMemo(() => (0, import_date_fns3.startOfDay)(/* @__PURE__ */ new Date()), []);
1177
- const resolvedDate = React7.useMemo(() => {
1177
+ const [duration, setDuration] = React8.useState("90");
1178
+ const [customDate, setCustomDate] = React8.useState();
1179
+ const today = React8.useMemo(() => (0, import_date_fns3.startOfDay)(/* @__PURE__ */ new Date()), []);
1180
+ const resolvedDate = React8.useMemo(() => {
1178
1181
  if (duration === "custom") return customDate;
1179
1182
  return (0, import_date_fns3.addDays)(today, parseInt(duration, 10));
1180
1183
  }, [duration, customDate, today]);
@@ -1183,7 +1186,7 @@ function PutOnHoldDialog({
1183
1186
  if (!resolvedDate) return;
1184
1187
  onSave((0, import_date_fns3.format)(resolvedDate, "yyyy-MM-dd"));
1185
1188
  }
1186
- React7.useEffect(() => {
1189
+ React8.useEffect(() => {
1187
1190
  if (open) {
1188
1191
  setDuration("90");
1189
1192
  setCustomDate(void 0);
@@ -2,11 +2,11 @@ import {
2
2
  ChangePriorityDialog,
3
3
  DeleteOpportunityDialog,
4
4
  PutOnHoldDialog
5
- } from "../../chunk-T5HU4S4X.mjs";
5
+ } from "../../chunk-C7ZTZTEW.mjs";
6
6
  import "../../chunk-K6VCC2MK.mjs";
7
7
  import "../../chunk-T5FRVEJQ.mjs";
8
- import "../../chunk-TRM3KIHT.mjs";
9
- import "../../chunk-HB5BKRMH.mjs";
8
+ import "../../chunk-ICCPK3J2.mjs";
9
+ import "../../chunk-F3CU6KEI.mjs";
10
10
  import "../../chunk-OWFQSXVD.mjs";
11
11
  import "../../chunk-6QAFGZC2.mjs";
12
12
  import "../../chunk-FBNEIYSE.mjs";
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7
+ var __getProtoOf = Object.getPrototypeOf;
6
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
10
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -41,6 +43,14 @@ var __copyProps = (to, from, except, desc) => {
41
43
  }
42
44
  return to;
43
45
  };
46
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
47
+ // If the importer is in node compatibility mode or this is not an ESM
48
+ // file that has been converted to a CommonJS file using a Babel-
49
+ // compatible transform (i.e. "__esModule" has not been set), then set
50
+ // "default" to the CommonJS "module.exports" for node compatibility.
51
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
52
+ mod
53
+ ));
44
54
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
45
55
 
46
56
  // src/components/ui/popover.tsx
@@ -51,10 +61,12 @@ __export(popover_exports, {
51
61
  PopoverContent: () => PopoverContent,
52
62
  PopoverDescription: () => PopoverDescription,
53
63
  PopoverHeader: () => PopoverHeader,
64
+ PopoverPortalProvider: () => PopoverPortalProvider,
54
65
  PopoverTitle: () => PopoverTitle,
55
66
  PopoverTrigger: () => PopoverTrigger
56
67
  });
57
68
  module.exports = __toCommonJS(popover_exports);
69
+ var React2 = __toESM(require("react"));
58
70
  var import_popover = require("@base-ui/react/popover");
59
71
 
60
72
  // src/lib/utils.ts
@@ -106,6 +118,13 @@ function useThemeVars() {
106
118
 
107
119
  // src/components/ui/popover.tsx
108
120
  var import_jsx_runtime2 = require("react/jsx-runtime");
121
+ var PopoverPortalContext = React2.createContext(void 0);
122
+ function PopoverPortalProvider({
123
+ container,
124
+ children
125
+ }) {
126
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PopoverPortalContext.Provider, { value: container, children });
127
+ }
109
128
  function Popover(_a) {
110
129
  var props = __objRest(_a, []);
111
130
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_popover.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
@@ -127,7 +146,8 @@ function PopoverContent(_a) {
127
146
  "style"
128
147
  ]);
129
148
  const themeVars = useThemeVars();
130
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
149
+ const portalContainer = React2.useContext(PopoverPortalContext);
150
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_popover.Popover.Portal, { container: portalContainer != null ? portalContainer : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
131
151
  import_popover.Popover.Positioner,
132
152
  {
133
153
  className: "z-[200]",
@@ -203,6 +223,7 @@ function PopoverDescription(_a) {
203
223
  PopoverContent,
204
224
  PopoverDescription,
205
225
  PopoverHeader,
226
+ PopoverPortalProvider,
206
227
  PopoverTitle,
207
228
  PopoverTrigger
208
229
  });
@@ -4,9 +4,10 @@ import {
4
4
  PopoverContent,
5
5
  PopoverDescription,
6
6
  PopoverHeader,
7
+ PopoverPortalProvider,
7
8
  PopoverTitle,
8
9
  PopoverTrigger
9
- } from "../../chunk-HB5BKRMH.mjs";
10
+ } from "../../chunk-F3CU6KEI.mjs";
10
11
  import "../../chunk-XYSRRDBH.mjs";
11
12
  import "../../chunk-FRCTOAKZ.mjs";
12
13
  import "../../chunk-AFML43VJ.mjs";
@@ -17,6 +18,7 @@ export {
17
18
  PopoverContent,
18
19
  PopoverDescription,
19
20
  PopoverHeader,
21
+ PopoverPortalProvider,
20
22
  PopoverTitle,
21
23
  PopoverTrigger
22
24
  };
@@ -428,7 +428,7 @@ function DialogTitle(_a) {
428
428
  }
429
429
 
430
430
  // src/components/ui/date-picker.tsx
431
- var React4 = __toESM(require("react"));
431
+ var React5 = __toESM(require("react"));
432
432
  var import_date_fns2 = require("date-fns");
433
433
  var import_lucide_react4 = require("lucide-react");
434
434
 
@@ -668,8 +668,10 @@ function CalendarDayButton(_a) {
668
668
  }
669
669
 
670
670
  // src/components/ui/popover.tsx
671
+ var React4 = __toESM(require("react"));
671
672
  var import_popover = require("@base-ui/react/popover");
672
673
  var import_jsx_runtime6 = require("react/jsx-runtime");
674
+ var PopoverPortalContext = React4.createContext(void 0);
673
675
  function Popover(_a) {
674
676
  var props = __objRest(_a, []);
675
677
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popover.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
@@ -691,7 +693,8 @@ function PopoverContent(_a) {
691
693
  "style"
692
694
  ]);
693
695
  const themeVars = useThemeVars();
694
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
696
+ const portalContainer = React4.useContext(PopoverPortalContext);
697
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popover.Popover.Portal, { container: portalContainer != null ? portalContainer : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
695
698
  import_popover.Popover.Positioner,
696
699
  {
697
700
  className: "z-[200]",
@@ -723,7 +726,7 @@ function DatePicker({
723
726
  className,
724
727
  calendarProps
725
728
  }) {
726
- const [open, setOpen] = React4.useState(false);
729
+ const [open, setOpen] = React5.useState(false);
727
730
  function handleDaySelect(day) {
728
731
  if (!day) {
729
732
  onChange == null ? void 0 : onChange(void 0);
@@ -812,7 +815,7 @@ function DatePicker({
812
815
  }
813
816
 
814
817
  // src/components/ui/toggle-group.tsx
815
- var React5 = __toESM(require("react"));
818
+ var React6 = __toESM(require("react"));
816
819
  var import_toggle_group = require("@base-ui/react/toggle-group");
817
820
  var import_toggle2 = require("@base-ui/react/toggle");
818
821
 
@@ -843,7 +846,7 @@ var toggleVariants = (0, import_class_variance_authority2.cva)(
843
846
 
844
847
  // src/components/ui/toggle-group.tsx
845
848
  var import_jsx_runtime9 = require("react/jsx-runtime");
846
- var ToggleGroupContext = React5.createContext({
849
+ var ToggleGroupContext = React6.createContext({
847
850
  size: "default",
848
851
  variant: "default",
849
852
  spacing: 0
@@ -895,7 +898,7 @@ function ToggleGroupItem(_a) {
895
898
  "variant",
896
899
  "size"
897
900
  ]);
898
- const context = React5.useContext(ToggleGroupContext);
901
+ const context = React6.useContext(ToggleGroupContext);
899
902
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
900
903
  import_toggle2.Toggle,
901
904
  __spreadProps(__spreadValues({
@@ -920,10 +923,10 @@ function ToggleGroupItem(_a) {
920
923
  }
921
924
 
922
925
  // src/components/ui/slider.tsx
923
- var React6 = __toESM(require("react"));
926
+ var React7 = __toESM(require("react"));
924
927
  var import_slider = require("@base-ui/react/slider");
925
928
  var import_jsx_runtime10 = require("react/jsx-runtime");
926
- var Slider = React6.forwardRef(
929
+ var Slider = React7.forwardRef(
927
930
  ({
928
931
  className,
929
932
  value,
@@ -11,8 +11,8 @@ import {
11
11
  } from "../../chunk-T5FRVEJQ.mjs";
12
12
  import {
13
13
  DatePicker
14
- } from "../../chunk-TRM3KIHT.mjs";
15
- import "../../chunk-HB5BKRMH.mjs";
14
+ } from "../../chunk-ICCPK3J2.mjs";
15
+ import "../../chunk-F3CU6KEI.mjs";
16
16
  import {
17
17
  ToggleGroup,
18
18
  ToggleGroupItem